Skip to content

fix(metadata-protocol)!: the diff door refuses a bare two-holder name and compares one holder by ?package= - #34147

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/area-E1-33308
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/area-E1-33308

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #33308

Clause-②: yes (narrowing)
Metadata-protocol: added
Skills-docs: none — no skill under skills/ names the diff door, and the docs that do (content/docs/api/client-sdk.mdx, content/docs/permissions/system-context.mdx, content/docs/ui/apps.mdx) name the route without teaching how a name two packages hold is addressed, so no sentence there turns false; the generated API reference (content/docs/references/api/protocol.mdx) carries the new DiffMetaItemRequest with its packageId.

Declaration note: the claim (6895872289) first read Clause-②: no (narrowing), amended on the card (6898947511). Beside Metadata-protocol: added that pair is a contradiction in check-changeset-no-major.mjs (added-under-no, exit 1), and this PR widens a published request (the new DiffMetaItemRequestSchema, and the door now takes ?package=), so the lines above are #33193's (yes (narrowing) + added), the precedent this card mirrors. Measured both ways under Verification.

维护者速读

  • 改了什么:同名流程等按包存储的条目由两个包各持一份时,版本对比(diff)不再把一家的版本和另一家的版本当成同一条记录来比;不带包的对比在 History 和回滚已拒绝的地方同样返回 409 并列出各家,带 ?package= 只比较那一家的版本(默认的“当前版本”也取那一家的行)。非按包存储的类型带 ?package= 返回 400。spec 新增 DiffMetaItemRequestSchema 声明这个接口的请求。
  • 为什么改:实测 main 上不带包的 GET /meta/flow/NAME/diff 返回 200,把 beta 的 v2 和 alpha 的 v3 比成“同一条记录的修改”,管理员据此判断回滚会恢复什么,会选错。
  • 风险与回滚:只有“两家同时持有同名”时行为才变(原来 200,现在 409);只有一家持有时不带包的对比与 main 完全一致。直接 revert 本 PR 即可,无数据迁移。
  • 先看:packages/metadata-protocol/src/protocol-diff-delete-load.ts(diffMetaItem 接入 historySlotOf,默认 to/from 取本槽)、packages/rest/src/meta-item-history-routes.ts(diff 门接 ?package=)、packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts。
  • 两分钟验证:pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=1 test/history-diff-two-holders-33308.dogfood.test.ts,9 条全绿。
  • 需要你做的:无,席位落地(合入前需一次契约档复核)。

What changes

The rule is #33193's, not a second one. diffMetaItem (protocol-diff-delete-load.ts) asks historySlotOf (protocol-history-slots.ts, unchanged) which row slot it addresses, exactly as historyMetaItem and rollbackMetaItem do:

  • Bare, a by-package name two or more row slots hold, or one the bare plain read refuses (resolveItem, ADR-0150 D5), is refused 409 RESOURCE_CONFLICT naming every holder (details.candidates) before any version is read: the default range and a named one alike. A name one slot holds diffs bare exactly as on main.
  • ?package=P compares P's slot only: the history rows are filtered by the same predicate the history door reads (isVersionOf, now exported from sys-metadata-repository.ts), so the default from side is P's nearest earlier differing version and the default to side is P's own active row (bound to P, or the package-less row for the environment's slot), never the name's first active row. A named version another holder owns, or one attributed to no package while two hold the name, is refused 404 VERSION_NOT_FOUND saying whose it is (versionOfAnotherSlotError, one sentence shared with the rollback door: "Nothing was compared." / "Nothing was restored.").
  • Every other type: ?package= is refused 400 VALIDATION_ERROR (param: package) by the protocol (refusePackageSelectorOutsideSlottedTypes), never accepted and dropped.

Door (GET /meta/:type/:name/diff): package joins META_ITEM_DIFF_PARAMS and the door's repeat guard, is read through historyPackageSelector / metaItemPackageBinding as the history door reads it (all and empty name no package), and the refusal renders details.candidates (packageScopedCandidates). The request is compiled against the new declaration (TransportScopedMetaRequest of DiffMetaItemRequest), and both bounds are read through DiffMetaItemRequestSchema.shape.fromVersion / toVersion (z.number().int(), the same whole number UNDECLARED_WHOLE_NUMBER_PARAM read: no bound is refused that was accepted before).

