id: SYS-REQ-061 version: 1 status: review priority: shall category: functional req_type: guarantee fretish: the parser shall always satisfy !raw_string_has_missing_low_surrogate | returns_error_for_missing_low_surrogate description: When ParseString encounters a UTF-16 high surrogate escape (e.g., '\uD800') that is not followed by a valid low surrogate escape, the parser shall return MalformedValueError rather than producing corrupted output. formalization_strategy: fretish informal_verification: method: "" evidence: "" verified: false component: parser rationale: Surrogate pair handling in decodeUnicodeEscape requires both high and low surrogates. A missing or invalid low surrogate exercises a distinct failure path. tags: - parse - string - unicode - surrogate variables: - raw_string_has_missing_low_surrogate - returns_error_for_missing_low_surrogate traces: satisfies: - STK-REQ-007 verified_by_extra: - deep_spec_test.go documented_by_extra: - README.md reviewed_at: "2026-04-27T06:25:19.330213Z" 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_escape_sequence lifecycle: change_history: - date: "2026-04-14T18:00:00Z" from: draft to: review reason: Added explicit missing-low-surrogate rejection requirement for ParseString. changed_by: agent:claude