Skip to content

Commit 63e47fe

Browse files
fix(objectql, spec)!: a single-object save refuses a dynamic roll-up over a child field that is not a stored home amount, in defineStack's words (#33855)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XThUCLpnVeG2WSghJgQjdG7)_ domain:spec#4 · os-project-manager · session_01FEkQ5nU2dZbC2HWMg47r4D Fixes #33713 Clause-②: no (narrowing) Metadata-protocol: narrowed Skills-docs: none — `skills/**` teaches no `dynamic` roll-up yet (its home roll-up paragraph is owed by follow-up #33714), so no page states which door refuses the wrong one. ## 维护者速读 - 改了什么:运行中的服务器上,单对象保存/发布(元数据 API)现在和 `defineStack` 一样,拒绝"声明 `currencyMode: 'dynamic'`、却汇总的不是子对象本位币金额字段"的汇总字段,返回 422 `INVALID_METADATA`,提示原文与 `defineStack` 完全一致(同一份拼写)。扩展(`object_extension`)加进来的汇总或子字段,按服务器实际提供的对象来判;子对象上的 `homeAmount` 只有在其声明本身合法时才算数,扩展无法把普通数字字段"冒充"成本位币字段。 - 为什么改:#33710 放开了"本位币汇总声明 dynamic",但只在 `defineStack` 判子字段;单对象保存那道门只判 `record` 汇总,于是汇总固定 EUR 金额、普通数字或公式的 dynamic 汇总能被存下,页面用本位币符号显示其合计,币种是错的。 - 风险与回滚:收窄的只是 #33710 刚放开、尚未进任何稳定版(最新稳定版 18.4.0 不含)的形状;合法的本位币汇总照常保存。回滚即 revert 本 PR。 - 先看:`packages/objectql/src/record-currency-aggregate-door.ts` 中 `followRefusalsOf` 新增的两段 (d);`packages/spec/src/data/record-currency-path.ts` 末尾的 `storedHomeAmountSourceOf`(N7 的判据)。 - 两分钟验证:`pnpm --filter @objectstack/objectql exec vitest run src/protocol-batch-object-registration.test.ts`,`[#33713]` 一组 5 项全过(三种错误字段 422、本位币汇总照常保存、扩展加汇总同样 422)。 - 需要你做的:无,席位落地。 ## What changes **S1, the engine door.** `recordCurrencyFollowRefusal` (`packages/objectql/src/record-currency-aggregate-door.ts`) gains case (d) beside its `record` case (c). A `summary` with `function` `sum` / `min` / `max` / `avg` that declares `currencyMode: 'dynamic'`, or a `currencyConfig` naming no mode, is refused when its child field is not a stored home amount on the child as this server serves it. It is judged at both ends, as (c) is: at the parent's save, over a registered child, and at the child's save, under a registered parent's roll-up (a child saved so that the roll-up no longer reads a home amount). A child field the child does not hold is no verdict, as for (c). The refusal is `RecordCurrencyFollowRefusedError`, the code and status the `record` refusal already uses: `INVALID_METADATA` / 422. Nothing in the measurement gave a reason for another code. The pair key is a new kind, `dynamic`, so a summary moved from a refused `record` declaration to a refused `dynamic` one is the run's own change (R7). **One spelling of (d).** The sentence moves from `stack.zod.ts` into `packages/spec/src/data/record-currency-path.ts`, which already shares (a) and (c), as `recordCurrencyDynamicRollupNotHomeError`. `defineStack` and the engine both print it. The file is already exported from `@objectstack/spec/data`, so the data barrel is untouched. Its two new exports appear in `api-surface/data.json` and `export-origins/data.json`. **N7.** `storedHomeAmountSourceOf` (same file) replaces `homeAmountSourceOf`, at both doors. A `homeAmount` makes its `field` a stored home amount only where it is valid as declared, which is the object door's reading in `refuseDishonestHomeAmount`. It must sit on a `record`-mode `currency` amount and name another field of the same map. That field must be a `currency` field in `dynamic` mode (an absent mode is `dynamic`), `readonly: true`, with no `expression`, and claimed by that one amount. An authored object already guarantees this, so `defineStack` answers the same for every stack whose fields are all authored. A map merged with an extension's fields, or an object as a server serves it, can no longer launder a plain number, a `fixed` amount, a writable or computed field, or a doubly claimed column. The candidate list in the refusal now names only valid home amounts. **N6.** No registration path was added and `registry.ts` is untouched. Since #33621 the follow door is asked with the object as served (`servedFoldWithLayer`). That covers an `extend` layer in its slot, and a `lookup` that returns the served child with every enabled extension. It is asked at a single save, in the batch writer and at the end of a registration run. So the new arm judges a roll-up an extension adds to a parent, and a child field an extension adds, by that same path. `defineStack` still skips an end it knows only through an extension, because it cannot see that object's owner. Its docblock now says the engine judges such a pair at the end of the run that installs the stack. **N1.** The `FieldSchema.currencyConfig` `.describe()` now says the roll-ups it lists are refused "by `defineStack` and by a single-object save or publish on a running server alike". The reference pages are regenerated. **Docs (surface amendment 6893463231).** `content/docs/data-modeling/currency.mdx` had two sentences from #33710 saying a single-object save "does not judge the child field yet (#33713)". This fix makes both false, so both now state the 422 at the metadata API, as the `record` bullet beside them does. **Liveness.** `field/currencyConfig` gains a dated `NARROWED 2026-11-15 (#33713 …)` line naming the new reader and the shared spelling. The verdict stays LIVE. **ADR-0087.** One semantic entry, `summary-dynamic-currency-rollup-home-amount-judged-as-served`, and the changeset carries `adr-0087: registered` with it. It is owed for the measurement below. The gate would also refuse `not-required (no-migration-prescription)` on any `Metadata-protocol: narrowed` changeset. ## Tests - `packages/objectql/src/protocol-batch-object-registration.test.ts`, new describe `[#33713]` (real kernel, real registry, `saveMetaItem` published on the `meta-envelope` face): - A `dynamic` roll-up over a `fixed` EUR amount, a plain number and a formula is refused 422 `INVALID_METADATA` (`RecordCurrencyFollowRefusedError`). The message opens with the case (d) sentence, and nothing is stored or registered. - CONTROL: the #33659 probe shape, a `dynamic` roll-up of `amount_home`, saves and is served. - CONTROL: a `count` roll-up and a roll-up declaring no currency save as before. - A `record` roll-up over the fixed amount answers as before, 422 with (c)'s sentence. - N6: an `object_extension` item adding the roll-up is refused 422 and stores nothing. - `packages/objectql/src/record-currency-guards.test.ts`, new describe for case (d), at the registry's single-save question: - The three child fields are refused whichever end registers second. Each message is EQUAL to `defineStack`'s finding for the same pair, so the wording is pinned at both doors. - A `{}` config and `min` / `max` / `avg` are refused the same way. - A roll-up over the record-mode amount itself stays D6's first (`RecordCurrencySummaryRefusedError`), pinned and not re-judged. - CONTROL: the probe shape registers in either order for all four functions. No-currency and `fixed` roll-ups are not judged. - A child save that de-homes a registered roll-up's field is refused, naming the parent's roll-up. A registration run that leaves an old pair as it found it is not refused (R7), and one that de-homes it is. - N6: an extension adding the roll-up is refused at a single save. An extension adding the child field is judged at either end. A post-seal `registerApp` whose `objectExtensions` add the roll-up is refused at the end of its run and leaves nothing of the package. - N7: an extension forging `homeAmount` over a plain number does not admit the roll-up, and its message equals `defineStack`'s. CONTROL: an extension with its own valid home field and amount does admit it. - `packages/spec/src/data/currency-summary-home-rollup.test.ts`, two new describes: - N7 at `defineStack`: an `objectExtensions` entry forging `homeAmount` over a writable amount, a `number` field, a `fixed` amount, a computed field, or a doubly claimed home field is refused. A valid extension home amount is admitted. `storedHomeAmountSourceOf` over the parsed probe child answers `amount` for `amount_home` and nothing for every other field. - Wording: `defineStack`'s finding equals `recordCurrencyDynamicRollupNotHomeError(...)` for four child fields. - **Ablations** (mutation through `scripts/ablation-replace.mjs`, restored to the HEAD blob each time, `git diff HEAD` empty): - Dynamic arm: `declaresDynamicCurrency` forced false in `record-currency-aggregate-door.ts`. 9 tests red (2 metadata-API, 7 registry). All controls stayed green. - N7 check: `storedHomeAmountSourceOf` put back to the old any-`homeAmount` reading. Spec was rebuilt and `ablation-dist-preflight` found the marker in 2 dist files. 3 spec tests and 2 objectql tests went red. After the restore, spec was rebuilt and the preflight `--absent` read clean. ## Acceptance notes - **The migration measurement.** The latest stable `@objectstack/spec`, 18.4.0 (published 2026-11-13T12:30Z), does not carry #33710: none of its tarball's files hold the object door's new wording. The `next` snapshot `0.0.0-next-20261115100430` (dist-tag `next`, published 2026-11-15T10:32Z, `gitHead` bd96ec9) does: 4 dist files hold it. That is a published version with the widening, so the entry is added. Against the last stable release, the net change is still a widening (18.4.0 refused every `dynamic` summary). - **A single save does not apply R7.** A single save judges its layer against an empty slot (`before: null`), as it already does for (a) and (c). So once a bad `dynamic` roll-up is stored past this door (stored before this release and hydrated at boot), re-saving the child unchanged through `/meta` is refused over it. A registration run compares the pair and does not refuse it. The test pins the run's half. - **(d) does not read `rateDate` / `rateField`.** They say nothing about which currency the home field holds. The object door still judges them on an authored object. - **N2 is unchanged.** On the engine, D6's roll-up door answers first for a roll-up over an amount in each row's own currency. For an amount that follows the parent through the very `master_detail`, D6 admits the roll-up and (d) refuses it in `defineStack`'s words, the same order the stack pass has. - `packages/objectql/src/registry.ts`'s comment above the single-save follow question still names only the following amount and the `record` roll-up. It is outside the surface (`registry.ts` was granted for an N6 call site only, and none was needed). Noted, not edited. ## Verification All readings on head `c6d372dc` (base `b76df9a6`; `origin/main` is 19 commits ahead, none touching this diff's files). <details><summary>Package suites, typecheck, dogfood</summary> - `pnpm --filter @objectstack/spec test`: Test Files 842 passed (842), Tests 26948 passed, 1 todo. - `pnpm --filter @objectstack/objectql test`: Test Files 596 passed (596), Tests 13151 passed. - `pnpm --filter @objectstack/spec typecheck && pnpm --filter @objectstack/objectql typecheck`: exit 0. - Full dogfood battery (owed by the `(narrowing)` arm), `pnpm --filter @objectstack/dogfood test` under the lock after the closure build: `VERDICT command-exit 0`, Test Files 467 passed, 3 skipped (470), Tests 3958 passed, 42 skipped (4000). </details> <details><summary>Derived gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`: 121 commands. Each was run with its exit code captured before any pipe. - 119 passed on the first pass. `check:dual-build-cjs-loads` and `check:published-readme-exports` answered exit 3 (PREREQUISITE NOT MET: six packages outside this diff had no `dist/`). After building them, both exit 0. - `--ran`: `121 derived famil(ies) accounted for — 121 run, 0 NOT-MEASURED`. - `pnpm --filter @objectstack/spec check:generated`: exit 0 after `gen:api-surface`, `gen:export-origins`, `gen:schema` and `gen:docs`. - The log is `pm-orders/spec/33713-gates-ran.txt`. CI runs every other family. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (CI). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5nU2dZbC2HWMg47r4D)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5326028 commit 63e47fe

