| 1 | id: STK-REQ-006 |
| 2 | version: 1 |
| 3 | status: review |
| 4 | priority: shall |
| 5 | category: functional |
| 6 | req_type: guarantee |
| 7 | fretish: "" |
| 8 | description: Library users shall retrieve addressed JSON values as zero-allocation raw strings without JSON unescaping when they intentionally choose the unsafe helper. |
| 9 | formalization_strategy: informal |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: GetUnsafeString is a distinct public contract from GetString because it trades escaping semantics for speed and zero-allocation string mapping. |
| 16 | tags: [] |
| 17 | variables: [] |
| 18 | traces: |
| 19 | documented_by_extra: |
| 20 | - README.md |
| 21 | reviewed_at: "2026-04-27T06:25:19.206431Z" |
| 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:21:50Z" |
| 34 | last_modified_by: human:cli |
| 35 | last_modified_at: "2026-04-13T17:27:00Z" |
| 36 | stakeholder: |
| 37 | persona: Go developers reading JSON tokens with minimal allocations |
| 38 | story: As a Go developer reading JSON byte payloads, I want an unsafe helper that exposes addressed values as raw strings without unescaping so that I can avoid extra allocations when I explicitly accept the tradeoff. |
| 39 | acceptance_criteria: |
| 40 | - id: AC-1 |
| 41 | text: A caller can retrieve an addressed JSON value through GetUnsafeString and receive the raw bytes as a Go string without JSON unescaping, including the documented lookup-miss behavior from the underlying path lookup. |
| 42 | testable: true |
| 43 | derived_reqs: |
| 44 | - SYS-REQ-011 |
| 45 | - SYS-REQ-080 |
| 46 | - SYS-REQ-081 |
| 47 | - SYS-REQ-082 |
| 48 | - SYS-REQ-103 |
| 49 | - SYS-REQ-104 |
| 50 | - SYS-REQ-105 |
| 51 | obligation_checklist: |
| 52 | - nominal |
| 53 | - malformed_input |
| 54 | - empty_input |
| 55 | - truncated_at_value_boundary |
| 56 | - determinism |
| 57 | - nil_safety |
| 58 | - edge_case |
| 59 | lifecycle: |
| 60 | change_history: |
| 61 | - date: "2026-04-13T17:27:00Z" |
| 62 | from: draft |
| 63 | to: review |
| 64 | reason: "" |
| 65 | changed_by: human:cli |