Skip to content

Commit c85e08b

Browse files
committed
docs(adr-0104): name the retired-defs entry instead of an UNKNOWN_KEY_GUIDANCE tombstone
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziAkt9vZhLphG64TmD
1 parent fb8e9d1 commit c85e08b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎docs/adr/0104-field-runtime-value-shape-contract.md‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ Directive #2. It exports:
163163
**Reality wins.** Where the de-facto stored shape is coherent, the contract
164164
adopts it — deployed data is a wire contract we don't get to rewrite by
165165
editing Zod. Concretely: `currency` **is a scalar number** —
166-
`CurrencyValueSchema` is deleted (tombstoned in `UNKNOWN_KEY_GUIDANCE` /
167-
changelog with the FROM → TO note); `location` adopts the stored `{lat, lng}`
166+
`CurrencyValueSchema` is deleted (registered in `RETIRED_DEFS_BY_MAJOR` with a
167+
D3 semantic entry and the changelog carrying the FROM → TO note — see the
168+
2026-10-28 note below); `location` adopts the stored `{lat, lng}`
168169
and `LocationCoordinatesSchema` is rewritten to match; `AddressSchema` is
169170
either adopted by the contract and enforced, or deleted — it does not remain
170171
exported-but-dead. An exported-but-unconsumed value schema is exactly the
@@ -176,12 +177,14 @@ inert metadata ADR-0078 forbids.
176177
> `@objectstack/spec/data`, `@deprecated`, with zero readers. They are now
177178
> removed, ahead of the multi-currency epic #8345 (ruling 6465431966 on
178179
> #27119), so that no author reads `{value, currency}` as the shape that
179-
> records a currency. With no carrier key there is nothing for a
180-
> `retiredKey()` tombstone or an `UNKNOWN_KEY_GUIDANCE` entry to sit on, so the
180+
> records a currency. The schema had no carrier key, so there is no
181+
> `retiredKey()` tombstone and no guidance-map entry: the
181182
> FROM → TO note (a currency value is a bare number; the code is
182183
> `currencyConfig.defaultCurrency`) is carried by `RETIRED_DEFS_BY_MAJOR[18]`
183184
> (`data/CurrencyValue`), the D3 semantic entry
184-
> `currency-value-schema-retired` and the changelog.
185+
> `currency-value-schema-retired` (entry file
186+
> `packages/spec/src/migrations/entries/retired-defs/18.data__CurrencyValue.ts`)
187+
> and the changelog.
185188
186189
**Consumers converge on the contract** (each keeps its role, loses its private
187190
type lists):

0 commit comments

Comments
 (0)