| 1 | id: SYS-REQ-020 |
| 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_object_key | !segment_is_evaluated_at_current_scope | returns_value_from_current_scope_object_key |
| 8 | description: When the current path segment is an object key and it is evaluated at the current JSON structural scope, Get shall resolve that segment only against object members in that current scope. |
| 9 | formalization_strategy: fretish |
| 10 | informal_verification: |
| 11 | method: "" |
| 12 | evidence: "" |
| 13 | verified: false |
| 14 | component: parser |
| 15 | rationale: Correct lookup depends on respecting JSON structural scope rather than matching a similarly named key in a sibling or deeper subtree. |
| 16 | tags: |
| 17 | - decomposition |
| 18 | - get |
| 19 | - scope |
| 20 | variables: |
| 21 | - path_segment_is_object_key |
| 22 | - segment_is_evaluated_at_current_scope |
| 23 | - returns_value_from_current_scope_object_key |
| 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.251389Z" |
| 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:12676c081ba40ab01cbf8b3aea1340bcdd1605430720ccc2bea3d15ed066b037 |
| 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: nominal |
| 51 | lifecycle: |
| 52 | change_history: |
| 53 | - date: "2026-04-14T00:00:00Z" |
| 54 | from: draft |
| 55 | to: review |
| 56 | reason: Added explicit structural-scope behavior for object-key path lookup. |
| 57 | changed_by: human:cli |