16 files changed

Lines changed: 699 additions & 86 deletions
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@objectstack/objectql': minor
3+
'@objectstack/spec': minor
4+
---
5+
6+
fix(objectql, spec)!: a single-object save on a running server refuses a `dynamic` roll-up over a child field that is not a stored home amount, in `defineStack`'s words
7+
8+
Clause-②: no (narrowing)
9+
Metadata-protocol: narrowed
10+
Skills-docs: none — `skills/**` teaches no `dynamic` roll-up yet (its home roll-up paragraph is owed by follow-up #33714), so no page states which door refuses the wrong one.
11+
12+
<!-- adr-0087: registered summary-dynamic-currency-rollup-home-amount-judged-as-served -->
13+
14+
**BREAKING** for a hand-written object body saved on a running server. A `summary` with `function` `sum` / `min` / `max` / `avg` that declares `currencyMode: 'dynamic'` (or a `currencyConfig` naming no mode) is admitted only when it rolls up a stored home amount: a child field that the `homeAmount.field` of a record-mode amount on the child names. `defineStack` already refused every other one; the engine registry, which a single-object save meets, judged only `record` roll-ups, so a `dynamic` roll-up over a `fixed` EUR amount, a plain number or a formula was stored there and its total drawn with the home currency's symbol.
15+
16+
What moves (each line FROM → TO):
17+
18+
- a published save or publish of an object through the `/meta` doors (`PUT /meta/object/:name`, the runtime `/meta` dispatcher, `POST /meta/object/:name/publish`, a datasource table import) whose `dynamic` roll-up reads a child field that is not a stored home amount, with the child registered: FROM stored, 200 TO refused 422 `INVALID_METADATA`, nothing stored, with the sentence `defineStack` prints (`recordCurrencyDynamicRollupNotHomeError`, `@objectstack/spec/data`). The same holds in the other order: a child saved so that a registered parent's `dynamic` roll-up no longer reads a home amount is refused, naming the parent's roll-up.
19+
- the same roll-up added by an `objectExtensions` entry or an `object_extension` item, or reading a child field an extension adds: judged against the parent and the child as the server serves them, at the end of an install, upgrade or reload run, on a published single save of the item, and in the batch writers (a package publish, a duplicate, an import): FROM installed or stored TO refused 422.
20+
- a `homeAmount` makes a field a stored home amount only where it is valid as declared: on a `record`-mode `currency` amount, naming another field of the same object that is a `currency` field in `dynamic` mode, `readonly: true`, with no `expression`, and claimed by that one amount (`storedHomeAmountSourceOf`, `@objectstack/spec/data`). The object door already guaranteed this for an authored object; a field map merged with an extension's was taken at its word. At `defineStack` and at the engine registry alike, a `dynamic` roll-up over a field an extension's `homeAmount` names without that reading: FROM admitted TO refused.
21+
22+
The fix: roll up the child's stored home amount (the refusal lists them), declare `currencyMode: 'fixed'` with the code when every amount the roll-up reads is in that one currency, or delete `currencyConfig` on the summary. An extension declaring a home amount gives it a `readonly` `dynamic` currency field of its own.
23+
24+
Unchanged: the `dynamic` roll-up of a stored home amount (the shape `currencyMode: 'dynamic'` was admitted for) saves and is served; a summary with no `currencyConfig`, or `fixed`, is not judged by this arm; a `count` roll-up and every `record` case answer exactly as before; a roll-up over a child amount in each row's own currency is still refused by D6's roll-up door first, whatever it declares. Roll-ups stored before this release keep loading at every boot, which is not asked, and a run that leaves such a pair as it found it is not refused over it. `FieldSchema.currencyConfig`'s description now says that every door refuses the roll-ups it names. The latest stable `@objectstack/spec` (18.4.0) never admitted a `dynamic` summary at all; only the `next` snapshot of 2026-11-15 did, before this door judged it.

‎content/docs/data-modeling/currency.mdx‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,14 @@ that column. A `count` column never carries `currencyField`. See the
258258
`currencyMode`) is admitted only for a `sum`, `avg`, `min` or `max` of a stored home
259259
amount, a child field that a `homeAmount.field` on the child object names (see
260260
[Totals in the home currency](#totals-in-the-home-currency)), and naming no currency
261-
code. `defineStack` (`os validate` and the build) refuses one over any other
262-
child field, naming the child's home amounts. A single-object save or publish through the
263-
metadata API on a running server does not judge the child field yet: it parses the one
264-
object, so it refuses only what that object shows (#33713). The object itself refuses
265-
one that names no child field, one that names a currency code, and a `count` in
266-
every mode, at every door.
261+
code. One over any other child field is refused, naming the child's home amounts:
262+
`defineStack` (`os validate` and the build) refuses it, and on a running server a save or
263+
publish through the metadata API refuses it with **`INVALID_METADATA` / 422** and the
264+
same message, whichever object is saved second, judging each object as the server serves
265+
it, extensions included. A `homeAmount` makes a field a home amount only where it is
266+
valid as declared, so an extension cannot make a plain number one by naming it. The
267+
object itself refuses one that names no child field, one that names a currency code, and
268+
a `count` in every mode, at every door.
267269
- **A dataset measure that declares `currency` over a record-mode amount** is refused at
268270
compile with **`DATASET_INVALID` / 400**, and so is a `currency` on a derived measure that
269271
sums record-mode amounts. One code cannot label amounts in several currencies: delete
@@ -472,9 +474,9 @@ actual_cost: {
472474
The Console then draws the total in `localization.currency` on the record page and in the
473475
list cell (`$250.00` under a USD home currency, `CN¥1,800.00` under CNY), the same currency
474476
a dashboard metric over `amount_home` shows. Without the declaration the roll-up stays a
475-
bare number. `defineStack` (`os validate` and the build) refuses `dynamic` on any other
476-
roll-up, because the amounts it reads are not known to be in the home currency; a
477-
single-object save on a running server does not check that yet (#33713, see
477+
bare number. `dynamic` on any other roll-up is refused, because the amounts it reads are
478+
not known to be in the home currency: by `defineStack` (`os validate` and the build), and
479+
by a save or publish through the metadata API on a running server (see
478480
[Roll-ups and datasets](#roll-ups-and-datasets)).
479481
480482
## See also

‎content/docs/references/data/field.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const result = CurrencyConfigSchema.parse(data);
102102
| **summaryOperations** | `{ object: string; field?: string; function: Enum<'count' \| 'sum' \| 'min' \| 'max' \| 'avg'>; relationshipField?: string; … }` | optional | Roll-up summary definition. The engine recomputes the value when child records are inserted/updated/deleted. |
103103
| **language** | `string` | optional | Programming language for syntax highlighting (e.g., javascript, python, sql) |
104104
| **step** | `number` | optional | Step increment for slider (default: 1) |
105-
| **currencyConfig** | `{ currencyMode?: Enum<'dynamic' \| 'fixed' \| 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }` | optional | Which currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (`currencyMode: 'record'` naming this object's own code field). A summary that rolls up a stored home amount (a child field some `homeAmount.field` names) declares `currencyMode: 'dynamic'`, with no `defaultCurrency`, and shows in the organization's home currency. A summary may otherwise declare only `currencyMode: 'fixed'`, when every amount it reads is in that one currency; a `count` summary, any other `dynamic` summary and any other `record` roll-up are refused. Absent: dynamic mode, and no currency on a summary. |
105+
| **currencyConfig** | `{ currencyMode?: Enum<'dynamic' \| 'fixed' \| 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }` | optional | Which currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (`currencyMode: 'record'` naming this object's own code field). A summary that rolls up a stored home amount (a child field some `homeAmount.field` names) declares `currencyMode: 'dynamic'`, with no `defaultCurrency`, and shows in the organization's home currency. A summary may otherwise declare only `currencyMode: 'fixed'`, when every amount it reads is in that one currency; a `count` summary, any other `dynamic` summary and any other `record` roll-up are refused, by `defineStack` and by a single-object save or publish on a running server alike. Absent: dynamic mode, and no currency on a summary. |
106106
| **dimensions** | `integer` | optional | Vector dimensionality (e.g., 1536 for OpenAI embeddings) |
107107
| **trackHistory** | `boolean` | optional | Render this field's value changes as human-readable entries on the record activity timeline (ADR-0052 §5b). Opt-in per field. |
108108
| **group** | `string` | optional | Field group name for organizing fields in forms and layouts (e.g., "contact_info", "billing", "system") |

‎content/docs/references/data/object.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const result = ApiMethod.parse(data);
279279
| **summaryOperations** | `{ object: string; field?: string; function: Enum<'count' \| 'sum' \| 'min' \| 'max' \| 'avg'>; relationshipField?: string; … }` | optional | Roll-up summary definition. The engine recomputes the value when child records are inserted/updated/deleted. |
280280
| **language** | `string` | optional | Programming language for syntax highlighting (e.g., javascript, python, sql) |
281281
| **step** | `number` | optional | Step increment for slider (default: 1) |
282-
| **currencyConfig** | `{ currencyMode?: Enum<'dynamic' \| 'fixed' \| 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }` | optional | Which currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (`currencyMode: 'record'` naming this object's own code field). A summary that rolls up a stored home amount (a child field some `homeAmount.field` names) declares `currencyMode: 'dynamic'`, with no `defaultCurrency`, and shows in the organization's home currency. A summary may otherwise declare only `currencyMode: 'fixed'`, when every amount it reads is in that one currency; a `count` summary, any other `dynamic` summary and any other `record` roll-up are refused. Absent: dynamic mode, and no currency on a summary. |
282+
| **currencyConfig** | `{ currencyMode?: Enum<'dynamic' \| 'fixed' \| 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }` | optional | Which currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (`currencyMode: 'record'` naming this object's own code field). A summary that rolls up a stored home amount (a child field some `homeAmount.field` names) declares `currencyMode: 'dynamic'`, with no `defaultCurrency`, and shows in the organization's home currency. A summary may otherwise declare only `currencyMode: 'fixed'`, when every amount it reads is in that one currency; a `count` summary, any other `dynamic` summary and any other `record` roll-up are refused, by `defineStack` and by a single-object save or publish on a running server alike. Absent: dynamic mode, and no currency on a summary. |
283283
| **dimensions** | `integer` | optional | Vector dimensionality (e.g., 1536 for OpenAI embeddings) |
284284
| **trackHistory** | `boolean` | optional | Render this field's value changes as human-readable entries on the record activity timeline (ADR-0052 §5b). Opt-in per field. |
285285
| **group** | `string` | optional | Field group name for organizing fields in forms and layouts (e.g., "contact_info", "billing", "system") |
@@ -656,7 +656,7 @@ const result = ApiMethod.parse(data);
656656
| **summaryOperations** | `{ object: string; field?: string; function: Enum<'count' \| 'sum' \| 'min' \| 'max' \| 'avg'>; relationshipField?: string; … }` | optional | Roll-up summary definition. The engine recomputes the value when child records are inserted/updated/deleted. |
657657
| **language** | `string` | optional | Programming language for syntax highlighting (e.g., javascript, python, sql) |
658658
| **step** | `number` | optional | Step increment for slider (default: 1) |
659-
| **currencyConfig** | `{ currencyMode?: Enum<'dynamic' \| 'fixed' \| 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }` | optional | Which currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (`currencyMode: 'record'` naming this object's own code field). A summary that rolls up a stored home amount (a child field some `homeAmount.field` names) declares `currencyMode: 'dynamic'`, with no `defaultCurrency`, and shows in the organization's home currency. A summary may otherwise declare only `currencyMode: 'fixed'`, when every amount it reads is in that one currency; a `count` summary, any other `dynamic` summary and any other `record` roll-up are refused. Absent: dynamic mode, and no currency on a summary. |
659+
| **currencyConfig** | `{ currencyMode?: Enum<'dynamic' \| 'fixed' \| 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }` | optional | Which currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (`currencyMode: 'record'` naming this object's own code field). A summary that rolls up a stored home amount (a child field some `homeAmount.field` names) declares `currencyMode: 'dynamic'`, with no `defaultCurrency`, and shows in the organization's home currency. A summary may otherwise declare only `currencyMode: 'fixed'`, when every amount it reads is in that one currency; a `count` summary, any other `dynamic` summary and any other `record` roll-up are refused, by `defineStack` and by a single-object save or publish on a running server alike. Absent: dynamic mode, and no currency on a summary. |
660660
| **dimensions** | `integer` | optional | Vector dimensionality (e.g., 1536 for OpenAI embeddings) |
661661
| **trackHistory** | `boolean` | optional | Render this field's value changes as human-readable entries on the record activity timeline (ADR-0052 §5b). Opt-in per field. |
662662
| **group** | `string` | optional | Field group name for organizing fields in forms and layouts (e.g., "contact_info", "billing", "system") |

0 commit comments

Comments
 (0)