Repository navigation
feat(runtime)!: retire POST /packages/:id/adopt-orphans and its two console entries (#38150 PR-B1) - #38545
Conversation
…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>
#38150 PR-B1) 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>
…tired def (#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>
📓 Docs Drift CheckThis PR changes 4 package(s): 31 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 14 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 191 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 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
|
|
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 reviewServed-tier: Read: card #38150 body and all 13 comments, PR #38545 body and its 78-file list, ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentSecurity. Scoped files, against the tree.
Findings. M1 (must-fix) — the #28414 attribution rule is unpinned on the door that replaces the removed one.
M2 (must-fix) — the #23690 rule (a loose draft moved into a package stays a draft and is not served) is unpinned.
S1 (should-fix) — N1 (nit) — comments that still name the removed entry or helper as live:
N2 (nit) — the PR table says the route tables pin "the door's gates and their order". They pin each gate. The deleted 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: 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>
…-B1) Claude-Session: https://claude.ai/code/session_01FEkQ5pc3eJbLUEYRBLjxn5 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5pc3eJbLUEYRBLjxn5 2026-11-29T10:21Z · Generated by Claude Code |
|
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 reviewServed-tier: Delta round of record 7253515297 (FAIL at Read: card #38150 body and all 16 comments (the delta os-dev-report 7254354651 among them), PR #38545 body and file list, ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentSecurity. M1: closed.
M2: closed.
S1: closed.
N1 (nit) — narrowed. The three in-diff comments are fixed ( 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 No must-fix, no should-fix. 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: VERDICT: PASS |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5pc3eJbLUEYRBLjxn5 2026-11-29T11:10Z · Final head for review:
Generated by Claude Code |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB 席位核对 — ACCEPT · L1-b · area o5-ux · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr 维护者速读
席位意见:同意合并(按上面的顺序落地)。 席位核对 — ACCEPT · repo:objectstack#5 · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Approval requested (Tier H: narrowing,
|
…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>
…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>
… 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>
Requested by Leehom · project thread
Part of #38150. This is PR-B1: the server retirement of
adopt-orphansand 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 asea82c96212), 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/**namesadopt-orphans,adoptOrphansor "Adopt loose items"; searched at37aae5aa1)Size: 3,387 lines (additions + deletions, generated files included: 586 added, 2,801 deleted, 79 files;
git diff --numstat origin/main...HEADat37aae5aa1, merge basedccf836a8). 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.jsonloses exactly the fourapi/ReassignOrphanedMetadataResponse:*keys (reassigned,reassignedCount,success,targetPackageId) and gains nothing, so the shard moves and the line isnarrowed(the closed vocabulary has noremoved).authorable-surface.base.jsonis untouched: onlygen:authorable-surface-basewrites it.维护者速读
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-changesetstays red on it by design (DELIBERATE CORRECTION class); the dispatching seat confirms it by its own record, and the file is not restored.What changes
Runtime. The attribution docblock above
resolvePackageWriteActorno longer says a bodyactoris ignored onmove-in: there the strict body refuses it 400 and nothing moves (comment only). ThePOST /packages/:id/adopt-orphansblock leavespackages/runtime/src/domains/packages.ts, with its mount indispatcher-plugin.ts, its row inroute-ledger.ts(the census line goes to 157 rows), andreassignOrphanedMetadataon the protocol handle type. The route answers 404 (pinned on a booted stack, below).Protocol.
ObjectStackProtocolImplementation#reassignOrphanedMetadataand its facet body inprotocol-package-commits.tsare removed, and so isreleaseAdoptedObjectOwner(its only caller was the adoption): the class member, the host entry inprotocol-host.ts, and the body inprotocol-object-owner.ts. Comments that named the old door now name the move door, or say it retired.SDK.
client.packages.adoptOrphansis removed from@objectstack/client.Spec.
ReassignOrphanedMetadataResponseSchemaand its two types leavepackage-lifecycle.zod.ts. The def is registered inRETIRED_DEFS_BY_MAJOR(retired-defs/19.api__ReassignOrphanedMetadataResponse.ts); its manifest line and shard keys are removed;api-surface,declaration-map,export-originsand 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 topackages/spec/docs/references/api/package-lifecycle.md).packages_orphan_adoption_unsupportedleavesoperation-message.ts(four locales). The ADR-0087 disposition is the registered semantic entry19.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 itsadoptitem: on this base (after objectstack#37958 moved Export and the revert to the overview page)STUDIO_PACKAGE_MENU_ITEMSis three items,edit,duplicate,manage. With the adoption gone the menu changes nothing a package holds, so itsonChangedprop and itsrunhelper go too, andStudioDesignSurfaceno longer passesonChangedto it (onPackageChangedstill feeds the overview page).packageActions.tsxlosesadoptLooseItems,adoptedTextandAdoptLooseItemsDialog;@object-ui/i18n's studio namespace loses the sixengine.packages.detail.adopt*keys in en and zh. A2'sengine.looseMove.*keys are untouched.N1 (A2's L1 nit). The move-in success toast filled
{package}withanswer.targetPackageIdwhile the confirm title used the package name.ResourceListPage.tsxnow 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.mdxand the system-context register's row 55b namemove-inwhere they listedadopt-orphans. Left as history: the three spec18.*semantic entries,content/docs/releases/v18/*, the consumed.changeset/pre/*entries, and the historical sentence inhttp-dispatcher.ts.Changeset.
38150-adopt-orphans-door-retired.md, BREAKING with the FROM → TO table and the one-line fix:@objectstack/specmajor (pre mode), metadata-protocol, runtime, client,@object-ui/app-shelland@object-ui/i18npatch. 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):
metadata-protocol/…/protocol.adopt-orphans-owner-judges.test.tspackage-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.tsprotocol-package-move-in.test.ts: "the platform's own record is not loose: refused NOT_LOOSE …", with its controlmetadata-protocol/…/protocol.reassign-orphans-durability.test.tsprotocol-package-move-in.test.tspins the fault (500, nothing moved) and the failed undo (500 naming what did not go back)objectql/…/protocol-adopt-orphans-draft-view-registry.test.tsmoveIntoPackage: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"; andprotocol-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.tspackage-move-in.dogfood.test.tsA3 and "whole or nothing", andpackage-first-authoring.dogfood.test.ts's D5 case, driven throughmoveIntoPackageruntime/…/packages-adopt-orphans-readonly.test.tsmove-inrows that replaceadopt-orphansin 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.tsxLooseMoveDialog-38150andResourceListPage.looseMove-38150pin the replacementEdited 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: itsadopt-orphansrow (a body naming another user, a body naming no one, a system context) is replaced by amove-indescribe: a signed-in caller's move, and its dry run, hand the protocol the session user asactor; CONTROL: a system context sends no actor; a bodyactor(another user, or the session user itself) answers 400Invalid move-in bodynaming 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-orphansdoor 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) andpackage-duplicate-adopt-org-scope.integration.test.ts(two docblocks).Acceptance notes
overlap-check.mjsat37aae5aa1: clean against main; one textual overlap with open fix(spec,studio): a record:quick_actions bar's location refusesrecord, and Studio stops offering it (#38045) #38541 incontent/docs/references/index.mdx(generated; whichever lands second regenerates it withgen:docs). The overlap with feat(approvals): the opening check's conditions are reported where a flow or an object is published (ADR-0162 item 7, slice N45) #38527 read at the previous head no longer shows.claude/project-thread-j4n4b0(A2's). This PR is onclaude/project-thread-pf8r6c, the branch the seat's dispatch for this thread named.Verification
Files to read first, by risk:
ui/packages/app-shell/src/views/studio-design/StudioPackageMenu.tsx: the conflict with objectstack#37958 resolved to three rows, withonChangedandrunremoved.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).packages/runtime/src/domains/packages.tsandroute-ledger.ts: the route block and its ledger row.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)
@objectstack/clienttest@objectstack/spectest@objectstack/metadata-protocoltest@objectstack/objectqltest@objectstack/runtimetestui/packages/i18n(8 named files + the i18n dir)@object-ui/app-shellsuite at6742ce449StudioPackageOverview-37454"the ⋯ menu holds … adopt loose items …" (a main pin of the removed row). Fixed inc9c49d97e; that file andStudioPackageMenu-37139then 2 files, 71 tests passed@object-ui/app-shelland@object-ui/i18ntype-check@objectstack/spec check:generatedafter the A2 mergecheck-platform-checklist --changed-from origin/mainRound 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)beforeprotocol.moveIntoPackagereplaced byundefined, 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 · workspacewas red at448cffe6fon this file's new draft case (TS2532 / TS2493 on the commit read);37aae5aa1types it, andpnpm --filter @objectstack/metadata-protocol run typecheck(itstsclists this file) and@objectstack/runtimetypecheck 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-protocolrebuilt,ablation-dist-preflight.mjsfound the marker indist/): 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--absentclean, the file 24 of 24 again.dispatch-gates.mjs --commands PATHS): 78 families, 77 exit 0, andcheck-empty-changesetexit 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.mjsreplacedlooseMove?.target.label ?? answer.targetPackageIdwithanswer.targetPackageId(anchor 1 → 0, blob90937804f355→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 HEADempty.Derived gates
node scripts/pm/dispatch-gates.mjs --commands(no paths, change set from the merge basedccf836a8): 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-exportsneededclient-react,studioandscenariosbuilt) and passed on the re-run after that build.--ran: "149 derived, 149 run, 0 NOT-MEASURED, 0 UNRUN". The commands re-derived atc9c49d97egive the same 149.Dogfood battery
Full battery at head
448cffe6f,pnpm --filter @objectstack/dogfood testunder 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.37aae5aa1after it changes one line of a metadata-protocol unit test's typing, which no dogfood file reaches. (The battery atc9c49d97e: 495 / 4,184 passed.)Owed before landing
🤖 Generated with Claude Code