id: STK-REQ-007 version: 1 status: review priority: shall category: functional req_type: guarantee fretish: "" description: Library users shall parse raw JSON scalar tokens into Go boolean, integer, float, and decoded string values with deterministic error behavior on malformed input. formalization_strategy: informal informal_verification: method: "" evidence: "" verified: false component: parser rationale: The Parse* helpers are public token-level conversion utilities and their malformed-input behavior is part of the callable API surface. tags: - parse - decomposition variables: [] traces: documented_by_extra: - README.md reviewed_at: "2026-04-27T06:25:19.208511Z" reviewed_by: human:leonidbugaev verification: assurance_level: E formalization_status: none review: status: approved reviewer: human:leonidbugaev reviewed_at: "2026-04-23T00:00:00Z" ai_generated: false history: created_by: human:cli created_at: "2026-04-13T17:21:50Z" last_modified_by: agent:codex last_modified_at: "2026-04-14T15:45:00Z" stakeholder: persona: Go developers converting raw JSON scalar tokens into typed values story: As a Go developer working with raw JSON scalar tokens, I want Parse helpers that convert boolean, integer, float, and string tokens into Go values with deterministic malformed-input behavior so that I can safely reuse the parser below full document traversal. acceptance_criteria: - id: AC-1 text: A caller can parse raw boolean tokens through ParseBoolean and receive the expected bool value or the documented malformed-token error. testable: true derived_reqs: - SYS-REQ-012 - SYS-REQ-036 - SYS-REQ-057 - SYS-REQ-066 - id: AC-2 text: A caller can parse raw floating-point tokens through ParseFloat and receive the expected float64 value or the documented malformed-token error. testable: true derived_reqs: - SYS-REQ-013 - SYS-REQ-037 - SYS-REQ-065 - id: AC-3 text: A caller can parse raw string tokens through ParseString and receive the expected decoded Go string value or the documented malformed-token error. testable: true derived_reqs: - SYS-REQ-014 - SYS-REQ-038 - SYS-REQ-060 - SYS-REQ-061 - SYS-REQ-062 - SYS-REQ-063 - SYS-REQ-067 - id: AC-4 text: A caller can parse raw integer tokens through ParseInt and receive the expected int64 value, the documented overflow error, or the documented malformed-token error. testable: true derived_reqs: - SYS-REQ-015 - SYS-REQ-039 - SYS-REQ-040 - SYS-REQ-058 - SYS-REQ-059 - SYS-REQ-064 - SYS-REQ-106 - SYS-REQ-107 - SYS-REQ-108 - SYS-REQ-109 obligation_checklist: - nominal - malformed_input - boundary - partial_literal - truncated_escape_sequence - empty_input - determinism - nil_safety - encoding_safety - edge_case lifecycle: change_history: - date: "2026-04-13T17:27:00Z" from: draft to: review reason: "" changed_by: human:cli - date: "2026-04-14T15:45:00Z" from: review to: review reason: Strengthened Parse helper acceptance criteria to distinguish valid, malformed, and overflow behaviors. changed_by: agent:codex