Spec: DiffMetaItemRequestSchema (type, name, fromVersion, toVersion, packageId with the history doors' HISTORY_PACKAGE_SELECTOR_DESCRIPTION), its DiffMetaItemRequest / DiffMetaItemRequestParsed types, and the regenerated api-surface, authorable-surface, declaration-map, export-origins, json-schema.manifest, reference docs and strictness-ledger count. protocol.ts: only the diffMetaItem request type (packageId?: string) and its docblock (@throws for the 409, the cross-slot 404 and the 400), edited after #33898 merged.

Console: no ui/ file changes. @object-ui/data-objectstack's MetadataClient.diff() calls the door but nothing in ui/ calls diff() (the engine.layers.diff tab is the Layers view, not this door), so there is no diff view to name the package in. See Acceptance notes.

Tests

  • packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts (new, 9 cases, its own showcase boot with two AppPlugin holders and their .custom pairs): bare two-holder 409 with candidates (default range and named), their order and kind pinned at the wire; a package that neither holds nor ships the name 409 naming the holders; the environment's slot addressed through a package (the package-less row's versions alone, its own active row the to side, beside a bound row listed first); a name two packages ship one customized 409 as the bare read, ?package= default range and named range inside the slot, another holder's version and an unattributed one 404, CONTROL one-holder bare (and ?package= of its holder answers the same), CONTROL M1 environment versions, ?package= on view 400 with the protocol's reason.
  • packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts (new, 10 cases): the facet against a fake host, each arm alone; the bare refusal and the not-held-by-qualifier refusal read no table; the environment's slot addressed through a package takes the package-less row as its to side when a bound row is listed first.
  • packages/rest/src/meta-item-history-package-selector.test.ts: a new top-level describe for the diff door in the family's existing harness (AGENTS.md, ruling record 6583487846): PRESERVATION under both bound spellings, CONTROL all/empty, REFUSAL repeated ?package=, 409 candidates, 400 through the real protocol. rest-server-meta-door-closed-sets.test.ts: the measured-set pin takes package.
  • packages/spec/src/api/protocol.test.ts: a new top-level describe for DiffMetaItemRequestSchema beside the rollback request's.
Before the fix (H1 measured on this boot, pre-fix runtime): 6 of 7 red
× the bare diff of the two-holder name is refused 409 …
  {"fromVersion":2,"toVersion":3,"changed":[{"path":"label","from":"com.qa.diff33308.beta.custom r1","to":"com.qa.diff33308.alpha.custom r2"}]}: expected 200 to be 409
× a name two packages ship, one customized, is refused bare … expected 200 to be 409
× ?package= diffs that holder's versions alone … "The \"package\" query parameter is not supported by this endpoint. … Supported parameters: from, fromVersion, to, toVersion.": expected 400 to be 200
× ?package= refuses another holder's version … expected 400 to be 404
× CONTROL: a name one holder holds … (the `?package=` half: unknown parameter)
× ?package= on a type not stored per package … expected '{"error":{"code":"VALIDATION_ERROR",…' to contain 'not stored per package'
Tests  6 failed | 1 passed (7)

The bare default range alone answered alpha's v3 against beta's v2: the cross-holder diff the card measured, without even naming a version.

Ablations (each leg: `scripts/ablation-replace.mjs` anchor x1 → x0 and blob change proved, package rebuilt, `ablation-dist-preflight.mjs` exit 0 on the marker, dogfood file run, restore to HEAD proved by blob and empty `git diff HEAD`, rebuilt, preflight `--absent` exit 0)
Leg Mutation (forbidden behaviour put back) Red
A1 diffMetaItem skips historySlotOf when no package is named (__ablate33308_A1) 2 of 7: the bare diff of the two-holder name is refused 409…: {"fromVersion":2,"toVersion":3,…"from":"…beta.custom r1","to":"…alpha.custom r2"} expected 200 to be 409; a name two packages ship, one customized…: expected 200 to be 409
A2 another slot's history row accepted (isVersionOf filter bypassed, __ablate33308_A2) 2 of 7: ?package= diffs that holder's versions alone…: expected [ 2, 3 ] to deeply equal [ 1, 3 ]; ?package= refuses another holder's version…: {"fromVersion":2,"toVersion":1,…} expected 200 to be 404
A3 the door accepts ?package= and drops it (__ablate33308_A3, rest) 3 of 7: the two ?package= cases expected 409 to be 200 / expected 409 to be 404; ?package= on a type not stored per package…: {"type":"view",…"fromVersion":null,"toVersion":null,…} expected 200 to be 400
A4 a package that neither holds nor ships the name answered an empty slot instead of the refusal (__ablate33308_A4) dogfood 1 of 9: a package that neither holds nor ships the name is refused 409…: {"type":"flow",…"fromVersion":null,"toVersion":null,…} expected 200 to be 409; facet 1 of 10: expected null to be an instance of PackageScopedNameRefusedError
A5 the active-row match never takes the package-less row (__ablate33308_A5) dogfood 1 of 9 and facet 1 of 10, the environment's-slot case: expected [ null, null ] to deeply equal [ 1, 2 ]. The first try of this leg was refused by ablation-replace.mjs as a no-op (the replacement contained the anchor, anchor count moved 1 -> 1), so it was rerun with an anchor-free replacement
A6 the holders listed in reverse order (__ablate33308_A6, protocol-history-slots.ts) dogfood 3 of 9: the two-holder bare case, the non-holder case and the environment's-slot case, e.g. expected [ { kind: 'environment' }, …(1) ] to deeply equal [ { kind: 'package', …(1) }, …(1) ]; facet 3 of 10

After the last leg of each round: preflight --absent exit 0, tree clean. At 8ed07410cd after A4 to A6: the dogfood file 9/9, the facet file and protocol-history-slots tests 25/25.

Acceptance notes

Verification

Regenerated head 624b7ff393 (after a merge-queue red on scripts/root-index.test.ts, a stated count stale against main): origin/main 98a4449f87 merged through scripts/pm/os-regen-merge.sh and the reference pages regenerated. The own non-generated patch-id is e97b7a9cd143 before and after; only content/docs/references/index.mdx moves, now 1664 schemas. scripts/root-index.test.ts 20/20, check:generated up to date, the dogfood pin 9/9, CI 58 success / 10 skipped. Contract delta PASS 6907048910. The readings below are from 8ed07410cd.

Head 8ed07410cd. It is the review's two should-fix items on top of 71cb83eb36, a merge of origin/main at b4eea88505. That main contains #34104 (e9fb09871d), the fix for the run-date.test.ts timeouts behind the Test Core (7/8) red at 37fd6054d0. Every reading below ran under scripts/pm/os-verify-lock.sh and is quoted from its VERDICT line. Every suite and gate is green.

The merge brought only main's changes. This branch's diff against its base has the same git patch-id (964c6bf182) before and after the merge. So the full dogfood battery at 37fd6054d0 still stands: 468 passed and 3 skipped of 471 files, 3966 tests passed. The new commit adds test pins and changeset prose only.

