| 1 | id: SYS-REQ-022 |
| 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 | returns_invalid_array_index_not_found |
| 8 | description: When the current path segment is intended as an array index but its syntax is malformed, Get shall return the defined not-found result rather than a successful lookup. |
| 9 | formalization_strategy: fretish |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: Malformed array-index syntax is an externally visible path-interpretation case and should not be hidden inside a generic lookup-miss predicate. |
| 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 | - returns_invalid_array_index_not_found |
| 25 | traces: |
| 26 | satisfies: |
| 27 | - STK-REQ-001 |
| 28 | verified_by_extra: |
| 29 | - deep_spec_test.go |
| 30 | - parser_test.go |
| 31 | documented_by_extra: |
| 32 | - README.md |
| 33 | reviewed_at: "2026-04-27T06:25:19.254779Z" |
| 34 | reviewed_by: human:leonidbugaev |
| 35 | verification: |
| 36 | assurance_level: B |
| 37 | formalization_status: valid |
| 38 | review: |
| 39 | status: approved |
| 40 | reviewer: human:leonidbugaev |
| 41 | role: system_owner |
| 42 | reviewed_at: "2026-04-18T10:12:51Z" |
| 43 | comment: 'Dogfooding: Get lookup behavior reviewed and complete' |
| 44 | fingerprint: sha256:194df24fbe1b13a7467df7d0b013ec3904615750f6baebd656a8b6016765a432 |
| 45 | ai_generated: false |
| 46 | history: |
| 47 | created_by: human:cli |
| 48 | created_at: "2026-04-14T00:00:00Z" |
| 49 | last_modified_by: human:cli |
| 50 | last_modified_at: "2026-04-18T10:12:51Z" |
| 51 | obligation_class: malformed_input |
| 52 | lifecycle: |
| 53 | change_history: |
| 54 | - date: "2026-04-14T00:00:00Z" |
| 55 | from: draft |
| 56 | to: review |
| 57 | reason: Added explicit malformed array-index behavior for Get. |
| 58 | changed_by: human:cli |