| 1 | id: SYS-REQ-016 |
| 2 | version: 1 |
| 3 | status: approved |
| 4 | priority: shall |
| 5 | category: functional |
| 6 | req_type: guarantee |
| 7 | fretish: the parser shall always satisfy !json_input_is_well_formed | !key_path_is_provided | addressed_path_exists | returns_missing_path_result_for_well_formed_lookup |
| 8 | description: When the JSON input is well formed, a key path is provided, and the addressed path does not exist, the parser shall return the defined not-found result with `NotExist`, offset `-1`, and `KeyPathNotFoundError`. |
| 9 | formalization_strategy: fretish |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: The Get contract is not complete unless the missing-path outcome is specified independently from successful lookup and incomplete-input failure. |
| 16 | tags: |
| 17 | - decomposition |
| 18 | - get |
| 19 | variables: |
| 20 | - json_input_is_well_formed |
| 21 | - key_path_is_provided |
| 22 | - addressed_path_exists |
| 23 | - returns_missing_path_result_for_well_formed_lookup |
| 24 | traces: |
| 25 | satisfies: |
| 26 | - STK-REQ-001 |
| 27 | verified_by_extra: |
| 28 | - deep_spec_test.go |
| 29 | - parser_test.go |
| 30 | documented_by_extra: |
| 31 | - README.md |
| 32 | reviewed_at: "2026-04-27T06:25:19.244005Z" |
| 33 | reviewed_by: human:leonidbugaev |
| 34 | verification: |
| 35 | assurance_level: B |
| 36 | formalization_status: valid |
| 37 | review: |
| 38 | status: approved |
| 39 | reviewer: human:leonidbugaev |
| 40 | role: system_owner |
| 41 | reviewed_at: "2026-04-18T10:12:51Z" |
| 42 | comment: 'Dogfooding: Get lookup behavior reviewed and complete' |
| 43 | fingerprint: sha256:65584e6f1fbb32c7840da452eaab02b8810f5f3eda013c6cfed6aa58adb0f28a |
| 44 | ai_generated: false |
| 45 | history: |
| 46 | created_by: human:cli |
| 47 | created_at: "2026-04-14T00:00:00Z" |
| 48 | last_modified_by: human:cli |
| 49 | last_modified_at: "2026-04-18T10:12:51Z" |
| 50 | obligation_class: missing_path |
| 51 | lifecycle: |
| 52 | change_history: |
| 53 | - date: "2026-04-14T00:00:00Z" |
| 54 | from: draft |
| 55 | to: review |
| 56 | reason: Split out missing-path behavior from the umbrella Get requirement. |
| 57 | changed_by: human:cli |