Skip to content

refactor(studio): every Studio address comes from one builder; no address changes - #36973

Merged
objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-36895-studio-path-helper
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-36895-studio-path-helper

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #36895

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 用户无感:Studio 里所有链接、跳转、AI 给出的审阅链接,地址一个字节都没变。
  • 属于「Studio 重构」专题:先把所有生成 Studio 地址的地方收到一个函数,之后每张设计器卡只改一处就能切到新地址,不会出现两条跳转规则互相跳的死循环。
  • 出错的表现是某个 Studio 链接打开到错的页面或打不开;本改动只换写法不换地址,可以直接撤回。
  • 无。

What changes

One builder for every Studio address, and every producer the card lists now calls it. Every address is byte-for-byte what it was before. Nothing redirects and no route changes.

  • Console builder (new file): ui/packages/app-shell/src/views/studio-design/studioAddress.ts. It holds studioPath, the one path builder, and on top of it studioLandingPath, studioPackagePath, studioPillarPath, studioHomePath, studioItemPath, studioPillarItemAddress, studioSurfaceQuery, the "All metadata" builders, studioChangesReviewPath and studioItemReviewPath.
    • The vocabulary also lives here: root, home pillar, ~org, ~all, metadata, interfaces, and the changes and review params. The modules that exported these before re-export them under the same names.
    • STUDIO_ITEM_PILLAR is the per-type switch. AREA_PILLAR_FOR_TYPE, which the area's pillar redirect reads, is now this same object. When a designer card deletes a type's row, every studioItemPath caller and the area redirect move together, so the two cannot loop.
  • Mapping table (new file): studioAddressTable.ts. It has three tables:
    • STUDIO_ADDRESS_FAMILIES: 13 address shapes.
    • STUDIO_ITEM_TYPES: object (with its view, action and nav qualifiers), flow, permission, and owd:overview. Each row gives today's pillar and the metadata address the type moves to.
    • STUDIO_QUERY_PARAMS: surface, view, action, nav, changes=review, review=1, package, scope=environment and new. Each row says whether the param is carried verbatim, rides as a qualifier, or is replaced.
    • Card item 3: the retired /interfaces redirect (retiredInterfacesTarget, landed by fix(studio): retire Studio's Interfaces column (objectstack#36502) #36884) now reads which params it keeps from this table (STUDIO_RETIRED_INTERFACES_KEPT_PARAMS). Its output is unchanged.
  • Three ?surface= spellings, all kept. Producers did not agree on how to write the value, and each spelling is kept as a named option (StudioSurfaceSpelling):
    • 'component' (surface=object%3Aaccount) is used by most producers.
    • 'name' (surface=object:account) is used by appStudioObjectPath.
    • 'form' (URLSearchParams, surface=object%3Aa&action=x) is used by switchedOffActionPath.
    • StudioDesignSurface writes the scope segment unencoded, and that is kept too, as segmentEncoding: 'verbatim'.
  • Server shared function, located in @objectstack/types: packages/types/src/studio-review-links.ts exports studioChangesReviewLink and studioItemReviewLink. Both server producers already depend on @objectstack/types, and neither may depend on the Console. packages/cli/src/commands/meta/register.ts and packages/runtime/src/domains/mcp-authoring.ts (reviewRoutes) now call them. The review-link text served to the AI is unchanged (pinned below).
    • I did not choose @objectstack/spec: that would add a contract-package export, and spec holds no runtime logic.
    • The module is named -links, not -routes, because check:route-envelope reads any *-routes.ts as a REST module.
  • Producers repointed (re-measured on 3f568c1 and later):
    • Card items 1–9: appRoute.ts ×3, metadataArea.ts, setupMetadataRedirect.ts ×3, CommandPalette.tsx, studioScope.ts, artifactStudioPath.ts, AiChatPage.tsx, AppNoAccessEmptyState.tsx, RecordTabsConfig.tsx, DashboardInPageEditor.tsx, BuilderLanding.tsx, studioChangesLink.ts and switchedOffActionTargets.ts.
    • Card item 10, StudioDesignSurface.tsx: only its four hand-built call sites are swapped (pair-base redirect, Access pillar open, requestSurface, pillar nav links). The edit merges cleanly with Studio 重构(P0):StudioDesignSurface.tsx 纯搬移拆文件——数据、自动化、访问三个分区各成一个模块,保留再导出 #36893's split branch (git merge-tree, exit 0).
    • Card item 11: StudioRoute.tsx and AppContent.tsx. Route patterns use STUDIO_ROOT_PATH, and the :packageId landing redirect uses STUDIO_HOME_PILLAR, the same relative data.
    • Card item 12: the two server producers.
    • Card item 13: InterfacesNavRail.tsx is gone, as stated.
    • A producer that landed on main meanwhile (feat(console): Setup gets one Packages entry, the package list's administration face; Installed Apps retires #36933) is repointed too: PackagesPage.tsx's local studioPackagePath now returns studioHomePath.
    • Producers the card missed, now repointed:
      • studioInterfacesRetired.ts
      • metadataArea.ts: studioMetadataAreaPath, studioMetadataItemPath, areaLocationRedirect
      • setupMetadataStudioPath itself
      • switchedOffActionTargets.ts: the action item path and switchedOffActionListPath
      • studioNewPackage.ts (STUDIO_NEW_PACKAGE_PATH) and PackageSwitcher.tsx (STUDIO_LANDING_PATH)
      • HomePage.tsx and useAddAppEntries.ts (bare /studio)
    • Line numbers moved from the card's (AiChatPage and DashboardInPageEditor). Three of the card's sites already called a helper (CommandPalette's ~org flow, BuilderLanding's ~org card, and RecordTabsConfig, which now calls studioItemPath).
  • New exports from @object-ui/app-shell: STUDIO_ROOT_PATH, STUDIO_HOME_PILLAR, studioLandingPath and studioPackagePath.

Why

The Studio redesign moves objects, flows and permission sets from pillar addresses to metadata addresses (/studio/PKG/metadata/TYPE/NAME). The area already redirects a pillar type back to its pillar. Redirecting the pillar address first would loop, so every producer has to share one builder before any designer card flips its type.

Tests

  • studioAddress.test.ts (new) pins each builder to literal addresses: every family, all three spellings, verbatim segments, search and hash, the area, the review links, and the repointed module builders. It also checks that the table agrees with the code (AREA_PILLAR_FOR_TYPE is STUDIO_ITEM_PILLAR, item rows, param keys, family builders, and the params kept on the /interfaces redirect).
  • studioAddress.guard.test.ts (new) is the guard. It parses every non-test source under ui/packages/PKG/src and ui/apps/APP/src and refuses two things:
    • a string or template literal starting with /studio;
    • a path composed onto STUDIO_ROOT_PATH.
    • Only studioAddress.ts (and the table's placeholder shapes) are allowed.
    • It has positive controls: the walk must reach StudioDesignSurface and the console's StudioRoute, and the matcher must fire on the builder file.
  • packages/types/src/studio-review-links.test.ts (new) pins the server's two links to literals.
  • packages/types/src/studio-review-links.callers.test.ts (new, repo project) has two parts:
    • It refuses a /studio literal in any packages/** .ts source outside the shared module, with controls: both server producers are walked, and the matcher fires twice on the allowed file.
    • It holds every review link quoted in skills/objectstack-mcp-build/evals/draft-door-procedure.json equal to studioChangesReviewLink / studioItemReviewLink for the package, type and name that link names. The file has 7 quoted links: 5 Changes links and 2 item reviews, 3 distinct values. The skill file is not edited.
    • Its radius is declared: vitest.repo-tests.json, CROSS_PACKAGE_TEST_INPUTS, and the @objectstack/types#test:repo turbo inputs. Ci.yml's crosspkg: filter already covers the skills root.
  • Existing pins of every repointed producer stay green unchanged. That is the byte-identity proof: none of their expected literals was touched.
Local runs (head fa0deb8, after merging origin/main 4f9a3f8)
  • pnpm --dir ui exec vitest run on the 171 test files that name a repointed producer, the package list, or the builder: Test Files 171 passed (171), Tests 1777 passed (1777). The full app-shell + console suite (2736 files) is CI's Test UI; it was started locally and stopped, since at two workers it did not finish in an hour.
  • @objectstack/types:
    • local, studio-review-links.test.ts: 2 passed;
    • repo, studio-review-links.callers.test.ts: 3 passed.
  • @objectstack/runtime src/domains/mcp-authoring.test.ts: 50 passed.
  • @objectstack/cli --project integration src/commands/meta/register-draft.test.ts: 10 passed. Run locally because it is the one test that pins the CLI's printed review link.
  • pnpm --filter @objectstack/types typecheck and pnpm --filter @object-ui/app-shell type-check: exit 0 on fa0deb8. @objectstack/runtime and @objectstack/cli typecheck: exit 0 on 947b96e, the pre-merge head. @object-ui/console type-check was NOT MEASURED: it needs every ui plugin's dist built, so it is left to CI's Type Check UI.
  • pnpm --dir ui exec vitest run scripts/: 172 passed, 2 skipped. pnpm --dir ui check:new-line-citations: 0 new.

Acceptance notes

Verification

  • Read first, ranked by risk:
    1. the StudioDesignSurface.tsx hunks (four call sites, verbatim segment);
    2. metadataArea.ts (the area's redirect now reads STUDIO_ITEM_PILLAR);
    3. studioAddress.ts studioSurfaceQuery (the three spellings).
  • Two-minute check: pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioAddress.test.ts packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts. Expect 2 files and all tests passing. Then add any literal beginning with /studio to a ui source and watch the guard name the file and line.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (spec untouched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (CI)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU

…ope audit does not read it as a REST module (#36895)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…, calls the builder (#36895)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…udio-path-helper

StudioDesignSurface.tsx import block: main (#36956) dropped the draftVerdict
import and this branch dropped the nav-selection import; both deletions kept.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/cli, @objectstack/runtime, @objectstack/types, touching 5 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/types/src/index.ts, packages/types/vitest.repo-tests.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

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

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

Which tree this was computed on

This run read content/docs from 0337f4eecbc66d3ff8c1fbb67b55969227b8c98a — the merge of head b6e22ef09384a52025c3fc5ba525102121bcef68 into base 4c4a677721d33e3d48637647466042aa3b15b5b0, which is what actions/checkout gives a pull_request run. Not the PR head.

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

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0337f4eecbc66d3ff8c1fbb67b55969227b8c98a && git checkout 0337f4eecbc66d3ff8c1fbb67b55969227b8c98a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4c4a677721d33e3d48637647466042aa3b15b5b0 b6e22ef09384a52025c3fc5ba525102121bcef68 && git checkout -B drift-repro 4c4a677721d33e3d48637647466042aa3b15b5b0 && git merge --no-ff b6e22ef09384a52025c3fc5ba525102121bcef68

node scripts/docs-audit/affected-docs.mjs --json 4c4a677721d33e3d48637647466042aa3b15b5b0

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

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

… guard spares Route path patterns (#36895)

A route pattern declares what the console serves and builds no link. The
console route table is read as source text by the onSuccess navigate-host
pin, whose control reads every top-level path="/..." literal; spelling the
pattern through STUDIO_ROOT_PATH took 'studio' out of that table.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
@objectstack-fleet

objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

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

席位核对 — REWORK · repo:objectstack#3 · head 2a9f6e9 · 2026-11-24T13:55Z

L1: REWORK
Head-sha: 2a9f6e98648235287f6517a979fd4309d517e60a
Reviewer: L1-b (3) (seat 3, epic #36890 PRs; area ux-A).
Tier: not Tier H. This is card #36895's only PR: 37 files, +1347/−143 (1,490 lines, under the 3,000-line per-card line). check-governed-merges --pr 36973: 0 of 37 paths governed.

Read

Checklist

  • Shape. Draft, base main, first line Fixes #36895. The single PR delivers items 1–3, so Fixes is right.
  • Scope. Card items 1–12 are repointed. Item 13 left with fix(studio): retire Studio's Interfaces column (objectstack#36502) #36884. The extra producers the report names (studioInterfacesRetired, the metadataArea builders, studioNewPackage, PackageSwitcher, HomePage, useAddAppEntries, PackagesPage) are the same defect class and inside the claim's "every producer" surface. StudioDesignSurface.tsx has call-site swaps only, made after the GO. skills/** is untouched, as the claim requires. The CI wiring in turbo.json and scripts/cross-package-test-inputs.mjs exists so the types callers test's input set includes the eval file it reads.
  • Byte identity. I checked each swap against the builder in studioAddress.ts:
    • studioPath writes /studio, then the segment (encodeURIComponent unless verbatim), the section, the rest, the query, the search and the hash. That is the old concatenation order.
    • The three ?surface= spellings each match their old producer:
      • component = encodeURIComponent(formatSurfaceParam(..)): CommandPalette, artifactStudioPath, RecordTabsConfig, the pillar links.
      • name = type: plus the encoded name: the appStudioObjectPath bridge.
      • form = URLSearchParams: switchedOffActionPath.
    • verbatim is kept where the old code wrote scopeSegment or ~org raw.
    • artifactStudioPath: studioItemPath sends object and flow to their pillars and dashboard, page, view and app to the area page, as before. permission is not in its switch, so the Access mapping cannot leak in.
    • setupMetadataRedirect keeps the area's item page for every type on purpose (studioMetadataItemAddress, not studioItemPath, which would send a pillar type to its pillar), with a comment.
    • The literal pins in studioAddress.test.ts and studio-review-links.test.ts hold the old outputs.
  • Item 2, the mapping table. studioAddressTable.ts lists 13 families, the surface types (object, flow, permission, owd:overview), the three spellings, and the kept params (changes, review, package, scope, nav, view, action). Each entry has its future metadata address. Met.
  • Item 3, one table for the /interfaces redirect. KEPT_PARAMS reads STUDIO_RETIRED_INTERFACES_KEPT_PARAMS, which is still exactly changes. Met.
  • Acceptance: the repo has no hand-built Studio address, and a guard pins it.
    • Under ui/, an AST guard refuses /studio-prefixed literals and composition onto the root constant. A <Route path> string initializer is spared, with controls.
    • Under packages/, studio-review-links.callers.test.ts scans packages/**/*.ts and holds all 7 eval literals equal to studioChangesReviewLink / studioItemReviewLink.
    • The skills literals stay literal by claim and are pinned to the builder. Met.
  • Server. os meta register and the MCP reviewRoutes print the same text through the two new @objectstack/types functions. @objectstack/types has no ui dependency.
  • Changeset. @objectstack/types, @objectstack/runtime, @objectstack/cli, @object-ui/app-shell and @object-ui/console patch, Metadata-protocol: none. I read it sentence by sentence and it matches the diff, apart from the declaration line (S1).

Answers to ux-A's three questions

  1. Yes, the new exports need the arm (S1 below).
  2. The overlap with Studio 重构(1-3):去掉顶部分区,换成可折叠的左侧分组菜单(数据、界面、自动化、平台、访问、AI),右侧是列表和全屏详情 #36899 is handled correctly as written. Whichever of the two lands second resolves the conflicts as stated: take Studio 重构(1-3):去掉顶部分区,换成可折叠的左侧分组菜单(数据、界面、自动化、平台、访问、AI),右侧是列表和全屏详情 #36899's nav deletion in StudioDesignSurface.tsx and keep both imports in metadataArea.ts. It must also repoint studioMetadataArea-composed paths and the /studio/ prefix literal in studioMenuModel.ts onto studioAddress.ts, or this guard goes red on main. I will check this when feat(studio): a collapsible left menu of six groups replaces the top pillar nav #36985 comes to me.
  3. Gates. The 4 families not measured locally (check:dual-build-cjs-loads, check:i18n, check:i18n-coverage, check:i18n-walk-parity) exited 3 on a missing prerequisite, and the report declares them. CI's check-runs are the evidence for them. Test Core (9/10) was still pending at this read, so the delta read takes the full set green on the new head.

Findings

No must-fix.

  • S1 (should-fix): the declaration should be Clause-②: yes (widening), not no. @objectstack/types is published (no private), and its entry gains two exports through export * from './studio-review-links.js': studioChangesReviewLink and studioItemReviewLink. That adds to a published package's public surface. The fleet's precedent for a new public member of a published package is yes (widening) (.changeset/36011-restore-factory-view.md, and fix(plugin-approvals): the no-approver decide refusal and a multi-slot submitter notice read in the reader's language #36846 on this seat). The new @object-ui/app-shell exports do not count, because that package is private: true. Fix: change the line in the PR body and in .changeset/36895-studio-address-builder.md to Clause-②: yes (widening), and keep Metadata-protocol: none and patch. The yes then owes a TIER_DEFAULT contract review, which I will run on the new head. That change is in prose only.
  • N1 (nit). studioPath drops an empty segment (studioHomePath('') gives /studio). The old concatenation gave /studio//data. Every caller I read guards a missing package first, so no address changes in practice. If the builder ever meets an empty segment, a doc line or an assertion would make this explicit.
  • N2 (nit). The guard reads literals only. A path composed onto a builder's output (`${studioPackagePath(p)}/x`) passes it. None exists today, but the designer cards' reviews should watch for one.
  • N3 (nit). The claim named "the five literals" in the eval file, and the file has 7 (5 changes, 2 item review). The guard covers all 7, and the report says so.

Delta read owed: L1 on the new head plus a TIER_DEFAULT L2 (S1). A push that changes only the PR body and the changeset keeps everything else in this read.

…segment is dropped (#36895)

@objectstack/types is published and its entry gains studioChangesReviewLink
and studioItemReviewLink, a widening of its public surface. Metadata-protocol
stays none, so the bumps stay patch. Doc only in studioAddress.ts.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head 2fec7fb · 2026-11-24T14:02Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 2fec7fb8d95df575a9c39560b89a78efd457abd7
Local-runs: none

This is the declaration face. The review is owed by the Clause-②: yes (widening) line alone. record-recognisers --template --paths over the PR's 37 committed paths finds no published schema, no governed path and no narrowing. Claim 7133760397.

Inputs read:

  • Card Studio 重构(1-4a):所有产生 Studio 地址的地方改成调用同一个函数(行为不变,为逐类型切换新地址做准备) #36895, claim 7127323340 and amendment 7133793684. readClause2Line on the amendment gives declared · yes · widening.
  • Dev report 7132003021 and the round-2 and round-3 deltas 7132795527 and 7133713245.
  • The PR body (lines 5–6: Clause-②: yes (widening), Metadata-protocol: none).
  • The net diff origin/main...2fec7fb8. git diff 2a9f6e98 2fec7fb8 touches only the changeset (the declaration line) and one doc paragraph in studioAddress.ts, so every code file is byte-identical to the head L1 read in 7133576403.
  • Check-runs on 2fec7fb8, read at this record: 15 success, 12 expected skip, 41 in progress, 0 failed. Round 2's head 2a9f6e98 had the same code and was all green. Full green on this head is a landing check, not part of this verdict.

Nothing was built, run or re-run.

① Derived judgments

  • J1, @objectstack/types public surface. The package is published: no private, files: [dist, …], and an exports["."] entry from dist/index. Its src/index.ts adds export * from './studio-review-links.js', so two new functions are reachable from the entry type graph:

    • studioChangesReviewLink(packageId), which returns /studio/<enc pkg>/data?changes=review;
    • studioItemReviewLink(packageId, type, name), which returns /studio/<enc pkg>/metadata/<enc type>/<enc name>?review=1.

    Both are additive. Nothing is removed or renamed, and no existing signature changes. This is a widening of the public surface, declared that way.

  • J2, the server outputs are unchanged. os meta register's draft line (draftSaveLines) and the MCP authoring tools' reviewRoutes (changes, item) now call J1's functions. Their bodies are the old template literals verbatim: encodeURIComponent on each segment, in the same order and with the same query. The existing pins that quote the old literals are not in the diff and are green on the round-2 head: packages/runtime/src/domains/mcp-authoring.test.ts and packages/cli/src/commands/meta/register-draft.test.ts. The text an AI is handed, and that a CLI user reads, is byte-identical. No wire, tool schema or error code moves.

  • J3, the skill's evals. The 7 links quoted in skills/objectstack-mcp-build/evals/draft-door-procedure.json (5 Changes, 2 item review) are read, not edited. studio-review-links.callers.test.ts holds each one equal to J1's output, so a later address move cannot leave the skill teaching a stale link silently. skills/** is not in the diff, so the rules face is not touched.

  • J4, the ui side. @object-ui/app-shell gains exports (STUDIO_ROOT_PATH, STUDIO_HOME_PILLAR, studioLandingPath, studioPackagePath). That package is private: true, so these are not a published surface and add nothing to J1. @object-ui/console is an app. The ui swaps are byte-identical, as L1 read them.

  • J5, Metadata-protocol: none. Nothing an author writes moves: no spec key, value or metadata type.

② Semver level

  • The Clause-②: yes (widening) line now reads the same on all three carriers: the changeset body, PR body line 5, and claim amendment 7133793684. That matches J1 and the precedent for a new public member of a published package (.changeset/36011-restore-factory-view.md; fix(plugin-approvals): the no-approver decide refusal and a multi-slot submitter notice read in the reader's language #36846).
  • patch on @objectstack/types, @objectstack/runtime and @objectstack/cli is right: a non-protocol widening with Metadata-protocol: none ships patch (AGENTS.md, Post-Task Checklist step 3). Not breaking, so no ADR-0087 disposition is owed. runtime and cli changed source with no user-visible effect, and naming them in the changeset is correct.
  • F1 (nit). The changeset's "Server" bullet says the two functions are "new in @objectstack/types". It does not say these are its first Studio-address exports, and that the Console builds the same two addresses in its own builder (studioChangesReviewPath / studioItemReviewPath). The source doc comment says so. This is prose only, with no contract effect.

③ Boundary flags

F1 has no effect on correctness or the contract, so this is the final round.

Implemented-by: claude/issue-36895-studio-path-helper
Reviewed-by: session_01WGufzhjqviExWpzQMm57Mt

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — ACCEPT · repo:objectstack#3 · head 2fec7fb · 2026-11-24T14:37Z

L1: ACCEPT
Head-sha: 2fec7fb8d95df575a9c39560b89a78efd457abd7
Reviewer: L1-b (3). This is the delta read on REWORK 7133576403 at 2a9f6e98.
Contract review: TIER_DEFAULT PASS 7133872199 on this head (claim 7133760397). It is final, with nits only.
Tier: not Tier H. 1,494 lines, the card's only PR. Not governed (0 of 37 paths).

Delta read

  • git diff 2a9f6e98 2fec7fb8 touches two files, +5/−1:

    • the changeset's declaration line, Clause-②: no changed to Clause-②: yes (widening);
    • one doc paragraph on studioPath dropping an empty segment (N1).

    No code moved, so round 1's checklist stands as read.

  • Check-runs on 2fec7fb8: 60 success, 12 expected skip, 0 failed, 0 pending; mergeable clean.

Findings

  • S1: closed. Clause-②: yes (widening) now reads the same on all three carriers:

    • the changeset;
    • PR body line 5;
    • claim amendment 7133793684, line-initial (readClause2Line gives declared · yes · widening).

    Metadata-protocol: none and patch are unchanged.

  • N1: closed. It is now documented on studioPath.

  • N2 and N3 stand as nits. Neither needs a change.

  • The L2 nit F1 (the changeset's server bullet could name the Console's twin builders) is prose only.

No must-fix and no should-fix remain open. ux-A lands it on full green. Landing order with #36985 (#36899): whichever PR lands second repoints studioMenuModel.ts onto studioAddress.ts.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-24T14:38Z · ACCEPT 7134683237 at head 2fec7fb · TIER_DEFAULT L2 PASS 7133872199 (same head)

reading value
check-governed-merges.mjs --pr 36973 NOT governed · +1351/−143 (1494 ≤ 3000); card #36895 total = this one PR (per-card rule of 2026-11-24 08:28Z)
landing-k.mjs --pr 36973 OK · K = 3 < 15 · no new locale pack under a label PR · no shared book moved under this PR's
checks at 2fec7fb 60 success, 12 expected skip, 0 failed or pending; mergeable clean

Open findings: nits only (L1 N2: the guard reads literals only, so a path composed onto a builder's output passes it, and designer-card reviews watch for one; N3: the eval file holds 7 links, not the claim's five, and all 7 are pinned; L2 F1: the changeset's server bullet could name the Console's twin builders). Landing order with #36985 (#36899): whichever lands second reconciles StudioDesignSurface.tsx (take #36899's nav deletion) and metadataArea.ts (keep both imports), and repoints studioMenuModel.ts's /studio/ literal and its studioMetadataAreaPath compositions onto studioAddress.ts. State: ready + auto-merge (Tier S). On MERGED, #36895 closes by Fixes; area ux-A removes pm:dispatched.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 14:39
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 24, 2026
…udio-path-helper

HomePage.tsx: main (#36989) added the catalogServesBuild import beside this
branch's studioLandingPath import; both kept. useAddAppEntries.ts: main's
buildServed condition kept, its '/studio' target written as studioLandingPath()
(byte-identical).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head b6e22ef · 2026-11-24T15:12Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: b6e22ef09384a52025c3fc5ba525102121bcef68
Local-runs: none

This is a delta round on record 7133872199 (head 2fec7fb8, PASS), and it is still the declaration face. Claim 7135653014.

Inputs read:

Nothing was built, run or re-run.

① Derived judgments

  • J1–J5 of 7133872199 stand. The published surface is unchanged: @objectstack/types still adds exactly studioChangesReviewLink and studioItemReviewLink. The server's review-link text and the private app-shell exports are also unchanged.
  • The merge resolutions touch only private @object-ui/app-shell call sites, and they keep the same addresses.

② Semver level

  • Clause-②: yes (widening) and Metadata-protocol: none are unchanged on the changeset, the PR body and claim amendment 7133793684. patch stands.

③ Boundary flags

No finding. Landing waits for full green on this head; that is a landing check, not part of this verdict.

Implemented-by: claude/issue-36895-studio-path-helper
Reviewed-by: session_01WGufzhjqviExWpzQMm57Mt

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — ACCEPT · repo:objectstack#3 · head b6e22ef · 2026-11-24T15:14Z

L1: ACCEPT
Head-sha: b6e22ef09384a52025c3fc5ba525102121bcef68
Reviewer: L1-b (3). This is the merge-round read on ACCEPT 7134683237 at 2fec7fb8.
Contract review: TIER_DEFAULT PASS 7135676769 on this head (claim 7135653014).

Merge-round read

  • b6e22ef0 merges main 4c4a6777 into 2fec7fb8, with no rebase and no force-push.
  • git diff 4c4a6777 b6e22ef0 has the same changed lines as the ACCEPTed net diff: 37 files, +1351/−143, identical as multisets. The merge carries no change of the PR's own.
  • The two conflict resolutions against fix(console): show the AI-build entries only where the catalog serves build; old build threads still open #36989 are right:
    • HomePage.tsx keeps both imports.
    • useAddAppEntries.ts keeps main's buildServed condition and writes its target as studioLandingPath(), which gives the same bytes as '/studio'.
  • The merged tree has no new hand-built /studio literal outside the builder: comments and the spared <Route path> only.

Every round-1 and round-3 finding stays as recorded. Landing still requires full green on b6e22ef0 (28 success, 27 in progress, 0 failed at this read).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Re-landing · 2026-11-24T15:38Z · merge-round ACCEPT 7135695234 at head b6e22ef · TIER_DEFAULT L2 PASS 7135676769 (same head)

The queue dropped the previous landing (7134722281) with MERGE_CONFLICT against #36989. The round-4 merge of main 4c4a677 resolved it (delta 7135603814), and the net diff is unchanged (37 files, +1351/−143).

reading value
check-governed-merges.mjs --pr 36973 NOT governed · 0 of 37 paths · 1494 ≤ 3000; card #36895 total = this one PR
landing-k.mjs --pr 36973 OK · K = 2 < 15 · no new locale pack under a label PR · no shared book moved under this PR's
checks at b6e22ef 58 success, 10 expected skip, 0 failed or pending; mergeable clean

Open findings: nits only, as recorded in 7134722281. Landing order with #36985 (#36899) is unchanged: whichever lands second repoints studioMenuModel.ts onto studioAddress.ts. State: ready + auto-merge (Tier S). On MERGED, #36895 closes by Fixes; area ux-A removes pm:dispatched.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 9c57bd2 Nov 24, 2026
68 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36895-studio-path-helper branch November 24, 2026 16:17
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 重构(1-4a):所有产生 Studio 地址的地方改成调用同一个函数(行为不变,为逐类型切换新地址做准备)

2 participants