Skip to content

docs(adr): ADR-0084 records the ~org Changes + Publish home in the homes table - #37927

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-fw8xco
Nov 27, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-fw8xco

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #37685

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:没有。只是把已经上线的做法写进 Studio 的设计文档:组织级(不属于任何软件包)没有「概览」页,它的待发布变更和发布入口是左栏那一行「变更 N」。
  • 为什么做:App Studio 改版专题的一处记账,避免以后有人照文档把这一行删掉。
  • 出错会怎样:只改文档,不影响运行;不对可直接撤回。
  • 要你做什么:审阅并合并这条设计文档修改(受管面,需你亲手合并)。

What changes

One file, docs/adr/0084-application-builder-information-architecture.md, +3 lines, nothing removed:

Not in this PR: the seat's widening comment also asked to turn the type → group table's datasource row into a no-row entry. That half is withdrawn (claim comment 7217220011): studioMenuPlacement.test.ts ties 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/main 73d5e347, the code the row is written from:

  • ui/packages/app-shell/src/views/studio-design/StudioTopLeft.tsx:84 StudioScopePendingRow: a button labelled engine.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 when packageId === null && !allScope && shownPendingCount > 0, so on ~org alone 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 → 0
  • node scripts/check-nul-bytes.mjs → 0
  • ADR index --check → 0 (drafter's run)
  • The pin test's row regex (ADR_ROW in studioMenuPlacement.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.ts itself and the doc-authoring families (no node_modules in this container). CI runs them; the regex reading above is why the pin test is expected green.

Acceptance notes

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.mjs prints the green line; open Studio on ~org with a pending flow draft and see the Changes row in the left column open the changes sheet with Publish.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind. (none added)
  • 3. No formatter ran; pnpm lint passes. (CI)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (docs/adr/** does not publish: skip-changeset)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (the 速读 block is the maintainer's Chinese channel)

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibzqYghcpTQ2yaJPJbE


Generated by Claude Code

…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
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 27, 2026
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 062fc62c9d56a0ec0e7a13585b4891dec1eb8bee
Local-runs: none
Scope: docs/adr/0084-application-builder-information-architecture.md + none
Security-touching: no
Rule-change-verified: none

PR #37927 for card #37685. The diff is one file, +3 −0: one table row and one dated mark in #amendment-2026-11-26-homes. The head's merge base is origin/main 73d5e347, the commit the mark says it read. Cited code was read at that commit; nothing was built or run.

① Derived judgments

  • Accept-sets: none change. No schema, validator, gate or code is in the diff.
  • Public surface: none changes. docs/adr/** is not published. The row describes a control that already ships (PR feat(studio): Studio's top-left rows, the package switcher and the rail #37579, merged as 41113807).
  • The ADR's homes table gains a home no ruling gave. Right, and stated as such: the By column reads "not ruled — the note below", and the mark says no ruling gives it and that the merge accepts it. That is the form this ADR already uses for unruled items ("Merging accepts them", #amendment-2026-11-26-silent).
  • The type → group table is untouched. Right: the pin test ties its rows to the placement list, so they move with code. The claim comment 7217220011 withdrew the datasource half of the seat's widening for that reason, and the diff matches the claim.
  • The card's "no second table of the pinned row shape" holds. The new row has no bold first cell, so the pin test's ADR_ROW does not read it.

② Semver level

  • No changeset, and the PR carries skip-changeset. That matches a diff that publishes nothing. Check Changeset concluded success on this head.
  • Clause-②: no on the PR body is right: nothing an author may write is accepted, refused or narrowed by this diff. Metadata-protocol: none is right for the same reason.

③ Boundary flags

④ Design judgment

docs/adr/0084-application-builder-information-architecture.md — judged against its first consumer, the shipped code at origin/main 73d5e347, and against the ADR's own surrounding text. Every factual sentence holds.

The row:

  • "the package-less scope (~org), which draws no 概览" — holds. studioMenuModel.ts#studioMenuOverviewEntry returns null unless the scope is a package. Item 1 of #amendment-2026-11-26-silent says the same, so the mark's "item 1" link is right.
  • "A 变更 Changes row with its count, in the left column under the package row" — holds. StudioTopLeft.tsx:169 draws StudioScopePendingRow directly after StudioPackageRow. The label is engine.studio.changes: "Changes" in en, 变更 in zh. The count is the pill at :108-116.
  • "drawn only while that scope has something pending" — holds. StudioSurfaceFrame.tsx:210-219 passes scopePending only when the count is above zero. While a save is still behind the feed the count is floored at 1 (studioSurfaceDrafts.tsx:182), which is still something pending.
  • "It opens the changes sheet that exists, and Publish is in that sheet" — holds. onOpen sets changesOpen, and the frame's one DraftChangesPanel (:243-256) is the sheet. On ~org, readOnly is false (studioSurfaceScope.ts: it needs a package), so publishReadOnly is false and onPublish is passed. The panel draws its Publish footer whenever it has onPublish and lists at least one entry (DraftChangesPanel.tsx:2106).

The mark:

  • "its fourth row" — holds: way back, ⋯ menu, pending changes, then this row.
  • "card App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456, which removed the top bar, gave that scope a row of its own" — holds. The component's own comment names objectstack#37456, and PR feat(studio): Studio's top-left rows, the package switcher and the rail #37579 is that card's PR.
  • "drawn on ~org alone" — holds. The condition is packageId === null && !allScope. packageId is null only on ~org and ~all (studioSurfaceScope.ts:55), so ~all and every package are excluded.
  • "it counts the drafts of the organization's own flows" — holds. On a null packageId the count is pendingEntries.filter(isOrgScopeDraft).length, and isOrgScopeDraft keeps package-less flow drafts and nothing else. The sheet lists the same set (include={isOrgScopeDraft}) and Publish ships the same set (studioSurfacePublish.ts:149), so the count, the list and the publish agree.
  • "the rail keeps it as an icon" — holds. StudioTopLeft.tsx:160 draws it compact: the icon alone, with the label and count kept for screen readers and the tooltip.
  • "the sheet it opens is …/preview/DraftChangesPanel.tsx#DraftChangesPanel" — holds; the function is exported at :1531.
  • "comment 7202356468, finding S3" — holds. That comment is the contract review of PR feat(studio): Studio's top-left rows, the package switcher and the rail #37579, the link's URL is its html_url, and its S3 asks for exactly this docs/adr follow-up.
  • "The top bar still held seven things: the row is a second home for the third" — holds. The section's opening count ("seven things. Five … one … one") is unchanged and still true, because the new row adds a home and not a thing. The third thing is the pending-changes button with Publish.
  • "No other row changes" — holds. The diff is add-only.

Tried to break it:

  • A package or ~all drawing the row — refused by the condition above.
  • A sheet with no Publish — on ~org that needs publishReadOnly, which needs a package. With zero entries the footer is not drawn, but then the row is not drawn either.
  • The pin test. ADR_ROW requires a bold first cell, a backticked domain, a number, a backticked type and a tier cell. The new row and the mark match none of it. The regex matches 33 lines on origin/main and 33 on this head, and the diff removes nothing, so the rows the test reads are byte for byte the same.
  • A contradiction with the frame section's "the rail keeps the app's logo and the way back". None: that sentence lists what decision 3 keeps, and the mark states the one addition on ~org.

No must-fix, no should-fix.

Nits, both left as accepted deviations (a fix would move this head):

  • The row does not link #amendment-2026-11-26-org, where the ~org entry's retirement is written. A reader finds it one section down.
  • The home is recorded in a mark, not as a numbered item of #amendment-2026-11-26-silent. That list was accepted by an earlier merge, so a mark is the more honest place.

Check-runs on this head, read at review time:

  • Success: Check Changeset, Check PR Size, Check Documentation Links, Governed Surface Queue Guard, PR-body guards, Lint · PM dispatch-gates, Lint · scoped · query-options erasure, Dogfood Regression Gate, Test UI (the aggregate), Auto Label, filter.
  • Still pending, not waited on: Lint · docs & code guards (the family that holds the ADR anchor, link and index gates), Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · ESLint, Type Check · source gates, Type Check · consumer gates, Test Core (1/10). None has concluded failure. The record's verdict is on the contract; the seat reads these conclusions before it asks for the merge.
  • Not run on this head: the UI test shards were skipped by the path filter, so CI did not execute studioMenuPlacement.test.ts here. The card's "stays green" rests on the reading above, which is conclusive for an add-only diff with no line the regex matches. Observation outside the diff, ungraded: an edit to this ADR can change that test's result without CI running it. Worth a card for the CI owner.

Implemented-by: claude/project-thread-fw8xco
Reviewed-by: session_01L9qibwsYQqi3TBx2SFE978

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978

L1-b, the seat's L1 thread for zone o3-studio · 2026-11-27T11:57Z

席位核对 — L1 ACCEPT @ 062fc62c9d56a0ec0e7a13585b4891dec1eb8bee

Verdict: ACCEPT. The at-tier contract review 7217478459 (PASS, tier verified on the reviewer's transcript, No must-fix, no should-fix.) is posted above on this head.

Read at this head

  • Shape (l1-face.mjs --pr 37927, CLEAN): draft, base main, first line Fixes #37685, no closing keyword next to another card, one file, +3/−0, no release path, no published package, skip-changeset (docs/adr only, hung by the card thread through the relay, not refused).
  • Fixes is right. The card body asks for the one ~org row; the seat's widening (the datasource tier row) was withdrawn in claim 7217220011 and is carried by App Studio 改版(3-4):Studio 菜单去掉「数据源」一行——数据源只在「设置 › 集成」里管 #37920, whose body names the ADR row rewrite. Merging delivers the whole card as claimed.
  • Sentences read in person against origin/main: the row's code anchors (StudioTopLeft.tsx#StudioScopePendingRow, DraftChangesPanel.tsx#DraftChangesPanel) resolve, and "Merging this note accepts it" follows the ADR's own form for unruled items ("Merging accepts them", three places in the file). The rest of the row and the mark were judged sentence by sentence in ④ of the record.
  • Checks: 26 success, 23 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check are success. mergeable_state is clean.
  • The pin test was not run by CI here (the UI shards are path-filtered out). The record's reading stands in for it: ADR_ROW matches the same 33 lines before and after, and the diff is add-only. Accepted for this head.

The author's three flags

  1. Status and Refs lines not naming ADR-0084:在「去处」表里补一行——组织级(~org)的变更与发布入口 #37685: accepted as is; in-place marks inside an existing amendment are recorded by their own mark ([Decision] Studio「高级」里一条都没有的类型(如邮件模板、文档、字段映射),从哪里新建第一条 #37360, App Studio 改版(3-1):数据集归到「数据」组并放常用,岗位放常用——注册表 domain ui→data、菜单点名放置、ADR-0084 表格同步 #37564).
  2. "Merging this note accepts it" beside not ruled: consistent, and the merge is the maintainer's. Landing condition: the seat's Tier H record and hand-off must say in plain words, in the 速读, that merging accepts a home no ruling gave (the PR's 速读 says only "审阅并合并").
  3. Stale "33 entries" / "AI 4" and the unmarked knowledge_source row: Acceptance notes, carrier App Studio 改版(3-4):Studio 菜单去掉「数据源」一行——数据源只在「设置 › 集成」里管 #37920. App Studio 改版(3-4):Studio 菜单去掉「数据源」一行——数据源只在「设置 › 集成」里管 #37920's body today only says to update a count note "if one names the 平台 Platform rows"; the zone adds a line there naming these three items before App Studio 改版(3-4):Studio 菜单去掉「数据源」一行——数据源只在「设置 › 集成」里管 #37920 is dispatched.

Out of scope

  • CI blind spot (ungraded, from the record): studioMenuPlacement.test.ts reads docs/adr/0084-application-builder-information-architecture.md, but the ui path filter in .github/workflows/ci.yml does not list that file, so an ADR-only edit to the type table can red the test without the PR seeing it. Not measured: whether the merge group runs it. Handed to the seat for the filing gate (fix the filter's blind spot, not a new gate).

Before landing

docs/adr/**: Tier H. The PR stays draft until the seat's hand-off; approval goes through the seat, never the seat's own decision.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-27T12:00Z.

席位意见:可以合。我读了这 3 行 diff 和契约审核对每一句事实的核对:「只在 ~org 上、只在有待发布时画」对应 StudioSurfaceFrame.tsx:210-219 的条件;计数、列表、发布三者用同一个 isOrgScopeDraft 集合;新行没有粗体首格,studioMenuPlacement.test.ts 的 ADR_ROW 读不到它,表的 33 行前后逐字相同。

席位核对 — ACCEPT · repo:objectstack#3 · head 062fc62c9d56a0ec0e7a13585b4891dec1eb8bee

  1. 形态:首行 Fixes #37685;Clause-②: no、Metadata-protocol: none;1 个文件 +3 / -0;skip-changeset(docs/adr 不发布)。
  2. 前提实测:行文描述的是主干 73d5e347 上已上线的代码(StudioTopLeft.tsx#StudioScopePendingRow,PR feat(studio): Studio's top-left rows, the package switcher and the rail #37579 合并为 41113807);契约审核在该提交上逐句核对,全部成立。
  3. 门禁 check-runs:26 success、23 按路径过滤跳过、0 失败,mergeable_state clean(L1 7217675946 读)。check-governed-merges --pr 37927:docs/adr/** 受管,表格行不算纯散文附注,低风险放权不适用 ⇒ Tier H 人合。
  4. 接受的偏差:新行未链接 #amendment-2026-11-26-org;去处记在附注里、未进 #amendment-2026-11-26-silent 的编号清单(该清单已由早先的合并接受)。两条均为审核 nit,改了会动 head。L1-b ACCEPT 7217675946。
  5. 范围外去向:类型→分组表下注释里过时的「33 entries」「AI 4」和没有附注的 knowledge_source 行,由 App Studio 改版(3-4):Studio 菜单去掉「数据源」一行——数据源只在「设置 › 集成」里管 #37920(去掉「数据源」菜单行,必然改同一张表)承接,认领已修订 7217707569。数据源那一半已从本卡撤出(认领 7217220011)。CI 观察(ci.yml 的 ui 路径过滤不含 docs/adr/0084,只改 ADR 时 studioMenuPlacement.test.ts 不跑)交席位立卡门判断。
  6. 落地条款:Tier H ⇒ 维护者亲手合并,或 GOVERNED_APPROVERS(os-zhuang)批准后本席照落地前检落地。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

维护者速读

  • 改了什么:Studio 设计文档 ADR-0084 补记一行:组织级(~org)没有「概览」页,它的待发布变更和「发布」在左栏「变更 N」那一行(ADR-0084:在「去处」表里补一行——组织级(~org)的变更与发布入口 #37685)。只加 3 行文档,界面早已上线。
  • 为什么:文档没记这个已上线的去处,以后有人照文档可能删掉它;上次契约审核要求补记。
  • 风险:只改文档,可撤回。合并即接受一个没有裁定给出的去处:没有哪次裁定定过组织级的「变更」放左栏,你合并就是认可它。
  • 要你做什么:请审阅并亲手合并(受管面,Tier H);若不认可这个去处,请不合并并告诉我放哪。契约审核 PASS 7217478459,Head-sha: 062fc62c9d56a0ec0e7a13585b4891dec1eb8bee;席位记录 7217730478,L1 ACCEPT 7217675946。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 27, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 27, 2026 12:04
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-27T12:04Z. 更正席位记录 7217730478 第 5 项:类型→分组表下过时的「33 entries」「AI 4」和没有附注的 knowledge_source 行,已有卡 #37740(area:ai,挡在 #37304 后面)承接,不是 #37920。#37920 的认领扩项已撤回(修订 7217796180)。本 PR 的 ACCEPT 与交接不受影响。

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 size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADR-0084:在「去处」表里补一行——组织级(~org)的变更与发布入口

3 participants