| 1 | id: SYS-REQ-056 |
| 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_mid_structure | (delete_returns_original_input_on_truncated_structure & delete_completes_without_panic_on_truncated_structure) |
| 8 | description: When Delete is called on input that is truncated mid-structure (e.g., an object with an unclosed nested object like '{"a":{"b":1'), the parser shall return the original byte payload unchanged and shall not panic. |
| 9 | formalization_strategy: fretish |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: Mid-structure truncation in Delete exercises both internalGet and findKeyStart with incomplete structural input, which is a distinct truncation pattern from at-value-boundary. |
| 16 | tags: |
| 17 | - delete |
| 18 | - truncation |
| 19 | - structure |
| 20 | variables: |
| 21 | - delete_input_is_truncated_mid_structure |
| 22 | - delete_returns_original_input_on_truncated_structure |
| 23 | - delete_completes_without_panic_on_truncated_structure |
| 24 | traces: |
| 25 | satisfies: |
| 26 | - STK-REQ-005 |
| 27 | verified_by_extra: |
| 28 | - deep_spec_test.go |
| 29 | documented_by_extra: |
| 30 | - README.md |
| 31 | reviewed_at: "2026-04-27T06:25:19.319859Z" |
| 32 | reviewed_by: human:leonidbugaev |
| 33 | verification: |
| 34 | assurance_level: E |
| 35 | formalization_status: valid |
| 36 | review: |
| 37 | status: approved |
| 38 | reviewer: human:leonidbugaev |
| 39 | reviewed_at: "2026-04-23T00:00:00Z" |
| 40 | ai_generated: false |
| 41 | history: |
| 42 | created_by: agent:claude |
| 43 | created_at: "2026-04-14T18:00:00Z" |
| 44 | last_modified_by: agent:claude |
| 45 | last_modified_at: "2026-04-14T18:00:00Z" |
| 46 | obligation_class: truncated_mid_structure |
| 47 | lifecycle: |
| 48 | change_history: |
| 49 | - date: "2026-04-14T18:00:00Z" |
| 50 | from: draft |
| 51 | to: review |
| 52 | reason: Added explicit Delete mid-structure truncation no-panic requirement. |
| 53 | changed_by: agent:claude |