Skip to content

feat(spec,objectql): a summary over a plain dynamic currency amount may declare currencyMode 'dynamic' - #35387

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35045-dynamic-summary-tenant-child
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35045-dynamic-summary-tenant-child

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #35045

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up owed — skills/objectstack-data/evals/objects-fields-relationships.json (eval 20's expected output still says dynamic is admitted only on a roll-up of a home amount)

维护者速读

  1. 用户能看到什么变化:在系统默认币种下录入的金额,其子表合计(例如工时单的成本合计)现在可以声明为默认币种,记录页和列表里显示为带币种符号的金额,而不再是一串裸数字;此前这样声明会被校验拒绝。
  2. 为什么做:华为合作的客户关系应用(中文租户,币种为人民币)有十七处这类合计显示不出币种,按您已选定的“合计声明、度量自动跟随”方案,这是两步中的第一步。
  3. 出错会怎样:没有声明币种的合计不受影响;若放行范围有误,最坏是某个合计被错误地按默认币种显示,回滚本次改动即可恢复原先的拒绝。
  4. 要你做什么:无。

What changes

  • @objectstack/spec: a summary (sum / min / max / avg) declaring currencyMode: 'dynamic' is admitted over any child currency field in dynamic mode, not only over a stored home amount (seat ruling record 7000258793: a plain dynamic amount is in the tenant currency by definition, ADR-0144 D6 / D8 rule 5 read as written). One new predicate, isTenantCurrencyAmount (record-currency-path.ts, exported from @objectstack/spec/data), is the admission test in defineStack case (d) (stack.zod.ts).
  • @objectstack/objectql: the registry's follow door (record-currency-aggregate-door.ts) reads the same predicate at both registration orders, so a single save, a batch row and a run's end admit exactly what defineStack admits.
  • Still refused, unchanged: dynamic over a record-mode child (prescribing its stored home amount, or record when it follows the parent), over a fixed child (naming the code), over a number, a formula or another summary. A summary declaring nothing still has no currency.
  • The refusal text moves with the admitted set: the (d) head, the non-currency arm (names the child's type) and its prescription (the child's amounts in the home currency), and the object door's list of admitted roll-up currencies.
  • Prose: field.zod.ts currencyConfig describe and JSDoc, the regenerated reference pages, content/docs/data-modeling/currency.mdx and field-types.mdx, and a dated WIDENED line in packages/spec/liveness/field.json.

Tests

  • Flipped (were pinning today's refusal of a plain dynamic child): spec currency-summary-home-rollup.test.ts (plain child, plain child of a home-less record amount, forged-homeAmount legs over plain amounts), objectql record-currency-guards.test.ts (writable home field re-save), and the message-head constants in both packages.
  • New: admitted over a plain dynamic child (no config, explicit dynamic, readonly, expression-computed; sum/min/max/avg; {} config) in defineStack, in the registry in both orders, and through a metadata-API publish. Controls kept refused: record-mode child, fixed child, number, formula, child summary declaring dynamic. A summary declaring nothing parses with no currencyConfig.
  • Reverse verification (a second worktree at the base commit, only the new test files copied in): spec 12 failed / 70 passed; objectql 6 failed / 91 passed. With the new spec but the base door: objectql 3 failed (the three admitted legs), which shows the door arm is load-bearing.

Acceptance notes

  • Summary of a summary (A2): kept refused. The ruling names a plain dynamic child amount; a child summary is not a currency field, and the contract review that first named it (N3) asked for a follow-up only if a consumer needs it.
  • Renderer comments under ui/packages/fields (currency.ts:58, index.tsx:2881, SummaryField.tsx:64) still say "a roll-up of a stored home amount"; the behaviour is right (summaryDeclaresCurrency answers true for any dynamic summary), and only the comments are narrow. Renderers are outside this card's fence.
  • skills/objectstack-data/evals/objects-fields-relationships.json eval 20's expected output ends "dynamic is admitted only on a roll-up of a home amount". Its assertions do not read that sentence; skills/** is a governed surface outside this card.

Verification

Head 76fb831b (base 24cc61fa; overlap-check clean against origin/main 35c6331 and PR #35362, exit 0). All readings below were taken on this tree before the one commit; the commit added only the changeset's level and declaration lines.

Package suites and typecheck
  • pnpm --filter @objectstack/spec test: Test Files 856 passed (856), Tests 27370 passed, 1 todo.
  • pnpm --filter @objectstack/objectql test: Test Files 614 passed (614), Tests 13878 passed.
  • pnpm --filter @objectstack/spec typecheck && pnpm --filter @objectstack/objectql typecheck: VERDICT command-exit 0.
  • pnpm --filter @objectstack/spec check:generated: 3 of 14 stale (api-surface, export-origins, docs). --fix regenerated those 3, and they are committed.
Reverse verification (one-off, no permanent test)
  • A worktree at 24cc61fa with only the new test files copied in: spec 12 failed / 70 passed; objectql (base spec dist) 6 failed / 91 passed.
  • New spec source with the base objectql door, spec rebuilt (ablation-dist-preflight found function isTenantCurrencyAmount in dist): objectql 3 failed / 94 passed. These are exactly the three admitted legs (registry in both orders, and metadata-API publish), so the door arm carries the fix.
Derived gate families (dispatch-gates, 121)
  • --ran reconciliation: 121 accounted, 118 run, 3 NOT-MEASURED (exit 3, prerequisite dists not built locally): check:skill-examples, check:dual-build-cjs-loads, check:lean-entry-closure. CI builds them.
  • 117 exit 0. One exit 1 that this diff does not cause: check:platform-checklist, platform-core.seed-mode-matrix VARIANTS STALE (SeedMode has 0 members). It is red on the base tree; this diff touches neither seed.zod.ts nor docs/qa.
  • node scripts/check-nul-bytes.mjs: exit 0.

Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/objectql, @objectstack/spec, touching 7 documentable anchor(s). ⚠️ 3 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, packages/spec/liveness/field.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

11 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-driven.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/external-datasources.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/field-types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/validation-rules.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/troubleshooting.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/validating-metadata.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/getting-started/quick-reference.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/kernel/contracts/data-engine.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/backward-compatibility.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectql/types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectui/concept.mdx (via FieldSchema (symbol, a top-level const))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-1.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-3.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-4.mdx (via FieldSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, packages/spec/liveness/field.json) — pages documenting those are invisible to this run
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 176 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 3f88af4c961aa8e63902d12e45ec5b335a07d5d7 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 07638bbaf141b2a97166465ac81bfe2dc0e57368 — the merge of head 5eda3731ce58d22da5da6f10b62f7964b95e89d4 into base 3f88af4c961aa8e63902d12e45ec5b335a07d5d7, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 07638bbaf141b2a97166465ac81bfe2dc0e57368 && git checkout 07638bbaf141b2a97166465ac81bfe2dc0e57368
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 3f88af4c961aa8e63902d12e45ec5b335a07d5d7 5eda3731ce58d22da5da6f10b62f7964b95e89d4 && git checkout -B drift-repro 3f88af4c961aa8e63902d12e45ec5b335a07d5d7 && git merge --no-ff 5eda3731ce58d22da5da6f10b62f7964b95e89d4

node scripts/docs-audit/affected-docs.mjs --json 3f88af4c961aa8e63902d12e45ec5b335a07d5d7

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 3f88af4c961aa8e63902d12e45ec5b335a07d5d7 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

Final head for review · area data-2 · 2026-11-19T08:19Z
Head: 76fb831b21a0a33437622b3828730967f54a50fc — all check runs on it concluded: 60 success, 10 skipped, 0 failed (Test Core 10/10 and Test UI 16/16 shards, Spec property liveness green).
Fixes #35045 · Clause-②: yes (widening) · Metadata-protocol: added · spec minor · +312/−144 over 18 files · K = 14.
Review route: L1-a thread, then seat 5 L2 (CONTRACT_REVIEW_TIER). Landing after both, by the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:对象上的“汇总”字段如果是把子记录里普通的本币金额加起来(比如工时单把各条工时的成本相加),现在可以声明为本币,页面上会带货币符号显示,不再是一个光秃秃的数字。
  • 为什么做:以前这种声明会被校验拒绝,导致汇总金额和旁边的金额格式对不上。
  • 出错会怎样:只是多放行一种以前被拒的写法;原来能用的写法都不变,其他货币写法照样被拒。
  • 要你做什么:不需要你做任何事。它放宽了元数据的规则,席位会安排一次约定审核,然后由区域落地。

席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head 76fb831b21a0a33437622b3828730967f54a50fc · 2026-11-19T08:22Z

  • 形态 — 18 files, +312/−144:
    • spec: record-currency-path.ts, stack.zod.ts, object.zod.ts, field.zod.ts, plus the api-surface / export-origins / liveness ledgers.
    • objectql: record-currency-aggregate-door.ts.
    • docs: five pages.
    • tests and one changeset.
      Base 24cc61fa, K=14 (< 15). check-governed-merges.mjs --pr 35387: not governed, under the 3000-line limit. Clause-②: yes (widening), Metadata-protocol: added; spec minor, objectql patch. Both levels are right for the kind.
  • Fixes vs card spec: a summary over a plain tenant-currency amount cannot say it is in the tenant currency — currencyMode: 'dynamic' is refused unless the child is a stored home amount #35045, per seat ruling record 7000258793:
    • New exported predicate isTenantCurrencyAmount(def): type === 'currency' and currencyMode ?? 'dynamic' is 'dynamic'.
    • Case (d) in both doors now reads it in place of storedHomeAmountSourceOf: defineStack via stack.zod.ts, and the engine registry's followRefusalsOf at both ends.
    • Strictly widening, checked: the object door's own home-candidate test (refuseDishonestHomeAmount, isHomeCandidate) already requires a homeAmount.field to be a currency field in dynamic mode. So every child field admitted before is admitted now, and nothing that passed is refused.
    • Still refused, unchanged: record and fixed children, number, formula and summary.
    • The prescription in recordCurrencyDynamicRollupNotHomeError now names the child by its type and lists its home-currency amounts. Its record-mode arm keeps storedHomeAmountSourceOf to name the home amount to roll up.
    • The field.zod.ts describe and the object-door sentence now speak of the admitted set.
    • The liveness row gains a WIDENED entry. Its reader summaryDeclaresCurrency is unchanged and already true for any dynamic summary, so LIVE holds.
  • Changeset — read sentence by sentence against the diff; all of these match:
    • the newly admitted declaration and its reason (D4's tenant localization.currency);
    • the old refusal text;
    • one predicate for both doors;
    • the unchanged list: no inference without currencyConfig, plus the record, fixed, number, formula and summary refusals;
    • the moved wording of the refusal head and prescription;
    • the levels.
      Skills-docs: follow-up owed names skills/objectstack-data/evals/objects-fields-relationships.json eval 20. That path is governed, so it goes to the seat (below).
  • Pins:
    • currency-summary-home-rollup.test.ts admits:
      • sum / min / max / avg over a plain dynamic child amount, writable, readonly or computed;
      • over a readonly plain amount beside a record-mode amount with no homeAmount;
      • a plain dynamic amount whatever a homeAmount says of it.
    • It refuses:
      • a number child, naming the home-currency amounts;
      • a summary child, even a dynamic one;
      • a record-mode child without a home amount, prescribing homeAmount;
      • a forged homeAmount on a number or a fixed child.
    • CONTROL: a summary declaring nothing has no currency.
    • record-currency-guards.test.ts (engine door):
      • registration in either order;
      • a child re-saved out of the admitted set is refused, naming the roll-up, and a run that leaves a refused pair as it was is not refused for it.
  • 门禁 — 70 check-runs on this head: 60 success, 10 skipped, 0 failure.
  • 接受的偏差 — none.
  • 范围外去向 — the stale eval 20 expected output is on a governed path, so it is routed to seat 5 with this record.
  • L2 owed (routing) — Clause-②: yes (widening) plus non-test packages/spec/src/** → a contract review at CONTRACT_REVIEW_TIER. Routed to seat 5.
  • 落地条款 — not governed. data-2 lands after the seat's L2 record. A new push needs a fresh L1 only if it changes more than a main merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 76fb831b21a0a33437622b3828730967f54a50fc
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, packages/spec/src/data/object.zod.ts, packages/spec/src/data/record-currency-path.ts, packages/spec/src/stack.zod.ts + packages/objectql/src/record-currency-aggregate-door.ts

Inputs read: card #35045 and all six of its comments (triage, seat ruling record 7000258793, claim 7001536938, both os-dev-reports, claim amendment 7002901285); PR #35387's body, its 18-file list, its three comments and the net diff against main; the 70 check-runs on this head (60 success, 10 skipped, 0 failed). ADR-0144 D4, D6 and D8 rule 5, CurrencyConfigSchema, summaryDeclaresCurrency and the service-analytics currency readers were read in the tree, not reviewed.

① Derived judgments

  • defineStack case (d), accept-set widened: right. collectRecordCurrencyPathErrors now admits a sum / min / max / avg summary declaring dynamic (or a currencyConfig with no mode, {} included) over a child field where isTenantCurrencyAmount holds: type: 'currency' and currencyMode ?? 'dynamic' is dynamic. That is the ruling's reading (a plain dynamic child amount is in the tenant currency by definition) and D8 rule 5 as written ("as every dynamic field does").
  • Strictly a widening: right. The old test, storedHomeAmountSourceOf(...) !== undefined, requires isStoredHomeField, which is currency + dynamic + readonly + no expression. Every field it admitted satisfies the new predicate, so nothing that parsed is refused.
  • Engine registry door, same accept-set at both registration orders: right. followRefusalsOf reads the same predicate at the parent end (child already registered) and at the child end (parent already registered), on the child field as served. The own-key guard precedes both reads.
  • Object door (refuseUnadmittedSummaryCurrency), accept-set unchanged: right. Only its admitted sentence and one refusal clause move. It still passes a dynamic summary only when it names a child object and field and carries no defaultCurrency.
  • Still refused, unchanged: right. record and fixed children, number, formula, another summary, any count. A summary with no currencyConfig still has no currency, so no published default moves (ruling item 3).
  • A forged shape cannot reach the predicate as dynamic: right. dynamic with a currencyField or a homeAmount is refused by CurrencyConfigSchema itself (refuseRecordModeKeyMismatch), which an extension's fields also parse through. The predicate reads only type and currencyMode, so the earlier forged-homeAmount hardening is no longer load-bearing for admission; it stays in use only to name the home amount in the record-mode prescription.
  • Public surface: one export added, none removed: right. isTenantCurrencyAmount joins @objectstack/spec/data (api-surface/data.json, export-origins/data.json). storedHomeAmountSourceOf stays exported.
  • Refusal text changed in three places: right, and not an accept-set change. The (d) head, its non-currency arm (now names the child's type and lists the child's home-currency amounts) and the object door's admitted list.
  • Measure-follows half: correctly absent. The diff touches no packages/services/service-analytics file. Ruling item 2 puts the derived-measure half on spec: a dataset measure can name only a fixed ISO currency, so a measure over tenant-currency amounts cannot display the tenant currency #35046 with no new measure spelling, so nothing of it belongs here.
  • Renderer: no change needed, as the ruling expected. summaryDeclaresCurrency answers true for any dynamic summary and resolves the tenant default, a plain number when none is set.

② Semver level

Clause-②: yes (widening) — on the PR body and in the changeset, agreeing with claim amendment 7002901285.

  • Metadata-protocol: added is right: one newly accepted declaration on an existing key, and no value refused, no requirement tightened, no meaning or default changed.
  • @objectstack/spec: minor is right for added plus a new export.
  • @objectstack/objectql: patch is acceptable: its door reads the spec predicate and it declares no protocol of its own. Both packages are in the changeset fixed group, so they publish at the same version either way. Check Changeset concluded success on this head.
  • Not BREAKING: no ADR-0087 conversion and no migration entry is owed for a widening.

③ Boundary flags

  • Final os-dev-report 7002971835 carries open_questions: []. The two questions of the earlier blocked report are answered: the commit landed, and the Metadata-protocol level was settled by amendment 7002901285.
  • A2, summary of a summary kept refused: agreed. The ruling names a child amount, a summary is not a currency field, and admitting it is one more accepted declaration that needs the seat's word. No escalation.
  • File surface beyond the first claim (stack.zod.ts, object.zod.ts, ledgers, two hand-written pages): covered by amendment 7002901285.
  • No merge of origin/main before opening: the check-runs ran on the merge ref and are green. Accepted.
  • Reverse verification in place of the prescribed ablation: accepted; Test Core 10/10 is the gate verdict.
  • SQL push-down: not engaged. The diff adds no query, no id materialisation and no in-app join; both doors read metadata only.

④ Design judgment

No must-fix, no should-fix.

  • record-currency-path.ts: holds. The predicate is the ruling's sentence and nothing more. "Stored" is accurate without a check: a non-formula field with an expression is computed at write and stored (FieldSchema.expression), so a roll-up can read it. Attempt to break it: a dynamic field whose expression copies a record-mode amount is admitted, and its total is then labelled with the tenant currency. That mislabel already exists on the child field itself, and the total is drawn exactly as its rows are, so the roll-up adds no new dishonesty. The record-mode and fixed prescriptions are unchanged and still correct.
  • stack.zod.ts: holds. The (d) branch still continues after judging, so a dynamic summary never falls into the record arms below it. The docblock cites D4 for the home currency and D8 rule 5 for the home field, both as the ADR reads.
  • object.zod.ts: holds. Text only, and the text states the predicate's set.
  • field.zod.ts: holds. The currencyConfig describe and the CurrencyConfigSchema JSDoc state the admitted set as the two doors enforce it; the regenerated reference pages carry the same sentence.
  • record-currency-aggregate-door.ts (first consumer): agrees with the contract. Same predicate, same message builder, both orders, judged as served. A child re-saved out of the admitted set is refused naming the roll-up, as before.
  • N1 (nit) — The Skills-docs: line is real and under-scoped. Eval 20's expected_output in skills/objectstack-data/evals/objects-fields-relationships.json does end "dynamic is admitted only on a roll-up of a home amount", and its assertions do not read that sentence. But skills/objectstack-data/rules/field-types.md:179-184 also teaches the roll-up's currency and says defineStack "refuses 'dynamic' on any other roll-up", which this head makes false. The changeset's "no SKILL.md teaches a summary's currency" is true only to the letter. The follow-up card must name both files; the PR body's line can be widened without moving the head.
  • N2 (nit) — record-currency-path.ts module header still ends "Messages only and two predicates"; it now exports three.
  • N3 (nit) — The fallback arm, reached by a currency child whose config is neither dynamic nor a well-formed record or fixed (a stored fixed row with no code), reads "is a 'currency' field, not a currency field in dynamic mode". True, but it does not say what is wrong with the field.
  • N4 (nit) — Outside the diff, for a follow-up card: packages/spec/src/migrations/entries/semantic/18.summary-dynamic-currency-rollup-home-amount-judged-as-served.ts still says a dynamic summary "is right only for a roll-up of a stored home amount", and its acceptance step "save one over another child field and confirm 422" no longer holds for a plain dynamic amount. The comments in ui/packages/fields/src/currency.ts, index.tsx and widgets/SummaryField.tsx are narrow in the same way; behaviour there is right.

Implemented-by: claude/issue-35045-dynamic-summary-tenant-child
Reviewed-by: isolated-l2-35387

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

Landing · area data-2 · 2026-11-19T09:03Z

reading value
L1-a ACCEPT comment 7003755311 at 76fb831b; no conditions
L2 contract review PASS 7003851180 at 76fb831b (no must/should-fix; nits N2–N4 → #35409, skills text → seat 5)
Head now 5eda3731ce58d22da5da6f10b62f7964b95e89d4 = 76fb831b + one clean merge of origin/main (K had reached 15; no shared file, no hand resolution). Both records carry over: the delta is a main merge only
CI on head every check suite completed, none failed
check-governed-merges --pr 35387 NOT governed, 0 of 18 paths; +312/−144 ≤ 3000; K = 5 from the new merge base; main since changed 13 existing locale files (no new pack), none in this diff

State: draft → ready + auto-merge (merge queue). #35045 closes on merge via Fixes. needs:contract-review removed after this record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:data size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants