Debian Codegraph @

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

raw symbols SCIP
1 id: SYS-REQ-048
2 version: 1
3 status: review
4 priority: shall
5 category: functional
6 req_type: guarantee
7 fretish: the parser shall always satisfy !delete_input_is_truncated_at_value_boundary | (delete_returns_original_input_on_truncated_value & delete_completes_without_panic_on_truncated_value)
8 description: When Delete is called on input that is truncated at a value boundary (the exact PR
9 formalization_strategy: fretish
10 informal_verification:
11 method: ""
12 evidence: ""
13 verified: false
14 component: parser
15 rationale: 'This is the exact bug class from PR #280. Delete calls tokenEnd on truncated input, gets len(data) back, then uses data[endOffset+tokEnd] which panics with index out of range. This specific truncation pattern for Delete must have its own requirement.'
16 tags:
17 - pr280
18 - delete
19 - truncation
20 - sentinel
21 variables:
22 - delete_input_is_truncated_at_value_boundary
23 - delete_returns_original_input_on_truncated_value
24 - delete_completes_without_panic_on_truncated_value
25 traces:
26 satisfies:
27 - STK-REQ-005
28 verified_by_extra:
29 - deep_spec_test.go
30 documented_by_extra:
31 - README.md
32 reviewed_at: "2026-04-27T06:25:19.304488Z"
33 reviewed_by: human:leonidbugaev
34 verification:
35 assurance_level: E
36 formalization_status: valid
37 review:
38 status: approved
39 reviewer: human:leonidbugaev
40 reviewed_at: "2026-04-23T00:00:00Z"
41 ai_generated: false
42 history:
43 created_by: agent:claude
44 created_at: "2026-04-14T18:00:00Z"
45 last_modified_by: agent:claude
46 last_modified_at: "2026-04-14T18:00:00Z"
47 obligation_class: truncated_at_value_boundary
48 lifecycle:
49 change_history:
50 - date: "2026-04-14T18:00:00Z"
51 from: draft
52 to: review
53 reason: 'Added explicit Delete truncated-at-value-boundary requirement -- the exact PR #280 bug class.'
54 changed_by: agent:claude