You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
App Studio 改版(3-2):「全部软件包」目录 ~all 搬到设置的访问分组,Studio 不再有这个入口 #37565
Filing gate: ③ · Source: docs/adr/0084 on main, #amendment-2026-11-26-moves. Question 5 was ruled: ~all goes to an access-related Setup group, not to Diagnostics (record 7187264388 on #37451). The maintainer asked at 2026-11-26 13:25Z to move phase 3 forward. Sub-issue of #37424 (phase 3).
Grade: area:ux · Feature · p2 · evidence: the Studio ~all scope (the all-packages directory) is drawn from studio-design/** and routed in the console.
Reader: area ux-37424.
Add the cross-package directory as a Setup page, in the group that holds the access pages. Pick the exact entry by reading setup-nav.contributions.ts, and name it in the PR.
Retire the Studio ~all entry. An old ~all address redirects once to the new Setup page, using the same redirect pattern as setupMetadataRedirect.ts.
The page keeps today's access rule: opening it from Setup must not widen who sees it.
Each row links to the item's editor in its own package in Studio.
Claim: card thread, area ux-37424 (dispatch order dispatch-37565.md)
Session: session_01Utp6CZhAqkgRyMYuZeZt9S
Account: os-bill
Branch: claude/project-thread-x4tuqk
Worktree: objectstack-issue-37565
Domain: domain:ui
Seat: repo:objectstack#5
Area: ux-37424
Thread session: session_01Utp6CZhAqkgRyMYuZeZt9S (card thread of the area's session session_01Utp6CbL6Nn3scsU8yvLyU4)
File surface: new files under ui/packages/app-shell/src/views/setup/ for the Setup page (AccessDirectoryPage.tsx) and its pure address model, with their tests; ui/packages/app-shell/src/services/builtinComponents.tsx (one registration); packages/platform-objects/src/apps/setup-nav.contributions.ts (one entry in group_access_control) and that package's nav label translations; Studio side kept to the minimum: studioMenuModel.ts (retire the environment entry and point the package-less menu's access rows at the Setup page), studioMenuData.ts and StudioMenu.tsx (drop the retired kind's label key and icon only), metadataArea.ts / StudioMetadataArea.tsx (the one-hop redirect), setupMetadataRedirect.ts and studioEntryPermissions.ts (callers that landed on the retired directory), ui/apps/console/src/components/StudioRoute.tsx (the bare ~all/* route only); the tests that pin ~all re-pointed; ui/e2e/live/declared-sharing-rules-reach-13091.spec.ts (re-pointed); the label strings in the i18n packs; one .changeset/*.md. ⛔ Not StudioDesignSurface.tsx (#37456, #37553). Stop on breach; explain in the report.
Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
Sequencing: studioMenuModel.ts and StudioMenu.tsx are also edited by #37454 (PR #37546); merge origin/main once after it lands.
Blocked-by: none.
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: none
Premise: holds — read at origin/main 41164656 2026-11-26T13:50Z. The Studio menu draws the environment entry (Access group, every scope) to /studio/~all/metadata, whose root is the type directory scoped to the environment catalog's four types; Setup's group_access_control has no entry for them.
Reading taken (the area may overrule it on the PR): the Setup page serves the directory and each type's environment list, re-using the metadata-admin pages, with Setup's header; an item, a create and a history still open in Studio, on the editor the environment scope uses today (/studio/~all/metadata/TYPE/NAME?scope=environment), because an environment item is edited by name and may belong to no package. ~all addresses that are the directory (the root, and a type list of the four types in the environment scope) redirect once to the Setup page; the cross-package list of any other type stays where it is. Access rule unchanged: the entry and the page both require studio.access (today's Studio entry gate) on top of Setup's own setup.access. Studio's no-package fallback, which landed on the directory, lands on the package-less scope (~org) instead, which every Studio entrant may open.
Serial constraints cleared: #37454 (PR #37546, same two Studio menu files, merge after it lands); #37456 and #37553 hold StudioDesignSurface.tsx, not touched here.
Governing text: docs/adr/0084#amendment-2026-11-26-moves on main, binding; question 5 ruled in record 7187264388 on #37451.
Claim amendment (area ux-37424) to claim 7193663065. The card thread stopped at the fence and asked. The area adds three small edits that the move itself makes necessary:
ui/packages/app-shell/src/index.ts: a one-line re-export of ACCESS_DIRECTORY_PATH, which the console's ~all route (already in the surface) imports.
ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx: a doc-comment-only edit for the ~org fallback. No code changes.
content/docs/permissions/authorization.mdx (around line 271) and content/docs/permissions/permission-sets.mdx (around line 427): reword the one sentence in each that sends readers to /studio/~all/metadata/permission?scope=environment, so it names Setup → Access control instead. No other doc edits.
Nothing else is added, and the ⛔ on StudioDesignSurface.tsx stands. The report and the PR body name all three.
{
"issue": 37565,
"status": "done",
"branch": "claude/project-thread-x4tuqk",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37602",
"session": "session_01Utp6CZhAqkgRyMYuZeZt9S",
"premise_still_valid": true,
"summary": "The environment directory (positions, capabilities, permission sets, sharing rules) is a Setup page, security:access-directory, entered from Setup > Access Control > Positions and Permissions (nav_access_directory), gated by studio.access on both the entry and the page. Studio's ~all menu entry is retired; the ~all root and the four types' environment-scope lists redirect once to Setup, while items, create and history still open in Studio's environment-scope editor. Studio's no-package fallback lands on ~org, temporarily, until the Phase 4 move-into-package door (Q3 ruling 7184753035). Surface added with the area's approval: index.ts re-export, StudioEntryRedirect.tsx doc comment, one sentence in each of two permissions docs; plus StudioPaletteGroups.tsx dropping the retired kind's icon key (a compile error the full build found).",
"tests": "24 targeted vitest files green at ab28aec7 (new views/setup/accessDirectory.test.ts 30 tests and AccessDirectoryPage.test.tsx 12 tests, plus every re-pointed ~all test). Browser: showcase booted locally, light and dark, 8 screenshots in the project's shots-37565 folder; an old ~all link lands on the Setup page in one hop.",
"gates": "dispatch-gates --commands, 67 commands: all exit 0 after build, except check-plugin-teardown-shape --self-test exit 3 (shallow clone cannot read its pinned fixture commit; environment, not the diff). check:test-source-alias exit 1 fixed (module-top lint import in the new page test), re-run exit 0. type-check app-shell (src + tests), console, i18n exit 0; pnpm build and console:build exit 0. CI check-runs pending on the PR.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "1 — mcp__github__issue_read (reads only, before this round)",
"api_writes": "0 — PR opened through the relay (pr_create, run 45842934139)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: c · reach: Setup > Access Control > Positions and Permissions shows the reused directory heading 'All Metadata Types' · evidence: shots-37565/01-*.png · dedupe words: access directory page heading",
"carrier: PR #37602 · noted, not filed"
]
}
Second claim amendment (area ux-37424) to claim 7193663065, following the first amendment. The card thread stopped at the fence again and asked. The area adds two items, both forced by retiring the ~all directory:
content/docs/permissions/administrator-guide.mdx lines ~199 and ~325: the two places that send readers to "Studio → All metadata" now read Setup → Access Control → Positions and Permissions. The set still opens in Studio's editor. Found by the docs-drift check. No other doc edits.
ui/packages/app-shell/src/views/studio-design/StudioPaletteGroups.tsx: drop the retired kind's icon key and its import. The full build fails without this. Nothing else in that file changes.
The ⛔ on StudioDesignSurface.tsx stands. The report and the PR body name both items.
Third claim amendment (area ux-37424) to claim 7193663065, for the seat's REWORK 7199695339 (S3). The area adds:
ui/packages/app-shell/src/console/AppContent.tsx and ui/apps/console/src/AppContent.tsx: only the legacy alias routes that call setupMetadataStudioPath. Each may read the fail-closed holdsSetupAccess answer (through useStudioEntryPermissions, never the fail-open usePermissions().hasCapabilities) and pass it through. That way the studioAddressAfterSetupMove step runs only for a user who holds setup.access. No other line in either file changes.
setupMetadataRedirect.ts was already in the claim. The ⛔ on StudioDesignSurface.tsx stands. Follow-up #37657 is superseded by this rework and will be closed when the PR lands.
Activity
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S
Claim: card thread, area ux-37424 (dispatch order
dispatch-37565.md)Session:
session_01Utp6CZhAqkgRyMYuZeZt9SAccount:
os-billBranch:
claude/project-thread-x4tuqkWorktree:
objectstack-issue-37565Domain:
domain:uiSeat:
repo:objectstack#5Area: ux-37424
Thread session:
session_01Utp6CZhAqkgRyMYuZeZt9S(card thread of the area's sessionsession_01Utp6CbL6Nn3scsU8yvLyU4)File surface: new files under
ui/packages/app-shell/src/views/setup/for the Setup page (AccessDirectoryPage.tsx) and its pure address model, with their tests;ui/packages/app-shell/src/services/builtinComponents.tsx(one registration);packages/platform-objects/src/apps/setup-nav.contributions.ts(one entry ingroup_access_control) and that package's nav label translations; Studio side kept to the minimum:studioMenuModel.ts(retire theenvironmententry and point the package-less menu's access rows at the Setup page),studioMenuData.tsandStudioMenu.tsx(drop the retired kind's label key and icon only),metadataArea.ts/StudioMetadataArea.tsx(the one-hop redirect),setupMetadataRedirect.tsandstudioEntryPermissions.ts(callers that landed on the retired directory),ui/apps/console/src/components/StudioRoute.tsx(the bare~all/*route only); the tests that pin~allre-pointed;ui/e2e/live/declared-sharing-rules-reach-13091.spec.ts(re-pointed); the label strings in the i18n packs; one.changeset/*.md. ⛔ NotStudioDesignSurface.tsx(#37456, #37553). Stop on breach; explain in the report.Container & model:
M,mode:thread,model: default tier (dispatch-gates --tier: no path-derived mandate),effort: highSequencing:
studioMenuModel.tsandStudioMenu.tsxare also edited by #37454 (PR #37546); merge origin/main once after it lands.Blocked-by: none.
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: none
Premise: holds — read at origin/main
411646562026-11-26T13:50Z. The Studio menu draws theenvironmententry (Access group, every scope) to/studio/~all/metadata, whose root is the type directory scoped to the environment catalog's four types; Setup'sgroup_access_controlhas no entry for them.Reading taken (the area may overrule it on the PR): the Setup page serves the directory and each type's environment list, re-using the metadata-admin pages, with Setup's header; an item, a create and a history still open in Studio, on the editor the environment scope uses today (
/studio/~all/metadata/TYPE/NAME?scope=environment), because an environment item is edited by name and may belong to no package.~alladdresses that are the directory (the root, and a type list of the four types in the environment scope) redirect once to the Setup page; the cross-package list of any other type stays where it is. Access rule unchanged: the entry and the page both requirestudio.access(today's Studio entry gate) on top of Setup's ownsetup.access. Studio's no-package fallback, which landed on the directory, lands on the package-less scope (~org) instead, which every Studio entrant may open.Serial constraints cleared: #37454 (PR #37546, same two Studio menu files, merge after it lands); #37456 and #37553 hold
StudioDesignSurface.tsx, not touched here.Governing text:
docs/adr/0084#amendment-2026-11-26-moveson main, binding; question 5 ruled in record 7187264388 on #37451.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
Claim amendment (area ux-37424) to claim 7193663065. The card thread stopped at the fence and asked. The area adds three small edits that the move itself makes necessary:
ui/packages/app-shell/src/index.ts: a one-line re-export ofACCESS_DIRECTORY_PATH, which the console's~allroute (already in the surface) imports.ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx: a doc-comment-only edit for the~orgfallback. No code changes.content/docs/permissions/authorization.mdx(around line 271) andcontent/docs/permissions/permission-sets.mdx(around line 427): reword the one sentence in each that sends readers to/studio/~all/metadata/permission?scope=environment, so it names Setup → Access control instead. No other doc edits.Nothing else is added, and the ⛔ on
StudioDesignSurface.tsxstands. The report and the PR body name all three.objectstack-fleet commentedon Nov 26, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:ui · Feature · priority:p2 ·
pm:dispatched· size S; rationale: phase 3-2 of topic #37424 (the all-packages directory~allmoves into Settings, Access group). Grade follows the parent; already dispatched.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S
os-dev-report
{ "issue": 37565, "status": "done", "branch": "claude/project-thread-x4tuqk", "pr": "https://github.com/objectstack-ai/objectstack/pull/37602", "session": "session_01Utp6CZhAqkgRyMYuZeZt9S", "premise_still_valid": true, "summary": "The environment directory (positions, capabilities, permission sets, sharing rules) is a Setup page, security:access-directory, entered from Setup > Access Control > Positions and Permissions (nav_access_directory), gated by studio.access on both the entry and the page. Studio's ~all menu entry is retired; the ~all root and the four types' environment-scope lists redirect once to Setup, while items, create and history still open in Studio's environment-scope editor. Studio's no-package fallback lands on ~org, temporarily, until the Phase 4 move-into-package door (Q3 ruling 7184753035). Surface added with the area's approval: index.ts re-export, StudioEntryRedirect.tsx doc comment, one sentence in each of two permissions docs; plus StudioPaletteGroups.tsx dropping the retired kind's icon key (a compile error the full build found).", "tests": "24 targeted vitest files green at ab28aec7 (new views/setup/accessDirectory.test.ts 30 tests and AccessDirectoryPage.test.tsx 12 tests, plus every re-pointed ~all test). Browser: showcase booted locally, light and dark, 8 screenshots in the project's shots-37565 folder; an old ~all link lands on the Setup page in one hop.", "gates": "dispatch-gates --commands, 67 commands: all exit 0 after build, except check-plugin-teardown-shape --self-test exit 3 (shallow clone cannot read its pinned fixture commit; environment, not the diff). check:test-source-alias exit 1 fixed (module-top lint import in the new page test), re-run exit 0. type-check app-shell (src + tests), console, i18n exit 0; pnpm build and console:build exit 0. CI check-runs pending on the PR.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "1 — mcp__github__issue_read (reads only, before this round)", "api_writes": "0 — PR opened through the relay (pr_create, run 45842934139)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: c · reach: Setup > Access Control > Positions and Permissions shows the reused directory heading 'All Metadata Types' · evidence: shots-37565/01-*.png · dedupe words: access directory page heading", "carrier: PR #37602 · noted, not filed" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
Second claim amendment (area ux-37424) to claim 7193663065, following the first amendment. The card thread stopped at the fence again and asked. The area adds two items, both forced by retiring the
~alldirectory:content/docs/permissions/administrator-guide.mdxlines ~199 and ~325: the two places that send readers to "Studio → All metadata" now read Setup → Access Control → Positions and Permissions. The set still opens in Studio's editor. Found by the docs-drift check. No other doc edits.ui/packages/app-shell/src/views/studio-design/StudioPaletteGroups.tsx: drop the retired kind's icon key and its import. The full build fails without this. Nothing else in that file changes.The ⛔ on
StudioDesignSurface.tsxstands. The report and the PR body name both items.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
Third claim amendment (area ux-37424) to claim 7193663065, for the seat's REWORK 7199695339 (S3). The area adds:
ui/packages/app-shell/src/console/AppContent.tsxandui/apps/console/src/AppContent.tsx: only the legacy alias routes that callsetupMetadataStudioPath. Each may read the fail-closedholdsSetupAccessanswer (throughuseStudioEntryPermissions, never the fail-openusePermissions().hasCapabilities) and pass it through. That way thestudioAddressAfterSetupMovestep runs only for a user who holdssetup.access. No other line in either file changes.setupMetadataRedirect.tswas already in the claim. The ⛔ onStudioDesignSurface.tsxstands. Follow-up #37657 is superseded by this rework and will be closed when the PR lands.