Repository navigation
feat(setup): the environment directory moves from Studio to Setup's access group - #37602
Conversation
…ccess group (WIP) Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Adds a render test for the Setup page and the pure routing tests. Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 3 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
|
…n Setup Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…Setup and ~org The not-found exit's label names where it now goes (organization flows). Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…ry alias's one hop Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S
Generated by Claude Code |
|
repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S The one re-run reproduced the same Generated by Claude Code |
…-x4tuqk # Conflicts: # ui/packages/app-shell/src/views/studio-design/StudioPackageMenu-37139.test.tsx # ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T16:45Z): Area notes for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 4320d10 · 2026-11-26T16:47Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Inputs read: card #37565 (body, claim, both claim amendments, triage, os-dev-report), PR #37602 (body, file list, net diff against ① Derived judgmentsAccept-set: nothing the server accepts or refuses changes. No spec, schema, route handler or metadata door is in the diff. The changes are client routing, one Setup navigation contribution (data), one registered component page, and labels. Public-surface changes, each judged:
Findings:
② Semver levelThe changeset
③ Boundary flags
Security-touching: yes — the PR moves a capability-gated surface (the environment catalog of positions, permission sets, capabilities and sharing rules) and re-implements its Seat questions:
Implemented-by: VERDICT: FAIL |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…s entry gate does Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…n again Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…hoever may open Setup Without setup.access the rows, the cross-package leg and the bare ~all addresses keep the environment lists in Studio, where they were. Also corrects two doc sentences (only the ?scope=environment lists redirect) and a stale i18n comment. Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the delta round (2026-11-26T17:43Z), answering the seat's REWORK 7198240498:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Delta review against the prior record on Inputs read:
① Derived judgmentsAccept-set: still unchanged. No server, spec or metadata-door code is in the delta. Public-surface changes in the delta, each judged:
Prior findings:
New:
② Semver levelUnchanged and right. All four packages are at ③ Boundary flags
Security-touching: yes — the PR moves a surface gated by Seat questions, delta only:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta)Head-sha:
|
…a user without Setup Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…or whoever may open Setup Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…e aliases too Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the S3 delta (2026-11-26T18:29Z), answering the seat's REWORK 7199695339:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: This is the second delta review, against the delta record on Inputs read:
① Derived judgmentsAccept-set: still unchanged. No server, spec or metadata-door code is in the delta. Changes in the delta, each judged:
Prior findings:
New: none. ② Semver levelUnchanged and right. All four packages are at ③ Boundary flags
Security-touching: yes — the PR moves a surface gated by Seat questions, delta only:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta 2)Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Adding |
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Landing (area ux-37424): the seat's delta L1 is ACCEPT (7200590330) on head
|
…il (objectstack-ai#37579) repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 <!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgPUWudpC44JvVj61ofRTo8S)_ Fixes objectstack-ai#37456 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:Studio 不再有顶栏。左栏顶部两行:第一行 Studio 标识和收起按钮;第二行「返回应用」和软件包切换器(应用图标、名称,只读带锁,末行「新建软件包」)。变更和发布在「概览 › 待发布」;组织流程(~org)没有概览,左栏保留一行「变更 N」。「新建应用」按钮去掉。手机宽度顶部一条细栏打开菜单。左栏收起后成窄栏。 - 为什么做:App Studio 改版去掉顶栏(ADR-0084 2026-11-26 修订)。 - 出错会怎样:最坏是某个入口找不到(发布、返回),不丢数据;撤回即恢复。 - 要你做什么:暂无(区域审完后合入)。 ## What changes Two halves on one branch. **Half 1** gives Studio's left column the two top-left rows the ADR-0084 amendment (`#amendment-2026-11-26-frame`, `#amendment-2026-11-26-homes`) gives it, built as their own files so objectstack-ai#37553's split of `StudioDesignSurface.tsx` is not disturbed. **Half 2** (after objectstack-ai#37454 / PR objectstack-ai#37546 merged; `main` merged once) deletes the top bar. ### Half 2: the top bar is gone - **`StudioDesignSurface.tsx`.** The header is deleted with everything only it used: the create-app button, state and dialog; the Publish button, its disabled / read-only reasons and the posture state; the now-unused imports. Each tenant's home, per the amendment's table: way back → the package row; ⋯ → 概览's header; Changes + Publish → 概览's Pending tab, with the count as the menu's `studio-menu-overview-pending` badge; Save / Cancel → the item header; assistant / panel toggle → the title row's end; menu toggle → Studio's row; Create app → nowhere (the silent item 5). The changes sheet stays for the ~org scope and now passes `posture="review"` explicitly. The switcher's pick opens the package's 概览 (`studioPackageOverviewPath`). - **`StudioTopLeft.tsx`.** `StudioScopePendingRow`: on the package-less ~org scope, which has no 概览, a "Changes · N" row (`studio-scope-changes`) under the package row (compact on the rail) opens the existing sheet and its `doPublish`. `StudioMobileStrip`: below 768 px a strip (`studio-mobile-strip`) holding the menu trigger and Studio's mark, since the drawer otherwise has no door. - **`StudioBackToApp.tsx`.** The top bar's `StudioBackToApp` is removed; `studioBackTarget` and `StudioBackButton` stay. - **`studio-tokens.ts`.** `STUDIO_HEADER`, `STUDIO_HEADER_PACKAGE_COLUMN`, `STUDIO_HEADER_WIDE_WORD` removed. - `StudioRoute.tsx` draws no bar, so it is untouched. - **Copy repointed (S1).** `engine.studio.newApp.appFailed` now points to the 应用 row in the package's menu. `engine.studio.data.draftObjectHint` now points to 概览 › Pending. The stale "Save in the top bar" strings (the two permission-set notes, `customize.saveFooter` and `inspector.draftFooter`) now say "page header" / 「页头」, in both en and zh. - **Missing-package way back (S2).** `StudioMissingPackageStrip` in `StudioTopLeft.tsx` is mounted when the package is missing, at every width. It holds `StudioBackButton` plus Studio's mark and name, in the place where the bar's way back used to be. ### Half 1: the rows - **`StudioTopLeft.tsx` (new).** Row 1 (`StudioBrandRow`): Studio's graphite mark, its name (`engine.studio.mark`, the existing key, which objectstack-ai#37566 renamed through objectstack-ai#37581 so it now reads App Studio / 应用搭建), the collapse control. Row 2 (`StudioPackageRow`): the way back, then the package switcher. Collapsed on desktop, the column is a rail (`studio-rail-head`): expand control, way back, app logo, stacked. - **`StudioPackageSwitcher.tsx` (new).** A popover naming the open package by its app (logo via `AppMark`, label via `navItemLabelText`, else the package name), with a lock when read-only. The list holds the openable packages: kernel packages out, `.custom` pairs folded ("with PAIR"), ~org / ~all not listed; a search box; the current row checked. Picking a package passes `beforeNavigate` (the unsaved-changes guard) and opens it. The last row, **New package** (authors only), opens the existing `CreatePackageDialog` (objectstack-ai#37134) and opens the created package. The list reloads on `objectui:packages-changed`; a failed read toasts under the shared `PACKAGE_LIST_TOAST_ID`. - **`StudioBackToApp.tsx`.** Adds `StudioBackButton`, the chevron-only way back with the same target as `studioBackTarget`. Its own testid (`studio-package-back`) so it does not clash with the top bar's `studio-back-to-app` while both exist. - **`StudioTitleRowFallback.tsx` (new).** The panel control (and save / assistant) for a page that draws no title row (loading, not found). It registers as a title row after the page in document order, so the page's own title row always wins and this draws only when there is none. - **`StudioMenu.tsx`.** A `head` slot at the top of the menu header; `collapsible` moves from `offcanvas` to `icon` (the rail); search and the advanced toggle hide on the rail; each menu item gets a tooltip, shown only on the rail. - **`StudioDesignSurface.tsx`.** Mounts `StudioTopLeft` as the menu's head and `StudioTitleRowFallback` after the pillars. The top bar's own menu toggle is removed (the toggle now lives in row 1, so the page never draws two). - **i18n.** `engine.studio.pkg.switcher`, `.search`, `.noMatches`, `.newPackage` (en, zh). ## Tests **Half 2** - `StudioDesignSurface.noTopBar-37456.test.tsx` (new, 8 cases) walks every former tenant at its new home: no top bar (control: the rows are drawn); the way back first in the package row and the one menu toggle in Studio's row; the phone strip opens the drawer; a switcher pick lands on `/studio/X/overview`; ⋯ only in 概览's header; badge → Pending → Publish POSTs `/api/v1/packages/<id>/publish-drafts`; a read-only Pending has no Publish; no Create app anywhere. - `notFound-26708` is re-pointed: in all 4 pillar cases it requires the way back on the missing-package strip (`studio-package-back`, target `/home`). The ablation (strip not mounted) turns 4 red. - `StudioTopLeft-37456.test.tsx`: +2 cases, the ~org Changes row (expanded and on the rail) and its control (a package scope draws none). `packageLessFlows-11553` gains the row → sheet path. - Re-pointed from the bar to the new homes (same claims): `backToApp-36501`, `graphite-37455`, `rightSlot-12725`, `desktopHint-11795`, `accessSegment-12452`, `interfacesRetired-36502`, `copilotDoors`, `copilotDraftBadge`, `itemDraftLine`, `metadataArea`, `packageListErrorPosture`, `pillarNavGuard`, `StudioPackageMenu-37139`, `StudioPackageOverview-37454`, `entryReadsOnce-11797`, `publishBackfill-12929` (badge → embedded panel → open the row), `customizePublish-28562`, `saveBar-36511`, `PackageFormDialog.newAppStep-36748`. - Deleted, because what they pinned no longer exists: `narrowHeader-12509` (the bar's narrow layout), `createAppAccessibleName` and the app cases of `CreateItemDialog.labels-13128` / `createTaken-26917` (Create app is gone), `publishPosture-12517` and `publishReadOnlyReason-12303` (the bar's Publish; the Pending tab's read-only posture is pinned in `noTopBar-37456` and objectstack-ai#37454's suite), `changesCount-11787` (its claim, a saved draft counts before its own re-read, is held by `metadataArea-28561`). - Ablations (each restored, `git diff HEAD` empty): `scopePending` never passed → 2 red in `packageLessFlows-11553`; the strip returns null → 2 red (`noTopBar`, `desktopHint`); the pick goes to the bare package path → 1 red (`noTopBar`). **Half 1** - `StudioTopLeft-37456.test.tsx` (new, 11 cases): the two rows and their order; naming by the app; the lock on a read-only package and its control (writable: no lock); the list folds a pair and checks the open package; pick opens a package; re-picking the open one does nothing; a declined leave keeps the page; search and its empty state; New package (authors only) opens the create dialog and then the created package; the package-less scope; the rail; the fallback with and without a page title row. - Re-pointed, not weakened: `homeLoop-12513` now asserts the way back is the first button of the package row and the toggle sits in Studio's row; `rightSlot-12725` waits for the assistant inside the list's title row (the fallback holds it while the list loads); the `PackageFormDialog.newAppStep-36748` door census adds the switcher's New package door. - `ui/e2e/studio-left-menu-36899.spec.ts`: re-pointed, not loosened. The collapsed case pinned the column off the canvas; the amendment's rail replaces that, so it now asserts a 3rem rail at the left edge with the content beside it, and still asserts the collapse cookie and the reload. - Ablations (each restored, `git diff HEAD` empty): the lock condition forced false, the lock case red; the fallback's `drawn` forced false, the fallback case red. <details><summary>Readings</summary> - Half 2 at 748026a: studio-design, i18n, `__tests__`, StudioRoute, DraftChangesPanel and newAppStep suites, `Test Files 314 passed`, `Tests 2843 passed`; app-shell `tsconfig.test.json` 0 errors; eslint 0 errors; derived gates 39/39 exit 0 (`vitest run scripts/` at 2 workers). - Half 1: `StudioTopLeft-37456`, `homeLoop-12513`, `rightSlot-12725`, `PackageFormDialog.newAppStep-36748`, the studio-design and i18n suites: 16 test files, all passed. At the head: `StudioTopLeft-37456` `Tests 11 passed (11)`. - `@object-ui/app-shell` sources and `tsconfig.test.json`: 0 errors; full workspace build (docs excluded) 123/123 tasks green. - Derived gate families (`dispatch-gates.mjs --commands`, 39): 37 exit 0 in the batch run; `check:test-source-alias` was red on the new suite (a clocked first load of `@objectstack/lint` through the create dialog) and is fixed by a module-top import, now OK; `vitest run scripts/` was killed by the container's memory limit in the batch and passes alone at 2 workers: `Test Files 172 passed | 2 skipped (174)`. </details> ## Acceptance notes - **A gap in ADR-0084's homes table: ~org Changes / Publish.** The table sends Changes + Publish to 概览's Pending tab, but the package-less organization-flows scope (~org) has no 概览 (`studioMenuOverviewEntry` returns null there), so deleting the bar would have left its drafts with no way to publish. Per the area's call, ~org keeps a "Changes · N" row in the left column (`StudioScopePendingRow`, within the `StudioTopLeft` files) that opens the existing sheet and its existing `doPublish`; nothing new on the server. Pinned by `StudioTopLeft-37456` + `packageLessFlows-11553` with an ablation, and shot light/dark. S3: the table gains this row in docs/adr follow-up objectstack-ai#37685. - **N5:** the read-only reason for keyboard and assistive-tech users is follow-up objectstack-ai#37687. N1–N4 are accepted as they are. - **Leftover i18n keys** (`engine.studio.app.*`, `backToApp`, `publish`, `publishTitle`) are now unreferenced; some were already dead before this card. Left in place for a sweep, not removed here. - **Follow-up objectstack-ai#37580:** the list page's New on a read-only package as disabled-with-tooltip (`ResourceListPage.tsx`, outside this card's surface). - **Studio's name** reads the existing `engine.studio.mark` key. objectstack-ai#37566 renamed it to App Studio / 应用搭建 through objectstack-ai#37581, and `StudioTopLeft-37456` pins the exact name (`/^App Studio$/`). - **The ~org scope's name in the switcher** is 「组织元数据」 / "Organization metadata" (a new key, `engine.studio.pkg.orgScope`, en and zh), because that scope's menu lists more than flows. The maintainer asked for this in the card thread on 2026-11-26. The menu row keeps 「组织级流程」. - **Main was merged three times**, each time because of a conflict that blocked CI or landing (objectstack-ai#37581, objectstack-ai#37542, objectstack-ai#37637, then objectstack-ai#37602). Main's incoming test assertions are kept wherever they still hold without the bar. Only the assertions that pinned the bar itself were dropped: the `studio-back` text and accessible name, `studio-back-app-name`, the bar's `studio-mark`, and the settle on the bar's Create app button. Two auto-merged objectstack-ai#37542 pins that anchored on `studio-shell-header` are re-pointed, not loosened (`graphite-37455` via `studio-top-left`, `pillarsClaimSlot-12725`). - `ui/e2e/studio-left-menu-36899.spec.ts` is **re-pointed, not loosened** (see Tests). - `ui/e2e/live/studio-customize-journey.spec.ts` is **re-pointed, not loosened**. Its `publishPair` clicked the deleted top bar's Publish. It now opens the menu's 概览 badge, publishes the pair in the embedded `draft-changes-panel`, and still asserts that the pair's `publish-drafts` POST answers 200 with `published`. The full live lane passed 23/23 locally. - Screenshots (Chromium, dsf 2, light and dark, showcase app): no top bar, switcher open, rail, 概览 Pending, ~org Changes, phone strip and drawer; with the area beside mockups 1 and 3 (`shots-37456/final/`). ## Verification Read first, by risk: 1. `StudioDesignSurface.tsx` hunks: what the header held and that each piece is either rehomed or deliberately gone (Create app); the sheet's explicit `posture="review"`; `packagePath={studioPackageOverviewPath}`. 2. `StudioScopePendingRow` and `StudioMobileStrip` in `StudioTopLeft.tsx` (the ~org gap; the phone's only door to the menu). 3. The deleted tests and the reason each claim is gone or held elsewhere (Tests, half 2). 4. `StudioPackageSwitcher.tsx`: the pick path (`beforeNavigate` before every navigation, including after create) and the list filter (kernel out, pairs folded). 5. `StudioMenu.tsx`: `collapsible="icon"` and the `RAIL_HIDDEN` classes (a missed class leaves a half-drawn control on the rail). 6. `StudioTitleRowFallback.tsx` and its mount point in `StudioDesignSurface.tsx` (it must stay after the page in document order). 7. `StudioBackButton` in `StudioBackToApp.tsx` (same target as the top bar's way back). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [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_01Utp6CYYe7UScDrgUJxx5iP --------- Co-authored-by: Claude <noreply@anthropic.com>
…ways listed in the menu (objectstack-ai#37599) <!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wg2QYE8ncGrwckXw5L9fxrXY)_ repo:objectstack#5 · os-bill · session_01Utp6CbgELiNQU6e7me1RQy Fixes objectstack-ai#37564 Clause-②: no Metadata-protocol: none Container & model: `M`, `mode:thread`, `model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: MANDATORY docs/adr/**; served at tier, read from the thread's session record)`, `effort: xhigh (reason: ADR-0084 revision plus a spec registry value, standing ADR-revision order)` ## 维护者速读 - 用户能看到什么变化:在 Studio 左侧菜单里,「数据集」从「界面」组的「高级」折叠里挪到「数据」组,紧跟在「对象」后面;「岗位」从「高级」折叠里挪到「访问」组,紧跟在「权限集」后面。两项始终显示,软件包里一个都没有也显示。 - 为什么做:属于「Studio 是开发软件包的入口」这一轮菜单整理,落实你 11 月 26 日对架构记录 ADR-0084 的裁定:数据集是图表和 AI 问数共用的语义层,归数据;数据集和岗位都是常用项。记录里的类型归组表同步改成和菜单一致。 - 出错会怎样:只影响这两类在菜单、类型目录里的位置和分组徽标,数据集本身的读写、图表、问数都不受影响,可以直接撤回。有一个对外可见的值变了:类型列表接口里数据集的归组由「界面」变成「数据」,按归组挑数据集的外部代码要跟着改。 - 要你做什么:批准并合入(改了架构记录,属于受管文件,需要 os-zhuang 和 hotlong 批准)。没有需要你裁定的问题。 ## What changes Nine files, +192 / −34 against `main` (merge base `9a65a48f`: `main` has been merged in twice, each time for a neighbour that landed; head `d2c2cb98`). This PR carries out ADR-0084's [Amendment (2026-11-26), "Placements, and what moves to Setup"](https://github.com/objectstack-ai/objectstack/blob/main/docs/adr/0084-application-builder-information-architecture.md#amendment-2026-11-26-moves) for two rows, `dataset` and `position`, and decides nothing. | Where | What changes | |---|---| | `packages/spec/src/kernel/metadata-plugin.zod.ts` | One value: the `dataset` row of `DEFAULT_METADATA_TYPE_REGISTRY` reads `domain: 'data'`; it was `'ui'`. A comment above the row says why. The row keeps its place in the block and its `loadOrder` (55). | | `ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts` | `dataset` and `position` move into the common rows, **by name**: `dataset` directly after `object`, `position` directly after `permission`. Each row carries its reason in a comment: a dataset's schema requires one object, and a position is one slot per name in the environment (ADR-0150 D7), so the rule's tests alone would sort each of them advanced. Twelve common rows, twenty advanced. | | `docs/adr/0084-application-builder-information-architecture.md` | The type-to-group table: `dataset` is row 2 of 数据 Data, tier 常用, and the five data types behind it are each one place later; its 界面 UI row is gone; `position` keeps its place and its tier reads 常用. One note under the table and one dated mark on the amendment's "not redrawn today" paragraph say the two rows are rewritten and that `datasource` and `form` still wait for their own changes. Nit N8 of the contract record on PR objectstack-ai#37470: the 2026-11-24 top note's 2026-11-26 mark now links `#amendment-2026-11-26-position`. Still 32 rows of the pinned shape, in one table. | | Four test files under `ui/packages/app-shell/src/views/studio-design/` and `packages/spec/src/kernel/metadata-plugin.test.ts` | The pins, below. | | `.changeset/37564-dataset-data-domain-common-tier.md` | `@objectstack/spec` patch, `@object-ui/app-shell` patch. | **What follows from the registry value, with no edit.** The menu, the type directory and the type page's group badge read the served `domain`, so all three show datasets under 数据 Data. `studioMenuModel.ts` and `StudioMenu.tsx` are not touched: the model reads the placement list and needs no special case. **A served value changes.** `GET /api/v1/meta/types` answers `domain: "data"` for the `dataset` entry, and the listing is ordered by domain and then by type, so the entry now sits first among the data types. Read on a live showcase backend built from this branch: `data:dataset data:field data:hook data:mapping data:object …`. Code that finds the entry by `type` sees no difference. The changeset says this in the release note. **Why `Clause-②: no` and `Metadata-protocol: none`.** No accepted set widens or narrows: the `domain` enum keeps its six values, no author writes the registry, and a `*.dataset.ts` item validates and loads as it did. No export, key or type is added, and the constant's declared type is the same. `pnpm --filter @objectstack/spec check:generated` reads "All 14 generated artifacts are up to date", so neither the API surface nor the authorable surface moved. **Not touched, as the card says.** The `datasource` row, and `form` (ADR-0159): `form` is not registered at this base, so it has no row. The `typescript-serializer.ts` entry that maps `dataset` to `['Dataset', 'ui']` is the spec subpath the schema is imported from, not the domain; the schema still lives in `ui/dataset.zod.ts`. **Read first**, by risk: 1. `packages/spec/src/kernel/metadata-plugin.zod.ts`, the one-value hunk on the `dataset` row: it changes a served value. 2. `docs/adr/0084-application-builder-information-architecture.md`, the table hunk: governed text, and the order of the 数据 Data rows is what the pin test compares to the placement list. 3. `ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts`, the two rows that move into the common block. **Two-minute verification**: after `pnpm --filter @objectstack/spec build`, run `pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts` and expect `Tests 17 passed (17)`. It reads the registry, the placement list and ADR-0084's table, and fails if any two of the three disagree. ## Tests - `packages/spec/src/kernel/metadata-plugin.test.ts`: a new case pins `dataset` under `data`, `dashboard` and `report` under `ui`, and the six-value domain set. 41 of 41. - `studioMenuPlacement.test.ts`: the literal lists (twelve common, twenty advanced), a case for the two placements by name, and a new block that reads the three groups this change touches as ADR-0084 lists them. The existing block that compares the list with the ADR's Order and Tier columns, row by row, passes against the rewritten rows. 17 of 17. - `studioMenuModel.test.ts` and `StudioMenu.test.tsx`: the served fixture gains `dataset` under `data`; the common tier, the always-listed set and the fold are pinned with both types above the fold; a new block in `StudioMenu.test.tsx` asserts that 数据 draws object then dataset, 访问 draws permission then position, neither is inside the fold, and each links to its type page on an empty package, with a control (`hook` stays in the fold). - `StudioPaletteGroups.surfaceScope-36900.test.tsx`: the command palette draws the menu's entries, so `position` now follows `permission` there and its list is read. Two expectations, test only. - The four UI files together: 92 of 92 on `c2e09545`. On the merged head `2762c831` the affected run (every test file that reads the placement list, the directory grouping or the package overview) is 85 files, 730 tests, all passed, and the spec pin is 41 of 41. After the second merge, on `d2c2cb98`: the same selection is 85 files, 747 tests, all passed (the 17 tests more are `main`'s), and the spec pin is 41 of 41. **Reverse verification**, read on `c2e09545` (neither merge changes the registry row, the placement list, or a line this PR adds to or removes from these pins), each mutation made with `scripts/ablation-replace.mjs` on a committed tree and restored to `HEAD` (blob equal to `HEAD`, `git diff HEAD` empty after each): | Mutation | Reading | |---|---| | Registry: `dataset` back to `domain: 'ui'`, spec rebuilt, `dist` read back as `ui` | spec pin: 1 failed, 40 passed. `studioMenuPlacement.test.ts`: 5 failed, 12 passed (the ADR's group against the served domain, the order inside the group, and the new group block). | | Placement list: `position` back to `advanced` | 14 failed, 78 passed, in all four UI files. | | Placement list: `dataset` back to `advanced` | 12 failed, 80 passed, in three UI files. The palette file stays green: its fixture serves no dataset. | After the registry leg the package was rebuilt from the restored source and `scripts/ablation-dist-preflight.mjs … --absent` read the marker gone from all 614 built files; both pins passed again (41 of 41, 17 of 17). ## Acceptance notes - **The card's acceptance, line by line.** The menu draws dataset under 数据 directly after 对象, and position under 访问 directly after 权限集, both outside the 高级 fold: read off a live Console on the showcase package in zh-CN, light and dark (`数据: 对象 24 · 数据集 4`, `访问: 权限集 9 · 岗位 10`; the opened fold lists 18 entries and neither of the two). The dataset page's group badge reads 数据. The pin test is green against the rewritten rows. A spec test covers the registry value. - **Screenshots.** Eight PNGs, light and dark: the dataset list with the menu, the menu alone, the menu with the fold opened, and the position list. They are in the project's shared files under `objectstack-seat5/topic-37424/cards/shots-37564/` and attached in the project thread; the relay cannot upload images to a PR. - **One test outside the two the claim named.** The affected-test run named `StudioPaletteGroups.surfaceScope-36900.test.tsx`, which pins the entries a package always lists. The area confirmed it is inside the claim's class before the edit was pushed. - **The claim was posted by the area**, not by this thread (comment 7193675575 on the card). The dispatch order asked the thread to write it; `os-dev.md` says a dispatched executor writes no claim and no assignee, and that file wins over an order. - **Neighbours.** `main` has been merged into this branch twice, each time because a neighbour landed in a shared test file. - First, at `4e10d4bf`, after PR objectstack-ai#37546 (card objectstack-ai#37454) landed at 16:13Z. One conflict, in `StudioMenu.test.tsx`: `main` asserts that the overview row leads the menu, and this branch's list of common types holds `dataset` and `position`; both are kept. - Second, at `9a65a48f`, after PR objectstack-ai#37602 (card objectstack-ai#37565) landed and the merge queue removed this PR at 19:13Z for a merge conflict. One conflict, in `studioMenuModel.test.ts`, on two adjacent lines of one test: `main` builds the environment's menu with the Setup directory, and this branch's comment on the next line no longer calls `position` an advanced type. `main`'s call and this branch's comment are kept. `StudioMenu.test.tsx` and the palette test merged without a conflict. - PR objectstack-ai#37422 shares the registry file; `overlap-check.mjs` reads it as merging cleanly with this head. - **Contract record.** Comment 7196507657 on this PR reads PASS on `c2e09545`, and the delta record 7198537944 reads PASS on `2762c831`, each with no must-fix and no should-fix. Nit N1 is closed (the mark on the "not redrawn today" paragraph opens with its date); N2 stays as the accepted deviation the record names. Since the delta record, the lines this PR adds and removes against its merge base are byte-identical in all nine files (`git diff 4e10d4b 2762c83` against `git diff 9a65a48 d2c2cb9`, per file, added and removed lines only): the second merge changed only what `main` brought. - **Tier H by path.** `docs/adr/**` (AGENTS.md Prime Directive objectstack-ai#14): approvers os-zhuang and hotlong, and the maintainer merges. The PR stays a draft. The `Rule-change` line is left out, as the template asks for a diff that does not touch `.claude/**`. - **No docs page is owed.** No page under `content/docs/`, no skill and no README places `dataset` in a Studio group or describes the menu's tiers. The Docs Drift Check lists three pages that name `DEFAULT_METADATA_TYPE_REGISTRY` (`concepts/metadata-lifecycle.mdx`, `plugins/adding-a-metadata-type.mdx`, `protocol/objectui/concept.mdx`); each was re-read, and none states `dataset`'s domain. ## Verification - Head `d2c2cb98`: six commits on the branch, of which two are merges of `main` (at `4e10d4bf` and at `9a65a48f`) and one dates the mark. No message names a card. - Gate list derived on `d2c2cb98`: `node scripts/pm/dispatch-gates.mjs --commands` prints 98 commands, line for line the 98 derived on the two earlier heads. - All 98 exited 0 on `d2c2cb98`, each exit code captured before any pipe, after `pnpm install --frozen-lockfile` and a full rebuild of the merged tree (123 of 123 tasks, none cached). `--ran` reconciliation: `98 derived famil(ies) accounted for — 98 run, 0 NOT-MEASURED`. - The same list was 98 of 98 on `2762c831` (after the first merge) and on `c2e09545`. Two reds of the very first pass were the container, not the diff, and each passed when run again alone: `check-plugin-teardown-shape.mjs --self-test` needs a pinned fixture commit that a shallow clone lacks; `pnpm --dir ui exec vitest run scripts/` was killed by the container's memory limit while another test run shared the box. - Tests on `d2c2cb98` under the verify lock: spec pin 41 of 41; affected UI run 85 files, 747 tests, all passed. On `2762c831`: 85 files, 730 tests, all passed. On `c2e09545`: 82 files, 664 tests; 662 passed on the first run and the 2 that failed were the palette expectations above, fixed in that head. - Type checks were run locally on `c2e09545` (`pnpm --filter @objectstack/spec run typecheck`, `pnpm --filter @object-ui/app-shell run type-check`, `eslint` on the seven changed source and test files, `pnpm --dir ui run check:new-line-citations`: each exit 0). They were not run again locally on either merged head; the type-check lanes are this PR's check-runs. The three reverse verifications were not run again either, for the reason given above them. - `overlap-check.mjs` on `d2c2cb98`: clean against `origin/main` `1dbf19a1` and the one open PR head that shares a file. - `dispatch-gates --tier`: `docs/adr/**` is the mandatory contract tier; changed lines 226 against the human-merge threshold 3000: under. - `check-prior-rulings --paths` on the ADR, the registry file and the placement list (read on `c2e09545`; neither merge changed the ADR): the 2026-11-24, 2026-11-25 and 2026-11-26 amendments of ADR-0084 are the rulings in force; this PR changes no decision of any of them. - CI was green on `c2e09545` and on `2762c831` (72 check-runs: 60 success, 12 skipped, none failed). CI on `d2c2cb98` is this PR's check-runs; the third report on the card cites them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy <!-- signed: repo:objectstack#5 · os-bill · session_01Utp6CbgELiNQU6e7me1RQy --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Bill · project thread
Fixes #37565
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
nav_access_directory("Positions and Permissions", iconkey-round) in Setup'sgroup_access_control, contributed bypackages/platform-objects/src/apps/setup-nav.contributions.ts, withrequiredPermissions: ['studio.access']. Labels in all 11 locale packs, source hashes updated.security:access-directory(/apps/setup/component/security/access-directory), registered inbuiltinComponents.tsx. It serves the directory and each environment type's list (permission,position,capability,sharing_rule,?scope=environment) by mounting the existing metadata-admin directory and list pages under the cross-package leg's host shape (no package, writable), rooted at the page. Withoutstudio.accessit renders an alert naming the capability and reads nothing./studio/~all/metadata/<type>/<name>?scope=environment, the editor the environment scope uses today, because an environment item is edited by name and may belong to no package.~allmenu entry is retired (studioMenuModel.ts, its label key and icon). The package-less menu's access rows point at the Setup page's type lists for a user holdingsetup.access; without it they keep the Studio environment-scope lists (/studio/~all/metadata/<type>?scope=environment)./studio/~all,/studio/~all/metadataand a list of one of the four types in the environment scope, including Setup's old/apps/setup/metadata/...catalog addresses, land on the Setup page in one hop for a user holdingsetup.access(inside Studio read from the set Studio's entry gate hands its pages; on Setup's old aliases from the session's capability answer, read fail-closed). Without it, the leg keeps them and a bare/studio/~all/…lands on/studio/~all/metadata. The cross-package list of any other type, and item pages, stay in Studio.studioEntryFallbackPath,newPackageDoorPath) now lands on/studio/~org/metadata/flow?source=runtimeinstead of the retired directory.~orgretires with the Phase 4 "move into package" door (Q3 ruling 7184753035), and the fallback moves with it.engine.studio.notFound.allMetadata, key unchanged) now names where it goes: "Open organization flows" / 打开「组织流程」.setupMetadataStudioPathcall sites inui/packages/app-shell/src/console/AppContent.tsxandui/apps/console/src/AppContent.tsx): a one-line re-export ofACCESS_DIRECTORY_PATH(and, in the rework,holdsSetupAccess) fromui/packages/app-shell/src/index.ts; a doc-comment-only edit inStudioEntryRedirect.tsx; one sentence each incontent/docs/permissions/authorization.mdxandcontent/docs/permissions/permission-sets.mdx, and two lines ofcontent/docs/permissions/administrator-guide.mdx(the matrix editor's path and the where-to-find table row), re-pointed at Setup → Access Control (second claim amendment); andStudioPaletteGroups.tsxdrops the retired kind's icon key and its import, which the full build refused to compile.Answer to #37424 comment 7188504633 (a)
The package's 全部类型 directory still lists
datasourcewhere the package holds one, and that tile still opens Setup → Datasources (the directory's href override). This PR does not change that; removing the menu row is #37564's job. The new Setup access directory lists only the four environment types and neverdatasource.Tests
views/setup/accessDirectory.test.ts(address model: what lands on Setup, what stays in Studio, one hop both ways) andviews/setup/AccessDirectoryPage.test.tsx(gate refusal with control, the host shape, the four lists, scope added, items/create/history open in Studio).~allnow pins the Setup page or the Studio item editor, and the retired entry is pinned absent (studioMenuModel,StudioMenu,StudioPaletteGroups.surfaceScope-36900,setupMetadataRedirect,AppContent.setupMetadataStudio-28578, consoleAppContent.legacyRedirects,AppContent.systemHubRoutes,StudioRoute.metadataArea-28561,StudioEntryRedirect,HomePage.noAgentsBuildChip-26614,StudioDesignSurface.metadataArea-28561,StudioMetadataArea.routes-28561,StudioPackageMenu-37139(its~all/overviewcase now lands on Setup, plus an item page the leg still draws),StudioDesignSurface.notFound-26708,SidebarAppMenu-36112,AppContent.emptyNavigationLanding-12079,AppContent.noAppComponentRoutes(the zero-app legacy directory alias: one hop to Setup, then the no-apps empty state that branch renders for every Setup page; ablated: identitystudioAddressAfterSetupMoveturns it red),AppContent.pseudoRouteSegments), and the live e2edeclared-sharing-rules-reach-13091lists from the Setup page.Acceptance notes
studio.accesson top of Setup's own access, with parity with the Studio gate pinned by test.studioMenuModel.tsandStudioMenu.tsxare also edited by App Studio 改版(1-3):精简版软件包概览页——菜单第一项「概览」带待发布数字,信息页签只读、待发布页签接住发布,「⋯」软件包菜单搬进页头 #37454 (PR feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546); main is merged once after it lands. Whichever of this PR and App Studio 改版(3-1):数据集归到「数据」组并放常用,岗位放常用——注册表 domain ui→data、菜单点名放置、ADR-0084 表格同步 #37564 lands second merges main.Verification
Rework round (seat L1 at
4320d105), pushed on the same branch, no rebase. Head0471b08e; CI result is reported on the PR once green.toEqual([from, to])restored in bothAppContent.systemHubRoutestables and theTO_SETUP_DIRECTORYblock ofAppContent.setupMetadataStudio-28578.studioMenuModel,StudioMenu,StudioMetadataArea.routes-28561and consoleStudioRoute.metadataArea-28561; ablating the foursetup.accessreads turns 12 cases red./apps/*/metadata…,component/metadata/directory,system/{positions,roles,permissions}) take the samesetup.accessbranch, a set never reported counting as none. Both branches and the no-answer case are pinned insetupMetadataRedirect,AppContent.setupMetadataStudio-28578, consoleAppContent.systemHubRoutesandAppContent.legacyRedirects; ablating the branch (42 cases) or reading it fail-open turns them red.?scope=environmentlists redirect, and only for a user who can open Setup).@object-ui/app-shell,@object-ui/consolegreen. Gates:check:test-source-alias,check:i18n,check:nul-bytes,check:doc-authoring,check-affected-docsgreen.Earlier round, at
4320d105: CI 61 success, 0 failed; derived gates (67 commands) green, fullpnpm buildandpnpm console:buildgreen./apps/setup/component/security/access-directoryshows the directory of the four types, with Access Control → Positions and Permissions selected in Setup's sidebar./studio/com.example.showcase/metadata: the Studio menu's Access group no longer carries the cross-package entry./studio/~all/metadata/position?scope=environment, lands on/apps/com.objectstack.setup/component/security/access-directory/position?scope=environmentand lists the 17 positions.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S