id: SYS-REQ-041 version: 1 status: review priority: shall category: functional req_type: guarantee fretish: the parser shall always satisfy !input_is_truncated_at_value_boundary | returns_error_for_truncated_value_boundary description: When the JSON input is truncated at a value boundary (e.g., the value token ends at EOF with no closing delimiter such as '{"a":1' with no closing brace), Get shall return a parse-related error or not-found result and shall not panic or use an out-of-bounds index. formalization_strategy: fretish informal_verification: method: "" evidence: "" verified: false component: parser rationale: 'PR #280 demonstrated that tokenEnd returns len(data) as a sentinel when no delimiter is found, and callers that use this sentinel as an array index without bounds checking will panic. This obligation class must be modeled explicitly.' tags: - truncation - sentinel - pr280 variables: - input_is_truncated_at_value_boundary - returns_error_for_truncated_value_boundary traces: satisfies: - STK-REQ-001 verified_by_extra: - deep_spec_test.go documented_by_extra: - README.md reviewed_at: "2026-04-27T06:25:19.29222Z" reviewed_by: human:leonidbugaev verification: assurance_level: E formalization_status: valid review: status: approved reviewer: human:leonidbugaev reviewed_at: "2026-04-23T00:00:00Z" ai_generated: false history: created_by: agent:claude created_at: "2026-04-14T18:00:00Z" last_modified_by: agent:claude last_modified_at: "2026-04-14T18:00:00Z" obligation_class: truncated_at_value_boundary lifecycle: change_history: - date: "2026-04-14T18:00:00Z" from: draft to: review reason: Added explicit truncated-at-value-boundary behavior for Get to prevent PR changed_by: agent:claude