PR: #349: [Story-1360] Mirror flat Atlas contract — prayers[] + approximate value by @ankitmaheshwari-com
View PR →
Story 1360

Mirror the flat Atlas contract in app — prayers[] + approximate value

pramaan-agents #85 (Story-1359) flattened the Atlas generation contract. The brain now emits a flat AtlasFrameOutput: no proposal.refined.* nesting, reliefSought{principal,interest,costs} collapsed into a flat prayers: list[str], and value reduced to an approximate value_amount_minor + value_currency (the basis tag is gone). The Step-5 editable Matter Frame still read the old nested shape, so live staging Atlas review was broken. This change brings the app's hand-owned mirror in line (no src/gen codegen — these Atlas wire types are hand-owned per the TODO in step5-review-form.tsx).

The wire + UI types went flat

The editable draft + its controls

Read-only review + i18n

Old shape → new shape

Old (nested) New (flat)
proposal.refined.coreDispute proposal.coreDispute
proposal.refined.reliefSought{principal,interest,costs} proposal.prayers: string[]
proposal.refined.valueAtStake{currency,amountMinor,basis} proposal.value{currency,amountMinor} (no basis)
proposal.refined.proceedingType proposal.proceedingType

Acceptance criteria

Verification

Files changed

15 file(s), +146 / -319 lines

Path Role + -
messages/en.jsonConfig+1-12
messages/hi.jsonConfig+1-12
src/components/add-matter/step5-review/__mocks__/atlas-turns.tsComponent+9-15
src/components/add-matter/step5-review/atlas-types.tsComponent+14-13
src/components/add-matter/step5-review/build-stub-turn.tsComponent+6-9
src/components/add-matter/step5-review/editable-matter-frame.stories.tsxComponent+7-13
src/components/add-matter/step5-review/editable-matter-frame.tsxComponent+9-49
src/components/add-matter/step5-review/editable-review-substrate.tsxComponent+2-20
src/components/add-matter/step5-review/relief-sought-card.stories.tsxComponent+0-24
src/components/add-matter/step5-review/relief-sought-card.tsxComponent+0-34
src/components/add-matter/step5-review/step5-review-form.tsxComponent+15-21
src/components/add-matter/step5-review/to-editable-matter-frame.tsComponent+11-18
src/lib/agents/__tests__/atlas-rail.test.tsLibrary+22-17
src/lib/agents/atlas-rail.tsLibrary+27-49
src/stores/matter-frame-draft-store.tsSource+22-13