| 1 | id: STK-REQ-002 |
| 2 | version: 1 |
| 3 | status: review |
| 4 | priority: shall |
| 5 | category: functional |
| 6 | req_type: guarantee |
| 7 | fretish: "" |
| 8 | description: Library users shall retrieve string values with JSON escapes and Unicode decoded into Go strings. |
| 9 | formalization_strategy: informal |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: The README explicitly promises that GetString handles escaped and Unicode characters correctly, which is a user-visible contract distinct from raw byte lookup. |
| 16 | tags: [] |
| 17 | variables: [] |
| 18 | traces: |
| 19 | documented_by_extra: |
| 20 | - README.md |
| 21 | reviewed_at: "2026-04-27T06:25:19.19831Z" |
| 22 | reviewed_by: human:leonidbugaev |
| 23 | verification: |
| 24 | assurance_level: E |
| 25 | formalization_status: none |
| 26 | review: |
| 27 | status: approved |
| 28 | reviewer: human:leonidbugaev |
| 29 | reviewed_at: "2026-04-23T00:00:00Z" |
| 30 | ai_generated: false |
| 31 | history: |
| 32 | created_by: human:cli |
| 33 | created_at: "2026-04-13T17:09:09Z" |
| 34 | last_modified_by: human:cli |
| 35 | last_modified_at: "2026-04-13T17:14:56Z" |
| 36 | stakeholder: |
| 37 | persona: Go developers reading string fields from dynamic JSON payloads |
| 38 | story: As a Go developer reading JSON string fields, I want escaped and Unicode content decoded into normal Go strings so that application code does not need to manually unescape payload bytes. |
| 39 | acceptance_criteria: |
| 40 | - id: AC-1 |
| 41 | text: A caller can request a string field and receive the correctly decoded Go string, including escaped and Unicode content, or an error when string access is invalid. |
| 42 | testable: true |
| 43 | derived_reqs: |
| 44 | - SYS-REQ-002 |
| 45 | - SYS-REQ-071 |
| 46 | - SYS-REQ-072 |
| 47 | - SYS-REQ-073 |
| 48 | - SYS-REQ-074 |
| 49 | - SYS-REQ-090 |
| 50 | - SYS-REQ-091 |
| 51 | - SYS-REQ-092 |
| 52 | - SYS-REQ-093 |
| 53 | obligation_checklist: |
| 54 | - nominal |
| 55 | - malformed_input |
| 56 | - truncated_escape_sequence |
| 57 | - type_mismatch |
| 58 | - empty_input |
| 59 | - determinism |
| 60 | - nil_safety |
| 61 | - encoding_safety |
| 62 | - edge_case |
| 63 | lifecycle: |
| 64 | change_history: |
| 65 | - date: "2026-04-13T17:14:56Z" |
| 66 | from: draft |
| 67 | to: review |
| 68 | reason: "" |
| 69 | changed_by: human:cli |