Skip to content

docs(metadata-protocol): name every asker of the record-currency follow door in the registry-question header - #33590

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-E2b-32934
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-E2b-32934

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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 文件头的一段注释,写清「金额跟随父记录币种」这道检查由三方来问:单个保存或发布、批量写入、运行中安装、升级或热重载在整次登记结束时。代码行为不变。
  • 为什么改:原注释说这道检查「只有单个保存会问」,批量写入和运行中安装早已也在问,下一个读代码的人会被误导。
  • 风险与回滚:零运行时风险,只是注释;回滚即还原本 PR。
  • 先看:packages/metadata-protocol/src/registry-question.ts 第 7 至 30 行的文件头。
  • 两分钟验证:打开该文件头,对照 packages/objectql/src/record-currency-aggregate-door.ts 中 recordCurrencyFollowRefusal 上方列出的三方提问者,应一一对应。
  • 需要你做的:无,席位落地。另:第 2 项(扩展层贡献的跟随金额无人检查)已实测可达,需另开卡并裁决,见下方 Acceptance notes。

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 that registerObject itself never asks:
    • a single save or publish, of its one body before it registers (againstRegistry);
    • a batch writer, of each object row once all its rows are registered (batch-object-registration.ts);
    • a registration run on a running server (an install, an upgrade, a reload), of every object layer it registered, once at the end of the outermost run (SchemaRegistry.restoringOnRefusal), which is no producer in REGISTRY_QUESTION_PRODUCERS because it calls neither saveMetaItem nor promoteDraftForPublish.
    • It also states that an extend layer is asked only of its own roll-ups (the door's partial rule), which is the current behaviour item 2 measures.
  • The list mirrors the one under recordCurrencyFollowRefusal in packages/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 extend layer — MEASURED, reachable

Measured on this branch (objectstack-ai/objectstack at 0e0ddc79b, base 4bba8b8f0), through the engine's manifest service after start() with source: 'marketplace' (the way the marketplace install door hands an artifact over), the harness of packages/objectql/src/manifest-service-artifact-refusal-restores.test.ts. Package ledger (installed first) owns led_invoice (an ISO 4217 code field currency_code, and a plain text title) and led_line (a master_detail field invoice to it).

Readings (probe: 9 cases, 9 passed; each case prints the install outcome)
Case What the installed package carries Outcome
M1 only objectExtensions on led_line: an amount with currencyMode: 'record' following invoice.title (a field holding no code) ADMITTED; the served led_line carries the amount following invoice.title
M2 the same, following invoice.no_such_field ADMITTED
M3 the extension adds its own master_detail inv2 and an amount following inv2.title ADMITTED
M4 one install registers the parent as an own object AND extends another package's child with the bad amount REFUSED RecordCurrencyFollowRefusedError, INVALID_METADATA, 422 (the parent's ask reads the served child)
C1 (control) the same bad amount in an own object body REFUSED, INVALID_METADATA, 422
C2 (consequence) after M1's package is installed, the ledger owner re-registers unchanged (a patch upgrade) REFUSED 422 on led_line.ext_amount: the innocent owner's upgrade is refused over the extension's amount
A1 defineStack of M1's package (extension only) ADMITTED (the stack holds neither end, so the cross-reference pass skips it, as documented)
A2 (control) defineStack holding both ends with the bad pair REFUSED (cross-reference validation)

Reading: none of the three askers judges a following amount an extend layer contributes: the run end asks the extension layer with partial: 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 an object_extension item reaches the same partial path.

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) and protocol-save.ts call the follow door one "which no registration asks". Read as "no single registration" it still holds (registerObject never 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.
  • Derived gate families (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-closure first exited 3 (PREREQUISITE NOT MET, no packages/objectql/dist) and exited 0 after pnpm --filter @objectstack/objectql build. pnpm check:dual-build-cjs-loads exited 3, PREREQUISITE NOT MET (it reads every package's dist/, 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

…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
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/registry-question.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)).

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/registry-question.ts) — pages documenting those are invisible to this run
  • 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 — 10 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 4bba8b8f02fdbdf30e9ad41fc5d2a6fdd3ccaf2a → packageMentionDocs.

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4d1PGptBW3QRQNmy5e6 · head 0e0ddc7 · 2026-11-15T02:10Z

review#3.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Review — PASS

Head-sha: 0e0ddc79bbba0a96f3a000095d6ed3ed827e5b1b

Text read of the PR's one commit: the registry-question.ts header (+18/−3, comment only). Each claim was checked against the code at this head.

  • Three askers. The new list matches the list recordCurrencyFollowRefusal's own doc keeps in record-currency-aggregate-door.ts (lines 504–518): a single save or publish, of its one body; a batch writer, once all of a row's rows are registered; and a registration run, once at the end of the outermost SchemaRegistry.restoringOnRefusal (registry.ts:4365, via recordCurrencyFollowRefusalOfRun).
  • registerObject never asks it. No path from registerObject reaches the follow door. The door is reached only from the run's end and from the per-schema asker at registry.ts:5771.
  • extend layers. An extend layer is asked only of its own roll-ups. That is the door's partial rule: view.partial at lines 533 and 543.
  • Producers. The run is no REGISTRY_QUESTION_PRODUCERS entry, because it calls neither callee. That is consistent with the header's own definition of a producer.
  • Removed wording. Dropping "which nothing else asks" fixes a sentence that the run-end asker had made false.

skip-changeset fits a comment-only change. The N3 gap goes to the seat as its own card, outside this PR.

Reviewed-by: session_016WV4d1PGptBW3QRQNmy5e6 (review#3)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4cz4f7zEQZ2C9GTG382
ACCEPT · area E2b (area-lease pilot #33059) · 2026-11-15T02:43Z

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 02:44
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit a3dad96 Nov 15, 2026
60 of 61 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-E2b-32934 branch November 15, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants