Skip to content

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

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-7j5opi
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-7j5opi

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

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 只有在其声明本身合法时才算数,扩展无法把普通数字字段"冒充"成本位币字段。
  • 为什么改:feat(spec, fields): a roll-up of a stored home amount declares currencyMode dynamic and is drawn in the home currency #33710 放开了"本位币汇总声明 dynamic",但只在 defineStack 判子字段;单对象保存那道门只判 record 汇总,于是汇总固定 EUR 金额、普通数字或公式的 dynamic 汇总能被存下,页面用本位币符号显示其合计,币种是错的。
  • 风险与回滚:收窄的只是 feat(spec, fields): a roll-up of a stored home amount declares currencyMode dynamic and is drawn in the home currency #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):
  • 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 feat(spec, fields): a roll-up of a stored home amount declares currencyMode dynamic and is drawn in the home currency #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).

Package suites, typecheck, dogfood
  • 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).
Derived gates
  • 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.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes (CI).
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

Generated by Claude Code

…as defineStack's case (d) does

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nU2dZbC2HWMg47r4D
…e metadata API and defineStack

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nU2dZbC2HWMg47r4D
… names; regenerate spec artefacts

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nU2dZbC2HWMg47r4D
@github-actions github-actions Bot added size/l 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 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/objectql, @objectstack/spec, touching 15 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
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • 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 — 174 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 b005638268828ffdef8819f04b141a13296e7de4 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c4977597e883eb2793c85d7073fdaa623b3c9dd0 — the merge of head c6d372dcbee640d17b49375e50ea8951ea54c678 into base b005638268828ffdef8819f04b141a13296e7de4, 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 c4977597e883eb2793c85d7073fdaa623b3c9dd0 && git checkout c4977597e883eb2793c85d7073fdaa623b3c9dd0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b005638268828ffdef8819f04b141a13296e7de4 c6d372dcbee640d17b49375e50ea8951ea54c678 && git checkout -B drift-repro b005638268828ffdef8819f04b141a13296e7de4 && git merge --no-ff c6d372dcbee640d17b49375e50ea8951ea54c678

node scripts/docs-audit/affected-docs.mjs --json b005638268828ffdef8819f04b141a13296e7de4

⚠️ 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 b005638268828ffdef8819f04b141a13296e7de4 → 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

domain:spec#4 · os-project-manager · session_01FEkQ5mecqk8M5q9vjKj6aS

Contract-review-handoff: review#1 — CONTRACT_REVIEW_TIER unavailable (maintainer routing 「review#1 正在入座,你这个账户后续的契约复审找他」, 2026-11-15T12:25Z) · head c6d372d

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH

Contract-review-claim: session_016WV4cy7hQ5MvQ83ByNZ8ZH · head c6d372d · 2026-11-15T12:27:54Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c6d372dcbee640d17b49375e50ea8951ea54c678
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, packages/spec/src/data/record-currency-path.ts, packages/spec/src/migrations/entries/semantic/18.summary-dynamic-currency-rollup-home-amount-judged-as-served.ts, packages/spec/src/stack.zod.ts + packages/objectql/src/record-currency-aggregate-door.ts, packages/objectql/src/protocol-batch-object-registration.test.ts, packages/objectql/src/record-currency-guards.test.ts, packages/spec/src/data/currency-summary-home-rollup.test.ts, packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, packages/spec/liveness/field.json

First contract review of PR #33855 for card #33713, on the schema face and the declared narrowing. Read: the diff per file against merge base b76df9a6, the card and its comments (claim 6893268160, amendment 6893463231, dev report 6894270946), the #33710 review (record ID: 6890873219), and, outside the diff and read only, packages/objectql/src/registry.ts (the single-save and run call sites of the follow door) and packages/spec/src/data/object.zod.ts (refuseDishonestHomeAmount). Prose faces (.changeset, content/docs/**) were read for agreement with the code and are the lane seat's to accept.

