You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f14a732
Browse filesBrowse the repository at this point in the historyBrowse files
docs(adr): ADR-0144 and the ADR-0104 note cite symbols, not line numbers
check:adr-symbol-anchors refuses a line number as an anchor form; the
readings now anchor to the declaring symbol or the file.
Claude-Session: https://claude.ai/code/session_01Utp6CbTZrFqRYNgjSaSbN5
Co-authored-by: Claude <noreply@anthropic.com>
`currency`). It has tenant scope, no platform default and `valueDomain: 'iso_4217_currency'`. It may be unset. It is mutable and keeps no history: probe B
77
77
of the measurement round saw a change relabel every stored `dynamic` amount.
78
-
-**The ISO 4217 value domain exists** (`packages/spec/src/shared/value-domain.zod.ts:159`). It checks membership in
79
-
`CURRENCY_FRACTION_DIGITS` (`packages/spec/src/data/currency-fraction-digits.ts:59`). Only that table's key set is
78
+
-**The ISO 4217 value domain exists** (`packages/spec/src/shared/value-domain.zod.ts#isValueDomainMember`). It checks
79
+
membership in `CURRENCY_FRACTION_DIGITS` (`packages/spec/src/data/currency-fraction-digits.ts#CURRENCY_FRACTION_DIGITS`). Only that table's key set is
lines. Control: `git grep -c currencyConfig -- packages/spec/src/data/field.zod.ts` prints 13.
84
84
-**The CEL standard library is pure.** Its header says: "Nothing registered here may be handed a resolver, a lazy
85
-
getter or any other callback into the host" (`packages/formula/src/stdlib.ts:6`). That purity keeps
85
+
getter or any other callback into the host" (`packages/formula/src/stdlib.ts`). That purity keeps
86
86
`objectstack build` byte-stable, so a formula function cannot read a rate table.
87
-
-**`CurrencyValueSchema` is still exported**, marked `@deprecated` (`field.zod.ts:581`, its type at `:3062`), although
87
+
-**`CurrencyValueSchema` is still exported**, marked `@deprecated` (`packages/spec/src/data/field.zod.ts#CurrencyValueSchema`, its type `#CurrencyValue`), although
88
88
ADR-0104 D1 says it "is deleted". #27182 retires it.
89
89
-**Today's numbers are silently wrong** (from the measurement round's probes over a real ObjectQL engine; the scratch
90
90
files were run and deleted and are not re-run for this record). The probes model a record currency the way authors
@@ -248,7 +248,7 @@ Version Packages, and the epic body says that happens only when a pair is comple
248
248
These are outside this decision, and each would need a decision of its own. The first eight are the workload rows'
249
249
"What is not in this list", each "a capability with no pull in tree". The last comes from the design record §13.
250
250
251
-
- A CEL `convertCurrency()`. The shape rules it out (D1), and it conflicts with `stdlib.ts:6`.
251
+
- A CEL `convertCurrency()`. The shape rules it out (D1), and it conflicts with the purity rule in the header of `packages/formula/src/stdlib.ts`.
252
252
- Read-time conversion.
253
253
- A built-in provider feed (ECB or similar). An app flow writes rows instead (D3).
254
254
- N×N pair rates. Every rate is against the home currency.
@@ -298,7 +298,7 @@ Where a source leans one way, the lean is quoted here, not adopted. This record
298
298
says money is computed in minor-unit integers or decimals, not floating point (「浮点算钱用最小单位整数或 decimal」).
299
299
Neither point is in the ruling.
300
300
4.**A home-amount declaration or a converting write while no home currency is set** (#27192, #27198).
301
-
`localization.currency` may be unset (`localization.manifest.ts:105`: `required: false`, no platform default). The
301
+
`localization.currency` may be unset (its manifest entry says `required: false`, and there is no platform default). The
302
302
ruling locks the setting once used. It does not say what happens while the setting is unset. The sources rule out a
303
303
silent default (design record §9: no CNY default).
304
304
5.**The unit of parameter 4** (#27185). "12 significant decimals" can mean 12 significant digits or 12 digits after
@@ -320,16 +320,16 @@ Where a source leans one way, the lean is quoted here, not adopted. This record
320
320
321
321
## Verification notes
322
322
323
-
Each reading below was taken at `cdec7473`. To re-check one, run its command on a newer `origin/main` and compare. A
324
-
changed line number means the file moved, not that the fact changed. Re-read the line before citing it.
323
+
Each reading below was taken at `cdec7473`. To re-check one, run its command on a newer `origin/main`. The comment
324
+
says what the command printed at `cdec7473`.
325
325
326
326
```bash
327
-
git grep -n "Neither mode is a per-record choice" -- packages/spec/src/data/field.zod.ts #:558
328
-
git grep -n "default('CNY')" -- packages/spec/src/data/field.zod.ts #:559, until #27157
0 commit comments