Debian Codegraph @

specs/system/requirements/SYS-REQ-108.req.yaml

raw symbols SCIP
1 id: SYS-REQ-108
2 version: 1
3 status: review
4 priority: shall
5 category: functional
6 req_type: guarantee
7 fretish: the parser shall always satisfy !parsestring_input_has_standard_escapes | parsestring_roundtrip_preserves_semantics
8 description: When ParseString is called on a byte slice containing standard JSON escape sequences (backslash-n, backslash-t, double backslash, backslash-solidus, backslash-doublequote, backslash-uXXXX), the decoded Go string shall contain the correct Unicode codepoints such that re-encoding to JSON would produce semantically equivalent escape sequences.
9 formalization_strategy: fretish
10 informal_verification:
11 method: ""
12 evidence: ""
13 verified: false
14 component: parser
15 rationale: Encoding safety for ParseString ensures that the decode path does not lose information. The decoded string must represent the same semantic content as the original JSON encoding.
16 tags:
17 - parsestring
18 - encoding_safety
19 variables:
20 - parsestring_input_has_standard_escapes
21 - parsestring_roundtrip_preserves_semantics
22 traces:
23 satisfies:
24 - STK-REQ-007
25 verified_by_extra:
26 - obligation_property_test.go
27 documented_by_extra:
28 - README.md
29 reviewed_at: "2026-04-27T06:25:19.433955Z"
30 reviewed_by: human:leonidbugaev
31 verification:
32 assurance_level: E
33 formalization_status: valid
34 review:
35 status: approved
36 reviewer: human:leonidbugaev
37 reviewed_at: "2026-04-21T00:00:00Z"
38 ai_generated: false
39 history:
40 created_by: agent:claude
41 created_at: "2026-04-21T00:00:00Z"
42 last_modified_by: agent:claude
43 last_modified_at: "2026-04-21T00:00:00Z"
44 obligation_class: encoding_safety
45 lifecycle:
46 change_history:
47 - date: "2026-04-21T00:00:00Z"
48 from: draft
49 to: review
50 reason: Added encoding-safety obligation for ParseString.
51 changed_by: agent:claude