Repository navigation
docs(adr): ADR-0084 records the ~org Changes + Publish home in the homes table - #37927
Conversation
…p bar's homes table The package-less ~org scope draws no 概览 Overview, so the pending-changes button and Publish, which the 2026-11-26 amendment sends to 概览's Pending tab, live there in the left column's Changes row (StudioScopePendingRow), which opens the existing changes sheet. One row and one dated mark; no other row changes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzqYghcpTQ2yaJPJbE
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 Contract reviewServed-tier: PR #37927 for card #37685. The diff is one file, +3 −0: one table row and one dated mark in ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
The row:
The mark:
Tried to break it:
No must-fix, no should-fix. Nits, both left as accepted deviations (a fix would move this head):
Check-runs on this head, read at review time:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 L1-b, the seat's L1 thread for zone o3-studio · 2026-11-27T11:57Z 席位核对 — L1 ACCEPT @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-27T12:00Z.
席位意见:可以合。我读了这 3 行 diff 和契约审核对每一句事实的核对:「只在 席位核对 — ACCEPT · repo:objectstack#3 · head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU 维护者速读
|
…rites it as a no-row entry (objectstack-ai#37945) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoCsxJcMyC43e5vqVhNB7PYu)_ Fixes objectstack-ai#37920 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:App Studio 左侧菜单「平台」组里不再有「数据源」这一行,⌘K 搜索面板里也没有了;数据源只在「设置 › 集成」里管。「全部类型」目录仍列数据源,点开去设置。 - 为什么做:App Studio 改版专题里你的决定 12:连接是绑在环境上的配置,归设置管,Studio 只开发软件包。 - 出错会怎样:只少画菜单里的一行,不动数据、不动设置页,直接撤回即可恢复。 - 要你做什么:这个 PR 改了受管文档(架构决策记录 ADR-0084 的类型表一行),审核通过后请你或 os-zhuang 批准合并。 ## What changes - **The menu draws no `datasource` row, in any scope.** `studioMenuPlacement.ts` drops the row and adds `STUDIO_MENU_NO_ROW_TYPES = {'datasource'}`; `buildStudioMenu` skips a type in that set before it places anything, on a package, on `~org` and on `~all`. Removing the placement row alone would not do it: the menu's own rule draws a type with no row in 高级 at the end of its group ("never invisible", objectstack#37201), so the no-row set is the exception that rule now names. - **Retired, because they served only that row:** the `datasource` branch of `typeEntryPath` (it routed the row to Setup's Datasources page) with its `SETUP_DATASOURCES_PATH` import, and the row's `Database` icon in `StudioMenu.tsx`. - **The ⌘K palette follows.** It lists the menu's own entries (`buildStudioMenu`), so its `type:datasource` entry goes too; `StudioPaletteGroups.surfaceScope-36900.test.tsx` is re-pointed. - **What stays, and why:** `SETUP_DATASOURCES_PATH` (the directory tile and the area's `datasource/*` redirect read it); `STUDIO_PALETTE_ITEMLESS_TYPES` (the palette's item reads still run over the directory-scoped types, which include `datasource`, so it still keeps the palette from reading datasource items; only its docblock changes); the type's `system` registration; `HIDDEN_DIRECTORY_TYPES` (untouched). - **ADR-0084, the type → group table:** the `datasource` row becomes a no-row entry like `field`'s (`| — |` for Order and Tier, last in its group), `external_catalog` moves from 7 to 6, and one dated note under the table names this card. 平台 Platform still counts 7 table rows (six with an order, and `datasource`), so no count changes. Drafted by an isolated contract-review-tier subagent at effort xhigh. The stale whole-table counts and the `knowledge_source` row are objectstack-ai#37740's, not this PR's. ### Card question (a): does 全部类型 still list `datasource`? Yes. Read on the booted showcase (this branch): `/studio/com.example.showcase/metadata` draws a Datasource tile linking to `/apps/setup/metadata/datasource` (`DirectoryPage.tsx`, `href={host && e.type === 'datasource' ? SETUP_DATASOURCES_PATH : undefined}`), because `scopeDirectoryEntries` hides only `field`, `package` and `form`. This matches ADR-0084: the amendment's sentence is "**The menu draws no `datasource` row**", about the menu alone; the directory keeps one entry for the type in 平台 Platform (one type, one group), and the tile leads to Setup, so a connection is still managed in Setup alone and nowhere in Studio. No mismatch to report; the directory is unchanged, as the claim requires. ## Tests - `studioMenuModel.test.ts`: a new block "the menu draws no datasource row" — on a package, `~org` and `~all`, with `setupDirectory` true and false, a served, counted, settled `datasource` draws no entry and no entry leads to Setup's Datasources page, while `api` and `external_catalog` beside it do; a package whose only `system` type is `datasource` draws 平台 Platform with diagnostics alone, in the fold; on `~org`/`~all` it leaves no 平台 Platform group. The package-scope keys test is rewritten on purpose (`system: ['diagnostics']`), marked in a comment. - `studioMenuPlacement.test.ts`: the registry pin reads "every listable type has one row, unless the menu draws no row for it"; a new pin says `datasource` is registered `system`, the directory lists it, and it has no row; the 高级 order literal drops it; a new 平台 Platform group pin; the ADR pin passes against the table as this PR leaves it. - Local, from `ui/`, under the verify lock: `npx vitest run packages/app-shell/src/views/studio-design/` — `Test Files 280 passed (280)`, `Tests 2322 passed (2322)`, `VERDICT command-exit 0`. `studioMenuPlacement.test.ts` alone on the final ADR text: 19 of 19, `VERDICT command-exit 0`. ## Acceptance notes - Two ADR-0084 sentences outside the table become dated history rather than live text, left as is (the card says no other ADR text): line ~463, "`datasource`'s and `form`'s still wait for their changes", and the 2026-11-25 silent item 1's order "`translation` · `api` · `datasource` · `external_catalog`". Both now point at, or are superseded by, the new note under the table. carrier: none — noted, not filed. ## Verification Read first, by risk: 1. `ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts`, `buildStudioMenu`: the one `continue` on `STUDIO_MENU_NO_ROW_TYPES`. 2. `docs/adr/0084-application-builder-information-architecture.md`, the 平台 Platform rows and the new note. 3. `studioMenuPlacement.test.ts`: `LISTABLE_TYPES` now excludes the no-row set. Two-minute check: `cd ui && npx vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts packages/app-shell/src/views/studio-design/studioMenuModel.test.ts` — both pass. Browser (showcase booted from this branch, `ui/` console over HMR, seeded admin): the showcase holds two datasources (`default`, `showcase_external`; `GET /api/v1/meta/datasource` 200). On `/studio/com.example.showcase/metadata/object` with the 高级 fold open, 平台 Platform reads Documentation 8 · Documentation Book 1 · Email Template 1 · API Endpoint 3 · Diagnostics, and no Datasources row; no other group lists it either. The screenshot is kept with the project thread (`card-37920/studio-menu-platform.png`). <details><summary>Local gates</summary> Derived with `node scripts/pm/dispatch-gates.mjs --commands` at a45fff4; reconciliation: "48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED (a DERIVED zero)". - `node scripts/check-adr-0087-registration.mjs --base origin/main` :: exit 0 - `node scripts/check-adr-0087-registration.mjs --self-test` :: exit 0 - `node scripts/check-adr-links.mjs` :: exit 0 - `node scripts/check-adr-links.mjs --self-test` :: exit 0 - `node scripts/check-changeset-no-major.mjs --base origin/main` :: exit 0 - `node scripts/check-closing-keyword-parity.mjs` :: exit 0 - `node scripts/check-closing-keyword-parity.mjs --self-test` :: exit 0 - `node scripts/check-comment-mask-corpus.mjs` :: exit 0 - `node scripts/check-empty-changeset.mjs --base origin/main` :: exit 0 - `node scripts/check-empty-changeset.mjs --self-test` :: exit 0 - `node scripts/check-sdui-manifest.mjs` :: exit 0 - `node scripts/check-sdui-manifest.mjs --self-test` :: exit 0 - `node scripts/ci/plan-test-core-shards.mjs --self-test` :: exit 0 - `node scripts/ci/snapshot-next.mjs --self-test` :: exit 0 - `node scripts/pm/check-governed-queue-guard.mjs --self-test` :: exit 0 - `node scripts/pm/release-rehearsal-clone.mjs --self-test` :: exit 0 - `node scripts/release-pending-publish.mjs --self-test` :: exit 0 - `pnpm --filter @objectstack/lint run check:doc-formula-expressions` :: exit 0 - `pnpm --filter @objectstack/spec run check:duration-unit-keys` :: exit 0 - `pnpm check:adr-anchors` :: exit 0 - `pnpm check:adr-index` :: exit 0 - `pnpm check:adr-symbol-anchors` :: exit 0 - `pnpm check:changeset-gate-self-tests` :: exit 0 - `pnpm check:ci-filter-parity` :: exit 0 - `pnpm check:closed-ceremony-text` :: exit 0 - `pnpm check:cross-package-test-inputs` :: exit 0 - `pnpm check:dispatcher-error-vocabulary` :: exit 0 - `pnpm check:doc-authoring` :: exit 0 - `pnpm check:driver-memory-census` :: exit 0 - `pnpm check:engine-double-contract` :: exit 0 - `pnpm check:gitlink-declared` :: exit 0 - `pnpm check:nul-bytes` :: exit 0 - `pnpm check:pm-governed-merges` :: exit 0 - `pnpm check:pm-prior-rulings` :: exit 0 - `pnpm check:published-files` :: exit 0 - `pnpm check:query-options-erasure` :: exit 0 - `pnpm check:refd-timer-probe` :: exit 0 - `pnpm check:registry-log-declared` :: exit 0 - `pnpm check:rest-log-spy-declared` :: exit 0 - `pnpm check:skill-identifier-liveness` :: exit 0 - `pnpm check:test-source-alias` :: exit 0 - `pnpm check:tier-file-adoption` :: exit 0 - `pnpm check:type-check-coverage` :: exit 0 - `pnpm check:type-check-debt` :: exit 0 - `pnpm check:undeclared-dep-imports` :: exit 0 - `pnpm check:watch-hint-literal` :: exit 0 - `pnpm check:where-matcher` :: exit 0 - `pnpm --dir ui exec vitest run scripts/` :: exit 0 `node scripts/pm/overlap-check.mjs` at a45fff4: `VERDICT clean exit 0` (origin/main f926dfa merges cleanly; objectstack-ai#37927, which shares the ADR file, merges cleanly). </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibwtMGwDL8KdXqqaLLT --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibwtMGwDL8KdXqqaLLT)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Tesla · project thread
Fixes #37685
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
One file,
docs/adr/0084-application-builder-information-architecture.md, +3 lines, nothing removed:#amendment-2026-11-26-homes("Where the top bar's controls go"), directly under the pending-changes row: on the package-less~orgscope, which draws no 概览 Overview, the pending-changes button and Publish live in a 变更 Changes row with its count in the left column (StudioTopLeft.tsx#StudioScopePendingRow), drawn only while that scope has something pending; it opens the existing changes sheet, which holds Publish. Its "By" column readsnot ruled.*(Amended 2026-11-27, card #37685: …)*form: why the row exists (the pick sends Changes + Publish to 概览,~orghas none), that it was built first by the top-bar removal (App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456, PR feat(studio): Studio's top-left rows, the package switcher and the rail #37579) and is recorded after the fact as that change's contract review asked (comment 7202356468, finding S3), and that no other row changes.Not in this PR: the seat's widening comment also asked to turn the type → group table's
datasourcerow into a no-row entry. That half is withdrawn (claim comment 7217220011):studioMenuPlacement.test.tsties each table row to the code's placement list, so the row moves with the code card that removes the menu row, as #37564 did.Why
ADR-0084's 2026-11-26 amendment sends Changes + Publish to 概览's Pending tab. The package-less scope has no 概览, so the shipped code gave it a row of its own, and the ADR did not record that home. A later reader following the ADR could remove the row.
Tests
Read at
origin/main73d5e347, the code the row is written from:ui/packages/app-shell/src/views/studio-design/StudioTopLeft.tsx:84StudioScopePendingRow: a button labelledengine.studio.changes(en "Changes", zh 变更) with a count pill; drawn under the package row (:169) and as an icon on the rail (:160).ui/packages/app-shell/src/views/studio-design/StudioSurfaceFrame.tsx:210-219: passed only whenpackageId === null && !allScope && shownPendingCount > 0, so on~orgalone and only while something is pending; it opens the changes sheet (DraftChangesPanel, :243-256) with Publish.Local gates on head
062fc62c, exit codes captured before any pipe:ADR gates
node scripts/check-adr-symbol-anchors.mjs→ 0 (4475 anchors across 164 records resolve; both new symbol anchors resolve as declarations)node scripts/check-adr-links.mjs→ 0 (1263 relative links resolve)node scripts/check-adr-anchors.mjs→ 0node scripts/check-nul-bytes.mjs→ 0--check→ 0 (drafter's run)ADR_ROWinstudioMenuPlacement.test.ts) matches 33 lines before and after the edit, the same rows byte for byte; the new lines match 0 times.NOT MEASURED locally:
studioMenuPlacement.test.tsitself and the doc-authoring families (nonode_modulesin this container). CI runs them; the regex reading above is why the pin test is expected green.Acceptance notes
datasourcerow of the same table): the dated notes under the type → group table still read "33 entries" and "AI 4", while the table now has 34 rows and AI 5; theknowledge_sourcerow (added by feat(spec,service-knowledge)!: knowledge_source is a governed metadata type with its loader, its registry and two authoring guards #37676) cites item 6, which names onlyai_context, and carries no dated mark.~orgentry) is not written, since no ruling says it.Verification
Read first: the new row under the pending-changes row in
#amendment-2026-11-26-homes, then the dated mark under the table. Two-minute check:node scripts/check-adr-symbol-anchors.mjsprints the green line; open Studio on~orgwith a pending flow draft and see the Changes row in the left column open the changes sheet with Publish.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (CI)main, one pull request.docs/adr/**does not publish:skip-changeset)packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibzqYghcpTQ2yaJPJbE
Generated by Claude Code