Skip to content

fix(metadata-core)!: a package ahead of the runtime is told to upgrade, not to run migrate meta - #26530

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-ftaodz
Oct 27, 2026
Merged

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

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #26480

Clause-②: no (narrowing)
Metadata-protocol: none

维护者速读

  • 改了什么:安装一个协议主版本比运行时新的包(如在 18 上装 ^19)时,OS_PROTOCOL_INCOMPATIBLE 拒绝不再建议 migrate meta --from 19,改为提示升级运行时或安装适配本主版本的包;details 里不再带 migrateCommand。
  • 为什么改:migrate meta 只能把旧主版本的元数据往前迁,对“包比运行时新”的情况是死路,运维会被误导。
  • 风险与回滚:低,但按规则记为对外类型收窄(BREAKING):ProtocolIncompatibleDiagnostic.migrateCommand 从必有变为可选,仓外若有 TypeScript 代码直接取用它会在编译时报错。拒绝的 code 与 422 状态不变,旧主版本(如 ^17)的提示完全不变。回滚即 revert 本 PR。
  • 先看:packages/metadata-core/src/protocol-handshake.ts(checkProtocolCompat 里 ahead 分支);packages/runtime/src/domains/packages-install-protocol-incompatible.test.ts(HTTP 门的新用例)。
  • 两分钟验证:pnpm --filter @objectstack/metadata-core exec vitest run src/protocol-handshake.test.ts,预期 37/37 通过,其中 [#26480] 四条。
  • 需要你做的:无,席位落地。

What changes

checkProtocolCompat (@objectstack/metadata-core) now compares the declared floor major (declaredFloorMajor) with the runtime's protocol major before it writes the prescription:

  • Floor major above the runtime's (the package is ahead of the runtime): the diagnostic carries no migrateCommand, and the message ends The package is built for a newer protocol than this runtime implements. Upgrade the runtime to protocol 19, or install a build of 'ID' for protocol 18.
  • Floor major at or below the runtime's, or not determinable: unchanged, Run: objectstack migrate meta --from N and migrateCommand as before.

protocolIncompatibleAnswer leaves migrateCommand out of details when the diagnostic has none (never undefined), so both HTTP doors, POST /api/v1/packages and POST /api/v1/marketplace/install-local, answer four members for the ahead case. ProtocolIncompatibleDiagnostic.migrateCommand becomes optional in the exported type. The refusal's code and status (422 OS_PROTOCOL_INCOMPATIBLE) do not change. Two comments that said the diagnostic always names migrate meta (runtime/src/app-plugin.ts, the rehydrate line in cloud-connection/src/marketplace-install-local-plugin.ts) now name both remedies. Changeset: @objectstack/metadata-core patch, with the BREAKING banner and the ADR-0087 disposition not-required (runtime-interface-only packages/metadata-core/src/protocol-handshake.ts#ProtocolIncompatibleDiagnostic).

BREAKING public-surface narrowing, shipped as patch because it is not a metadata-protocol change: ProtocolIncompatibleDiagnostic is exported from @objectstack/metadata-core's entry (export * from './protocol-handshake.js'), and its migrateCommand member goes from string to optional. A guaranteed output member that can now be absent narrows what the package exposes. pm-dispatch execution-duties.md: "收窄已发布接受集的卡是 Clause-②: no,不移车道;入队前欠一次契约复审档复核。" So the declaration is Clause-②: no (narrowing), and the PR owes a contract-review pass before it is queued.

No FROM → TO line, on purpose. AGENTS.md Post-Task Checklist step 3 asks for one when a change is "removing or renaming anything an author can write (a spec key, an export, a config field)"; this change removes and renames nothing, it makes one output member optional. The disposition it takes, runtime-interface-only, "ALSO inherits the no-migration-prescription refusal" (scripts/check-adr-0087-registration.mjs header), so a rewrite prescription in the changeset would refuse the category. What a reader does instead is stated in prose: treat an absent migrateCommand as "no command applies; read message"; a TypeScript reader that dereferences it is told by its compiler.

Why

The card's reproduction: on a protocol-18 runtime, POST /api/v1/packages with engines.protocol: '^19' answered details.migrateCommand = objectstack migrate meta --from 19 and "Run: objectstack migrate meta --from 19". Migration only moves metadata forward from an older major, so the operator was sent to a command that cannot apply. Ruling: triage 6434187705.

Tests

Red first on main (00874b9e09), then green on the fix:

Suite On main On the fix
metadata-core protocol-handshake.test.ts 3 failed, 34 passed 37/37
runtime packages-install-protocol-incompatible.test.ts (both door arms) 2 failed, 6 passed 8/8
cloud-connection marketplace-install-local-protocol-handshake.test.ts (install door and rehydrate log line) 2 failed, 11 passed 13/13
  • The new [#26480] blocks assert the ADR-0112 envelope (code + status 422), details without migrateCommand, no migrate meta in the message, and the runtime upgrade named. The ^17-style control (^10 on an 11 runtime in the unit suite, and every existing older-major test) keeps --from N.
  • Ablation (committed fix, scripts/ablation-replace.mjs): const ahead = targetMajor !== null && targetMajor > runtimeMajor; replaced by const ahead = false; turns the 3 unit tests red (34 still pass, the control included); restored from the HEAD blob de811bf3863, git diff HEAD empty afterwards.

Whole packages at 43b9bd0d9: metadata-core test 827/827 + typecheck exit 0; runtime 8371 passed, 19 skipped + typecheck exit 0; cloud-connection 747/747 + typecheck exit 0. eslint --no-inline-config on the six touched .ts files: exit 0.

After merging origin/main (d2ca7079b), the three targeted suites again at a08584332: 37/37, 8/8, 13/13.

Dogfood battery (owed by the (narrowing) arm): @objectstack/dogfood^... closure built, then pnpm --filter @objectstack/dogfood test under the lock at 17bb14466: VERDICT command-exit 0, Test Files 300 passed, 3 skipped (303); Tests 2494 passed, 18 skipped (2512); no failures. The final head a08584332 differs from 17bb14466 only in the changeset's Clause-② line (git diff --stat: 1 file, 1 line).

Acceptance notes

  • Who reads details.migrateCommand. No in-repo code outside tests reads it. The console's not-loaded marker reads only code and requiredRange; os package install prints the server's error.message; the artifact boot refusal (runtime/src/artifact-reference.ts) and the service-package rehydrate log embed diagnostic.message; the cloud-connection rehydrate line embeds the message and already says "install a version of the package built for protocol N". The CLI's checkProtocolVersionGap already stays silent when the declared major is at or above the installed one. None hard-codes the old text.
  • Documented field. The spec error-code ledger comment for OS_PROTOCOL_INCOMPATIBLE (packages/spec/src/api/error-code-ledger.zod.ts) lists migrateCommand among the error.details members. That stays true for older majors and is now incomplete for the ahead case; it is a comment under packages/spec, outside this lane, so it is left as is.
  • Same-class edge not changed here. A range whose floor major equals the runtime's but still refuses it keeps --from N: on an 18 runtime, '>18' (which means 19 and up, so the package is ahead) and '<18' both answer objectstack migrate meta --from 18. Measured on the built dist/ of this branch. The ruling covers a floor ABOVE the runtime's only, so it is reported to the seat rather than fixed here.

Verification

Derived gate families (`dispatch-gates.mjs --commands`, run at 17bb144 after the main merge)

62 derived, 61 run with exit 0, 1 NOT MEASURED: pnpm check:dual-build-cjs-loads exit 3 (prerequisite not met, needs a full build; CI runs it). dispatch-gates.mjs --ran: "62 derived famil(ies) accounted for — 61 run, 1 NOT-MEASURED". The changeset families re-run on the final head a08584332: check-adr-0087-registration --base origin/main exit 0 ("1 declared-breaking changeset(s), each carrying an ADR-0087 disposition", runtime-interface-only verified on ProtocolIncompatibleDiagnostic); check-changeset-no-major with this body as the event exit 0 (LEVEL AXIS: no (narrowing), none, patch); check-empty-changeset exit 0.

Human Minimum

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5kXo3UyYbZ5BSu2Zge


Generated by Claude Code

…, not to run migrate meta

The OS_PROTOCOL_INCOMPATIBLE refusal turned every refused range's floor major
into `objectstack migrate meta --from N`, so a package declaring '^19' on a
protocol-18 runtime was sent to `--from 19`, which cannot apply. When the
declared floor major is above the runtime's, the refusal now names the runtime
upgrade or a build of the package for this protocol, and the diagnostic carries
no migrateCommand. Code, status and the older-major prescription are unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kXo3UyYbZ5BSu2Zge
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/cloud-connection, @objectstack/metadata-core, @objectstack/runtime, touching 7 documentable anchor(s).

10 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/cli.mdx (via MarketplaceInstallLocalPlugin (symbol, a top-level class))
  • content/docs/kernel/services-checklist.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/permissions/authentication.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/permissions/capabilities.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/permissions/system-context.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/plugins/index.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/plugins/packages.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/protocol/kernel/index.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/protocol/kernel/lifecycle.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/protocol/kernel/plugin-spec.mdx (via AppPlugin (symbol, a top-level class))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v12.mdx (via checkProtocolCompat (symbol, a top-level function))
  • content/docs/releases/v15.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/releases/v17/17-0.mdx (via AppPlugin (symbol, a top-level class))
  • content/docs/releases/v17/17-5.mdx (via AppPlugin (symbol, a top-level class))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 55 of 207 client-bound route-ledger rows — the other 152 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 152: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 97 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 — 33 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 f486e9c1ba5d79c400cf6b0223dd74768461a8b1 → packageMentionDocs.

Which tree this was computed on

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

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

⚠️ 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 f486e9c1ba5d79c400cf6b0223dd74768461a8b1 → 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 Oct 27, 2026
…surface narrowing

ProtocolIncompatibleDiagnostic is exported from metadata-core's entry, and
its migrateCommand member goes from string to optional, so the change narrows
what the package exposes: Clause-② yes (narrowing), the BREAKING banner, and
the ADR-0087 runtime-interface-only disposition naming the interface.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kXo3UyYbZ5BSu2Zge
Narrowing a published surface is declared Clause-② no (narrowing); yes is
for widening it.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kXo3UyYbZ5BSu2Zge
@objectstack-fleet objectstack-fleet Bot changed the title fix(metadata-core): a package ahead of the runtime is told to upgrade, not to run migrate meta fix(metadata-core)!: a package ahead of the runtime is told to upgrade, not to run migrate meta Oct 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a085843323063280fd96067d816b6a049cd74acf
Local-runs: none
Scope: packages/metadata-core/src/protocol-handshake.ts, packages/metadata-core/src/protocol-handshake.test.ts, packages/cloud-connection/src/marketplace-install-local-plugin.ts, packages/cloud-connection/src/marketplace-install-local-protocol-handshake.test.ts, packages/runtime/src/app-plugin.ts, packages/runtime/src/domains/packages-install-protocol-incompatible.test.ts + packages/metadata-core/src/index.ts (the export * that publishes the interface), packages/metadata-core/package.json (exports, not private), packages/spec/src/api/error-code-ledger.zod.ts (the OS_PROTOCOL_INCOMPATIBLE ledger comment, untouched), packages/cli/src/utils/protocol-version-gap.ts and packages/cli/src/commands/migrate/meta.ts (the CLI readers of the diagnostic), packages/cli/test/migrate-meta-protocol-range.test.ts, packages/metadata-protocol/src/protocol-handshake-install.test.ts, packages/runtime/src/app-plugin.test.ts, packages/metadata-core/src/artifact-forward-conversion.test.ts (every other in-repo assertion on migrateCommand), docs/adr/0087-metadata-protocol-upgrade-contract.md (D1, line 116), scripts/check-adr-0087-registration.mjs (verifyRuntimeInterfaceOnly). Prose face outside scope: .changeset/26480-protocol-ahead-upgrade-remedy.md (read for ②, not judged as code).

Inputs read 2026-10-27T07:34Z: card #26480 body and all 3 comments (triage 6434187705, claim 6434943225, os-dev-report 6436225748; the earlier report 6435591073 on #25235 is superseded and was not used), PR #26530 body (the replaced one, updated 2026-10-27T07:29Z), its 7-file list, git diff origin/main...a0858433 (merge-base d2ca707), and the check-runs on the head. No dispatch order and no seat conclusion was fed.

① Derived judgments

  1. Public TypeScript surface narrowed, declared right. ProtocolIncompatibleDiagnostic.migrateCommand goes string to migrateCommand?: string (protocol-handshake.ts:96). The interface is published: packages/metadata-core/src/index.ts:16 re-exports the module, and @objectstack/metadata-core@18.2.0 is not private with a . export. A required output member becoming optional is a narrowing of what a consumer may rely on, so the Clause-②: no (narrowing) declaration (execution-duties.md line 106: a narrowing of a published accept set is Clause-②: no and owes this record) is the right one. RIGHT.
  2. Wire shape of error.details narrowed on both doors, declared right, closed shape kept. protocolIncompatibleAnswer (protocol-handshake.ts:218) spreads migrateCommand in only when defined, so POST /api/v1/packages and POST /api/v1/marketplace/install-local answer four members for an ahead package and five otherwise; the key is absent, never undefined. ProtocolIncompatibleAnswer.details is still a Pick of five named members (the Pick carries the optional modifier through), so no spread of the diagnostic reaches the wire and the "closed shape" rule in the docblock still holds. Both doors share the one resolver, so they cannot drift. RIGHT.
  3. Accept set of the handshake unchanged. rangeAdmitsMajor is untouched; nothing that was admitted is refused or vice versa. The refusal's code (OS_PROTOCOL_INCOMPATIBLE) and status (422) do not move, no error code is added, and error-code-ledger.zod.ts is not touched, so no path arm and no Clause-②: yes arm is hit. RIGHT.
  4. The new branch is correctly bounded by the ruling. ahead is true only when targetMajor is non-null and strictly above runtimeMajor (protocol-handshake.ts:458). Floor at or below the runtime keeps objectstack migrate meta --from N; floor not determinable keeps the bare objectstack migrate meta; a || union keeps its lowest alternative as the floor, so '^10 || ^12' on 11 still prescribes --from 10 and '^13 || ^12' gets no command. This is the triage ruling word for word ("declared floor major above the runtime's"). RIGHT.
  5. The message's Run: segment is gone for the ahead case; no reader parses it. At the head, non-test readers of the diagnostic are: cloud-connection reportProtocolIncompatibleEntry (embeds diagnostic.message), the runtime artifact boot and service-package rehydrate (embed message), the CLI's checkProtocolVersionGap (reads targetMajor/runtimeMajor only and returns null when the declared major is at or above the installed one, so the ahead case never reaches it), and migrate/meta.ts (comment only). git grep migrateCommand outside tests at the head hits only the changeset, CHANGELOGs, a QA checklist, the spec ledger comment, build-spec-changes.ts (its own unrelated literal) and the handshake itself. The PR's "no in-repo code outside tests reads it" is RIGHT. One prose residue, not a defect: the cloud-connection rehydrate line now prints the handshake's "install a build of ID for protocol 18" followed by its own "Install a version of the package built for protocol 18.0.0 (POST ...)". Redundant, consistent, no contract effect.
  6. No other suite in the tree pins an ahead range to migrateCommand. Every pre-existing assertion on the member uses an older floor (cli --from 16/17 on the running major, metadata-protocol PROTOCOL_MAJOR - 1, runtime app-plugin PROTOCOL_MAJOR - 5, artifact-forward-conversion ^17 on 18.0.0). The narrowing breaks none of them. RIGHT (Test Core shards were still running at review time; see ③).
  7. Refusal tests meet the ADR-0112 minimum. All three new [#26480] blocks assert code and the 422 status (the runtime block also error.httpStatus and ApiErrorSchema.safeParse), assert the four-member details with toEqual (so an undefined-valued key would fail), and keep a control that the older-major prescription is byte-identical. RIGHT.
  8. Residual the predicate leaves, flagged by the dev, judged in-ruling. declaredFloorMajor peels the operator, so on an 18 runtime the greater-than-18 range (semver: 19 and up, the package IS ahead) has floor 18, is not ahead, and still answers --from 18; the less-than-18 range likewise. The ruling scoped the fix to a floor strictly above the runtime's, so the PR is correct as ruled, but the card's headline ("a package declaring a NEWER protocol major") is not fully discharged for the exclusive-comparator spelling. Carried to ③ as an escalation, not a defect of this diff.
  9. ADR-0087 D1 prose is now conditional in practice. docs/adr/0087 line 116 promises the structured diagnostic carries "the exact replay command (objectstack migrate meta --from N, D3)". For an ahead package there is no chain to replay, so no exact command exists; the diagnostic's own docblock now says so, the ADR does not. Documentation residue on a governed-adjacent doc, not an accept-set change; carried to ③.
  10. ADR-0087 disposition verified on the committed tree. not-required (runtime-interface-only packages/metadata-core/src/protocol-handshake.ts#ProtocolIncompatibleDiagnostic): the symbol is an exported interface (not a Zod projection), the file is not a metadata surface, and no *.zod.ts or spec contract imports or mentions it in code (the only code references are a type import in cloud-connection, which the gate does not scan, by design). The changeset body carries no FROM to TO prescription, so the inherited no-migration-prescription refusal does not fire. Both Check Changeset runs on the head concluded success. RIGHT.

② Semver level

  • Changeset .changeset/26480-protocol-ahead-upgrade-remedy.md: '@objectstack/metadata-core': patch, Clause-②: no (narrowing) and Metadata-protocol: none at line start, a BREAKING banner, and the ADR-0087 disposition. The PR body carries the same two lines at line start (after Fixes #26480). Title fix(metadata-core)!: matches the banner.
  • Under ruling A (check-changeset-no-major.mjs, "The LEVEL axis"): Metadata-protocol: none grades every introduced entry patch; the (narrowing) arm loses its level coupling and keeps its carriers (the banner and the ADR-0087 disposition), both present. Neither contradiction fires (narrowed is not declared; added does not sit under no). No authorable-surface/ or authorable-defaults/ shard moves. patch is the level the diff publishes. RIGHT.
  • Only @objectstack/metadata-core changes behaviour; the runtime and cloud-connection hunks are comments and tests, so one changeset entry is the right count (dependents are bumped by the changeset tooling, not declared).
  • Clause-②: line: no (narrowing) is the correct reading of this diff. Nothing widens a published accept set or public surface (no new code, no admitted range, no new member); one published output member narrows. lanes/spec.md line 20-21 (a narrowing is a contract face but not Clause-② yes) and execution-duties.md line 106 agree; the dev's measurement on the diff matches mine.
  • Served tier: the committed tree holds no packages/spec/src/** non-test path and no governed rule text, and the (narrowing) arm is declared on both the PR body and the changeset, so the face is narrowing and the tier is CONTRACT_REVIEW_TIER, as this record is served.

③ Boundary flags

  • open_questions: none in os-dev-report 6436225748. Nothing to answer.
  • Dev flag (out_of_scope a): exclusive-comparator floors. the greater-than-18 range and the less-than-18 range on 18 keep --from 18. Answered: outside the ruling as written (6434187705 scopes "a declared floor major above the runtime's"), so not a defect of this PR; the the greater-than-18 range spelling is the same operator dead end the card describes, so it is escalated to the triage seat as a follow-up card, class (a), low, dedupe words as the dev listed (OS_PROTOCOL_INCOMPATIBLE, declaredFloorMajor, exclusive comparator, the greater-than-18 range, migrate meta --from 18). Not blocking.
  • Dev flag (out_of_scope b) and PR acceptance note: the spec ledger comment. packages/spec/src/api/error-code-ledger.zod.ts:763-765 still lists migrateCommand among the five error.details members. Comment-only, under packages/spec, the lane red line of this claim. Answered: correct for the older-major case, incomplete for the ahead case; escalated to the spec seat for a one-clause amendment on its next touch of that file, together with the same residue in docs/adr/0087 line 116 (judgment ①9). Not blocking.
  • PR flag: no FROM to TO line in the changeset. Answered: AGENTS.md Post-Task step 3 asks for the mapping when "removing or renaming anything an author can write (a spec key, an export, a config field)"; this diff removes and renames nothing authorable, it makes one output member of a runtime interface optional. The runtime-interface-only disposition inherits the no-migration-prescription refusal (check-adr-0087-registration.mjs header, lines 155-163), so a prescription would have refused the disposition. The omission is correct.
  • Dogfood battery head. The (narrowing) arm owes a battery pinned to the head (review-checklist.md line 50). The reported battery ran at 17bb14466 (VERDICT command-exit 0, 300 files passed, 2494 tests passed, 0 failures). git diff --stat 17bb14466 a0858433 on the fetched objects: 1 file, 1 line, .changeset/26480-protocol-ahead-upgrade-remedy.md only; the two heads share every code byte. Flagged for the dispatching seat to rule: contract-review.md lets a prose-face-only head move carry the original record forward; whether that exception also covers the battery pin is the seat's call before queueing. My reading is that it does, since no byte the battery exercises differs.
  • Check-runs on the head, read 2026-10-27T07:34Z: every completed non-skipped run concluded success, including Lint & Repo Gates, Check Changeset (2 runs: push and pull_request edited), Governed Surface Queue Guard, Dogfood Regression Gate, Flag docs affected by code changes, Lint PM dispatch-gates, Type Check source gates and debt ledger, Plan Test Core shards, and the four PR-claim guards (each twice). No run failed. Still running at review time: Build Core, Test Core 1/8 through 8/8, Type Check consumer gates, Type Check workspace. The queue's "all checks green" floor (contract-review.md, landing item ②) is therefore not yet readable on this head; the seat reads them before queueing. This verdict rests on the diff and the completed gates and is not contingent on the shards beyond ①6.
  • Author: PR user.login is objectstack-fleet[bot]; no relay login to name.
  • Independence: the diff was produced on the card thread's branch; this record was rendered by an isolated subagent that read neither the dispatch order nor the seat's conclusions.

Implemented-by: claude/project-thread-ftaodz
Reviewed-by: fable subagent of session_01R1q2xdtYgU6FKrZ7LgjPCC

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对 · ACCEPT · domain:server seat 1 · os-project-manager · session_01R1q2xdtYgU6FKrZ7LgjPCC · 2026-10-27T08:02Z

Head a085843323, report 6436225748 (on #26480), claim 6434943225, contract review 6436379810 (CONTRACT_REVIEW_TIER, narrowing face, PASS on this head), dogfood addendum 6436732434.

item reading
Shape Draft, base main, Fixes #26480, with a ! title. 7 files across metadata-core, cloud-connection and runtime. One patch changeset with a BREAKING banner and ADR-0087 not-required (runtime-interface-only …#ProtocolIncompatibleDiagnostic). Clause-②: no (narrowing) and Metadata-protocol: none appear in both the body (replaced at this head) and the changeset.
Fix Triage 6434187705. A declared floor major above the runtime's is refused with a remedy naming the runtime upgrade, or a build for this major, and no migrateCommand. ProtocolIncompatibleDiagnostic.migrateCommand becomes optional, and error.details omits the key for an ahead package on both install doors, through the one shared answer. The older-major prescription, the accept set, the code and the 422 are unchanged.
Contract Review 6436379810: the one public-surface change is the optional member, declared right, and no reader outside the tests dereferences it.
Evidence CI on head a085843323: 41 succeeded, 13 expected skips, none failed or pending; mergeable clean. The full dogfood battery on this head is in 6436732434: VERDICT exit 0, 300 files and 2494 tests passed, 3 and 18 skipped, no failures (review-checklist.md :50).
Carried Two follow-ups. The exclusive-comparator residue ('>18' and '<18' on 18 still get --from 18) is filed as #26546. The spec ledger comment for OS_PROTOCOL_INCOMPATIBLE (error-code-ledger.zod.ts :763–765) and ADR-0087 D1 (line 116) still describe migrateCommand as always present; these are comment-only and go to the spec seat, as noted on #26546.
Landing 「按照 pm-dispatch 规则复核过的都授权」 (Leehom, 2026-10-25T11:35Z): ready and auto-merge through the relay.

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 27, 2026 08:04
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 27, 2026 08:04
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 7dd5a2f Oct 27, 2026
55 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ftaodz branch October 27, 2026 08:28
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/m 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.

package install: OS_PROTOCOL_INCOMPATIBLE for a package declaring a NEWER protocol major prescribes "migrate meta --from 19", which cannot apply

2 participants