Skip to content

docs(adr): amend ADR-0084 and ADR-0146 D1 — Studio's four pillars become one left menu of six domain groups (objectstack#36891) - #36921

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-36891-studio-left-menu-adr
Nov 24, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-36891-studio-left-menu-adr

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

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

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 Studio 重构(决定 9):去掉 Studio 首页(/studio 的包卡片页),逐项搬走它承载的入口 #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

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 专题:运行界面的设计模式(管理员在界面上直接改菜单和页头按钮;看板、仪表盘、报表的设计入口都在页面上,不再去 Studio) #36359 rule and the Design mode: creating a report inside it shows two Save/Cancel sets and can silently detach. Make report editing its own entry, mutually exclusive with design mode (Twenty's model) #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)

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).

ADR gates (verdict lines)
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.

The other derived commands (all exit 0)
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.

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

…ne left menu of six domain groups

ADR-0084: the four content pillars are no longer a navigation. Studio is the
development surface of one app; its one navigation is a collapsible left menu
of six groups that follow the spec's registered domains. Adds the type-to-group
table (all 32 registered types) and the four entries that are not a type.

ADR-0146 D1: the "All metadata" area is Studio's only entry. An item opens on
its metadata address and fills the content pane; the object, the flow and the
permission set open their designers there. Writes the item address, the ‹ ›
order, the leave guard, the tabs, the save model, and where a dashboard or a
report opens and is created. D2, D3, D4, D8, D11 and the Consequences carry
dated readings of their pillar and landing wording; merge questions 13 to 15
list what the rulings left silent.

docs/adr/README.md is regenerated by scripts/adr-index.mjs.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

Contract-review-claim: session_01WGufzgv4KRPATgwPAzKKMU · head e9ba427 · 2026-11-24T09:21Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e9ba427a92090d0be152ab1bf06380b4bf0f1150
Local-runs: none
Scope: docs/adr/0084-application-builder-information-architecture.md, docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md, docs/adr/README.md + none
Security-touching: yes

PR #36921 (card #36891, epic #36890). Docs only: 3 files, +310 / -14, one commit. Read: the card and its 2 comments, the epic body and its 3 comments, the PR body and net diff against main, the 49 check-runs on this head, and the plan cards the text names (#36895, #36896, #36899, #36906, #36907, #36908, #36909) plus #36692's thread for the ruling the ADR cites. The cited code was read on the PR head; nothing was built or run.

Security-touching: yes is meant: ADR-0146's new D1 block says the layered comparison is open to "a principal who cannot write" (decision 8), and the D4 block restates where the activation-ledger switch and its gate sit. Neither changes a gate, but both teach permission behaviour, so the low-risk arm does not apply. The PR is Tier H in any case.

