Repository navigation
fix(studio): retire Studio's Interfaces column (objectstack#36502) - #36884
Conversation
Studio keeps Data, Automations, Access and All metadata. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. - /studio/<pkg>/interfaces, with or without ?surface=, lands on the Data pillar with a one-line notice (「界面的修改已经搬到应用里」) and a link back to the app; ?changes=review travels with it. - The MCP authoring tools and `os meta register --draft` print /studio/<pkg>/data?changes=review; the console's Edit-in-Studio links for a dashboard, page, report or view open its All-metadata item page. - On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page (AREA_CUSTOMIZE_EDITOR_TYPES), into the pair, with the override mark and Restore: the door the Interfaces header was. - Code and tests that served only the column are deleted; parts other surfaces (and PR #36784) use are kept. - The live customize journey and the checklist item move to the new door. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzj9RY8jKV57hUTNEYg
📓 Docs Drift CheckThis PR changes 2 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 58 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 982c8b1abf7a189e514e309025eff42b063db87d && git checkout 982c8b1abf7a189e514e309025eff42b063db87d
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e0050baaceaece398cba4bc207ba69f42643c762 8cfc5d6fe478d8b8e9ffb8307b0115a8b16f8c58 && git checkout -B drift-repro e0050baaceaece398cba4bc207ba69f42643c762 && git merge --no-ff 8cfc5d6fe478d8b8e9ffb8307b0115a8b16f8c58
node scripts/docs-audit/affected-docs.mjs --json e0050baaceaece398cba4bc207ba69f42643c762
|
…502) - The surface's package read handles a failed listed-manifests read again. The retired pillar's handler had been its only one, so a 404 surfaced as an unhandled rejection in the surface's tests. - Tests that now reach the lint/formula dynamic imports pay the load at module top (check:test-source-alias). - The spec-symbol ledger reads StudioPicker.tsx in place of the deleted StudioNavItemInspector.tsx and drops InterfacesNavRail.tsx; the clickable-non-control census drops the retired rail's scrim. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzj9RY8jKV57hUTNEYg
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 Contract-review-claim: session_01WGufzesUz1Y8VZuKJRhVL8 · head 8cfc5d6 · 2026-11-24T08:14Z L1-a takes the contract review (L2) and the L1 read of this head. Tier H: verdicts go to the seat for the approver hand-off. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 Contract reviewServed-tier: Inputs read: card #36502 (body and all eight comments, rulings 7081151402, 7122806677, routing 7122821486, claim 7122916295, note 7125830872), PR #36884 (body, file list, net diff Check-runs on the head at the time of writing (66 runs): 25 success, 10 skipped, 31 in progress, 0 failed. Success: Check Changeset, Governed Surface Queue Guard, PR-body guards, Live E2E UI, Dogfood Regression Gate, Check Documentation Links, Check PR Size, Build UI Deps, TypeScript Type Check, Type Check · workspace / source gates / consumer gates / debt ledger, Lint · ESLint / docs & code guards / repo & tooling gates / CI, release & engine gates / the three scoped lint jobs. STILL IN PROGRESS, so no verdict yet: Build Core, Build & E2E UI, Type Check UI, Lint UI, Lint · PM dispatch-gates, Test Core 1–10 of 10, Test UI 1–16 of 16. The tests that pin the scope files ( ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
The redirect (
Other producers still printing the old link — none. Findings: No must-fix, no should-fix.
Verdict basis: the Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head 8cfc5d6 · 2026-11-24T08:35ZL1-a read of #36884 (card #36502) at Mechanical.
Read.
For the maintainer's approval (not findings against this head):
Nits (no effect on correctness):
Every open finding is a nit, so ACCEPT. Under the human-merge rule, no seat readies, enqueues or auto-merges this PR. It lands after a GOVERNED_APPROVERS approval. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W 维护者速读
Request: approval · Tier H (37,147 changed lines; governed 席位意见: land. It retires the column the card names, keeps every door the card's table lists in the running app, and moves the one door the table missed (Customize on a read-only base) to All metadata instead of losing it.
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzj9RY8jKV57hUTNEYg HotCRM walk: the four in-app writes, driven (answers L2 E1)Setup: hotcrm main 48082b7 on its published 18.6.0 backend (:4011), served by this branch's console build (
Two notes on the fourth row:
No link on any page walked points at |
Takes in the Interfaces retirement (#36884, objectstack#36502). Three files conflicted; both sides are kept: - StudioDesignSurface.designerRegistryMissing / lateRegistration-11939 tests: main's side (InterfacesPillar import and cases removed, its own module-top lint import), with the object page tab looked up as Field layout again. - studio-authoring.json first-run-loop: main's revision 14 entry kept, this branch's Field layout entry renumbered 15 and the item's revision set to 15. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…nly, and arranges an installed object into its .custom pair (objectstack-ai#36888) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9qsP28anD5tWRUHq8j1xSU)_ Fixes objectstack-ai#36505 Clause-②: no Metadata-protocol: none ## 维护者速读 - 管理员在 Studio 对象页看到的「表单」页签改名为「字段布局」,并多一句说明:这里的分组和顺序用在记录页、右侧预览、新建和编辑弹窗上;已安装应用的对象(比如 HotCRM 的线索)从只读变为可以调整分组和顺序,每个字段标出来自原始包、其他包还是本环境。 - 属于「客户可在已安装应用上自定义」这条主线:之前没有任何界面能调整已安装对象的字段分组。 - 出错时管理员看到的是分组顺序不对或保存被拒;改动只写进本环境的定制包,原始包不动,把定制包里的分组设置删掉就恢复原样。 - 无。 ## What changes **The tab (items 1, 4).** Studio's object page tab 「表单」 / `Form` reads 「字段布局」 / `Field layout` (same key `engine.studio.data.tab.form`, value only). The 「字段分组」 source chip beside the Layout/Preview switch is replaced by one sentence (`engine.studio.data.form.usedOn`): the groups and order are used on the record page, the right-side preview, and the create and edit dialogs. No form view is read or written there, and there is no 新建/编辑 switch and no 「表单视图:…」 label. - **Form-view code already deleted on main** before this PR, by the internal-forms retirement (3b58921): `formViewSections.ts`, `useFormViewDraft.ts`, `formViewSections-30057.test.ts`, `DataPillar.formViewLayout-30057.test.tsx`, and the form-view branches of `ObjectFormDesigner.tsx` and `StudioDesignSurface.tsx`. Re-measured on this branch: no form-view read, write, label or switch is left in the tab. - **Deleted here:** the 「字段分组」 chip (`data-testid="form-layout-source"`) and its two strings `engine.studio.data.form.layoutSource.fieldGroups` / `fieldGroupsTitle` (en, zh). `DataPillar.internalFormRetired-36425.test.tsx` now asserts the sentence in place of the chip. - **Kept:** `ObjectFormDesigner` (now the Field layout canvas), the Layout/Preview switch, `ObjectGroupInspector`, `writeGroupLayout` / `readFieldGroupMembership`, and every canvas operation (item 5: add/rename/delete/move group, drag a field between groups, the keyboard drop, the pinned fields, group settings). **The list spelling (item 2).** The canvas saves group membership in each group's own `fields` list through `writeGroupLayout`. New `groupListLayout` (object-fields-io.ts) reads an object still written in the older per-field `group` spelling into lists, so the object's first save from the tab converts it: every group lists its members in display order, and each field's `group` that a list now holds is dropped. Nothing on the canvas moves. The header sentence of `ObjectFormDesigner.tsx` that still named `fields[].group` + `fieldGroups` is rewritten. **An installed object (item 3).** Where the base's customization door is open (`extendsBase && extWritable`, so `layoutWritable`), the tab is no longer read-only: - Every canvas operation and the group inspector edit the object extension of the base's paired `.custom` package, in the Data pillar's extension buffer, as the whole `fieldGroups` arrangement (every non-table group listing its members, the format of objectstack-ai#36498 / ADR-0146 D10). New `groupArrangement` builds it. - The top bar's Save saves and publishes it with the rest of that extension (the `__c` fields and field patches it already holds stay). The original package is not written. - A field-arrangement edit on a contributed field (a field another package brings) is allowed here, because the arrangement only places it. Its properties stay locked. - A field or group `place` entry of the extension, which a written `fieldGroups` replaces (the server refuses the pair), is taken off by the new `withoutReplacedPlacements`. A `{list}` placement stays. - `foldObjectExtension` now folds a buffered `fieldGroups` the way the registry does (`applyExtensionFieldGroups`), so the canvas shows the arrangement before it is saved. It also keeps a placed own field's served `group`. - Each field card of an installed object carries its source: 「原始包」 / Original package, 「本环境」 / This environment (a field the pair declares, or any `__c` field), or the existing contributed mark that names the other package (`fieldLayoutSources.ts`). - Where the door is walled, the tab stays read-only, as before. **Write path, a deviation from the claim's wording.** The claim says to reuse the writer objectstack-ai#36624 added (`saveObjectExtensionArrangement`). The tab uses that writer's composer `extensionWithArrangement` inside the pillar buffer instead of calling the save. The buffer already holds a draft of the very same `object_extension` document, so a second save would be a second writer of it: refused by the first-write pin while the buffer's draft is pending, and overwritten by the buffer's next save once it lands. The header of `objectExtensionArrangementSave.ts` now says so. No new write path: the bytes go out through the pillar's existing extension save and publish (`doSaveExt`). **Not in this PR.** - No public-forms UI is added or moved. - The Interfaces pillar is not touched. - `packages/spec` and the authorable surface are not touched (0 files under `packages/`). **Overlap with objectstack-ai#36784 (paused, public forms).** That PR's DataPillar hunks put a public-forms switch into this same tab. This PR keeps no switch, per the 2026-11-24 ruling (item 4: 字段布局 edits field groups only). `overlap-check` reports a textual conflict in `StudioDesignSurface.tsx`, plus shared lines in the studio string files and `access-security.json`. Whichever lands second rebases. Nothing here builds on it or copies it. ## Why No console path could arrange an installed object's field groups: the record page's 「配置页面」 arranges tabs only, and this tab was walled read-only on an installed package. The tab's name 「表单」 also no longer matched what it edits since the internal-form retirement. It edits the field groups that the record page, the preview and both dialogs read. ## Tests - New `object-fields-io.test.ts` cases: - `groupListLayout`: legacy to lists, mixed spelling, and unchanged when already listed (the same refs come back). - `groupArrangement`: the result safe-parses as an `ObjectExtensionSchema` body. - New `StudioCustomizeControls.objectExtension-28575.test.ts` cases: - the buffered arrangement fold, with a CONTROL; - `withoutReplacedPlacements`; - a placed own field keeps its group. - New `ObjectFormDesigner.test.tsx` cases: - a legacy object converts on a rename, with a CONTROL; - the field sources are marked on an installed object, with a CONTROL. - New `DataPillar.baseObjectExtension-28575.test.tsx` describe, "the Field layout tab arranges an installed object into its pair": - The tab name, the sentence and the marks. - Deleting group `basic` saves the extension body `fieldGroups: [{ key: 'more', fields: ['industry', 'region__c'] }]`, keeps `fields` and `fieldPatches`, and leaves only the `{list}` placement. The body safe-parses. No object save; the publish goes to the pair. - A walled CONTROL. - Updated tests: - `DataPillar.internalFormRetired-36425`: the sentence replaces the chip, and the save is in the list spelling. - `ObjectFormDesigner.keyboardDrop-11871` and `pinnedFields-27516`: the move pins read the first save's conversion. - `StudioDesignSurface.oneSurface-28572`: a base field is now an arrangeable card. - 25 files: the `{ name: 'Form' }` tab lookup now reads `{ name: 'Field layout' }`, and 8 of them get the module-top `@objectstack/lint` import that `check:test-source-alias` asks of edited files. - **Ablation**, once, on the conversion (`groupListLayout` forced to answer unchanged, written by `scripts/ablation-replace.mjs` with the anchor 1 → 0 and the blob 7d64679 → 8ad709d6432e): - Result: 4 failed / 72 passed across `object-fields-io`, `ObjectFormDesigner` and `DataPillar.internalFormRetired-36425`. - Restored: `git diff HEAD` is empty, and the file blob equals the HEAD blob 7d64679. ## Acceptance notes - **Group source marks are not drawn (a gap against item 3's "marks each source").** Field cards are marked. A group's source cannot be told on the client: - the served object carries no per-group source; - the layered `code` the canvas reads already has the pair folded in; - the customization contributions read lists fields only. Drawing group marks needs a read that serves who placed each group. That is a runtime read decoration (spec + runtime), raised in the report as a decision, not guessed here. - **Reordering the ungrouped bucket on an installed object is not persisted.** An extension can arrange groups but cannot reorder the base's field map. The canvas snaps back when a drag produces nothing to save. Order inside a group is persisted (it is the group's list). - **"Restore the original layout" has no button.** Removing `fieldGroups` from the pair's extension restores the base's groups. This was measured live through the API (below). A UI for it was not asked by the card's items. - **Field/group `place` entries are dropped when the arrangement is written.** The server refuses them beside a written `fieldGroups` (`refusePlacementsTheArrangementReplaces`), and the arrangement states every group's members anyway. - **The full `check:platform-checklist` is red on `main`, not from this diff.** `access-security.json` cites `packages/metadata-core/src/anonymous-form-intake.ts#anonymousFormExplicitWithdrawals`, a symbol that c45dd80 (objectstack-ai#36697) removed. Measured: the symbol has 0 hits in origin/main's file, and origin/main's checklist cites it twice. The scoped mode on this branch is OK: `check-platform-checklist --changed-from origin/main: OK — 2 anchored file(s) in the change set, 9 anchor(s) judged, 0 lost`. - The live check used the showcase app's installed objects. HotCRM's 线索 is not in the example, so `showcase_category` stood in as the installed object. - **Open questions decided (seat, 2026-11-24).** Group source marks are trimmed from this card: field cards are marked, groups are not (recorded on objectstack-ai#36505 as 7125461985). The single-writer route is accepted: the tab composes `extensionWithArrangement` inside the Data pillar's buffer and saves through the pillar's extension Save, instead of calling `saveObjectExtensionArrangement`. - **Fix round 1 (4b0d7ee).** Step 3 of the live customize journey spec now clicks the object header's Field layout tab (it clicked Form). Run live on a booted showcase: 1 passed (25.2s). The Add field draft body is still exactly `{extend, fields}`. - Open PR objectstack-ai#36884 (objectstack-ai#36502, Interfaces retirement) overlaps textually in `studio-authoring.json` and two StudioDesignSurface tests, plus shared files. Whichever lands second rebases. ## Screenshots (card 验收) Taken at head 4b0d7ee on a booted showcase (`objectstack dev --seed-admin` plus console vite from this branch), browser locale zh-CN, 1440×900 at deviceScaleFactor 2. The files are in the project files under `issue-36505/`: - `1-installed-field-layout.png`: the installed object `showcase_category` (com.example.showcase, badge 只读) on the 「字段布局」 tab. Groups are 分类 (名称, 上级) and 显示 (颜色, 排序). Every field card is marked 原始包, the sentence 「这里的分组和顺序用在记录页、右侧预览、新建和编辑弹窗上。」 is shown, and the group controls are enabled. - `2-self-built-field-layout.png`: the self-built `qa_layout_ticket` (writable package com.example.qa-layout, authored in the legacy per-field `group` spelling) on the same tab, with groups Main (Title, Status) and Extra (Notes). It shows no source marks, no 只读 badge, and the same sentence. The package's own labels have no zh translation, so they stay in English. - `3-installed-after-save.png`: `showcase_category` after 删除分组 on 显示 and the top-bar Save. The toast reads 「已保存并生效:分类」, and the groups are 分类 (名称, 上级) and 未分组 (颜色, 排序). The writes were `PUT /api/v1/meta/object_extension/showcase_category?mode=draft&package=com.example.showcase.custom` with body `{"extend":"showcase_category","fieldGroups":[{"key":"category","label":"Category","collapse":"none","fields":["name","parent"]}]}`, then publish at the pair (200). There was no write to `object/showcase_category`. Customizations reading (card 验收, L1 N1): `GET /api/v1/packages/com.example.showcase/customizations`. - Before the save: 200, `arrangements: []`, counts all 0. - After the save: 200, `arrangements: [{"object":"showcase_category","key":"fieldGroups"}]`, `counts.arrangements: 1`, `counts.extensions: 0`. The pair's extension holds only the arrangement key. ## Verification Two-minute check: boot the showcase with the console. Open Studio → Data → Category (installed, read-only package) → 字段布局 / Field layout, delete the group "Display", and press Save. The two fields fall to Ungrouped. `GET /api/v1/meta/object/showcase_category` serves one group `category` listing `name`, `parent`, and the base package is unchanged. <details><summary>Live check on a booted showcase (head a144b62), screenshots described</summary> `objectstack dev --seed-admin -p 4517` with its own db, plus the console Vite dev server on :4518 pointed at it; Playwright Chromium, en-US. - **Installed object** (`showcase_category`, package `com.example.showcase`, legacy per-field `group` spelling): - Screenshot 1: the tab strip reads Records · **Field layout** · Validations. The sentence sits beside Layout/Preview. Groups Category (Name, Parent) and Display (Color, Sort Order). Every card is marked 「Original package」. The group controls are enabled; the header badge still says Read-only (the package is). - Deleting Display and pressing Save sent exactly: - `POST /api/v1/packages/com.example.showcase/ensure-customization` → 201 - `PUT /api/v1/meta/object_extension/showcase_category?mode=draft&package=com.example.showcase.custom` with body `{"extend":"showcase_category","fieldGroups":[{"key":"category","label":"Category","collapse":"none","fields":["name","parent"]}]}` → 200 - `POST …/object_extension/showcase_category/publish?package=com.example.showcase.custom` → 200 - No write to `object/showcase_category`. - Screenshot 2: Category (Name, Parent) and Ungrouped (Color, Sort Order). - Served object afterwards: `fieldGroups: [category → name, parent]`; `color` and `sort_order` carry no group. - Revert by API: the extension saved without `fieldGroups` and published (200/200) serves the base's two groups again, with `color` / `sort_order` → `display`. - **Self-built object** (`qa_layout_ticket` in a scratch writable package `com.example.qa-layout`, authored in the legacy spelling: `title`/`status` → `main`, `notes` → `extra`): - Screenshot 3: groups Main and Extra, no source marks (not an installed object). - Deleting Extra and pressing Save sent one `PUT /api/v1/meta/object/qa_layout_ticket?mode=draft&package=com.example.qa-layout` whose body has `fieldGroups: [{"key":"main","label":"Main","fields":["title","status"]}]` and no `group` on any field (the first-save conversion), then the publish → 200. - Screenshot 4: Main (Title, Status) and Ungrouped (Notes). </details> <details><summary>Local tests and type-check (final head a144b62)</summary> - `cd ui && npx vitest run` over the 9 substantive test files (object-fields-io, StudioCustomizeControls 28575, ObjectFormDesigner, DataPillar 28575, DataPillar 36425, keyboardDrop 11871, pinnedFields 27516, oneSurface 28572, objectExtensionArrangementSave 36499): `Test Files 9 passed (9)`, `Tests 153 passed (153)`, `VERDICT command-exit 0`. - The 8 files given the lint import: `Test Files 8 passed (8)`, `Tests 27 passed (27)`. - `packages/i18n/`: `Test Files 109 passed (109)`, `Tests 2014 passed | 13 skipped`. - `pnpm --dir ui exec vitest run scripts/`: `Test Files 172 passed | 2 skipped (174)`, `Tests 5127 passed | 2 skipped`, `VERDICT command-exit 0`. - Whole `studio-design` + `metadata-admin/previews` sweep after the source was final: `Test Files 531 passed` of 534. The 3 red files were the three updated pins above, re-run green since. - `pnpm --filter @object-ui/app-shell type-check && pnpm --filter @object-ui/i18n type-check`: `VERDICT command-exit 0`, after building the `@object-ui/app-shell^...` closure. </details> <details><summary>Derived gate families (dispatch-gates --commands, 45 families)</summary> Run on head a144b62 (the ui scripts suite included), reconciled: `dispatch-gates --ran: 45 derived famil(ies) accounted for — 45 run, 0 NOT-MEASURED (a DERIVED zero — all 45 recorded an exit code and none of them is 3)`. - Red, 1: `pnpm check:platform-checklist :: exit 1`. This is main's ABSENT SYMBOL `anonymousFormExplicitWithdrawals` (see Acceptance notes). The scoped `--changed-from origin/main` run is OK. - `pnpm check:test-source-alias :: exit 0`. It was red on 2f815c5 (8 edited tests lacked the module-top lint import) and is fixed in a144b62. - Green, 43: - `node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0` - `node scripts/check-adr-0087-registration.mjs --self-test :: exit 0` - `node scripts/check-adr-links.mjs :: exit 0` - `node scripts/check-adr-links.mjs --self-test :: exit 0` - `node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0` - `node scripts/check-closing-keyword-parity.mjs :: exit 0` - `node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0` - `node scripts/check-comment-mask-corpus.mjs :: exit 0` - `node scripts/check-empty-changeset.mjs --base origin/main :: exit 0` - `node scripts/check-empty-changeset.mjs --self-test :: exit 0` - `node scripts/check-sdui-manifest.mjs :: exit 0` - `node scripts/check-sdui-manifest.mjs --self-test :: exit 0` - `node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0` - `node scripts/ci/snapshot-next.mjs --self-test :: exit 0` - `node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0` - `node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0` - `node scripts/release-pending-publish.mjs --self-test :: exit 0` - `pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0` - `pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0` - `pnpm check:adr-anchors :: exit 0` - `pnpm check:changeset-gate-self-tests :: exit 0` - `pnpm check:ci-filter-parity :: exit 0` - `pnpm check:closed-ceremony-text :: exit 0` - `pnpm check:cross-package-test-inputs :: exit 0` - `pnpm check:dispatcher-error-vocabulary :: exit 0` - `pnpm check:doc-authoring :: exit 0` - `pnpm check:driver-memory-census :: exit 0` - `pnpm check:engine-double-contract :: exit 0` - `pnpm check:gitlink-declared :: exit 0` - `pnpm check:nul-bytes :: exit 0` - `pnpm check:published-files :: exit 0` - `pnpm check:query-options-erasure :: exit 0` - `pnpm check:refd-timer-probe :: exit 0` - `pnpm check:registry-log-declared :: exit 0` - `pnpm check:rest-log-spy-declared :: exit 0` - `pnpm check:skill-identifier-liveness :: exit 0` - `pnpm check:tier-file-adoption :: exit 0` - `pnpm check:type-check-coverage :: exit 0` - `pnpm check:type-check-debt :: exit 0` - `pnpm check:undeclared-dep-imports :: exit 0` - `pnpm check:watch-hint-literal :: exit 0` - `pnpm check:where-matcher :: exit 0` - `pnpm --dir ui exec vitest run scripts/ :: exit 0` </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No spec change.) - [x] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. `pnpm lint` is CI's run, not re-run locally.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a (not touched). - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [ ] 8. Title, body and comments are in English. (English, except the 维护者速读 block the fleet's PR rule asks for in Chinese.) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ome one left menu of six domain groups (objectstack#36891) (objectstack-ai#36921) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBTuMGhLAZx29zwDrayDGZZF)_ Fixes objectstack-ai#36891 Part of objectstack-ai#36890 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;这次只改两份架构决定的文字,写明 Studio 以后不再分顶部四个分区,改成左侧一个可折叠的分组菜单(数据、界面、自动化、平台、访问、AI),界面本身要等专题后面的卡做完才变。 - 为什么做:属于「Studio 重构」专题,先把分组、叫法和每种元数据类型归哪一组写定,后面的开发卡照同一份文字做,不各自发明。 - 出错会怎样:后面做菜单和详情页的开发会照错的分组或地址去做;这次没有改代码,合并前可以直接改文字,合并后要再修订一次。 - 要你做什么:看下面英文部分里「起草、未裁决」的七条(最要紧的是跨包的环境目录放进「访问」组),不同意的指出是第几条。 ## What changes Docs only, two accepted records amended in place, plus the generated index. No code, no spec, no behaviour. **`docs/adr/0084-application-builder-information-architecture.md`** - Status line gains a dated `Amended in place` entry; the title now names the menu and keeps the old words after "was:". - A new section, "Amendment (2026-11-24)", holds the decision: - Studio is the development surface of one app. Its top-left control returns to the app and names the current package's app (decision 5). The landing page goes by its own card (decision 9). - One collapsible left menu of six groups, one per registered `domain`: 数据 Data (`data`), 界面 UI (`ui`), 自动化 Automation (`automation`), 平台 Platform (`system`), 访问 Access (`security`), AI (`ai`) (decision 11). - The rule: a type's group is its registered `domain`. The key is required on every registry entry, so no type is without a group. - The type-to-group table: all 32 registered types (7 + 7 + 2 + 7 + 6 + 3), enumerated at `origin/main` `151e8123` from the spec's default registry, which holds the same 32 names as the type enum. - Four entries that are not a type: the organization's own flows under Automation, the default sharing overview under Access, diagnostics under Platform (all decision 11), and the `~all` directory under Access (drafted, see below). - A table of what stands and what is replaced, row by row against the 2026-07-01 text. - The sentences the amendment replaces are struck or marked where they stand (TL;DR 1, 2, 5, 6; the diagram; the pillar table; Settings; two principles; one consequence; the alternatives). **`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`** - Status line gains a dated `Amended in place` entry. - D1: the two sentences that kept the pillars and sent a pillar type to its pillar are marked as replaced. A dated block follows the decision: - the "All metadata" area is Studio's only entry; - an item fills the content pane, the menu stays and collapses; - one address per item, `/studio/PACKAGE/metadata/TYPE/NAME`; the object, the flow and the permission set open their designers there; pillar addresses redirect; - × , ‹ › and ⌘K change item, with no switcher and no "open in app" button (decision 7); - the ‹ › order is the list's, carried in the item's address, name order without a list context (decision 10); - the leave guard asks on every departure except the browser's Back (decision 12), anchored to the console's unsaved-edits seam; - the item tools are tabs, `?review=1` kept (decisions 8, 4); - one save model (decisions 1, 14); - a dashboard or a report opens in an app's own edit state, by the three-step rule, with "from Studio" in the address (decisions 3, 6, 15); - "New" on the two lists (decision 13), with how it stands beside the objectstack-ai#36359 rule and the objectstack-ai#36692 ruling that PR objectstack-ai#36848 landed; - a table that says where each of the fifteen decisions is written. - D2, D3, D4, D8, D11 and the Consequences each carry a dated reading of their pillar or landing wording. No rule of those decisions moves. - Three new merge questions (13 to 15), a Rollout paragraph naming the epic's cards, and a Refs entry. **`docs/adr/README.md`** is regenerated by the index script: one row changes (ADR-0084's title and status cell). **Drafted, not ruled.** Each is a numbered item in its record, so an objection can name it. 1. ADR-0084 item 1: **the `~all` cross-package environment directory is entered from the 访问 Access group.** Decision 11 places the other three package-less entries and is silent on this one. The leg's directory lists four types, all registered `security`, and decision 11 puts every other such entry in the group of what it holds. Not taken: an entry of its own outside the six groups. 2. ADR-0084 item 2: **the Settings area (General and Advanced) is not a menu group.** Its types are found by the rule like every other type: `app` under UI, `hook` and `mapping` under Data, `datasource` under Platform. 3. ADR-0084 item 3: **the order of the six groups and their English names** (Data, UI, Automation, Platform, Access, AI). Decision 11 lists them in that order and names them in Chinese. 4. ADR-0084 item 4: **the record's title is reworded.** Number and file name do not move. 5. ADR-0146 merge question 13: **a pillar address keeps redirecting after the pillar routes are deleted.** From the epic's plan, not from a ruling. 6. ADR-0146 merge question 14: **the readings of the earlier wording** in D2, D3, D4, D8, D11 and the Consequences. 7. ADR-0146 merge question 15: **the page for D3's "n customized, m switched off" line is left unnamed.** Decision 9 removes the landing page and names no successor. This is a flag, not a choice: a home in Setup would reverse D3's last clause and needs its own ruling on objectstack-ai#36908. ## Tests No package is touched, so there is no build closure and no package test or typecheck to run. No ablation: the diff changes no tested behaviour. No dogfood battery: the title carries no `!` and the claim has no narrowing arm. The gates that read the changed files were derived from the tree, run on head `e9ba427a9`, and reconciled. The readings are under Verification. ## Acceptance notes **Card acceptance, item by item** - "ADR text matches the epic's decisions": the fifteen decisions are written or placed by the table at the end of ADR-0146 D1's amendment; decisions 2 and 4's open halves are named with the cards that own them. - "The table covers every metadata type, none without a group": 32 of 32. The rule (group = registered `domain`) makes this hold for a type registered later too. - Card item 5 (a note on objectstack-ai#36513) is a GitHub comment and is not made by this pull request. The suggested text is in the dev report for the seat to post. **First files to read, by risk** 1. ADR-0146, the block "Amended 2026-11-24" at the end of D1. Risk hunk: the two bullets on dashboards and reports, where decision 13 is read together with the objectstack-ai#36359 rule and the objectstack-ai#36692 ruling. 2. ADR-0084, "Written here where the rulings were silent", items 1 and 2: the `~all` placement and the Settings area. 3. ADR-0084, the "Type → group" table and the three readings under it (`datasource`, `field`, `action`). **Two-minute verification** Run `grep -o "domain: '[a-z]*'" packages/spec/src/kernel/metadata-plugin.zod.ts | sort | uniq -c` on the branch. Expected: `3 ai`, `2 automation`, `7 data`, `6 security`, `7 system`, `7 ui`, which is the Count column of the table, 32 in all. **How objectstack-ai#36502 is described.** The Interfaces pillar's retirement (PR objectstack-ai#36884, open and unmerged when this was written) is named as its own card, which this amendment neither waits for nor repeats. The text reads the same whichever lands first. **Anchors.** New code citations are symbol anchors on things the decisions keep: three in the spec's registry module and two in the console's unsaved-edits module. Code that the epic deletes is named by bare identifier only, so a later code pull request is not forced to edit `docs/adr/**`. No line anchors. **Noted, not filed** (outside this card; each has a carrier) - Other records and docs still describe the pillar shell: ADR-0086 and ADR-0130 (one sentence each), `ui/docs/adr/0056-permission-editing-studio.md`, `docs/design/builder-ui.md`. Carrier: objectstack-ai#36910, the epic's docs sweep. - Decision 11 names two groups 平台 and 访问, while today's domain dictionary draws `system` as 系统 and `security` as 安全, and the menu card says to take group names from that dictionary. Carrier: objectstack-ai#36899. - Decision 5 does not say what the top-left control names when the current package publishes no app, or where it returns when the remembered page belongs to another app. Carrier: objectstack-ai#36899. - D3 says "Setup carries nothing per package"; one of the two homes objectstack-ai#36908 may propose for the customization counts is Setup's package detail. Carrier: objectstack-ai#36908. - The `os` stats grouping in the CLI is an ADR-0084 consumer and does not follow the six domains. Not ruled on here. Carrier: none. **Changeset.** None: `docs/adr/**` ships in no package. `skip-changeset` is declared with the pull request. ## Verification Head `e9ba427a9`. 21 gate commands derived by `node scripts/pm/dispatch-gates.mjs --commands`, 21 run, each exit code captured before any pipe. `dispatch-gates --ran`: `21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3)`. <details> <summary>ADR gates (verdict lines)</summary> ``` pnpm check:adr-symbol-anchors :: exit 0 ✅ check-adr-symbol-anchors: 3879 anchors across 160 records resolve — 1233 symbol (1204 declaration, 29 literal), 2594 file-level, 52 cross-repo, 6 exempt, 76 continuation. 0 line anchors survive node scripts/check-adr-links.mjs :: exit 0 ✅ check-adr-links: 1171 relative link destination(s) under docs/adr/ resolve pnpm check:adr-index :: exit 0 adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green. pnpm check:adr-anchors :: exit 0 check-adr-anchors: OK (132 anchored file(s), every governing ADR still referenced; 154 decision number(s), each naming one decision or an allowlisted pair ``` Baseline on the untouched tree: 3873 anchors, 1166 link destinations. The amendment adds 6 anchors and 5 links. </details> <details> <summary>The other derived commands (all exit 0)</summary> ``` node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-prior-rulings :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` `check:doc-formula-expressions` first exited 3, PREREQUISITE NOT MET (two workspace packages unbuilt). They were built under the shared verify lock (`VERDICT command-exit 0`, all five tasks from cache) and the gate was run again: exit 0. </details> Tier H: `docs/adr/**` is a governed surface. This pull request is a draft and stays a draft; the seat hands it to the approver. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR --> Co-authored-by: Claude <noreply@anthropic.com>
…ress changes (objectstack-ai#36973) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9qsP28anD5tWRUHq8j1xSU)_ Fixes objectstack-ai#36895 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 用户无感:Studio 里所有链接、跳转、AI 给出的审阅链接,地址一个字节都没变。 - 属于「Studio 重构」专题:先把所有生成 Studio 地址的地方收到一个函数,之后每张设计器卡只改一处就能切到新地址,不会出现两条跳转规则互相跳的死循环。 - 出错的表现是某个 Studio 链接打开到错的页面或打不开;本改动只换写法不换地址,可以直接撤回。 - 无。 ## What changes One builder for every Studio address, and every producer the card lists now calls it. Every address is byte-for-byte what it was before. Nothing redirects and no route changes. - **Console builder (new file):** `ui/packages/app-shell/src/views/studio-design/studioAddress.ts`. It holds `studioPath`, the one path builder, and on top of it `studioLandingPath`, `studioPackagePath`, `studioPillarPath`, `studioHomePath`, `studioItemPath`, `studioPillarItemAddress`, `studioSurfaceQuery`, the "All metadata" builders, `studioChangesReviewPath` and `studioItemReviewPath`. - The vocabulary also lives here: root, home pillar, `~org`, `~all`, `metadata`, `interfaces`, and the `changes` and `review` params. The modules that exported these before re-export them under the same names. - `STUDIO_ITEM_PILLAR` is the per-type switch. `AREA_PILLAR_FOR_TYPE`, which the area's pillar redirect reads, is now this same object. When a designer card deletes a type's row, every `studioItemPath` caller and the area redirect move together, so the two cannot loop. - **Mapping table (new file):** `studioAddressTable.ts`. It has three tables: - `STUDIO_ADDRESS_FAMILIES`: 13 address shapes. - `STUDIO_ITEM_TYPES`: `object` (with its `view`, `action` and `nav` qualifiers), `flow`, `permission`, and `owd:overview`. Each row gives today's pillar and the metadata address the type moves to. - `STUDIO_QUERY_PARAMS`: `surface`, `view`, `action`, `nav`, `changes=review`, `review=1`, `package`, `scope=environment` and `new`. Each row says whether the param is carried verbatim, rides as a qualifier, or is replaced. - **Card item 3:** the retired `/interfaces` redirect (`retiredInterfacesTarget`, landed by objectstack-ai#36884) now reads which params it keeps from this table (`STUDIO_RETIRED_INTERFACES_KEPT_PARAMS`). Its output is unchanged. - **Three `?surface=` spellings, all kept.** Producers did not agree on how to write the value, and each spelling is kept as a named option (`StudioSurfaceSpelling`): - `'component'` (`surface=object%3Aaccount`) is used by most producers. - `'name'` (`surface=object:account`) is used by `appStudioObjectPath`. - `'form'` (`URLSearchParams`, `surface=object%3Aa&action=x`) is used by `switchedOffActionPath`. - StudioDesignSurface writes the scope segment unencoded, and that is kept too, as `segmentEncoding: 'verbatim'`. - **Server shared function, located in `@objectstack/types`:** `packages/types/src/studio-review-links.ts` exports `studioChangesReviewLink` and `studioItemReviewLink`. Both server producers already depend on `@objectstack/types`, and neither may depend on the Console. `packages/cli/src/commands/meta/register.ts` and `packages/runtime/src/domains/mcp-authoring.ts` (`reviewRoutes`) now call them. The review-link text served to the AI is unchanged (pinned below). - I did not choose `@objectstack/spec`: that would add a contract-package export, and spec holds no runtime logic. - The module is named `-links`, not `-routes`, because `check:route-envelope` reads any `*-routes.ts` as a REST module. - **Producers repointed (re-measured on 3f568c1 and later):** - Card items 1–9: `appRoute.ts` ×3, `metadataArea.ts`, `setupMetadataRedirect.ts` ×3, `CommandPalette.tsx`, `studioScope.ts`, `artifactStudioPath.ts`, `AiChatPage.tsx`, `AppNoAccessEmptyState.tsx`, `RecordTabsConfig.tsx`, `DashboardInPageEditor.tsx`, `BuilderLanding.tsx`, `studioChangesLink.ts` and `switchedOffActionTargets.ts`. - Card item 10, `StudioDesignSurface.tsx`: only its four hand-built call sites are swapped (pair-base redirect, Access pillar open, `requestSurface`, pillar nav links). The edit merges cleanly with objectstack-ai#36893's split branch (`git merge-tree`, exit 0). - Card item 11: `StudioRoute.tsx` and `AppContent.tsx`. Route patterns use `STUDIO_ROOT_PATH`, and the `:packageId` landing redirect uses `STUDIO_HOME_PILLAR`, the same relative `data`. - Card item 12: the two server producers. - Card item 13: `InterfacesNavRail.tsx` is gone, as stated. - A producer that landed on main meanwhile (objectstack-ai#36933) is repointed too: `PackagesPage.tsx`'s local `studioPackagePath` now returns `studioHomePath`. - Producers the card missed, now repointed: - `studioInterfacesRetired.ts` - `metadataArea.ts`: `studioMetadataAreaPath`, `studioMetadataItemPath`, `areaLocationRedirect` - `setupMetadataStudioPath` itself - `switchedOffActionTargets.ts`: the action item path and `switchedOffActionListPath` - `studioNewPackage.ts` (`STUDIO_NEW_PACKAGE_PATH`) and `PackageSwitcher.tsx` (`STUDIO_LANDING_PATH`) - `HomePage.tsx` and `useAddAppEntries.ts` (bare `/studio`) - Line numbers moved from the card's (AiChatPage and DashboardInPageEditor). Three of the card's sites already called a helper (CommandPalette's `~org` flow, BuilderLanding's `~org` card, and RecordTabsConfig, which now calls `studioItemPath`). - **New exports from `@object-ui/app-shell`:** `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath` and `studioPackagePath`. ## Why The Studio redesign moves objects, flows and permission sets from pillar addresses to metadata addresses (`/studio/PKG/metadata/TYPE/NAME`). The area already redirects a pillar type back to its pillar. Redirecting the pillar address first would loop, so every producer has to share one builder before any designer card flips its type. ## Tests - `studioAddress.test.ts` (new) pins each builder to literal addresses: every family, all three spellings, verbatim segments, search and hash, the area, the review links, and the repointed module builders. It also checks that the table agrees with the code (`AREA_PILLAR_FOR_TYPE` is `STUDIO_ITEM_PILLAR`, item rows, param keys, family builders, and the params kept on the `/interfaces` redirect). - `studioAddress.guard.test.ts` (new) is the guard. It parses every non-test source under `ui/packages/PKG/src` and `ui/apps/APP/src` and refuses two things: - a string or template literal starting with `/studio`; - a path composed onto `STUDIO_ROOT_PATH`. - Only `studioAddress.ts` (and the table's placeholder shapes) are allowed. - It has positive controls: the walk must reach StudioDesignSurface and the console's StudioRoute, and the matcher must fire on the builder file. - `packages/types/src/studio-review-links.test.ts` (new) pins the server's two links to literals. - `packages/types/src/studio-review-links.callers.test.ts` (new, `repo` project) has two parts: - It refuses a `/studio` literal in any `packages/**` `.ts` source outside the shared module, with controls: both server producers are walked, and the matcher fires twice on the allowed file. - It holds every review link quoted in `skills/objectstack-mcp-build/evals/draft-door-procedure.json` equal to `studioChangesReviewLink` / `studioItemReviewLink` for the package, type and name that link names. The file has 7 quoted links: 5 Changes links and 2 item reviews, 3 distinct values. The skill file is not edited. - Its radius is declared: `vitest.repo-tests.json`, `CROSS_PACKAGE_TEST_INPUTS`, and the `@objectstack/types#test:repo` turbo inputs. Ci.yml's `crosspkg:` filter already covers the skills root. - Existing pins of every repointed producer stay green unchanged. That is the byte-identity proof: none of their expected literals was touched. <details><summary>Local runs (head fa0deb8, after merging origin/main 4f9a3f8)</summary> - `pnpm --dir ui exec vitest run` on the 171 test files that name a repointed producer, the package list, or the builder: `Test Files 171 passed (171)`, `Tests 1777 passed (1777)`. The full app-shell + console suite (2736 files) is CI's Test UI; it was started locally and stopped, since at two workers it did not finish in an hour. - `@objectstack/types`: - `local`, studio-review-links.test.ts: 2 passed; - `repo`, studio-review-links.callers.test.ts: 3 passed. - `@objectstack/runtime` `src/domains/mcp-authoring.test.ts`: 50 passed. - `@objectstack/cli` `--project integration src/commands/meta/register-draft.test.ts`: 10 passed. Run locally because it is the one test that pins the CLI's printed review link. - `pnpm --filter @objectstack/types typecheck` and `pnpm --filter @object-ui/app-shell type-check`: exit 0 on fa0deb8. `@objectstack/runtime` and `@objectstack/cli` `typecheck`: exit 0 on 947b96e, the pre-merge head. `@object-ui/console` `type-check` was NOT MEASURED: it needs every ui plugin's dist built, so it is left to CI's Type Check UI. - `pnpm --dir ui exec vitest run scripts/`: 172 passed, 2 skipped. `pnpm --dir ui check:new-line-citations`: 0 new. </details> ## Acceptance notes - **Two type to pillar maps exist, not one.** StudioDesignSurface keeps its own `PILLAR_FOR_SURFACE_TYPE` (identical to `STUDIO_ITEM_PILLAR` today). The Automations and Access pillars call `studioPillarItemPath(..., 'automations' | 'access', ...)` explicitly. Neither is hand-built, so the guard passes. I left them alone to keep this diff to call-site swaps that merge cleanly with objectstack-ai#36893's move-only split. The flow and permission designer cards switch those call sites, or fold the map into `STUDIO_ITEM_PILLAR`, in the same PR that flips the type. - **Unencoded scope segment.** StudioDesignSurface writes its scope segment (the decoded route param) unencoded in three places, where every other producer encodes it. This is kept byte for byte. It is not reachable with today's package-id alphabet. - **One incidental difference, outside any real address:** `studioItemPillar` looks up the type map with `hasOwnProperty`. The old `AREA_PILLAR_FOR_TYPE[type]` lookup matched `Object.prototype` members, so `/studio/PKG/metadata/constructor/x` redirected to a garbage pillar URL. It now opens the generic item page. This is pinned in `studioAddress.test.ts`. No metadata type has such a name. - **Overlap:** `overlap-check` exits 1 on two PRs. - objectstack-ai#36956 (ux-E's move-only split of StudioDesignSurface, card objectstack-ai#36893): one conflict hunk, in the import block. That PR deletes the `draftVerdict` import lines directly above the `nav-selection` import, and this PR deletes that import (its last user was the `requestSurface` call site). The resolution is to keep both deletions. All four of this PR's call sites stay in StudioDesignSurface after the split, and none is in a moved region. - objectstack-ai#36784, a draft based on an older main, conflicts with `origin/main` itself at the same single hunk (the react-router import, a line this PR does not touch): conflict count 1 with this branch and 1 with main alone. - objectstack-ai#36888 and objectstack-ai#36791 merge cleanly. ## Verification - Read first, ranked by risk: 1. the `StudioDesignSurface.tsx` hunks (four call sites, verbatim segment); 2. `metadataArea.ts` (the area's redirect now reads `STUDIO_ITEM_PILLAR`); 3. `studioAddress.ts` `studioSurfaceQuery` (the three spellings). - Two-minute check: `pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioAddress.test.ts packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts`. Expect 2 files and all tests passing. Then add any literal beginning with `/studio` to a ui source and watch the guard name the file and line. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (spec untouched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (CI) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Yibo Wang · project thread
Fixes #36502
repo:objectstack#3 · os-support-ai · session_01WGufzj9RY8jKV57hUTNEYg
Clause-②: no
Metadata-protocol: none
维护者速读
/studio/<包>/interfaces(含?surface=深链)落到数据页,提示「界面的修改已经搬到应用里」并带回到应用的链接。What changes
The card (objectstack#36502), the maintainer's dispatch 「没关系,不等那个,现在就派」 (2026-11-24 05:17Z) and ruling record 7122806677 (the #36444 dependency waived; public forms stay metadata-editable; keep what PR #36784 needs).
StudioDesignSurface.tsx): the Interfaces pillar (InterfacesPillar, about 3,600 lines) is gone. The pillars are Data, Automations, Access, plus All metadata. A package's Studio root opens Data (STUDIO_HOME_PILLAR).studioInterfacesRetired.ts,StudioInterfacesRetiredNotice.tsx):/studio/<pkg>/interfaces, with or without?surface=, redirects to/studio/<pkg>/data, keeping only?changes=. The Data pillar shows a one-line notice, 「界面的修改已经搬到应用里」 / "Interface edits have moved into the app.", with "Back to the app" (the same target as the header's ‹ Back to app) and Dismiss. The notice is latched when the landing arrives, so the Data pillar's own?surface=write and the Changes drawer dropping?changes=do not erase it. It goes on Dismiss or when the author switches pillar.studioChangesLink.ts,packages/runtime/src/domains/mcp-authoring.tsandpackages/cli/src/commands/meta/register.tsprint/studio/<pkg>/data?changes=review. The old/interfaces?changes=reviewstill opens the drawer through the redirect. Console links that opened/interfaces?surface=T:N(appRoute.ts#appStudioSurfacePath,artifactStudioPath.ts,metadataArea.ts,AiChatPage.tsx) open the item's All-metadata page/studio/<pkg>/metadata/<type>/<name>, or/datafor a built app.<base>.custom.metadataArea.ts#AREA_CUSTOMIZE_EDITOR_TYPESgrows fromdatasettodataset, view, dashboard, report, page. On a read-only base those items openStudioBundleItemEditor, with Customize, the type's registered designer (ViewDefaultInspector,DashboardDefaultInspector,ReportDefaultInspector,PageDefaultInspector), the override chip and Restore. On a writable package they still open the generic item page. The seat accepted this route (seat note, 07:01Z), so it is not a deviation.ui/packages/app-shell/README.md(the dataset-context and reverse-bridge sections),skills/objectstack-mcp-build/evals/draft-door-procedure.json(the review link) and the plugin-chatbotonDesignBuiltAppdoc example. No other user doc or skill names the Interfaces column (git grepovercontent/docsexcept releases, and overskills/).engine.studio.interfacesRetired.sentence,.backToAppand.dismiss(en, zh). The oldinterfaces/nav keys stay; the dead-key gate is report-only.studio-authoring.interfaces-create-dialogsis retired (rev 5, with a retiredReason).coverage.jsondrops it fromapp,pageandreport; each still maps other items.package-customize-restore-display(rev 7) re-points its door to the item page. Eight more studio-authoring items,dashboards.global-filters-rescopeandux-conventions.labels-over-machine-nameshave their Interfaces steps re-pointed, each with a revision bump and a history row.Item 5 census: what was deleted and what was kept
Deleted, because only the Interfaces column used it:
InterfacesPillar(inStudioDesignSurface.tsx, -3,624/+66 in that file),InterfacesNavRail.tsx,StudioNavItemInspector.tsx(itsStudioPickermoved toStudioPicker.tsx, which the Access pillar uses),ObjectListViewInspector.tsx,ObjectListViewTitle.tsx,ListViewTypeSection.tsx,ListViewChartSection.tsx,ListViewBulkActionsSection.tsx,ListViewMoreSection.tsx,interfaceCreate.tsx,metadata-admin/previews/SourcePageProperties.tsx, andservices/componentRegistry.ts#listAppComponents(declared, read by nothing).StudioDesignSurface.*files lost only their Interfaces cases. Pins of shared behaviour were moved, not dropped:useNavTargetLabel.draftLabels-11862,AppNavCanvas.menuOrder-26979,studioZhPillarNames-11801, and the kanban board's card-opens-record controls (objectui#12725/The dequeue-remedy verification still reads queue-ref ABSENCE as proof the PR left the queue — two rows and one SKILL.md sentence outlive the corrected membership reading #12888), now inplugin-kanban/src/__tests__/KanbanRenderer.cardOpensRecord-12725.test.tsx.Kept, because something else uses it or it is a shared export:
DataPillarHelpers,StudioCustomizeControls,StudioPillarKit,setup/publicForms. Public-forms code and UI are untouched (the maintainer paused that development at 05:23Z).StudioCustomizeControls(override chip, Restore,overrideDraftBody), now serving the All-metadata editor;StudioItemHeader;studio-canvas-preview/StudioObjectRecordsCanvas;useSurfaceDeepLink;navSurface,servedNavText;metadataErrorhelpers;STUDIO_KIND_CHIP.nav-target(NAV_ENTRY_TYPES,navTypeAcceptsChildren,retypedNavEntry), theDraftTargetLabelsand dataset-create contexts (no provider today). Each is small; deleting them is a follow-up if nothing picks them up.interfaces/ nav-inspector keys (report-only dead keys).ui/e2e/studio-item-header-title-width.spec.ts: a fixture-only geometry pin ofStudioItemHeader. Its last describe draws an "Interfaces leaf" from fixtures, so it does not depend on the pillar.Prerequisite cards (card item 1)
#36363 menu, #36366 header actions, #36364 add-menu-item, #36370 view settings, #36372 dashboard edit, #36374 report edit, #36425 internal forms retired, #36485 header Studio links, #36487 sidebar Design entry, #36498 and #36499 record page grouping and tabs: all closed as completed. #36444 (public forms) is open; ruling 7122806677 waives it. Until it lands, public forms have no visual editor and stay metadata-editable.
Merge note
Against #36784 (head 1f9f234),
overlap-checkreports one conflict: adjacent import lines at the top ofStudioDesignSurface.tsx. #36784 addsuseHrefto thereact-router-domline; this PR drops the now-unuseduseMetadatafrom the@object-ui/reactline. Resolution: take both. Every other file merges cleanly, and origin/main (7a5ae65) merges cleanly. A later draft, #36888 (the Field layout tab, #36505), overlaps instudio-authoring.jsonand in two surface tests that both PRs gave the module-top@objectstack/lintimport; whichever lands second rebases.Tests
studioInterfacesRetired.test.ts(target, state, encoding);StudioDesignSurface.interfacesRetired-36502.test.tsx, through the real surface: bare URL → Data with the notice (en, and the zh catalogue string 「界面的修改已经搬到应用里」), Back to app,?surface=dropped,?changes=reviewkeeps the notice, the notice outlasts the Data pillar's own?surface=write, leaving for another pillar takes it away, Dismiss, no Interfaces in the nav, and a CONTROL (a plain arrival on Data shows nothing).metadataArea.test.tsandStudioMetadataArea.routes-28561pin the moved Customize door: view, dashboard, report and page open the editor only on a read-only package; flow and object stay on the generic page.copilotDoors-12894pins that an old/interfaces?changes=reviewopens the drawer on Data./interfaces?surface=to the item page or/data:appRoute,artifactStudioPath,metadataArea,AppHeader.*,PageView.*,SidebarAppMenu-36112,AiChatPage.noNavigationAfterBuild,notFound-26708,kernelReadOnly-29567,pillarNavGuard,metadataArea-28561,openPathObjectReaders-12811(three rows for readers that left with the pillar).tsc(src and test) exit 0. Vitest on the 820 test files that touch Studio, the console routes, i18n, plugin-chatbot and plugin-kanban, under the verify lock: 8154 tests, 9 failed on the first pass, all fixed and re-run green, with the affected files re-run after each later change.@objectstack/runtimemcp-authoring.test.ts(50) and@objectstack/cliregister-draft.test.ts(10) green. Fullturbo buildgreen (120/120).Acceptance notes
check:test-source-aliasasked 14 edited tests for the module-top@objectstack/lint/@objectstack/formulaimport; the spec-symbol ledger and the clickable-non-control census still listed the deletedInterfacesNavRail.tsx/StudioNavItemInspector.tsxand the retired rail's scrim; and the listed-manifests read had lost its only rejection handler with the pillar, which surfaced as unhandled 404 rejections in surface tests. All ofstudio-designre-run locally after the fix: 292 files, 2079 tests, green.ui/e2e/live/ci/start-backend.sh, consolevite buildplusvite previewproxying to it).studio-customize-journey.spec.tsnow customizesshowcase_task.in_progresson/studio/com.example.showcase/metadata/view/showcase_task.in_progress: Customize, then Remove Due Date in the view designer. That sends ensure 201 and a draft PUT topackage=com.example.showcase.custom&mode=draftwith the overrides block; Publish runs the pair's publish-drafts (200); the three reads serve the customized columns; the override chip appears; Restore sends two DELETEs at the pair and the shipped columns are served again. Green 4 of 4 runs. The wholetest:e2e:live:ciallowlist: 23 passed in 1.7 min, which fits the job's two-minute budget./interfaces?surface=view:…lands on Data with the notice in each language; Back to the app goes to/apps/com.example.showcase./interfaces?changes=reviewopens Pending changes on Data with the notice./data?changes=reviewopens the drawer with no notice. The metadata item deep link opens the editor. All metadata on the read-only showcase also opens a dashboard, a report and a page with Customize./interfaces. The app menu's View in Studio opens/studio/app.objectstack.hotcrm/data?surface=object:crm_account. All metadata openscrm_account.all_accounts,executive_dashboard,sales_home_pageandcontract_print_page, each with Customize. The custom pagesales_home_pagerenders. The contract print page renders at…/crm_contract/record/<id>/page/contract_print_page, and Print Contract filed a 224 KB PDF through this console (print engine pointed at local Chromium). I checked that the in-app entries are present; I did not re-drive the menu, view, dashboard and record-grouping writes, which are the prerequisite cards' and were walked there. No HotCRM change is needed.Verification
Read first, by risk:
StudioDesignSurface.tsx(the redirect<Navigate>, the latchedretiredOnnotice state,PILLARS),metadataArea.ts#AREA_CUSTOMIZE_EDITOR_TYPES,studioInterfacesRetired.ts, andui/e2e/live/studio-customize-journey.spec.tssteps 1 and 2.Two-minute check: open
/studio/<a package>/interfaces?surface=page:x. Expect the Data pillar, the notice 「界面的修改已经搬到应用里」 and a working 回到应用. Then open a view of a read-only package under All metadata and expect Customize.Governed reading (
check-governed-merges.mjs --branch): Tier H.skills/**×1 (skills/objectstack-mcp-build/evals/draft-door-procedure.json), and 37,094 changed lines (+1,489 / −35,605) is over the 3,000-line line. Not to be readied, queued or auto-merged by a seat.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzj9RY8jKV57hUTNEYg