id: SYS-REQ-045 version: 1 status: review priority: shall category: functional req_type: guarantee fretish: the parser shall always satisfy !stringEnd_returns_negative_one | caller_handles_stringEnd_sentinel description: When internal helper stringEnd returns -1 indicating no closing quote was found, all callers of stringEnd shall treat this as a malformed-string condition and shall not proceed with normal value extraction. formalization_strategy: fretish informal_verification: method: "" evidence: "" verified: false component: parser rationale: stringEnd returning -1 is a sentinel value that indicates truncated or malformed string input. All callers must check for this before using the return value as an offset. tags: - sentinel - data-constraint variables: - stringEnd_returns_negative_one - caller_handles_stringEnd_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.298877Z" 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 stringEnd callers. changed_by: agent:claude