| 1 | id: STK-REQ-003 |
| 2 | version: 1 |
| 3 | status: review |
| 4 | priority: shall |
| 5 | category: functional |
| 6 | req_type: guarantee |
| 7 | fretish: "" |
| 8 | description: Library users shall extract known numeric and boolean JSON values through typed helpers without manual byte parsing or ad-hoc conversions. |
| 9 | formalization_strategy: informal |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: The README presents typed helpers as part of the public API for callers who already know the expected JSON scalar type. |
| 16 | tags: [] |
| 17 | variables: [] |
| 18 | traces: |
| 19 | documented_by_extra: |
| 20 | - README.md |
| 21 | reviewed_at: "2026-04-27T06:25:19.200401Z" |
| 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:10:33Z" |
| 34 | last_modified_by: human:cli |
| 35 | last_modified_at: "2026-04-13T17:14:56Z" |
| 36 | stakeholder: |
| 37 | persona: Go developers reading known scalar fields from dynamic JSON payloads |
| 38 | story: As a Go developer who knows the expected scalar type of a JSON field, I want typed helper accessors so that I can avoid manual byte parsing and get explicit errors on invalid access. |
| 39 | acceptance_criteria: |
| 40 | - id: AC-1 |
| 41 | text: A caller can request an integer-valued field through a typed helper and receive the expected int64 result or an error when integer access is invalid. |
| 42 | testable: true |
| 43 | derived_reqs: |
| 44 | - SYS-REQ-003 |
| 45 | - SYS-REQ-075 |
| 46 | - SYS-REQ-076 |
| 47 | - SYS-REQ-077 |
| 48 | - SYS-REQ-078 |
| 49 | - id: AC-2 |
| 50 | text: A caller can request a floating-point field through a typed helper and receive the expected float64 result or an error when float access is invalid. |
| 51 | testable: true |
| 52 | derived_reqs: |
| 53 | - SYS-REQ-004 |
| 54 | - id: AC-3 |
| 55 | text: A caller can request a boolean field through a typed helper and receive the expected bool result or an error when boolean access is invalid. |
| 56 | testable: true |
| 57 | derived_reqs: |
| 58 | - SYS-REQ-005 |
| 59 | - SYS-REQ-079 |
| 60 | - SYS-REQ-094 |
| 61 | - SYS-REQ-095 |
| 62 | - SYS-REQ-096 |
| 63 | obligation_checklist: |
| 64 | - nominal |
| 65 | - malformed_input |
| 66 | - boundary |
| 67 | - type_mismatch |
| 68 | - empty_input |
| 69 | - partial_literal |
| 70 | - determinism |
| 71 | - nil_safety |
| 72 | - edge_case |
| 73 | lifecycle: |
| 74 | change_history: |
| 75 | - date: "2026-04-13T17:14:56Z" |
| 76 | from: draft |
| 77 | to: review |
| 78 | reason: "" |
| 79 | changed_by: human:cli |