Readings: suites, typecheck, pins, gates, body gates, merge-tree
  • Build (turbo run build, dogfood and scenarios closures): VERDICT command-exit 0.
  • @objectstack/scenarios test/runner/run-date.test.ts: 35/35, VERDICT command-exit 0.
  • @objectstack/metadata-protocol: Test Files 343 passed, 9 skipped; Tests 22934 passed, 45 skipped. VERDICT command-exit 0.
  • @objectstack/rest: Test Files 418/418; Tests 8762 passed, 355 skipped. VERDICT command-exit 0.
  • @objectstack/spec: Test Files 934/934; Tests 28526 passed, 1 todo. VERDICT command-exit 0.
  • Typecheck, each exit echoed: metadata-protocol 0, rest 0, spec 0, dogfood 0.
  • check:generated: "All 14 generated artifacts are up to date".
  • Pins at 8ed07410cd, after the A4 to A6 legs: the dogfood file 9/9; the facet file and protocol-history-slots tests 25/25.
  • Derived gates (dispatch-gates --commands --repo objectstack-ai/objectstack, 122 families at 8ed07410cd): 122 exit 0, including check:skill-examples and check:dual-build-cjs-loads, NOT MEASURED at the previous head. --ran: "122 derived, 122 run, 0 NOT-MEASURED, 0 UNRUN".
  • Body gates on this body:
    • check-changeset-no-major exit 0.
    • check-adr-0087-registration exit 0.
    • check-partof-closing-keyword exit 0.
    • check-closing-keyword-parity --body reports the one closing declaration on this body, bound by 2 of 3 parsers (informational).
    • check:nul-bytes exit 0.
  • Merge-tree (--write-tree --name-only): no conflicted path against origin/main b4eea88505 (exit 0), nor against 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 head e57e7c0566 (exit 0).

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/metadata-protocol, @objectstack/rest, @objectstack/spec, touching 28 documentable anchor(s). ⚠️ 5 changed file(s) yielded no anchor (packages/spec/api-surface/api.json, packages/spec/authorable-surface/api.json, packages/spec/declaration-map/api.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

22 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json b8456ebd4abb498233a13bdd65955d14e7e46825.

⛔ 12 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

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

Coarse fallback — 177 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 b8456ebd4abb498233a13bdd65955d14e7e46825 → packageMentionDocs.

Which tree this was computed on

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

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

⚠️ 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 b8456ebd4abb498233a13bdd65955d14e7e46825 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@github-actions github-actions Bot added documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 37fd605 · 2026-11-15T23:02Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 37fd6054d071516a9b85e3c7c83697dbfd8e7135
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, packages/spec/src/api/protocol.test.ts, packages/spec/api-surface/api.json, packages/spec/authorable-surface/api.json, packages/spec/declaration-map/api.json, packages/spec/export-origins/api.json, packages/spec/json-schema.manifest/api.json, docs/audits/2026-07-unknown-key-strictness-ledger.counts/api.md, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/sys-metadata-repository.ts, packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts, packages/rest/src/meta-item-history-routes.ts, packages/rest/src/rest-server.ts, packages/rest/src/meta-item-history-package-selector.test.ts, packages/rest/src/rest-server-meta-door-closed-sets.test.ts, packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts, .changeset/33308-diff-door-package-address.md, content/docs/references/api/protocol.mdx, content/docs/references/index.mdx + packages/metadata-protocol/src/protocol-history-slots.ts, packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/core/src/package-scoped-resolution.ts, packages/rest/src/error-response.ts, packages/rest/src/rest-route-ledger.ts, packages/client/src/index.ts, ui/packages/data-objectstack/src/metadata-client.ts (read, not reviewed)

Read at 2026-11-15T23:10Z. First review of this head, taken on patrol as owed; claim: comment 6902844568. Independence: implemented in a zhuangjianguo lane (domain:server#5); neither dispatched nor implemented by os-tesla.

① Derived judgments

  • The rule is the family's, taken by call and not by copy. diffMetaItem asks historySlotOf (unchanged file) with the same arguments the history and rollback doors pass, and narrows only when the request named a package (slot?.addressed), exactly as historyMetaItem (versionsOf) and rollbackMetaItem (versionOf) do. So the bare refusal is the same object the other two doors throw: PackageScopedNameRefusedError, 409 RESOURCE_CONFLICT, reason ambiguous-in-environment, callerPackageId: null, candidates the bound packages in packagelessAddress order and then the environment holder. It is thrown before any history or active row is read (the facet pin asserts an empty read list).
  • Parity with the plain and layered reads. Where the bare plain read refuses a name (two packages hold it in code, ADR-0150 D5), the diff door rethrows that read's own refusal from the registry resolver, so code, status and candidates are that read's by identity; the dogfood case compares the two answers on one boot. Against PR 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's layered-read refusal (read at e57e7c05): same order of the two judgments (stored-row ambiguity first, then the registry's), same kind: package candidate shape in packagelessAddress order. The REST door renders through handleRouteError with packageScopedCandidates, the one renderer the plain read, the layered read and the history door use, so details.candidates cannot take a second shape here.
  • One difference from the plain read, inherited and declared. The history family also refuses a package's row beside the package-less row, where the bare plain read serves the environment's item (resolveEnvironmentWide). That is fix(metadata-protocol)!: history and rollback doors refuse a bare two-holder name and address one holder by ?package= #33193's row-slot rule (versions are numbered per name across row slots), the card's Expected names it as the rule to apply, and the changeset lists that state under BREAKING. Not a finding.
  • ?package= selects one holder's history. History rows are filtered by isVersionOf, now exported, the predicate the history door's repository read and the rollback use. The default to side is the addressed slot's own active row (matched on the row's binding, the package-less row for the environment's slot) and the default from walk runs over the filtered rows only, so neither default can reach another holder's version. A named version outside the slot, or one attributed to no package while two hold the name, is 404 VERSION_NOT_FOUND through versionOfAnotherSlotError; the rollback's sentence is the same text with its outcome passed in, so that door's message is unchanged.
  • Non-holder, unknown and other-type selectors. A package that neither holds nor ships the name is refused 409 not-held-by-qualifier inside historySlotOf while some row slot holds the name; a non-slotted type is refused 400 VALIDATION_ERROR on package before the expanded-view recursion and before any read. Both are the history door's answers because both come from the shared module. A disabled package has no arm of its own on this family; none is added or removed here.
  • Unchanged paths. A non-slotted type returns from historySlotOf at once and takes the old code path. A slotted name one row slot holds, named bare, gets addressed: false, so no filter is applied and the single-row active read is the old one; the dogfood CONTROLs cover the one-holder name and the M1 takeover, and the facet CONTROL covers an unattributed version of a sole slot.
  • Doors. The diff has one wire door (GET /meta/:type/:name/diff, scoped and unscoped registrations share the handler) and one protocol method; the runtime dispatcher has no diff branch (the route ledger row says REST-only, confirmed by grep) and no MCP or CLI caller exists. The closed query set, the repeat guard and the selector read all take package; all and the empty string name no package, as on the history door. The per-caller gate types (app, book, doc, view, dashboard) are disjoint from the slotted types, so no gate reads a different holder's document than the one compared. The authoring gate still runs first, so the 409 and its holder list are answered only to a caller admitted to the trail. The two SDK clients are S1.
  • Spec and generated files. DiffMetaItemRequestSchema mirrors the facet's parameter type member for member and reuses HISTORY_PACKAGE_SELECTOR_DESCRIPTION. The five baselines, the strictness count (508 to 509), protocol.mdx (144 to 145 schemas, the new table) and index.mdx (493 to 494, 1662 to 1663) each move by exactly this one schema. The REST door reads both bounds through .shape.fromVersion / .shape.toVersion, z.number().int().optional(), the same reading UNDECLARED_WHOLE_NUMBER_PARAM gave, so no bound changes its answer.
  • Card acceptance. Each line of Expected is met: ?package=P diffs the addressed slot only and refuses another holder's version, the bare two-holder name is 409 naming both, the one-holder name works bare, ?package= on another type is 400. The Console clause is conditional and its condition is false: nothing under ui/ calls MetadataClient.diff().

② Semver level

  • Clause-②: yes (narrowing) with Metadata-protocol: added, on the PR body and in the changeset, the pair fix(metadata-protocol)!: history and rollback doors refuse a bare two-holder name and address one holder by ?package= #33193 carried. added is the right kind for the new request declaration: the authorable-surface/api.json shard gains five keys, and the level gate refuses none over a moved shard and refuses added under no. @objectstack/spec is minor; @objectstack/metadata-protocol and @objectstack/rest are patch under the BREAKING banner. The claim's no (narrowing) was amended on the card (6898947511) before review.
  • Narrowing carrier: the title carries !, the changeset has the BREAKING paragraph, the FROM / TO line with the one-line remedy, and exactly one ADR-0087 marker (not-required (no-migration-prescription)), which holds: no key is removed or reshaped and no stored row changes.
  • CI at this head: 68 check-runs, 56 success, 10 skipped, 2 failure, none in progress. The two failures are Test Core (7/8) and the Test Core aggregate: three cases of packages/qa/scenarios/test/runner/run-date.test.ts, each Test timed out in 5000ms. No scenarios file is in this diff and the cases do not reach the metadata doors. Check Changeset, the lint and repo gates, the type checks, Build Docs, Dogfood Regression Gate and Spec property liveness are green. This PASS is on the contract; the head is not green, and landing waits for a green Test Core.

③ Boundary flags

④ Design judgment

No must-fix.

  • packages/spec/src/api/protocol.zod.ts holds against its first consumer: the REST door compiles its request against the declaration and reads both bounds through it, and the protocol docblock states the three refusals the description promises.
  • protocol-diff-delete-load.ts agrees with the contract it implements. The filter, the addressed active-row read and the two named-version misses are each inside the slot; the bare path is byte-for-byte the old one once historySlotOf answers.
  • meta-item-history-routes.ts / rest-server.ts: the closed set, the repeat guard, the selector and the refusal rendering are the history door's, by the same helpers.

S1 (should-fix) — The published SDK cannot follow the remedy, and the PR body names a carrier that is closed. client.meta.diffItem (packages/client/src/index.ts, the client the route ledger binds to this route) sends only from and to, as does the Console client's diff(). After this PR an SDK caller on a two-holder name gets the 409 and has no method argument to answer it with. The Acceptance note names only the Console client and points at #33310 as where the client half belongs; #33310 lists meta.diffItem by name and was closed as not planned on 2026-11-15 (record 6897313072, the maintainer-directed p3 review), before this PR opened. A refusal in place of a wrong comparison is the better answer and the closure is a standing decision, so this does not block. Owed: correct the note (the SDK half is decided not planned, reopen on need, not a pending follow-up), and say in the changeset that meta.diffItem sends no package, so the FROM / TO remedy is a raw request for an SDK caller.

S2 (should-fix) — Three claims of the changeset have no pin at this door. (a) ?package= naming a package that neither holds nor ships the name, 409 not-held-by-qualifier: no case in the dogfood file, the facet file or the REST file. (b) The environment's slot addressed through a package (the read falls back to the package-less row, slot null): the new active-row match on a null binding is this PR's own code and no case drives it; the M1 CONTROL is bare. (c) Over HTTP the candidates are compared sorted and reduced to an id, on both the dogfood and the REST case, so neither their order nor their kind is pinned at the wire; only the facet pin holds the order. The rule itself is pinned on the history door by #33193, which is why this is not a must-fix.

N1 (nit) — The changeset says a package that neither holds nor ships the name is refused 409, without the condition the protocol docblock states: only while another row slot holds the name. With no stored row of the name, such a request answers an empty comparison. The behaviour is historySlotOf's (read, not in this diff); the sentence is the changeset's.

Implemented-by: claude/area-E1-33308
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

…environment's slot through a package, and the holders' wire order

The changeset now says the SDK's meta.diffItem sends no package, so an SDK
caller's remedy is a raw request, and states the condition of the
not-held-by-qualifier refusal.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 8ed0741 · 2026-11-16T01:02Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8ed07410cd54bd46b042a615dfe7bcf80c1b864b
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, packages/spec/src/api/protocol.test.ts, packages/spec/api-surface/api.json, packages/spec/authorable-surface/api.json, packages/spec/declaration-map/api.json, packages/spec/export-origins/api.json, packages/spec/json-schema.manifest/api.json, docs/audits/2026-07-unknown-key-strictness-ledger.counts/api.md, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/sys-metadata-repository.ts, packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts, packages/rest/src/meta-item-history-routes.ts, packages/rest/src/rest-server.ts, packages/rest/src/meta-item-history-package-selector.test.ts, packages/rest/src/rest-server-meta-door-closed-sets.test.ts, packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts, .changeset/33308-diff-door-package-address.md, content/docs/references/api/protocol.mdx, content/docs/references/index.mdx + packages/metadata-protocol/src/protocol-history-slots.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/objectql/src/registry.ts, packages/metadata/src/loaders/database-loader.ts (read, not reviewed)

Read at 2026-11-16T01:09Z. Delta review of this head against PASS 6902957227 at 37fd605; claim: comment 6904443361; 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.

① Derived judgments

Prior findings, by id:

  • S1 of 6902957227: changed, half closed. The changeset now says client.meta.diffItem sends no package and that the remedy is a raw request for an SDK caller. The PR body's Acceptance note is unchanged: it still names client: meta.getHistory, rollbackItem and diffItem cannot name a package, so a two-holder item's history is unreachable through the SDK (ADR-0150 D3, after #32905) #33310 as where the client half belongs, a card closed as not planned. Continues as S1 below, reduced to that note.
  • S2 of 6902957227: closed. (a) The non-holder refusal is pinned at the facet (reason, candidates, no read) and over HTTP. (b) The environment's slot addressed through a package is pinned at both levels, with a fixture ordered so that a first-active-row read would pick the wrong slot. (c) The dogfood case now asserts the holders at the wire in order with their kind, for two packages and for a package beside the environment. The REST harness case still compares sorted ids; the wire pin exists, so nothing is owed there.
  • N1 of 6902957227: closed. The changeset states the condition (refused while another row slot holds the name; an empty comparison with no stored row), which is what historySlotOf does.

② Semver level

  • Unchanged from the prior record and still right: Clause-②: yes (narrowing) with Metadata-protocol: added, minor for @objectstack/spec, patch for @objectstack/metadata-protocol and @objectstack/rest under the BREAKING banner, one ADR-0087 marker. 8ed07410 edits two sentences of the changeset body and no level, package or marker line.
  • CI at this head: 68 check-runs, 58 success, 10 skipped, none failed, none in progress. The Test Core failure recorded at 37fd6054 (three timed-out scenario cases outside this diff) is green here. The PR reads mergeable and clean against its base.

③ Boundary flags

④ Design judgment

No must-fix.

  • packages/spec/src/api/protocol.zod.ts and its five baselines: unchanged since the prior record, and not made stale by the merge.
  • protocol-diff-delete-load.ts, meta-item-history-routes.ts, rest-server.ts: unchanged; the code agrees with the contract as judged at 37fd6054, and the new pins hold three more of its claims.
  • The two pin files: the added cases assert what the changeset says and would fail on the behaviours they name (a first-active-row to side, a dropped selector, a reordered or kind-less candidate list).

S1 (should-fix; continues S1 of 6902957227) — The PR body's Acceptance note still says the client half belongs on #33310 or beside it. #33310 was closed as not planned on 2026-11-15 (record 6897313072) and lists meta.diffItem by name. Owed: the note says the SDK half is decided not planned, to be reopened on need. The changeset half of the old S1 is done. A PR-body edit, no commit.

S2 (should-fix; new, from the merge of #34036) — On a doc the door's sentence for other types no longer holds in one state. The door reads the current document by name for its per-caller judgment before it calls the protocol, and since #34036 that read refuses a doc name two enabled packages hold, 409 naming both. So at this head a bare diff of such a name is 409 with candidates, and the same request with ?package= is that 409 again, never the 400 on package the changeset and the protocol docblock state for every type not stored per package: the refusal lists holders that cannot be named at this door. Read in the code at this head, not run; no case in the diff covers a doc. The history door is in the same state on main today, the refusal is the safe answer, and #34036 names #34040 and #34041 for the doc remedy, so this does not block. Owed: one sentence in the changeset or the Acceptance notes saying so, and a pointer to the card that carries it (or a new one for the history family's doors).

Implemented-by: claude/area-E1-33308
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

Request: review · PR #34147 · area S4 (E1) · Fixes #33308 · head 8ed0741 (green: 58 success, 10 expected skip, none failed; declared final)

Ordinary ACCEPT read (L1) per review-checklist.md. L2 is in: review#2 PASS 6902957227 at 37fd605 and delta PASS 6904546735 at this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6

Review — PASS

Head-sha: 8ed07410cd54bd46b042a615dfe7bcf80c1b864b
Area: S4 / E1 · Fixes #33308 · L1, the ordinary ACCEPT read per review-checklist.md. The contract face (Clause-②: yes (narrowing), Metadata-protocol: added, the new DiffMetaItemRequestSchema) is L2's. It is in: 6902957227 at 37fd6054, then delta 6904546735 at this head.

  1. The mechanism, read on the tree. diffMetaItem now reads the same slot as the history and rollback doors (historySlotOf).
    • refusePackageSelectorOutsideSlottedTypes runs first, so ?package= on a non-slotted type is a 400 and is never dropped.
    • Bare with two holders, historySlotOf refuses 409 before any history row is read. Bare with one slot, addressed is false, so versionsOf is undefined and the rows and the active row read exactly as on main.
    • Addressed, every history row passes through the exported isVersionOf, the history door's predicate, so the default from walk only meets the slot's own versions. A named version that another slot owns is answered by versionOfAnotherSlotError, which is the rollback's sentence moved, not copied. The rollback message is unchanged ("Nothing was restored.").
    • The default to side is the slot's own active row: findEnvironmentRows(...).find(rowSlotOf(row) === owner.packageId). Here null matches the package-less row, and a slot with no row has no active side.
    • The history read has no row limit, so filtering after the read cannot drop the slot's rows.
  2. The door. package joins META_ITEM_DIFF_PARAMS and the repeat guard, and it is read through historyPackageSelector (all and empty name no package). The refusal renders packageScopedCandidates. The bounds now read through DiffMetaItemRequestSchema.shape.fromVersion / toVersion, which is z.number().int().optional(), the same schema as UNDECLARED_WHOLE_NUMBER_PARAM (rest-server.ts:833). So no bound is newly refused, and the PRESERVATION describe pins that under both spellings.
  3. Tests.
    • The new dogfood file runs on a real showcase boot with two AppPlugin holders. Each refusal asserts both status and code: 409 RESOURCE_CONFLICT with candidates and their wire order, 404 VERSION_NOT_FOUND for another holder's version and for an unattributed one, and 400 VALIDATION_ERROR on view.
    • The CONTROLs (one holder bare, and M1 environment versions) hold.
    • The pre-fix reading is 6 of 7 red. Ablations A1–A6 each turn the named pins red and were restored to HEAD with the dist preflight --absent.
    • Placement follows AGENTS.md: the REST and spec pins are top-level describes in the family harnesses, and the facet and dogfood pins are card-named files.
  4. Dogfood battery for the ! narrowing. The battery ran at 37fd6054: 468 passed and 3 skipped of 471 files, 3966 tests. I checked that it still covers this head.
    • git patch-id --stable of the branch against its base is 964c6bf182 at both 37fd6054 and 71cb83eb, so the merge of main moved no own line.
    • 8ed07410 touches only two test files and changeset prose, and the area ran the new pins 9/9 and 25/25.
    • The merge group runs the Dogfood shards again on the queued tree.
  5. Declarations.
  6. Out-of-surface file, accepted. sys-metadata-repository.ts changes only in two ways: isVersionOf is exported, and the rollback's 404 sentence moves into the shared helper. It is covered by the claim amendment 6898947511.
  7. Noted, not owed here. MetadataClient.diff() (@object-ui/data-objectstack) and client.meta.diffItem send no package, so an SDK caller on a two-holder name gets the 409 with only a raw-request remedy. The changeset says so, and no ui/ code calls diff().
  8. Check-runs on the head: 60 success, 12 skipped, none failed or pending. That includes the Check Changeset re-run after the body edit. mergeable_state is clean, and git merge-tree against origin/main dfb8ed3570 is clean.

The patch-id is 776061f2b35e4c8e4fe86b265504619ff4760fb7. A clean main merge that keeps it keeps this PASS.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

席位核对

ACCEPT · area S4 (E1) · Head-sha: 8ed07410cd54bd46b042a615dfe7bcf80c1b864b

  • Shape: Fixes #33308. Draft, base main, 20 files, +771/−53. mergeable_state clean. The title carries !, the changeset has a BREAKING banner with FROM/TO, and the ADR-0087 marker is not-required (no-migration-prescription). The declaration is Clause-②: yes (narrowing) with Metadata-protocol: added: @objectstack/spec minor (new DiffMetaItemRequestSchema), metadata-protocol and rest patch. The body carries a Skills-docs: line. The PR was opened by the area on the user's explicit approval in the S4 thread, after auto mode refused the dev's relay pr_create.
  • Premise: measured. Before the fix, a bare two-holder diff answered 200, comparing beta's v2 with alpha's v3. The new dogfood file was 6 of 7 red before the fix and passes at this head.
  • Reviews on this head:
    • L1: review-b PASS 6904659047, patch-id 776061f2b35e4c8e4fe86b265504619ff4760fb7.
    • L2: review#2 PASS 6902957227 at 37fd605, then delta PASS 6904546735 at this head (CONTRACT_REVIEW_TIER). No must-fix is open.
  • Gates:
    • 72 check-runs on this head: 60 success, 12 expected skip, none pending or failed.
    • check-governed-merges --pr 34147: NOT governed, 824 lines.
    • Dogfood battery at 37fd605: 468 passed and 3 skipped of 471 files. The own-diff patch-id 964c6bf182 is the same before and after the main merge, and 8ed0741 is tests and changeset prose only. Both reviews confirm.
  • Accepted deviations:
    • The claim's Clause-② no (narrowing) is replaced by yes (narrowing) + added, because the no/added pair fails the gate (claim amendment 6898947511).
    • sys-metadata-repository.ts is outside the first surface (export plus the shared 404 sentence; covered by the same amendment).
  • Out of scope:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

Landing (landing-operations B) · head 8ed07410

Reading Value
check-runs on head 72: 60 success, 12 expected skip, 0 pending/failed
check-governed-merges --pr 34147 NOT governed, 824 lines
reviews L1 PASS 6904659047 · L2 PASS 6902957227 + delta 6904546735

State change: ready + auto-merge (area authorising line).

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43785715442 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/8) — 失败步骤: Run this shard's tests

    @objectstack/spec:test:repo:  FAIL   repo  scripts/root-index.test.ts > content/docs/references/index.mdx (the committed page) > states no count that its own rows contradict
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected [ 218, 1663 ] to deeply equal [ 218, 1664 ]
    
  • Test UI (5/16) — 失败步骤: Run the ui tests (shard 5/16)

    × (b) CONTROL: 404 RESOURCE_NOT_FOUND still draws "Object Not Found" 1018ms
    FAIL   dom  packages/app-shell/src/console/__tests__/AppContent.disabledPackageDeepLink-13052.test.tsx > a deep link to an object read by name always leaves the splash (objectui#13052) > (b) CONTROL: 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 9 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43788204637 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/8) — 失败步骤: Run this shard's tests

    @objectstack/spec:test:repo:  FAIL   repo  scripts/root-index.test.ts > content/docs/references/index.mdx (the committed page) > states no count that its own rows contradict
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected [ 218, 1663 ] to deeply equal [ 218, 1664 ]
    
  • Test UI (5/16) — 失败步骤: Run the ui tests (shard 5/16)

    × (b) CONTROL: 404 RESOURCE_NOT_FOUND still draws "Object Not Found" 1016ms
    FAIL   dom  packages/app-shell/src/console/__tests__/AppContent.disabledPackageDeepLink-13052.test.tsx > a deep link to an object read by name always leaves the splash (objectui#13052) > (b) CONTROL: 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 16 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 624b7ff · 2026-11-16T04:01Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 624b7ff3930c868fa9e904cbdb818182361edcc4
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, packages/spec/src/api/protocol.test.ts, packages/spec/api-surface/api.json, packages/spec/authorable-surface/api.json, packages/spec/declaration-map/api.json, packages/spec/export-origins/api.json, packages/spec/json-schema.manifest/api.json, docs/audits/2026-07-unknown-key-strictness-ledger.counts/api.md, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/sys-metadata-repository.ts, packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts, packages/rest/src/meta-item-history-routes.ts, packages/rest/src/rest-server.ts, packages/rest/src/meta-item-history-package-selector.test.ts, packages/rest/src/rest-server-meta-door-closed-sets.test.ts, packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts, .changeset/33308-diff-door-package-address.md, content/docs/references/api/protocol.mdx, content/docs/references/index.mdx + packages/metadata-protocol/src/protocol-history-slots.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/metadata-protocol/src/protocol-save.ts, packages/objectql/src/registry.ts, packages/rest/src/meta-item-read-routes.ts, packages/rest/src/meta-item-read-gate.ts, packages/spec/src/api/discovery.zod.ts, packages/spec/src/data/field.zod.ts, docs/adr/0048-cross-package-metadata-collision.md (read, not reviewed)

Read at 2026-11-16T04:09Z. Delta review of this head against PASS 6904546735 at 8ed0741; claim: comment 6906907759; 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.

① Derived judgments

Prior findings, by id:

② Semver level

CI completed before posting: 68 check-runs on this head, 58 success, 10 skipped, none failed.

③ Boundary flags

④ Design judgment

No must-fix.

  • packages/spec/src/api/protocol.zod.ts and its five baselines: unchanged since the prior record and not made stale by the merge; main's edits under packages/spec/src/api (auth-endpoints, discovery, error-code-ledger) are other schemas.
  • protocol.ts, rest-server.ts: the merged files hold both sides whole; the code agrees with the contract as judged at 37fd6054 and 8ed07410.
  • protocol-diff-delete-load.ts, meta-item-history-routes.ts, sys-metadata-repository.ts, the pin files: byte-identical to 8ed07410.
  • content/docs/references/api/protocol.mdx, content/docs/references/index.mdx: the committed pages state what the merged source declares, and no count its own rows contradict.
  • The narrowing against merged main: it makes the family's refusal real at the last door that compared across holders, and main has since moved the layered read to the same answer. It takes no declared capability away that main still serves elsewhere.

S1 (should-fix; continues S2 of 6904546735, reduced) — For a doc name two enabled packages hold, the changeset's sentence that a type not stored per package answers 400 on package does not describe this door: the request is refused 409 with or without the selector, as the prior record found, and nothing in this delta changes it. The remedy now has a card (#34190, open). Owed: one sentence in the PR body's Acceptance notes saying so and naming #34190. A PR-body edit, no commit; it does not block.

Implemented-by: claude/area-E1-33308
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

席位核对 (delta)

ACCEPT · area S4 (E1) · Head-sha: 624b7ff3930c868fa9e904cbdb818182361edcc4

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

Re-landing (landing-operations B) · head 624b7ff3, after the queue ejection on a stale reference count

Reading Value
check-runs on head 58 success, 10 expected skip, 0 failed
check-governed-merges --pr 34147 NOT governed, +771/−53
reviews L1 PASS 6904659047 (merge-only delta keeps it) · L2 delta PASS 6907048910

State change: auto-merge re-armed (area authorising line).

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 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

Development

Successfully merging this pull request may close these issues.

metadata-protocol: the history diff door compares two package holders' versions of one name as if they were one item's (ADR-0150 D4, after #32905)

1 participant