Skip to content

feat(runtime)!: retire POST /packages/:id/adopt-orphans and its two console entries (#38150 PR-B1) - #38545

Merged
os-zhuang merged 19 commits into
mainfrom
claude/project-thread-pf8r6c
Nov 29, 2026
Merged

os-zhuang merged 19 commits into
mainfrom
claude/project-thread-pf8r6c

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Part of #38150. This is PR-B1: the server retirement of adopt-orphans and the two console entries that called it. It replaces closed draft #38364, whose four commits are cherry-picked here onto main after PR-A2 (#38389, merged as ea82c96212), plus the conflict resolution, the re-measured generated outputs and A2's L1 nit N1. PR-B2 (Studio ~org, the redirects to ?source=loose, the classifier #38061, the ADR marks) follows. This PR does not close the card.

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none (no file under skills/** or .claude/skills/** names adopt-orphans, adoptOrphans or "Adopt loose items"; searched at 37aae5aa1)

Size: 3,387 lines (additions + deletions, generated files included: 586 added, 2,801 deleted, 79 files; git diff --numstat origin/main...HEAD at 37aae5aa1, merge base dccf836a8). With A1's 1,947 and A2's 1,380 the card stands at 6,714. This PR alone passes 3,000, so it is Tier H.

Metadata-protocol, measured on this head. packages/spec/authorable-surface/api.json loses exactly the four api/ReassignOrphanedMetadataResponse:* keys (reassigned, reassignedCount, success, targetPackageId) and gains nothing, so the shard moves and the line is narrowed (the closed vocabulary has no removed). authorable-surface.base.json is untouched: only gen:authorable-surface-base writes it.

维护者速读

  • 用户能看到什么变化:软件包页的「收编散落项」按钮和 Studio「⋯」菜单里的同名项去掉了,旧的一次性收编接口改答 404;散落项改用上一个已合并的改动里的「勾选后移入软件包」。移入成功的提示现在写软件包名称,不再写编号。
  • 为什么做:App Studio 改版专题的第二步。旧接口一次把全环境的散落项都收进一个包,不走保存时的检查,实测会收进没安装的包、收进前缀不对的对象。
  • 出错会怎样:本改动只删东西,外加一处提示文字;出问题最多是某处还引用已删的入口,可以整体撤回。调用旧接口的脚本会收到 404,需要改用新的移入接口。
  • 要你做什么:这张卡总行数超过 3000 行,属于需要你本人批准的一档,请审批。

Deliberate correction

One pending release note, not added by this PR, was made false by it and is corrected in the same stroke: .changeset/37958-studio-overview-full.md, line 16. check-empty-changeset stays red on it by design (DELIBERATE CORRECTION class); the dispatching seat confirms it by its own record, and the file is not restored.

  • Before: "- The ⋯ menu keeps "Edit package info", "Duplicate as a new package", "Adopt loose items" and "Manage in Setup…"."
  • After: "- The ⋯ menu keeps "Edit package info", "Duplicate as a new package" and "Manage in Setup…"."

What changes

Runtime. The attribution docblock above resolvePackageWriteActor no longer says a body actor is ignored on move-in: there the strict body refuses it 400 and nothing moves (comment only). The POST /packages/:id/adopt-orphans block leaves packages/runtime/src/domains/packages.ts, with its mount in dispatcher-plugin.ts, its row in route-ledger.ts (the census line goes to 157 rows), and reassignOrphanedMetadata on the protocol handle type. The route answers 404 (pinned on a booted stack, below).

Protocol. ObjectStackProtocolImplementation#reassignOrphanedMetadata and its facet body in protocol-package-commits.ts are removed, and so is releaseAdoptedObjectOwner (its only caller was the adoption): the class member, the host entry in protocol-host.ts, and the body in protocol-object-owner.ts. Comments that named the old door now name the move door, or say it retired.

SDK. client.packages.adoptOrphans is removed from @objectstack/client.

Spec. ReassignOrphanedMetadataResponseSchema and its two types leave package-lifecycle.zod.ts. The def is registered in RETIRED_DEFS_BY_MAJOR (retired-defs/19.api__ReassignOrphanedMetadataResponse.ts); its manifest line and shard keys are removed; api-surface, declaration-map, export-origins and the reference docs are regenerated on this base (the reference index now counts 1,741 schemas, 528 in API; main moved the per-module reference page to packages/spec/docs/references/api/package-lifecycle.md). packages_orphan_adoption_unsupported leaves operation-message.ts (four locales). The ADR-0087 disposition is the registered semantic entry 19.packages-adopt-orphans-door-retired.ts.

Console. The Packages page's development face loses the "Adopt loose items" button, its dialog, handler and state (PackagesPage.tsx); A2's loose-items banner stays as merged. Studio's 「⋯」 menu loses its adopt item: on this base (after objectstack#37958 moved Export and the revert to the overview page) STUDIO_PACKAGE_MENU_ITEMS is three items, edit, duplicate, manage. With the adoption gone the menu changes nothing a package holds, so its onChanged prop and its run helper go too, and StudioDesignSurface no longer passes onChanged to it (onPackageChanged still feeds the overview page). packageActions.tsx loses adoptLooseItems, adoptedText and AdoptLooseItemsDialog; @object-ui/i18n's studio namespace loses the six engine.packages.detail.adopt* keys in en and zh. A2's engine.looseMove.* keys are untouched.

N1 (A2's L1 nit). The move-in success toast filled {package} with answer.targetPackageId while the confirm title used the package name. ResourceListPage.tsx now passes the label the dialog was opened on (looseMove.target.label), which is already the id when the package list could not be read.

Docs. content/docs/api/metadata-api.mdx, protocol/knowledge.mdx and the system-context register's row 55b name move-in where they listed adopt-orphans. Left as history: the three spec 18.* semantic entries, content/docs/releases/v18/*, the consumed .changeset/pre/* entries, and the historical sentence in http-dispatcher.ts.

Changeset. 38150-adopt-orphans-door-retired.md, BREAKING with the FROM → TO table and the one-line fix: @objectstack/spec major (pre mode), metadata-protocol, runtime, client, @object-ui/app-shell and @object-ui/i18n patch. One sentence changed from #38364: the console's move door is now named as "the move-in confirm step on Studio's cross-package list (?source=loose), which ships in the same release" (A2 landed first, so "the next change" was no longer true).

Each removed assertion, and what pins its rule now

Deleted files (the old door's own tests):

removed what it pinned now pinned by
metadata-protocol/…/protocol.adopt-orphans-owner-judges.test.ts the adoption asked the object-owner and permission-set-owner judges package-move-in.dogfood.test.ts: "the object owner: … refused with the save door's mismatch" and "the permission-set owner: …"
metadata-protocol/…/protocol.adopt-orphans-platform-record.test.ts the platform's own record is not adopted new facet case in protocol-package-move-in.test.ts: "the platform's own record is not loose: refused NOT_LOOSE …", with its control
metadata-protocol/…/protocol.reassign-orphans-durability.test.ts a refused rebind was logged once while the door answered success the move door has no partial success; protocol-package-move-in.test.ts pins the fault (500, nothing moved) and the failed undo (500 naming what did not go back)
objectql/…/protocol-adopt-orphans-draft-view-registry.test.ts an adopted draft view reached no registry, before, after and at the next boot; a draft beside an active row served the active body through moveIntoPackage: package-move-in.dogfood.test.ts (booted CRM stack) "#23690: a loose DRAFT view moves as the target's draft, and the registry serves nothing before or after", "#23690: a draft beside an active row of the same view: the active body is served at the target, never the draft" and "#23690: at the next boot the moved draft is still served nowhere, and the pair still serves its active body"; and protocol-package-move-in.test.ts "a loose DRAFT moves as a draft: saved into the target in draft mode, never published, and answered states [draft]" and "a draft beside an active row: … states [active, draft]" (with an active-only control)
objectql/…/protocol-adopt-orphans-object-registry.test.ts the registry owner followed an adopted object package-move-in.dogfood.test.ts A3 and "whole or nothing", and package-first-authoring.dogfood.test.ts's D5 case, driven through moveIntoPackage
runtime/…/packages-adopt-orphans-readonly.test.ts the door's gates and their order the move-in rows that replace adopt-orphans in the runtime route tables (capability gate, read-only remedy, walled refusal, knowledge-source gate, closed query, vetted org source, partial-host 501 and its message key)
ui/…/PackagesPage.adoptLooseItems-13339.test.tsx the console's Adopt dialog the entry is removed; A2's LooseMoveDialog-38150 and ResourceListPage.looseMove-38150 pin the replacement

Edited files, as in #38364 (metadata-protocol, objectql, runtime, client, spec, dogfood, scripts/engine-double-contract.pinned.json), with these changes at this head:

  • packages-write-actor-session.test.ts: its adopt-orphans row (a body naming another user, a body naming no one, a system context) is replaced by a move-in describe: a signed-in caller's move, and its dry run, hand the protocol the session user as actor; CONTROL: a system context sends no actor; a body actor (another user, or the session user itself) answers 400 Invalid move-in body naming the key, and the protocol is never called.

  • StudioPackageMenu-37139.test.tsx: three items (edit, duplicate, manage) in en and zh-CN, not five; the read-only case greys Edit and Duplicate; the adopt action case and the adopt rows of the one-copy list are removed; the guard that no surface spells the /adopt-orphans door stays.

  • StudioPackageOverview-37454.test.tsx (added on main by objectstack#37958 after feat(runtime)!: retire POST /packages/:id/adopt-orphans and its two console entries (#38150 PR-B1) #38364 was built): the menu pin lists three rows, no adopt row.

  • ResourceListPage.looseMove-38150.test.tsx (N1): "the success toast names the package by its name, as the confirm title does", and its control "when the package list cannot be read the confirm and the toast both fall back to the id".

  • package-move-in.dogfood.test.ts: "the retired all-at-once door is gone: POST …/adopt-orphans answers 404 and moves nothing", and the three metadata-protocol: an orphan adoption registers a package-less DRAFT view as live — reassignOrphanedMetadata's view write-through has no state gate, so the registry serves a draft the boot never registers (found by #23646) #23690 cases above.

  • Comments that named the retired entry as live: protocol.ts (the object-owner import line) and package-duplicate-adopt-org-scope.integration.test.ts (two docblocks).

Acceptance notes

Verification

Files to read first, by risk:

  1. ui/packages/app-shell/src/views/studio-design/StudioPackageMenu.tsx: the conflict with objectstack#37958 resolved to three rows, with onChanged and run removed.
    1a. packages/qa/dogfood/test/package-move-in.dogfood.test.ts: the metadata-protocol: an orphan adoption registers a package-less DRAFT view as live — reassignOrphanedMetadata's view write-through has no state gate, so the registry serves a draft the boot never registers (found by #23646) #23690 cases and their state fixture (draft rows inserted at the first boot).
  2. packages/runtime/src/domains/packages.ts and route-ledger.ts: the route block and its ledger row.
  3. ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx: N1's label hunk.

Two-minute check: pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/StudioPackageMenu-37139.test.tsx packages/app-shell/src/views/metadata-admin/ResourceListPage.looseMove-38150.test.tsx. Expect both files to pass, and the menu case to list three items.

Suites (local; the package suites ran on the tree before the A2 merge commit `6742ce449`, the spec suite again after it; UI and gates at the heads named)
suite result
@objectstack/client test 59 files, 828 tests passed
@objectstack/spec test 913 files, 28,889 passed, 1 todo
@objectstack/metadata-protocol test 372 passed, 9 skipped files; 23,629 tests passed, 45 skipped
@objectstack/objectql test 640 files, 14,530 tests passed
@objectstack/runtime test 655 files, 12,481 passed, 25 skipped
typecheck: client, spec, metadata-protocol, objectql, runtime each lock VERDICT command-exit 0
UI touched files + ui/packages/i18n (8 named files + the i18n dir) 117 files, 1,988 passed, 13 skipped
full @object-ui/app-shell suite at 6742ce449 2,464 files: 2,462 passed, 1 skipped, 1 failed: StudioPackageOverview-37454 "the ⋯ menu holds … adopt loose items …" (a main pin of the removed row). Fixed in c9c49d97e; that file and StudioPackageMenu-37139 then 2 files, 71 tests passed
@object-ui/app-shell and @object-ui/i18n type-check lock VERDICT command-exit 0
@objectstack/spec check:generated after the A2 merge all 14 artifacts current
check-platform-checklist --changed-from origin/main OK, 54 anchors judged, 0 lost
Round 1 (review FAIL at `c9c49d97e`, M1 and M2), at `448cffe6f` and `37aae5aa1`
  • packages-write-actor-session.test.ts + package-duplicate-adopt-org-scope.integration.test.ts: 2 files, 25 tests passed. Ablation (scripts/ablation-replace.mjs, resolvePackageWriteActor(_context) before protocol.moveIntoPackage replaced by undefined, anchor 1 → 0): "a signed-in caller's move hands the protocol the session user" and "so does a dry run" failed, 2 failed and 20 passed (the system-context control and the 400 cases green); restored, blob equals HEAD.
  • protocol-package-move-in.test.ts: 11 passed. Type Check · workspace was red at 448cffe6f on this file's new draft case (TS2532 / TS2493 on the commit read); 37aae5aa1 types it, and pnpm --filter @objectstack/metadata-protocol run typecheck (its tsc lists this file) and @objectstack/runtime typecheck exit 0, the file 11 of 11. Ablation (mode: state === 'active' ? 'publish' : 'draft' → mode: 'publish'): both draft cases failed, 2 failed and 9 passed; restored, blob equals HEAD.
  • package-move-in.dogfood.test.ts: 24 passed. Ablation of the same line on the built output (mutation held, @objectstack/metadata-protocol rebuilt, ablation-dist-preflight.mjs found the marker in dist/): all three metadata-protocol: an orphan adoption registers a package-less DRAFT view as live — reassignOrphanedMetadata's view write-through has no state gate, so the registry serves a draft the boot never registers (found by #23646) #23690 cases failed, 3 failed and 21 passed. Restored, rebuilt, preflight --absent clean, the file 24 of 24 again.
  • Derived gates for this round's seven paths (dispatch-gates.mjs --commands PATHS): 78 families, 77 exit 0, and check-empty-changeset exit 1 on the DELIBERATE CORRECTION above (expected). --ran: "78 derived, 78 run, 0 NOT-MEASURED, 0 UNRUN". check-nul-bytes: exit 0.
N1 ablation

scripts/ablation-replace.mjs replaced looseMove?.target.label ?? answer.targetPackageId with answer.targetPackageId (anchor 1 → 0, blob 90937804f355 → ed3e458acb2a): "the success toast names the package by its name" failed (expected "vi.fn()" to be called with arguments: [ 'Moved into Alpha: 1.' ]), 1 failed and 8 passed, the control among the passing. Restored: blob equals HEAD, git diff HEAD empty.

Derived gates

node scripts/pm/dispatch-gates.mjs --commands (no paths, change set from the merge base dccf836a8): 149 families. All 149 exit 0. Five first answered 99 or 3 (two vitest families queued behind the app-shell suite; check:skill-examples, check:dual-build-cjs-loads, check:published-readme-exports needed client-react, studio and scenarios built) and passed on the re-run after that build. --ran: "149 derived, 149 run, 0 NOT-MEASURED, 0 UNRUN". The commands re-derived at c9c49d97e give the same 149.

Dogfood battery

Full battery at head 448cffe6f, pnpm --filter @objectstack/dogfood test under the verify lock (no shard, no path): lock VERDICT command-exit 0; Test Files 495 passed, 3 skipped (498); Tests 4,187 passed, 68 skipped (4,255); no failure. 37aae5aa1 after it changes one line of a metadata-protocol unit test's typing, which no dogfood file reaches. (The battery at c9c49d97e: 495 / 4,184 passed.)

Owed before landing

  • CONTRACT_REVIEW_TIER L2 (the seat's).
  • A dogfood battery from the landing head.
  • Maintainer approval (Tier H).
  • Ships in the same version as PR-B2 (seat rule): after approval this PR is not enqueued until B2 is approved too; both enqueue together, with no Version Packages merge between them.

🤖 Generated with Claude Code

…d move them into a package; the Packages page counts them (#38150 PR-A2)

Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz
Co-authored-by: Claude <noreply@anthropic.com>
… the select column has a header (#38150 PR-A2)

Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz
Co-authored-by: Claude <noreply@anthropic.com>
…-j4n4b0

# Conflicts:
#	ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx
#	ui/packages/app-shell/src/views/metadata-admin/metadataListState.ts
…nt load at collection (#38150 PR-A2)

Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz
Co-authored-by: Claude <noreply@anthropic.com>
…t a clickable span

The click-without-keyboard census counts a span with an onClick as a new
clickable non-control. The guard now sits on the checkbox, a real button.

Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz
Co-authored-by: Claude <noreply@anthropic.com>
…le entries (#38150 PR-B1)

The all-at-once adoption of every loose item retires with every surface
that reached it: the route and its ledger row, the protocol method
`reassignOrphanedMetadata` (and `releaseAdoptedObjectOwner`, which only it
used), the client's `packages.adoptOrphans`, the spec's
`ReassignOrphanedMetadataResponseSchema` (registered as a retired def), the
`packages_orphan_adoption_unsupported` message, and the console's "Adopt
loose items" button and Studio menu item with their i18n keys. The move
door (`POST /packages/:id/move-in`) takes its place in every route table
pin, and the old door's own tests go with it.

Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz
Co-authored-by: Claude <noreply@anthropic.com>
…nd a valid dogfood package id after the retirement (#38150 PR-B1)

Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz
Co-authored-by: Claude <noreply@anthropic.com>
…ted route tests, and no tracker id in the semantic entry's guidance (#38150 PR-B1)

Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz
Co-authored-by: Claude <noreply@anthropic.com>
… confirm does; changeset names where the console's move door is (#38150 PR-B1)

Claude-Session: https://claude.ai/code/session_01FEkQ5pc3eJbLUEYRBLjxn5
Co-authored-by: Claude <noreply@anthropic.com>
# Conflicts:
#	ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.looseMove-38150.test.tsx
#	ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx
…dopt row retired (#38150 PR-B1)

Claude-Session: https://claude.ai/code/session_01FEkQ5pc3eJbLUEYRBLjxn5
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 4 package(s): @objectstack/client, @objectstack/metadata-protocol, @objectstack/runtime, @objectstack/spec, touching 39 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-extension-field-suffix.ts, packages/metadata-protocol/src/protocol-package-move-in.ts, packages/spec/api-surface/api.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

31 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 d08d2ae97277d8851672b15d4213da9c15bf1275.

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

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-extension-field-suffix.ts, packages/metadata-protocol/src/protocol-package-move-in.ts, packages/spec/api-surface/api.json, …) — pages documenting those are invisible to this run
  • 1 cross-cutting symbol(s) contributed no route anchor: responseSchema (7 routes)
  • 5 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 191 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 d08d2ae97277d8851672b15d4213da9c15bf1275 → packageMentionDocs.

Which tree this was computed on

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

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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5pc3eJbLUEYRBLjxn5

Recorded 2026-11-29T09:03Z by the #38150 card thread from its isolated contract-review sub-agent (round 1, read-only).

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c9c49d97e08a8260fb2100fe4707880ebb6b240e
Local-runs: none
Scope: packages/spec/src/api/package-lifecycle.zod.ts, packages/spec/src/migrations/entries/retired-defs/19.api__ReassignOrphanedMetadataResponse.ts, packages/spec/src/migrations/entries/semantic/19.packages-adopt-orphans-door-retired.ts, packages/spec/src/system/operation-message.ts, packages/spec/** (the rest: both spec tests, api-surface, authorable-surface, declaration-map, export-origins, json-schema.manifest, docs/references/api), packages/client/src/, packages/metadata-protocol/src/, packages/objectql/src/, packages/runtime/src/, packages/qa/dogfood/test/, scripts/check-engine-double-contract.mjs, scripts/engine-double-contract.pinned.json, docs/audits/2026-07-unknown-key-strictness-ledger.counts/api.md, ui/packages/app-shell/src/views/metadata-admin/, ui/packages/app-shell/src/views/studio-design/, ui/packages/i18n/src/namespaces/studio/ + packages/runtime/src/http-dispatcher.ts, packages/spec/authorable-surface.base.json, packages/spec/package.json, ui/packages/app-shell/src/views/metadata-admin/LooseItemsBanner.tsx, ui/packages/app-shell/src/views/metadata-admin/LooseMoveDialog.tsx, ui/packages/app-shell/src/views/metadata-admin/looseMove.ts, ui/packages/app-shell/src/views/metadata-admin/package-scope.ts, ui/packages/app-shell/src/views/studio-design/StudioPackageOverviewPage.tsx, packages/platform-objects/src/apps/setup-nav.contributions.ts, scripts/check-changeset-no-major.mjs, .changeset/config.json, .changeset/pre.json, .changeset/37958-studio-overview-full.md, .changeset/38150-move-into-package-door.md, docs/adr/0084-application-builder-information-architecture.md, AGENTS.md
Security-touching: yes
Rule-change-verified: none

Read: card #38150 body and all 13 comments, PR #38545 body and its 78-file list, git diff origin/main...c9c49d97e (merge base dccf836a8), the check-runs on the head, and the head tree with git show / git grep. Nothing was checked out, built or run.

① Derived judgments

  • HTTP. POST /api/v1/packages/:id/adopt-orphans is gone: the route block (packages/runtime/src/domains/packages.ts), its mount (dispatcher-plugin.ts) and its ledger row (route-ledger.ts, census 158 to 157). No other branch of handlePackagesRequest matches the sub-path, so it falls to handled: false and answers 404. Right, and declared.
  • SDK. client.packages.adoptOrphans leaves @objectstack/client. Right, declared. No caller is left in the tree.
  • Protocol. ObjectStackProtocolImplementation#reassignOrphanedMetadata and its facet body leave, with the optional member on PackagesDomainProtocol. releaseAdoptedObjectOwner (a private member, its ProtocolHost entry and its body) leaves too: the adoption was its only caller, and at this head the name survives in one comment. Right.
  • Spec. ReassignOrphanedMetadataResponseSchema and its two types leave package-lifecycle.zod.ts. Baselines move by exactly that def: api-surface -3, declaration-map -2, export-origins -3, json-schema.manifest -1, authorable-surface/api.json -4. The reference index reads 1,741 schemas, 528 in API. The def is registered as retired under major 19. Right.
  • Message key. packages_orphan_adoption_unsupported leaves all four locales (en, zh, ja, es); the key census reads 37. Its one reader was the removed route's 501. Right.
  • Console. The Packages page loses the button, dialog, handler and state; packageActions.tsx loses adoptLooseItems, adoptedText, AdoptLooseItemsDialog; the six engine.packages.detail.adopt* keys leave en and zh, the only two catalogues of the studio namespace. STUDIO_PACKAGE_MENU_ITEMS narrows to edit, duplicate, manage, and StudioPackageMenu loses its onChanged prop; its one render site (StudioDesignSurface.tsx:269) is updated and onPackageChanged still feeds the overview page (:369). Right.
  • No accept set widens. The move door's behaviour is untouched (comment-only hunks in protocol-package-move-in.ts). N1 changes a toast's text only.
  • Left alone, correctly. authorable-surface.base.json keeps the four keys (the release baseline, written by its own generator). The three 18.* semantic entries, the v18 release pages and .changeset/pre/* are history, as amendment 4 (7239673373) says.

② Semver level

  • The changeset grades @objectstack/spec major, in pre mode (.changeset/pre.json mode pre, tag next; spec at 19.0.0-next.2), and metadata-protocol, runtime, client, @object-ui/app-shell, @object-ui/i18n patch. Under the level rule in check-changeset-no-major.mjs (the level follows the metadata protocol alone) that matches what the diff publishes; spec, client, runtime and metadata-protocol are one fixed group and move together.
  • Clause-②: no (narrowing) and Metadata-protocol: narrowed open a line of their own on both the PR body and the changeset. narrowed is right: packages/spec/authorable-surface/api.json loses exactly api/ReassignOrphanedMetadataResponse:reassigned, :reassignedCount, :success, :targetPackageId and gains nothing.
  • ADR-0087: the changeset carries the adr-0087: registered packages-adopt-orphans-door-retired marker; the semantic entry with that id and the retired-def entry api/ReassignOrphanedMetadataResponse both exist under 19. (one file per entry is the registration). The changeset has the BREAKING banner, the FROM to TO table and the one-line fix.
  • Check Changeset (which runs check-adr-0087-registration and check-changeset-no-major) concluded success on this head.

③ Boundary flags

  • Dev flags (os-dev-report 7253362584; open_questions is empty):
  • File surface. 78 files against the 75 of amendment 4. The three extra are N1 in ResourceListPage.tsx with its test (carried by release 7251011169) and the main-added pin StudioPackageOverview-37454.test.tsx. No skills/** and no .claude/** path is in the diff.
  • SQL push-down. No new id materialisation or in-app join. The diff removes one (the adoption's scan and per-row update).
  • CI at the head, read 2026-11-29T09:01Z: 27 success, 9 skipped, 33 in progress, 0 failed.
    • Success, among others: Check Changeset, Governed Surface Queue Guard, Spec property liveness, Lint & Repo Gates and all eight Lint · jobs, Type Check · source gates, · debt ledger and · consumer gates, Build Docs, Build UI Deps, Live E2E UI.
    • Still in progress, so not a pass yet: Test Core 1 to 12, Test UI 1 to 16, Build Core, Build & E2E UI, Lint UI, Type Check UI, Type Check · workspace.
    • The three dogfood shards were skipped on this run, so the 404 pin's only evidence is the dev's local battery. A battery from the landing head is still owed (amendment 4).
  • Main moved. Base is now d1a06a3d8, 12 commits past the merge base; three files overlap (protocol-package-commits.ts, PackagesPage.tsx, PackagesPage.installedAppsUpdates-34722.test.tsx). git merge-tree reads a clean merge, and no commit on main since adds a reference to a removed symbol.
  • Author is objectstack-fleet[bot]. The PR is draft and Tier H (3,207 lines, and a narrowing).
  • Escalated: "at once". Ruling 7184753035 Q3 C retires adopt-orphans and the Studio ~org entry "at once when it ships". Amendment 4 moves ~org to B2 on the seat's own reading, not a ruling. It holds only if A1, A2, B1 and B2 leave in one version pass. At this head they still can: the three App Studio 改版(4-2):散落项按勾选「移入软件包」——新入口逐项过保存检查、整批判引用;收编散落项接口和 Studio「组织的流程」同时下线(关 #37468) #38150 changesets are all unconsumed. If a prerelease is cut between B1 and B2, the maintainer is owed the question.

④ Design judgment

Security. Security-touching: yes is meant in this sense only: hunks in content/docs/permissions/system-context.mdx, content/docs/protocol/knowledge.mdx, content/docs/api/metadata-api.mdx, authz-conformance.matrix.ts and the docblocks of packages.ts restate which package doors ask which permission. No gate's rule changes. The replacement door keeps every gate the removed one had, in the same order (packages.ts:4040-4058: requireManageMetadata, the walled refusal, the knowledge-source gate, the closed query, requireWritablePackage), and adds the per-type /meta write admission and the installed-target judge. Each has a move-in row in its route table, except attribution (M1). Whether the security label follows is the seat's.

Scoped files, against the tree.

  • package-lifecycle.zod.ts, the two 19. entries, operation-message.ts, the baselines and generated references: hold. The semantic entry names the surface, the replacement and an acceptance a caller can run, with no tracker id in its guidance.
  • packages.ts, dispatcher-plugin.ts, route-ledger.ts: hold, but for the docblock at packages.ts:688-693 (M1).
  • protocol.ts, protocol-package-commits.ts, protocol-host.ts, protocol-object-owner.ts, protocol-registry-hydration.ts, protocol-extension-field-suffix.ts: hold. The rewritten comments are true of the move door: its undo passes reboundFrom (protocol-package-move-in.ts:533, :637), and it reaches the __c judge.
  • client/src/index.ts: holds.
  • Console (PackagesPage.tsx, packageActions.tsx, StudioPackageMenu.tsx, StudioDesignSurface.tsx, both catalogues): hold. No path dead-ends: LooseItemsBanner still renders on the Packages page and links each type to /studio/~all/metadata/TYPE?source=loose, where the selection and "Move into package…" are (A2, merged). No other string in the UI or i18n sources points a user at the removed entry.
  • ResourceListPage.tsx (N1): holds. The toast reads looseMove.target.label, the same value LooseMoveDialog titles itself with, and the test has its control.
  • Converted tests: the move-in rows and the new facet cases exist as the PR table says (package-less spellings, platform record, NOT_LOOSE, owner judges, __c, child K, whole or nothing, the 404 pin). Two removed assertions have no pin (M1, M2).

Findings.

M1 (must-fix) — the #28414 attribution rule is unpinned on the door that replaces the removed one.

  • packages/runtime/src/domains/packages-write-actor-session.test.ts loses its adopt-orphans row (three cases: a body naming another user, a body naming no one, a system context) and gains none for move-in. The comment at :88 says the move door "records the session user too" and names no test.
  • None exists. No test file that names move-in, moveIntoPackage or moveIn asserts the actor the route hands the protocol. resolvePackageWriteActor(_context) at packages.ts:4142 and its spread can be deleted with every suite green, and a move's commit and history would then record no author.
  • The same diff's hunk at packages.ts:691 newly lists move-in among the doors that read the session actor, under the sentence "A body actor is ignored, not refused". That is false for move-in: its strict body refuses the key 400.
  • The card's acceptance ("Every removed test assertion names its replacement") and AGENTS.md (ruling record 6120820653) are not met; the PR table's runtime row does not list this file.
  • Fix: a move-in block in that file (session user recorded; a system context sends no actor; a body actor answers 400 and the protocol is never called), and the docblock sentence corrected.

M2 (must-fix) — the #23690 rule (a loose draft moved into a package stays a draft and is not served) is unpinned.

  • packages/objectql/src/protocol-adopt-orphans-draft-view-registry.test.ts is deleted. It pinned, through the door on a real kernel: a moved draft view is served nowhere, before, after and at the next boot; a draft beside an active row serves the active body; and a control.
  • The PR names the save door's own draft-mode pins as the replacement. Those pin saveMetaItem in draft mode, not the move door's mapping of a stored draft row to that mode (protocol-package-move-in.ts:405-432, mode: state === 'active' ? 'publish' : 'draft').
  • No test sends a draft row through moveIntoPackage: neither protocol-package-move-in.test.ts nor package-move-in.dogfood.test.ts contains the word, and no answer's states is asserted with draft. Make that ternary always publish and nothing reds; a move would then publish a pending draft.
  • That is not a duplicate at a layer at least as close to the code.
  • Fix: a case on the move door for a draft-only loose item (moved, stored as the target's draft, nothing served, states: ['draft']) and one for a draft beside an active row.

S1 (should-fix) — .changeset/37958-studio-overview-full.md:16, still pending and in the same version pass, says the ⋯ menu "keeps … "Adopt loose items"". This PR removes it, so the same release's @object-ui/app-shell notes would say both. Drop the item from that line, or say here that this entry supersedes it.

N1 (nit) — comments that still name the removed entry or helper as live:

  • outside the diff: ui/packages/app-shell/src/views/metadata-admin/package-scope.ts:17, ui/packages/app-shell/src/views/studio-design/StudioPackageOverviewPage.tsx:14, packages/platform-objects/src/apps/setup-nav.contributions.ts:55;
  • in the diff's files: packages/metadata-protocol/src/protocol.ts:327 ("and handing an adopted object's name to its rebound row"), packages/runtime/src/package-duplicate-adopt-org-scope.integration.test.ts:46, :172.

N2 (nit) — the PR table says the route tables pin "the door's gates and their order". They pin each gate. The deleted packages-adopt-orphans-readonly.test.ts also pinned the order against the read-only refusal (capability first, wall first, 422 before 501 on a read-only id), and no move-in case does. Each answer is a refusal either way.

A delta review at the head that answers M1 and M2 can pass on those two and on CI's pending jobs concluding success; nothing else here blocks.

Implemented-by: claude/project-thread-pf8r6c
Reviewed-by: session_01FEkQ5pc3eJbLUEYRBLjxn5-l2-subagent

VERDICT: FAIL

…refuses a body actor; the attribution docblock says so (#38150 PR-B1)

Claude-Session: https://claude.ai/code/session_01FEkQ5pc3eJbLUEYRBLjxn5
Co-authored-by: Claude <noreply@anthropic.com>
…stays a draft and is not served, through the move door (#38150 PR-B1)

Claude-Session: https://claude.ai/code/session_01FEkQ5pc3eJbLUEYRBLjxn5
Co-authored-by: Claude <noreply@anthropic.com>
…pt entry as live (#38150 PR-B1)

Claude-Session: https://claude.ai/code/session_01FEkQ5pc3eJbLUEYRBLjxn5
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5pc3eJbLUEYRBLjxn5

2026-11-29T10:21Z · Check Changeset red at 37aae5aa1758d099370bff305aa8bca38875d333 is expected. Its only error is check-empty-changeset on .changeset/37958-studio-overview-full.md, which this PR rewrites on purpose: line 16 no longer says the Studio ⋯ menu keeps "Adopt loose items", because this PR removes that item. The PR body's ## Deliberate correction section quotes the sentence before and after. Per pm-dispatch landing-operations.md, the confirmation is the same-head CONTRACT_REVIEW_TIER L2 PASS record (delta round running now), not a restore of the old sentence.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5pc3eJbLUEYRBLjxn5

Recorded 2026-11-29T10:28Z by the #38150 card thread from a fresh isolated contract-review sub-agent (delta round, read-only).

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 37aae5aa1758d099370bff305aa8bca38875d333
Local-runs: none
Scope: packages/spec/src/api/package-lifecycle.zod.ts, packages/spec/src/migrations/entries/retired-defs/19.api__ReassignOrphanedMetadataResponse.ts, packages/spec/src/migrations/entries/semantic/19.packages-adopt-orphans-door-retired.ts, packages/spec/src/system/operation-message.ts, packages/spec/** (the rest: both spec tests, api-surface, authorable-surface, declaration-map, export-origins, json-schema.manifest, docs/references/api), packages/client/src/, packages/metadata-protocol/src/, packages/objectql/src/, packages/runtime/src/, packages/qa/dogfood/test/, scripts/check-engine-double-contract.mjs, scripts/engine-double-contract.pinned.json, docs/audits/2026-07-unknown-key-strictness-ledger.counts/api.md, ui/packages/app-shell/src/views/metadata-admin/, ui/packages/app-shell/src/views/studio-design/, ui/packages/i18n/src/namespaces/studio/ + .changeset/37958-studio-overview-full.md, .changeset/38150-adopt-orphans-door-retired.md, .changeset/38150-move-into-package-door.md, .changeset/pre.json, packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-class-head.ts, packages/rest/src/meta-item-read-gate.ts, packages/lint/src/rule-explanations.ts, packages/runtime/src/http-dispatcher.ts, packages/spec/authorable-surface.base.json, ui/packages/app-shell/src/views/metadata-admin/package-scope.ts, ui/packages/app-shell/src/views/studio-design/StudioPackageOverviewPage.tsx, packages/platform-objects/src/apps/setup-nav.contributions.ts, scripts/check-empty-changeset.mjs, .github/workflows/pr-automation.yml, .claude/skills/pm-dispatch/references/landing-operations.md
Security-touching: yes
Rule-change-verified: none

Delta round of record 7253515297 (FAIL at c9c49d97e: M1, M2, S1, N1, N2).

Read: card #38150 body and all 16 comments (the delta os-dev-report 7254354651 among them), PR #38545 body and file list, git diff c9c49d97e..37aae5aa1, git diff origin/main...37aae5aa1 (merge base dccf836a8), the head tree with git show / git grep, the 53 check-runs on the head and both Check Changeset logs. Nothing was checked out, built or run. The ablation results below are the dev's; each was judged by reading the assertion against the code, not re-run.

① Derived judgments

  • The delta is four linear commits on c9c49d97e, no merge: bc68f2a68 (M1), 6d60d88ae (M2), 448cffe6f (S1 and N1), 37aae5aa1 (one typed test line). Seven files, +171 / -13.
  • Nothing else in the PR moved. The file set is round 1's 78 plus .changeset/37958-studio-overview-full.md; every other path is byte-identical to c9c49d97e, so round 1's derived judgments (HTTP, SDK, protocol, spec, message key, console) stand as written.
  • No production behaviour change: confirmed. Outside tests and the changeset, the delta has two hunks, both comment-only: the attribution docblock in packages/runtime/src/domains/packages.ts:692-696 and the import comment at packages/metadata-protocol/src/protocol.ts:327. No added or removed line in either file is code.
  • No accept set widens or narrows in the delta. The move door, its schema and its gates are untouched.
  • Size at this head: 586 added, 2,801 deleted, 79 files (3,387), as the PR body says.

② Semver level

  • Unchanged. .changeset/38150-adopt-orphans-door-retired.md is byte-identical to round 1: @objectstack/spec major in pre mode (tag next), metadata-protocol, runtime, client, @object-ui/app-shell, @object-ui/i18n patch; Clause-②: no (narrowing), Metadata-protocol: narrowed, the adr-0087: registered packages-adopt-orphans-door-retired marker. No packages/spec path and no package.json is in the delta.
  • The corrected note declares nothing new. .changeset/37958-studio-overview-full.md keeps its frontmatter (@object-ui/app-shell patch, @object-ui/i18n patch) and its Clause-②: no / Metadata-protocol: none lines; one body sentence changed (S1, below). .changeset/pre.json names neither it nor a App Studio 改版(4-2):散落项按勾选「移入软件包」——新入口逐项过保存检查、整批判引用;收编散落项接口和 Studio「组织的流程」同时下线(关 #37468) #38150 note, so all are pending in the same version pass.
  • Check Changeset is red at this head, and only for the deliberate correction. Both runs of the job (141311000953, 141311580829) concluded failure. The log holds one error: check-empty-changeset refusing .changeset/37958-studio-overview-full.md as "present on the merge base and CHANGED by this PR". The same job's other verdicts ran and passed: the PR adds a changeset of its own, no empty-frontmatter changeset, check-adr-0087-registration (one declared-breaking changeset with its disposition, two entries at major 19), the pre-mode major read, the LEVEL AXIS (spec major accounts for the declared narrowing) and the protocol lockstep.

③ Boundary flags

  • Dev flags (os-dev-report 7254354651):
  • File surface. 79 files. No skills/** and no .claude/** path. The body's Skills-docs: none line holds: no file under either tree names adopt-orphans, adoptOrphans or "Adopt loose items" at this head.
  • SQL push-down. The delta adds no production code, so no id materialisation or in-app join.
  • Deliberate correction. The diff changes code too, so under landing-operations.md this same-head at-tier record is the confirmation of the one corrected note, .changeset/37958-studio-overview-full.md; the sentence is judged under S1 in ④. The file is not to be restored.
  • CI at the head, read 2026-11-29T10:25Z: 53 check-runs: 17 success, 11 skipped, 2 failure, 23 in progress.
    • Failure: Check Changeset, twice (see ②). Expected, and nothing else is red.
    • Success, among others: Lint · ESLint, Lint · scoped · tooling self-tests, Lint · scoped · query-options erasure, Type Check · source gates, Spec property liveness, Governed Surface Queue Guard, Build Docs, both PR-body guards, Check Documentation Links.
    • Still in progress, so not a pass yet: Test Core 1 to 12, Build Core, Build UI Deps, Live E2E UI, Type Check · workspace, · debt ledger and · consumer gates, and five Lint jobs (docs and code guards, repo and tooling gates, PM dispatch-gates, slot lookup and corpus, CI release and engine gates). Test UI, Build and E2E UI, Lint UI and Type Check UI are not listed yet.
    • Type Check · workspace matters most: the dev reports it red at 448cffe6f on the new draft case, fixed by 37aae5aa1. The new runtime and metadata-protocol cases run in Test Core. Neither has a CI verdict at the time of this read.
    • The three dogfood shards were skipped on this run again, so the three new dogfood cases rest on the dev's local battery at 448cffe6f (495 files, 4,187 passed). A battery from the landing head is still owed (amendment 4).
  • Main moved. origin/main is d08d2ae97, 26 commits past the merge base; six files overlap. git merge-tree reads a clean merge, no line main added names a removed symbol, and the merged tree has no non-test source reference to one.
  • Carried: "at once". Round 1's escalation stands unchanged: B1 and B2 must leave in one version pass, which the PR body now lists under "Owed before landing".

④ Design judgment

Security. Security-touching: yes in round 1's sense, plus this delta's hunks on who a move is recorded as: the attribution docblock and its tests. No gate's rule changes.

M1: closed.

  • packages-write-actor-session.test.ts gains a move-in describe through the real dispatcher with the protocol as a spy, the layer the removed adopt-orphans row used.
  • It pins the whole request the route hands moveIntoPackage: { targetPackageId, items, actor: SESSION_USER }, and the same with dryRun: true.
  • Control: a system context sends { targetPackageId, items } and no actor key.
  • A body actor, naming another user or the session user, answers 400 with a message that opens "Invalid move-in body" and names actor, and the spy is never called.
  • Deleting resolvePackageWriteActor(_context) at packages.ts:4144 reds the first two cases: the expected object holds a defined actor the request would lack. That matches the dev's ablation (2 failed, 20 passed).
  • The docblock at packages.ts:688-699 is now true. MoveIntoPackageRequestSchema is .strict(), and the route parses it before it resolves the protocol. The other doors it lists do ignore a body actor: four are pinned in this file's table, and publish-drafts reads message alone.

M2: closed.

  • Facet (protocol-package-move-in.test.ts): a draft-only row is deleted in state draft and saved d1:draft into the target, and the commit lists no item. A draft beside an active row saves Published:publish then Draft:draft, with an active-only control.
  • Dogfood (package-move-in.dogfood.test.ts, booted CRM stack, through the route): a loose draft view is stored as the target's draft and the registry serves nothing before or after; a draft beside an active row is stored active and draft at the target and serves "Published grid" stamped with the target; after a second boot on the same file both still hold.
  • Forcing the ternary at protocol-package-move-in.ts:429 to publish reds all five: the facet cases on the saved mode, the dogfood cases on the stored state and the served label. That matches the dev's ablations (2 of 11, 3 of 24).
  • What carries the pin is the saved mode and the stored row. The answer's states is computed from the rows phase 0 read, so states: ['draft'] alone would not red.
  • The "serves nothing" read right after the response is sound: the save door writes the registry through inside the request, and only in publish mode (protocol-save.ts:2408).
  • The zeta_deal fixture does not weaken the pin. The rule is about a row's state, not which object the view lists. list-view-object-outside-closure is a real save-door refusal for a write into a package, so the view's object must be in the target's closure. The reader is not vacuous: the pair view reads as served loose before the move.
  • Note: the three cases depend on the A3 case having moved zeta_deal, and on each other. Run alone they fail on the closure refusal; they cannot pass falsely. The file already works this way.
  • Not carried from the deleted test: the registerItem spy and the no-table-dropped assertion. The registry read and the facet's dropStorage: false assertion cover the same outcomes.

S1: closed. .changeset/37958-studio-overview-full.md:16, the one sentence changed in that file.

  • Before: "- The ⋯ menu keeps "Edit package info", "Duplicate as a new package", "Adopt loose items" and "Manage in Setup…"."
  • After: "- The ⋯ menu keeps "Edit package info", "Duplicate as a new package" and "Manage in Setup…"."
  • The rewrite drops the one item this PR removes and nothing else. It matches the head: STUDIO_PACKAGE_MENU_ITEMS is edit, duplicate, manage, and the three English labels in the studio catalogue are the three quoted. No other sentence of the note is touched, and none of them is made false by this PR.

N1 (nit) — narrowed. The three in-diff comments are fixed (protocol.ts:327, both docblocks of package-duplicate-adopt-org-scope.integration.test.ts). Three outside the diff still name "adopt loose items" as live: ui/packages/app-shell/src/views/metadata-admin/package-scope.ts:17, ui/packages/app-shell/src/views/studio-design/StudioPackageOverviewPage.tsx:14, packages/platform-objects/src/apps/setup-nav.contributions.ts:55.

N2 (nit) — stands. The PR table still answers "the door's gates and their order" with rows that pin each gate, not the order.

N3 (nit) — new, not this PR's to fix. The facet's hand-on of request.actor to the delete door, the save door and the package commit (protocol-package-move-in.ts:422, :432, :444) has no assertion in any suite; the three spreads can be deleted with everything green. It predates this PR (A1) and no removed assertion pinned it, so M1's like-for-like replacement holds. The seat should carry it as a follow-up card.

No must-fix, no should-fix. M1: closed, M2: closed, S1: closed.

This PASS is the contract judgment and the confirmation of the deliberate correction. It does not stand in for the 23 jobs still running, the dogfood battery from the landing head, the maintainer's Tier H approval, or the same-version rule with B2.

Implemented-by: claude/project-thread-pf8r6c
Reviewed-by: session_01FEkQ5pc3eJbLUEYRBLjxn5-l2-subagent

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5pc3eJbLUEYRBLjxn5

2026-11-29T11:10Z · Final head for review: 37aae5aa1758d099370bff305aa8bca38875d333.

  • CI: 63 success · 11 expected skip · 0 pending. The only red is Check Changeset (both runs), whose single error is check-empty-changeset on .changeset/37958-studio-overview-full.md: the DELIBERATE CORRECTION declared in the PR body and confirmed by the same-head CONTRACT_REVIEW_TIER PASS 7254458238 (S1: closed, sentence judged before and after).
  • Contract review: round 1 FAIL 7253515297 → delta PASS 7254458238 (M1, M2, S1 closed; N1 narrowed, N2 stands, N3 new follow-up, all nits).
  • Owed before landing: L1-b ACCEPT at this head, a dogfood battery from the landing head (the dev's battery ran at 448cffe6f, one typing line below), the maintainer's Tier H approval through the seat, and the same-version rule with PR-B2 (enqueue together, no Version Packages merge between).

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB

席位核对 — ACCEPT · L1-b · area o5-ux · Head-sha 37aae5aa1758d099370bff305aa8bca38875d333 · 2026-11-29T11:12Z

L1 of PR #38545 (#38150 PR-B1), net diff from main at merge-base dccf836a: 79 files, +586/−2801. The PR is Tier H on two counts: it narrows, and the card is over 3,000 lines. The contract-tier L2 chain is FAIL 7253515297, then delta PASS 7254458238. I do not reopen it.

Checklist (l1-face --pr 38545 at 37aae5a: 3 flags, read below)

  • Changeset flag on @objectstack/objectql. It is a false positive: all 6 objectql paths are test files (three deleted adopt-orphans suites and three test edits), and none of them ships.
  • All-checks flag, Check Changeset ×2 red. This is the gate's DELIBERATE CORRECTION class. The job's own text says it stays red and is confirmed by the seat's record. The body's ## Deliberate correction section names the note (.changeset/37958-studio-overview-full.md, line 16) and quotes the line before and after. The one change is that "Adopt loose items" leaves a menu this PR empties of it. The file is not restored, which is correct, because restoring it would republish a sentence this PR makes false. The L2 settled it as S1. The other 63 checks are success.
  • Dogfood flag, owed (! and (narrowing)). A full battery ran at 448cffe6f: 495 files, 4,187 tests, no failure. 448cffe6f..37aae5aa changes one typing line of a metadata-protocol unit test, which I checked is the whole diff, and no dogfood file reaches it. The body lists "a dogfood battery from the landing head" as owed before landing, and that is the reading that binds.
  • Shape and declarations. Open draft against main, Part of #38150, B2 still on the card. The declarations are Clause-②: no (narrowing) and Metadata-protocol: narrowed. The changeset is BREAKING with a before-and-after table and a one-line fix: @objectstack/spec is major (pre mode), and five packages are patch. Its marker adr-0087: registered packages-adopt-orphans-door-retired matches the new semantic entry and the retired-def entry api__ReassignOrphanedMetadataResponse (a response shape, nothing stored, so no conversion is owed).
  • Skills-docs: none. True at this head: skills/** and .claude/skills/** name none of the four spellings. The remaining hits are released notes (v18 pages), comments marking the retirement, and the client docblock, which now says "(retired since, App Studio 改版(4-2):散落项按勾选「移入软件包」——新入口逐项过保存检查、整批判引用;收编散落项接口和 Studio「组织的流程」同时下线(关 #37468) #38150; moveIn replaced it)".

My readings, at this head

No must-fix or should-fix from L1. Owed before landing: the landing head's dogfood battery and the maintainer's approval (Tier H, seat hand-off). After approval, the seat enqueues this PR together with PR-B2 in one version, with no Version Packages merge between them, as the body records.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

维护者速读

席位意见:同意合并(按上面的顺序落地)。

席位核对 — ACCEPT · repo:objectstack#5 · Head-sha 37aae5aa1758d099370bff305aa8bca38875d333 · 2026-11-29T11:15Z

  1. 形态:open draft → main,79 files,+586/−2,801,Part of #38150(B1),Clause-②: no (narrowing),Metadata-protocol: narrowed,@objectstack/spec major;ADR-0087 登记 packages-adopt-orphans-door-retired。本 PR 3,387 行,卡合计 6,714 行。
  2. 前提实测:契约记录 r1 FAIL 7253515297(M1 move-in 门的操作人归属、M2 散落草稿移入后仍是草稿、S1 changeset 文字)→ delta PASS 7254458238(CONTRACT_REVIEW_TIER,tier-evidence 已过),head 即本 head;定稿声明 7254930750。
  3. 门禁 check-runs:本 head 63 success;唯一红为 Check Changeset,是对 .changeset/37958-studio-overview-full.md 第 16 行的有意更正(去掉已下线的菜单项,L2 S1 确认),⛔ 不还原。
  4. 接受的偏差:上述 Check Changeset 红,原因如上。落地前仍欠:在落地 head 上跑一次 dogfood battery(上次在 448cffe,之后只差一行测试类型)。
  5. 范围外去向:L2 N3(move-in 门把操作人传给删除/保存/提交三处无断言,A1 起就缺)→ metadata-protocol: no test pins that the move-in door passes the actor to delete, save and package commit #38576。B2(~org 入口下线、Q-f「新建」、ADR-0084/0070 注记)在另一条卡线程,Fixes #38150 与 Fixes #37468 由 B2 带。
  6. 落地条款:Tier H(收窄、spec major),维护者批准后才入队;⚠ 同版本规则:B1 批准后等 B2 批准,B1→B2 连续入队,中间不合 Version Packages。L1-b ACCEPT 7254965412 与契约档 delta PASS 7254458238 同在本 head;落地 head 的 dogfood battery 由卡线程补上后席位才入队。⛔ 未批不入队。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Approval requested (Tier H: narrowing, @objectstack/spec major) · 2026-11-29T11:16Z

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 29, 2026 11:17
@os-zhuang
os-zhuang enabled auto-merge November 29, 2026 11:17
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit c665d05 Nov 29, 2026
79 of 82 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-pf8r6c branch November 29, 2026 11:44
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:system size/xl 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.

3 participants