Debian Codegraph @

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

raw symbols SCIP
1 id: SYS-REQ-068
2 version: 1
3 status: review
4 priority: shall
5 category: functional
6 req_type: guarantee
7 fretish: the parser shall always satisfy !set_path_points_beyond_eof | set_returns_error_for_path_beyond_eof
8 description: When Set is called with a path that resolves to a location beyond the end of the available data (e.g., setting a deep nested key in a truncated document), the parser shall return an error rather than panicking or producing corrupt output.
9 formalization_strategy: fretish
10 informal_verification:
11 method: ""
12 evidence: ""
13 verified: false
14 component: parser
15 rationale: Set uses internalGet for path resolution. If the path points beyond available data, the offsets returned may be sentinel values that cause out-of-bounds access in the mutation logic.
16 tags:
17 - set
18 - truncation
19 - sentinel
20 variables:
21 - set_path_points_beyond_eof
22 - set_returns_error_for_path_beyond_eof
23 traces:
24 satisfies:
25 - STK-REQ-005
26 verified_by_extra:
27 - deep_spec_test.go
28 documented_by_extra:
29 - README.md
30 reviewed_at: "2026-04-27T06:25:19.343749Z"
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: sentinel_value_boundary
46 lifecycle:
47 change_history:
48 - date: "2026-04-14T18:00:00Z"
49 from: draft
50 to: review
51 reason: Added explicit Set path-beyond-EOF error requirement.
52 changed_by: agent:claude