Repository navigation
fix(metadata-protocol, rest)!: the layered read of a name two packages hold refuses as the plain read does, naming the holders as details.candidates (ADR-0150 D3/D5) - #33885
Conversation
… packages hold carries details.candidates (ADR-0150 D5) The REST /meta/:type/:name/layers catch now asks handleRouteError for the package-scoped candidates, as the plain read's catch does, so the plain read's refusal the door's owner step answers and the served-holders refusal of step 1c carry details.candidates on RestServer as on the dispatcher. The step-1c refusal of a name whose active rows two packages hold (the package-less writes' sentence, code and status, unchanged) now carries its holders by shape as a package-scoped refusal, so both transports answer them as details.candidates. The save and delete doors' answer does not move. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…name two served packages register, as the plain read does (ADR-0150 D3) getMetaItemLayered now asks the registry's package-scoped resolver for a type addressed by package, as getMetaItem does, before any layer is read: a name two or more served packages hold is refused naming each (PackageScopedNameRefusedError, 409 RESOURCE_CONFLICT), whatever the metadata service holds. Its code layer used to fall back to the artifact lookup's first composite, so the read in process, and the REST /layers door on a host with no engine wired, answered the holder that registered first. A name one holder holds keeps its layers; stored-row holders stay the door's step 1c. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…s as the plain read does Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
… the layered ambiguity pins Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
📓 Docs Drift CheckThis PR changes 2 package(s): 18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 26 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 36428210573e2ee4bf061bb8e9bdc5911cd16d2c && git checkout 36428210573e2ee4bf061bb8e9bdc5911cd16d2c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin bf594ebd72d2569f25e5c62efb969abb159bc490 a2b29893d07bbda1df8c314b3be97f543cb5b378 && git checkout -B drift-repro bf594ebd72d2569f25e5c62efb969abb159bc490 && git merge --no-ff a2b29893d07bbda1df8c314b3be97f543cb5b378
node scripts/docs-audit/affected-docs.mjs --json bf594ebd72d2569f25e5c62efb969abb159bc490
|
The no-engine REST /layers answer (200 with the first holder, now 409 with the holders as candidates) and the in-process getMetaItemLayered answer (first holder, now PackageScopedNameRefusedError) are narrowings of what a caller was served, so the changeset carries the narrowing arm, the BREAKING banner with both moves and the ADR-0087 disposition. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…candidates and the registry judgment packagelessLayeredReadRefusal's docblock now says its refusal carries the holders as a package-scoped refusal, and that the in-process readers of getMetaItemLayered meet the registry's refusal of a name two packages register in code. Comment only; the emitted JS differs in comment lines alone. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ Request: review · PR #33885 · area S4 (E1) · Fixes #32622 #32914 · head e516f35 Tier: CONTRACT_REVIEW_TIER, owed because this is a narrowing declaration (contract-review.md, the 14:45Z face rule). Reviewer: review-b. Declaration:
The banner also carries Evidence:
Reports on #32622: the original, plus the rework addendum 6897100983. |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review claim · head e516f35 · 2026-11-15T15:49Z Contract-review-claim: session_01QsR2jTyY9BGjj9WBi7QgH6 · head e516f35 · 2026-11-15T15:49Z review (review-b, areas S2+S4): the CONTRACT_REVIEW_TIER record (face: narrowing declaration, two served-to-refused moves on the layered read) and the verdict follow on this PR. |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Contract reviewServed-tier: Inputs read: cards #32622 (body, 7 comments, the rework addendum 6897100983 included) and #32914 (body, 3 comments); PR #33885 body, file list (10 files) and the net diff against merge base Check-runs on the head as read (15:55Z): 25 completed success, among them Lint & Repo Gates, Lint · ESLint, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Check Changeset (2), PR-body guards (2), Governed Surface Queue Guard, Type Check · source gates, Type Check · debt ledger, Dogfood Regression Gate (the aggregate; its shard matrix row reads skipped), Live E2E UI, Test UI. 18 completed skipped (UI lint, type check and build, docs build, opt-in harnesses, queue verdicts). STILL IN PROGRESS, no conclusion: Build Core, Test Core 1/8 to 8/8 and Type Check · workspace (Type Check · consumer gates was still running at 15:53Z and had left the in-progress list by 15:55Z). No check-run failed. The test and build verdicts for this head are therefore not read by this record; nothing below rests on them, and the landing check (every check green) is not met yet. ① Derived judgments
The 409 shape against the plain read's, for the two declared moves: identical. Same thrown object class from the same resolver call, so the same ② Semver level
Clause-②: no (narrowing). The arm is the right one: nothing a published schema accepts changes, and two declared answers plus one undeclared go from served to refused. ③ Boundary flags
④ Design judgmentDoes the narrowing take a declared capability away, or make the spec's own refusal real? It makes the refusal real.
Every caller of
Findings:
No must-fix. One should-fix (F1), closable on the prose faces plus a follow-up card. Implemented-by: VERDICT: PASS |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review — PASSHead-sha:
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review — FAIL (amended, ACCEPT read per review-checklist.md)Head-sha:
Items 1–3 move only the PR body, the changeset and the card. The delta reads only those. |
… two-holder refusal The changeset's BREAKING banner gains a third FROM/TO. A bare GET /meta/:type/:name/published on a REST host with no objectQLProvider went on to its published exit and now answers 409 without candidates. The getMetaItemLayered docblock names the PackageScopedNameRefusedError it throws for a name two packages register in code. Comment and prose only. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ Test Core (3/8) red on head e57e7c0 (run 43743965993, job 132903743253) is judged a load flake, not this PR's. One re-run of the failed jobs follows; a second failure is treated as real.
|
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head e57e7c0 · 2026-11-15T19:00Z |
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract reviewServed-tier: Read at 2026-11-15T19:18Z. First review of this head by this seat, taken on patrol as owed; claim: comment 6899607341; prior record 6897231104 is on an earlier head. Independence: implemented in a zhuangjianguo lane; neither dispatched nor implemented by os-tesla. Inputs read: card #32622 (body and comments, the dev report 6895377619 and the rework addenda included), card #32914 (body and 4 comments), follow-up card #34101 (body and its triage comment), PR #33885 body and every comment through 6899607341, the file list (10 files) and the net diff of ① Derived judgmentsThe doors of the layered read on this tree, and what each answers for a name two served packages register in code, read naming no package:
No SDK or client method calls the layered read in process:
② Semver level
Clause-②: no (narrowing). The arm is right. ③ Boundary flags
④ Design judgmentDoes the narrowing take a declared capability away, or make the spec's own refusal real? It makes the refusal real. ADR-0150 D3 gives a caller with no package the environment's item, else the unique package holder, else the refusal with candidates (D5). "The holder that registered first" is declared nowhere; it was the artifact lookup's fallback, and the plain read at the same address already refused. The remedy stays served (
No must-fix. Four should-fix (S1 to S4): S1 and S3 want a small head move or a filed card before ACCEPT; S2 and S4 are follow-up cards. The contract of this PR holds on the tree: every door of the layered read that reaches the judgment refuses a two-holder name with the plain read's code and status, the Implemented-by: VERDICT: PASS |
…s; declare the stored-row /published move Two REST /layers exits now carry details.candidates through the route's catch: the bare action read weighing the package-less holder, and the exact qualifier of a package holding none. Each is pinned against the item read's candidates. The stale comment that said /layers carries the refusal's text only is corrected. The changeset's /published row adds a state. A name with a package-unbound active row, on a REST host with no objectQLProvider, was served that row (200) and is now refused 409. The dispatcher sentence now covers that state: it moves from the row to the code snapshot. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head a2b2989 · 2026-11-16T00:02Z |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ Request: review (delta) · PR #33885 · area S4 (E1) · Fixes #32622 #32914 · head a2b2989 (green: 36 success, 18 expected skip, 1 superseded PR-body-guards run cancelled with its re-run success; declared final) Two delta reads are owed on this head:
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6 Review — PASS (delta)Head-sha:
The own-diff patch-id is |
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract reviewServed-tier: Read at 2026-11-16T00:17Z. Delta review of this head against PASS 6899857966 at e57e7c0; claim: comment 6903603101; no lane request (owed per check-owed-reviews). Independence: implemented in a project thread for domain:server#5; reviewed by os-tesla, who neither dispatched nor implemented it. Inputs read: the refreshed PR body, the PR comments through 6899857966, card #32622 body and comments through the dev report 6903259509, the file list (11 files), ① Derived judgmentsWhat the branch is since
② Semver level
Clause-②: no (narrowing). The arm is right. ③ Boundary flagsPrior record 6899857966, finding by finding at this head:
Other flags:
④ Design judgmentThe narrowing still makes the spec's own refusal real and takes no declared capability away: ADR-0150 D3 and D5 give a caller with no package the unique holder or the refusal with candidates, the remedy (
No must-fix. Three should-fix (S1 to S3), each a follow-up card or a seat ruling, none a head move. The contract of this PR holds on the tree at this head: the net change is the change reviewed at Implemented-by: VERDICT: PASS |
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ 席位核对ACCEPT · area S4 (E1) · Head-sha:
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ Landing (landing-operations B) · head
State change: ready + auto-merge (area authorising line). |
…em whose registry write-through faults (objectstack-ai#33979) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbNTugWasvhTMrtCZiFGrZYK)_ Fixes objectstack-ai#33851 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:撤销提交(revertCommit)现在对所有类型如实上报两类故障。第一类是恢复视图、权限、对象扩展等条目时,写入运行时注册表出错;这时该条目列入 failed[],写明「行已恢复到版本 N」。第二类是撤销删除条目后注册表修复(heal)中途停止;这时写明「行已从 sys_metadata 移除,注册表可能仍在提供被删的行」。两类都带出错原因和 code,success 为 false,和对象条目的处理一致。 - 为什么改:以前这些故障只记日志,撤销照样报 success:true,但进程实际还在使用旧内容,违反 revertCommit 自己的契约「success 即进程已生效」(ADR-0067 D3)。 - 风险与回滚:只有 revertCommit 读这两个新返回值。保存、发布、删除等其他调用方都忽略它们,同样的故障下仍答成功,日志也不变(有对照测试,另有消融证明对照测试能变红)。回滚即 revert 本 PR。 - 先看:`protocol-registry-hydration.ts` 中 `applyRegistryWriteThrough` 的两个 catch 和 `restoreArtifactRegistryView` 的外层 catch、剩余行循环;`protocol-package-commits.ts` 的 revertCommit 两个分支;`protocol.ts` 中两个转发方法的类型。 - 两分钟验证:`pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.revert-commit-honest-outcome.test.ts`,预期 31 个用例全绿(§3 共 12 个,§4 共 9 个)。 - 需要你做的:无,席位落地。objectstack-ai#33563 那条变更说明里的一句旧话,在单独的纯文本 PR 中更正。 ## What changes `applyRegistryWriteThrough` has three branches. The `object` branch has answered the registry's refusal since objectstack-ai#33805. The two non-object branches caught their faults and logged them at `warn`. The first is the overlay hydration, which every type except `object` and `object_extension` takes. The second is the `object_extension` registration. The registry heal that a removal runs (`restoreArtifactRegistryView`) logged its stop at `error` and returned nothing. - `protocol-registry-hydration.ts`, write-through. The request has its own exported type, `RegistryWriteThroughRequest`, with one new optional field, `answerFaults`. When it is `true`, a non-object branch that throws still logs the same `warn` line, and then returns the fault in the `ObjectRegistryRefusal` shape (`{ error }`). When it is unset, the answer is `undefined`, as before. - `protocol-registry-hydration.ts`, heal. `restoreArtifactRegistryView` now returns a `RegistryHealStop` (`{ error }`) in two cases. The first is when its outer catch stopped the walk; the `error` line it logs is unchanged. The second is when a row still stored under another package, which the heal registers again (with `answerFaults: true`), is refused or faults; every remaining row is still tried. Otherwise it returns `undefined`, and that includes the designed outcomes: a refused baseline read that retires the entry, and a degraded read that keeps it. - `protocol-package-commits.ts`, `revertCommit`. The restore limb sets `answerFaults: true`. The soft-remove limb reads the heal's stop, but only where a row was actually removed; with no row removed, the heal is a self-heal and stays logged. Both feed the existing `notApplied` / `settle` path, so the item lands in `failed[]` with the row state, the reason and its `code`. The revert's own commit still records the row change. `rollbackToPackageCommit` carries the item through its existing per-item channel. - `protocol.ts`, two private forwarders. The `restoreArtifactRegistryView` forwarder now returns `Promise` of `RegistryHealStop | undefined` (`ProtocolHost` derives its type from it). The `applyRegistryWriteThrough` forwarder's parameter is now `RegistryWriteThroughRequest`, in place of its inline copy. The `revertCommit` docblock sentence that said a non-object write-through fault "is not seen here" now says that every type, and a stopped heal, is reported. The `.d.ts` carries that docblock, so this change takes a `patch` changeset. - Every other caller ignores the new answers. Save and publish (`protocol-save.ts`, `protocol-history-and-publish.ts`) do not set `answerFaults`. They would report any returned refusal as an object's (`object-registry-refused`), which ablation A4 shows. The delete door, a publish's undo and a peer's convergence `await` the heal and discard its answer. - Changeset: `.changeset/33851-revert-non-object-write-through-fault.md` (`patch`). It says that it supersedes the sentence of the objectstack-ai#33563 note claiming such a fault "is still not seen by the revert". The objectstack-ai#33563 note itself is unchanged here: its one sentence is corrected in a separate text-only PR (DELIBERATE CORRECTION). ## Tests `packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts`, the revert harness, gains two top-level describes. They go there as AGENTS.md requires (ruling record 6583487846). - §3 has 12 cases, 4 each for `view`, `permission` and `object_extension`: a clean restore control, which reaches the registry verb as a non-vacuity check; a write-through throw that goes to `failed[]` with `code`, "its row was restored to the body of version 1", the reason and `success: false`; a save control; and a publish control. The two controls hold under the same fault: `success: true`, no advisories, and the same `warn` line. - §4 has 9 cases, 4 each for `view` and `permission`: a clean soft-remove control; a heal stop that goes to `failed[]` with `code`, "its row was removed from sys_metadata", "may still serve the removed row", `success: false` and the heal's `error` line kept; a delete control (`success: true`, `error` line kept); and a save-and-publish control (both `success: true`, no advisories). The ninth case is an `action` row still stored under another package that the registry refuses: it goes to `failed[]`. As a non-vacuity check, the stop is the remaining row's write-through `warn`, not the heal's outer-catch `error`. Premise, measured on the code before each half. On the write-through half (source at `63e47feeca`), §3's 3 fault cases were red: each answered `success: true`. On the heal half (source at `2d23b49dd1`), §4's 3 fault cases were red, with 28 cases green. <details><summary>Ablations (scripts/ablation-replace.mjs, each landed, run, then restored to blob == HEAD with git diff HEAD empty)</summary> | Ablation | Red | Green | | --- | --- | --- | | A1: the overlay branch does not answer | 2 (§3 view, permission fault) | 20 of 22 | | A2: the extension branch does not answer | 1 (§3 object_extension fault) | 21 of 22 | | A3: revertCommit does not set `answerFaults` | 3 (every §3 fault case) | 19 of 22 | | A4: the overlay branch answers every caller | 4 (view and permission save and publish controls; the save answered an `object-registry-refused` advisory, "object 'ticket.grid' was published, but the runtime registry refused it") | 18 of 22 | | A5: the extension branch answers every caller | 2 (object_extension save and publish controls) | 20 of 22 | | B1: the heal's outer catch does not return its stop | 2 (§4 view, permission heal stop: "expected true to be false" on `success`) | 29 of 31 | | B2: the remaining row's refusal is dropped | 1 (§4 remaining-row case) | 30 of 31 | | B3: revertCommit does not read the heal's stop | 3 (every §4 fault case) | 28 of 31 | My first A1 to A3 attempt was a no-op: the replacement was a substring of the anchor, `ablation-replace` refused it, and no test ran. They were re-run with distinct markers, and the table shows those runs. A1 to A5 were run before §4 existed (22 cases). B1 to B3 were run on all 31 cases. </details> ## Acceptance notes - Out of scope, left as it is: in the heal, the object owner branch's `unregisterObject` refusal ("object 'x' was deleted from sys_metadata but stays registered") is still a `warn` line that answers no stop. It is an object-only path, and the card's ruling covered the outer catch and the remaining rows. ## Verification <details><summary>Readings, local, at head 999b09d</summary> - One locked run, at `999b09d9c3` with `origin/main` `68e726d631` merged in (lock VERDICT command-exit 0; queued 6m18s, after a first attempt's queue-timeout exit 99). It ran: the metadata-protocol dependency closure build; `typecheck` exit 0; `test` 342 files passed and 9 skipped, 22923 tests passed; the metadata-protocol build; and the objectql suite, 597 of 597 files and 13177 of 13177 tests. - The other direct dependents (runtime, cli, service-automation, cloud-connection) were not run locally. CI runs them (Test Core). The only type that moved is on private forwarders; `RegistryHealStop` and `RegistryWriteThroughRequest` are not exported from the package entry. - `pnpm lint`: exit 0. - `dispatch-gates --ran`: 73 derived families, each with its exit code recorded. 70 exit 0. 3 are NOT MEASURED, because each needs the whole workspace built: `check:dual-build-cjs-loads`, `check:lean-entry-closure` and `check:type-check-debt`, all exit 3 (PREREQUISITE NOT MET). CI runs them. The body gates (closing-keyword parity, Part-of, changeset no-major, ADR-0087 registration) exit 0. - `git merge-tree --write-tree --name-only`: clean against `origin/main` `68e726d631`, against objectstack-ai#33885's head `fa7fb66a7c`, and against S5's `claude/area-E1b-33832` head `9c4f75f36e`. No open PR for objectstack-ai#33308 was found. No other open PR touches `protocol.ts`, `protocol-registry-hydration.ts`, `protocol-package-commits.ts` or the harness file. - Dogfood: not run, because the title has no `!` and Clause-② has no (narrowing) arm. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ <!-- signed: domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…red override as effective (objectstack-ai#34169) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbNTugWasvhTMrtCZiFGrZYK)_ Part of objectstack-ai#32849 (the bare layered read's `effective` exit; the read naming no member, measured below, stays open on objectstack-ai#32849) Clause-②: no Metadata-protocol: none **objectstack-ai#33885 has merged.** This branch started from `claude/area-E1-32622`. After objectstack-ai#33885 merged, `origin/main` was merged in (`c9112d29`), so the diff is now this PR's own four files (+125/−7). The own-diff patch-id `c0f3f1897e73032813735aa937738d8e0c8780a6` is unchanged. ## 维护者速读 - 改了什么:App 的 `.custom` pair 存了一行声明覆盖附加包 Z 自有成员 `fr-FR` 的邮件模板(`overrides.package: Z`)。objectstack-ai#33815 之后普通裸读已给出覆盖,但不带包的分层读 `?member=fr-FR&layers=true` 的 `effective` 仍是 Z 原版 `zeta fr-FR`、`overlay` 为空;现在它与 `?package=Z` 一致:`code` 是 Z 原版,`overlay` 和 `effective` 是覆盖,信封指向 Z。 - 为什么改:分层读的 `effective` 定义为「普通读会返回的内容」,声明了的覆盖应在每个给出 Z 该成员的出口被服务(ADR-0146 D8 第 2 项、ADR-0150 D4);Studio 编辑器读的正是这个出口。 - 风险与回滚:只在普通裸读已经改址到 Z 的同一情形下生效(复用同一个判定函数);未声明覆盖、声明给 X 的行(仍 409)、X 自己的 `en-US`、待发布草稿层均不变(已钉)。回滚即还原本 PR,存储数据不变。 - 先看:`packages/metadata-protocol/src/protocol-meta-layered-reads.ts` 中 `declaredOverrideAt` 与 `draftPackageId` 两处。 - 两分钟验证:`pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/package-scoped-exact-qualifier.test.ts -t 'the bare layered read serves'`,预期 6 条全绿。 - 需要你做的:无,席位落地。 ## What changes Own files (four): `packages/metadata-protocol/src/protocol-meta-layered-reads.ts`, `packages/metadata-protocol/src/protocol-meta-item-face.ts` (one `export` keyword and one docblock sentence, no behaviour), `packages/objectql/src/package-scoped-exact-qualifier.test.ts`, `.changeset/32849-bare-layered-read-declared-override.md`. No `protocol.ts` edit. `getMetaItemLayered`, naming no package and judged neither served nor refused by `servedAddressJudgment`, now asks `declaredMemberOverrideAddressOf` (the one predicate the plain read uses since objectstack-ai#33815, exported from the item face for this). When it names the member's one enabled shipper Z, the read takes Z's address for its layers, as the plain read does, so `effective` is the override `?package=Z` serves. The pending draft layer (`withDraft`, the Studio door) is not moved: it stays at the address the strict draft read takes (`strictDraftReadAddress`), because the plain read's strict draft read is outside the arm too. Re-addressing it would have made the draft layer `null` where the strict draft read serves the pair's draft (measured: at `?package=Z` the draft layer is `null`). | read (both install orders) | before | after | |:--|:--|:--| | bare `?member=fr-FR&layers=true`, row declares Z | code `zeta fr-FR`, overlay null, effective `zeta fr-FR` | code `zeta fr-FR`, overlay `pair fr-FR`, effective `pair fr-FR`, envelope Z (= `?package=Z`) | | same, with drafts, a pair draft pending | draft `pair fr-FR draft` | unchanged (effective as above) | | `?package=Z&member=fr-FR&layers=true` | effective `pair fr-FR` | unchanged | | bare `?member=en-US&layers=true` (X's own) | `suitex en-US` | unchanged | | bare, no row / undeclared pair row | effective `zeta fr-FR`, overlay null | unchanged | | bare, row declares X (objectstack-ai#32606 shape) | 409 naming X and Z | unchanged | | door step 1c, `packagelessLayeredReadRefusal` | no refusal | unchanged | Nothing refused becomes served or the reverse; no authorable key or value moves. ## Tests New top-level describe in the shared real-`SchemaRegistry` harness `packages/objectql/src/package-scoped-exact-qualifier.test.ts`: `[objectstack-ai#32849] the bare layered read serves the pair's declared override of an addition Z's own locale as effective, as ?package=Z does` (6 tests): - fix pin, both install orders: bare layers equal `?package=Z`'s (`effective` deep-equals the `?package=Z` document), step 1c refuses nothing, `effective` equals the plain bare read, X's `en-US` untouched. - draft pin: the draft layer is the strict draft read's (`pair fr-FR draft`), `?package=Z` has none. - CONTROL no override x2 (no row / undeclared pair row): Z's own, no overlay. - CONTROL row declares X: 409 `RESOURCE_CONFLICT` naming X and Z. BASE measured on `e516f353` (the objectstack-ai#33885 head) with a temporary probe in this harness before any edit: bare effective `zeta fr-FR`, overlay null, in both orders; `?package=Z` effective `pair fr-FR`. <details><summary>Ablations (each through `scripts/ablation-replace.mjs`, metadata-protocol rebuilt, `ablation-dist-preflight` marker present in 2 dist files, auto-restore blob equals HEAD with `git diff HEAD` empty, rebuilt, marker absent from all 24 dist files)</summary> | | mutation | result (`-t 'the bare layered read serves'`) | |:--|:--|:--| | A1 | the arm's call replaced by `undefined` | 3 failed, 3 passed: both fix pins, `expected [ 'zeta fr-FR', null, …(2) ] to deeply equal [ 'zeta fr-FR', 'pair fr-FR', …(2) ]`; the draft pin, `expected [ 'zeta fr-FR', 'pair fr-FR draft' ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft' ]` | | A2 | `isServedOverrideRowOf(row, shipper, installed)` replaced by `true` | 2 failed, 4 passed: the undeclared-row CONTROL, `expected [ 'zeta fr-FR', 'pair fr-FR', …(2) ] to deeply equal [ 'zeta fr-FR', null, …(2) ]`; the X-declared CONTROL, `the read answered; a refusal was expected` | | A4 | the draft address re-addressed with the arm (`declaredOverrideAt ?? request.packageId`) | 1 failed, 5 passed: the draft pin, `expected [ 'pair fr-FR', null ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft' ]` | </details> ## Acceptance notes - The no-row CONTROL pins an unchanged outcome by construction: re-addressed to Z, Z's exact layers with no row answer Z's own `fr-FR` too. The undeclared-row CONTROL is the one that catches an arm ignoring the declaration (A2). - Still open on objectstack-ai#32849, measured on `e516f353` with the same probe (X ships `fr-FR`, Z ships `en-US`, the pair row declares Z for `en-US`): the read naming NO member serves Z's `zeta en-US`, both the plain bare read and the bare layered read, while the bare layered member read `?member=en-US` takes the override after this change. `/published` calls the layered read with no member (`meta-item-history-routes.ts`), so it reads that same exit; not measured at the door. The helper answers `undefined` when no member is named; that exit lives in the item face first and is left to the card. - Measured through the protocol with a real `SchemaRegistry`, stored rows and hydrated rows (the objectstack-ai#33815 footing), not through the HTTP save door; the door's own step 1c is pinned at the protocol. ## Verification Head `f23319f9` (merges of `origin/claude/area-E1-32622` `e57e7c05` and of `origin/main` up to `27c2f1ea`, then `origin/main` again just before opening; the derived gate union ran on `24ecb579`, the head before that last merge). Every command ran under `scripts/pm/os-verify-lock.sh`. - Before the last merge, on `96a0a52e`: `@objectstack/metadata-protocol` typecheck 0, test `22902 passed | 43 skipped`; `@objectstack/objectql` typecheck 0, test `13252 passed`; `@objectstack/rest` typecheck 0, test `8763 passed | 355 skipped`; `@objectstack/runtime` typecheck 0, test `12414 passed | 19 skipped`. - After the merge, on `24ecb579` (incoming main touched metadata-protocol, none of rest/runtime): rebuilt, metadata-protocol typecheck 0, test `22926 passed | 45 skipped`; the harness file `321 passed`. - `git merge-tree --write-tree --name-only` of `24ecb579` against every open PR sharing a file, and main: objectstack-ai#33995 (`7b65fff0`, item face and harness) clean, objectstack-ai#33979 (`999b09d9`, protocol.ts) clean, objectstack-ai#33885 (`e57e7c05`) clean, `origin/main` `27c2f1ea` clean. (Before the first main merge the harness conflicted with main's objectstack-ai#33817 block; resolved by keeping both describes.) - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on `24ecb579`: 75 derived families, every one exit 0 (exit codes captured before any pipe). `check:dual-build-cjs-loads` first answered exit 3 PREREQUISITE NOT MET (no dist for 41 packages) and answered 0 after a whole-tree `pnpm turbo run build --concurrency=2` under the lock; `check:type-check-debt` was interrupted mid-run once and re-run to exit 0. `--ran`: 75 derived, 75 run, 0 NOT-MEASURED, 0 UNRUN. Body gates on this body: `check-changeset-no-major` 0, `check-adr-0087-registration` 0 (with the PR payload too), `check-closing-keyword-parity` 0 (`GITHUB_EVENT_PATH`), `check-partof-closing-keyword` 0 (`PR_BODY`). - `pnpm lint`: exit 0 on `24ecb579`. - After the last merge of `origin/main` (14 commits; it touched `protocol-meta-item-reads.ts` and objectql `registry.ts`, not this diff), on `f23319f9`: closure rebuilt, metadata-protocol typecheck 0 and test `22926 passed | 45 skipped`, objectql typecheck 0, the harness file `321 passed`; ratchet families re-run there: `check:type-check-debt` 0, `check:type-check-coverage` 0, `check:nul-bytes` 0. - After objectstack-ai#33885 merged: merge of `origin/main` `dfb8ed35` → head `c9112d29`. The one add/add conflict was objectstack-ai#33885's own changeset, resolved to main's landed text; none of this PR's files conflicted. Closure rebuilt, metadata-protocol typecheck 0, objectql typecheck 0, harness `321 passed`, all under the verify lock. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ <!-- signed: domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steedos · project thread
Fixes #32622
Fixes #32914
Clause-②: no (narrowing) — narrowed: a layered read naming no package, of a name two or more served packages register in code, no longer serves the holder that registered first. The REST
/layersdoor on a host that wires no engine for its door chain goes from 200 to 409 naming the holders, and the in-processgetMetaItemLayeredgoes from resolving to throwingPackageScopedNameRefusedError. The REST/publisheddoor on a host with noobjectQLProvidergoes to 409 withoutdetails.candidates. Before, it served the name's package-unbound active row (200) when one stands, and otherwise its published exit (the metadata service'sgetPublishedanswer, or 501 when the host resolves none). The dispatcher's/publishedswallows the refusal. With no such row it serves its snapshot as before; with one, it moves from that row to the code snapshot (read from the tree). A name one package holds, and every read naming the package, answer as before.Metadata-protocol: none
Skills-docs: none — no skill under
skills/names the layered or published door, and the docs that do (content/docs/ui/apps.mdx,content/docs/references/api/rest-server.mdx,content/docs/concepts/metadata-lifecycle.mdx,content/docs/plugins/adding-a-metadata-type.mdx) name the routes without teaching how a name two packages hold is answered there, so no sentence there turns false; the generatedcontent/docs/references/api/protocol.mdxdescribespackageIdas scoping a same-name collision, which still holds.维护者速读
GET /meta/TYPE/NAME/layers,以及进程内的getMetaItemLayered),遇到两个包都持有同名项、又没指定包时,现在和普通读一样答 409,并在details.candidates里列出两个包;以前 REST 在某些部署形态下、以及进程内调用,会悄悄返回先注册的那个包。/layers由 200(先注册包的分层)变为 409;进程内getMetaItemLayered由返回先注册包变为抛PackageScopedNameRefusedError,调用方需改为指定包。只影响“两个包同名且没指定包”的分层读;单一持有者、带?package=的读、存储行持有者在禁用包旁的进程内读都不变;第一方触达 0。回滚即 revert 本 PR。packages/metadata-protocol/src/protocol-meta-layered-reads.ts(getMetaItemLayered新增的resolveItem判定,和withPackageCandidates);packages/rest/src/meta-item-read-routes.ts(/layers路由 catch 加packageScopedCandidates);packages/rest/src/meta-layers-ambiguous-package.test.ts新增的 describe。pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/meta-layers-ambiguous-package.test.ts,预期 12 个用例全绿(两包同名的/layers两种写法答 409 带details.candidates,进程内读抛同样的拒绝,单持有者照常返回)。What changes
BREAKING (
Clause-②: no (narrowing), patch level,Metadata-protocol: none): three answers move, the three bold rows of the table below. FROM 200 with the first-registered holder's layers TO 409RESOURCE_CONFLICTwithdetails.candidates, on REST/layerswhere no engine is wired for the door chain; FROM resolving the first-registered holder TO throwingPackageScopedNameRefusedError, in process; FROM the package-unbound active row (200) or the published exit TO 409 withoutdetails.candidates, on REST/publishedwhere noobjectQLProvideris wired (review-b F1 and review#2 S3, measured below). The fix for a caller: name the package. The changeset carries the banner andadr-0087: not-required (no-migration-prescription): no key, stored row, layer or export changes shape.Measured first on
maina557fa38(realRestServer, real protocol, realSchemaRegistry; two packages registering the dashboardsales, no stored row):GET /meta/dashboard/salesRESOURCE_CONFLICTwithdetails.candidates/layers, engine wired for the door chaindetails)details.candidates/layers, no engine wired (no service copy, or a service copy of one holder)details.candidatesgetMetaItemLayered({ type, name })PackageScopedNameRefusedError(409,refusal.candidatesnaming both)/published, noobjectQLProvidergetPublishedanswer, or 501NOT_IMPLEMENTEDwhen the host resolves no metadata serviceRESOURCE_CONFLICT, nodetails/published, noobjectQLProvider, the name also has a package-unbound active rowRESOURCE_CONFLICT, nodetails/published, engine wiredRESOURCE_CONFLICT, nodetails/published, engine registry not reachable, no package-unbound row/published, the same, with a package-unbound active row?package=of either holder, and a name one package holdsgetMetaItemLayered(metadata-protocol: the in-process layered read refuses a bare name two served holders hold, for every package-addressed type, and the bare /layers door is pinned with no service copy #32914, and the REST pick folded into metadata-protocol + rest: the layered read (/meta/:type/:name/layers) of a name two packages hold answers as the plain read — 409 with details.candidates, never the first holder (ADR-0150 D3/D5; collects #32622 #32624) #32622 from rest: GET /meta/:type/:name/layers of a name held by two registered packages answers 200 with the first holder instead of the 409 the plain read and the dispatcher /layers give (ADR-0150 D3, red line 2) #32624). Naming no package, a type addressed by package is judged by the registry's package-scoped resolver (registry.resolveItem(type, name, null, member)), asgetMetaItemjudges it (packagelessScopedRead), before any layer is read and whatever the metadata service holds. Only the judgment is taken; a name one holder holds keeps the layers it had. Stored-row holders are not this judgment's: the door refuses them in step 1c, as contract review S1 on fix(metadata-protocol)!: a name a disabled package holds through a stored row is judged over the served set, never by save order (ADR-0150 D3) #33130 settled, and the in-process read in that state still resolves (the[#32354]pin is unchanged and green)./layerscatch (metadata-protocol + rest: the layered read (/meta/:type/:name/layers) of a name two packages hold answers as the plain read — 409 with details.candidates, never the first holder (ADR-0150 D3/D5; collects #32622 #32624) #32622).handleRouteError(res, error, undefined, { packageScopedCandidates: true }), as the plain read's catch (metadata-protocol: the /meta door's 409 RESOURCE_CONFLICT carries details.candidates, as /automation and /actions do (ADR-0150 D5) #32201). The deprecated?layers=truespelling already answered through that catch. The dispatcher already carried the candidates (errorFromThrown).?package=remedy, and now carries its holders as a package-scoped refusal by shape (refusal.status: 'refused',candidatesin the/actionsshape), so both transports answerdetails.candidates. The save and delete doors do not move. This is the item the metadata-protocol: a name held only by stored rows of two enabled packages answers the bare read by save order while /layers refuses 409 (ADR-0150 D3) #32607 seat re-ruling left to this card ("Carryingdetails.candidateson/layersremains metadata-protocol + rest: the layered read (/meta/:type/:name/layers) of a name two packages hold answers as the plain read — 409 with details.candidates, never the first holder (ADR-0150 D3/D5; collects #32622 #32624) #32622's job", 6820653691).protocol.ts: docblock only (9 lines, under the seat's 14:45Z rule change).packagelessLayeredReadRefusal's docblock now says the refusal carries its holders asrefusal.candidates, and thatgetMetaItemLayered's in-process readers meet the registry's refusal of a name two packages register in code. The emitteddist/index.jsanddist/index.cjsdiffer fromHEAD~1's in those comment lines alone (two builds, raw diff). A later commit adds the@throwsfor the two-holder refusal togetMetaItemLayered's docblock (review-b N2, 4 lines).Tests
packages/rest/src/meta-layers-ambiguous-package.test.ts, new describe[#32622, #32914] a name two packages register, read naming no package: 3 compositions (engine wired; no engine wired; no engine wired with a metadata-service copy of the first holder) x 2 registration orders, both spellings answer 409RESOURCE_CONFLICTwith both holders asdetails.candidatesand serve neither holder; in process the layered read refuses (code+status+refusal.candidates) in every composition and eachpackageIdread still serves its holder; CONTROL: a name one package registers is served in process and on both spellings, and?package=serves its holder.[#28337]pins on both transports (rest/.../meta-layers-ambiguous-package.test.ts,runtime/.../meta-layers-ambiguous-package.test.ts, RestServer and hono): the envelope is now the writes' envelope plusdetails, with both holders asdetails.candidates; the writes' answer is asserted to carry nodetails.[#32354]ruling-Q2 pins (rest/.../meta-disabled-package-doors.test.ts,runtime/.../meta-disabled-holder-served-stack.test.ts):/layersnow assertsdetails.candidatesnaming only the served holders.metadata-protocol/.../protocol.packageless-layered-read-refusal.test.ts: the step-1c refusal carriesrefusal.candidates; the save's refusal carries none.rest/.../meta-qualified-item-route.test.ts, new top-level describe#32622 — the other /layers refusal exits carry details.candidates(review#2 S1). It covers two exits. The bare action read with the platform's item beside A's answers[A, platform]./layers?package=of a package holding none answers[A]. Each is asserted equal to the item read's candidates. The stale#32365comment there is corrected:/layerscarries the candidates,/publishedits text. S1 ablation (the/layerscatch withoutpackageScopedCandidates, rest source): both new cases red (AssertionError: {"error":"The action \"approve\" is held by 2 holders …and… is not held by package \"com.acme.gamma\" …), 2 failed of 325; restored with blob equal to HEAD andgit diff HEADempty; baseline 325/325.Ablations (each leg restored; blob == HEAD proven by ablation-replace)
HEAD
6e50dbd5c7. Baseline green: rest 62/62, metadata-protocol 3/3, runtime 367/367 (the three files above per package)./layerscatch withoutpackageScopedCandidates(rest source, read fromsrc): 9 red, e.g./layers: expected [] to deeply equal [ 'package:app.alpha_demo', …(1) ]and the ruling-Q2 pinexpected [] to deeply equal [ Array(2) ]; the in-process and CONTROL cases stay green, as expected.getMetaItemLayeredwithout the resolver judgment (metadata-protocol rebuilt, markerABLATED_32914present in 2 built files): 6 red, the no-engine cases/layers: … "label":"app.alpha_demo code" …: expected [ 200, … ] to deeply equal [ 409, 'RESOURCE_CONFLICT' ]and the in-process casesexpected [ undefined, undefined ] to deeply equal [ 'RESOURCE_CONFLICT', 409 ]; the engine-wired cases stay green (the door's owner step refuses there), as expected.ABLATED_32622present): metadata-protocolexpected undefined to be 'refused'; restexpected [ 'code', 'error' ] to deeply equal [ 'code', 'details', 'error' ]; runtime RestServer and hono twins red the same way (hono:[ 'code', 'httpStatus', 'message' ]). A first A3 attempt was refused byablation-replace(its replacement contained the anchor, so the anchor count did not drop) and restored at once; its green readings were a no-op and are discarded.Acceptance notes
/publishedrows are in the changeset banner, theClause-②line and the table. Its follow-up card The bare /published read of a name two packages register: pin both transports, give the REST 409 its candidates, decide the dispatcher's swallow (ADR-0150 D3/D5) #34101 was filed, then closed as not planned by triage under the p3 standard. So the REST and dispatcher/publishedanswers stay different (REST 409 withoutdetails.candidates; the dispatcher swallows the throw and serves the snapshot), and neither is pinned. Recorded here as accepted.echoSecurityCatalogMutationrecovers from the refusal only when the event names no address. At a package-unbound address of apermissionname two packages register, the echo now throws where it used to read and skip; the projector runner and the boot pass catch it and warn. No grant, lock or served answer changes (read). Its carrier The bare /published read of a name two packages register: pin both transports, give the REST 409 its candidates, decide the dispatcher's swallow (ADR-0150 D3/D5) #34101 is closed, so it is recorded here as accepted.Clause-②line and the table. REST was measured (see the S3 block under Verification); the dispatcher rows are read from the tree.details.candidatesare the packages the active rows are bound to (packagelessAddress().candidates), not the holders the plain read judges." Where a package's row stands beside its own customization pair's row (the metadata-protocol: after a reboot, the pair address X.custom of a name held only by stored rows of two enabled packages answers by hydration order (one 200, the other 409 naming one side) (ADR-0150 D3, red line 2) #32662 scope-note (b) state), the plain read serves that package's row, while bare/layersanswers 409 and now names the pair as{ kind: 'package' }; a row the reads decline is named the same way. Not folded and no card, under the p3 standard.email_template, baselinecom.objectstack.service.email), the plain read serves the other package. With no metadata-service copy, the layered read's code layer is still the artifact lookup's first composite, by registration order. Not introduced by this diff. Not folded and no card, under the p3 standard.dashboardonly, no bundle member, no dispatcher pin on a boot with no service copy) is recorded as accepted. N3 (body staleness) is fixed in this body.Clause-②: no; measured, two answers move (the bold rows above), so the PR body and the changeset now declareClause-②: no (narrowing)with the BREAKING banner, the!title and the ADR-0087 marker, after the fix(runtime,service-automation)!: the flow doors judge the served holders, so a disabled holder's slot answers no bare name (ADR-0150 D3) #33646 precedent. On the composition that wires the engine (the defaultRestServerhost) the door already answered 409. No gate reads the claim comment's line (the queue and level gates read this body and the changesets), so the claim comments were not amended.git merge-tree --write-tree --name-onlyof this head against the open PRs sharing a file andorigin/main: fix(metadata-protocol): an action's artifact envelope is grafted only onto the item its package holds at that (object, name) #33898 (64c5d88452, sharesprotocol.tsandmeta-qualified-item-read.test.ts), fix(metadata-protocol): a bare save of a name an enabled and a disabled package hold writes the enabled holder's row #33889 (bdb3a20a71, sharesmeta-disabled-holder-served-stack.test.ts) andorigin/main(895783a1e8) each exit 0, no conflicted path. fix(metadata-protocol): an action's artifact envelope is grafted only onto the item its package holds at that (object, name) #33898'sprotocol.tshunks sit near lines 322 and 7089; the docblock here is near line 4205.Verification
REST /published FROM and TO (review-b F1), measured at e516f35
A throwaway probe beside the REST pins, not committed. It used the same real protocol and real
SchemaRegistry, with two packages registering the dashboardsales,GET /meta/dashboard/sales/publishednaming no package, both registration orders. TO is the head as built. FROM is the head withgetMetaItemLayered's resolver call ablated (ablation-replacelanded, the marker present in 2 built files, then restored: blob equal to HEAD, marker absent from all 24 built files).objectQLProvider)RESOURCE_CONFLICT,detailsnullRESOURCE_CONFLICT,detailsnullobjectQLProvider, no metadata serviceNOT_IMPLEMENTED("Nothing is runtime-published for this item, and this kernel has no code/package store …")RESOURCE_CONFLICT,detailsnullobjectQLProvider, the protocol's service holding a copy of the first holder (two shapes)NOT_IMPLEMENTED(the REST host resolves no metadata service of its own)RESOURCE_CONFLICT,detailsnullThe FROM on a host whose REST metadata service has
getPublished(the service's answer, served 200) was NOT MEASURED. The probe shape for it, which stubs the host'sresolveMetadataService, never got the verify lock: four 540 s waits behind pid 16926, apnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=1holding over 60 minutes. That row is read from the tree (meta-item-history-routes.ts, the fallthrough after the overlay read). Each VERDICT command-exit 0.REST /published with a package-unbound active row (review#2 S3), measured at 9dd398c
A throwaway probe beside the REST pins, deleted and never committed. Same real protocol and
SchemaRegistry. A package-lesssaveMetaItemstores the dashboardsalesas a package-unbound active row ([sales, null, active]). Then two packages registersalesin code, both registration orders, and the RestServer has noobjectQLProvider. TO is the head as built. FROM is the head with the resolver call ablated: the marker was present in 2 built files, then restored, with the blob equal to HEAD and the marker absent from all 24 built files.GET /meta/dashboard/sales/publishedenv row)RESOURCE_CONFLICT,detailsnullGET /meta/dashboard/sales(plain read)details.candidatesnaming bothVERDICT command-exit 0. The dispatcher rows are read from the tree, not measured.
Dogfood battery, on fa7fb66
Built
@objectstack/dogfood^...(turbo, VERDICT command-exit 0), then under the lockpnpm --filter @objectstack/dogfood testwith noOS_TEST_SHARDand no path: VERDICT command-exit 0, Test Files 467 passed, 3 skipped (470); Tests 3959 passed, 42 skipped (4001). The final head adds only theprotocol.tsdocblock commit; the emitted JS differs fromfa7fb66a7c's in comment lines alone, so the battery reading covers the head's executable bytes. The final head adds a changeset edit and the 4-line@throwsdocblock, again comment-only.Packages, on head 6e50dbd (before merging main) and on 02d6109 (after it)
On
6e50dbd5c7, under the verify lock (VERDICT command-exit 0): typecheck and test green for metadata-protocol (22883 passed), rest (8451), runtime (10874), plugin-security (6681), objectql (13110), service-automation (3976), client (812), cloud-connection (1217), plugin-auth (5465), plugin-email (1018), service-messaging (966), service-package (144), plugin-dev tests (89). organizations, plugin-approvals, verify, cli and three typechecks went red there onCannot find module/Failed to resolve entryfor packages this worktree had not built (build state, not this diff).On
02d6109dde(one merge oforigin/main, no conflict, no touched file moved upstream), after building the whole closure of those packages (turbo exit 0), under the lock (VERDICT command-exit 0): the targeted files rest 62/62, metadata-protocol 3/3, runtime 367/367; typecheck green for all 17 packages (metadata-protocol, rest, runtime, plugin-security, objectql, service-automation, client, cloud-connection, organizations, plugin-approvals, plugin-auth, plugin-dev, plugin-email, service-messaging, service-package, verify, cli); tests green for service-automation (3977), organizations (252), plugin-approvals (1652), plugin-dev (89), verify (439), cli unit (6000).Gates
The derived set (
dispatch-gates.mjs --commands, 70 commands) ran ond0a5dbd220: 67 exit 0.check:test-source-aliaswas red on a runtime pin file this PR edits (a dynamic@objectstack/metadataload in a clocked window); fixed in6e50dbd5c7(module-top import), re-run exit 0.check:dual-build-cjs-loadsandcheck:type-check-debt: PREREQUISITE NOT MET locally (no full build; the lock queue), so NOT MEASURED here; CI runs both. PR body gates on this body: closing-keyword-parity, partof-closing-keyword, changeset-no-major and adr-0087-registration exit 0. ESLint on the changed files exit 0. The union on the final head is cited in the report on #32622.On
e516f3534b, re-derived (74 commands, theprotocol.tstouch addscheck:adr-symbol-anchors,check:facade-delegation-only,check:filter-alias-parity,check:wildcard-fallthrough): 73 exit 0;check:type-check-debtexit 3 PREREQUISITE NOT MET (its build lost the lock queue), NOT MEASURED, CI runs it.dispatch-gates --ran: 74 accounted, 73 run, 1 NOT-MEASURED, 0 UNRUN.check-platform-checklist --changed-from origin/mainexit 0. On this body: changeset-no-major (LEVEL AXIS readsno (narrowing)+noneat patch), adr-0087-registration (1 declared-breaking changeset,not-required (no-migration-prescription)), closing-keyword-parity and partof-closing-keyword exit 0.On the final head
e57e7c0566(the/publishedbanner row and the@throwsdocblock): the 74 derived commands again gave 73 exit 0, withcheck:type-check-debtexit 3 PREREQUISITE NOT MET, so NOT MEASURED.--ranaccounted for 74 (73 run, 1 NOT-MEASURED, 0 UNRUN).check-platform-checklist --changed-from origin/mainexit 0. Changeset gates (adr-0087-registration, changeset-no-major, empty-changeset, changeset-fixed, nul-bytes) exit 0.git merge-tree --write-tree --name-onlyagainstorigin/maine71ecc1b32exit 0, so it still merges clean now that #33898 is merged; #33889bdb3a20a71exit 0. CITest Core (3/8)one57e7c0566failed twice: run 43743965993, job 132903743253, and the lane's one re-run, job 132914286588. Both times the only failed task waspackages/qa/scenariosrun-date.test.ts, on vitest's 5000 ms timeout. The first run failed2028-03-31at 6278 ms. The re-run failed2028-02-28at 5619 ms and2028-02-29at 6907 ms, while2028-03-31passed there at 4615 ms. A different case each time, and no assertion failed. The test imports only@objectstack/specand the scenarios package's own sources, which this diff does not touch. The same file failed the same way onmainwithout this PR: the merge-queue run of the unrelated objectql-only #33902 (run 43747969462, job 132917233366, Test Core 4/8) failed2028-02-28at 5719 ms.main's push run does not run scenarios at all (affected-only shards). Locally, on the branch merged withorigin/mainat9dd398cda0, the file passed 3 of 3 runs (34/34 each, about 5.4 s of tests). The scenarios closure is byte-identical tomainthere (git diff origin/main -- packages/qa/scenarios packages/spec docs/qais empty). Read: a load timeout that ismain's, not this PR's. No rerun from here.On the final head
a2b29893d0, two merges oforigin/mainlanded, both clean.9dd398cda0came first.a2b29893d0contains #34104 (e9fb09871d), the fix for those run-date timeouts (p0 #34081). Under the lock, at that head:run-date.test.ts35/35;Between the two merges, the runtime typecheck went red once, on
meta-object-publish-column-changes.test.ts(TursoDrivernot assignable toSqlDriver). The cause was build state:@objectstack/driver-tursois a peer dependency, so it is outsideruntime^..., and itsdistwas older thandriver-sql's. It went green oncedriver-tursowas built.Derived gates on that head:
check:type-check-debtexit 3 PREREQUISITE NOT MET, so NOT MEASURED;--ranexit 0;check-platform-checklistexit 0;git merge-treeagainstorigin/mainbf594ebd72exit 0.Generated by Claude Code
🤖 Generated with Claude Code