| 1 | id: SYS-REQ-023 |
| 2 | version: 1 |
| 3 | status: approved |
| 4 | priority: shall |
| 5 | category: functional |
| 6 | req_type: guarantee |
| 7 | fretish: the parser shall always satisfy !path_segment_is_array_index | !array_index_segment_is_valid | !array_index_is_out_of_bounds | returns_oob_array_index_not_found |
| 8 | description: When the current path segment is a valid array index but the index is out of bounds for the addressed array, Get shall return the defined not-found result. |
| 9 | formalization_strategy: fretish |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: Out-of-bounds array access is behaviorally distinct from malformed index syntax and from successful element resolution. |
| 16 | tags: |
| 17 | - decomposition |
| 18 | - get |
| 19 | - array-index |
| 20 | - edge-case |
| 21 | variables: |
| 22 | - path_segment_is_array_index |
| 23 | - array_index_segment_is_valid |
| 24 | - array_index_is_out_of_bounds |
| 25 | - returns_oob_array_index_not_found |
| 26 | traces: |
| 27 | satisfies: |
| 28 | - STK-REQ-001 |
| 29 | verified_by_extra: |
| 30 | - deep_spec_test.go |
| 31 | - parser_test.go |
| 32 | documented_by_extra: |
| 33 | - README.md |
| 34 | reviewed_at: "2026-04-27T06:25:19.256398Z" |
| 35 | reviewed_by: human:leonidbugaev |
| 36 | verification: |
| 37 | assurance_level: B |
| 38 | formalization_status: valid |
| 39 | review: |
| 40 | status: approved |
| 41 | reviewer: human:leonidbugaev |
| 42 | role: system_owner |
| 43 | reviewed_at: "2026-04-18T10:12:51Z" |
| 44 | comment: 'Dogfooding: Get lookup behavior reviewed and complete' |
| 45 | fingerprint: sha256:a9fd0a8264848951f6fbd22cbc23967bb336901bc18664986e933990025f4c54 |
| 46 | ai_generated: false |
| 47 | history: |
| 48 | created_by: human:cli |
| 49 | created_at: "2026-04-14T00:00:00Z" |
| 50 | last_modified_by: human:cli |
| 51 | last_modified_at: "2026-04-18T10:12:51Z" |
| 52 | obligation_class: boundary |
| 53 | lifecycle: |
| 54 | change_history: |
| 55 | - date: "2026-04-14T00:00:00Z" |
| 56 | from: draft |
| 57 | to: review |
| 58 | reason: Added explicit out-of-bounds array-index behavior for Get. |
| 59 | changed_by: human:cli |