Debian Codegraph @

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

raw symbols SCIP
1 id: SYS-REQ-041
2 version: 1
3 status: review
4 priority: shall
5 category: functional
6 req_type: guarantee
7 fretish: the parser shall always satisfy !input_is_truncated_at_value_boundary | returns_error_for_truncated_value_boundary
8 description: When the JSON input is truncated at a value boundary (e.g., the value token ends at EOF with no closing delimiter such as '{"a":1' with no closing brace), Get shall return a parse-related error or not-found result and shall not panic or use an out-of-bounds index.
9 formalization_strategy: fretish
10 informal_verification:
11 method: ""
12 evidence: ""
13 verified: false
14 component: parser
15 rationale: 'PR #280 demonstrated that tokenEnd returns len(data) as a sentinel when no delimiter is found, and callers that use this sentinel as an array index without bounds checking will panic. This obligation class must be modeled explicitly.'
16 tags:
17 - truncation
18 - sentinel
19 - pr280
20 variables:
21 - input_is_truncated_at_value_boundary
22 - returns_error_for_truncated_value_boundary
23 traces:
24 satisfies:
25 - STK-REQ-001
26 verified_by_extra:
27 - deep_spec_test.go
28 documented_by_extra:
29 - README.md
30 reviewed_at: "2026-04-27T06:25:19.29222Z"
31 reviewed_by: human:leonidbugaev
32 verification:
33 assurance_level: E
34 formalization_status: valid
35 review:
36 status: approved
37 reviewer: human:leonidbugaev
38 reviewed_at: "2026-04-23T00:00:00Z"
39 ai_generated: false
40 history:
41 created_by: agent:claude
42 created_at: "2026-04-14T18:00:00Z"
43 last_modified_by: agent:claude
44 last_modified_at: "2026-04-14T18:00:00Z"
45 obligation_class: truncated_at_value_boundary
46 lifecycle:
47 change_history:
48 - date: "2026-04-14T18:00:00Z"
49 from: draft
50 to: review
51 reason: Added explicit truncated-at-value-boundary behavior for Get to prevent PR
52 changed_by: agent:claude