Skip to content

fix(studio): retire Studio's Interfaces column (objectstack#36502) - #36884

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-qx7p3r
Nov 24, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-qx7p3r

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #36502

repo:objectstack#3 · os-support-ai · session_01WGufzj9RY8jKV57hUTNEYg

Clause-②: no
Metadata-protocol: none

维护者速读

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).

  • Studio's top nav (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).
  • Old links (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.
  • Producers re-pointed: studioChangesLink.ts, packages/runtime/src/domains/mcp-authoring.ts and packages/cli/src/commands/meta/register.ts print /studio/<pkg>/data?changes=review. The old /interfaces?changes=review still 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 /data for a built app.
  • Customize on a read-only base moves to All metadata. In the running app, the view config panel is read-only for a view a read-only package ships (objectstack#35974), and View settings' Save offers only "Save as my view". So without this, retiring the pillar would have removed the only door that customizes a shipped view, dashboard or report into <base>.custom. metadataArea.ts#AREA_CUSTOMIZE_EDITOR_TYPES grows from dataset to dataset, view, dashboard, report, page. On a read-only base those items open StudioBundleItemEditor, 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.
  • Docs and skills: 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-chatbot onDesignBuiltApp doc example. No other user doc or skill names the Interfaces column (git grep over content/docs except releases, and over skills/).
  • i18n: engine.studio.interfacesRetired.sentence, .backToApp and .dismiss (en, zh). The old interfaces/nav keys stay; the dead-key gate is report-only.
  • Checklist: studio-authoring.interfaces-create-dialogs is retired (rev 5, with a retiredReason). coverage.json drops it from app, page and report; 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-rescope and ux-conventions.labels-over-machine-names have 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:

  • Source: InterfacesPillar (in StudioDesignSurface.tsx, -3,624/+66 in that file), InterfacesNavRail.tsx, StudioNavItemInspector.tsx (its StudioPicker moved to StudioPicker.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, and services/componentRegistry.ts#listAppComponents (declared, read by nothing).
  • Tests: 80 files that drove only the pillar, its rail or its inspectors. About 30 more 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 in plugin-kanban/src/__tests__/KanbanRenderer.cardOpensRecord-12725.test.tsx.

Kept, because something else uses it or it is a shared export:

  • What PR feat(studio): design an object's public forms in Studio's Form tab #36784 imports: 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; metadataError helpers; STUDIO_KIND_CHIP.
  • Shared nav-editing helpers with no Studio caller left, kept as exports: AppNavCanvas held-nav helpers, nav-target (NAV_ENTRY_TYPES, navTypeAcceptsChildren, retypedNavEntry), the DraftTargetLabels and dataset-create contexts (no provider today). Each is small; deleting them is a follow-up if nothing picks them up.
  • The old i18n interfaces / nav-inspector keys (report-only dead keys).
  • ui/e2e/studio-item-header-title-width.spec.ts: a fixture-only geometry pin of StudioItemHeader. 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-check reports one conflict: adjacent import lines at the top of StudioDesignSurface.tsx. #36784 adds useHref to the react-router-dom line; this PR drops the now-unused useMetadata from the @object-ui/react line. Resolution: take both. Every other file merges cleanly, and origin/main (7a5ae65) merges cleanly. A later draft, #36888 (the Field layout tab, #36505), overlaps in studio-authoring.json and in two surface tests that both PRs gave the module-top @objectstack/lint import; whichever lands second rebases.

Tests

  • New: 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=review keeps 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.ts and StudioMetadataArea.routes-28561 pin 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-12894 pins that an old /interfaces?changes=review opens the drawer on Data.
  • Re-pointed: every producer test, from /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).
  • Local: app-shell 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/runtime mcp-authoring.test.ts (50) and @objectstack/cli register-draft.test.ts (10) green. Full turbo build green (120/120).

Acceptance notes

Verification

Read first, by risk: StudioDesignSurface.tsx (the redirect <Navigate>, the latched retiredOn notice state, PILLARS), metadataArea.ts#AREA_CUSTOMIZE_EDITOR_TYPES, studioInterfacesRetired.ts, and ui/e2e/live/studio-customize-journey.spec.ts steps 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

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
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/cli, @objectstack/runtime, touching 3 documentable anchor(s).

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

  • content/docs/deployment/cli.mdx (via os meta register (command, read off packages/cli/src/commands/meta/register.ts))
What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 58 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json e0050baaceaece398cba4bc207ba69f42643c762 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 982c8b1abf7a189e514e309025eff42b063db87d — the merge of head 8cfc5d6fe478d8b8e9ffb8307b0115a8b16f8c58 into base e0050baaceaece398cba4bc207ba69f42643c762, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs e0050baaceaece398cba4bc207ba69f42643c762 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8cfc5d6fe478d8b8e9ffb8307b0115a8b16f8c58
Local-runs: none
Scope: skills/objectstack-mcp-build/evals/draft-door-procedure.json + packages/runtime/src/domains/mcp-authoring.ts, packages/runtime/src/domains/mcp-authoring.test.ts, packages/cli/src/commands/meta/register.ts, packages/cli/src/commands/meta/register-draft.test.ts, ui/packages/app-shell/src/views/studio-design/studioChangesLink.ts, ui/packages/app-shell/src/views/studio-design/studioInterfacesRetired.ts, ui/packages/app-shell/src/views/studio-design/studioInterfacesRetired.test.ts, ui/packages/app-shell/src/views/studio-design/StudioInterfacesRetiredNotice.tsx, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx (the redirect, the latched notice and the ?changes= reader only), ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.copilotDoors-12894.test.tsx, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.interfacesRetired-36502.test.tsx
Security-touching: no

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 origin/main...pr-36884, 178 files, +1,538 / −35,609), and the check-runs on this head. The rest of the diff (the deleted Interfaces pillar and its 80 test files, the Customize door moved to All metadata, console link re-pointing, checklist JSON, README, i18n) is outside this record: it is the lane seat's ACCEPT at TIER_DEFAULT, and the PR stays Tier H on size whatever this record says.

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 (mcp-authoring.test.ts, register-draft.test.ts, studioInterfacesRetired.test.ts, copilotDoors-12894, interfacesRetired-36502) run in those unfinished shards; this record reads them, it does not stand in for their result.

① Derived judgments

  • save_metadata_draft reply, review.changes (mcp-authoring.ts#reviewRoutes): the value moves from /studio/PKG/interfaces?changes=review to /studio/PKG/data?changes=review. Right. The key set (changes, item, note) and review.item are unchanged; only a route string inside a value moves, and the old value still resolves (below). Both tests that pin it are re-pointed in the same diff.
  • os meta register --mode draft output (register.ts#draftSaveLines): the second line prints the same new route. Right; register-draft.test.ts pins it at the unit and at the real save door.
  • Console route surface: /studio/PKG/interfaces stops being a pillar and becomes a redirect to /studio/PKG/data; /studio/PKG with no tab opens data (STUDIO_HOME_PILLAR). Right against card items 2 and 3. A removed route that keeps answering is not a narrowing of anything an author can write.
  • Eval accept set: eval 3's must_contain moves from the old link to /studio/com.acme.crm/data?changes=review; eval 1 keeps the looser changes=review. Right: both follow the producer.
  • @object-ui/i18n: three keys added (engine.studio.interfacesRetired.sentence, .backToApp, .dismiss, en and zh). Additive. The zh sentence is the card's own wording, 「界面的修改已经搬到应用里」.
  • No published schema, spec key, export map or stored shape moves in the scope files. @object-ui/app-shell is private: true, so the deleted modules are not a published accept set.

② Semver level

.changeset/36502-retire-studio-interfaces.md is patch on @objectstack/runtime, @objectstack/cli, @object-ui/i18n and @object-ui/plugin-chatbot, with Clause-②: no and Metadata-protocol: none, and the PR body carries the same two lines at line start. The level is right: no metadata key, accepted value or type changes, so none takes patch (AGENTS.md Post-Task step 3). Clause-②: no is right: no published accept set moves, and no arm is owed because the old route still answers. The body's account of the review link and of the redirect matches the code. One gap in the package list, N1 in ④. Check Changeset is green on this head.

③ Boundary flags

  • Dev flag, 设置里新增「对外表单」:列出全部对外表单,能开关、复制地址、改字段和标题、新建(现在只能写在应用定义里) #36444 waived: answered by ruling 7122806677 on the card. The PR body states the consequence (public forms have no visual editor until 设置里新增「对外表单」:列出全部对外表单,能开关、复制地址、改字段和标题、新建(现在只能写在应用定义里) #36444 lands). Read in the tree, not taken from the body: every symbol PR feat(studio): design an object's public forms in Studio's Form tab #36784 (head 1f9f2343) imports from these folders is still exported on this head (StudioBaseCustomization, StudioSavedDraft, STUDIO_SYSTEM_FIELD_NAMES, declaredOverrideOf, overrideDraftBody, markShippedOff).
  • Dev flag, two extra producers of the old route (claim 7122916295): answered in the diff; all three producers are re-pointed and no fourth exists (④).
  • Note 7125830872, pointer 2 (redirects as one central from → to table; say what "Studio first screen" means): met in substance. One module (studioInterfacesRetired.ts) holds the one retired segment, the one target and the kept-parameter list as exported data, and the PR body names the first screen as the Data pillar (STUDIO_HOME_PILLAR). It is a single function, not a literal table; Studio 重构(1-4a):所有产生 Studio 地址的地方改成调用同一个函数(行为不变,为逐类型切换新地址做准备) #36895 can take it over as it stands.
  • ESCALATED to the lane seat and the maintainer's Tier H read, E1: the card's acceptance line 「HotCRM 上:改菜单、改一个列表视图、改一个仪表盘、调一次记录页分组,全部在应用里完成,不需要进 Studio」 and ruling 7122806677 ("the HotCRM walk stays, as the dev's verification step") are not met by what the PR reports. The PR body says the walk checked that the in-app entries are present and did not re-drive the four writes. The same body, and metadataArea.ts in this diff, say that on a read-only package (HotCRM is installed, so read-only) a shipped view is not editable in the running app and is customized on its All-metadata item page in Studio. So for a shipped HotCRM list view, 「不需要进 Studio」 may be false on this head. Outside this record's scope files; it must be answered before ACCEPT, by driving the walk or by the maintainer's word.
  • ESCALATED, E2: the card says an editing function missing from its table 「要先报」. Customize on a read-only base is such a row, and the diff widens AREA_CUSTOMIZE_EDITOR_TYPES to view, dashboard, report, page to keep it. The PR body cites a seat note (07:01Z) accepting this; no comment on the card records it. The route is the conservative one (it keeps an existing capability), but the acceptance needs to be on the card or in the lane seat's ACCEPT.
  • No open_questions entry is carried on the card or in the PR body.
  • SQL push-down: nothing to find. The two server-side changes are string literals; the scope's UI files issue no query. No new id materialisation and no in-app join.
  • Security-touching reasoning (kept off its own line): the changed eval lines differ from main in one route segment, four times, plus one must_contain string. The surrounding sentences about a person publishing in Studio are unchanged bytes on the same JSON lines; no hunk changes what is taught about permission, sharing, credentials, tokens or authentication.

④ Design judgment

skills/objectstack-mcp-build/evals/draft-door-procedure.json — holds.

  • Against the producer: the prompt replies in evals 1 and 3 quote review.changes as /studio/com.acme.crm/data?changes=review, which is exactly what reviewRoutes('com.acme.crm', …) returns on this head (encodeURIComponent leaves the id unchanged). review.item (/studio/com.acme.crm/metadata/flow/crm_lead_created_notify?review=1 and the dataset twin) matches the unchanged template. The expected outputs give the same string, and eval 3's must_contain requires it byte for byte.
  • Against the skill it evaluates: SKILL.md line 93 says to give the save reply's review routes as written. The eval now shows a reply a live server produces, so "as written" and the expected text agree. Before this change a model following the skill against a live server would have failed eval 3's old assertion; the eval had to move with the producer, and it did in the same diff.
  • Against the scenario (card item 6): no other file under skills/ names the old route or the Interfaces column. Evals 2 and 4 carry no route.
  • Does the taught link land? Yes, read in the tree. ?changes= is read in StudioDesignSurfaceBody, above every pillar, so the drawer opens on Data for any item type (eval 1's draft is a flow). review.item still opens the generic draft review: areaItemOpensFormEditor keeps its ?review=1 exception, so widening the customize-editor types does not capture it.

packages/runtime/src/domains/mcp-authoring.ts, packages/cli/src/commands/meta/register.ts, studioChangesLink.ts — agree with the contract and with each other. All three build /studio/ + encoded package id + /data?changes=review; the jsdoc in each was moved with the code. A paired PKG.custom id resolves: the surface redirects a pair's pillar URL to its base and keeps the query.

The redirect (studioInterfacesRetired.ts, its wiring in StudioDesignSurface.tsx, StudioInterfacesRetiredNotice.tsx) — agrees with card item 3.

  • /studio/PKG/interfaces matches /studio/:packageId/:tab; the check runs before the pair redirect and before the body, so no state exists in which the retired segment reaches the not-found branch. ?surface= and every other pillar parameter are dropped; ?changes= is kept, all values. The old link every already-printed CLI line and MCP reply carries therefore still opens the drawer, pinned by copilotDoors-12894 ("an old /interfaces?changes=review link lands on the Data pillar with the drawer open").
  • Tried to break it: (a) the Data pillar's own ?surface= write and the drawer's ?changes= delete both replace the entry without state, which would erase a notice read from location.state — the notice is latched in component state keyed on the landing pillar, and a test pins that it outlasts the ?surface= write; (b) a pair id on the old URL — resolved to the base in the redirect itself; (c) the package-less scope ~org — lands on /studio/~org/data, which the body forwards to its one pillar, and the latch clears because the tab changed: no error, no notice, acceptable for a scope with no app to go back to; (d) an unknown ?changes= value — dropped, nothing opens (CONTROL test); (e) a missing package — the existing not-found state, as before.
  • "Back to the app" reuses studioBackTarget and the header's unsaved-work veto, so it cannot leave past a held edit.

Other producers still printing the old link — none. git grep on this head over skills/, packages/, ui/, content/docs (releases excluded) and docs/, tests and CHANGELOGs excluded, finds the old route only as the redirect's own documentation (studioInterfacesRetired.ts, ui/packages/app-shell/README.md line 641) and as retirement history in two checklist steps. No changes=review string exists outside the three producers and the eval.

Findings:

No must-fix, no should-fix.

  • N1 (nit, prose face) — the changeset names four packages but not @objectstack/skills, the published package whose bytes skills/** is (packages/skills copies the catalog byte for byte, evals included), nor @object-ui/app-shell, where nearly all of the diff lives. Repo practice names both (57 and 171 of the changesets now in .changeset/ respectively; d2fc055a17 changed a skill eval and reference and named skills). Versions are unaffected (skills is in the fixed group and moves with runtime and cli), so the only effect is that neither CHANGELOG carries the entry. Fix on the changeset: add '@objectstack/skills': patch and '@object-ui/app-shell': patch.
  • N2 (nit) — StudioDesignSurface.tsx lines 450 and 526 cite studioInterfacesRetired.tsx; the file is studioInterfacesRetired.ts (the notice is StudioInterfacesRetiredNotice.tsx).
  • N3 (nit) — the notice's jsdoc says it is "shown again only by another old URL". Where the Data pillar writes no ?surface= (a package with no object) and no ?changes= was carried, the landing's history state survives, so a browser reload shows the notice again after Dismiss. Cosmetic.
  • N4 (nit, outside the diff, follow-up card at most) — packages/qa/scenarios/src/runner/door-rules-corpus.ts line 90 still says "Studio's Interfaces pillar shows "no app"", and code comments in AppHeader.tsx (456), DashboardView.tsx (11) and RuntimeDraftBar.tsx (6) still describe authoring as living in the Interfaces pillar. None prints a link.

Verdict basis: the hits file and every implementing file agree with the card and with each other, and every printed review link, old or new, lands in a drawer that opens. PASS on this scope. It does not cover E1 and E2, which stay open for the lane seat's ACCEPT and the maintainer's Tier H approval, and it is rendered while 31 check-runs (all Test Core and Test UI shards among them) have not concluded.

Implemented-by: claude/project-thread-qx7p3r
Reviewed-by: session_01WGufzesUz1Y8VZuKJRhVL8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — ACCEPT · repo:objectstack#3 · head 8cfc5d6 · 2026-11-24T08:35Z

L1-a read of #36884 (card #36502) at 8cfc5d6fe478d8b8e9ffb8307b0115a8b16f8c58. Tier H (skills/** and 37,147 changed lines): this ACCEPT goes to the seat for the maintainer's approval. It does not land anything.

Mechanical.

  • check-governed-merges: HUMAN MERGE, 37,147 > 3,000.
  • Contract review: claim 7125896004, record PASS 7126056204, on this head.
  • l1-face: 12 of 13 items ok; all-checks 61 success · 12 expected skips · 0 failed · 0 pending; mergeable_state clean. One flag, changeset, answered under the second Read bullet.

Read.

  • Fixes #36502 is right. Item 2: the pillars are Data · Automations · Access · All metadata, and the Studio root opens data (STUDIO_HOME_PILLAR). Item 3: /studio/<pkg>/interfaces, with or without ?surface=, redirects before the pair redirect and before the body, keeps only ?changes=, and latches the notice in state. That state outlives the Data pillar's own ?surface= write, which is pinned in interfacesRetired-36502. Item 6: git grep on this head finds no producer of /interfaces outside the redirect's own documentation and CHANGELOG history. The three ?changes=review producers (mcp-authoring.ts, register.ts, studioChangesLink.ts) agree byte for byte with the eval.
  • Changeset, sentence by sentence: every sentence holds against the tree. The changeset flag names @object-ui/components and @object-ui/plugin-kanban. Each is touched by one file under src/__tests__/. Both packages ship files: ["dist", …] and build with tsconfig excluding **/__tests__/**, so nothing they publish changes and no entry is owed. @object-ui/app-shell is private: true.
  • Customize moved to All metadata (the seat's option A). AREA_CUSTOMIZE_EDITOR_TYPES gains view, dashboard, report, page. ViewDefaultInspector, DashboardDefaultInspector, ReportDefaultInspector and PageDefaultInspector are registered in metadata-admin/inspectors/index.ts, so StudioBundleItemEditor draws the designer and not the form. ?review=1 keeps the generic draft review. The routes are pinned in StudioMetadataArea.routes-28561 and metadataArea.test.ts. The end-to-end customize, publish, serve and restore flow is pinned in ui/e2e/live/studio-customize-journey.spec.ts, and Live E2E UI is green on this head.
  • Console links: appStudioSurfacePath, artifactStudioPath and PageView open /studio/<pkg>/metadata/<type>/<name>. AiChatPage and AppHeader open /data. No source under ui/packages/*/src names the interfaces segment except RETIRED_INTERFACES_SEGMENT.
  • What PR feat(studio): design an object's public forms in Studio's Form tab #36784 imports is still exported (ruling 7122806677). This was read in the tree by the contract review and agrees with the PR's census.

For the maintainer's approval (not findings against this head):

  • E1, acceptance line 「改一个列表视图…全部在应用里完成,不需要进 Studio」. On an installed, read-only package such as HotCRM, the running app's View settings saves a shipped view only as "my view" (objectstack#35974, which predates this PR). Org-wide customizing of a shipped view, dashboard, report or page into <base>.custom is still a Studio door: the All-metadata item page, replacing the Interfaces header. The 维护者速读 says so in its second bullet. The HotCRM walk checked that the in-app entries are present, and the writes were walked on the prerequisite cards. This PR changes none of those in-app write paths (AppHeader.tsx changes only a navigate target). Approving this PR accepts that reading of the acceptance line.
  • E2: closed. The seat recorded option A, and the narrow reading of 「不需要进 Studio」, on card Studio「界面」整栏作废:顶部导航去掉「界面」,原来在里面改的东西各有去处;前置的运行界面入口全部落地后再摘 #36502 (7126312510).

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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

维护者速读

Request: approval · Tier H (37,147 changed lines; governed skills/** ×1) · 2026-11-24T08:37Z

席位意见: 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.

  • L1: ACCEPT 7126338196 (L1-a) at head 8cfc5d6f, nits only (N1–N4). Claim 7125896004.
  • Contract review (CONTRACT_REVIEW_TIER): L2 PASS 7126056204 on 8cfc5d6f. E1 is stated above for you; E2 (option A on the card) is closed by 7126312510.
  • Checks at 8cfc5d6f: 61 success, 12 expected skips, 0 failed; mergeable clean. 178 files. Fixes #36502.
  • Changeset flag on @object-ui/components and @object-ui/plugin-kanban: each is touched only by a __tests__ file that does not ship, so no entry is owed (the L1 verdict records it).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 (vite preview), signed in as the seeded admin, Playwright Chromium, en-US. App crm_enterprise of the installed (read-only) package app.objectstack.hotcrm. The network lines are the non-GET requests each step sent.

Card step In-app path What was sent Result
Change a menu Sidebar app menu → Design layout → Actions for Home → Move down → Save POST /api/v1/packages/app.objectstack.hotcrm/ensure-customization 201 · PUT /api/v1/meta/app/crm_enterprise?mode=draft&package=app.objectstack.hotcrm.custom 200 · POST …/app/crm_enterprise/publish?package=app.objectstack.hotcrm.custom 200 Saved into the pair, no Studio
Change a dashboard executive_dashboard → Edit this dashboard → Remove widget (Total Contacts) → Save ensure-customization 200 · PUT /api/v1/meta/dashboard/executive_dashboard?mode=draft&package=app.objectstack.hotcrm.custom 200 · POST …/dashboard/executive_dashboard/publish?package=app.objectstack.hotcrm.custom 200; toast "Dashboard saved" Saved into the pair, no Studio
Change a list view Accounts → View settings → hide Type → Save The only offer is "Save as my view": POST /api/v1/data/sys_personal_view 201 A personal view, no Studio. A shared change to the shipped all_accounts view is made on its All-metadata page. This is the limit the seat accepted on the card and the PR body's 维护者速读 states (in place since #35974, not changed here)
Arrange the record page An account record → ⋯ → Configure tabs → hide Contacts → Save ensure-customization 200 · PUT /api/v1/meta/object_extension/crm_account?mode=draft&package=app.objectstack.hotcrm.custom 422 <root> [unrecognized_keys]; body {"extend":"crm_account","relatedLists":[…,{"list":"crm_contact","hidden":true}]} Refused by the server, version skew: object_extension.relatedLists is ADR-0146 D10 (#36818), newer than the 18.6.0 backend this HotCRM runs on. The console is main's, so it writes the key; a backend from the same main accepts it. Not this PR's code path (record tabs are #36499's; this diff does not touch recordTabsConfigIo.tsx or the spec)

Two notes on the fourth row:

No link on any page walked points at /interfaces. The head is unchanged (8cfc5d6).

@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 08:54
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 3f568c1 Nov 24, 2026
79 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-qx7p3r branch November 24, 2026 09:18
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
os-support-ai pushed a commit that referenced this pull request Nov 24, 2026
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
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants