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
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…rd`, and Studio stops offering it (objectstack-ai#38045) (objectstack-ai#38581)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Jianguo** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9Ubb1YRLSVWfEBbNBCfs6vKG6L)_
Fixes objectstack-ai#38045
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no text or eval under skills/ writes a
record:quick_actions bar's own location; action locations themselves are
unchanged

## 维护者速读

- 用户能看到什么变化:在应用搭建里给记录页的快捷操作栏选位置时,下拉不再有「记录 · 页面与行」这一项;手写或 AI
写出这个值,保存或校验时直接报错,并提示改写成「记录页」。
- 为什么做:这是你在快捷操作栏位置问题上选的方案 A(下拉和格式都去掉),趁 19 版正式发布前收紧,现在没有任何已写的栏用到这个值。
- 出错会怎样:只影响快捷操作栏自己的位置设置,动作本身的「记录」位置不变;万一有问题,撤回这个改动即可恢复原样,不涉及数据迁移。
- 要你做什么:契约复审通过后,请批准这个格式收紧。

Supersedes objectstack-ai#38541
Seat: repo:objectstack#1 · zhuangjianguo ·
session_01QsR2jTsdScTh3o2fSjbxSz (takeover of seat repo:objectstack#5)
Claim: governing claim amendment 7255928921 on objectstack-ai#38045 (takeover Claim
7255614866, amendments 7255639984 and 7255928921)
Branch: claude/project-thread-y2muak (started at
claude/issue-38045-quick-actions-no-record @c68dfcc7)
Ruling-ref: record 7251596106 on the card (maintainer ruling A, verbatim
「A 下拉和格式都去掉」). Analysis: 7251023956.

## Takeover round (seat 1, governing claim amendment 7255928921)

This PR replaces objectstack-ai#38541: its dev's account ran out of tokens, and the
new branch starts at that PR's head `c68dfcc7`, where the seat L1
(7255089417, ACCEPT) and the contract review (7255183085, PASS with S3
open) were recorded. Every prior commit was re-read and kept; nothing
was dropped or rewritten.

- **Merge of main.** `40b0b59a` merges `origin/main` at `30141766`
through `scripts/pm/os-regen-merge.sh`. The only conflict was the
generated `content/docs/references/index.mdx`. It was regenerated from
the merged tree (`gen:schema`, spec `build`, `gen:api-surface`,
`gen:export-origins`, `gen:declaration-map`, `gen:docs`) in `7fb066f7`:
main dropped one published schema while this PR adds
`RecordQuickActionsLocation`, so the counts read 1742 total and 187 in
UI. No other generated file moved, and no hand-written file needed a
resolution (en.ts and zh.ts auto-merged).
- **S3 (contract review 7255183085).** On the bar, the `global_nav`
prescription no longer ends with the `os migrate meta --from 18`
sentence, which no conversion backs for that word (protocol 19's step
covers a bar's four page-part words; the protocol-17 step stripped
`global_nav` from `action.locations` only).
`QUICK_ACTIONS_BAR_PLACES_TAIL` is split into the places sentence (all
five rows) and the house migrate sentence (the four page-part rows). The
bar's pin now asserts the `global_nav` message has no `os migrate meta
--from` and each of the four names `` `os migrate meta --from 18` ``.
Commit `5496b7a4`.
- **N5.** The older test comment no longer calls the `global_nav`
message proof that the row rides the shared enum; it points at the
positive pin.
- **N6.** The two body sentences below ("What changes, Spec" and "Read
first 1") now describe the bar's own map, not a delegation.
- **Readings at `5496b7a4`.** Spec `component-record-blocks.test.ts`,
`action.test.ts`, `retired-key-migrate-sentence.test.ts`,
`type-alias-convention.pin.test.ts`: 4 files, 209 passed. Ablation
through `scripts/ablation-replace.mjs`: the `global_nav` row put back on
the migrate tail turns "answers each retired word on the bar with a
single place, never `record`" red (1 failed / 35 passed); restored, blob
== HEAD. PR body gates (`check-closing-keyword-parity`,
`check-changeset-no-major --base origin/main`,
`check-adr-0087-registration --base origin/main`,
`check-partof-closing-keyword`): exit 0. Full dogfood battery (closure
built, then `pnpm --filter @objectstack/dogfood test`): lock VERDICT
command-exit 0, Test Files 495 passed, 3 skipped (498), Tests 4187
passed, 68 skipped (4255), no failures. `pnpm --filter @objectstack/spec
test`: Test Files 913 passed (913), Tests 28893 passed, 1 todo.
`dispatch-gates --commands` derives 132 families; `--ran` with exit
codes: 131 run with exit 0, 1 NOT MEASURED
(`check:dual-build-cjs-loads`, exit 3 PREREQUISITE NOT MET: it reads
dists of packages not built here, such as `packages/qa/scenarios/dist`;
CI runs it). `overlap-check`: main merges cleanly; objectstack-ai#38550 conflicts on
three generated files (`content/docs/references/ui/component.mdx`,
`content/docs/ui/components/record.mdx`,
`scripts/sdui-manifest.record.json`), landing order set by the seat
(this PR first, objectstack-ai#36496's thread regenerates after).

## Rework round (contract review 7253506178, seat ruled both should-fix
its way)

Head c68dfcc (merges main at d64541c first).

- **S1.** The protocol-19 upgrade step
`action-locations-page-parts-retired`
(`packages/spec/src/migrations/entries/semantic/19.action-locations-page-parts-retired.ts`)
now says, in `surface`, `replacement` and `acceptanceCriteria`, that a
`record:quick_actions` bar's own `location` takes one place only
(`record_page`, its default, `record_row`, `record_related`,
`record_section` or `list`) and that `record` there is refused at parse
with the prescription naming `record_page`. No new id, no new entry. The
changeset's ADR-0087 marker now says this change extends that entry's
surface, and no longer says the conversion maps every protocol-18 bar
location: it maps `record_header`, `list_item` and `list_toolbar`, and
leaves a bar at `record_more` as stored with a TODO. The ledger feeds
only gitignored projections (upgrade guide, `spec-changes.json`);
`check:upgrade-guide` and `check:spec-changes` are green and nothing
else regenerated.
- **S2.** `Clause-②: yes (narrowing)` here and in the changeset (see
Acceptance notes).
- **N1 (folded in).** On the bar, a retired word (`record_header`,
`list_item`, `list_toolbar`, `record_more`, `global_nav`) now gets a
prescription written for a bar: it names the one place to write and
never offers `record`. The shared enum's action-side prescriptions are
unchanged. N2 and N3 are untouched.

## What changes

Ruling A, carried out as one PR. On the `record:quick_actions` bar,
`record` is not a place the bar can be set to; `record` on an action's
own `locations` is untouched.

- **Spec (contract face).** `packages/spec/src/ui/action.zod.ts` adds
`RecordQuickActionsLocationSchema` (and its type
`RecordQuickActionsLocation`):
`ActionLocationSchema.exclude(['record'])`, so it rides the shared enum
(a location the vocabulary adds reaches the bar too). Its error map
answers `record` with a prescription that names `record_page`, the five
retired words (`global_nav` and the four page-part words) from the bar's
own map of bar-worded prescriptions, and every other value with zod's
own enum error; the shared enum keeps its action-side prescriptions.
`RecordQuickActionsProps.location` uses it; its describe says "any
action location but `record`". Proposed refusal text (the contract
review judges it):
> `record` is not a place a `record:quick_actions` bar can be set to. On
an action, `record` says what the action acts on: one record, drawn on
the record page and on each list row. A bar sits in one place and draws
that place's actions. On a record page write `location: 'record_page'`
(the bar's default, so the key can be left out): it draws the record
page's actions, the ones placed at `record` included. A bar for another
single place names it: `record_row`, `record_related`, `record_section`
or `list`.
- **Studio.** The bar's location dropdown (`block-config.ts`) is built
from a total label map keyed by `RecordQuickActionsLocation` (a
TypeScript Record type) (the `ActionDefaultInspector` `LOCATION_LABELS`
mechanism), so the compiler keeps the options equal to the spec's set:
re-adding `record` is TS2353. Display order unchanged except `record` is
gone (`record_page` first).
- **i18n.** `engine.inspector.pageBlock.option.location.record` removed
from en (`Record · page and rows`) and zh (「记录 · 页面与行」).
- **Outside the claimed file surface, and why.**
`ui/packages/plugin-detail/src/index.tsx` (the bar's registration, not
the renderer) published `location` as `[...ACTION_LOCATIONS]`; that list
is serialized into `sdui.manifest.json`, which JSX page validation
reads. Left as it was, the manifest would still offer `record` on the
bar, a second door that accepts what the spec now refuses. It now
publishes `RecordQuickActionsLocationSchema.options`;
`sdui.manifest.json`, `scripts/sdui-manifest.record.json` and
`content/docs/ui/components/record.mdx` are regenerated by their
generators (the manifest diff is the one enum member and the
description). The renderer (`record-quick-actions.tsx`) is unchanged.
- **Generated.** `api-surface/`, `export-origins/`, `declaration-map/`,
`json-schema.manifest/ui.json` and `content/docs/references/**`
regenerated by the spec gates (no hand edits).
`type-alias-convention.pin.test.ts` pins the new alias as isomorphic
(ADR-0122; `check:spec-parsed-alias` asked for it) and its count line
moves 879 → 880.
- **Changeset.** `.changeset/38045-quick-actions-no-record.md`: `minor`
on spec, plugin-detail, app-shell and i18n, the two declaration lines, a
FROM → TO table, and ADR-0087 disposition `not-required
(already-registered action-locations-acted-on,
action-locations-page-parts-retired)`, whose semantic entry this PR
extends (rework round, S1).

Census of authored bars at `location: 'record'` (any quoting, any file
type): **0** in objectstack (`git grep -nE
"[\"']?location[\"']?\s*:\s*[\"']record[\"']"` at 545a4fa), **0** in
HotCRM (same pattern at origin/main d48b030b; its one
`record:quick_actions` mention is a test). The authored bars are
`showcase_task_detail` and `sys_user`, all at `record_section`, and both
still parse.

## Read first

1. `packages/spec/src/ui/action.zod.ts`, the
`RecordQuickActionsLocationSchema` hunk: the refusal text and the
`.exclude()` with an explicit error (the explicit param replaces the
copied one, so the bar's own retired-word map,
`QUICK_ACTIONS_BAR_RETIRED`, is what answers those words on the bar).
2.
`ui/packages/app-shell/src/views/metadata-admin/previews/block-config.ts`,
the `QUICK_ACTIONS_LOCATION_LABELS` map and the dropdown's `options`.
3. `ui/packages/plugin-detail/src/index.tsx`, the registration's
`location` enum (the surface addition above).

## Two-minute check

`pnpm --filter @objectstack/spec exec vitest run
src/ui/component-record-blocks.test.ts` — expect 36 passed, including
the four cases under "record:quick_actions `location` — single places
only, never `record`".

## Tests

All at head aeb79b9 unless noted.

- Spec pins (`component-record-blocks.test.ts`, new top-level describe
in the bar's existing harness): positive (the bar accepts exactly
`ACTION_LOCATIONS` minus `record`, each parses), negative (`location:
'record'` refused, one issue, `code: 'invalid_value'`, `path:
['location']`, message first sentence and `location: 'record_page'`),
`record` still on the shared enum, and each retired word on the bar is
answered with one issue (`invalid_value`, `location`), a message that
opens with the word, names a single place and never offers `record`,
while the shared enum's `record_header` prescription still offers
`record`. A schema refusal carries no ADR-0112 `status` (that envelope
is the API's), so the pin is `code` + `path` + prescription, the
`add-record-config-retirement.test.ts` precedent.
- Studio pins (`block-config.test.ts`): offers exactly
`RecordQuickActionsLocationSchema.options`; does not offer `record`
(with the non-empty guard); no leftover `…option.location.record`
translation in either locale, with a still-offered key as control.

<details><summary>Test runs</summary>

- Rework round, at c68dfcc: `pnpm --filter @objectstack/spec test` 913
files passed, 28896 tests passed, 1 todo; spec
`component-record-blocks.test.ts` + `action.test.ts` +
`action-locations-acted-on.test.ts` 198 passed; `pnpm --filter
@objectstack/spec build && check:generated` all 14 up to date.
- `pnpm --filter @objectstack/spec test` (at 8a55fce, before the merge
of main and the pin-count commits): Test Files 913 passed (913), Tests
28896 passed, 1 todo.
- `pnpm --filter @objectstack/spec typecheck`: exit 0
(`check:test-typecheck: OK`), rerun after the pin edit.
- spec `component-record-blocks.test.ts` +
`type-alias-convention.pin.test.ts`: 2 files, 39 passed.
- `ui`: `block-config.test.ts` + `block-config-i18n.test.ts`: 2 files,
68 passed.
- `ui`: plugin-detail quick-actions and registration tests + all of
`packages/i18n/`: 125 files, 1978 passed, 13 skipped. (The whole
plugin-detail suite did not finish inside one 10-minute foreground run;
narrowed to the files that read the registration or the bar, and left to
`Test UI`.)
- `pnpm --filter @object-ui/plugin-detail type-check`: exit 0. `pnpm
--filter @object-ui/app-shell type-check` (both tsconfigs): exit 0.
- Rework round, full dogfood at c68dfcc (closure built, then `pnpm
--filter @objectstack/dogfood test`): lock VERDICT command-exit 0, Test
Files 495 passed, 3 skipped (498), Tests 4183 passed, 68 skipped (4251).
- Full dogfood at aeb79b9 (`pnpm --filter @objectstack/dogfood test`
after building its closure): lock VERDICT command-exit 0, Test Files 495
passed, 3 skipped (498), Tests 4183 passed, 68 skipped (4251).
</details>

<details><summary>Ablations (each mutation through
scripts/ablation-replace.mjs, landing and restore checked by blob
hash)</summary>

- Spec negative pin: `location:
RecordQuickActionsLocationSchema.optional()` →
`ActionLocationSchema.optional()`: "refuses `location: 'record'` …" red
(1 failed / 35 passed); restored, blob == HEAD.
- Spec positive pin: `.exclude(['record'])` → `.exclude(['record',
'record_row'])`: "accepts every action location except `record` …" red;
restored.
- Studio: re-add `record` to `QUICK_ACTIONS_LOCATION_LABELS`: "offers
exactly the locations the spec accepts" and "does NOT offer `record`"
red (2 failed / 45 passed), and `tsc --noEmit` in app-shell red with
`TS2353`: `'record'` does not exist in the type, a Record keyed by
exactly `list`, `record_page`, `record_row`, `record_related` and
`record_section` — the reverse check that the Console compiles against
the rebuilt, narrowed `.d.ts`. A first attempt was refused by the tool
(its replacement contained its anchor) and changed nothing; the run
quoted is the second.
- Rework round, N1: the bar's retired-word branch pointed back at the
shared action-side prescriptions: "answers each retired word on the bar
with a single place, never `record`" red (1 failed / 35 passed);
restored, blob == HEAD.
- i18n: re-add the zh label: "has no leftover translation for the
removed `record` option" red; restored.
</details>

<details><summary>Gates</summary>

- Rework round, at c68dfcc: `dispatch-gates --commands` derives 130
families; `--ran` with exit codes: 129 run, 1 NOT MEASURED
(`check-plugin-teardown-shape --self-test`, exit 3, shallow clone cannot
reach its pinned fixture commit). Six gates first answered exit 3 on an
unbuilt closure in the fresh worktree and `pnpm --dir ui exec vitest run
scripts/` was SIGKILLed on the shared box; after building the CLI and
lint closures each was rerun: exit 0 (ui scripts: 172 files passed, 2
skipped). `check-adr-0087-registration --base origin/main`: exit 0 with
the reworded marker.
- Overlap at c68dfcc: `overlap-check` exit 1. Textual conflicts with
two open draft PRs on files this PR changed in its first round
(generated outputs): objectstack-ai#38550 on
`content/docs/references/ui/component.mdx`,
`content/docs/ui/components/record.mdx`,
`scripts/sdui-manifest.record.json`; objectstack-ai#38545 on
`content/docs/references/index.mdx`. Not resolved by hand; whichever
lands second regenerates.

- `dispatch-gates --commands` (derived at c1cb23b, the same list at
aeb79b9): 127 families run; `--ran` with exit codes: 124 run, 3 NOT
MEASURED, all three `PREREQUISITE NOT MET` exit 3, none reading a file
this diff changes: `check-plugin-teardown-shape --self-test` (shallow
clone cannot reach its pinned fixture commit), `spec
check:skill-examples` (reads `packages/client-react/dist`, not built
here), `check:dual-build-cjs-loads` (reads dists of packages not built
here). CI runs all three.
- One real finding along the way, fixed in this PR:
`check:spec-parsed-alias` asked for a pin of the new alias (exit 1, then
0).
- `pnpm --filter @objectstack/spec check:generated` after rebuilding
spec on the merged tree: all 14 artifacts up to date.
- `check-adr-0087-registration --base origin/main`: exit 0 (the
already-registered disposition). `check-sdui-manifest`,
`check:sdui-reference`, `check:nul-bytes`, `check:issue-citations`,
`check-empty-changeset`, `check-changeset-no-major`: exit 0 at aeb79b9.
- `check:query-options-erasure` and `check:type-check-debt` exceed 300
s; rerun without that cap: exit 0 both.
</details>

## Acceptance notes

- **ADR-0087 disposition: settled by the contract review (record
7253506178, option C).** `not-required (already-registered …)` stands,
and the semantic entry it names is extended here so the claim is a fact
(rework round, S1). The original argument, kept for the record: The
dispatch left open whether this narrowing needs a conversion entry. The
registration gate refuses `no-migration-prescription` on any
`Metadata-protocol: narrowed` changeset; what it accepts is a new
semantic entry or a category resting on a fact. This PR claims
`already-registered action-locations-acted-on,
action-locations-page-parts-retired`: the word became legal on the bar
only inside unreleased 19, by the change those entries register, and
their conversion maps every protocol-18 bar location to a single place
(`record_header` → `record_page`, `list_item` → `record_row`,
`list_toolbar` → `list`) and never writes `record` on a bar. ADR-0087
records that the gate checks such an id is old, never that it covers the
change, so this rests on the argument above. The alternative is a new
semantic entry for prerelease authors. Seat repo:objectstack#5 ruled
this disposition (option A, not-required) on 2026-11-29 at 08:24 UTC and
asked the contract review to check the reading; if the contract review
rules a semantic entry is owed, this PR switches to that entry.
- **`Clause-②: yes (narrowing)`.** The diff narrows one accept set (the
bar's `location` refuses `record`) and also enlarges the public surface
of `@objectstack/spec/ui`: two new exports,
`RecordQuickActionsLocationSchema` and `RecordQuickActionsLocation`, and
one new published JSON schema, `ui/RecordQuickActionsLocation`. Clause-②
judges both accept sets and the public surface, so the honest value is
`yes` with the `(narrowing)` arm, the spelling ruling record 7251596106
wrote and the claim's amendment 7253515149 now carries. The first
round's `no (narrowing)` treated the new exports as outside the clause;
the contract review corrected that (S2).
- The generic `action:bar` and `action:group` blocks also take a
`location` from the full vocabulary, `record` included, and match it
literally. Neither has a Studio dropdown; outside this card, left as
they are.
- The `record` option's label keys stay in the action inspector
(`engine.inspector.action.location.record`), where `record` is a real
choice for an action.


---
_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jT4byCJU6xgZwQDh8y)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jT4byCJU6xgZwQDh8y

<!-- signed: repo:objectstack#1 · zhuangjianguo ·
session_01QsR2jT4byCJU6xgZwQDh8y -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…and an item of a package you can write reads New in the Studio list (objectstack-ai#38150 PR-B2) (objectstack-ai#38598)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Jianguo** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbYYVoMKNg2bko9Bx8v783A8)_

Fixes objectstack-ai#38150

This is PR-B2, the last PR of the card: the retirement of Studio's
package-less scope (`/studio/~org`) with its redirects, the Studio
list's Source classifier, and the ADR marks. PR-A1 (objectstack-ai#38185), PR-A2
(objectstack-ai#38389) and PR-B1 (objectstack-ai#38545) are merged. It continues the branch
`claude/project-thread-kf5k6i` of the seat whose account ran out (five
commits, head `2a3c6e8f5b`, no PR was open on it): this branch starts at
that head, every commit was read, and main is merged in.

Two cards ride on this one and are named here without a closing keyword,
because their threads carry no claim naming this branch: the
Source-badge card objectstack-ai#38061 (its ruling note names this PR as its carrier)
and the old door's defect card objectstack-ai#37468 (the card text gives it to PR-B).
The seat finishes both at landing.

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no file under `skills/**`, `.claude/skills/**` or
`content/docs/**` names the `~org` scope, "Organization flows" or any of
the nine keys (`git grep` at this head)

**Size: 2,937 lines** (1,697 added, 1,240 deleted, 82 files; `git diff
--shortstat origin/main...HEAD` at `85939f9c`, merge base `301417669`).
With PR-A1's 1,947, PR-A2's 1,380 and PR-B1's 3,387 the card stands at
**9,651**. The card total is over 3,000 and the diff edits
`docs/adr/**`, so this PR is Tier H.

## 维护者速读

- 用户能看到什么变化:Studio 左侧菜单里的「组织流程」入口没有了,旧网址仍能打开并转到跨软件包列表的「散落项」流程列表;在 App
Studio 列表里,自己建的软件包里的项,来源从「系统自带」改成「新建」,筛选和上一条、下一条跟着一致。
- 为什么做:这是 App Studio 改版专题第 4
阶段的收尾,你已裁定散落项原地保留、改用「勾选后移入软件包」来移动,旧入口随新入口上线一起下线;来源标签按你对决策稿的回答改。
-
出错会怎样:只有打开旧网址或看这个列表的人会碰到,最坏是老书签落在列表上而不是原来的流程页,或某一行的来源标签显示不对;不动任何数据,可以整体撤回。
- 要你做什么:这次改动带架构决定记录的标注,整张卡累计也超过 3000 行,需要你本人批准,请审批。

## What changes

**The scope is retired, its addresses answer.**
`studio-design/studioOrgScopeRetired.ts` is the one owner of the retired
segment (`RETIRED_ORG_SCOPE_SEGMENT`) and of where its addresses land
(`retiredOrgScopeTarget`): every `/studio/~org/…` address lands on
`/studio/~all/metadata/flow?source=loose`, the list the Setup → Packages
banner links to. The list's search (`q`) and sort (`sort`) are carried
and every other query key is dropped, `source=runtime` included. Four
places answer an old address with it: `StudioDesignSurface` (before
anything of the surface mounts), `studioPillarRedirectModel.ts` (the
scope's root and its old pillar deep links), `metadataArea.ts` (the
scope's leg of the area, and a `?package=~org` link on another leg), and
the console's `StudioRoute.tsx` (two route rows that answer the segment
ahead of the package routes).

**What leaves with it.** The menu's "Organization flows" row and its
`orgFlows` entry kind; the area's `orgScope` mode; the top-left Changes
row (`StudioScopePendingRow`) and the package-less batch publish behind
it (`studioSurfacePublish.ts` publishes a package only now; the changes
sheet is mounted on a package only); the `scope` prop of the package
switcher; the scope helpers in `studioScope.ts` (`studioOrgScopePath`,
`STUDIO_ORG_SCOPE_SEGMENT`, `STUDIO_ORG_SCOPE_TYPE`,
`STUDIO_ORG_SCOPE_SOURCE`, `isStudioOrgScope`, `isOrgScopeDraft`),
`orgScopeFlowOf` and `orgScopeAreaRedirect`. `AutomationsPillar` takes a
package id, never `null`. `studioScope.ts` keeps what the Loose list
reads: `isPackageLessItem`, `isPackageLessDraft`, and
`packageLessItemPath` (an item of no package opens its page at
`/studio/~all/metadata/TYPE/NAME`).

**Who lands where now.** A person who may enter Studio but not Setup →
Packages, with no recent package, lands on the Loose list of flows
(`studioEntryFallbackPath`, `newPackageDoorPath`); the "package not
found" page's way out reads "Open loose flows" (「打开散落的流程」) and opens the
same list. A package-less flow the app's command palette finds opens its
item page. A draft of no package is published by Home's "Publish all",
or published or discarded on its own page.

**The Studio list's Source (the classifier, card What 7).**
`metadata-admin/studioListSource.ts`: `studioSourceKind` takes a third,
required fact, whether the row's package is one the author can write,
read from the package list's `writable` verdict
(`useWritablePackageIds`, the request the other readers of that list
share). Order: the customization mark, then the package verdict, then
the provenance. `ResourceListPage.tsx` passes it to the badge, the
source filter and its counts, and the badge's tooltip;
`useListOrderedNames.ts` passes it to the detail page's previous / next
order and waits for the package list only while the order is narrowed by
source. Setup's list is untouched: it asks for no verdict and reads the
provenance as served.

**i18n (the narrowing).** Nine keys leave the `studio` namespace of
`@object-ui/i18n`, in `en` and `zh`: `engine.studio.menu.orgFlows`,
`engine.studio.pkg.orgScope`, `engine.studio.org.name`,
`engine.studio.org.hint`, `engine.studio.org.description`,
`engine.studio.org.none`, `engine.studio.publishedAllFlows`,
`engine.studio.publishedAllFlowsOne`, `engine.studio.changes`.
`engine.studio.notFound.allMetadata` keeps its key and changes its text.
`@object-ui/app-shell` is private; its barrel exports
`RETIRED_ORG_SCOPE_SEGMENT` and `retiredOrgScopeTarget` where it
exported `STUDIO_ORG_SCOPE_SEGMENT` and `studioOrgScopePath`.

**ADR marks (governed, card What 9).** ADR-0084: nine passages that name
the scope are struck through and left legible (the "organization's own
flows" row of "Entries that are not a type", the no-fold sentence, the
first example of the sorting rule's third test, the second sentence of
item 3 of the 2026-11-25 silent-points list, the fourth top-bar-homes
row with its 2026-11-27 note, the sentence that kept the entry until the
door shipped, and two items of the 2026-11-26 silent-points list), with
notes dated 2026-11-29 that name the card and the ruling record (comment
7184753035, question 3); the note under "Organization-level content"
says the move door shipped, where it opens from, what retired with the
scope (the menu row, the scope's list, its flow page, its Changes row
and the batch publish behind that row), where a flow of no package opens
now, where `~org` addresses land, and that the bulk adopt retired in a
change of its own (objectstack-ai#38545). ADR-0070: the status line, a pointer at
TL;DR item 5, and a dated note under D5 ("move into a base" is the
move-in door; the bulk assignment to a default base is superseded; rows
never moved stay legal). No heading anchor changes.

**Changeset and checklist.**
`.changeset/38150-studio-org-entry-retired.md`: `@object-ui/app-shell`,
`@object-ui/console` and `@object-ui/i18n` patch, BREAKING with the nine
keys, the two export renames as a FROM → TO table and the one-line fix,
and the ADR-0087 `not-required` marker.
`docs/qa/platform-checklist/FOLLOW-UPS.md` gains one section naming the
five checklist items that still describe the retired scope.

## Each removed assertion, and what pins its rule now

Renamed cases (same assertion, the target address or the words changed
with the retirement) are not listed: `StudioRoute.test.tsx`,
`StudioRoute.recentPackage-11863`, `CommandPalette.studioScope-11863`,
`HomePage.noAgentsBuildChip-26614`, `SidebarAppMenu-36112`,
`StudioDesignSurface.notFound-26708`, `StudioEntryRedirect.test.tsx`,
`studioInterfacesRetired.test.ts`, `studioPillarRedirectModel.test.ts`,
`studioMenuModel.test.ts` (its `~org` rows leave the `it.each` tables;
the `~all` rows stay), `StudioMenu.test.tsx` and
`StudioMenu.overview-37454` (the last two drop their `~org` row the same
way). The others now expect `/studio/~all/metadata/flow?source=loose`
where they expected the scope.

| file | removed | what pins the rule now, or why it retired |
|:--|:--|:--|
| `studioScope.test.ts` | "the reserved segment cannot name a package"
(the spec manifest-id rule, the sanitizer) and "is told apart from a
package segment" | moved with the segment to
`studioOrgScopeRetired.test.ts`: "the retired segment stays reserved: it
can name no package", the same three cases on
`RETIRED_ORG_SCOPE_SEGMENT` and `isRetiredOrgScope` |
| `studioScope.test.ts` | `studioOrgScopePath`: "lands on the scope's
flow list…", "opens a flow full-screen on its address…" | the builder is
removed. The addresses it built are the inputs of
`studioOrgScopeRetired.test.ts` "the old addresses, read by the
redirects that answer them" (root and `/automations`; list, flow and
flow history; a `?package=~org` link). Where a package-less item opens
is `packageLessItemPath`, pinned in two new cases of the same file |
| `studioScope.test.ts` | "the scope reviews package-less FLOW drafts
only" (`isOrgScopeDraft`) | the predicate retired with the Changes row
it fed; nothing reads it. `isPackageLessDraft` keeps its case |
| `automationsPillarRedirect.test.ts` | "the package-less scope lands on
its own leg, with no package and its source filter once" | the scope's
`/automations` never reaches this mapping: `studioPillarRedirect`
answers it first. Pinned in `studioPillarRedirectModel.test.ts` ("the
table covers every retired pillar segment, on a package and on the
retired package-less scope") and `studioOrgScopeRetired.test.ts` |
| `metadataArea.test.ts` | "`orgScopeFlowOf` names the package-less
scope's flow…" | the function is removed (the area draws no scope flow).
The rewritten case beside it pins the replacement: "a flow of the
retired scope lands on the list, not on the flow, and the list keeps no
tab" |
| `AutomationsPillar.newSimilar-28567` | "the package-less scope draws
no menu" | the flow designer is a package's now (`packageId` is a
string) and the scope draws no page; the redirect is pinned in
`StudioDesignSurface.packageLessFlows-11553` |
| `StudioTopLeft-37456` | "~org with drafts pending: a Changes row…" and
its control "none passed: no Changes row" | replaced by "no scope draws
a Changes row": `it.each` over a package and no package, expanded and as
a rail |
| `StudioDesignSurface.publishCount-11807` | the four package-less
publish toasts (two drafts, one draft named by label, several named in
the description, none pending) | the batch publish they read is removed.
Replaced by "its old address, with package-less drafts pending, lands on
the Loose list: no publish door, nothing sent, no toast". The package
cases of the file are untouched |
| `StudioDesignSurface.packageLessFlows-11553` | the scope's own page:
lists its flows, offers no create, its empty-list guidance, its page
chrome | replaced by "every address of the retired package-less scope
lands on the Loose list of flows" (a redirect table, the kept search and
sort, the list holding the clone and none of a package's flows, with a
control without the filter, and an empty Loose list) and "the Loose list
is the retired scope's page" (the row opens the item page; no menu row,
no Changes row, no changes sheet, no page under `~org`) |
| `StudioDesignSurface.packageLessFlows-11553` | "opens it editable, and
an edit saves a draft bound to no package", and the "editable" half of
two entries: "the measured link, through the showcase pillar: lands on
the package-less scope, the clone open and editable" and "from that
read-only package, a switch into the package-less scope opens it
editable" | the scope's flow page is retired, and the door the ruling
keeps open for that save (comment 7184753035, question 2) is the clone's
item page on the cross-package leg. Pinned by the new "the item page
opens writable, and an edit saved there writes a draft naming no
package", run over two entries, the page's own address and a read-only
package's address that names the clone: the designer's add controls are
drawn and Save waits only for an edit; the save is `mode: 'draft'` with
no `packageId`, and the item's own publish that follows names none
either. It sits in the describe "a package-less flow is edited, and its
draft published or discarded, from its item page" |
| `StudioDesignSurface.packageLessFlows-11553` | "the package-less scope
reviews and publishes exactly its own drafts": the Changes row count,
the sheet and its filter, "publishes each package-less flow draft by
reference, and nothing through the package batch door" | the row, the
sheet and the batch are removed. A package-less draft's two publish
paths are pinned by two new cases of "a package-less flow is edited, and
its draft published or discarded, from its item page" (Publish and
Discard on the item page name no package) and by the unchanged
`usePublishAllDrafts.refusal-11922` ("records the batch's health and
goes on to the package-less drafts") for Home's Publish all |
| `StudioDesignSurface.packageLessFlows-11553` | deep links: "in the
package-less scope: the named flow, though another is listed first",
"the measured miss: the package-less page, a link naming a packaged
flow", "an empty scope lands on its list" | the scope has no page to
miss on. "the measured link, through the showcase pillar" now lands on
the clone's item page on the cross-package leg, and "the package's own
address naming the clone lands there too" is new; "a package page's
miss" stays |

## Acceptance notes

- **Takeover.** Kept as built: the five commits of
`claude/project-thread-kf5k6i` (`db6e4a61`, `94ca83cb`, `51d85a2c`,
`31121663`, `2a3c6e8f`), read hunk by hunk. Added here: the merge of
main (`c03f1772`, clean, eight files auto-merged, PR-B1 among main's
commits) and one comment-only commit (`5fcf89b5`): eleven files of the
Studio surface still described the retired scope as a place a person can
be (the palette surface's doc, four notes in `studio-design`, six test
headers or titles). No behaviour changes in it.
- **Rework round 1** (L2 record 7257159073, FAIL on `5fcf89b5`; L1
record 7257170665, REWORK). Three commits, no product code in them.
**M1**, `c2ffeaa7`: `ui/e2e/studio-left-menu-36899.spec.ts` still waited
for the fold's Automation group, whose one row on that package was the
retired entry; the loop reads `system` and `security`, the Automation
group is asserted absent, and the line names the card. **S1**,
`90713851` and `85939f9c`: the item-page case of the table above. **N1
and N2**, `90713851`: ADR-0084's sorting rule (third test) and item 3 of
the 2026-11-25 silent-points list are marked, and the note under
"Organization-level content" lists the scope's flow page. **N4 is left
as it is**: narrowing `sourceNarrowed` in `useListOrderedNames.ts` moves
product code for one request and a short wait on the Loose list's
previous / next, with no wrong order, and would owe the battery again;
it fits the follow-up card the seat files for N3. **N3** is the seat's
to file. The delta contract review of `85939f9c` is record 7257925349
(PASS: M1, S1, N1 and N2 closed), and the seat's record 7257936891
accepts the head.
- **File surface.** All 82 changed files are inside the claimed surface.
One, `ui/e2e/studio-left-menu-36899.spec.ts`, is admitted by claim
amendment 7257086821 (one hunk). The other 81 are inside claim amendment
2 (comment 7253593955): 58 under `studio-design/`, 5 under
`metadata-admin/`, the console's `StudioRoute.tsx` and four of its
tests, `CommandPalette.tsx` and its `~org` test, `index.ts`,
`README.md`, three tests pinning `~org` under `console/home`, `layout`
and `views/setup`, the two studio catalogues, the two ADRs, the
changeset, and `FOLLOW-UPS.md`.
- **Clause-②, measured as the amendment asks.** The nine keys are in the
published `@object-ui/i18n@19.0.0-next.2`
(`dist/namespaces/studio/en.js` and `zh.js`, each key in both files;
read from the registry tarball) and in no file of the `dist` built at
this head, where two kept keys (`engine.studio.notFound.allMetadata`,
`engine.list.source.new`) are in both files. Published keys leave, so
the line stands.
- **Card acceptance, PR-B under Q-f = E.** "On
`/studio/~all/metadata/flow` the authored package's flow reads 新建 and a
code-shipped flow still reads 系统自带":
`ResourceListPage.authoredPackageSource-38150` "the authored package's
flow reads New; the code-shipped flow still reads System-shipped" and
"draws the Chinese words for the two". "The Studio filter and prev/next
agree with the badge": the three cases under "the source filter and ‹ ›
agree with the badge". The ablation is below. "`/studio/~org/…`
redirects": the redirect tables in `studioOrgScopeRetired.test.ts`,
`StudioDesignSurface.packageLessFlows-11553` and the console's
`StudioRoute.metadataArea-28561`.
- **Premise check of What 7.** No non-test `source=runtime` address
remains: `git grep` for it over `ui/packages`, `ui/apps` and `packages`,
tests and changelogs excluded, has zero hits at this head.
- **"Rechecked in PR-B".** From the Setup → Packages banner a person
reaches the flow's Loose list: the banner's link and every `~org`
address are one address, pinned by "is the Loose list of flows, the
address the Setup → Packages banner links to". A package-less flow draft
is published from its item page (two new cases) and from Home's Publish
all (unchanged `usePublishAllDrafts.refusal-11922`), and an edit of a
loose flow is saved in place from that page (the two-entry case). This
recheck is at the test level. A console walkthrough in a browser was not
run for this PR: NOT MEASURED, reason: the card asks the walkthrough of
PR-A, and nothing here adds a screen.
- **Left alone, outside the claimed surface.** Comments that still name
the scope in `preview/DraftChangesPanel.tsx` (two) and three test titles
beside it, in
`ui/packages/i18n/src/__tests__/confirmNoteSeparate-11591.test.ts`, and
in `metadata-admin/metadataAreaHost.ts`, whose `emptyListHint` option
has no producer left while `ResourceListPage.tsx` still reads it. Named
in the report for the seat.
- **Same-version rule.** PR-B1 merged at 2026-11-29T11:44Z and is
unreleased; the open Version Packages PR is objectstack-ai#38192. This PR has to merge
before that one does. Nothing on the dev side blocks it; it waits on the
reviews below.

## Verification

Files to read first, by risk:
1. `ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts`,
with its two readers in `ResourceListPage.tsx` (`studioKindOf`, the
badge tooltip) and `useListOrderedNames.ts`: the one behaviour change
that is not a removal. The risk hunk is the order in `studioSourceKind`
(mark, then package verdict, then provenance) and the `loading` wait in
the previous / next order.
2.
`ui/packages/app-shell/src/views/studio-design/studioOrgScopeRetired.ts`
and the four places that answer an old address with it
(`StudioDesignSurface.tsx` line 130, `studioPillarRedirectModel.ts`,
`metadataArea.ts`, the console's `StudioRoute.tsx`): what a retired
address keeps and drops.
3. `docs/adr/0084-application-builder-information-architecture.md` and
`docs/adr/0070-package-first-authoring.md`: the governed text. Struck
lines and dated notes only.

Two-minute check: `pnpm --dir ui exec vitest run
packages/app-shell/src/views/studio-design/studioOrgScopeRetired.test.ts
packages/app-shell/src/views/metadata-admin/ResourceListPage.authoredPackageSource-38150.test.tsx`.
Expect two files and 25 tests to pass; the second file's first describe
is the classifier's truth table.

<details><summary>Suites and type checks (local; heads named per
row)</summary>

| run | head | result |
|:--|:--|:--|
| workspace build, `turbo run build` without the docs app, under the
verify lock | `c03f1772` | 123 tasks, 123 successful; lock VERDICT
command-exit 0 |
| 714 UI test files under the lock: all of `studio-design/`, `chrome/`,
`views/setup/`, `console/home/`, `preview/` and `packages/i18n/`, every
test that imports a changed module or names `ResourceListPage`,
`StudioDesignSurface`, `StudioMetadataArea` or `DraftChangesPanel`, and
the console's `StudioRoute*` tests | `c03f1772` | Test Files 714 passed
(714); Tests 7,423 passed, 13 skipped (7,436); lock VERDICT command-exit
0 |
| the ten files the comment commit or an ablation touched, again |
`5fcf89b5` | Test Files 10 passed (10); Tests 181 passed (181); lock
VERDICT command-exit 0 |
| `type-check` of `@object-ui/app-shell`, `@object-ui/console`,
`@object-ui/i18n` (each covers its test files) | `5fcf89b5` | all three
executed, none from cache; lock VERDICT command-exit 0 |
| `eslint` on the changed files of the three packages (69, 5 and 2
files) | `5fcf89b5` | 0 errors |

The full `@object-ui/app-shell` suite (2,470 files) was not run: NOT
MEASURED locally, reason: the dev contract keeps a card to the affected
files; CI's Test UI shards run all of it. `5fcf89b5` changes comments
and one test title, so the 714-file reading at `c03f1772` stands for it.
The rework changes one of those 714 files, run whole again at `85939f9c`
(the rework block below).

</details>

<details><summary>Ablations</summary>

Both through `scripts/ablation-replace.mjs`, the implementation
committed first, each restored and proven (blob equals HEAD, `git diff
HEAD` empty).

- **The classifier.** Deleted `if (inWritablePackage) return 'new';`
from `studioListSource.ts` (anchor 1 → 0, blob `187ff2023a0e` →
`cb5b1ba68bdc`), then ran
`ResourceListPage.authoredPackageSource-38150`: 9 failed, 5 passed (14).
Red: the truth-table case (`expected 'system' to be 'new'`), the badge
in en and zh, the tooltip, the two filter cases, the previous / next
case, the authored package's own leg, and the control "a package the
list does not name, and no package at all, read as before" (it fails in
the shared settle step, which waits for the authored row to read New;
its own two assertions do not read the deleted line). Green: "only a
package list that was read names a writable package", the two
unreadable-package-list controls, and the two Setup controls.
- **The surface's redirect guard.** Deleted the `isRetiredOrgScope` line
of `StudioDesignSurface.tsx` (anchor 1 → 0, blob `77a97116460c` →
`e3360209ed14`), then ran `StudioDesignSurface.packageLessFlows-11553`,
`StudioPackageOverview-37454` and
`StudioDesignSurface.publishCount-11807`: 3 failed, 93 passed (96). Red:
the redirect-table row for the scope's area address with extra query
keys, "draws no menu row for the retired scope, no Changes row, no
changes sheet, and no page under `~org`", and "~org/overview redirects
to the Loose list of flows (the surface alone: its own guard)". The
other rows stay green because the pillar redirect answers them first,
which is the two-door shape the tests name.

</details>

<details><summary>Derived gates and the lanes the derivation does not
list</summary>

`node scripts/pm/dispatch-gates.mjs --commands` (no paths; 81 paths
against merge base `301417669`): 49 commands, the same 49 at `c03f1772`
and at `5fcf89b5`. Run at `5fcf89b5`, each recorded with its exit code:
all 49 exit 0. `--ran`: "49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN".
With the Playwright spec added the derivation is the same 49 (read at
`c2ffeaa7`); what was run again after the rework is in the rework block
below. The body gates among them (`check-changeset-no-major`,
`check-adr-0087-registration`, `check-closing-keyword-parity`) read this
body through a local event file; `check-partof-closing-keyword` read it
too: exit 0, and `--body` binds one closing declaration, the card's.

Not in the derived list, run by hand at `5fcf89b5`:

- 19 gates of CI's Type Check UI and Lint UI lanes, each `pnpm --dir ui
run NAME`: `check:i18n-keys`, `check:i18n-drift`,
`check:unreferenced-sources`, `check:self-import`, `check:phantom-deps`,
`check:esm-specifiers`, `check:spec-symbols`,
`check:vi-mock-specifiers`, `check:vi-mock-inherit`,
`check:vi-mock-override-shape`, `check:test-path-roots`,
`check:control-bytes`, `check:shell-escape-residue`, `docs:check-links`,
`check:doc-fences`, `check:doc-types`, `check:handler-key-reads`,
`check:metadata-write-doors`, `check:doc-example-readers`: all exit 0.
- `pnpm check:changeset-fixed`, `pnpm check:i18n-stale-fill`, `pnpm
check:published-readme-exports`, `pnpm check:pm-governed-prose`, `node
scripts/docs-audit/check-affected-docs.mjs`: exit 0. `node
scripts/check-platform-checklist.mjs --changed-from origin/main`: OK, 2
anchors judged, 0 lost.
- NOT MEASURED locally: `check-single-claim-paths` and
`check-closing-target-claim` (both need the pull request's number). CI's
`PR-body guards (claim · duplicate · Part-of · single-writer path)`
concluded success on `5fcf89b5`.

</details>

<details><summary>Rework round 1 (heads `c2ffeaa7`, `90713851`,
`85939f9c`)</summary>

| run | head | result |
|:--|:--|:--|
| CI's red, reproduced: `pnpm exec playwright test
e2e/studio-left-menu-36899.spec.ts --project=chromium` from `ui/` |
`5fcf89b5` | 1 failed, 3 passed: `studio-menu-advanced-group-automation`
not found at line 225, as in CI's `Build & E2E UI` |
| the same command with the fix | `c2ffeaa7` | 4 passed |
| `StudioDesignSurface.packageLessFlows-11553.test.tsx`, whole file,
under the verify lock | `85939f9c` | Test Files 1 passed (1); Tests 36
passed (36); lock VERDICT command-exit 0 |
| `type-check` of `@object-ui/app-shell` (covers the test file) |
`85939f9c` | executed, not from cache; lock VERDICT command-exit 0 |
| `pnpm --dir ui exec vitest run scripts/` under the lock | `85939f9c` |
Test Files 172 passed, 2 skipped (174); Tests 5,159 passed, 2 skipped
(5,161); lock VERDICT command-exit 0 |
| `eslint` on the spec and on the test file | `85939f9c` | 0 errors |

Two ablations of the new case at `85939f9c`, through
`scripts/ablation-replace.mjs`, each restored and proven (blob equals
HEAD, `git diff HEAD` empty); the case's two entries go red in both:

- **Writable.** In `ResourceEditPage.tsx`, `const hostReadOnly =
!!areaHost?.readOnly;` replaced by `const hostReadOnly = !!areaHost;`
(anchor 1 → 0, blob `fdd7af7db791` → `cc814ee1e002`): 2 failed, `Unable
to find an element by: [data-testid="resource-save"]`.
- **No package on the save.** In the same file the save's options were
given `packageId: 'com.example.ablation'` (anchor 1 → 0, blob
`fdd7af7db791` → `931a9d527629`): 2 failed, `expected { force: false,
…(2) } to not have property "packageId"`.

Gates run again, each recorded with its exit code. At `90713851`, the 29
that read the ADR text or test sources, all exit 0:
`check-adr-0087-registration`, `check-adr-links`, `check:adr-anchors`,
`check:adr-index`, `check:adr-symbol-anchors`,
`check:closed-ceremony-text`, `check:doc-authoring`,
`check:pm-prior-rulings`, `check:pm-governed-merges`,
`check:platform-checklist`, `check:nul-bytes`,
`check-comment-mask-corpus`, `check:test-source-alias`,
`check:cross-package-test-inputs`, `check:undeclared-dep-imports`,
`check:skill-identifier-liveness`, `check:pm-governed-prose`,
`docs-audit/check-affected-docs`, `check-changeset-no-major`,
`check-empty-changeset`, and from `ui`: `check:control-bytes`,
`check:test-path-roots`, `check:shell-escape-residue`,
`check:vi-mock-specifiers`, `check:vi-mock-inherit`,
`check:vi-mock-override-shape`, `docs:check-links`, `check:doc-fences`,
`check:doc-types`. At `85939f9c`, which changes the test file alone, the
12 of them that read test sources again: all exit 0. The other derived
gates read nothing these commits change, so their run at `5fcf89b5`
stands; they were not run again.

</details>

<details><summary>Dogfood battery</summary>

Full battery at the landing head `85939f9c` (os-dev report 7258471243),
`pnpm --filter @objectstack/dogfood test` under the verify lock (no
shard, no path), after the workspace build at the same head (123 tasks
successful, 121 of them restored from turbo's local cache): lock VERDICT
command-exit 0 (held 1,888 s); Test Files 495 passed, 3 skipped (498);
Tests 4,187 passed, 68 skipped (4,255); no failure.

The same battery before the rework, at `5fcf89b5` (os-dev report
7256902761): lock VERDICT command-exit 0 (held 1,828 s), the same
counts. The three rework commits change a Playwright spec, one vitest
file and ADR text, and no product code.

</details>

## Owed before landing

- The maintainer's approval (Tier H: `docs/adr/**`, the narrowing, the
card total).
- The same version as PR-B1: this PR merges before the open Version
Packages PR, objectstack-ai#38192.
- The two cards named at the top, finished by the seat at landing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jUba5JFq1ejCZ7Gxpk

<!-- signed: repo:objectstack#1 · zhuangjianguo ·
session_01QsR2jUba5JFq1ejCZ7Gxpk -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… notes across three records) (objectstack-ai#38809)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_

Fixes objectstack-ai#38438

Clause-②: no
Metadata-protocol: none

This pull request carries the card's last four rows. The first seven
landed with the first pull request of this card, objectstack-ai#38774, merged
2026-11-30.

## 维护者速读

- 用户能看到什么变化:用户无感;只在三份设计记录里补了四条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 29 日这一周);上一张合并请求已带走七行,这次补齐剩下四行,这份清单就此收口。
- 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这四条说明并批准一次(设计记录须由你本人批)。

## What changes

Three ADR files gain four notes dated 2026-12-01. Every diff line is an
addition: 43 lines added, 0 removed. No original decision text is
rewritten, and no decision changes. Each note follows the note
convention its own record already uses, and each says that the passage
it is read with is left as written.

Each row's "what is true now" was read against the code on `main` before
its note was written. All four rows hold. Where a row's wording did not
match the tree, the note says what `main` does; the last column says so
and the list under the table gives the detail.

| ADR · section | Was (the record's words) | Now (what the note records)
| Source PR | Row on the card · result |
|:---|:---|:---|:---|:---|
| ADR-0161 · Consequences, the bullet "A stored fingerprint and recipe
hash are the only index state the service relies on" | "The service
keeps none of its own" | The service keeps a sync state for each source:
its last build, and the record syncs that failed and are not yet
repaired. Where the knowledge plugin can keep it, it is one durable
record per source; otherwise the last build is kept in the process and
failed syncs are not counted. Whether an index is due for a build is
still read from the stored fingerprint and recipe hash, so the bullet's
first sentence stands for that decision. The K8 note of 2026-11-28
already names this state | objectstack-ai#38307 | Card body row · **written, corrected
to the tree** (the in-process case) |
| ADR-0161 · K7, the components table, row "Split algorithm version" |
"a constant the splitter exports; it changes when the splitter gives
different passages for the same text and settings" | The version is kept
per split strategy, and the fingerprint reads the entry for the strategy
the source resolves to. A change to one strategy's passages starts a new
generation only for the sources that resolve to it. The single exported
constant is retired, with no alias | objectstack-ai#38375, objectstack-ai#38452 | Card body row ·
**written, corrected to the tree** (no version value is written) |
| ADR-0085 · the note of 2026-11-27, and the note of 2026-11-30 under it
| "Neither key is in the spec yet", and in the later note "The second
half stands: `fieldTabs` is not in the spec" | `fieldTabs` is in the
spec, an optional list of `{ key, groups }` entries on `ObjectSchema`,
so both keys are built. The parse refuses a group the object does not
declare, a group two tabs name, a group that places a related list, and
a repeated `key`. The tabs are drawn on every tier of the standard
record page: the full page, the side preview and a phone. Only the
standard record page reads the key, and an object extension does not
carry it | objectstack-ai#38742 | 7282251133 · **written** |
| ADR-0084 · the table "What the amendment replaces", row "Entries that
are not a type", and three sentences that count four entries | "The
organization's own flows retire when the door that moves loose items
ships."; "The menu also holds four entries that open no type's list";
"Of the four entries that are not a type, the cross-package directory is
to leave the menu"; "The four entries that are not a type are 高级 on a
package" | The door has shipped and the flows have retired, the entry
and the package-less scope it opened alike. Four changes carried it,
each named with what it did. The three sentences count the rows of the
table under "Entries that are not a type" as it was first written. The
note names the entries of a package's menu that open no type's list
today: 概览 Overview, the default sharing overview, Diagnostics and 全部类型
All types | objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545, objectstack-ai#38598 | 7283216315 · **written,
corrected to the tree** (names and no count; a third sentence; the
change that built the door) |

Every prerequisite of the four rows is merged on `main`: objectstack-ai#38307, objectstack-ai#38375,
objectstack-ai#38452, objectstack-ai#38742, objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545 and objectstack-ai#38598, and objectstack-ai#38679 and
objectstack-ai#38401, which two of the notes point back to. The newest comment on the
card when this was opened is the claim amendment, 7296007044; a row
added after it is not in this pull request.

### Where a note differs from its row

- **ADR-0161, Consequences.** The row says the service keeps a sync
state per source. On the tree that state is a durable record only where
the knowledge plugin can keep it, with its object registered and a data
engine bound. Otherwise the last build is kept in the process and failed
syncs are not counted. The note says both. It also says what the row
asks for: the stored fingerprint and recipe hash are still what a build
is decided from, at boot and on reload alike.
- **ADR-0161, K7.** The row says no fingerprint value moves. That is
true of the change that brought the table in, and the note says so in
those terms. It is not true of every entry since: one strategy's entry
has been raised on `main` for a change to its own passages. So the note
writes no version value, and says that an entry raised since was raised
for its own strategy.
- **ADR-0161, the header.** This record lists every dated note in its
header, one "Amended" line each. The two notes add two such lines, the
seventh and the eighth. That is the record's own convention and it is
why the file gains 17 lines for two notes.
- **ADR-0085.** The first pull request of this card wrote a note dated
2026-11-30 that says "The second half stands". That sentence was true
for one day. The new note is placed under it and names both sentences it
is read with; neither older note is edited. It does not repeat what the
2026-11-30 note says of `pinOverview`. The three tiers are read from the
code: the list of field tabs is built with no regard to the tier. No
test names the three tiers one by one.
- **ADR-0084.** The row asks for the entry count as it now stands. The
note names the entries and writes no number, since a count in a record
goes stale with the next entry. The row names two sentences that count
four entries with no note beside them: the one that opens "Entries that
are not a type", and "Of the four entries that are not a type, the
cross-package directory is to leave the menu", in the note of 2026-11-26
under "The two tiers". The note reads both. It also reads a third, which
the row does not name and which has no note either: "The four entries
that are not a type are 高级 on a package", under the same heading, quoted
as it renders (the record links part of it). So the note says three. As
first pushed, the note said two and left out the sentence the row asks
about; the contract review found it, and `128528c5` corrects the note.
The row names three pull requests. The note names four and says which
did which part: the door itself was built by objectstack-ai#38185. The note stays in
step with the two ADR-0084 notes of the first pull request, which it
does not touch.

## Tests

Docs only. No package source is touched, so no package test and no type
check is owed for the change. No tested behaviour changed, so there is
no ablation.

Checked on the committed text:

- Each phrase a note quotes from its ADR is in that file as it stands on
`main`. A script compared them. One quotation, in the ADR-0084 note,
reads as the sentence renders.
- Each path a note cites exists on the tree, and each of the seven
symbols a note anchors is a declaration in the file named. `pnpm
check:adr-symbol-anchors` judges the same and is green.
- A probe on the spec source: `ObjectSchema` accepts `fieldTabs` with a
declared group. It refuses a group the object does not declare, a group
two tabs name, and a repeated `key`. `ObjectExtensionSchema` refuses
`fieldTabs` as an unrecognised key, with its guidance.
-
`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts`
reads ADR-0084's type table from disk. It was run under the verify lock
on the final commit `128528c5`: `Test Files 1 passed (1)`, `Tests 21
passed (21)`. It read the same on `808e249f`, the first commit of the
notes.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 21 commands, run on the final commit `128528c5`. Each
exit code was captured before any pipe. Reconciliation: `Run
reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN`. The same
21 were derived and run on `808e249f` and on `f7bae5cfb`, with the same
result. On `128528c5` the derivation warns that the branch is one commit
behind `main` and that one file it derives from changed there. The
branch does not merge `main` again while this pull request is open and
mergeable, so the list was derived a second time on a throwaway tree of
`main` (`d97aaaea9a`) plus this branch: the same 21 commands, and no
warning.

<details><summary>ADR gates on 128528c (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4606
anchors across 165 records resolve — 1726 symbol (1697 declaration, 29
literal)`, 0 line anchors survive. Seven of the symbol anchors are new
with this change. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored
file(s), every governing ADR still referenced` |
| `pnpm check:adr-index` | 0 | `adr-index --report: OK —
docs/adr/README.md is current, every record parsed` |
| `pnpm check:doc-authoring` | 0 | |
| `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29077 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm check:pm-governed-merges` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building the build closure of `@objectstack/lint` under
the verify lock |

</details>

<details><summary>The other derived families on 128528c (all exit
0)</summary>

`node scripts/check-closing-keyword-parity.mjs` and its `--self-test`,
`node scripts/check-comment-mask-corpus.mjs` (`24511 files, 0 disagree,
0 unparseable`), `node scripts/ci/plan-test-core-shards.mjs
--self-test`, `pnpm check:ci-filter-parity`, `pnpm
check:cross-package-test-inputs`, `pnpm check:driver-memory-census`,
`pnpm check:gitlink-declared`, `pnpm check:pm-prior-rulings`, `pnpm
check:refd-timer-probe`, `pnpm check:watch-hint-literal`.

Before the last push: `node scripts/check-commit-card-trailers.mjs
--range origin/main..HEAD` exit 0, three commit messages, no card
relation and no model identifier in the trailer pair.

</details>

<details><summary>The overlap check answers exit 1 against one open pull
request, objectstack-ai#38812; the reading is below</summary>

`node scripts/pm/overlap-check.mjs` on `128528c5`:

- Against `main` (`d97aaaea9a`): `origin/main: merges cleanly`.
- Against the open pull request objectstack-ai#38812 (a draft opened after this one,
head `f3cd7dba76`, one file, 17 lines added to ADR-0161): `VERDICT
overlap exit 1`, with the conflict named in the ADR-0161 file. No other
open pull request shares a file with this branch.

What the conflict is made of, measured on the two heads:

- Both add to the header list of dated notes in ADR-0161, at the same
place, under its sixth line. This branch adds two lines, "a seventh
dated note" and "an eighth dated note". objectstack-ai#38812 adds one line, and it
also says "a seventh dated note".
- That is the only conflict hunk. The notes themselves sit apart and
merge: this branch's under K7 and under Consequences, the other's under
K8 with a cross-reference at K1.

So this overlap is real, and it is more than text: the two pull requests
number their notes from the same count. Whichever lands second has to
merge `main`, keep all three header lines, and renumber its own. See the
acceptance notes.

An earlier reading, on `f7bae5cfb`, answered 1 against the approvals
trunk, objectstack-ai#38497. That pull request has since ended without a merge
(2026-12-01T01:02Z), and the check no longer lists it.

</details>

Not run locally: the repository test project behind `test:repo`, and
every package suite. CI runs them on the pull request and on the merge
group. Every other family CI runs is read from this pull request's check
runs, not re-run here.

## Acceptance notes

- **Changeset.** None, and the pull request carries `skip-changeset`.
`docs/adr/**` ships in no package.
- **Governed surface.** `docs/adr/**` lands on the maintainer's
approval. This pull request stays a draft; the seat arranges the review
at the tier this surface owes and hands it over.
- **Why this one ends the card.** The card says it ends when its pull
request merges. Seven rows landed with the first pull request and these
four are the rest, so every row is carried. The card is open and is not
waiting on a decision.
- **Claim binding.** The claim amendment, 7296007044, names this branch
on a line spelled `Branch (round 2):`, which the guard "The card this PR
closes must claim this branch" does not read. The seat restated the
claim in the shape the guard reads (comment 7296908473 on the card), and
the guard is green on this pull request.
- **Landing order against objectstack-ai#38812.** Both pull requests add header lines
to ADR-0161 at the same place, and both call their note the seventh; the
overlap check answers 1 for that file. Whichever lands second merges
`main`, keeps all three header lines and renumbers its own. If this one
lands second, its two lines become the eighth and the ninth. If objectstack-ai#38812
lands second, its line becomes the ninth. The seats set the order: this
pull request first, by claim stamp (seat 2's `Notify: serial · objectstack-ai#38676
behind objectstack-ai#38438`, mailbox objectstack-ai#38766 comment 7297489558); objectstack-ai#38812 renumbers its
line after this lands.
- **Seen and left alone.** Outside the four rows, and not changed here.
- ADR-0084's table "What the amendment replaces" has a row on the
cross-package directory that says "In force until it moves". The
amendment of 2026-11-26 moved that entry to Setup, and the menu model on
this tree has no entry kind for it. A candidate row for the next weekly
card.
- The items the first pull request of this card listed under this
heading stand as listed there.

## Verification

### Read first

1.
`docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md`,
the note of 2026-12-01 under the list of Consequences. The highest-risk
hunk: it says a sentence of the record no longer describes `main`, and
it draws the line between the state a build is decided from and the
state that only reports. Check the sentence pair "Where the knowledge
plugin can keep it" and "Otherwise", and the bullet "What decides a
build is unchanged".
2. `docs/adr/0084-application-builder-information-architecture.md`, the
amendment of 2026-12-01 under the table "What the amendment replaces".
It says which of four pull requests did which part, it names the three
sentences that count four entries, and it names a package's menu entries
where the record counts them. Check the four attributions, the three
quoted sentences and the four names.
3. `docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md`,
the note of 2026-12-01. It answers a sentence that the note of the day
before wrote, and its claim of three tiers is read from code with no
test that names them. Check the tier sentence and the list of what the
parse refuses.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect three
rows under `docs/adr/`, each with `0` in the removed column, and 43
added lines in total (2, 24 and 17). Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`anchors across 165 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzhPdWmTd47Fi2bKYZS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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