id: SYS-REQ-046 version: 1 status: review priority: shall category: functional req_type: guarantee fretish: the parser shall always satisfy !blockEnd_returns_negative_one | caller_handles_blockEnd_sentinel description: When internal helper blockEnd returns -1 indicating no matching closing bracket or brace was found, all callers of blockEnd shall treat this as a malformed-structure condition and shall not proceed with normal value extraction. formalization_strategy: fretish informal_verification: method: "" evidence: "" verified: false component: parser rationale: blockEnd returning -1 is a sentinel value that indicates truncated or malformed structural input. All callers must check for this before using the return value as an offset. tags: - sentinel - data-constraint variables: - blockEnd_returns_negative_one - caller_handles_blockEnd_sentinel traces: satisfies: - STK-REQ-001 verified_by_extra: - deep_spec_test.go documented_by_extra: - README.md reviewed_at: "2026-04-27T06:25:19.300507Z" 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: sentinel_value_boundary lifecycle: change_history: - date: "2026-04-14T18:00:00Z" from: draft to: review reason: Added explicit sentinel-value boundary requirement for blockEnd callers. changed_by: agent:claude