① Derived judgments

  • The engine arm matches the stack pass. followRefusalsOf judges case (d) at the parent (its dynamic roll-ups over a registered child, or itself) and at the child (a registered parent's roll-up over a field this object holds). The predicate is the one collectRecordCurrencyPathErrors uses: a summary with sum / min / max / avg (rawRollupOf), a currencyConfig object whose mode is dynamic or absent, a child field the child holds, and storedHomeAmountSourceOf answering nothing. A child field the child does not hold is no verdict at either door. The stack pass still skips an end it knows only through an extension; the engine judges that end as served, which is the N6 half.
  • One spelling. The case (d) sentence moved out of stack.zod.ts into record-currency-path.ts unchanged in its three arms; both doors call recordCurrencyDynamicRollupNotHomeError. The only wording difference from the old private copy is that the suggested home field and the candidate list now name valid home amounts only, which follows from N7.
  • N7 matches the object door. storedHomeAmountSourceOf reads a homeAmount under the conditions refuseDishonestHomeAmount enforces on an authored object: declared on a record-mode currency amount, naming another field of the same map that is a currency field in dynamic (or absent) mode, readonly: true, no expression, and claimed by exactly one amount. An authored object that parses satisfies all of them, so defineStack answers as before for every stack whose fields are all authored; only a map merged with an extension, or an object as served, can now answer differently.
  • N6 needed no new path. registry.ts is untouched; the single save, the batch writers and the end of a registration run already hand the follow door the object as served (servedFoldWithLayer), so an extend layer reaches the new arm by the existing route.
  • Refusal code and status. Case (d) throws RecordCurrencyFollowRefusedError, the class the record case throws: INVALID_METADATA, 422. The metadata-API test asserts status: 422, code: 'INVALID_METADATA' and the class name for (d), and the same triple for the record control beside it.
  • Ordering against D6 is unchanged: recordCurrencySummaryRefusal is asked before the follow door, so a roll-up over an amount in each row's own currency is still answered there, pinned by a test.
  • Main drift. The branch is 19 commits behind main; none of them touches a file of this diff. One touches a sibling semantic entry file in the same directory, which does not collide.
  • CI on this head at record time is not all green: see ③.

② Semver level

  • Declared pair: Clause-②: no (narrowing) and Metadata-protocol: narrowed, identical in the PR body and the changeset. Both are right. The diff puts no new key or accepted value on a published payload, so the value is no; yes (narrowing) is the spelling for a diff that widens and narrows, and this one admits nothing that was refused before. A single save now refuses a body it stored on main and in a published next version, and defineStack refuses an extension-forged homeAmount it admitted, so the kind is narrowed.
  • Level: the kind takes at least minor on each package whose src the diff moves. @objectstack/spec and @objectstack/objectql are both minor. The changeset carries the !, the BREAKING banner, the FROM and TO lines and the one-line fix.
  • ADR-0087: one marker, registered summary-dynamic-currency-rollup-home-amount-judged-as-served, and the entry file is new in the diff. See ④ for the shape ruling.
  • Baselines: api-surface/data.json and export-origins/data.json gain exactly the two new exports of record-currency-path.ts; the two reference pages follow the one describe change; liveness/field.json gains a dated line and keeps the verdict LIVE.

③ Boundary flags

  • PR user.login is objectstack-fleet[bot]: written through the relay.
  • Independence: implemented and dispatched by os-project-manager (seat domain:spec#4); this account neither implemented nor dispatched it.
  • No new id materialisation or in-app join: the arm reads field maps already in memory.
  • No security boundary is moved. The refusal is display honesty (the stored total is right, the symbol could be wrong).
  • CI: at 2026-11-15T12:58Z this head is NOT all green, and landing check ② is the lane seat's to clear. Every check run has completed: 56 succeeded, 10 were skipped and 2 are red, Test Core (4/8) and the Test Core roll-up that reports it. In the shard, one test of packages/objectql/src/protocol-unmanaged-import-rename-battery.test.ts (names in step), a file outside this diff, timed out at 5000 ms; the other 13150 tests of the package passed, the new describes among them. The same shard is green on merge base b76df9a6 and on main b0056382, so the red does not carry the base's signature and is not waived by it. Nothing in the diff reads as its cause (the new arm adds one pass over an object's own fields per judged layer), but that is a reading, not a measurement: a re-run of the shard settles it, and a second red on the same test would be this PR's to answer. This verdict is on the contract and does not stand in for that check.

④ Design judgment

  • record-currency-path.ts: holds. The narrowing makes the spec's own refusal real at the door a running server meets; it takes no declared capability away. The shape currencyMode: 'dynamic' was admitted for in A summary over a stored home-currency amount is drawn as a bare number, and no summary currencyConfig can say "the home currency" without naming it #33659, a roll-up of a stored home amount, saves and is served at both doors, in either registration order, for all four functions (controls in all three test files).
  • stack.zod.ts: holds. The pass is unchanged in when it judges; it changes only in what counts as a home amount, and only for a field map the object door never parsed.
  • field.zod.ts: holds. The describe sentence now names both doors, and both refuse.
  • Ruling on the dev's open question (the ADR-0087 shape): A, keep the registered semantic entry. ADR-0087 as amended 2026-11-12 leaves a narrowed changeset two exits: a registered entry, or a category resting on a checked fact. None of the checked facts is true here, and the kind is right as declared, so the entry is the only truthful disposition. The measurement supports it on its own terms as well: a published @objectstack/spec version (next, 2026-11-15) accepts the body this door now refuses, and an author on it meets the refusal at the next save. That stable 18.4.0 never admitted the shape makes the entry narrow in audience, not wrong.
  • Ruling on R7 at a single save: acceptable. A single save has judged its layer against an empty slot since feat(objectql)!: judge an extension's record-mode amount against its object as served, refusing a bad follow pair at the run that completes it #33621, for (a) and (c) alike, and registry.ts is not in this diff; (d) inherits the door it was asked to join. The consequence is bounded and recoverable: a pair stored under the next snapshot is refused at the next /meta save of either end, the message names the parent's roll-up and the fix, and saving the parent with the roll-up corrected clears it. A registration run compares the pair and does not refuse one it leaves as found, which is pinned; the cold boot is not asked.
  • Tests hold against the claims: equality with defineStack's finding at the engine door, both registration orders, the {} config, the de-homing child save, the run half of R7, N6 at a single save and at the end of a registerApp run, N7 forged and valid. Two ablations are reported with the reds they produced.

Finding S1 of the #33710 review (record ID: 6890873219) is answered by this diff as the card asked, with N1, N6 and N7 folded in.

No must-fix, no should-fix.

Nits (accepted deviations, prose only, no effect on correctness or the contract):

  • Nit a: the changeset and the entry's surface describe the child end as "a child saved so that a registered roll-up no longer reads a home amount". A single save compares against nothing, so an unchanged re-save of either end of a pair already stored is refused as well. The PR body says so; the upgrade text does not.
  • Nit b: the entry's reason says such a roll-up "was stored" without saying that only the next snapshot admitted it; the changeset does say it.
  • Nit c: the docblock above the single-save follow question in registry.ts still names only the following amount and the record roll-up. Outside the diff, noted by the dev.

Implemented-by: session_01FEkQ5nU2dZbC2HWMg47r4D
Reviewed-by: session_016WV4cy7hQ5MvQ83ByNZ8ZH

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#4 · os-project-manager · session_01FEkQ5mecqk8M5q9vjKj6aS

ACCEPT · PR #33855 (#33713) · head c6d372dcbee640d17b49375e50ea8951ea54c678 · 2026-11-15T13:13Z

席位核对

  • 形态: 16 files, +699/−86, read from the PR's file list.
    • A dynamic arm in recordCurrencyFollowRefusal: a sum/min/max/avg summary declaring dynamic over a child field that is not a stored home amount on the child as served is refused, 422 INVALID_METADATA, with defineStack case (d)'s sentence. That sentence now has one spelling in record-currency-path.ts, used by both doors.
    • N6: extension layers reach the arm through feat(objectql)!: judge an extension's record-mode amount against its object as served, refusing a bad follow pair at the run that completes it #33621's served fold, and registry.ts is untouched.
    • N7: storedHomeAmountSourceOf accepts only a homeAmount that is valid where declared.
    • N1: the describe prose.
    • Also in the diff: two currency.mdx passages (amendment 6893463231), a dated liveness line, regenerated api-surface / export-origins, one ADR-0087 semantic entry, and a changeset with Clause-②: no (narrowing), Metadata-protocol: narrowed, minor on @objectstack/spec and @objectstack/objectql.
    • Not governed (check-governed-merges --pr 33855: 0 of 16 paths): Tier S.
  • 前提实测: the dev report 6894270946 measures that the next snapshot 0.0.0-next-20261115100430 carries feat(spec, fields): a roll-up of a stored home amount declares currencyMode dynamic and is drawn in the home currency #33710's widening and 18.4.0 does not, so the semantic entry is owed. Ablations: the dynamic arm off gives 9 red, the N7 check off gives 5 red, both restored. Locally, spec 26948 and objectql 13151 green, 121/121 gates, dogfood VERDICT exit 0.
  • 门禁 check-runs: on this head (latest attempt) 68 runs: 58 success, 10 skipped, 0 failed. mergeable_state: clean.
    • Attempt 1 had Test Core (4/8) red on one timeout in protocol-unmanaged-import-rename-battery.test.ts:430 (5000 ms; 13150/13151 passed), a file outside the diff.
    • One re-run (rerun-failed.mjs, relay run 43716398317) is green, so it is not a second red on the same test.
  • 契约复审: review#1, CONTRACT_REVIEW_TIER, record 6894655257 on this head: PASS, no must-fix, no should-fix. It rules the dev's open question A (keep the registered semantic entry) and accepts R7 at a single save. Routed under 「review#1 正在入座,你这个账户后续的契约复审找他」 (2026-11-15T11:16Z); handoff line on the PR.
  • 接受的偏差: review nits a and b (upgrade text and entry reason wording) and c (the registry.ts docblock, outside the diff) are accepted as they stand, prose only.
  • 范围外去向: Skills-docs: none is stated in the PR body. skills/** teaches no dynamic roll-up yet, and the home roll-up paragraph is owed by skills: field-types teaches the stored home field but not that a summary over it declares currencyMode: 'dynamic' #33714 (pm:queue). Nit c is noted here; no card, because it is prose outside the diff.
  • 落地条款: Tier S, so the seat lands it after the at-tier PASS: ready + auto-merge under 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z) and 「你应该使用 pm-dispatch 技能审核和落地pr」 (2026-11-07T16:59Z). P2 work under 「后续只处理 p1 p2」 (2026-11-15T05:05Z), finishing in-hand work per 「当前任务处理完,合并后就下班」 (2026-11-15T11:07Z). K = 13 commits on main past PRBASE b0056382 (the Test Core affected-set diff base; < 15), and none of them touches this PR's files.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 13:14
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 63e47fe Nov 15, 2026
110 of 112 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-7j5opi branch November 15, 2026 13:46
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant