Skip to content

Commit 0b1411d

Browse files
docs(adr): ADR-0084 amended — App Studio is the entry for developing a package; two columns, no top bar (#37470)
<!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgNFUifusaHW7HJRgpb8tzNW)_ repo:objectstack#5 · os-bill · session_01Utp6CYNbcRTbq4QAT4wBXW Fixes #37451 Clause-②: no Metadata-protocol: none Container & model: `S`, `mode:thread`, `model: CONTRACT_REVIEW_TIER (mandatory for docs/adr/**; served at tier, read from the thread's session record)`, `effort: xhigh (ADR amendment, standing order)` ## 维护者速读 - 用户能看到什么变化:现在没有,这次只改架构记录的文字。它写定了 Studio 的新外框:去掉顶栏改成左右两栏,左上角恢复软件包切换器(带「新建软件包」),菜单第一项是「概览」,Studio 用自己的石墨色,以及顶栏上每个按钮搬去哪。 - 为什么做:第一阶段的四张界面卡都照这份记录施工,先写清楚,开发才不会各自猜。后面几个阶段的内容也一次写进去了,分阶段实施。 - 出错会怎样:不改代码,不改发布包。合并后发现措辞不对,再修订一次即可改回。 - 要你做什么:批准合入(受管文件,需要 os-zhuang 和 hotlong 批准)。专题的 5 个问题、表单层级、「诊断」页留在哪,都按你今天的裁定写成已定,正文里没有待定的问题了。有一处你没说、我先写了:表单在「常用」里排在报表之后、紧挨视图前面(正文第 11 点)。 ## What changes Two files, text only (+229 / −8 against `main` at `a46efa8c`). No code, no test, no changeset. **`docs/adr/0084-application-builder-information-architecture.md`** gains its third in-place amendment, dated 2026-11-26. - The status line gets a third "Amended in place" entry, appended at its end, and the record gets a third note at the top. The title is unchanged, so the `docs/adr/README.md` row is unchanged (`check:adr-index` green). - A new section, **Amendment (2026-11-26)**. Each part has its own anchor, so that a child card can cite the part it builds: | Part | Anchor | Who cites it | |---|---|---| | What Studio is: the entry for developing a package; the name App Studio / 应用搭建 | `#amendment-2026-11-26-position` | every card | | The frame: two columns, no top bar; Studio's row and the package row; the restored switcher with 新建软件包; the lock; the rail; the menu's look; graphite | `#amendment-2026-11-26-frame` | #37452, #37456 | | Where the top bar's controls go (seven tenants, their homes) | `#amendment-2026-11-26-homes` | #37455, #37456 | | 概览 Overview: first entry, no `package` metadata type, header, three tabs, what Pending counts, what it may do and what stays in Setup, what phase 1 builds | `#amendment-2026-11-26-overview` | #37454; phase 2 | | Placements, and what moves to Setup (`dataset`, `position`, Diagnostics, the cross-package directory, `datasource`, and `form`) | `#amendment-2026-11-26-moves` | phase 3; #37087 | | Organization-level content, as ruled on questions 2 and 3 | `#amendment-2026-11-26-org` | phase 4 | | What the amendment replaces, and what stands | `#amendment-2026-11-26-stands` | reviewers | | Written here where the rulings were silent (ten numbered points; number 7 is kept as a pointer to its ruling) | `#amendment-2026-11-26-silent` | the approver | - Nine marks on the earlier text, each pointing at the new section: TL;DR 4; the first two bullets of the 2026-11-24 "What Studio is"; the menu's drawing; the `datasource` reading; "Entries that are not a type"; the `dataset` row of the 2026-11-24 "What stands" table; item 1 of the 2026-11-24 list; the tiers paragraph of 2026-11-25. - There is no "Open" part any more. Every question the plan put to the maintainer is answered, and each answer is written in the part it decides. **`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`** is touched in D1 only: a dated pointer in the status block; a mark on D1's scope sentence; one dated paragraph at the end of D1's 2026-11-24 amendment; and one short pointer to it, at "no metadata catalog". An earlier head also marked "diagnostics"; that mark is taken out, because the maintainer ruled that Diagnostics stays in Studio. **Not touched, on purpose:** the rows of ADR-0084's type → group table. `ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts` pins them, row by row, to the registry and the placement list. The ruled moves are written as prose, and the section says each row is rewritten, or written, in the change that moves it. **The maintainer sources** (verbatim): 1. The order that opened the area for the epic, 2026-11-26 05:27Z: 「开一个专区处理专题 37424」 2. The pick on the area's decision card, 2026-11-26 05:57Z: 「按推荐启动」, whose recommended option read, as #37451 records it: 「返回放左上第二行,⋯和发布进概览页,保存/取消放详情页头,AI放标题行右端。」 3. Questions 2 and 3, 2026-11-26 06:44Z, in the area's thread: 「同意」, to the area's proposal to rule both as recommended. Ruling record: #37424 comment 7184753035. 4. The question on the `form` type, recorded on #37451 (comment 7184972402): 「Studio 菜单还没有 form 类型是吗?怎么规划?」 5. The tier of `form`, 2026-11-26 07:36Z, in the project chat: 「表单放常用」. Ruling record: #37451 comment 7185703578. 6. Questions 1, 4 and 5 and the Diagnostics page, 2026-11-26 08:56Z, in the area's thread: 「同意」, to the area's recommendations. Ruling record: #37451 comment 7187264388. The maintainer's words on the design itself are the quotations in epic #37424's body; the new section quotes them where each one decides something. **Each ruling, and where it is written:** | Ruling | Record | Written in | |---|---|---| | Question 1 = B: disable, enable and delete stay in Setup; 概览 carries authoring actions and a "Manage in Setup" link | 7187264388 | `-overview` ("What 概览 may do, and what stays in Setup"); `-position`; ADR-0146 D1's paragraph, "Not changed here" | | Question 2 = A, question 3 = C: organization-level content | 7184753035 | `-org` | | Question 4 = yes: `dataset` and `position` are common types, placed by name | 7187264388 | `-moves` (their two bullets; "The rule of 2026-11-25 is not reworded"; the three order lists) | | Question 5: the cross-package directory goes to a Setup group that holds access pages, not Diagnostics | 7187264388 | `-moves`; ADR-0146 D1's paragraph | | Diagnostics stays in Studio, reading the open package (the point this PR had raised as item 7) | 7187264388 | `-moves`; ADR-0146 D1's paragraph; item 7 is now a pointer | | `form` is a common type | 7185703578 | `-moves`; item 11 | **Read first** (by risk): 1. Each ruling against its record, using the table above. The text should add nothing to a record. Where a ruling changes one of the epic's numbered decisions (9, 11, 12), the "Decided by" part lists which and says the ruling decides. 2. The named placements. Three types join the ten common types of 2026-11-25, which makes thirteen. The rule of that day is not reworded: it already says that a type the maintainer places by name goes where the name says. 3. The `form` point (item 11). The ruling gives the tier and not the place inside it; the text lists `form` last of the group's common types, after `report`, which is directly before `view`. 4. ADR-0146 D1: only the scope sentence and one catalog (the cross-package directory) are marked. D1's "diagnostics" stands as written. 5. The table of the top bar's seven tenants, and items 3 to 6 of the "silent" list. **Two-minute verification**: `cd ui && pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts` → `Tests 12 passed (12)`. It reads ADR-0084 and proves the table pin still holds. ## Tests n/a — `docs/adr/**` text. The one test that reads ADR-0084 was run and passes (above). ## Acceptance notes - **The card's acceptance, line by line.** One PR amending ADR-0084 and the ADR-0146 wording that moves: this PR. Each phase-1 child card can cite a section: the first table above. The body quotes the maintainer sources: above. "Questions 1 to 5 appear as open" was written before the maintainer answered them: all five are now written as ruled, each citing its record. - **Three reworks after the first push**, each on a ruling or a note that arrived later. `44069a71`: organization-level content as ruled, and a place for `form`. `6e55cbb8`: `form` as a common type, on 「表单放常用」. `2520f4d3`: questions 1, 4 and 5 and the Diagnostics page as ruled; the "Open" part removed; ADR-0146's mark at "diagnostics" taken out. - **Past the card's words; each is a numbered item in the record, for the approver.** - The top bar holds seven things, not five. The menu's show/hide control goes to Studio's row (decision 3). The "create app" button for a package with no app is given no home (item 5). Below 768 px the menu is a drawer and a strip keeps its opener (item 4). - Decisions 8 and 12 are written, though the card lists 1–6 and 9–10 (item 9). The card's own summary asks for the Setup moves to be written once. - Where the switcher lands and what it lists (item 3); Save and Cancel on a page that is not an item (item 6); the order around `dataset` and `position` (item 8); where `form` sits among the common types (item 11). - **Item 7 keeps its number and is now a pointer.** It had set the epic's decision 12 (Diagnostics to Setup) beside the 2026-10-30 ruling in ADR-0146 D1. The maintainer ruled that the earlier word holds. The ruling record names the point "item 7", so the number stays and the later items are not renumbered. - **`form`: the tier is ruled, the place inside it is this record's.** Group: the interface group, its registered domain. Tier: common, by the maintainer's words. Place: fifth of the group's common types, after `report`. The area had recommended the place directly after `view`; a common type cannot take it, because the menu lists a group's common types before its advanced fold, so the text puts `form` directly before `view` instead. ADR-0159 D10 says ADR-0084 needs no change for `form`; that was written before the table took one pinned row per type, and the "What stands" table says so. PR #37422 (card ② of ADR-0159) keeps `form` off Studio's directory, so the row is #37087's to write. - **Which Setup entry the cross-package directory becomes is left to its card.** The ruling says a group that holds access pages, and not Diagnostics; it names no entry, and the text names none. - **ADR-0146 is touched in more than one sentence.** The card speaks of "the one ADR-0146 sentence on the split". Decision 12 moves one thing D1 gave Studio, the cross-package directory, and D1's "no metadata catalog" would contradict ADR-0084 without a mark. The claim was amended before the edit (comment 7184713180 on #37451); the final text marks less than the claim allows. - **ADR-0070 is not edited.** The ruling on questions 2 and 3 restates its D1 and D5; the text leaves those marks to the phase-4 cards that carry the ruling out. Its D2 as amended stands by the ruling on question 1. - **The claim was written by this thread**, as the area's dispatch order asked (comment 7184414899), and amended once. - **Tier H by path.** `docs/adr/**` (AGENTS.md Prime Directive #14): approvers os-zhuang and hotlong, and the maintainer merges. The PR stays a draft. The `Rule-change` line is left out, as the template asks for a diff that does not touch `.claude/**`. - **No changeset.** `docs/adr/**` is not published; `skip-changeset` is declared with the create. ## Verification - Gate list derived on the final head `2520f4d3`: `node scripts/pm/dispatch-gates.mjs --commands` → 21 commands (2 paths against merge base `a46efa8c`). - All 21 exited 0 on `2520f4d3`, each exit code captured before any pipe. The same 21 were green on the four earlier heads. On the very first pass `check:doc-formula-expressions` exited 3 (a prerequisite was not built, nothing measured); after `@objectstack/formula` and `@objectstack/lint` were built under the verify lock it exited 0, and on every head since. - `--ran` reconciliation on `2520f4d3`: `21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3)`. - Five commits: the amendment (`642bb640`); three wording fixes found on a read-through (`df25621c`); and the three reworks above (`44069a71`, `6e55cbb8`, `2520f4d3`). The first commit's message was reworded before anything was published, because the pre-push hook refuses a commit message that names its card; no published history was rewritten. - The table pin: `studioMenuPlacement.test.ts`, 12 of 12 passed on `2520f4d3`, under the verify lock. - Quotations: every 「…」 the diff adds was matched as a substring of its source (the epic's body, the card's body and comments, the ruling records, or ADR text already on `main`). - `overlap-check.mjs` on `2520f4d3`: clean against `origin/main` `df0894a6` and 0 PR heads. `main` has moved since the branch was cut; it touched neither ADR, the placement list, the registry nor Setup's groups, so the branch was not merged up. PR #37422 was read by hand: it does not touch either file. - `dispatch-gates --tier`: `docs/adr/**` is the mandatory contract tier; changed lines 237 against the human-merge threshold 3000: under. - `check-prior-rulings --paths` on the two files at `a46efa8c`, read before the edit: the 2026-11-24 and 2026-11-25 amendments are the rulings in force; this PR amends the first's position and top-left sentences on the maintainer's 2026-11-26 words and leaves the second's tier rule standing. - CI-owned families (type-check lanes, artifact rosters, `test:repo`, the always-runs tail) are this PR's check-runs. ```text Local gates (21, each exit 0) node scripts/check-adr-links.mjs [+ --self-test] node scripts/check-closing-keyword-parity.mjs [+ --self-test] node scripts/check-comment-mask-corpus.mjs node scripts/ci/plan-test-core-shards.mjs --self-test pnpm --filter @objectstack/lint run check:doc-formula-expressions pnpm check:adr-anchors · check:adr-index · check:adr-symbol-anchors pnpm check:ci-filter-parity · check:closed-ceremony-text · check:cross-package-test-inputs pnpm check:doc-authoring · check:driver-memory-census · check:gitlink-declared pnpm check:nul-bytes · check:pm-governed-merges · check:pm-prior-rulings pnpm check:refd-timer-probe · check:watch-hint-literal ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Utp6CYNbcRTbq4QAT4wBXW <!-- signed: repo:objectstack#5 · os-bill · session_01Utp6CYNbcRTbq4QAT4wBXW --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent b0505c0 commit 0b1411d

2 files changed

Lines changed: 229 additions & 8 deletions

0 commit comments

Comments
 (0)