Skip to content

Commit 361f8f2

Browse files
committed
test(spec): the field form omits currencyConfig.homeAmount until the engine writes it
The form/Zod reconciliation gate refuses a key the Zod accepts and the form does not offer. `homeAmount` is offered in no form yet, deliberately: nothing writes the home amount until the write-time projection lands in the same release, so the gate's ledger carries a `planned` omit, the precedent of the other spec-first keys. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2fi9zfJhUTubyJYb6V
1 parent 6db7ac8 commit 361f8f2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎packages/spec/src/system/metadata-form-zod-reconciliation.test.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,16 @@ const LEDGER: ReadonlyArray<OmitEntry | SubsetEntry> = [
365365
key: 'conditionalFormatting',
366366
why: "planned, not yet rendered — a field's cell formatting rules (`[{ condition, style }]`, the list view's own rule element) are validated at parse and their CEL is judged at the authoring doors (it parses, it reads only `value` and `record`), but no renderer styles a cell from them until objectui's cell renderers read them, after the spec publishes. A form control offered today would let an author set a style nothing paints",
367367
},
368+
// [ADR-0144 D5] A record-mode amount's home-currency projection lands
369+
// spec-first the same way: declared and judged at parse, written by nothing
370+
// until the engine's write-time projection lands in the same release (D9).
371+
{
372+
kind: 'omit',
373+
type: 'field',
374+
path: 'currencyConfig',
375+
key: 'homeAmount',
376+
why: "planned, not yet written — the `{ field, rateDate, rateField }` pointers are validated at parse (all three required, each judged against the object's field map), but no engine converts the amount or stores the home amount and the rate until the write-time home-currency projection lands, which ADR-0144 D9 releases with this key. A form control offered today would let an author declare a home amount nothing writes",
377+
},
368378
{
369379
kind: 'omit',
370380
type: 'view',

0 commit comments

Comments
 (0)