id: SYS-REQ-085 version: 1 status: review priority: shall category: functional req_type: guarantee fretish: the parser shall always satisfy !eachkey_tokenEnd_sentinel_reached | eachkey_handles_sentinel_safely description: When EachKey encounters a tokenEnd sentinel value (len(data)) during multi-path scanning, the parser shall treat it as an end-of-input condition and return -1 or error rather than using it as an unchecked array index. formalization_strategy: fretish informal_verification: method: "" evidence: "" verified: false component: parser rationale: EachKey uses searchKeys and Get internally. The same tokenEnd sentinel patterns that caused PR tags: - eachkey - sentinel variables: - eachkey_tokenEnd_sentinel_reached - eachkey_handles_sentinel_safely traces: satisfies: - STK-REQ-004 verified_by_extra: - deep_spec_test.go documented_by_extra: - README.md reviewed_at: "2026-04-27T06:25:19.38525Z" 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 sentinel-value boundary handling requirement for EachKey. changed_by: agent:claude