① Derived judgments

  • No accept-set or public-surface change. The diff touches no package, schema, route or generated artifact other than the ADR index. Right.
  • docs/adr/README.md is one regenerated row (ADR-0084's title and status cell). Lint · docs & code guards is green on this head, which carries the index check. Right.
  • Type-to-group table (ADR-0084). Checked against DEFAULT_METADATA_TYPE_REGISTRY on the head: 32 entries, split 7 data / 7 ui / 2 automation / 7 system / 6 security / 3 ai, each type in the group the table gives it. The 32 names equal MetadataTypeSchema's enum. The registry file is identical at 151e8123, the PR head and current origin/main. domain is a required key of the registry entry schema with exactly those six values. Right; the card's acceptance line "no type without a group" holds.
  • Gate verdicts. 49 check-runs: 26 success, 23 skipped, 0 failed, 0 pending. Governed Surface Queue Guard, Check Documentation Links, Check Changeset and all Lint and Type Check jobs are green.

② Semver level

Clause-②: no

No changeset, skip-changeset label, Check Changeset green. docs/adr/** ships in no package, so nothing is published. Matches the claim's Clause-②: no and Metadata-protocol: none.

③ Boundary flags

open_questions is empty. SQL push-down: not applicable, no code. Dev flags and out-of-scope notes, each answered:

④ Design judgment

No must-fix, no should-fix.

Against the rulings. All fifteen decisions were compared with the text one by one. Decisions 1, 3 to 10 and 12 to 15 are written in ADR-0146 D1's block as the epic states them; decision 11 is in ADR-0084; decision 2 and the open halves of decision 4 are assigned to their cards. The decision 13 passage agrees with the 06:34Z answer, the #36692 ruling 「照 Twenty 分开」, the merged PR #36848 (e0050baa on main: reports/new is linked from the report index, design mode keeps "New dashboard…" only) and epic comment 7125835005. The 08:51Z ruling (no runtime dashboard index) is not contradicted. No sentence contradicts a ruling.

Against the cited code (read on the head): ENVIRONMENT_AREA_TYPES is permission, position, sharing_rule and capability, all registered security; the landing's only ~all entry is the roles-and-permissions card; registerUnsavedEdits and confirmUnsavedLeave exist and the module covers tab close, reload, in-app links and button departures but not popstate, as the leave-guard bullet says; the datasource tile opens Setup's Datasources page; field is hidden from the directory; the pillar address shape and the three query parameters are as written; Setup's Packaged automation and Packaged actions pages are retired.

Against the execution plan. #36899 (two frames or one shell left to the dev; ~org, default sharing overview and diagnostics in the menu), #36896 (list state and scroll restored, ordered names), #36906 and #36907 (three-step app rule, "from Studio" in the address, the two "New" targets), #36908 (landing removed, entries moved first) and #36909 (old pillar addresses keep redirecting) all agree with the text.

Drafted, not ruled: each placement judged. None contradicts a ruling.

  1. ADR-0084 item 1, ~all entered from the 访问 Access group. Holds. Decision 11 is silent on it; the leg's directory lists exactly four security types, and the three ruled package-less entries each sit in the group of what they hold. The approver should know one fact the item leaves out (N1).
  2. ADR-0084 item 2, Settings is not a group. Holds; it follows from decision 11 naming six groups and from the one-type-one-group rule. app, hook, mapping and datasource land where the registry puts them.
  3. ADR-0084 item 3, group order and English names. Holds; the order is decision 11's own. It differs from today's directory order (N2).
  4. ADR-0084 item 4, the title. Holds.
  5. ADR-0146 question 13, pillar addresses keep redirecting. Holds; it is the plan of Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项) #36909 and the record's own practice for retired routes.
  6. ADR-0146 question 14, the readings of D2, D3, D4, D8, D11 and the Consequences. Hold; each changes where a thing is drawn and no rule.
  7. ADR-0146 question 15, the home of D3's per-package line left unnamed. Holds; it is a flag, and the text correctly says a Setup home needs its own ruling.

Nits (prose face; fix in place or leave as accepted deviations):

Implemented-by: claude/issue-36891-studio-left-menu-adr
Reviewed-by: session_01WGufzgv4KRPATgwPAzKKMU

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

席位核对 — ACCEPT · repo:objectstack#3 · head e9ba427 · 2026-11-24T09:28Z

L1: ACCEPT
Head-sha: e9ba427a92090d0be152ab1bf06380b4bf0f1150
Reviewer: L1-b (seat 3, area ux-E). Contract review: L2 CONTRACT_REVIEW_TIER PASS on this head, comment 7127449959 (claim 7127316191), nits only, Security-touching: yes (decision 8 and the D4 switch text teach permission behaviour; no gate moves).
Tier H: docs/adr/** is governed (check-governed-merges --pr 36921: Tier H, ADR changes that are not add-only notes). This verdict goes to the seat, which hands the PR to the approver. Draft stays draft.

Read

Checklist

  • Shape. Draft, base main, first line Fixes #36891, plus Part of #36890, which is not a closing keyword.
  • Scope. Three files: the two ADRs and the generated docs/adr/README.md row. All three are inside the claim surface. No code.
  • Type → group table against the registry. Read on the head from DEFAULT_METADATA_TYPE_REGISTRY, pairing each type with its domain in order: data 7 (field hook mapping object object_extension picklist seed), ui 7 (action app dashboard dataset page report view), automation 2 (flow job), system 7 (api book datasource doc email_template external_catalog translation), security 6 (assignment_rule capability permission position queue sharing_rule), ai 3 (agent skill tool). That is 32 in all. Every row of the ADR-0084 table matches this, type for type. The rule "a type's group is its registered domain" makes the table hold for any type added later.
  • Against the fifteen decisions. Each decision is written where the ADR-0146 D1 table says it is. I checked these against the epic's wording:
  • Drafted, not ruled. The seven placements are numbered in their records and listed in the body for the approver. None contradicts a ruling I can find. Item 1 (~all under Access) follows decision 11's own rule (the group of what an entry holds), and the directory's four types are all security. Item 7 flags a choice and does not make it.
  • Gates. ADR symbol anchors, links, index and anchors all exit 0 in the body (+6 anchors, +5 links over baseline), and Lint & Repo Gates is success on the head.
  • Card acceptance. (1) ADR text matches the epic's decisions: met (above). (2) The table covers every registered type, none without a group: met, 32 of 32. (3) The ADR and docs checks pass: met. Card item 5 (a note on Studio 对象页页签顺序(业务在前、技术在后)和顶部导航的排法(去掉「界面」后的四个分区):顶部导航先出图再做 #36513) is a GitHub comment, not part of this diff; see the note to the seat.

Findings

No must-fix, no should-fix.

Note to the seat

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

维护者速读

Request: approval · Tier H (governed docs/adr/**, not add-only; 324 lines) · 2026-11-24T09:29Z

席位意见: land. It records rulings 1–15 of #36890 and amends the two ADRs those rulings supersede, without deciding anything new.

@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 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 10:15
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 56d723f Nov 24, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36891-studio-left-menu-adr branch November 24, 2026 10:39
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
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 size/m 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.

Studio 重构(0-1):修订 ADR-0084 和 ADR-0146 D1——四个分区改成左侧分组菜单,写定类型到分组的对照表

3 participants