Skip to content

feat(app-shell)!: retire Studio's package-less scope (/studio/~org), and an item of a package you can write reads New in the Studio list (#38150 PR-B2) - #38598

Merged
os-zhuang merged 11 commits into
mainfrom
claude/project-thread-2j7u8c
Nov 30, 2026
Merged

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Jianguo · project thread

Fixes #38150

This is PR-B2, the last PR of the card: the retirement of Studio's package-less scope (/studio/~org) with its redirects, the Studio list's Source classifier, and the ADR marks. PR-A1 (#38185), PR-A2 (#38389) and PR-B1 (#38545) are merged. It continues the branch claude/project-thread-kf5k6i of the seat whose account ran out (five commits, head 2a3c6e8f5b, no PR was open on it): this branch starts at that head, every commit was read, and main is merged in.

Two cards ride on this one and are named here without a closing keyword, because their threads carry no claim naming this branch: the Source-badge card #38061 (its ruling note names this PR as its carrier) and the old door's defect card #37468 (the card text gives it to PR-B). The seat finishes both at landing.

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no file under skills/**, .claude/skills/** or content/docs/** names the ~org scope, "Organization flows" or any of the nine keys (git grep at this head)

Size: 2,937 lines (1,697 added, 1,240 deleted, 82 files; git diff --shortstat origin/main...HEAD at 85939f9c, merge base 301417669). With PR-A1's 1,947, PR-A2's 1,380 and PR-B1's 3,387 the card stands at 9,651. The card total is over 3,000 and the diff edits docs/adr/**, so this PR is Tier H.

维护者速读

  • 用户能看到什么变化:Studio 左侧菜单里的「组织流程」入口没有了,旧网址仍能打开并转到跨软件包列表的「散落项」流程列表;在 App Studio 列表里,自己建的软件包里的项,来源从「系统自带」改成「新建」,筛选和上一条、下一条跟着一致。
  • 为什么做:这是 App Studio 改版专题第 4 阶段的收尾,你已裁定散落项原地保留、改用「勾选后移入软件包」来移动,旧入口随新入口上线一起下线;来源标签按你对决策稿的回答改。
  • 出错会怎样:只有打开旧网址或看这个列表的人会碰到,最坏是老书签落在列表上而不是原来的流程页,或某一行的来源标签显示不对;不动任何数据,可以整体撤回。
  • 要你做什么:这次改动带架构决定记录的标注,整张卡累计也超过 3000 行,需要你本人批准,请审批。

What changes

The scope is retired, its addresses answer. studio-design/studioOrgScopeRetired.ts is the one owner of the retired segment (RETIRED_ORG_SCOPE_SEGMENT) and of where its addresses land (retiredOrgScopeTarget): every /studio/~org/… address lands on /studio/~all/metadata/flow?source=loose, the list the Setup → Packages banner links to. The list's search (q) and sort (sort) are carried and every other query key is dropped, source=runtime included. Four places answer an old address with it: StudioDesignSurface (before anything of the surface mounts), studioPillarRedirectModel.ts (the scope's root and its old pillar deep links), metadataArea.ts (the scope's leg of the area, and a ?package=~org link on another leg), and the console's StudioRoute.tsx (two route rows that answer the segment ahead of the package routes).

What leaves with it. The menu's "Organization flows" row and its orgFlows entry kind; the area's orgScope mode; the top-left Changes row (StudioScopePendingRow) and the package-less batch publish behind it (studioSurfacePublish.ts publishes a package only now; the changes sheet is mounted on a package only); the scope prop of the package switcher; the scope helpers in studioScope.ts (studioOrgScopePath, STUDIO_ORG_SCOPE_SEGMENT, STUDIO_ORG_SCOPE_TYPE, STUDIO_ORG_SCOPE_SOURCE, isStudioOrgScope, isOrgScopeDraft), orgScopeFlowOf and orgScopeAreaRedirect. AutomationsPillar takes a package id, never null. studioScope.ts keeps what the Loose list reads: isPackageLessItem, isPackageLessDraft, and packageLessItemPath (an item of no package opens its page at /studio/~all/metadata/TYPE/NAME).

Who lands where now. A person who may enter Studio but not Setup → Packages, with no recent package, lands on the Loose list of flows (studioEntryFallbackPath, newPackageDoorPath); the "package not found" page's way out reads "Open loose flows" (「打开散落的流程」) and opens the same list. A package-less flow the app's command palette finds opens its item page. A draft of no package is published by Home's "Publish all", or published or discarded on its own page.

The Studio list's Source (the classifier, card What 7). metadata-admin/studioListSource.ts: studioSourceKind takes a third, required fact, whether the row's package is one the author can write, read from the package list's writable verdict (useWritablePackageIds, the request the other readers of that list share). Order: the customization mark, then the package verdict, then the provenance. ResourceListPage.tsx passes it to the badge, the source filter and its counts, and the badge's tooltip; useListOrderedNames.ts passes it to the detail page's previous / next order and waits for the package list only while the order is narrowed by source. Setup's list is untouched: it asks for no verdict and reads the provenance as served.

i18n (the narrowing). Nine keys leave the studio namespace of @object-ui/i18n, in en and zh: engine.studio.menu.orgFlows, engine.studio.pkg.orgScope, engine.studio.org.name, engine.studio.org.hint, engine.studio.org.description, engine.studio.org.none, engine.studio.publishedAllFlows, engine.studio.publishedAllFlowsOne, engine.studio.changes. engine.studio.notFound.allMetadata keeps its key and changes its text. @object-ui/app-shell is private; its barrel exports RETIRED_ORG_SCOPE_SEGMENT and retiredOrgScopeTarget where it exported STUDIO_ORG_SCOPE_SEGMENT and studioOrgScopePath.

ADR marks (governed, card What 9). ADR-0084: nine passages that name the scope are struck through and left legible (the "organization's own flows" row of "Entries that are not a type", the no-fold sentence, the first example of the sorting rule's third test, the second sentence of item 3 of the 2026-11-25 silent-points list, the fourth top-bar-homes row with its 2026-11-27 note, the sentence that kept the entry until the door shipped, and two items of the 2026-11-26 silent-points list), with notes dated 2026-11-29 that name the card and the ruling record (comment 7184753035, question 3); the note under "Organization-level content" says the move door shipped, where it opens from, what retired with the scope (the menu row, the scope's list, its flow page, its Changes row and the batch publish behind that row), where a flow of no package opens now, where ~org addresses land, and that the bulk adopt retired in a change of its own (#38545). ADR-0070: the status line, a pointer at TL;DR item 5, and a dated note under D5 ("move into a base" is the move-in door; the bulk assignment to a default base is superseded; rows never moved stay legal). No heading anchor changes.

Changeset and checklist. .changeset/38150-studio-org-entry-retired.md: @object-ui/app-shell, @object-ui/console and @object-ui/i18n patch, BREAKING with the nine keys, the two export renames as a FROM → TO table and the one-line fix, and the ADR-0087 not-required marker. docs/qa/platform-checklist/FOLLOW-UPS.md gains one section naming the five checklist items that still describe the retired scope.

Each removed assertion, and what pins its rule now

Renamed cases (same assertion, the target address or the words changed with the retirement) are not listed: StudioRoute.test.tsx, StudioRoute.recentPackage-11863, CommandPalette.studioScope-11863, HomePage.noAgentsBuildChip-26614, SidebarAppMenu-36112, StudioDesignSurface.notFound-26708, StudioEntryRedirect.test.tsx, studioInterfacesRetired.test.ts, studioPillarRedirectModel.test.ts, studioMenuModel.test.ts (its ~org rows leave the it.each tables; the ~all rows stay), StudioMenu.test.tsx and StudioMenu.overview-37454 (the last two drop their ~org row the same way). The others now expect /studio/~all/metadata/flow?source=loose where they expected the scope.

file removed what pins the rule now, or why it retired
studioScope.test.ts "the reserved segment cannot name a package" (the spec manifest-id rule, the sanitizer) and "is told apart from a package segment" moved with the segment to studioOrgScopeRetired.test.ts: "the retired segment stays reserved: it can name no package", the same three cases on RETIRED_ORG_SCOPE_SEGMENT and isRetiredOrgScope
studioScope.test.ts studioOrgScopePath: "lands on the scope's flow list…", "opens a flow full-screen on its address…" the builder is removed. The addresses it built are the inputs of studioOrgScopeRetired.test.ts "the old addresses, read by the redirects that answer them" (root and /automations; list, flow and flow history; a ?package=~org link). Where a package-less item opens is packageLessItemPath, pinned in two new cases of the same file
studioScope.test.ts "the scope reviews package-less FLOW drafts only" (isOrgScopeDraft) the predicate retired with the Changes row it fed; nothing reads it. isPackageLessDraft keeps its case
automationsPillarRedirect.test.ts "the package-less scope lands on its own leg, with no package and its source filter once" the scope's /automations never reaches this mapping: studioPillarRedirect answers it first. Pinned in studioPillarRedirectModel.test.ts ("the table covers every retired pillar segment, on a package and on the retired package-less scope") and studioOrgScopeRetired.test.ts
metadataArea.test.ts "orgScopeFlowOf names the package-less scope's flow…" the function is removed (the area draws no scope flow). The rewritten case beside it pins the replacement: "a flow of the retired scope lands on the list, not on the flow, and the list keeps no tab"
AutomationsPillar.newSimilar-28567 "the package-less scope draws no menu" the flow designer is a package's now (packageId is a string) and the scope draws no page; the redirect is pinned in StudioDesignSurface.packageLessFlows-11553
StudioTopLeft-37456 "~org with drafts pending: a Changes row…" and its control "none passed: no Changes row" replaced by "no scope draws a Changes row": it.each over a package and no package, expanded and as a rail
StudioDesignSurface.publishCount-11807 the four package-less publish toasts (two drafts, one draft named by label, several named in the description, none pending) the batch publish they read is removed. Replaced by "its old address, with package-less drafts pending, lands on the Loose list: no publish door, nothing sent, no toast". The package cases of the file are untouched
StudioDesignSurface.packageLessFlows-11553 the scope's own page: lists its flows, offers no create, its empty-list guidance, its page chrome replaced by "every address of the retired package-less scope lands on the Loose list of flows" (a redirect table, the kept search and sort, the list holding the clone and none of a package's flows, with a control without the filter, and an empty Loose list) and "the Loose list is the retired scope's page" (the row opens the item page; no menu row, no Changes row, no changes sheet, no page under ~org)
StudioDesignSurface.packageLessFlows-11553 "opens it editable, and an edit saves a draft bound to no package", and the "editable" half of two entries: "the measured link, through the showcase pillar: lands on the package-less scope, the clone open and editable" and "from that read-only package, a switch into the package-less scope opens it editable" the scope's flow page is retired, and the door the ruling keeps open for that save (comment 7184753035, question 2) is the clone's item page on the cross-package leg. Pinned by the new "the item page opens writable, and an edit saved there writes a draft naming no package", run over two entries, the page's own address and a read-only package's address that names the clone: the designer's add controls are drawn and Save waits only for an edit; the save is mode: 'draft' with no packageId, and the item's own publish that follows names none either. It sits in the describe "a package-less flow is edited, and its draft published or discarded, from its item page"
StudioDesignSurface.packageLessFlows-11553 "the package-less scope reviews and publishes exactly its own drafts": the Changes row count, the sheet and its filter, "publishes each package-less flow draft by reference, and nothing through the package batch door" the row, the sheet and the batch are removed. A package-less draft's two publish paths are pinned by two new cases of "a package-less flow is edited, and its draft published or discarded, from its item page" (Publish and Discard on the item page name no package) and by the unchanged usePublishAllDrafts.refusal-11922 ("records the batch's health and goes on to the package-less drafts") for Home's Publish all
StudioDesignSurface.packageLessFlows-11553 deep links: "in the package-less scope: the named flow, though another is listed first", "the measured miss: the package-less page, a link naming a packaged flow", "an empty scope lands on its list" the scope has no page to miss on. "the measured link, through the showcase pillar" now lands on the clone's item page on the cross-package leg, and "the package's own address naming the clone lands there too" is new; "a package page's miss" stays

Acceptance notes

  • Takeover. Kept as built: the five commits of claude/project-thread-kf5k6i (db6e4a61, 94ca83cb, 51d85a2c, 31121663, 2a3c6e8f), read hunk by hunk. Added here: the merge of main (c03f1772, clean, eight files auto-merged, PR-B1 among main's commits) and one comment-only commit (5fcf89b5): eleven files of the Studio surface still described the retired scope as a place a person can be (the palette surface's doc, four notes in studio-design, six test headers or titles). No behaviour changes in it.
  • Rework round 1 (L2 record 7257159073, FAIL on 5fcf89b5; L1 record 7257170665, REWORK). Three commits, no product code in them. M1, c2ffeaa7: ui/e2e/studio-left-menu-36899.spec.ts still waited for the fold's Automation group, whose one row on that package was the retired entry; the loop reads system and security, the Automation group is asserted absent, and the line names the card. S1, 90713851 and 85939f9c: the item-page case of the table above. N1 and N2, 90713851: ADR-0084's sorting rule (third test) and item 3 of the 2026-11-25 silent-points list are marked, and the note under "Organization-level content" lists the scope's flow page. N4 is left as it is: narrowing sourceNarrowed in useListOrderedNames.ts moves product code for one request and a short wait on the Loose list's previous / next, with no wrong order, and would owe the battery again; it fits the follow-up card the seat files for N3. N3 is the seat's to file. The delta contract review of 85939f9c is record 7257925349 (PASS: M1, S1, N1 and N2 closed), and the seat's record 7257936891 accepts the head.
  • File surface. All 82 changed files are inside the claimed surface. One, ui/e2e/studio-left-menu-36899.spec.ts, is admitted by claim amendment 7257086821 (one hunk). The other 81 are inside claim amendment 2 (comment 7253593955): 58 under studio-design/, 5 under metadata-admin/, the console's StudioRoute.tsx and four of its tests, CommandPalette.tsx and its ~org test, index.ts, README.md, three tests pinning ~org under console/home, layout and views/setup, the two studio catalogues, the two ADRs, the changeset, and FOLLOW-UPS.md.
  • Clause-②, measured as the amendment asks. The nine keys are in the published @object-ui/i18n@19.0.0-next.2 (dist/namespaces/studio/en.js and zh.js, each key in both files; read from the registry tarball) and in no file of the dist built at this head, where two kept keys (engine.studio.notFound.allMetadata, engine.list.source.new) are in both files. Published keys leave, so the line stands.
  • Card acceptance, PR-B under Q-f = E. "On /studio/~all/metadata/flow the authored package's flow reads 新建 and a code-shipped flow still reads 系统自带": ResourceListPage.authoredPackageSource-38150 "the authored package's flow reads New; the code-shipped flow still reads System-shipped" and "draws the Chinese words for the two". "The Studio filter and prev/next agree with the badge": the three cases under "the source filter and ‹ › agree with the badge". The ablation is below. "/studio/~org/… redirects": the redirect tables in studioOrgScopeRetired.test.ts, StudioDesignSurface.packageLessFlows-11553 and the console's StudioRoute.metadataArea-28561.
  • Premise check of What 7. No non-test source=runtime address remains: git grep for it over ui/packages, ui/apps and packages, tests and changelogs excluded, has zero hits at this head.
  • "Rechecked in PR-B". From the Setup → Packages banner a person reaches the flow's Loose list: the banner's link and every ~org address are one address, pinned by "is the Loose list of flows, the address the Setup → Packages banner links to". A package-less flow draft is published from its item page (two new cases) and from Home's Publish all (unchanged usePublishAllDrafts.refusal-11922), and an edit of a loose flow is saved in place from that page (the two-entry case). This recheck is at the test level. A console walkthrough in a browser was not run for this PR: NOT MEASURED, reason: the card asks the walkthrough of PR-A, and nothing here adds a screen.
  • Left alone, outside the claimed surface. Comments that still name the scope in preview/DraftChangesPanel.tsx (two) and three test titles beside it, in ui/packages/i18n/src/__tests__/confirmNoteSeparate-11591.test.ts, and in metadata-admin/metadataAreaHost.ts, whose emptyListHint option has no producer left while ResourceListPage.tsx still reads it. Named in the report for the seat.
  • Same-version rule. PR-B1 merged at 2026-11-29T11:44Z and is unreleased; the open Version Packages PR is chore: version packages (next) #38192. This PR has to merge before that one does. Nothing on the dev side blocks it; it waits on the reviews below.

Verification

Files to read first, by risk:

  1. ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts, with its two readers in ResourceListPage.tsx (studioKindOf, the badge tooltip) and useListOrderedNames.ts: the one behaviour change that is not a removal. The risk hunk is the order in studioSourceKind (mark, then package verdict, then provenance) and the loading wait in the previous / next order.
  2. ui/packages/app-shell/src/views/studio-design/studioOrgScopeRetired.ts and the four places that answer an old address with it (StudioDesignSurface.tsx line 130, studioPillarRedirectModel.ts, metadataArea.ts, the console's StudioRoute.tsx): what a retired address keeps and drops.
  3. docs/adr/0084-application-builder-information-architecture.md and docs/adr/0070-package-first-authoring.md: the governed text. Struck lines and dated notes only.

Two-minute check: pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioOrgScopeRetired.test.ts packages/app-shell/src/views/metadata-admin/ResourceListPage.authoredPackageSource-38150.test.tsx. Expect two files and 25 tests to pass; the second file's first describe is the classifier's truth table.

Suites and type checks (local; heads named per row)
run head result
workspace build, turbo run build without the docs app, under the verify lock c03f1772 123 tasks, 123 successful; lock VERDICT command-exit 0
714 UI test files under the lock: all of studio-design/, chrome/, views/setup/, console/home/, preview/ and packages/i18n/, every test that imports a changed module or names ResourceListPage, StudioDesignSurface, StudioMetadataArea or DraftChangesPanel, and the console's StudioRoute* tests c03f1772 Test Files 714 passed (714); Tests 7,423 passed, 13 skipped (7,436); lock VERDICT command-exit 0
the ten files the comment commit or an ablation touched, again 5fcf89b5 Test Files 10 passed (10); Tests 181 passed (181); lock VERDICT command-exit 0
type-check of @object-ui/app-shell, @object-ui/console, @object-ui/i18n (each covers its test files) 5fcf89b5 all three executed, none from cache; lock VERDICT command-exit 0
eslint on the changed files of the three packages (69, 5 and 2 files) 5fcf89b5 0 errors

The full @object-ui/app-shell suite (2,470 files) was not run: NOT MEASURED locally, reason: the dev contract keeps a card to the affected files; CI's Test UI shards run all of it. 5fcf89b5 changes comments and one test title, so the 714-file reading at c03f1772 stands for it. The rework changes one of those 714 files, run whole again at 85939f9c (the rework block below).

Ablations

Both through scripts/ablation-replace.mjs, the implementation committed first, each restored and proven (blob equals HEAD, git diff HEAD empty).

  • The classifier. Deleted if (inWritablePackage) return 'new'; from studioListSource.ts (anchor 1 → 0, blob 187ff2023a0e → cb5b1ba68bdc), then ran ResourceListPage.authoredPackageSource-38150: 9 failed, 5 passed (14). Red: the truth-table case (expected 'system' to be 'new'), the badge in en and zh, the tooltip, the two filter cases, the previous / next case, the authored package's own leg, and the control "a package the list does not name, and no package at all, read as before" (it fails in the shared settle step, which waits for the authored row to read New; its own two assertions do not read the deleted line). Green: "only a package list that was read names a writable package", the two unreadable-package-list controls, and the two Setup controls.
  • The surface's redirect guard. Deleted the isRetiredOrgScope line of StudioDesignSurface.tsx (anchor 1 → 0, blob 77a97116460c → e3360209ed14), then ran StudioDesignSurface.packageLessFlows-11553, StudioPackageOverview-37454 and StudioDesignSurface.publishCount-11807: 3 failed, 93 passed (96). Red: the redirect-table row for the scope's area address with extra query keys, "draws no menu row for the retired scope, no Changes row, no changes sheet, and no page under ~org", and "~org/overview redirects to the Loose list of flows (the surface alone: its own guard)". The other rows stay green because the pillar redirect answers them first, which is the two-door shape the tests name.
Derived gates and the lanes the derivation does not list

node scripts/pm/dispatch-gates.mjs --commands (no paths; 81 paths against merge base 301417669): 49 commands, the same 49 at c03f1772 and at 5fcf89b5. Run at 5fcf89b5, each recorded with its exit code: all 49 exit 0. --ran: "49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN". With the Playwright spec added the derivation is the same 49 (read at c2ffeaa7); what was run again after the rework is in the rework block below. The body gates among them (check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity) read this body through a local event file; check-partof-closing-keyword read it too: exit 0, and --body binds one closing declaration, the card's.

Not in the derived list, run by hand at 5fcf89b5:

  • 19 gates of CI's Type Check UI and Lint UI lanes, each pnpm --dir ui run NAME: check:i18n-keys, check:i18n-drift, check:unreferenced-sources, check:self-import, check:phantom-deps, check:esm-specifiers, check:spec-symbols, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape, check:test-path-roots, check:control-bytes, check:shell-escape-residue, docs:check-links, check:doc-fences, check:doc-types, check:handler-key-reads, check:metadata-write-doors, check:doc-example-readers: all exit 0.
  • pnpm check:changeset-fixed, pnpm check:i18n-stale-fill, pnpm check:published-readme-exports, pnpm check:pm-governed-prose, node scripts/docs-audit/check-affected-docs.mjs: exit 0. node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 2 anchors judged, 0 lost.
  • NOT MEASURED locally: check-single-claim-paths and check-closing-target-claim (both need the pull request's number). CI's PR-body guards (claim · duplicate · Part-of · single-writer path) concluded success on 5fcf89b5.
Rework round 1 (heads `c2ffeaa7`, `90713851`, `85939f9c`)
run head result
CI's red, reproduced: pnpm exec playwright test e2e/studio-left-menu-36899.spec.ts --project=chromium from ui/ 5fcf89b5 1 failed, 3 passed: studio-menu-advanced-group-automation not found at line 225, as in CI's Build & E2E UI
the same command with the fix c2ffeaa7 4 passed
StudioDesignSurface.packageLessFlows-11553.test.tsx, whole file, under the verify lock 85939f9c Test Files 1 passed (1); Tests 36 passed (36); lock VERDICT command-exit 0
type-check of @object-ui/app-shell (covers the test file) 85939f9c executed, not from cache; lock VERDICT command-exit 0
pnpm --dir ui exec vitest run scripts/ under the lock 85939f9c Test Files 172 passed, 2 skipped (174); Tests 5,159 passed, 2 skipped (5,161); lock VERDICT command-exit 0
eslint on the spec and on the test file 85939f9c 0 errors

Two ablations of the new case at 85939f9c, through scripts/ablation-replace.mjs, each restored and proven (blob equals HEAD, git diff HEAD empty); the case's two entries go red in both:

  • Writable. In ResourceEditPage.tsx, const hostReadOnly = !!areaHost?.readOnly; replaced by const hostReadOnly = !!areaHost; (anchor 1 → 0, blob fdd7af7db791 → cc814ee1e002): 2 failed, Unable to find an element by: [data-testid="resource-save"].
  • No package on the save. In the same file the save's options were given packageId: 'com.example.ablation' (anchor 1 → 0, blob fdd7af7db791 → 931a9d527629): 2 failed, expected { force: false, …(2) } to not have property "packageId".

Gates run again, each recorded with its exit code. At 90713851, the 29 that read the ADR text or test sources, all exit 0: check-adr-0087-registration, check-adr-links, check:adr-anchors, check:adr-index, check:adr-symbol-anchors, check:closed-ceremony-text, check:doc-authoring, check:pm-prior-rulings, check:pm-governed-merges, check:platform-checklist, check:nul-bytes, check-comment-mask-corpus, check:test-source-alias, check:cross-package-test-inputs, check:undeclared-dep-imports, check:skill-identifier-liveness, check:pm-governed-prose, docs-audit/check-affected-docs, check-changeset-no-major, check-empty-changeset, and from ui: check:control-bytes, check:test-path-roots, check:shell-escape-residue, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape, docs:check-links, check:doc-fences, check:doc-types. At 85939f9c, which changes the test file alone, the 12 of them that read test sources again: all exit 0. The other derived gates read nothing these commits change, so their run at 5fcf89b5 stands; they were not run again.

Dogfood battery

Full battery at the landing head 85939f9c (os-dev report 7258471243), pnpm --filter @objectstack/dogfood test under the verify lock (no shard, no path), after the workspace build at the same head (123 tasks successful, 121 of them restored from turbo's local cache): lock VERDICT command-exit 0 (held 1,888 s); Test Files 495 passed, 3 skipped (498); Tests 4,187 passed, 68 skipped (4,255); no failure.

The same battery before the rework, at 5fcf89b5 (os-dev report 7256902761): lock VERDICT command-exit 0 (held 1,828 s), the same counts. The three rework commits change a Playwright spec, one vitest file and ADR text, and no product code.

Owed before landing

  • The maintainer's approval (Tier H: docs/adr/**, the narrowing, the card total).
  • The same version as PR-B1: this PR merges before the open Version Packages PR, chore: version packages (next) #38192.
  • The two cards named at the top, finished by the seat at landing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jUba5JFq1ejCZ7Gxpk

Studio's `~org` scope (`/studio/~org/...`) listed the flows that belong to
no package. Those items are listed on the cross-package leg's "Loose"
source value now, where they are selected and moved into a package, so
the scope has no page left.

- Every address of the scope lands on the Loose list of flows,
  `/studio/~all/metadata/flow?source=loose`, keeping the list's search and
  sort. One function maps them (`retiredOrgScopeTarget`); the console's
  routes, the design surface, the pillar redirect and the area's leg
  redirect call it. The segment stays reserved.
- The left menu's organization-flows row, the scope's area mode, its
  Changes row and its flow-by-flow batch publish are removed. A draft of
  no package publishes from Home's Publish all and from its item page.
- A flow that belongs to no package opens on its item page on the
  cross-package leg; the flow designer is a package's.
- Studio's entry and the new-package doors send a principal who may not
  open Setup's Packages page to the same Loose list.
- Nine `@object-ui/i18n` studio keys that only the scope read are removed,
  and the not-found state's way out is renamed for where it leads.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5onqzpaipgzBKwyCbm
…in the Studio list

The App Studio list's Source read two facts: the row's customization mark,
then its provenance. An item of a package authored in Studio is served under
that package's id, so its provenance read `artifact` and the list drew it as
System-shipped.

The classification now reads a third fact between the two: whether the row's
package is one the author can write, which is the listed package's `writable`
verdict as the server computes it. `studioSourceKind` takes it as a required
argument, and `useWritablePackageIds` is the one reader of the package list
for it.

The three readers of the classification move together:

- the Source badge (`studioKindOf`), whose tooltip no longer explains such a
  row as shipped by a code package;
- the source filter and its counts (`sourceOf`);
- the detail's previous / next order (`useListOrderedNames`), which now also
  waits for the package list when the order is narrowed by source.

Setup's list is unchanged: it reads the provenance as served and asks for no
verdict.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5onqzpaipgzBKwyCbm
…etired with the move door

ADR-0084's amendment of 2026-11-26 ruled that Studio's package-less entry
retires when the door that moves loose items into a package ships. The door
shipped and the entry is gone, so each sentence that named the scope as live is
struck where it stands, with a dated note beside it that names the card and the
ruling record:

- the first row of "Entries that are not a type";
- the fold sentence, and items 1 and 3 of the 2026-11-26 list of points the
  rulings left silent, which named two scopes and now name one;
- the fourth row of the top bar's homes table and its note of 2026-11-27 (the
  scope's Changes row). The struck row names its file alone: the component it
  pointed at is deleted, and the symbol anchor no longer resolved;
- the entries sentence under Placements.

The ruling's own sentences under "Organization-level content" are left as
written. One dated note under them records that the door shipped, where it is
opened from, and where the scope's old addresses land.

ADR-0070 gains the mark that amendment said it was owed: a dated note under D5
that "move into a base" is the move-in door, that the bulk assignment to a
default base is superseded by the same ruling, and that a row never moved stays
legal. Its status line and TL;DR item 5 point at the note.

No decision is added or reworded, and every heading anchor is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5onqzpaipgzBKwyCbm
…o list's New reading; one QA follow-up

The changeset covers both halves of the change for the three ui packages it
moves: the retired scope with where its addresses land, the nine keys that
leave the published studio catalogue, the two renamed app-shell exports, and
the Studio list reading an item of a writable package as New.

The QA follow-up names the five checklist items whose live text still
describes the retired scope. No checklist item is edited.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5onqzpaipgzBKwyCbm
… own; the retired scope's test pays the lint import at collection

The changeset and the ADR-0084 note said the bulk adopt retires in the
same release. It retired in a change of its own, which may ship a
release earlier, so both now name that change and state what holds once
this one lands on top of it.

`studioOrgScopeRetired.test.ts` reaches the dynamic `@objectstack/lint`
import through the Loose list's module; the first load is paid at
collection, as `check:test-source-alias` asks.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5onqzpaipgzBKwyCbm
…-2j7u8c

Brings the branch up to main 3014176. Eight files auto-merged with no
textual conflict: the Studio list page, the design surface, the metadata
area, the package menu and its two pins, and the studio en/zh catalogues.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUba5JFq1ejCZ7Gxpk
…ss scope as live

Eleven files of the Studio surface still named the scope as a place a
person can be: the palette surface's doc, the flow grouping and app-edit
notes, the wide-viewport note, the retired-interfaces notice's prop doc,
and six test headers or titles. Comments and one test title only; no
behaviour changes.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUba5JFq1ejCZ7Gxpk
@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 29, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a
Contract-review-claim: session_01QsR2jQkLKMF81cpqpt8p1a · head 5fcf89b · 2026-11-29T13:58Z

Contract-tier review (rules face on the two ADR files, and the declared narrowing over every path outside the prose faces) at this head by an isolated sub-agent of seat 1's L1 thread; the record follows on this PR.

…organization's flows retired

The left-menu Playwright page still waited for the fold's Automation
group. On a package that group held one row, the organization's own
flows, which retired with the package-less scope; a group is drawn only
where it holds an entry, so the fold now draws System and Access. The
case asserts those two and that the Automation group is absent.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5fcf89b5c1c6eab9afd010c88c52c59d83a69493
Local-runs: none
Scope: docs/adr/0070-package-first-authoring.md, docs/adr/0084-application-builder-information-architecture.md + ui/apps/console/src/components/StudioRoute.tsx, ui/packages/app-shell/src/chrome/CommandPalette.tsx, ui/packages/app-shell/src/index.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts, ui/packages/app-shell/src/views/metadata-admin/useListOrderedNames.ts, ui/packages/app-shell/src/views/studio-design/AutomationsPillar.tsx, ui/packages/app-shell/src/views/studio-design/ObjectActionsPanel.tsx, ui/packages/app-shell/src/views/studio-design/StudioBackToApp.tsx, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx, ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx, ui/packages/app-shell/src/views/studio-design/StudioInterfacesRetiredNotice.tsx, ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx, ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx, ui/packages/app-shell/src/views/studio-design/StudioPackageMenu.tsx, ui/packages/app-shell/src/views/studio-design/StudioPackageSwitcher.tsx, ui/packages/app-shell/src/views/studio-design/StudioPaletteGroups.tsx, ui/packages/app-shell/src/views/studio-design/StudioSurfaceFrame.tsx, ui/packages/app-shell/src/views/studio-design/StudioSurfacePage.tsx, ui/packages/app-shell/src/views/studio-design/StudioTopLeft.tsx, ui/packages/app-shell/src/views/studio-design/automationsPillarRedirect.ts, ui/packages/app-shell/src/views/studio-design/flowGrouping.ts, ui/packages/app-shell/src/views/studio-design/metadataArea.ts, ui/packages/app-shell/src/views/studio-design/packageSurfaces.ts, ui/packages/app-shell/src/views/studio-design/studioAddress.ts, ui/packages/app-shell/src/views/studio-design/studioAddressTable.ts, ui/packages/app-shell/src/views/studio-design/studioAppEdit.ts, ui/packages/app-shell/src/views/studio-design/studioEntryPermissions.ts, ui/packages/app-shell/src/views/studio-design/studioMenuData.ts, ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts, ui/packages/app-shell/src/views/studio-design/studioOrgScopeRetired.ts, ui/packages/app-shell/src/views/studio-design/studioPillarRedirectModel.ts, ui/packages/app-shell/src/views/studio-design/studioScope.ts, ui/packages/app-shell/src/views/studio-design/studioSurfaceDrafts.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfaceNavigation.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfacePublish.ts, ui/packages/app-shell/src/views/studio-design/studioSurfaceRightSlot.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfaceScope.ts, ui/packages/app-shell/src/views/studio-design/wideViewport.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, and the 35 test files of the diff: ui/apps/console/src/components/ (4), ui/packages/app-shell/src/chrome/ (1), ui/packages/app-shell/src/console/home/tests/ (1), ui/packages/app-shell/src/layout/tests/ (1), ui/packages/app-shell/src/views/metadata-admin/ (2), ui/packages/app-shell/src/views/setup/ (1), ui/packages/app-shell/src/views/studio-design/ (25)
Security-touching: yes

Two faces meet on this head and this one record answers both: the rules face (the two ADR files) and the declared narrowing (Clause-②: no (narrowing) on the PR body and the changeset), whose floor is every path of the diff outside the prose faces. No path is a lane remainder. Not reviewed, as prose: .changeset/38150-studio-org-entry-retired.md, docs/qa/platform-checklist/FOLLOW-UPS.md, ui/packages/app-shell/README.md.

Read outside the diff to judge it, never reviewed: ui/e2e/studio-left-menu-36899.spec.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx, metadataAreaHost.ts, metadataListState.ts, ResourceEditPage.publishPackageBinding.test.tsx, ui/packages/app-shell/src/preview/usePublishAllDrafts.ts, preview/DraftChangesPanel.tsx, views/setup/LooseItemsBanner.tsx, packages/metadata-protocol/src/package-writability.ts, packages/runtime/src/domains/packages.ts, ADR-0150 D1, the tag @object-ui/i18n@19.0.0-next.2, and origin/main for every removed line.

① Derived judgments

  1. @object-ui/i18n, studio namespace (published): nine keys leave en.ts and zh.ts — engine.studio.menu.orgFlows, engine.studio.pkg.orgScope, engine.studio.org.name, .org.hint, .org.description, .org.none, .org.publishedAllFlows, .org.publishedAllFlowsOne, .org.changes. All nine are in both locales at the tag @object-ui/i18n@19.0.0-next.2, so this narrows a published accept set. Right: it is declared (title !, BREAKING banner naming the nine, Clause-②: no (narrowing)), and at this head no reader of any of the nine is left under ui/**, packages/**, content/**, skills/**, .claude/**, examples/** or docs/** outside tests and changesets.
  2. engine.studio.notFound.allMetadata keeps its key and changes its text ('Open loose flows' / '打开散落的流程'). Wording, not an accept set. Right: the link it labels now opens the Loose list.
  3. @object-ui/app-shell barrel (private: true): STUDIO_ORG_SCOPE_SEGMENT and studioOrgScopePath out, RETIRED_ORG_SCOPE_SEGMENT and retiredOrgScopeTarget in. Not a published surface; its one outside consumer, the console's StudioRoute.tsx, moves in the same diff. Right.
  4. Console address set: /studio/~org, /studio/~org/** and ?package=~org keep answering, now by a redirect to /studio/~all/metadata/flow?source=loose, q and sort kept. Checked at the four doors (StudioRoute.tsx routes ~org/* and ~org/metadata/*, which outrank :packageId/* and :packageId/metadata/*; the guard at StudioDesignSurface.tsx:130; studioPillarRedirectModel.ts; metadataArea.ts#areaLocationRedirect). The target carries no package, so nothing loops. Right. A flow's old address lands on the list, not on that flow's page: the card's spelling (What 6), stated in the changeset.
  5. The Studio list's source filter keeps its value set (all, artifact, runtime, loose) and changes what runtime and artifact hold: an item of a package the author can write reads New, whatever its provenance. Right under ruling Q-f = E (专题:App Studio 改版(Studio 是开发软件包的入口:左右两栏、软件包切换和概览页、列表页按前端样式、专用色和新名字) #37424, comment 7234518908) and the note 7253668764 on review follow-ups of PR #37949: App Studio 跨软件包列表里,自建软件包自己建的项显示成「系统自带」 #38061, and named in the changeset. Setup's list (studioList false) asks for no package list and reads as before, as What 7 requires. No non-test source=runtime address remains at this head, which was What 7's premise.
  6. StudioMenuEntryKind loses orgFlows, StudioMenuScope loses org, and a package's 高级 fold loses its 自动化 Automation group when the package holds no 高级 automation type. Internal types, a visible menu change the card asks for. Wrong as shipped: a consumer pinning that group is left behind and the head is red on it (M1 in ④).
  7. No path under packages/spec, no server route, no SDK or driver path. Metadata-protocol: none is right: nothing an author writes changes, and the server's writable verdict the classifier reads is served on main already.
  8. Governed text: ADR-0084 and ADR-0070 (docs/adr/**). Struck passages and dated notes; Tier H, a human merge, whatever this record says.
  9. Skills-docs: none holds: no hit for any removed name, key or address under skills/**, content/** or .claude/**.

② Semver level

@object-ui/i18n, @object-ui/console and @object-ui/app-shell at patch, with a BREAKING banner, the FROM/TO table for the two barrel names and the ADR-0087 marker not-required (no-migration-prescription). That is the level AGENTS.md sets for a non-protocol change, breaking or not ("ships patch and keeps its BREAKING banner and ADR-0087 disposition"), and it matches the pre-release precedent .changeset/pre/36903-flow-designer-fullscreen.md. The removed keys are UI strings, no metadata key and no conversion applies, so not-required is the right disposition. Check Changeset concluded success on this head.

Clause-②: no (narrowing) — on the PR body and on the changeset, and right: the diff removes nine published keys and retires a served scope; it widens nothing an author writes. Metadata-protocol: none is right (① 7).

③ Boundary flags

Check-runs on this head (first read 2026-11-29T13:59Z, last read 2026-11-29T14:14Z; 59 runs):

  • Build & E2E UI: failure. Step "Run the ui E2E tests": 209 passed, 1 failed on all three attempts, 1 skipped. The failure is ui/e2e/studio-left-menu-36899.spec.ts:225. This is M1 in ④.
  • Success, 46, among them: Check Changeset, Governed Surface Queue Guard, PR-body guards (claim · duplicate · Part-of · single-writer path), TypeScript Type Check, Type Check UI, the four Type Check · runs, Lint UI, Lint · ESLint, the Lint · gate families, Lint & Repo Gates, Live E2E UI, Dogfood Regression Gate, Test Core, and all sixteen Test UI shards.
  • Skipped, 11 (path-filtered or opt-in): Build Core, Build Docs, UI Published Artifacts, Queue verdict, Borrowed queue verdict, Dogfood Verify CLI, the Dogfood shard matrix, Temporal Conformance, Packed-tarball smoke, 18.x upgrade harness, Schedule gate.
  • No verdict at the last read: Test UI, the roll-up job over the sixteen shards, in progress. Every shard under it concluded success, so no test verdict is outstanding; the seat reads the roll-up before any hand-off.

Dev flags (os-dev-report 7256902761)

  • Deviation 1 (served tier and effort differ from the order) and deviation 2 (no reviewer request made): seat process, no effect on the diff. Nothing for this record.
  • Deviation 3 (the branch lacks main's five newest commits): answered. main since the merge base 30141766 touches 76 files, none of this PR's 81. No textual or semantic overlap found.
  • Deviation 4 (the 714-file read stands at c03f1772; ten files, the type checks, 49 gates and the battery ran at 5fcf89b5): the last commit is comment-only, so the reading carries. The report's battery (495 files, 4,187 tests) holds no Playwright run, which is where this head is red. The CI conclusion is the verdict, not the local battery.
  • security_findings: none: agreed for gates and capability checks; see the Security-touching note below.
  • out_of_scope_findings 1 and 2, both "carrier: none · noted, not filed": confirmed in the tree (N3 in ④). A note with no carrier is lost at merge: the seat files them or names the card that carries them.

open_questions

SQL push-down. No SQL, driver, repository or server path in the diff. The classifier joins two lists the page already fetched (GET /api/v1/packages rows and the metadata list) in the client, on the server's computed writable verdict (package-writability.ts#isWritablePackage), as What 7 prescribes; useWritablePackageIds asks once per mount and only for the Studio list. No id materialisation where SQL could push down. No finding.

Security-touching: yes is meant, narrowly. One changed hunk changes and documents where a principal lands by the capabilities held: studioEntryPermissions.ts (studioEntryFallbackPath, and newPackageDoorPath(false)) now sends a principal who may enter Studio and may create no package to the Loose list, where it sent them to /studio/~org; its comment states "No ruling gives that principal another landing", and the tests run it over capability sets. No capability check, no server permission, no sharing rule, credential or token changes anywhere in the diff, and the landing page reads only what that principal could already read on the cross-package leg. The seat adds the security label on this confirmation.

Author. objectstack-fleet[bot]; no relay note owed.

④ Design judgment

M1 (must-fix) — the diff removes the menu's orgFlows entry and leaves its layout pin behind; the head is red on it. ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts:219 is where buildStudioMenu pushed { key: 'orgFlows', … tier: 'advanced' } into the automation group; the diff drops that line. On a package serving object, flow and permission, that entry was the only 高级 row of 自动化 Automation, so the fold's studio-menu-advanced-group-automation is no longer drawn. ui/e2e/studio-left-menu-36899.spec.ts:224-225, outside the diff, still expects it visible after the fold opens: Build & E2E UI fails there on all three attempts. The unit twin was rewritten on purpose (StudioMenu.test.tsx:278-284); the Chromium page that proves the same fold was not. Fix shape: in that spec the loop reads system and security, the automation fold group is asserted absent, and the line names #38150 as rewritten on purpose. A check-run conclusion is the gate verdict: this is a FAIL on this head.

S1 (should-fix) — a removed assertion has no replacement: "a package-less flow opens editable, and an edit saves a draft bound to no package". On origin/main, StudioDesignSurface.packageLessFlows-11553.test.tsx:312 pinned it (the switch enabled, the add-node controls drawn, a save with mode: 'draft' and no packageId), with :376 and :404 pinning the same door from two other entries. At this head the file pins the redirect table (:324), the Loose list (:385), the links (:436), and Publish and Discard on the item page naming no package (:473, :486, :502). None of them pins that the item page opens writable or that an edit there saves a draft naming no package. The PR body's replacement table names the redirect and Loose-list cases for it, which pin neither. The nearest surviving pin, ResourceEditPage.publishPackageBinding.test.tsx, is a page outside the Studio area. This is the one console door left for the save the ruling keeps open (comment 7184753035, question 2: "in-place saves of existing loose rows stay open"): StudioMetadataArea.tsx:274 falls to MetadataResourceEditPage, and ResourceEditPage.tsx:1916 computes canWrite with hostReadOnly false when the host names no package. It is writable by reading the code only. It breaks AGENTS.md ("a test is deleted only when its PR names a duplicate pinning that assertion at a layer at least as close to the code") and the card's acceptance "Every removed test assertion names its replacement". Fix shape: one case in the describe at :473, rendering the clone's page on the cross-package leg and asserting that it is editable and that an edit saves a draft naming no package.

N1 (nit) — ADR-0084 :310 and :334 still describe the organization's own flows as a drawn entry (":334" also counts "the four entries that are not a type"; the model's own comment now says two). Neither line is in the card's list of eight, and the 2026-11-26 amendment left such examples unmarked. Accepted deviation or a follow-up card; it may also ride M1's commit, which the delta then covers.

N2 (nit) — ADR-0084 :485: the note's list of what retired with the scope ("the menu row, the scope's list, its 变更 Changes row and the batch publish behind that row") omits the scope's flow page, the flow designer opened on a flow of no package. The code retires it (StudioMetadataArea.tsx: AutomationsPillar mounts only with host.packageId) and only the changeset says so ("It no longer opens in the flow designer"). The approver ratifies the ADR text, so the list is better whole. May ride M1's commit.

N3 (nit) — dead option and stale comments left outside the diff. ResourceListPage.tsx:858 and :1010 still read host.emptyListHint, which no producer sets at this head (metadata-admin/metadataAreaHost.ts:61-64 still documents it as the package-less scope's); preview/DraftChangesPanel.tsx keeps two comments naming the retired scope. These are the dev's two out-of-scope findings, with no carrier. Follow-up card.

N4 (nit) — useListOrderedNames.ts:115-116: sourceNarrowed is true for source=loose too, so prev/next asks for the package list and waits on it (:168) though the Loose reader never reads it; the comment says "asked only when the order is narrowed by it". One request and a short wait, no wrong order. May ride M1's commit or be left.

The hits files

docs/adr/0084-application-builder-information-architecture.md — holds against its first consumer, the code at this head, apart from N1 and N2. All eight lines the card names (What 9) are marked: the entries-table row and its note (:234, :243), the no-fold sentence (:300), the fourth top-bar-homes row and its 2026-11-27 note (:416, :422, :424; the struck row now names StudioTopLeft.tsx alone, which is where the row was deleted), :462, :513, :515, and the note under Organization-level content (:485). That note's claims, sentence by sentence: the door is POST /api/v1/packages/:id/move-in (it is, in packages/runtime/src/domains/packages.ts); it is opened from the Loose value /studio/~all/metadata/TYPE?source=loose, linked by Setup's Packages banner (LooseItemsBanner.tsx#looseListPath); every /studio/~org/… address lands on the Loose list of flows (① 4); the bulk adopt retired under #38545, not here (true: no adopt-orphans line in this diff). The ruling's bullets are left as written and the note is dated, which is the file's own amendment form. The status line is not edited, consistent with the 2026-11-27 precedent of minor marks.

docs/adr/0070-package-first-authoring.md — holds. The status line's 2026-11-29 clause, the TL;DR pointer and the note under D5 say what the ruling says (comment 7184753035, question 3 = C): D5's "move into a base" is the move-in door, D5's bulk assignment to a default base is superseded, nothing is renamed or migrated, there is no catch-all package, and a row never moved stays legal. That last sentence agrees with ADR-0150 D1's fourth bucket (package null, the implicit environment package) and with the code: nothing in this diff or in #38545 rewrites a loose row. D1 and D6 are said to stand and nothing here touches them.

The implementing files

  • The redirect (studioOrgScopeRetired.ts and its four callers): agrees with the ADR note and What 6. Tried: ~org under a pillar, under metadata/*, with an item name, with ?package=~org on a package's own address, with q, sort and foreign parameters; each lands on the one target and drops what the target does not read. StudioRoute.tsx's two routes are both needed and both rank above the package routes.
  • The classifier (studioListSource.ts, ResourceListPage.tsx, useListOrderedNames.ts): the badge, the tooltip, the filter, its counts and prev/next read one function, so they cannot disagree. Mark first, then the writable package, then provenance: right, because an override is served under the base's id and must read Modified before the package is asked. While the package list is loading or failed, no package is named writable, and prev/next waits on loading so the order is not computed on a half-read. A package id the list does not name reads system-shipped; the new test pins that as a control. Setup's list is untouched. This is review follow-ups of PR #37949: App Studio 跨软件包列表里,自建软件包自己建的项显示成「系统自带」 #38061's defect closed as its note asks: an item of a package the author can write reads 「新建」.
  • Publish and drafts (studioSurfacePublish.ts, studioSurfaceDrafts.tsx, StudioSurfaceFrame.tsx, StudioTopLeft.tsx): the by-reference batch of the scope is gone and doPublish returns early with no package; the changes sheet mounts only on a package. A loose draft is still published or discarded from its item page and from Home's Publish, both through the unchanged usePublishAllDrafts.ts; the head's tests pin the item-page pair.
  • Menu, switcher, palette, entry (studioMenuModel.ts, StudioMenu.tsx, studioMenuData.ts, StudioPackageSwitcher.tsx, CommandPalette.tsx, studioEntryPermissions.ts, StudioEntryRedirect.tsx): no row, key or address of the retired scope is produced; the palette opens a package-less flow on packageLessItemPath. M1 is the one consumer missed.
  • studioScope.ts: the four scope names are gone with every reader; isPackageLessItem and isPackageLessDraft stay, still read.
  • The comment-only files and the 35 test files: read; the rewritten cases say "rewritten on purpose" and name the card, and apart from S1 each removed assertion has a named successor at the same layer.

The narrowing itself

It retires a surface the maintainer ruled retired, and takes no declared capability away at the consumer. The ruling (comment 7184753035, question 3 = C) keeps loose items and says "adopt-orphans and the Studio ~org entry retire at once when it ships"; the door shipped with #38545. The ruling names the entry; the card (What 6) and this diff retire the scope behind it: its menu row, its list, its Changes row, its batch publish and its flow page. That reading is now written into ADR-0084's note ("and the scope with it"), so the approver's merge of the governed text is what ratifies it, and N2 asks that the note list all of it. What a consumer could do with a loose flow is still served: list it (the Loose list, linked from Setup's Packages banner), open it and edit it in place (the item page on the cross-package leg; S1 is the missing pin, not a missing capability), publish or discard its draft (the item page, and Home), and move it into a package (the door). The flow designer no longer opens on a flow of no package; moving it into a package is the stated way to design it, which is the direction ADR-0070 D5 and the ruling set. The nine published keys leave with their only reader, declared. No address stops answering.

No must-fix is waived: M1 and S1 are OPEN on this head. Both are fixed by a new head, and that head earns a delta review, which closes them by id and covers any of N1, N2 and N4 that rode the same commit.

Implemented-by: claude/project-thread-2j7u8c
Reviewed-by: session_01QsR2jQkLKMF81cpqpt8p1a

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

席位核对 — REWORK · L1 · seat repo:objectstack#1, review thread R2 · Head-sha 5fcf89b5c1c6eab9afd010c88c52c59d83a69493 · 2026-11-29T14:15Z

Card #38150 is seat 1's by takeover claim 7255607610 (amended by 7255679388); the dev report for this head is 7256902761. This is the first seat read of the PR. The contract review of this head is 7257159073 (CONTRACT_REVIEW_TIER, rendered for this thread by an isolated reviewer): FAIL, one must-fix and one should-fix open, nits N1 to N4. The verdict here is REWORK: one round on the two graded findings, then a delta review that closes them by id.

reading value
pr-state.mjs --pr 38598 draft · 47 success · 11 expected skip · 0 unexpected skip · 1 failed (Build & E2E UI) · 0 pending
l1-face.mjs --pr 38598 every mechanical item ok (Fixes #38150, no other closing keyword, changeset entries, Clause-②: no (narrowing), Metadata-protocol: none); dogfood flagged as owed and answered by the report
check-governed-merges.mjs --pr 38598 GOVERNED, Tier H: docs/adr/** ×2, both more than add-only notes; 2,886 changed lines
PR-body guards success on this head, so the closing-target guard does not red the takeover claim's Branch: line (the dev's second open question)
dogfood battery report 7256902761: 5fcf89b5, VERDICT command-exit 0, 495 files and 4,187 tests passed, no failure; full, not narrowed

Rework items

  1. M1 (must-fix), record 7257159073. Build & E2E UI is red on this head: ui/e2e/studio-left-menu-36899.spec.ts lines 224 to 225 still expect the fold's Automation group (studio-menu-advanced-group-automation) after the fold opens, and this diff removes the group's only 高级 row on that package (the orgFlows entry in studioMenuModel.ts). I read the spec at the head: the loop is ['automation', 'system', 'security'], and the diff changes no file under ui/e2e. The unit twin in StudioMenu.test.tsx was rewritten; the browser spec was not. Fix as the record spells it: the loop reads system and security, the automation group is asserted absent, and the line names App Studio 改版(4-2):散落项按勾选「移入软件包」——新入口逐项过保存检查、整批判引用;收编散落项接口和 Studio「组织的流程」同时下线(关 #37468) #38150. The spec is outside the file surface of claim amendment 7253593955, so the seat amends the claim to add it before the push.
  2. S1 (should-fix), record 7257159073. The removed case "opens it editable, and an edit saves a draft bound to no package" (StudioDesignSurface.packageLessFlows-11553.test.tsx line 312 on main, with the two entries at 376 and 404) has no replacement. I compared the file's case titles on main and at the head: the head pins the redirects, the Loose list, the links, and Publish and Discard on the item page, and no case opens a package-less flow's item page writable and saves an edit as a draft naming no package. That save is the one the ruling keeps open (comment 7184753035, question 2). Add one case in the describe at head line 473, and correct the row of the body's table that names the redirect and Loose-list cases as its replacement.
  3. N1 and N2 (nits, ADR-0084), in the same commit. Lines 310 and 334 still describe the organization's own flows as a drawn entry (334 still counts four entries that are not a type), and the 2026-11-29 note at line 485 lists what retired with the scope without the scope's flow page (the flow designer on a flow of no package), which only the changeset says. The approver's merge ratifies the ADR text, so mark both while the head moves anyway; the delta review covers them.
  4. N4 (nit), optional in the same commit. useListOrderedNames.ts lines 115 to 116: sourceNarrowed is true for source=loose too, so previous / next asks for the package list and waits on it though the Loose reader never reads it. No wrong order results; fix it or leave it and say which.
  5. After the push. The battery is owed again at the new head only if the commit moves product code (N4 does; the spec, the test and the ADR lines do not, and the report then says so). Report the head, the ten-file reading and CI's Build & E2E UI conclusion.

Not rework: read and settled here

Nothing is handed to the maintainer on this head. The Tier H brief and the hand-off follow the delta PASS and a green Build & E2E UI.

…aves a draft naming no package; ADR-0084 marks two more passages

The retired scope's case "opens it editable, and an edit saves a draft
bound to no package" had no replacement. The item page on the
cross-package leg is that door now, so one case pins both facts on it:
the designer's add controls are drawn and Save waits only for an edit,
and an edit saved there writes a draft, then that item's own publish,
neither naming a package.

ADR-0084: the sorting rule's third test and item 3 of the 2026-11-25
silent-points list still placed the organization's own flows as a drawn
entry; both are struck with a dated note. The 2026-11-29 note under
Organization-level content now lists the scope's flow page among what
retired, and says where a flow of no package opens.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUba5JFq1ejCZ7Gxpk
… a read-only package's address too

The retired scope had two more entries that asserted the clone opens
editable: the measured link through a package, and a switch from a
read-only package. The new item-page case now runs over both entries
that are left, the page's own address and a read-only package's address
that names the clone, so the page is pinned writable, and its save as a
draft naming no package, from each.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a
Contract-review-claim: session_01QsR2jQkLKMF81cpqpt8p1a · head 85939f9 · 2026-11-29T14:58Z

Contract-tier delta review at this head, against record 7257159073 (M1, S1, N1 to N4), by an isolated sub-agent of seat 1's L1 thread; the record follows on this PR.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 85939f9cf79dff9a38b19ec52670be6955ad0d1b
Local-runs: none
Scope: docs/adr/0070-package-first-authoring.md, docs/adr/0084-application-builder-information-architecture.md + ui/apps/console/src/components/StudioRoute.tsx, ui/packages/app-shell/src/chrome/CommandPalette.tsx, ui/packages/app-shell/src/index.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts, ui/packages/app-shell/src/views/metadata-admin/useListOrderedNames.ts, ui/packages/app-shell/src/views/studio-design/AutomationsPillar.tsx, ui/packages/app-shell/src/views/studio-design/ObjectActionsPanel.tsx, ui/packages/app-shell/src/views/studio-design/StudioBackToApp.tsx, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx, ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx, ui/packages/app-shell/src/views/studio-design/StudioInterfacesRetiredNotice.tsx, ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx, ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx, ui/packages/app-shell/src/views/studio-design/StudioPackageMenu.tsx, ui/packages/app-shell/src/views/studio-design/StudioPackageSwitcher.tsx, ui/packages/app-shell/src/views/studio-design/StudioPaletteGroups.tsx, ui/packages/app-shell/src/views/studio-design/StudioSurfaceFrame.tsx, ui/packages/app-shell/src/views/studio-design/StudioSurfacePage.tsx, ui/packages/app-shell/src/views/studio-design/StudioTopLeft.tsx, ui/packages/app-shell/src/views/studio-design/automationsPillarRedirect.ts, ui/packages/app-shell/src/views/studio-design/flowGrouping.ts, ui/packages/app-shell/src/views/studio-design/metadataArea.ts, ui/packages/app-shell/src/views/studio-design/packageSurfaces.ts, ui/packages/app-shell/src/views/studio-design/studioAddress.ts, ui/packages/app-shell/src/views/studio-design/studioAddressTable.ts, ui/packages/app-shell/src/views/studio-design/studioAppEdit.ts, ui/packages/app-shell/src/views/studio-design/studioEntryPermissions.ts, ui/packages/app-shell/src/views/studio-design/studioMenuData.ts, ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts, ui/packages/app-shell/src/views/studio-design/studioOrgScopeRetired.ts, ui/packages/app-shell/src/views/studio-design/studioPillarRedirectModel.ts, ui/packages/app-shell/src/views/studio-design/studioScope.ts, ui/packages/app-shell/src/views/studio-design/studioSurfaceDrafts.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfaceNavigation.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfacePublish.ts, ui/packages/app-shell/src/views/studio-design/studioSurfaceRightSlot.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfaceScope.ts, ui/packages/app-shell/src/views/studio-design/wideViewport.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, the 35 test files of the diff: ui/apps/console/src/components/ (4), ui/packages/app-shell/src/chrome/ (1), ui/packages/app-shell/src/console/home/tests/ (1), ui/packages/app-shell/src/layout/tests/ (1), ui/packages/app-shell/src/views/metadata-admin/ (2), ui/packages/app-shell/src/views/setup/ (1), ui/packages/app-shell/src/views/studio-design/ (25), and ui/e2e/studio-left-menu-36899.spec.ts (new to the diff at this head)
Security-touching: yes

This is a delta record on the earlier round of this PR (record 7257159073, rendered at head 5fcf89b5c1c6eab9afd010c88c52c59d83a69493, followed by the seat's read 7257170665). Two faces meet on this head, as they did there, and this one record answers both: the rules face (the two ADR files) and the declared narrowing (Clause-②: no (narrowing) on the PR body and the changeset), whose floor is every path of the diff outside the prose faces. No path is a lane remainder. Not reviewed, as prose: .changeset/38150-studio-org-entry-retired.md, docs/qa/platform-checklist/FOLLOW-UPS.md, ui/packages/app-shell/README.md.

What moved, measured. The earlier head is an ancestor of this one. git diff --name-only between the two heads lists three paths and no other: ui/e2e/studio-left-menu-36899.spec.ts (new to the diff), ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.packageLessFlows-11553.test.tsx and docs/adr/0084-application-builder-information-architecture.md; three commits, +51 / -6. The other 79 paths of the diff are the same blob at the two heads (among them docs/adr/0070-package-first-authoring.md, blob 92cbda4ff9f5 at both, the changeset, the two catalogues and every product source file). No product source moved. Each judgment of the earlier record on those 79 paths is carried by reference on that measurement; everything the delta adds or moves is judged in full below. The net diff against main is 82 files, +1697 / -1240, merge base 30141766.

The earlier findings, by id

  • M1: closed.
  • S1: closed.
  • N1: closed.
  • N2: closed.
  • N3: open, a nit outside the diff, as before; it needs a carrier (③).
  • N4: open, a nit the dev chose to leave; it rides the same carrier (③).

Read outside the diff to judge it, never reviewed: ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx, ui/packages/app-shell/src/views/setup/accessDirectory.ts, ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts, the removed cases of the vitest file on origin/main, the tag @object-ui/i18n@19.0.0-next.2, the ruling record (comment 7184753035 on #37424), and every *.spec.ts under ui/e2e and examples/app-showcase/e2e.

① Derived judgments

  1. The delta implies no accept-set and no public-surface change. A Playwright spec, one vitest case run over two entries, and three passages of ADR-0084. Nothing published, served or exported moves between the two heads. Right.
  2. Items 1 to 9 of the earlier record's ① are carried (same blobs), with one correction and one change of state:
    • Correction to its item 1, the nine keys. The earlier record spelled three of them with an org segment they do not have. The catalogue diff removes exactly these nine from en.ts and zh.ts: engine.studio.menu.orgFlows, engine.studio.pkg.orgScope, engine.studio.org.name, engine.studio.org.hint, engine.studio.org.description, engine.studio.org.none, engine.studio.publishedAllFlows, engine.studio.publishedAllFlowsOne, engine.studio.changes. Measured again here under those spellings: each is in both locales on origin/main and at the tag @object-ui/i18n@19.0.0-next.2, in neither at this head, and no file outside tests and changesets reads any of them at this head. The count, the declaration and the judgment stand: a declared narrowing of a published accept set, right. The changeset lists the nine as spelled here.
    • Its item 6 was "wrong as shipped"; it is right at this head. The fold's 自动化 Automation group is gone on a package that holds no 高级 automation type, as the card asks, and the one consumer that pinned the group, the Chromium page of the left menu, now asserts it absent (M1 in ④). The check-run that was red on it concluded success on this head (③).
  3. Governed text. ADR-0084 gains three more passages in its dated-note form; ADR-0070 is untouched since the earlier head. Tier H, a human merge, whatever this record says.
  4. Skills-docs: none still holds at this head: no path under skills/**, .claude/** or content/** names ~org, orgFlows or "Organization flows", and none reads one of the nine keys.

② Semver level

The changeset is the same blob at the two heads, and the delta publishes nothing: @object-ui/i18n, @object-ui/console and @object-ui/app-shell at patch, with the BREAKING banner, the nine keys as the diff removes them, the FROM/TO table for the two barrel names and the ADR-0087 marker not-required (no-migration-prescription). The earlier record's judgment of the level is carried. Check Changeset concluded success on this head, on both of its runs.

Clause-②: no (narrowing) — on the PR body and on the changeset, and right: the diff removes nine published keys and retires a served scope; it widens nothing an author writes. Metadata-protocol: none is right.

③ Boundary flags

Check-runs on this head (first read 2026-11-29T14:58Z, last read 2026-11-29T15:11Z; 63 runs at the last read, every one concluded)

  • Build & E2E UI: success (check run 141384502851). This is M1's own gate, the run that was red on the earlier head; it was still in progress at the first read and had concluded at the last.
  • Test UI: success, the roll-up and all sixteen shards. They run the vitest file that holds S1's new case. Type Check UI and Lint UI: success.
  • Success, 50 in all. Beside those above: Check Changeset (both runs), Governed Surface Queue Guard, PR-body guards (claim · duplicate · Part-of · single-writer path) (both runs), Check Documentation Links, Check PR Size, TypeScript Type Check, the four Type Check · runs, Lint · ESLint, the seven other Lint · runs, Lint & Repo Gates, Live E2E UI, Dogfood Regression Gate, Test Core with its one shard, Build UI Deps, the two shard planners, filter, Auto Label.
  • Skipped, 13 (path-filtered, opt-in or queue jobs): Build Core, Build Docs, UI Published Artifacts, Queue verdict, Borrowed queue verdict, Dogfood Verify CLI, the Dogfood shard matrix, Temporal Conformance, Packed-tarball smoke, 18.x upgrade harness, Schedule gate, and the second Check PR Size and Auto Label runs.
  • No verdict at the last read: none. The head was still 85939f9c and the PR a draft at that read.

Dev flags (os-dev-report 7257698086, this round)

  • "N4 is left as is" and "N3 is not touched": accepted as deviations. Both are nits, neither file moved, and a fix of N4 would move product code under a reviewed head. They are open, with no carrier named on the card or the PR at this read. The seat files the follow-up card it announced in read 7257170665 and puts N3, N4 and N5 (④) on it.
  • "The missed red" (no derived gate and no vitest set runs ui/e2e; the spec names the group's test id, not the retired scope): answered by this record's own search. Every *.spec.ts under ui/e2e (64 files, the live and import-console suites included) and examples/app-showcase/e2e (4) was searched at this head for the retired scope's addresses, entry key, catalogue keys, exports and the two test ids the diff removes (studio-scope-changes, studio-changes-count). One hit, the line this delta adds. The dogfood suites under packages/qa were searched the same way: two files match on identifiers of their own (an organization-scope fixture of the amount projection, an organization-less caller), nothing of Studio's. No other browser or dogfood spec expects a row, group, address or key of the retired scope.
  • "The S1 case went in over two commits": no effect; the case is judged as it stands at this head.
  • "A note on record 7257159073, part 1" (the three keys): confirmed against the catalogue diff, corrected in ① 2.
  • "The branch does not hold main's newest commits": answered. main is at 48da7161; since the merge base it touches 146 files, none of this PR's 82, and none of those 146 reads a removed name, key or address. No textual or semantic overlap found.
  • open_questions: none in this round's report. Of the earlier round's three, OQ1 and OQ2 stay answered as the earlier record answered them. OQ3 stays with the seat: the Version Packages PR chore: version packages (next) #38192 was open and unmerged at this read, and this PR has to merge before it.
  • security_findings: none: agreed for the delta; see the security note below.
  • out_of_scope_findings, one, "carrier: none · noted, not filed": a card that retires a menu entry or a route owes a search of ui/e2e for the test ids it removes. A process note with no carrier is lost at merge: the seat files it or names the card that carries it.

Claim surface. Claim amendment 7257086821 admits ui/e2e/studio-left-menu-36899.spec.ts for one hunk that asserts the fold's Automation group absent. The spec's diff against main is that one hunk.

SQL push-down. The delta holds no SQL, driver, repository or server path, and no product code. The earlier record's reading of the classifier's client-side join is carried. No finding.

The security line reads yes and is meant, narrowly, as before. No hunk of the delta touches permission, sharing, credential, token or authentication behaviour. The line stands on the unchanged studioEntryPermissions.ts hunk the earlier record named: where a principal who may enter Studio and may create no package lands. The PR carried the security label at this read.

Author. objectstack-fleet[bot]; no relay note owed.

④ Design judgment

M1: closed. The fix is the shape the earlier record spelled. ui/e2e/studio-left-menu-36899.spec.ts:224-229: after the fold opens, the loop expects studio-menu-advanced-group-system and studio-menu-advanced-group-security visible, then studio-menu-advanced-group-automation is asserted to have count 0, and the comment names #38150. Read against the model it draws from: the page serves object, flow and permission; studioMenuModel.ts:220-233 adds two 高级 entries on a package and no other, diagnostics under system and the sharing overview under security; flow is 常用; studioMenuTiers (:290-296) keeps a group in a tier only where it holds an entry of that tier. So the fold holds no automation entry on that page, and the group's wrapper (StudioMenu.tsx:443, the same test-id pattern the loop reads) is not in the document. The assertion is not vacuous: the two sibling groups are found by that pattern on the same page. The unit twin (StudioMenu.test.tsx:278-284) lists the fold's groups without automation. The gate is Build & E2E UI, and it concluded success on this head (③). The search for another spec left behind found none (③).

S1: closed. StudioDesignSurface.packageLessFlows-11553.test.tsx:524-557, one case over two entries, in the describe renamed at :475. It pins all three halves of the removed case (origin/main :312), from each entry:

  • Opens writable. resource-save is found, and ResourceEditPage.tsx draws that control only under canWrite in edit mode (:3156-3172); the canvas draws its "Add connected node" controls, the same control the removed case read; Save is disabled until an edit and enabled after one.
  • An edit saves a draft. One client.save for flow / qa_urgent_alert_clone, carrying the edited label, with mode: 'draft'.
  • The draft names no package. The save's options have no packageId property. The publish of that one item that follows (Save takes effect at once on that page) has none either, and the package batch door is not called.

The entries are the two that matter. The page's own address, /studio/~all/metadata/flow/NAME, is what the Loose list's row and the palette open. A read-only package's address that names the clone is the last hop of both entries the removed assertions came from (origin/main :376, the pillar deep link, and :404, the switch out of a read-only package). Tried to break the second entry: is the package's read-only answer really in hand when the clone's page mounts? It is. StudioMetadataArea.tsx:474 mounts no page on a package until the writable answer has arrived, so AutomationsPillar mounts read-only on the showcase and only then navigates (AutomationsPillar.tsx:506-512) to packageLessItemPath. The surface stays mounted across that navigation (one route element serves both addresses), which is the state the removed :404 case set up. The area under it is keyed by its segment and handed nothing of the package on the cross-package leg (StudioSurfacePage.tsx:107, against :131 on a package), so the clone's page mounts under a new area whose packageId is null, whose readOnly is derived from the segment (StudioMetadataArea.tsx:440) and never kept, and where every designer branch asks for host.packageId (:200, :217, :234, :245, :264), so the generic page is reached (:274). A read-only state carried across the switch is the hazard the removed :404 case existed for, and the second entry goes through that switch with the answer in hand. The page is the door the ruling keeps open (comment 7184753035, question 2: "in-place saves of existing loose rows stay open"). The PR body's table now names this case for the removed assertion and no longer names the redirect and Loose-list cases for it. The dev reports two ablations in ResourceEditPage.tsx, each turning both entries red; they are the dev's runs, not this record's. The gate of the case is Test UI, and its sixteen shards and the roll-up concluded success on this head (③).

N1: closed. ADR-0084 :310 and :334, read against the code. :310 strikes the first example of the third test and says the menu draws no such entry (true: buildStudioMenu pushes no entry for the organization's flows, and StudioMenuEntryKind has no such kind), and that the other example is the entry the 2026-11-26 amendment moved to Setup (true: #amendment-2026-11-26-moves, and the model's own comment). :334 strikes the sentence that placed the organization's flows after job, and says that of the four entries the item counts a package's menu draws two since, the default sharing overview and diagnostics (true: studioMenuModel.ts:220-233, both 高级, both after the types of their group), so the first sentence "stands for those two". Both notes are dated, name the card and the ruling record, and both anchors they link exist in the file.

N2: closed. ADR-0084 :485 now lists the scope's flow page among what retired ("the flow designer, which opened a flow of no package full-screen") and adds where such a flow opens and that it "is still saved in place there; the flow designer opens on a package's flow". Each clause holds: packageLessItemPath builds /studio/~all/metadata/flow/NAME; that address stays in Studio for a principal who may open Setup too (accessDirectory.ts:87-95 moves only the leg's root and the access types' lists); the page there is the generic item page, writable, and its save is in place (S1's case); AutomationsPillar takes a package id and mounts only under host.packageId. The sentence agrees with the ruling's question 2 and with the changeset.

N5 (nit) — ADR-0084 :499 still speaks of the retirement as to come, with no mark of this date. The row of the "what the amendment replaces, and what stands" table reads "The organization's own flows retire when the door that moves loose items ships." Its sister sentence at :462 was struck and noted, and the bullets at :482-483 are covered by the note at :485; this row has neither. Two counts are in the same state: :230 and :298 still say "four entries" with no note of this date, though the table under :230 carries the struck row and its note. None of the three describes the scope as drawn, and the sentence at :499 is true as written, so nothing a reader would do changes. Accepted deviation, or the follow-up card: a fix moves the head, and this record would no longer cover it.

Whether any other passage still describes the retired scope as live. ADR-0084, every line that names ~org, the organization's own flows or the package-less scope, read at this head: :234, :300, :310, :334, :416, :422, :462, :513 and :515 are struck and noted; :241 (the 2026-11-26 note) is followed at :243 by the note that says the door shipped; :482-483 are the ruling's bullets, left as written on purpose, with :485 under them. Outside those, only N5. The mention of "adopt loose items" at :443 is the bulk adopt's, retired under #38545, and :485 says so. ADR-0070 names neither the scope nor its entry; its three marks of this date are the same blob the earlier record judged.

No must-fix, no should-fix.

The hits files

docs/adr/0084-application-builder-information-architecture.md — holds against its first consumer, the code at this head. The three passages the delta edits are judged under N1 and N2 above; every other line of the file is as the earlier head had it, and the earlier record's sentence-by-sentence reading of the eight marked lines and of the note under Organization-level content is carried. The only residue is N5. No heading anchor changed. Check Documentation Links and Lint · docs & code guards concluded success on this head.

docs/adr/0070-package-first-authoring.md — holds; the same blob at the two heads, the earlier record's judgment carried.

The implementing files

  • ui/e2e/studio-left-menu-36899.spec.ts (the delta's): agrees with the menu model and the card, as judged under M1. One hunk; the three other cases of the spec are untouched and still pin the docked panel, the rail and the drawer.
  • StudioDesignSurface.packageLessFlows-11553.test.tsx (the delta's): the new case is judged under S1; the header comment and the describe title say what the file pins now; the other 34 cases are as the earlier head had them.
  • The 41 product files and the other 34 test files: the same blobs; the earlier record's judgments carried. Two of its sentences were re-measured at this head because the delta leans on them: no non-test source=runtime address remains under ui/packages, ui/apps or packages, and no file names a removed scope helper or the removed Changes-row component, apart from ADR-0084's own note at :424.

The narrowing itself

Carried from the earlier record: it retires a surface the maintainer ruled retired and takes no declared capability away at the consumer. The delta sharpens one clause of that judgment from reading to measurement. The earlier record could say only by reading the code that a loose flow is still edited in place; the new case shows it on the mounted surface: the item page on the cross-package leg opens writable from both entries, draws the canvas's add controls, and its save writes a draft, then publishes that one item, naming no package. What retired for a flow of no package is the full-screen designer page, its menu row, its list, its Changes row and its batch publish, which is what ADR-0084's note now lists in full.

Nits N3, N4 and N5 are open and end the round; none touches correctness or the contract.

Implemented-by: claude/project-thread-2j7u8c
Reviewed-by: session_01QsR2jQkLKMF81cpqpt8p1a

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

维护者速读

席位意见:建议批准。第一轮复审查出两处,开发已修:一条浏览器端到端测试还在等被删掉的菜单分组,CI 因此是红的,现已改对并转绿;一条被删的测试(散落流程可编辑并存成不属于任何软件包的草稿)没有替代,现已补上,并覆盖从只读软件包网址进入的情形。改动里有一处落点变化与权限有关:能进 Studio 但进不了「设置 → 软件包」的人,现在落到散落流程列表,不再落到旧范围;权限判断本身没有变,所以带 security 标签。

席位核对 — ACCEPT · L1 · seat repo:objectstack#1, review thread R2 · Head-sha 85939f9cf79dff9a38b19ec52670be6955ad0d1b · 2026-11-29T15:14Z

Card #38150 is seat 1's by takeover claim 7255607610 (amended by 7255679388 and 7257086821). This record follows the REWORK 7257170665 at 5fcf89b5c1: the dev's answer is three commits over three files (report 7257698086), and the delta contract review 7257925349 (CONTRACT_REVIEW_TIER, PASS) closes M1 and S1 of record 7257159073 by id. Both records were rendered for this thread by isolated reviewers.

  1. Shape. Draft, base main, Fixes #38150, no closing keyword bound to any other card (l1-face --pr 38598). Clause-②: no (narrowing), Metadata-protocol: none. 82 files, +1697 / -1240. Fixes is right: PR-A1 feat(runtime): POST /packages/:id/move-in moves a selection of loose items into a package, each through the save door #38185, PR-A2 feat(app-shell): select loose items on Studio's cross-package list and move them into a package; the Packages page counts them (#38150 PR-A2) #38389 and PR-B1 feat(runtime)!: retire POST /packages/:id/adopt-orphans and its two console entries (#38150 PR-B1) #38545 are merged and this is the card's last PR. Every path is inside the claim's file surface; the one path the rework added, ui/e2e/studio-left-menu-36899.spec.ts, was admitted by claim amendment 7257086821. Skills-docs: none is true (git grep under skills, .claude/skills and content/docs finds no ~org, no "Organization flows" and none of the nine keys).
  2. Premise, measured. I read the rework delta 5fcf89b5c1..85939f9cf7 whole (3 files, +51 / -6). No product source moved: the paths are one Playwright spec, one test file and ADR-0084. M1: the spec's loop reads system and security, and the fold's Automation group is asserted absent with a line naming App Studio 改版(4-2):散落项按勾选「移入软件包」——新入口逐项过保存检查、整批判引用;收编散落项接口和 Studio「组织的流程」同时下线(关 #37468) #38150. S1: the new case opens the package-less flow's item page from two entries (its own address, and a read-only package's address that names it), asserts the designer's add controls and a Save that waits for an edit, saves an edit, and asserts a draft with mode: 'draft' and no packageId, then that item's own publish naming no package and no package batch. That is the three halves the removed case on main pinned (line 312 there), plus the entry its line 404 pinned.
  3. Dogfood battery, owed by the ! and the (narrowing) arm. Report 7256902761 pins it to 5fcf89b5: VERDICT command-exit 0, 495 files and 4,187 tests passed, no failure, the whole pnpm --filter @objectstack/dogfood test. It is not re-run at this head, and that is right: the three commits since move no file the battery builds or reads (a Playwright spec, a vitest file of @object-ui/app-shell, one ADR), which I measured on the name list above.
  4. Gates, as check-runs on this head. pr-state at this head: 50 success, 13 expected skips, 0 unexpected skips, 0 failed, 0 pending, mergeable_state clean. Build & E2E UI, the check that was red at 5fcf89b5, concluded success (check run 141384502851); the floor checks (Lint & Repo Gates, TypeScript Type Check), Test UI with its sixteen shards, Type Check UI and Lint UI are success. check-expected-skips --pr 38598 answers OK (13 skipped check-runs, every one in main's roster). l1-face flags one item, the battery, read in item 3.
  5. Prose faces, read sentence by sentence against the head. The changeset: three patch lines under the BREAKING banner, the nine keys (engine.studio.menu.orgFlows, engine.studio.pkg.orgScope, the four engine.studio.org.*, engine.studio.publishedAllFlows, engine.studio.publishedAllFlowsOne, engine.studio.changes), the two export renames as a table and the one-line fix agree with studioOrgScopeRetired.ts, the barrel and the two catalogues; the Source paragraph agrees with studioListSource.ts (the mark, then the package's writable verdict, then the provenance). ADR-0084: the passages that name the scope are struck and left legible, under nine notes dated 2026-11-29 that each name the card and ruling record 7184753035, and the note under "Organization-level content" lists what retired with the scope, the flow page included. ADR-0070: the status line, the pointer at TL;DR item 5 and the dated note under D5. FOLLOW-UPS.md names the five checklist items that still describe the retired scope.
  6. Accepted deviations, and where the rest goes. N3 and the dev's two out-of-scope findings were filed by the seat as review follow-ups of PR #38598: a dead emptyListHint option and comments and test text that still describe Studio's retired package-less scope #38604, which triage closed as not planned (comment 7257367899: no reach at run time); they stay accepted deviations. N4 (previous / next waits on a package list it does not read under source=loose: one request and a short wait, no wrong order) is left as it stands. N5 of record 7257925349 (ADR-0084 line 499 still says the organization's flows retire when the door ships, and two passages still count four entries; each sentence is true as written) is accepted on this head, because a fix would move a governed file again. N4 and N5 have no carrier; whether they earn one is the seat's call. The contract review's note that three of the nine keys were misspelled in record 7257159073 is corrected in item 5 above. The ruling names "the Studio ~org entry" and the diff retires the scope that entry opened; ADR-0084's note says so in its own words, and the brief above tells the approver that the merge ratifies it. The dev's open question 1: the seat finishes review follow-ups of PR #37949: App Studio 跨软件包列表里,自建软件包自己建的项显示成「系统自带」 #38061 and packages: adopt-orphans skips the save door's judges — it adopts into an uninstalled package id, leaves an unprefixed object unsaveable (422 NAMESPACE_PREFIX), and moves flows and datasets only after a restart #37468 by hand at landing; neither gets a closing keyword.
  7. Landing. Tier H (check-governed-merges --pr 38598: GOVERNED, docs/adr/** ×2, both more than add-only notes; 2,937 changed lines; the card total is over 3,000). The record's Security-touching: yes is meant, narrowly, and the security label is on the PR. The seat does not flip it ready or queue it before an authorized approval. pm:awaiting-merge and the review request go out with this record. After approval the seat runs the pre-landing checks at the then-current head and lands it before Version Packages chore: version packages (next) #38192, so that it ships in the same version as feat(runtime)!: retire POST /packages/:id/adopt-orphans and its two console entries (#38150 PR-B1) #38545.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

Tier H approval request · 2026-11-29T15:15Z · PR #38598 (Fixes #38150, PR-B2, the card's last), Head-sha 85939f9cf79dff9a38b19ec52670be6955ad0d1b.

  • Seat record: ACCEPT 7257936891, with the 维护者速读 at its top.
  • Contract review: delta PASS 7257925349 at this head (CONTRACT_REVIEW_TIER; it closes M1 and S1 of record 7257159073, and nothing above a nit is open).
  • Why a human: the diff marks two architecture decision records (docs/adr/**, on the governed register, both more than add-only notes), the title carries ! with Clause-②: no (narrowing) (nine @object-ui/i18n keys leave), the card total is over 3,000 lines, and the review record reads Security-touching: yes, so the PR carries the security label.
  • What the merge ratifies: the ruling names "the Studio ~org entry"; this PR retires the scope that entry opened as well, and ADR-0084's note of 2026-11-29 says "and the scope with it".
  • Dogfood battery: full, 0 failures, at 5fcf89b5 (report 7256902761); the three commits since move one Playwright spec, one test file and ADR-0084, no product code.
  • Checks on the head: 50 success, 13 expected skip, 0 failed, 0 pending.
  • Order: it must merge before Version Packages chore: version packages (next) #38192, so that it ships in the same version as feat(runtime)!: retire POST /packages/:id/adopt-orphans and its two console entries (#38150 PR-B1) #38545.

The ask: approve this head, and the seat lands it; a merge by your own hand is the same record.

@os-zhuang
os-zhuang marked this pull request as ready for review November 30, 2026 00:40
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 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 30, 2026
Conflict in studioMenuModel.test.ts only: main placed form after report
(#37087), this branch retired the package-less orgFlows entry (#38150).
The resolution keeps both: ui lists type:form before type:view, and
automation lists type:flow and type:job only.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu

Contract-review-claim: session_01JQwxbXyLoBzNYY1U8SNPFu · head 99e37b5 · 2026-11-30T01:35Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 99e37b57ec843b83548b84824c11e91a4ac72d57
Local-runs: none
Scope: docs/adr/0070-package-first-authoring.md, docs/adr/0084-application-builder-information-architecture.md + ui/apps/console/src/components/StudioRoute.tsx, ui/packages/app-shell/src/chrome/CommandPalette.tsx, ui/packages/app-shell/src/index.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts, ui/packages/app-shell/src/views/metadata-admin/useListOrderedNames.ts, ui/packages/app-shell/src/views/studio-design/AutomationsPillar.tsx, ui/packages/app-shell/src/views/studio-design/ObjectActionsPanel.tsx, ui/packages/app-shell/src/views/studio-design/StudioBackToApp.tsx, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx, ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx, ui/packages/app-shell/src/views/studio-design/StudioInterfacesRetiredNotice.tsx, ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx, ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx, ui/packages/app-shell/src/views/studio-design/StudioPackageMenu.tsx, ui/packages/app-shell/src/views/studio-design/StudioPackageSwitcher.tsx, ui/packages/app-shell/src/views/studio-design/StudioPaletteGroups.tsx, ui/packages/app-shell/src/views/studio-design/StudioSurfaceFrame.tsx, ui/packages/app-shell/src/views/studio-design/StudioSurfacePage.tsx, ui/packages/app-shell/src/views/studio-design/StudioTopLeft.tsx, ui/packages/app-shell/src/views/studio-design/automationsPillarRedirect.ts, ui/packages/app-shell/src/views/studio-design/flowGrouping.ts, ui/packages/app-shell/src/views/studio-design/metadataArea.ts, ui/packages/app-shell/src/views/studio-design/packageSurfaces.ts, ui/packages/app-shell/src/views/studio-design/studioAddress.ts, ui/packages/app-shell/src/views/studio-design/studioAddressTable.ts, ui/packages/app-shell/src/views/studio-design/studioAppEdit.ts, ui/packages/app-shell/src/views/studio-design/studioEntryPermissions.ts, ui/packages/app-shell/src/views/studio-design/studioMenuData.ts, ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts, ui/packages/app-shell/src/views/studio-design/studioOrgScopeRetired.ts, ui/packages/app-shell/src/views/studio-design/studioPillarRedirectModel.ts, ui/packages/app-shell/src/views/studio-design/studioScope.ts, ui/packages/app-shell/src/views/studio-design/studioSurfaceDrafts.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfaceNavigation.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfacePublish.ts, ui/packages/app-shell/src/views/studio-design/studioSurfaceRightSlot.tsx, ui/packages/app-shell/src/views/studio-design/studioSurfaceScope.ts, ui/packages/app-shell/src/views/studio-design/wideViewport.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, the 35 test files of the diff: ui/apps/console/src/components/ (4), ui/packages/app-shell/src/chrome/ (1), ui/packages/app-shell/src/console/home/tests/ (1), ui/packages/app-shell/src/layout/tests/ (1), ui/packages/app-shell/src/views/metadata-admin/ (2), ui/packages/app-shell/src/views/setup/ (1), ui/packages/app-shell/src/views/studio-design/ (25), and ui/e2e/studio-left-menu-36899.spec.ts
Security-touching: yes

This is a delta record on record 7257925349, rendered at head 85939f9cf79dff9a38b19ec52670be6955ad0d1b. The same two faces meet on this head: the rules face (the two ADR files) and the declared narrowing (Clause-②: no (narrowing) on the PR body and the changeset). No path is a lane remainder. Not reviewed, as prose: .changeset/38150-studio-org-entry-retired.md, docs/qa/platform-checklist/FOLLOW-UPS.md, ui/packages/app-shell/README.md.

What moved, measured. The one new commit is 99e37b57ec, a merge whose parents are the earlier head and origin/main at 4b57756092. The merge base moved from 30141766 to 4b57756092; main changed 365 files between the two.

  • The net diff against main is the same size as before: 82 files, +1697 / -1240.
  • For each of the 82 files, the lines the PR adds and removes against main are the same at the two heads (the added and removed lines of git diff 30141766 85939f9c -- FILE against those of git diff 4b575609 99e37b57 -- FILE; no file differs).
  • 77 of the 82 files are the same blob at the two heads. The five that main also changed are docs/adr/0084-application-builder-information-architecture.md, StudioMenu.test.tsx, studioMenuModel.test.ts, and the studio catalogues en.ts and zh.ts. Four merged without a conflict; studioMenuModel.test.ts is the one conflict.
  • No conflict marker is left in any of the 82 files.

Each judgment of the earlier record is carried by reference on that measurement. What the merge adds on the faces is judged below.

The earlier findings, by id. M1, S1, N1 and N2 stay closed. N3, N4 and N5 stay open, as nits; the merge moves none of them (③).

Read outside the diff to judge it, never reviewed: ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts, ui/packages/app-shell/src/views/metadata-admin/directoryScope.ts and ui/apps/console/src/AppContent.tsx as main now has them, main's three commits on the Studio paths since the old base (#38619, #38581, #38617), and the five checklist items the follow-up note names.

① Derived judgments

  1. The merge implies no accept-set and no public-surface change of this PR's own. The PR's patch is the same line for line. What main brought (the form type listed in Studio's menu, a retired Developer page, one catalogue key added and one removed in each locale) is main's and is already on main.
  2. The nine keys are still gone and nothing new reads them. Each of the nine is absent from en.ts and zh.ts at this head. main's own catalogue change sits beside them without touching one: it removes engine.inspector.pageBlock.option.location.record and adds engine.inspector.objectPicker.notAnObjectKept, and both are as main has them at this head. The narrowing is the same nine keys the changeset lists.
  3. Nothing main brought names what this PR retires. The lines main added between the old base and 4b57756092 were searched for the scope's addresses (~org, source=runtime on a Studio address), its entry key orgFlows, the nine keys, the removed exports and helpers, the two removed test ids and the entry's two labels. No added line matches. The one commit on main after the merged parent (74a15cb73b, fix(spec,metadata-protocol): name the row-held-base exception's whole cell in the packageId texts; the read-only-base rollback pin restores a real version #38639) touches seven files under packages/spec, packages/metadata-protocol, packages/runtime and .changeset, none of this PR's and none naming a retired thing.
  4. Skills-docs: none still holds: no path under skills/**, .claude/** or content/** names the scope, its entry or a removed key at this head. The diff touches no path under .claude/**, so no Rule-change: line is owed.
  5. Governed text. ADR-0084 and ADR-0070 are in the diff as before. Tier H, a human merge, whatever this record says.

② Semver level

The changeset is the same blob at the two heads: @object-ui/i18n, @object-ui/console and @object-ui/app-shell at patch, with the BREAKING banner, the nine keys, the FROM/TO table for the two barrel names and the ADR-0087 marker. The earlier judgment of the level is carried. Check Changeset concluded success on this head.

Clause-②: no (narrowing) — still on the PR body and the changeset, and still right. Metadata-protocol: none is right.

③ Boundary flags

Check-runs on this head (read 2026-11-30T01:39Z; 55 runs)

  • Success, 11: Check Changeset, Governed Surface Queue Guard, PR-body guards (claim · duplicate · Part-of · single-writer path), Check Documentation Links, Check PR Size, Dogfood Regression Gate, Build UI Deps, the two shard planners, filter, Auto Label.
  • Skipped, 11 (path-filtered, opt-in or queue jobs).
  • No verdict yet, 33, all in progress: Build & E2E UI, Live E2E UI, the sixteen Test UI shards, Type Check UI, Lint UI, the four Type Check · runs, Lint · ESLint and the seven other Lint · runs, Test Core (1/12).
  • Failed: none at this read.

This record judges the text of the merge and ran nothing. The two merged test files, and the Chromium page that pins the fold, are proven only by Test UI and Build & E2E UI, and neither had concluded. The seat reads both green on this head before it lands; a red on either reopens this round.

The branch against main. The head holds main up to 4b57756092. main is one commit further, at 74a15cb73b, with no file in common with this PR (① 3). mergeable was true at the read.

Open nits and their carrier. N3, N4 and N5 are as the earlier record left them. That record asked the seat for a follow-up card carrying them, and for a carrier for the dev's process note on searching ui/e2e. No such card is named on the PR or the card at this read; the seat still owes both.

SQL push-down. The merge brings no SQL, driver, repository or server path into this PR's diff. No finding.

The security line reads yes and is meant, as before: the unchanged studioEntryPermissions.ts hunk, where a principal who may enter Studio and may create no package lands. The PR carries the security label.

Author. objectstack-fleet[bot]; no relay note owed.

④ Design judgment

The conflict resolution is right. studioMenuModel.test.ts, the case that orders each group by the placement table. Each side changed one line of the same expectation:

The second conflicted hunk takes this PR's side whole: "the two entries that are not a type are 高级 on a package", over diagnostics and owd. main had not changed that case, so nothing of main's is lost. main's other additions to the file are all present: form in the served list, its tier assertion, its place in the 常用 lists, the fold's ui group, and the directory-rule case.

Tried to break it: does any line this PR adds or rewrites list the 界面 UI types without form, now that the file's served list has it? No. No added line of the diff under ui/** names report; the PR's hunks in the two menu test files touch automation, the ~org rows of the tables and the fold's group list, and no ui list.

The four files that merged without a conflict

  • StudioMenu.test.tsx: main adds form to one served list, one 常用 expectation and a new describe of three cases on the ui group. This PR removes the orgFlows rows and the fold's Automation group. The two sets of hunks are apart and assert about different groups.
  • en.ts and zh.ts: judged in ① 2.
  • ADR-0084: judged next.

ADR-0084 against what main wrote into it. main (#38619) changed two places, both above every hunk of this PR: the placement table gains the row form (界面 UI, fifth, 常用) and view and action each move one place down; and a note dated 2026-11-29 under the table says so and counts the table's rows (35, with 自动化 Automation 2). This PR edits it in nine hunks, from the list of entries that are not a type down to the note on ADR-0070; main edited none of the nine, and no sentence both sides touched exists.

Read for contradiction:

  • main's count "自动化 Automation 2" is of type rows, flow and job. The entry this PR retires was never a row of that table, so the count stands with the retirement.
  • This PR's notes speak of "the four entries that are not a type" and say a package's menu draws two of them since. main's note speaks of "the four rows that amendment left to their changes" (dataset, position, datasource, form). They are two different fours and neither note reads on the other.
  • No line this PR adds to either ADR names form, view's place, a row count of the table, or a group's size.

The earlier record's line numbers in this file are each three lines lower at this head (:310 is :313, :334 is :337, :485 is :488, :499 is :502); the sentences are the same. N5 is unchanged: the table row at :502 still speaks of the retirement as to come.

docs/adr/0070-package-first-authoring.md — the same blob at the two heads, untouched by main. The earlier judgment is carried.

Whether main now leans on anything retired. main's Studio changes since the old base are the form placement, the object picker's refusal text, and the quick-actions bar's location. The retired Developer page's redirect (AppContent.tsx) goes to Studio's cross-package list of forms through setupMetadataStudioPath('form', ''), an address on the ~all leg, which this PR keeps. None of them builds a /studio/~org address, reads a removed export or key, or mounts on the retired scope.

The checklist. docs/qa/platform-checklist/areas/studio-authoring.json and two sister files still describe the retired scope. Those lines were there at the earlier head, main added none, and the PR's follow-up note (FOLLOW-UPS.md §20) names the five items. Unchanged by the merge.

The implementing files. The 41 product files are the same blobs; the earlier judgments are carried. Of the 35 test files and the Playwright spec, 34 are the same blobs and two are judged above.

The narrowing itself. Carried from the earlier record: it retires a surface the maintainer ruled retired and takes no declared capability away at the consumer. The merge changes neither what is removed nor what replaces it.

No must-fix, no should-fix.

Nits N3, N4 and N5 stay open; none touches correctness or the contract.

Implemented-by: claude/project-thread-2j7u8c
Reviewed-by: session_01JQwxbXyLoBzNYY1U8SNPFu

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu

维护者速读

  • 用户能看到什么变化:Studio 去掉无包的 /studio/~org 入口;可写包里的条目在列表里显示"新建"。与上次批准时相同,只是合并了 main。
  • 风险:合并 main 时一个测试文件冲突,已按两边意图解决,本地 102 个菜单测试通过,CI 全绿。
  • 要你做什么:os-zhuang 重新批准后合并(发布冻结期间席位不入队)。

席位核对

ACCEPT · L1 · area o2-S1 · Head-sha 99e37b57ec843b83548b84824c11e91a4ac72d57 · 2026-11-30T02:14Z

  • The pull left the queue at 01:10Z when main moved; the seat merged origin/main (one conflict, studioMenuModel.test.ts: keeps main's type:form before type:view, drops the retired orgFlows), ran the three menu suites locally (102/102), and pushed.
  • Contract review at CONTRACT_REVIEW_TIER on this head: delta PASS 7266358407 (net diff against main unchanged in substance on every contract face; resolution judged right).
  • Checks at this head: 48 success, 11 expected skip, 0 failed, 0 pending.
  • Requesting review from os-zhuang again. Release freeze: no enqueue by the seat.

@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
@os-zhuang

Copy link
Copy Markdown
Contributor

我批准了,后续再有问题,你修改后可以自主落地

Merged via the queue into main with commit 0124851 Nov 30, 2026
59 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-2j7u8c branch November 30, 2026 03:33
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…Public Forms page is retired (objectstack-ai#38619)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Jianguo** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9Ubb7NAv1vsLzLdMX44CnW7rhy)_

Fixes objectstack-ai#37087
Fixes objectstack-ai#36444

Clause-②: yes (narrowing) — released translation keys, one Studio
navigation entry and a console page are removed (listed under What
changes); two `publicFormsSetup` keys are added in every locale
Metadata-protocol: none
Skills-docs: none — no metadata an author writes changes; the Studio
page retired is a console page.

## 维护者速读

-
用户能看到什么变化:搭建者在应用搭建左侧菜单的「界面」分组里,「报表」下面多了一行「表单」,点进去是这个应用的表单列表,再点一个表单进设计器;原来「开发者
→ 公开表单」那一页没有了,旧网址自动跳到表单列表;管理员在设置里打开一个公开表单时,如果地址被别的表单占着,提示会同时说出两个表单的名字。
-
为什么做:属于「表单独立成一种元数据」专题里控制台这张卡的后一半;表单已经改在应用搭建里设计、在设置里开关,旧页面读写的还是旧存法,留着会让人改到不再生效的东西。
-
出错会怎样:最坏是搭建者在菜单里找不到「表单」,或旧网址跳不到表单列表;访客匿名打开和提交表单、管理员在设置里开关表单都不经过这次改动的代码;可以整体撤回。
-
要你做什么:这次改了一份架构决策记录里的表格、删掉了已发布的翻译条目,改动也超过三千行(大多是删掉的旧页面和它的测试),需要你本人批准,请在审核通过后审批。

## What changes

Card ③ of ADR-0159, PR 2 of 2 (PR 1 was objectstack-ai#38484). The claim is 7255649193
with amendments 7255720152, 7255945859, 7256242334 and 7256905062.

1. **Forms in Studio's menu.** `form` leaves `HIDDEN_DIRECTORY_TYPES`
(`metadata-admin/directoryScope.ts`), and `STUDIO_MENU_PLACEMENT`
(`studio-design/studioMenuPlacement.ts`) gains `{ type: 'form', tier:
'common' }` directly after `report`: the UI group, the common tier,
placed by name as the ADR-0084 amendment ruled. Being common, the row is
always listed, also in a package that holds no form, and the type
directory lists the type too. ADR-0084's type-to-group table gains the
`form` row (`view` and `action` move to 6 and 7) and one dated note,
nothing else; the table now has a row for each of the registry's 35
entries.
2. **Developer → Public Forms is retired.** The page module and its five
test files are deleted. The Studio app's `nav_public_forms` entry is
removed from `packages/platform-objects/src/apps/studio.app.ts`, with
`apps.studio.navigation.nav_public_forms.label` in the 11 translation
files and the 10 source-hash files. Both addresses of the page redirect,
in one hop, to Studio's cross-package list of forms
(`/studio/~all/metadata/form`): the standalone route
`/apps/APP/developer/public-forms` (`AppContent.tsx`) and the component
address `/apps/APP/component/developer/public-forms` (the key
`developer:public-forms` stays registered in
`registerDeveloperComponents.tsx`, as a redirect). The 47 keys under
`console.developer.publicForms` leave `@object-ui/i18n`'s
`./namespaces/developer` in every locale. Setup's navigation entry of
the same id is untouched, and the three pins still assert it.
3. **Setup names both forms when an address is taken.** When the server
refuses a switch-on with `409 FORM_ADDRESS_TAKEN`, the page reads the
forms again, finds the form that holds the address
(`publicAddressHolderOf`, which mirrors the server's `formHeldSlug` and
leaves the row's own layers out) and says: "Couldn't switch Request a
demo: the form “Talk to the team” already uses the same address. Give
one of the two forms another address in App Studio." When two forms
share a title, the holder's name follows in brackets. When the holder
cannot be read, the sentence says another form holds the address. Two
keys in all 11 locale files: `publicFormsSetup.refusalAddressTaken` and
`publicFormsSetup.refusalAddressTakenUnknown`. Any other 409 keeps
today's sentence.

Removed, for the record:

- Page: `ui/apps/console/src/pages/developer/PublicFormsPage.tsx`.
- Tests: `PublicFormsPage.emptyPlaceholderAffordance-8504.test.tsx`,
`PublicFormsPage.publicUrlBasename-11769.test.tsx`,
`PublicFormsPage.redirect.test.tsx`,
`PublicFormsPage.servedRule-11545.test.tsx`,
`PublicFormsPage.sharedSelect-11865.test.tsx`; the `PublicFormsPage`
cases in `consolePagesLocale-13460.test.tsx` and
`developerMetadataEnvelope.contractEnvelope-6917.test.tsx`.
- Navigation entry: `nav_public_forms` of the Studio app (component
`developer:public-forms`), with its label key.
- Keys: the 47 under `console.developer.publicForms` (shipped since
18.2.0).

References the removal touched (claim: "only where they name the removed
page"):
`ui/.claude/skills/objectui-contributor/guides/console-development.md`
(the pages tree, the developer routes line, one legacy-redirect line).
`ui/scripts/markdown-test-inputs.mjs`,
`scripts/check-ci-filter-parity.mjs` and the `ci.yml` path lists do not
name the page and are not changed.

Tests that enumerate the listed types, changed to add `form` only:
`studioMenuPlacement.test.ts`, `studioMenuModel.test.ts`,
`StudioMenu.test.tsx`. `StudioPaletteGroups.surfaceScope-36900.test.tsx`
needed no change.

Read first (by risk):

1. `ui/packages/app-shell/src/views/setup/publicForms.ts`,
`publicAddressHolderOf`: which form is named as the holder, and which
layers of the row itself are left out.
2. `ui/apps/console/src/registerDeveloperComponents.tsx` and
`AppContent.tsx`, the two `<Navigate>` redirects: a bookmark of either
address must land on a page.
3. `docs/adr/0084-application-builder-information-architecture.md`: the
`form` row and the note.

Two-minute check: `pnpm --dir ui exec vitest run
apps/console/src/__tests__/publicFormsRetired-37087.test.tsx` prints 8
passed; or open `/apps/setup/developer/public-forms` in a running
console and land on Studio's list of forms.

## Tests

- `studioMenuPlacement.test.ts`: `form` is listed and common, directly
after `report` and so directly before `view`; CONTROL `field` and
`package` stay hidden; the ADR-0084 table pin now reads the `form` row.
- `studioMenuModel.test.ts`: the directory rule lists `form` on a
package and still drops `field` and `package`; the UI group's tiers.
- `StudioMenu.test.tsx`: the row is drawn after Report above the fold
with the package's list address; the count shows when the package holds
forms; CONTROL no `form` served, no row.
- `publicForms.test.ts`: `publicAddressHolderOf` (another form on the
slug, switched on or off; the row's own base, override and package-less
layers left out; nothing found) and `isAddressTakenRefusal` (status and
code both required).
- `PublicFormsSetupPage.test.tsx`: the refusal names the holder; equal
titles add the name; holder unreadable; CONTROL another 409 keeps the
old sentence.
- `publicFormsRetired-37087.test.tsx` (new): each address lands on
`/studio/~all/metadata/form` in one hop (a recorder logs every
location), no query or fragment carried, the key stays registered by the
console, the page module is gone, CONTROL the neighbouring developer
route still renders.
- Catalogue pins moved with the keys (claim amendment 7256905062; the
pins and one comment line each, nothing else):
`ui/packages/i18n/src/__tests__/developer-namespace.test.ts` (the en
catalogue has 184 leaves where it had 231, so its floor of 200 becomes
150) and `de-quote-pairing-3876.test.ts` (the de pack holds 134 paired
quote spans where it held 133, at both pins: the new refusal's
„{{holder}}“).
- Pins:
`packages/platform-objects/src/apps/console-page-nav-entries.test.ts`,
`packages/cli/test/console-page-nav-entries.pin.test.ts`,
`packages/cli/test/connect-agent-both-halves-wire.pin.test.ts`: the
Studio app serves no `nav_public_forms` and names no
`developer:public-forms`; Setup serves exactly one, with
`forms:public-forms`.

## Acceptance notes

Driven in a browser on `examples/app-showcase` (`objectstack dev --ui
--seed-admin` on its own port and data file, the console's dev server
proxied to it), head `afcf5fb1` before the merge of main. Two shipped
public forms: the old-shape `showcase_inquiry.contact` (served through
the projection) and the `form` item `showcase_inquiry.feedback`. Every
step ran on the old-shape form.

| Step | Result |
|---|---|
| An administrator sees Public forms in Setup, an ordinary member does
not | Admin: the sidebar entry and the list. A member minted through
`admin/create-user` (role `member`): `/api/v1/meta/app` serves no
`setup` app, and the page's address answers "Only system administrators
can manage public forms." |
| Both forms listed with title, object and address | Share feedback and
Tell us about yourself, Inquiry, `/f/showcase-feedback` and
`/f/contact-us`, both On |
| Switch one off, then on | Off: `/f/contact-us` shows Page not found
without signing in, `GET /api/v1/forms/contact-us` 404, submit `404
FORM_NOT_FOUND`; the row stays listed as Off. On again: the form renders
and a submit answers 201 |
| Edit a shipped form in Studio and publish | Title changed, Company
made required, Source added: the anonymous page shows all three; a
submit without Company answers `400 VALIDATION_FAILED` ("Company is
required"), with it 201. Then Source removed and published: it is gone
from the anonymous page |
| Create a public form with four fields at a new address | Request a
demo on Inquiry at `request-demo` (Name, Email, Message, Company), saved
into the app's `.custom` pair, published; filled in and submitted
without signing in (201, the thank-you page); the record reads back with
the four values; Setup lists it |
| A taken address is refused, in the designer | Editing: "The form
“showcase_inquiry.feedback” already uses this address. Choose a
different one." and Save draft is disabled. Creating: "Another form
already uses this address. Choose a different one." and Create is
disabled |
| A taken address is refused, at Setup's switch-on | Request a demo,
switched off, was given `/forms/contact-us` through the metadata API (a
save that leaves a form closed is never refused; the designer's own
check would have stopped it). Switching it on: `PUT … 409`, the switch
stays off, and the message names both forms, in English and in Chinese.
CONTROL: with its own address back, the same switch saves |
| Removing an object-required field is refused with its reason | "“Name”
cannot be removed: the object requires it, so a submission without it
could not be saved." |
| Off in Setup, then edited and published in Studio | The designer's
save carries `sharing.enabled: false`; after the publish the address
still answers 404 and takes no submission, and Setup still shows Off |
| An action of type `form` opens its form | On a task, Log Time
(`showcase_log_time`, target `showcase_task.form`): `GET
/api/v1/meta/form/showcase_task.form` 200 twice, no `/meta/view` read,
the form renders with the record |
| `form` in Studio's menu | After Report in the UI group, with its count
(Form 7), in English and Chinese (表单); a package with no form (Setup's)
shows the row too |
| The retired page's addresses | `/apps/setup/developer/public-forms`,
`/apps/showcase_app/developer/public-forms` and the two
`/component/developer/public-forms` addresses each land on
`/studio/~all/metadata/form`, which lists the 8 forms |

Screenshots (project files, `/mnt/project-files/card-37087/pr2/`):
Setup's list `01-setup-public-forms-admin.png`, the member's view
`02-…`, the Studio list `12-studio-form-list.png` and
`24-studio-form-list-zh.png`, the editor
`06-studio-form-editor-shipped.png` and `14-studio-new-form-editor.png`,
the refusal `20-setup-switch-on-address-taken.png` and `21-…-zh.png`,
and one per step above (24 files).

The showcase does not mount the `studio` app, so the navigation entry's
removal is shown by the three pins, not live.

**Removed-key probe** (does a user's translation of a removed key get
refused):

- In a project's files: yes, and it already was. A stack that does not
define `studio` and translates
`apps.studio.navigation.nav_public_forms.label` gets `error
translation-target-unknown`, before and after this change. A stack that
owns the Studio app gets no finding while the entry is declared and the
same error once it is removed, which is why the 11 translation files
lose the key in this PR.
- In an environment: no. A `translation` item naming the removed key,
saved through the metadata API, saves and publishes with
`_diagnostics.valid: true`, exactly like one naming a live Studio key or
Setup's entry (three probes, then deleted). That door judges no targets
today. The key then translates nothing. The changeset says so and tells
the reader to delete it.
- `console.developer.publicForms.*` are console catalogue keys with no
metadata door: an override in a deployment's own i18next resources stops
applying, as the changeset says.

**Remaining hits** of `git grep -nE "formViews|viewKind: 'form'|viewKind
=== 'form'" -- ui ':!**/CHANGELOG.md'`: 81 lines in 34 files, none in a
console surface that reads a form's definition.

- `providers/MetadataProvider.tsx` and its merge test: the branch that
keeps `viewKind: 'form'` items out of the list switcher, kept by the
card until major 19.
- The `view` editor's form arm under `metadata-admin/` (`anchors.ts`,
`previews/ViewPreview.tsx`, `view-item-normalize.ts`) and its tests: it
still edits a `view`, kept by the card.
- Docblocks and comments only: `FormPage.tsx`,
`recordFormNavigation.ts`, `SchemaForm.tsx`, `clientValidation.ts`,
`registry.ts`, `freeze-schema.ts`, `imported-defaults.ts`.
- Tests that pin the old shape as refused, retired or filtered
(`formViewFeaturesRootRefused-6262`, the two `internalFormRetired-36425`
files, `data-objectstack`'s `listViews` tests, `view-create-body`,
`clientValidation.*`, the inspectors' tests), and one dated audit under
`ui/docs/audits/`.
- The retired page's hits are gone with the page.

Not changed here, reported to the seat:

- `carrier:` ADR-0159 D9's table still names the retired page and D10
still lists the menu row as owed; the weekly ADR revisions card carries
both at landing (the claim keeps ADR-0159 out of this PR).
- Admitted by claim amendment 7256242334 and still not changed: the
`form` row of `StudioMenu.tsx`'s icon table (the menu row draws the UI
group's icon), and two comments that name what this PR changes, in
`services/builtinComponents.tsx` ("`form` stays out of Studio's menu")
and `plugin-form/src/submitRedirect.ts` (`PublicFormsPage`). The
session's permission check declined the icon-table edit twice; it was
not retried, the three files are byte-equal to main, and the three items
go to a follow-up.
- Never admitted, and left as it is: the docblock of
`ui/apps/console/src/components/submitRedirect.ts` says the Public Forms
dialog calls `checkSubmitRedirectUrl` at save time; with the page gone,
the only caller is `resolveSubmitRedirect` in the same file.
- The designer's early clash message names the other form by its
internal name, not its label (PR 1's surface).

## Verification

Head `81426a31`: `origin/main` `696d02f5` merged in at `bf797ae1`, then
the two catalogue pins. Changed lines 3731 (+785 / −2946, 72 files),
over the 3000-line human-merge threshold; 2787 of the deleted lines are
the retired page with its five test files (2248) and its 47 keys in 11
locales (539).

- **Build**: `pnpm exec turbo run build --filter=!@objectstack/docs
--concurrency=3` at `bf797ae1`, 123 of 123 tasks, exit 0.
- **Unit tests**: the related UI suites, `@objectstack/platform-objects`
`src/apps` and the two CLI pins are green at the head (readings below).
- **Type checks**: `turbo run type-check` of `@object-ui/app-shell`,
`@object-ui/console` and `@object-ui/i18n` (each covers its test files;
82 of 82 tasks, 53 from cache), then `typecheck` of
`@objectstack/platform-objects` and `@objectstack/cli`, at the head
under the verify lock: VERDICT command-exit 0.
- **Gates**: `dispatch-gates --commands` derives 81 commands at the
head; all 81 exit 0. `--ran`: 81 derived, 81 run, 0 NOT-MEASURED, 0
UNRUN.
- **Changeset**: `check-changeset-no-major --base origin/main` and
`check-adr-0087-registration --base origin/main` pass; the changeset's
`adr-0087` marker is `not-required (no-migration-prescription)` (no spec
schema or registered type changes, and no stored item stops parsing).
- **Dogfood battery**: the full battery at the head, `pnpm --filter
@objectstack/dogfood test` under the verify lock (no shard, no path),
after its closure build (79 of 79 tasks): VERDICT command-exit 0 (held
1,948 s); Test Files 495 passed, 3 skipped (498); Tests 4187 passed, 68
skipped (4255); no failure, and nothing left in the tree.
- **Browser**: the acceptance table above, on head `afcf5fb1` (the tree
before the merge of main and the two pins; main brought no `ui/` or
`examples/` change).
- **Overlap**: `overlap-check` at the head, against `origin/main`
`48da7161` and the open PRs that share a file: main merges cleanly;
objectstack-ai#38612 (the 11 locale files) merges cleanly; objectstack-ai#38598 (the retirement of
`/studio/~org`) conflicts in `studioMenuModel.test.ts`, on two
neighbouring lines of one expectation (its `automation` row loses
`orgFlows`, this PR's `ui` row gains `type:form`). Verdict exit 1: this
PR queues behind objectstack-ai#38598.

<details><summary>Unit test readings</summary>

- `pnpm --dir ui exec vitest run --maxWorkers=2 packages/i18n
packages/app-shell/src/views/studio-design
packages/app-shell/src/views/setup
packages/app-shell/src/views/metadata-admin apps/console/src/__tests__
apps/console/src/pages/developer` at `bf797ae1`: Test Files 2 failed,
1324 passed (1326); Tests 3 failed, 14645 passed, 14 skipped (14662).
The three reds were two catalogue pins this branch moves:
`developer-namespace.test.ts` (the en catalogue's floor of 200 leaves;
231 became 184 with the 47 keys gone, floor now 150) and
`de-quote-pairing-3876.test.ts` (the de pack's paired quote spans, 133
became 134 with the new refusal's „{{holder}}“, at both pins). Claim
amendment 7256905062 admits the two files.
- After the pins moved: those two files and
`packages/app-shell/src/__tests__/product-neutral-renderer.ratchet.test.ts`,
3 files, 83 passed.
- `pnpm --filter @objectstack/platform-objects exec vitest run
src/apps`: 42 files, 885 passed.
- `pnpm --filter @objectstack/cli exec vitest run
test/console-page-nav-entries.pin.test.ts
test/connect-agent-both-halves-wire.pin.test.ts`: 2 files, 6 passed. The
CLI reads `@objectstack/platform-objects/apps` from `dist`: before that
package was rebuilt, both new assertions were red on the old build (the
Studio app still served `nav_public_forms`).
- `pnpm --dir ui exec vitest run scripts/` (in the derived list): 172
files passed, 2 skipped; 5159 tests passed.

</details>

<details><summary>Gate notes</summary>

- `node scripts/check-plugin-teardown-shape.mjs --self-test` exits 3 on
a shallow clone until its pinned fixture commit is fetched (`git fetch
--depth=1 origin 621a487`); then 48
cases pass.
- An earlier loop at `bf797ae1` recorded `vitest run scripts/` and
`check:type-check-debt` as NOT MEASURED (the verify lock was held by
this thread's own unit run). The loop reported above is the second one,
at the head, with nothing else holding the lock.
- Beside the derived list, from `ui/`: `check:i18n-keys`,
`check:i18n-drift`, `check:i18n-dead-keys`, `check:spec-symbols`,
`check:new-line-citations` and `check:skill-examples`, exit 0 each.

</details>

<details><summary>Ablations (four, one behaviour each)</summary>

Run at the head through `scripts/ablation-replace.mjs` under
os-verify-lock; each anchor hit once, each mutation was verified on
disk, and each restore ended with the file's blob equal to HEAD and `git
diff HEAD` empty. Expected direction was red for each, and each went
red.

| Mutation | Run | Result |
|---|---|---|
| `directoryScope.ts`: `form` back in `HIDDEN_DIRECTORY_TYPES` |
`studioMenuPlacement.test.ts`, `studioMenuModel.test.ts`,
`StudioMenu.test.tsx` | 3 files failed; 10 failed, 97 passed of 107.
Red: the directory rule, the rows-equal-listable-types check, the `form`
placement, the ADR table pin, the always-listed row and the three `form`
menu cases |
| `PublicFormsSetupPage.tsx`: the `isAddressTakenRefusal` branch never
taken | `PublicFormsSetupPage.test.tsx` | 3 failed, 9 passed of 12. Red:
both forms named, equal titles, holder unreadable. The CONTROL (another
409) stayed green |
| `AppContent.tsx`: the `developer/public-forms` route deleted |
`publicFormsRetired-37087.test.tsx` | 4 failed, 4 passed of 8. Red: the
three standalone-route cases and the no-query case. The component
address, the registration, the page-gone check and the CONTROL stayed
green |
| `registerDeveloperComponents.tsx`: the registered component renders
nothing | same file | 2 failed, 6 passed of 8. Red: the component
address and the no-query case |

Restored baseline: the five files, 127 passed.

</details>

## Owed before landing

- The contract review (L2), then the seat's L1.
- The maintainer's approval (Tier H: `docs/adr/**`, `ui/.claude/**`, the
narrowing, and 3731 changed lines).
- The queue behind objectstack-ai#38598: the two PRs conflict on one expectation of
`studioMenuModel.test.ts`. Whichever lands second merges main and keeps
both edits (the `automation` row without `orgFlows`, the `ui` row with
`type:form`).
- A dogfood battery from the landing head.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… notes across three records) (objectstack-ai#38809)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_

Fixes objectstack-ai#38438

Clause-②: no
Metadata-protocol: none

This pull request carries the card's last four rows. The first seven
landed with the first pull request of this card, objectstack-ai#38774, merged
2026-11-30.

## 维护者速读

- 用户能看到什么变化:用户无感;只在三份设计记录里补了四条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 29 日这一周);上一张合并请求已带走七行,这次补齐剩下四行,这份清单就此收口。
- 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这四条说明并批准一次(设计记录须由你本人批)。

## What changes

Three ADR files gain four notes dated 2026-12-01. Every diff line is an
addition: 43 lines added, 0 removed. No original decision text is
rewritten, and no decision changes. Each note follows the note
convention its own record already uses, and each says that the passage
it is read with is left as written.

Each row's "what is true now" was read against the code on `main` before
its note was written. All four rows hold. Where a row's wording did not
match the tree, the note says what `main` does; the last column says so
and the list under the table gives the detail.

| ADR · section | Was (the record's words) | Now (what the note records)
| Source PR | Row on the card · result |
|:---|:---|:---|:---|:---|
| ADR-0161 · Consequences, the bullet "A stored fingerprint and recipe
hash are the only index state the service relies on" | "The service
keeps none of its own" | The service keeps a sync state for each source:
its last build, and the record syncs that failed and are not yet
repaired. Where the knowledge plugin can keep it, it is one durable
record per source; otherwise the last build is kept in the process and
failed syncs are not counted. Whether an index is due for a build is
still read from the stored fingerprint and recipe hash, so the bullet's
first sentence stands for that decision. The K8 note of 2026-11-28
already names this state | objectstack-ai#38307 | Card body row · **written, corrected
to the tree** (the in-process case) |
| ADR-0161 · K7, the components table, row "Split algorithm version" |
"a constant the splitter exports; it changes when the splitter gives
different passages for the same text and settings" | The version is kept
per split strategy, and the fingerprint reads the entry for the strategy
the source resolves to. A change to one strategy's passages starts a new
generation only for the sources that resolve to it. The single exported
constant is retired, with no alias | objectstack-ai#38375, objectstack-ai#38452 | Card body row ·
**written, corrected to the tree** (no version value is written) |
| ADR-0085 · the note of 2026-11-27, and the note of 2026-11-30 under it
| "Neither key is in the spec yet", and in the later note "The second
half stands: `fieldTabs` is not in the spec" | `fieldTabs` is in the
spec, an optional list of `{ key, groups }` entries on `ObjectSchema`,
so both keys are built. The parse refuses a group the object does not
declare, a group two tabs name, a group that places a related list, and
a repeated `key`. The tabs are drawn on every tier of the standard
record page: the full page, the side preview and a phone. Only the
standard record page reads the key, and an object extension does not
carry it | objectstack-ai#38742 | 7282251133 · **written** |
| ADR-0084 · the table "What the amendment replaces", row "Entries that
are not a type", and three sentences that count four entries | "The
organization's own flows retire when the door that moves loose items
ships."; "The menu also holds four entries that open no type's list";
"Of the four entries that are not a type, the cross-package directory is
to leave the menu"; "The four entries that are not a type are 高级 on a
package" | The door has shipped and the flows have retired, the entry
and the package-less scope it opened alike. Four changes carried it,
each named with what it did. The three sentences count the rows of the
table under "Entries that are not a type" as it was first written. The
note names the entries of a package's menu that open no type's list
today: 概览 Overview, the default sharing overview, Diagnostics and 全部类型
All types | objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545, objectstack-ai#38598 | 7283216315 · **written,
corrected to the tree** (names and no count; a third sentence; the
change that built the door) |

Every prerequisite of the four rows is merged on `main`: objectstack-ai#38307, objectstack-ai#38375,
objectstack-ai#38452, objectstack-ai#38742, objectstack-ai#38185, objectstack-ai#38389, objectstack-ai#38545 and objectstack-ai#38598, and objectstack-ai#38679 and
objectstack-ai#38401, which two of the notes point back to. The newest comment on the
card when this was opened is the claim amendment, 7296007044; a row
added after it is not in this pull request.

### Where a note differs from its row

- **ADR-0161, Consequences.** The row says the service keeps a sync
state per source. On the tree that state is a durable record only where
the knowledge plugin can keep it, with its object registered and a data
engine bound. Otherwise the last build is kept in the process and failed
syncs are not counted. The note says both. It also says what the row
asks for: the stored fingerprint and recipe hash are still what a build
is decided from, at boot and on reload alike.
- **ADR-0161, K7.** The row says no fingerprint value moves. That is
true of the change that brought the table in, and the note says so in
those terms. It is not true of every entry since: one strategy's entry
has been raised on `main` for a change to its own passages. So the note
writes no version value, and says that an entry raised since was raised
for its own strategy.
- **ADR-0161, the header.** This record lists every dated note in its
header, one "Amended" line each. The two notes add two such lines, the
seventh and the eighth. That is the record's own convention and it is
why the file gains 17 lines for two notes.
- **ADR-0085.** The first pull request of this card wrote a note dated
2026-11-30 that says "The second half stands". That sentence was true
for one day. The new note is placed under it and names both sentences it
is read with; neither older note is edited. It does not repeat what the
2026-11-30 note says of `pinOverview`. The three tiers are read from the
code: the list of field tabs is built with no regard to the tier. No
test names the three tiers one by one.
- **ADR-0084.** The row asks for the entry count as it now stands. The
note names the entries and writes no number, since a count in a record
goes stale with the next entry. The row names two sentences that count
four entries with no note beside them: the one that opens "Entries that
are not a type", and "Of the four entries that are not a type, the
cross-package directory is to leave the menu", in the note of 2026-11-26
under "The two tiers". The note reads both. It also reads a third, which
the row does not name and which has no note either: "The four entries
that are not a type are 高级 on a package", under the same heading, quoted
as it renders (the record links part of it). So the note says three. As
first pushed, the note said two and left out the sentence the row asks
about; the contract review found it, and `128528c5` corrects the note.
The row names three pull requests. The note names four and says which
did which part: the door itself was built by objectstack-ai#38185. The note stays in
step with the two ADR-0084 notes of the first pull request, which it
does not touch.

## Tests

Docs only. No package source is touched, so no package test and no type
check is owed for the change. No tested behaviour changed, so there is
no ablation.

Checked on the committed text:

- Each phrase a note quotes from its ADR is in that file as it stands on
`main`. A script compared them. One quotation, in the ADR-0084 note,
reads as the sentence renders.
- Each path a note cites exists on the tree, and each of the seven
symbols a note anchors is a declaration in the file named. `pnpm
check:adr-symbol-anchors` judges the same and is green.
- A probe on the spec source: `ObjectSchema` accepts `fieldTabs` with a
declared group. It refuses a group the object does not declare, a group
two tabs name, and a repeated `key`. `ObjectExtensionSchema` refuses
`fieldTabs` as an unrecognised key, with its guidance.
-
`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts`
reads ADR-0084's type table from disk. It was run under the verify lock
on the final commit `128528c5`: `Test Files 1 passed (1)`, `Tests 21
passed (21)`. It read the same on `808e249f`, the first commit of the
notes.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 21 commands, run on the final commit `128528c5`. Each
exit code was captured before any pipe. Reconciliation: `Run
reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN`. The same
21 were derived and run on `808e249f` and on `f7bae5cfb`, with the same
result. On `128528c5` the derivation warns that the branch is one commit
behind `main` and that one file it derives from changed there. The
branch does not merge `main` again while this pull request is open and
mergeable, so the list was derived a second time on a throwaway tree of
`main` (`d97aaaea9a`) plus this branch: the same 21 commands, and no
warning.

<details><summary>ADR gates on 128528c (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4606
anchors across 165 records resolve — 1726 symbol (1697 declaration, 29
literal)`, 0 line anchors survive. Seven of the symbol anchors are new
with this change. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored
file(s), every governing ADR still referenced` |
| `pnpm check:adr-index` | 0 | `adr-index --report: OK —
docs/adr/README.md is current, every record parsed` |
| `pnpm check:doc-authoring` | 0 | |
| `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29077 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm check:pm-governed-merges` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building the build closure of `@objectstack/lint` under
the verify lock |

</details>

<details><summary>The other derived families on 128528c (all exit
0)</summary>

`node scripts/check-closing-keyword-parity.mjs` and its `--self-test`,
`node scripts/check-comment-mask-corpus.mjs` (`24511 files, 0 disagree,
0 unparseable`), `node scripts/ci/plan-test-core-shards.mjs
--self-test`, `pnpm check:ci-filter-parity`, `pnpm
check:cross-package-test-inputs`, `pnpm check:driver-memory-census`,
`pnpm check:gitlink-declared`, `pnpm check:pm-prior-rulings`, `pnpm
check:refd-timer-probe`, `pnpm check:watch-hint-literal`.

Before the last push: `node scripts/check-commit-card-trailers.mjs
--range origin/main..HEAD` exit 0, three commit messages, no card
relation and no model identifier in the trailer pair.

</details>

<details><summary>The overlap check answers exit 1 against one open pull
request, objectstack-ai#38812; the reading is below</summary>

`node scripts/pm/overlap-check.mjs` on `128528c5`:

- Against `main` (`d97aaaea9a`): `origin/main: merges cleanly`.
- Against the open pull request objectstack-ai#38812 (a draft opened after this one,
head `f3cd7dba76`, one file, 17 lines added to ADR-0161): `VERDICT
overlap exit 1`, with the conflict named in the ADR-0161 file. No other
open pull request shares a file with this branch.

What the conflict is made of, measured on the two heads:

- Both add to the header list of dated notes in ADR-0161, at the same
place, under its sixth line. This branch adds two lines, "a seventh
dated note" and "an eighth dated note". objectstack-ai#38812 adds one line, and it
also says "a seventh dated note".
- That is the only conflict hunk. The notes themselves sit apart and
merge: this branch's under K7 and under Consequences, the other's under
K8 with a cross-reference at K1.

So this overlap is real, and it is more than text: the two pull requests
number their notes from the same count. Whichever lands second has to
merge `main`, keep all three header lines, and renumber its own. See the
acceptance notes.

An earlier reading, on `f7bae5cfb`, answered 1 against the approvals
trunk, objectstack-ai#38497. That pull request has since ended without a merge
(2026-12-01T01:02Z), and the check no longer lists it.

</details>

Not run locally: the repository test project behind `test:repo`, and
every package suite. CI runs them on the pull request and on the merge
group. Every other family CI runs is read from this pull request's check
runs, not re-run here.

## Acceptance notes

- **Changeset.** None, and the pull request carries `skip-changeset`.
`docs/adr/**` ships in no package.
- **Governed surface.** `docs/adr/**` lands on the maintainer's
approval. This pull request stays a draft; the seat arranges the review
at the tier this surface owes and hands it over.
- **Why this one ends the card.** The card says it ends when its pull
request merges. Seven rows landed with the first pull request and these
four are the rest, so every row is carried. The card is open and is not
waiting on a decision.
- **Claim binding.** The claim amendment, 7296007044, names this branch
on a line spelled `Branch (round 2):`, which the guard "The card this PR
closes must claim this branch" does not read. The seat restated the
claim in the shape the guard reads (comment 7296908473 on the card), and
the guard is green on this pull request.
- **Landing order against objectstack-ai#38812.** Both pull requests add header lines
to ADR-0161 at the same place, and both call their note the seventh; the
overlap check answers 1 for that file. Whichever lands second merges
`main`, keeps all three header lines and renumbers its own. If this one
lands second, its two lines become the eighth and the ninth. If objectstack-ai#38812
lands second, its line becomes the ninth. The seats set the order: this
pull request first, by claim stamp (seat 2's `Notify: serial · objectstack-ai#38676
behind objectstack-ai#38438`, mailbox objectstack-ai#38766 comment 7297489558); objectstack-ai#38812 renumbers its
line after this lands.
- **Seen and left alone.** Outside the four rows, and not changed here.
- ADR-0084's table "What the amendment replaces" has a row on the
cross-package directory that says "In force until it moves". The
amendment of 2026-11-26 moved that entry to Setup, and the menu model on
this tree has no entry kind for it. A candidate row for the next weekly
card.
- The items the first pull request of this card listed under this
heading stand as listed there.

## Verification

### Read first

1.
`docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md`,
the note of 2026-12-01 under the list of Consequences. The highest-risk
hunk: it says a sentence of the record no longer describes `main`, and
it draws the line between the state a build is decided from and the
state that only reports. Check the sentence pair "Where the knowledge
plugin can keep it" and "Otherwise", and the bullet "What decides a
build is unchanged".
2. `docs/adr/0084-application-builder-information-architecture.md`, the
amendment of 2026-12-01 under the table "What the amendment replaces".
It says which of four pull requests did which part, it names the three
sentences that count four entries, and it names a package's menu entries
where the record counts them. Check the four attributions, the three
quoted sentences and the four names.
3. `docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md`,
the note of 2026-12-01. It answers a sentence that the note of the day
before wrote, and its claim of three tiers is read from code with no
test that names them. Check the tier sentence and the list of what the
parse refuses.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect three
rows under `docs/adr/`, each with `0` in the removed column, and 43
added lines in total (2, 24 and 17). Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`anchors across 165 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzhPdWmTd47Fi2bKYZS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue security size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants