Skip to content

fix(studio): every retired pillar address lands on its new page in one redirect; the pillar-era code with no reader goes - #37383

Merged
objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/issue-36909-studio-pillar-dead-code
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/issue-36909-studio-pillar-dead-code

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #36909

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:Studio 的旧地址(以前的「数据 / 自动化 / 权限 / 界面」分区链接、收藏夹、AI 给过的链接、服务器发的草稿审阅链接)都还能打开原来要看的页面,而且一次就跳到位;清理本身用户无感。
  • 为什么做:Studio 重构专题的收尾——分区已经被左侧菜单和全屏设计器取代,这一单删掉分区留下的、已经没人读的代码。
  • 出错会怎样:如果哪条旧地址漏了,打开它会落到「页面不存在」或错误的列表页;这是纯前端改动,撤回这个 PR 即可恢复。
  • 要你做什么:无。

What changes

No Studio pillar draws a page any more. This PR makes the route, not the builder, answer every retired pillar address, and deletes what the redesign left with no reader.

1. One redirect table, mounted on the route (studioPillarRedirectModel.ts, StudioPillarRedirect.tsx, StudioRoute.tsx).
/studio/PACKAGE and /studio/PACKAGE/:tab now render StudioPillarRedirect. A retired pillar address redirects once; any other segment renders the builder (the sharing overview owd, or the not-found state).

