id: SYS-REQ-042 version: 1 status: review priority: shall category: functional req_type: guarantee fretish: the parser shall always satisfy !input_is_truncated_mid_structure | returns_error_for_truncated_mid_structure description: When the JSON input is truncated in the middle of a structural element (e.g., an object or array that is opened but never closed, such as '{"a":[1,2'), Get shall return a parse-related error and shall not panic. formalization_strategy: fretish informal_verification: method: "" evidence: "" verified: false component: parser rationale: Truncated mid-structure input exercises blockEnd returning -1, which is behaviorally distinct from truncated-at-value-boundary where tokenEnd returns len(data). tags: - truncation - structure variables: - input_is_truncated_mid_structure - returns_error_for_truncated_mid_structure traces: satisfies: - STK-REQ-001 verified_by_extra: - deep_spec_test.go documented_by_extra: - README.md reviewed_at: "2026-04-27T06:25:19.293857Z" 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_mid_structure lifecycle: change_history: - date: "2026-04-14T18:00:00Z" from: draft to: review reason: Added explicit truncated-mid-structure behavior for Get. changed_by: agent:claude