Skip to content

Commit 56d723f

Browse files
docs(adr): amend ADR-0084 and ADR-0146 D1 — Studio's four pillars become one left menu of six domain groups (objectstack#36891) (#36921)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBTuMGhLAZx29zwDrayDGZZF)_ Fixes #36891 Part of #36890 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;这次只改两份架构决定的文字,写明 Studio 以后不再分顶部四个分区,改成左侧一个可折叠的分组菜单(数据、界面、自动化、平台、访问、AI),界面本身要等专题后面的卡做完才变。 - 为什么做:属于「Studio 重构」专题,先把分组、叫法和每种元数据类型归哪一组写定,后面的开发卡照同一份文字做,不各自发明。 - 出错会怎样:后面做菜单和详情页的开发会照错的分组或地址去做;这次没有改代码,合并前可以直接改文字,合并后要再修订一次。 - 要你做什么:看下面英文部分里「起草、未裁决」的七条(最要紧的是跨包的环境目录放进「访问」组),不同意的指出是第几条。 ## What changes Docs only, two accepted records amended in place, plus the generated index. No code, no spec, no behaviour. **`docs/adr/0084-application-builder-information-architecture.md`** - Status line gains a dated `Amended in place` entry; the title now names the menu and keeps the old words after "was:". - A new section, "Amendment (2026-11-24)", holds the decision: - Studio is the development surface of one app. Its top-left control returns to the app and names the current package's app (decision 5). The landing page goes by its own card (decision 9). - One collapsible left menu of six groups, one per registered `domain`: 数据 Data (`data`), 界面 UI (`ui`), 自动化 Automation (`automation`), 平台 Platform (`system`), 访问 Access (`security`), AI (`ai`) (decision 11). - The rule: a type's group is its registered `domain`. The key is required on every registry entry, so no type is without a group. - The type-to-group table: all 32 registered types (7 + 7 + 2 + 7 + 6 + 3), enumerated at `origin/main` `151e8123` from the spec's default registry, which holds the same 32 names as the type enum. - Four entries that are not a type: the organization's own flows under Automation, the default sharing overview under Access, diagnostics under Platform (all decision 11), and the `~all` directory under Access (drafted, see below). - A table of what stands and what is replaced, row by row against the 2026-07-01 text. - The sentences the amendment replaces are struck or marked where they stand (TL;DR 1, 2, 5, 6; the diagram; the pillar table; Settings; two principles; one consequence; the alternatives). **`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`** - Status line gains a dated `Amended in place` entry. - D1: the two sentences that kept the pillars and sent a pillar type to its pillar are marked as replaced. A dated block follows the decision: - the "All metadata" area is Studio's only entry; - an item fills the content pane, the menu stays and collapses; - one address per item, `/studio/PACKAGE/metadata/TYPE/NAME`; the object, the flow and the permission set open their designers there; pillar addresses redirect; - × , ‹ › and ⌘K change item, with no switcher and no "open in app" button (decision 7); - the ‹ › order is the list's, carried in the item's address, name order without a list context (decision 10); - the leave guard asks on every departure except the browser's Back (decision 12), anchored to the console's unsaved-edits seam; - the item tools are tabs, `?review=1` kept (decisions 8, 4); - one save model (decisions 1, 14); - a dashboard or a report opens in an app's own edit state, by the three-step rule, with "from Studio" in the address (decisions 3, 6, 15); - "New" on the two lists (decision 13), with how it stands beside the #36359 rule and the #36692 ruling that PR #36848 landed; - a table that says where each of the fifteen decisions is written. - D2, D3, D4, D8, D11 and the Consequences each carry a dated reading of their pillar or landing wording. No rule of those decisions moves. - Three new merge questions (13 to 15), a Rollout paragraph naming the epic's cards, and a Refs entry. **`docs/adr/README.md`** is regenerated by the index script: one row changes (ADR-0084's title and status cell). **Drafted, not ruled.** Each is a numbered item in its record, so an objection can name it. 1. ADR-0084 item 1: **the `~all` cross-package environment directory is entered from the 访问 Access group.** Decision 11 places the other three package-less entries and is silent on this one. The leg's directory lists four types, all registered `security`, and decision 11 puts every other such entry in the group of what it holds. Not taken: an entry of its own outside the six groups. 2. ADR-0084 item 2: **the Settings area (General and Advanced) is not a menu group.** Its types are found by the rule like every other type: `app` under UI, `hook` and `mapping` under Data, `datasource` under Platform. 3. ADR-0084 item 3: **the order of the six groups and their English names** (Data, UI, Automation, Platform, Access, AI). Decision 11 lists them in that order and names them in Chinese. 4. ADR-0084 item 4: **the record's title is reworded.** Number and file name do not move. 5. ADR-0146 merge question 13: **a pillar address keeps redirecting after the pillar routes are deleted.** From the epic's plan, not from a ruling. 6. ADR-0146 merge question 14: **the readings of the earlier wording** in D2, D3, D4, D8, D11 and the Consequences. 7. ADR-0146 merge question 15: **the page for D3's "n customized, m switched off" line is left unnamed.** Decision 9 removes the landing page and names no successor. This is a flag, not a choice: a home in Setup would reverse D3's last clause and needs its own ruling on #36908. ## Tests No package is touched, so there is no build closure and no package test or typecheck to run. No ablation: the diff changes no tested behaviour. No dogfood battery: the title carries no `!` and the claim has no narrowing arm. The gates that read the changed files were derived from the tree, run on head `e9ba427a9`, and reconciled. The readings are under Verification. ## Acceptance notes **Card acceptance, item by item** - "ADR text matches the epic's decisions": the fifteen decisions are written or placed by the table at the end of ADR-0146 D1's amendment; decisions 2 and 4's open halves are named with the cards that own them. - "The table covers every metadata type, none without a group": 32 of 32. The rule (group = registered `domain`) makes this hold for a type registered later too. - Card item 5 (a note on #36513) is a GitHub comment and is not made by this pull request. The suggested text is in the dev report for the seat to post. **First files to read, by risk** 1. ADR-0146, the block "Amended 2026-11-24" at the end of D1. Risk hunk: the two bullets on dashboards and reports, where decision 13 is read together with the #36359 rule and the #36692 ruling. 2. ADR-0084, "Written here where the rulings were silent", items 1 and 2: the `~all` placement and the Settings area. 3. ADR-0084, the "Type → group" table and the three readings under it (`datasource`, `field`, `action`). **Two-minute verification** Run `grep -o "domain: '[a-z]*'" packages/spec/src/kernel/metadata-plugin.zod.ts | sort | uniq -c` on the branch. Expected: `3 ai`, `2 automation`, `7 data`, `6 security`, `7 system`, `7 ui`, which is the Count column of the table, 32 in all. **How #36502 is described.** The Interfaces pillar's retirement (PR #36884, open and unmerged when this was written) is named as its own card, which this amendment neither waits for nor repeats. The text reads the same whichever lands first. **Anchors.** New code citations are symbol anchors on things the decisions keep: three in the spec's registry module and two in the console's unsaved-edits module. Code that the epic deletes is named by bare identifier only, so a later code pull request is not forced to edit `docs/adr/**`. No line anchors. **Noted, not filed** (outside this card; each has a carrier) - Other records and docs still describe the pillar shell: ADR-0086 and ADR-0130 (one sentence each), `ui/docs/adr/0056-permission-editing-studio.md`, `docs/design/builder-ui.md`. Carrier: #36910, the epic's docs sweep. - Decision 11 names two groups 平台 and 访问, while today's domain dictionary draws `system` as 系统 and `security` as 安全, and the menu card says to take group names from that dictionary. Carrier: #36899. - Decision 5 does not say what the top-left control names when the current package publishes no app, or where it returns when the remembered page belongs to another app. Carrier: #36899. - D3 says "Setup carries nothing per package"; one of the two homes #36908 may propose for the customization counts is Setup's package detail. Carrier: #36908. - The `os` stats grouping in the CLI is an ADR-0084 consumer and does not follow the six domains. Not ruled on here. Carrier: none. **Changeset.** None: `docs/adr/**` ships in no package. `skip-changeset` is declared with the pull request. ## Verification Head `e9ba427a9`. 21 gate commands derived by `node scripts/pm/dispatch-gates.mjs --commands`, 21 run, each exit code captured before any pipe. `dispatch-gates --ran`: `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)`. <details> <summary>ADR gates (verdict lines)</summary> ``` pnpm check:adr-symbol-anchors :: exit 0 ✅ check-adr-symbol-anchors: 3879 anchors across 160 records resolve — 1233 symbol (1204 declaration, 29 literal), 2594 file-level, 52 cross-repo, 6 exempt, 76 continuation. 0 line anchors survive node scripts/check-adr-links.mjs :: exit 0 ✅ check-adr-links: 1171 relative link destination(s) under docs/adr/ resolve pnpm check:adr-index :: exit 0 adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green. pnpm check:adr-anchors :: exit 0 check-adr-anchors: OK (132 anchored file(s), every governing ADR still referenced; 154 decision number(s), each naming one decision or an allowlisted pair ``` Baseline on the untouched tree: 3873 anchors, 1166 link destinations. The amendment adds 6 anchors and 5 links. </details> <details> <summary>The other derived commands (all exit 0)</summary> ``` node scripts/check-adr-links.mjs --self-test :: 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/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: 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:doc-authoring :: exit 0 pnpm check:driver-memory-census :: 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:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` `check:doc-formula-expressions` first exited 3, PREREQUISITE NOT MET (two workspace packages unbuilt). They were built under the shared verify lock (`VERDICT command-exit 0`, all five tasks from cache) and the gate was run again: exit 0. </details> Tier H: `docs/adr/**` is a governed surface. This pull request is a draft and stays a draft; the seat hands it to the approver. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR --> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8c629b2 commit 56d723f

3 files changed

Lines changed: 310 additions & 14 deletions

0 commit comments

Comments
 (0)