Repository navigation
docs(metadata-protocol): name every asker of the record-currency follow door in the registry-question header - #33590
Conversation
…ow door in the registry-question header The header said the follow door is asked by the single save alone. The batch writers ask it of their whole unit, and a running install, upgrade or reload asks it at the end of its registration run. Prose only. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382
📓 Docs Drift Check
What this run could not see
Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
Contract-review-claim: session_016WV4d1PGptBW3QRQNmy5e6 · head 0e0ddc7 · 2026-11-15T02:10Z review#3. |
Review — PASSHead-sha: Text read of the PR's one commit: the
Reviewed-by: |
|
domain:server#5 · os-elon-musk · session_016WV4cz4f7zEQZ2C9GTG382
|
Requested by Elon · project thread
Fixes #32934
Item 2 (N3) moved to #33593 (filed by seat 5 with its ruling, p2, lease:E2b); the card closes with this PR.
Clause-②: no
This PR lands item 1 of the card (prose only). Item 2 (N3) was measured, not implemented: the gap is reachable from a running install, so closing it is a narrowing that owes its own card, contract review and changeset (reported to the dispatching seat as a decision). The card stays open for that half until the seat files the follow-up card.
维护者速读
registry-question.ts文件头的一段注释,写清「金额跟随父记录币种」这道检查由三方来问:单个保存或发布、批量写入、运行中安装、升级或热重载在整次登记结束时。代码行为不变。packages/metadata-protocol/src/registry-question.ts第 7 至 30 行的文件头。packages/objectql/src/record-currency-aggregate-door.ts中recordCurrencyFollowRefusal上方列出的三方提问者,应一一对应。What changes
packages/metadata-protocol/src/registry-question.ts: the header no longer says the follow door is asked by "nothing else" than the single save. It now names every asker, each asking once its unit is whole on a sealed registry, and states thatregisterObjectitself never asks:againstRegistry);batch-object-registration.ts);SchemaRegistry.restoringOnRefusal), which is no producer inREGISTRY_QUESTION_PRODUCERSbecause it calls neithersaveMetaItemnorpromoteDraftForPublish.extendlayer is asked only of its own roll-ups (the door'spartialrule), which is the current behaviour item 2 measures.recordCurrencyFollowRefusalinpackages/objectql/src/record-currency-aggregate-door.ts; no code, export or behaviour changes.Tests
No test added: the diff is a comment, and pinning prose is not a behaviour pin. Item 2 was measured with a throwaway probe (not committed), see Acceptance notes.
Acceptance notes
Item 2 (N3): a following amount contributed by an
extendlayer — MEASURED, reachableMeasured on this branch (
objectstack-ai/objectstackat0e0ddc79b, base4bba8b8f0), through the engine'smanifestservice afterstart()withsource: 'marketplace'(the way the marketplace install door hands an artifact over), the harness ofpackages/objectql/src/manifest-service-artifact-refusal-restores.test.ts. Packageledger(installed first) ownsled_invoice(an ISO 4217 code fieldcurrency_code, and a plain texttitle) andled_line(amaster_detailfieldinvoiceto it).Readings (probe: 9 cases, 9 passed; each case prints the install outcome)
objectExtensionsonled_line: an amount withcurrencyMode: 'record'followinginvoice.title(a field holding no code)led_linecarries the amount followinginvoice.titleinvoice.no_such_fieldmaster_detailinv2and an amount followinginv2.titleownobject AND extends another package's child with the bad amountRecordCurrencyFollowRefusedError,INVALID_METADATA, 422 (the parent's ask reads the served child)ownobject bodyINVALID_METADATA, 422ledgerowner re-registers unchanged (a patch upgrade)led_line.ext_amount: the innocent owner's upgrade is refused over the extension's amountdefineStackof M1's package (extension only)defineStackholding both ends with the bad pairReading: none of the three askers judges a following amount an
extendlayer contributes: the run end asks the extension layer withpartial: true, which judges only its own roll-ups and returns before the following-amount half and the other-ends half. It is caught only incidentally, when the same run (M4) or a later one (C2) registers the parent. NOT MEASURED: what a write of the admitted amount does (the probe kernel had no driver), and whether a single save of anobject_extensionitem reaches the samepartialpath.Closing it is a narrowing (an install admitted today would be refused), so per the card it is not implemented here; it is reported to the dispatching seat as a decision for its own card.
Stale-prose siblings, noted and not changed
protocol-package-commits.ts(two sites) andprotocol-save.tscall the follow door one "which no registration asks". Read as "no single registration" it still holds (registerObjectnever asks it); read as "no registration run" it is false since the run end asks it. Outside this card's named surface; noted here only.Verification
Local runs on head 0e0ddc7
pnpm --filter @objectstack/metadata-protocol typecheck(tsc --noEmit): exit 0.pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2: Test Files 340 passed, 9 skipped (349); Tests 22877 passed, 43 skipped (22920); lock VERDICT command-exit 0.eslint --no-inline-config packages/metadata-protocol/src/registry-question.ts: exit 0.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, 44 commands): 44 run, reconciled by--ran(44 derived, 44 run, 0 unrun). 43 exit 0;pnpm check:lean-entry-closurefirst exited 3 (PREREQUISITE NOT MET, nopackages/objectql/dist) and exited 0 afterpnpm --filter @objectstack/objectql build.pnpm check:dual-build-cjs-loadsexited 3, PREREQUISITE NOT MET (it reads every package'sdist/, which a whole-repo build would make): NOT MEASURED locally, declared to CI (Lint & Repo Gates).Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382
🤖 Generated with Claude Code