old address lands on
/studio/PACKAGE, /studio/PACKAGE/data /studio/PACKAGE/metadata/object?package=PACKAGE
/data?surface=object:NAME (all three spellings, ?action= kept) /studio/PACKAGE/metadata/object/NAME?package=PACKAGE
/data?changes=review (the server's studioChangesReviewLink) /studio/PACKAGE/metadata/object?changes=review&package=PACKAGE
/automations[?surface=flow:NAME] the flow list, or /metadata/flow/NAME?package=PACKAGE
/access[?surface=permission:NAME / owd:overview] the permission set list, the set's matrix (its holder read, as before), or /owd
/interfaces[?…] the object list, with the "interface editing moved" notice
/studio/~org and every /studio/~org/… /studio/~org/metadata/flow[/NAME]?source=runtime

A base's .custom pair keeps each pillar's old rule (Data and Automations in the pair's area; Access and Interfaces on the base).

2. One hop (carry item from 7157423170). Every target in the area is put where the area would put it (settledAreaAddress, built on a new studioAddressParts parser in studioAddress.ts), so the area never redirects a second time. Before: /data took two redirects, bare /studio/PACKAGE three, /studio/~org two. The publish toast's "Open Access" now opens the package's permission sets, and the Changes sheet's link to a permission set opens that set's page, directly instead of through the old Access address.

3. Removed, with every reader gone (all in @object-ui/app-shell, private: true, last published 18.2.0 — nothing published narrows):

  • AREA_PILLAR_FOR_TYPE, areaItemPillarPath, studioPillarItemPath (metadataArea.ts); StudioMetadataArea's pillar redirect branch.
  • STUDIO_ITEM_PILLAR (empty since Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903), studioItemPillar, studioPillarItemAddress, studioSurfaceQuery, StudioItemOptions.spelling (studioAddress.ts). studioItemPath now always returns the metadata address.
  • STUDIO_ORG_SCOPE_PILLAR (studioAddress.ts, its studioScope.ts re-export and the package entry). Kept only as data where a redirect needs it: the literal 'automations' inside the redirect table.
  • STUDIO_HOME_PILLAR from the package entry (the console no longer reads it). It stays inside app-shell: studioHomePath / studioChangesReviewPath mirror the server's /data?changes=review link, which this card may not change.
  • The ?surface= mirror half and the capture half with it (useSurfaceDeepLink, useSurfaceDeepLinkCapture, useSurfaceDeepLinkMirror, parseSurfaceTarget, resolveSurfaceDeepLink) and their test file. useSurfaceActionDeepLink and the qualifier keys stay (the object designer and the redirects read them).
  • The channel's subscriber half: useRequestedSurface, SurfaceRequest and the requested state (carry item: no reader since feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168). useSurfaceNavigator + SurfaceDeepLinkProvider stay: the Changes sheet's security block uses them.
  • In StudioDesignSurface: the in-surface Data / Automations / Interfaces redirects, PILLARS, the Access landing branch, PILLAR_FOR_SURFACE_TYPE, and the pillar re-entry counter whose value nothing read.
  • studioMenuModel.ts needed only the sharing overview's section, not a pillar map: PILLAR_TYPE went; the menu marks nothing current on a retired address (it never draws one).

4. studio.app.ts: no change needed. All 15 metadata:resource / metadata:directory entries were walked through the console's real path (/apps/studio/metadata/TYPE?package=PACKAGE → setupMetadataStudioPath): each lands on /studio/PACKAGE/metadata/TYPE?package=PACKAGE (or ~all with no package), a settled area address, none on a pillar. Reading in Verification.

5. Card item 3 (engine.studio.pillar.*) was already gone on main (the claim's Premise). This diff removes no translation call site; ui/scripts/check-i18n-dead-keys.mjs exits 0.

Tests

Pins (each ablated, below):

  • Table — studioPillarRedirectModel.test.ts walks 22 old addresses (every package pillar, bare package, a .custom pair, every ~org address, the three ?surface= spellings) to their literal targets, plus the Access mapping; studioAddress.test.ts holds every STUDIO_ITEM_TYPES row's redirectsTo equal to what the table returns for each spelling. Route-level: StudioRoute.metadataArea-28561.test.tsx walks 14 old addresses through the real studioRoutes and the real redirect.
  • /data single hop — the old /data address reaches the object list in one redirect (the area's areaLocationRedirect answers null for the target); route-level, the location probe records exactly [old, new].
  • CONTROL — /owd, /owd?object=…, area addresses and an unknown segment are not redirected (pure and route-level: the probe records [url] only).
  • Changes sheet → permission set — StudioDesignSurface.heldDataCreate-26845.test.tsx (last describe): the sheet's request for a permission set lands on /studio/PACKAGE/metadata/permission/NAME on a writable base, and on the .custom pair's address on a read-only base with a pair. Narrowing requestSurface back to objects alone turns both red (Tests 2 failed | 3 passed).

Updated: 38 app-shell surface tests now mount the console's route shape (StudioPillarRedirect around the builder on :tab); the console route tests expect the new landings; the publish toast test expects the permission set list.

Acceptance notes

Not filed (dead code / drift, no defect class); carrier: none.

  • Client producers still write old addresses that now cost one redirect: studioHomePath callers (command palette, app no-access state, AI chat page, appRoute, PackagesPage, PackageCustomizationsPanel) and setupMetadataRedirect's packagedAutomationStudioPath / packagedActionsStudioPath (two hops for those legacy Setup bookmarks). Left alone: two of those files belong to an in-flight branch, and the address they write still works.
  • The copilot's surface context (StudioAiCopilot) still reads :tab and ?surface= as its pillar context (cloud#1610 contract); on current pages it reads the area path instead.
  • The surface keeps its ~org non-area fallback and its pair→base redirect for owd/unknown segments; the route no longer reaches the first.

Finding for the seat (class a, user-visible misleading text), not fixed here: the not-found state at /studio/PACKAGE/bogus_pillar says "pick Data, Automations, Interfaces, Access or All metadata above" (engine.studio.notFound.pillar, en and zh) — none of those exist any more.

First read (by risk)

  1. ui/packages/app-shell/src/views/studio-design/studioPillarRedirectModel.ts — the table; the .custom pair rules and the ~org catch-all.
  2. ui/apps/console/src/components/StudioRoute.tsx — the two routes that now render the redirect, and the lazy boundary it rides.
  3. ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx — the removed in-surface redirects and the requestSurface permission branch.

Verification

Two-minute check: open /studio/com.example.showcase/data?changes=review in the Console (OS_PORT=3000 pnpm dev, Console on :5180). Expected: the address bar shows /studio/com.example.showcase/metadata/object?changes=review&package=com.example.showcase, the Objects list is open, and the Changes drawer is open over it.

All readings below are on tree 26ec30e1 (the rebased head), byte-identical to the pushed head 2322b402 (git diff --quiet between them exits 0; see Process notes).

Type-check
  • pnpm --filter @object-ui/app-shell type-check (both programs, tsconfig.json and tsconfig.test.json): VERDICT command-exit 0, 0 error TS.
  • pnpm --filter @object-ui/console type-check: VERDICT command-exit 0, 0 error TS (run on the pre-rebase head 3a7bc226; the rebase brought no console change).
Tests
  • Full app-shell suite, pre-rebase head 3a7bc226 + the guard fix: Test Files 1 failed | 2429 passed | 1 skipped (2431), Tests 1 failed | 23308 passed. The one failure was studioAddress.guard.test.ts (my parse prefix spelled the Studio root outside studioAddress.ts); fixed by studioAddressParts, then that guard passes.
  • Rebased head 26ec30e1: vitest run packages/app-shell/src/views/studio-design packages/app-shell/src/views/metadata-admin packages/app-shell/src/console apps/console/src/components → Test Files 1442 passed (1442), Tests 14059 passed | 1 skipped.
  • Pins: studioPillarRedirectModel.test.ts + StudioRoute.metadataArea-28561.test.tsx → 64 tests pass.
Ablations (one per pin; each via `scripts/ablation-replace.mjs`, anchor hit x1, mutation landed on disk, restored to HEAD blob `85ed9932ab4b`, `git diff HEAD` empty after)
  • Table — the Automations case maps through dataPillarRedirect instead: red, exactly the Automations rows — 4 in studioPillarRedirectModel.test.ts and 2 route-level ones.
  • /data single hop — settledAreaAddress(...) dropped from the Data case: Tests 14 failed | 50 passed (64), the one-hop pin the old /data address reaches the object list in one redirect among them, and every route-level /data and bare-package row (the probe saw a second hop).
  • CONTROL — the default: arm redirects to the object list instead of null: Tests 8 failed | 56 passed (64): all pure and route-level CONTROL cases, plus the /access?surface=owd:overview row (its /owd target then redirects again).
  • Restored leg: both files plus a scratch walk of studio.app.ts → Test Files 3 passed, Tests 66 passed.
`studio.app.ts` walk (scratch test, not committed)

Each metadata:resource / metadata:directory entry through /apps/studio/metadata/TYPE?package=PACKAGE → setupMetadataStudioPath, then areaLocationRedirect on the result: 15 of 15 land on /studio/PACKAGE/metadata/TYPE?package=PACKAGE (directory: /studio/PACKAGE/metadata?package=PACKAGE), section metadata, settled (no second redirect). With no package: 15 of 15 on /studio/~all/metadata/TYPE, settled. Types: object, app, view, page, dashboard, report, dataset, action, hook, flow, agent, tool, skill, email_template.

Gates

Process notes

  • One push (3a7bc226) went out before I re-ran the three pre-push gates; I ran them on that head right after (all exit 0).
  • The final rebase could not be pushed: the permission classifier refused the --force-with-lease. I did not retry it. Instead the branch keeps its pushed history, merges origin/main (1691563a) and replays the two later commits; the resulting tree is byte-identical to the rebased, tested tree.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head 377ca896d63c319ba1a22d6c484be0268c69ac6f · 2026-11-26T03:25Z

PR #37383 (Fixes #36909), dev report 7179500392, merge addendum 7180856694, head finalized by the zone at 2026-11-26T02:41Z (7181041223). Read against GitHub and a throwaway worktree at head, not against the report.

The redirect table is right and well pinned: every retired pillar address lands on a live page in one hop, its query and deep-link meaning kept, and 9 of my 11 ablations go red. Three should-fix items stand between it and a landing. All three are small and sit in files the PR already touches.

  • Landing: not yet. It is Tier S once accepted: not governed (check-governed-merges --pr 37383: 0 of 68 paths) and 1,976 changed lines, under 3,000. K = 6, below 15, no main commit touches its files, and merge-tree is clean, so it needs no main merge for the rework round. Back to the dev for S1–S3; the re-review is a delta read of those three.

Should-fix

  • S1 — studioSamePageSearch is left with no reader. This PR removed its one production reader, the pillar re-entry effect in StudioDesignSurface.tsx (base a89a0123, line 1310). At head it is still exported (ui/packages/app-shell/src/views/studio-design/studioPaletteModel.ts:177-180), and only its own test case reads it (studioPaletteModel-36900.test.ts:222-225, "the re-entry's query matches the router's…", which pins the retired remount). I swept every export in the PR's touched source files for a non-test reader: this is the only one that went from 1 at base to 0 at head. The card's item 5 removes "不再被引用的分区外壳代码和测试", and this seat's carry 7157423170 set the bar: "A hook nobody reads should not stay." Fix: delete the function, its import at studioPaletteModel-36900.test.ts:29 and that it block.
  • S2 — The changeset says something false about the toast. .changeset/36909-studio-pillar-addresses.md:19 says: "The "Open Access" button on a publish toast and the Changes sheet's link to a permission set open the set's page directly." The toast names no set. It opens the package's permission set list: StudioDesignSurface.tsx:911 → /studio/<package>/metadata/permission?package=<package>, and the pin at StudioDesignSurface.publishCount-11807.test.tsx:340 expects exactly that. The sentence ships in @object-ui/console's published CHANGELOG. The PR body's §2 (line 32) says the same. Fix: e.g. "The "Open Access" button on a publish toast opens the package's permission sets, and the Changes sheet's link to a permission set opens that set's page, directly."
  • S3 — The Changes sheet's new permission-set navigation has no pin. StudioDesignSurface.tsx:1197 widens requestSurface from object to object || permission, which is the second half of the changeset sentence above. Ablation A11 narrows it back to object alone, and nothing goes red: the 50 touched test files stay green (438 tests). Over the whole studio-design and preview suites (332 files, 2,600 tests) the one red was heldFlowLeave-26705's menu-departure case at 4.4 s under load. It is unrelated: that file goes 12/12 green alone with the mutation still in place, and 12/12 twice at head. The object branch is pinned next door, in StudioDesignSurface.heldDataCreate-26845.test.tsx (a stand-in sheet asks the host for an object) and the flow branch in heldFlowCreate-26845. Fix: one case of the same shape for { type: 'permission', name }, asserting /studio/<draftScope>/metadata/permission/<name> on a writable base and on a read-only base with a pair.

Checklist

  • Shape (l1-face.mjs --pr 37383). CLEAN, 13 items read, none flagged.

    • Open, draft, base main, first line Fixes #36909.
    • No closing keyword binds any other card, and none is in the body read by eye.
    • One changeset covers the published package touched, @object-ui/console. @object-ui/app-shell is private: true.
    • No release-notes path, no +0/-0 file, dogfood not owed.
    • 13 skips, all expected.
  • Redirects, address by address. These were read in studioPillarRedirectModel.ts, StudioPillarRedirect.tsx and StudioRoute.tsx:308-325, and cross-checked against studioAddressTable.ts and studioAddress.ts at head.

    Retired address Lands on (at head) Kept Before
    /studio/P (bare) /studio/P/metadata/object?package=P query (the old <Navigate to="data"> dropped it) 3 hops
    /studio/P/data[?surface=object:N] the object list, or /metadata/object/N?package=P ?action=, ?changes=review; ?view= and ?nav= dropped (as Studio 重构(3-2):对象设计器在元数据地址上右侧全屏打开,页签按 #36513 排序,去掉对象左侧列表,对象类型切到新地址 #36904) 2 hops
    /studio/P/automations[?surface=flow:N] the flow list, or /metadata/flow/N?package=P other params; view and nav dropped (as Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903) 2 hops
    /studio/P/access[?surface=…] AccessPillarLanding → the set list, the set (holder read), or /owd other params through the surface
    /studio/P/interfaces[?…] the object list, plus the retired notice state STUDIO_RETIRED_INTERFACES_KEPT_PARAMS only 3 hops
    /studio/~org and /studio/~org/<x> /studio/~org/metadata/flow[/N]?source=runtime ~org/automations keeps the flow; the rest drop the query, as the base surface's fallback did (base StudioDesignSurface.tsx:1640) 2 hops
    • The .custom pair rules match base. Data and Automations ran before the base's pairBase check, so they land in the pair's own area. Interfaces and Access landed on the base.
    • owd, unknown segments, ~all and an empty segment return null, so the route draws the builder. The pair→base redirect for those is kept (StudioDesignSurface.tsx:238).
    • Router state rides along (target.state ?? location.state), the same as base's landingState.
    • The redirect sits inside StudioRoute's gate (child of the /studio element), so no ungated path opens.
    • settledAreaAddress applies areaLocationRedirect once. The pin every target in the table, and every Access target, is where the area would put it holds that each target settles to itself.
  • Item types. Every row of STUDIO_ITEM_TYPES now carries a required redirectsTo. studioAddress.test.ts holds each row equal to the table for every spelling, and ablations A1 and A2 turn it red.

  • studio.app.ts (card item 4). I read it; I did not run the dev's scratch walk. All 15 metadata:resource / metadata:directory entries pass params.package: '{active_package}'. setupMetadataStudioPath → areaLocationRedirect('~all', TYPE, '?package=P') → /studio/P/metadata/TYPE?package=P, which is settled because package === segment. None of them is a pillar address, so no change is owed.

  • Dead code, git grep at head. These have 0 readers anywhere outside *.md: AREA_PILLAR_FOR_TYPE, studioItemPillar, studioPillarItemAddress, studioSurfaceQuery, STUDIO_ORG_SCOPE_PILLAR, useSurfaceDeepLinkCapture, useSurfaceDeepLinkMirror, parseSurfaceTarget, resolveSurfaceDeepLink, PILLAR_FOR_SURFACE_TYPE, PILLAR_TYPE and pillarEntry.

    • The remaining hits are prose or unrelated. areaItemPillarPath and STUDIO_ITEM_PILLAR appear only in comments (N2) and in historical docs/qa change notes. useRequestedSurface appears only in two comments that record its removal. SurfaceRequest* is the kept SurfaceRequestHandler type. PILLARS is a test-local const in readOnlyPosture-12453.
    • pillarEntry was write-only at base (declared at base :1297 and never read), as the body says.
    • The one export this PR orphans is S1.
  • i18n. The diff touches no file under ui/packages/i18n and removes no 'engine.…' call site.

    • check-i18n-dead-keys.mjs reports the same 536 candidates (123 confirmed) on the base and head trees. Its candidate lists are byte-identical; only the walked-file count differs, 2454 → 2456.
    • released-keys-removed.mjs --tag @object-ui/i18n@18.6.0 --json (18.6.0 is the newest tag) gives the same 80-key groups at --ref base and head.
    • engine.studio.pillar.* has 0 keys at base, so card item 3 was already done, as the claim's Premise says.
  • Tests.

    • The removed cases cover only removed code: studioSurfaceQuery, studioPillarItemAddress, the STUDIO_ITEM_PILLAR agreement checks, resolveSurfaceDeepLink, parseSurfaceTarget, the mount-time capture, and the channel's subscriber half (delivery, request stamping, veto publishing nothing).
    • The kept qualifier keys and useSurfaceActionDeepLink still have readers.
    • In 38 surface tests the only change is the StudioPillarRedirect wrapper (2–5 lines each).
    • ui/e2e and packages/qa name no retired address and mount no bare surface on :tab.
    • docs/qa still names /data, /automations, /access and /interfaces addresses in 47 places. All of them predate this PR and still land through the redirect (N4).
  • Declarations. readClause2Line and readMetadataProtocolLine (scripts/pm/clause2-line.mjs at head) were run on three texts: the newest Claim: on Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项) #36909 (7175606427), the PR body and the changeset. All three read declared · no · arm null and declared · none, so they match. Clause-②: no holds: app-shell is private and its removed exports were never published past 18.2.0. patch matches Metadata-protocol: none.

  • Pins at head. In the worktree, the dev's pins (studioPillarRedirectModel.test.ts and StudioRoute.metadataArea-28561.test.tsx) give Test Files 2 passed (2) · Tests 64 passed (64), the dev's count. All 50 touched test files give Test Files 50 passed (50) · Tests 438 passed (438).

  • Ablations. I wrote 11 of my own, separate from the dev's three, each through scripts/ablation-replace.mjs in wrap mode. Every anchor hit x1, every mutation landed (blob changed), and every restore read blob == HEAD with an empty git diff HEAD. git diff --stat HEAD was empty after the run.

    Ablation Red
    A1: the automations row removed from the table 9 of 148: every Automations row, pure and route-level, plus the redirectsTo agreement and the coverage pin
    A2: the Data case drops its query 9 of 148: every ?surface=, ?changes=review and ?package= row on /data
    A3: the route element hands the table no query 4 of 148: the route-level query rows, ~org included
    A4: bare :packageId back to the pre-PR <Navigate to={STUDIO_HOME_PILLAR}> (as "data") 1 of 60: /studio/P … in one redirect
    A5: ~org back to the pre-PR <Navigate to={STUDIO_ORG_SCOPE_PILLAR}> (as "automations") 1 of 60: /studio/~org … in one redirect
    A6: the Interfaces target not settled 10 of 148
    A7: a pair's Interfaces lands on the pair, not the base 2 of 148: pure and route-level
    A8: the ~org catch-all dropped 3 of 148: ~org/access, /interfaces, /owd
    A9: the Interfaces notice state not written 6 of 68: the whole interfacesRetired-36502 file
    A10: the toast's "Open Access" target not settled none (11 of 11 green): the pin reads the final location, which the area settles anyway (N3)
    A11: the Changes sheet's permission request narrowed back to objects none: 50 touched files / 438 tests green. Over studio-design and preview, 1 of 2,600 red, a load flake (heldFlowLeave-26705, 12/12 green alone under the mutation) (S3)
  • Check-runs at head (REST). 51 runs: 38 success, 13 skipped, 0 failed, 0 pending, and no commit status.

    • These are all success: Lint & Repo Gates, TypeScript Type Check, Test Core, Lint UI, Type Check UI, Test UI and its 9 shards, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, PR-body guards, and Type Check · debt ledger.
    • The skips are matrix placeholders, opt-in jobs and queue-only jobs, and l1-face reads all 13 as expected.
  • Merge-tree and K. git merge-tree --write-tree against origin/main ecbe854bda8559069fb228eed1a1564000d2f259 exits 0 (clean, tree ffa03271). K = 6, against the zone's 3 at finalize. None of the 6 touches any of the 68 files, and none adds a /studio/ literal or a bare surface mount.

  • Governed / tier. check-governed-merges.mjs --pr 37383 exits 0. It reports "0 of 68 path(s) hit the register", NOT governed, and 1,976 changed lines, at most 3,000. That is Tier S.

  • 维护者速读. It is accurate against the diff: old addresses still open, in one hop; the cleanup is invisible to users; a missed address would land on not-found; it is front-end only and reverts cleanly; 「要你做什么:无」.

Notes

  • N1 — Card item 1 says to delete the :packageId/:tab route. The PR keeps it but changes what it does: it now renders StudioPillarRedirect around the builder (StudioRoute.tsx:318-325), because owd and the not-found state still answer on it. No pillar page is reachable from it, and every retired segment redirects (A1–A9). I read this as meeting the item's intent, with the Done-when ("所有旧分区地址仍重定向到新地址") met in full.
  • N2 — Some comments still name deleted symbols. studioMenuModel.ts:22-26, in a file this PR edits, says an item a pillar designs "still opens its pillar … (areaItemPillarPath)". studioAddress.guard.test.ts:6-10 gives STUDIO_ITEM_PILLAR as the guard's rationale. Fold both into the S-round if convenient; neither blocks on its own.
  • N3 — The body's "Open Access … without the hop" one-hop half is unpinned (A10 is green). The destination is pinned, and an extra hop there would not be a retired address. This is optional.
  • N4 — docs/qa/platform-checklist still steps through /studio/PKG/data, /automations, /access and /interfaces (47 hits, the oldest from Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903 to Studio 重构(3-3):权限集矩阵在元数据地址上右侧全屏打开,组织级默认共享总览有自己的路由,权限集类型切到新地址 #36905). This PR changes none of them, and each still lands through the table. Steps that describe pillar UI ("screenshot the rail settled", "the pillar says…") were stale before this PR. That is a checklist-accuracy sweep, not this card's.
  • N5 — STUDIO_RETIRED_PILLAR_SEGMENTS is a new export read only by its coverage pin. That is acceptable as the table's declared domain.
  • N6 — The body's Verification readings sit on 26ec30e1 / 2322b402. The addendum 7180856694 re-reads on 377ca896: both type-checks are 0, and 286 files / 2,317 tests pass. Its only correction is the count, 37 → 38 wrapped surface tests. My own head readings are above.
  • N7 — Known and not re-litigated:
    • Q1 A (switching the producers that still write retired addresses, studioHomePath callers and setupMetadataRedirect's two-hop legacy bookmarks) is the next round's follow-up.
    • engine.studio.notFound.pillar (en and zh) and StudioAiCopilot's :tab / ?surface= context go to the close-out brief.

…anges sheet's permission-set link, correct the toast sentence

Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 1d782fb08103cec7877f718b845df46a313564b1 · 2026-11-26T04:54Z

PR #37383 (Fixes #36909), re-review of my REWORK 7181710790 at 377ca896, against addendum 2 (7182428610). The new head is one commit on top of 377ca896 (parent checked: 1d782fb0's only parent is 377ca896d63c319ba1a22d6c484be0268c69ac6f). I read the delta in full (6 files, +63/-26) and ran it in a throwaway worktree at head, not against the report.

S1, S2 and S3 are closed, and N2 with them. The delta does nothing else. A11 now goes red on exactly the two new cases.

No must-fix, no should-fix.

  • Landing: Tier S, and zone a4-S lands on ACCEPT. It is not governed (check-governed-merges --pr 37383: 0 of 69 paths) and has 2,063 changed lines, at most 3,000. merge-tree against the current origin/main is clean. K is now 18 (≥ 15), against 6 at my last round: main merges first, and the re-run must be green before it is queued (N1).

Rework items

  • S1 — closed. studioSamePageSearch is deleted from ui/packages/app-shell/src/views/studio-design/studioPaletteModel.ts (was :177-180; head :174 now ends studioPaletteDeparture, and the next block is the openStudioPaletteAddress docblock). Its import is gone from studioPaletteModel-36900.test.ts:23-29, and so is the it block ("the re-entry's query matches the router's…", was :222-225). pageQuery (studioPaletteModel.ts:150) keeps its reader, studioPaletteDeparture (:174). git grep -c studioSamePageSearch at head over the whole tree: no match (exit 1). studioPaletteModel-36900 at head: 14 passed (14).
  • S2 — closed. The changeset now reads (.changeset/36909-studio-pillar-addresses.md:19): "The "Open Access" button on a publish toast opens the package's permission sets, and the Changes sheet's link to a permission set opens that set's page, directly." The live PR body's §2 (line 32) now reads: "The publish toast's "Open Access" now opens the package's permission sets, and the Changes sheet's link to a permission set opens that set's page, directly instead of through the old Access address." Both match the code:
    • the toast: StudioDesignSurface.tsx:911 → settledAreaAddress(studioMetadataTypePath(scopeSegment, 'permission')), pinned at StudioDesignSurface.publishCount-11807.test.tsx:340 (/studio/<package>/metadata/permission?package=<package>);
    • the sheet: StudioDesignSurface.tsx:1197-1198 → studioItemPath(draftScope, 'permission', name), now pinned (S3);
    • "instead of through the old Access address" holds for both. At base a89a0123, the toast went to studioPillarPath(scopeSegment, 'access') (:964), and a permission request fell through to studioPillarItemAddress on the Access pillar (:1279).
    • The body also changes 37 → 38 wrapped surface tests (the addendum 7180856694's correction, my N6) and adds a Tests bullet for the new pin. Nothing else in it changed: a diff against the copy I read last round shows those three hunks only.
  • S3 — closed. StudioDesignSurface.heldDataCreate-26845.test.tsx:288-310 adds a describe with two cases. The stand-in sheet now offers { type: 'permission', name: 'acme_sales_rep' } beside the two objects (:93-97). Its button names keep the old spelling (Pending object/<name>), so the existing three cases are unchanged.
    • The writable base lands on /studio/PKG/metadata/permission/:name (:289-296). The pair's route must stay empty, and the confirm is never asked.
    • On a read-only base with a pair, it lands on /studio/PAIR/metadata/permission/:name (:298-309), and the base's route stays empty.
    • The landings are test-local routes declared ahead of the area route (:203-204), and a Landed marker that prints :name (:178-181). The case reads the item's name, not just "somewhere under permission".
    • This is the shape I asked for: both legs of draftScope. A11 is below.
  • N2 — closed. studioMenuModel.ts:23-27 no longer names areaItemPillarPath. studioAddress.guard.test.ts:6-11 no longer gives STUDIO_ITEM_PILLAR as its rationale. git grep -E "areaItemPillarPath|STUDIO_ITEM_PILLAR" -- 'ui/**' at head: 0. Both rewrites are comment-only and true at head.
  • Nothing else. git diff --stat 377ca896..1d782fb0 lists exactly these 6 files: the changeset, the three tests, and the two sources. The only non-comment source change is the S1 deletion. The commit is a fast-forward, with no main merge.

Checklist

  • Shape (l1-face.mjs --pr 37383, read 2026-11-26T04:45Z). CLEAN, 13 items read, none flagged.
    • Open, draft, base main, first line Fixes #36909, and no other card bound.
    • One changeset covers @object-ui/console.
    • Declarations are Clause-②: no · Metadata-protocol: none. Dogfood is not owed.
    • Its pr-state leg read mergeable_state as unknown on one read. pr-state.mjs --pr 37383 re-read it as clean, COMPLETE, with no reviews at head and never queued.
  • Tests at head (worktree wt2, pnpm install --frozen-lockfile, framework closure turbo build of @objectstack/{client,formula,lint,sdui-parser,spec}...: 44/44, all cache hits).
    • Delta files plus the two named ones (StudioDesignSurface.heldDataCreate-26845, studioPaletteModel-36900, studioAddress.guard, StudioDesignSurface.publishCount-11807): Test Files 4 passed (4) · Tests 33 passed (33). In heldDataCreate-26845, 5 passed (5), the two new cases by name.
    • All 51 test files the PR touches at head (50 last round, plus studioAddress.guard.test.ts): Test Files 51 passed (51) · Tests 442 passed (442), exit 0.
  • Ablation A11 (scripts/ablation-replace.mjs, wrap mode). It narrows StudioDesignSurface.tsx:1197 from (target.type === 'object' || target.type === 'permission') && draftScope !== null to (target.type === 'object') && draftScope !== null.
    • The anchor hit x1, then x1 → x0. The replacement went x0 → x1. The mutation landed: blob da3b6c68301c → 1dda6837f4bb. (The dev's spelling, without the parentheses, gave 6dadace116bf; it is the same mutation.)
    • Red now: over all 51 touched files, Test Files 1 failed | 50 passed (51) · Tests 2 failed | 440 passed (442). The two failures are exactly the two new cases in heldDataCreate-26845 ("on a writable base…" and "on a read-only base with a pair…"). Last round, the same mutation left 438/438 green.
    • Restore: the blob after restore equals HEAD's da3b6c68301c. git diff HEAD and git status --porcelain were both empty afterwards.
  • Check-runs at head (REST, commits/1d782fb0…/check-runs). 55 runs: 40 success, 15 skipped, 0 failed, 0 pending. No commit status (state: pending, total_count: 0).
    • The required contexts are all green or skipped. Branch protection names TypeScript Type Check, Build Core, Test Core and Dogfood Regression Gate. The main ruleset also names Lint & Repo Gates, Governed Surface Queue Guard, Lint UI, Build & E2E UI, Type Check UI, Test UI and Live E2E UI. Every one is success except Build Core, which is skipped (the PR fast set). l1-face and pr-state read all 15 skips as expected, 0 unexpected.
    • Other success runs: Test UI shards 1–9 and their planner, Check Changeset, PR-body guards, Type Check · debt ledger, and the Lint / Type Check sub-gates.
  • Merge-tree and K. git merge-tree --write-tree of origin/main 5d21d431ec1949d420d419bbbb9a6519ac52d276 and the head exits 0, clean, tree c870591b.
    • K = 18, counted first-parent from the merge base a89a0123 (it was 6 at ecbe854b last round). landing-k.mjs --pr 37383 CAN'T ANSWER: the last green Test Core run (45751739267) ran no shard or planner, so no Affected-set diff base was printed. 18 is the merge-base count, not a PRBASE reading.
    • One main commit touches a PR file: ab913233 (feat(studio): a dashboard list's New opens the app's design mode on its dashboards #37368, dashboard New → design mode) adds an AreaCreate branch in StudioMetadataArea.tsx (+11, at :326), in a different hunk. It adds no /studio/ literal, no pillar address and no bare surface mount. In the merged tree c870591b, git grep of every symbol this PR deletes finds only the kept qualifier keys and the comments recorded last round. The other 11 commits since ecbe854b touch no PR file.
  • Governed / tier. check-governed-merges.mjs --pr 37383 exits 0: "0 of 69 path(s) hit the register", NOT governed, with 2,063 changed lines (+1007 / -1056), at most 3,000. That is Tier S.
  • Declarations. readClause2Line and readMetadataProtocolLine (scripts/pm/clause2-line.mjs at head) were run on three texts: the newest Claim: on Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项) #36909 (7175606427, still the only one, byte-identical to last round's copy), the live PR body and the changeset at head. All three read declared · no · arm null and declared · none, so they match.

Notes

  • N1 — K is 18, so main merges before the queue. Per the landing rule (K ≥ 15 ⇒ merge main, then a green re-run), the landing seat merges origin/main and waits for the re-run before arming. merge-tree is clean, and the one overlap (feat(studio): a dashboard list's New opens the app's design mode on its dashboards #37368, StudioMetadataArea.tsx) is in a separate hunk. This is a landing step, not a rework item.
  • N2 — Prior notes N1 (the :tab route kept as a redirect), N3 (the toast's one-hop half unpinned, A10), N4 (the docs/qa checklist steps), N5 and N7 stand as recorded in 7181710790. None changed in this round.

Landing: Tier S · zone a4-S lands on ACCEPT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

Landing · 2026-11-26T05:41Z · head 88cdc8b5 · zone a4-S (#36909)

  • L1: seat repo:objectstack#4 REWORK 7181710790 (S1–S3), then ACCEPT 7183016224 at 1d782fb0. No contract review is owed.
    • The ACCEPT's N1 required a main merge first, because K was 18.
  • Merge round (addendum 3, 7183704414): origin/main merged into 1d782fb0 as a single merge commit, 88cdc8b5. It was textually clean, and no test needed StudioPillarRedirect wrapping.
    • Merge-only, verified by the zone: the PR's own diff against its merge base is byte-identical before (1d782fb0) and after (88cdc8b5), ignoring hunk headers. 3,712 diff lines each. Under the seat's N1 rule, the ACCEPT carries over.
  • check-governed-merges.mjs --pr 37383: NOT governed; under 3,000 changed lines.
  • Checks on 88cdc8b5, newest run of each: 38 success, 13 expected skips, 0 failed. Locally: both type-checks 0, and 286 files / 2,325 tests pass.
  • K: 5 behind main. merge-tree with origin/main is clean.
  • Clause-②: no (@object-ui/app-shell is private), Metadata-protocol: none.
  • Action: ready, then auto-merge through the merge queue.

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

Development

Successfully merging this pull request may close these issues.

Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项)

2 participants