diff --git a/docs/adr/0084-application-builder-information-architecture.md b/docs/adr/0084-application-builder-information-architecture.md index 1f81b9c88d7..881a99bcddd 100644 --- a/docs/adr/0084-application-builder-information-architecture.md +++ b/docs/adr/0084-application-builder-information-architecture.md @@ -14,7 +14,8 @@ > metadata types under. What each pillar held is found in a group, unchanged. The pillars as a navigation, the Settings > area, and the line that kept the Platform and AI types out of the builder no longer describe the surface. Each > sentence the amendment replaces is struck or marked where it stands and points to -> [Amendment (2026-11-24)](#amendment-2026-11-24); everything not marked stands. +> [Amendment (2026-11-24)](#amendment-2026-11-24); everything not marked stands. *(Amended 2026-11-26: "the +> development surface of one app" is reworded — Studio is the entry for developing a package; the note below.)* > **Amendment (2026-11-25) — the menu draws two tiers, 常用 Common and 高级 Advanced.** The six groups stand. On a > package the menu lists the 常用 types under their groups, and one collapsed 高级 fold beneath them holds every other @@ -242,7 +243,7 @@ The menu also holds four entries that open no type's list. Each sits in the grou | TL;DR 5 and 6, "Settings" — a Settings area holding General and Advanced | Replaced as navigation: the menu has no Settings group ([item 2](#amendment-silent) below). | | TL;DR 7 — what v1 ships | History. | | "Audience routing" — builders in the pillars, developers in Advanced, AI not in the builder | Replaced: ~~the menu draws no audience tier.~~ *(Amended 2026-11-25.)* The menu draws two tiers, **常用 Common** and **高级 Advanced** — a second axis beside the six groups, not a seventh group ([Amendment (2026-11-25)](#amendment-2026-11-25)); maintainer, verbatim: 「同意」, to the seat's question "同意整体加「常用 / 高级」这一层吗?同意的话,ADR-0084 里「菜单不分受众层级」那句,就以你的话为依据改掉。" The line between audiences has run between the two surfaces since ADR-0146 D1 — maintainer, verbatim: 「studio 是给开发人员用的, setup 时给管理员用的」. ADR-0077 is read, not amended. | -| "Primary home + secondary surface" — no type is authored in two menus | Stands, and is the rule the table keeps: one type, one group. Its example moves: a `datasource` is found under 平台 Platform. | +| "Primary home + secondary surface" — no type is authored in two menus | Stands, and is the rule the table keeps: one type, one group. Its example moves: a `datasource` is found under 平台 Platform. *(Amended 2026-11-26: the rule stands, and the example moves again — a `datasource` stays a 平台 Platform type and the menu is to draw no row for it: [Amendment (2026-11-26)](#amendment-2026-11-26-moves).)* | | Alternatives — "Six flat pillars", "AI as a builder pillar/tab", "Operate / Platform inside the builder" | Rejected for a navigation of pillars. The menu follows the registry, and the registry holds the `system` and `ai` types, so 平台 Platform and AI are groups. Operate stays out. ADR-0063 and ADR-0064 (the two kernel agents are the platform's) are read, not amended: a type having a row in the menu changes neither. | | Consumers — the `os` stats grouping | Not ruled on. The amendment changes Studio's navigation; `packages/cli/src/utils/format.ts` keeps its grouping. | @@ -251,7 +252,7 @@ The menu also holds four entries that open no type's list. Each sits in the grou Merging accepts them; an objection names the number. 1. **The cross-package environment directory (`~all`) is entered from the 访问 Access group.** Decision 11 places the three other entries of [the table above](#entries-not-a-type) and is silent on this one. The leg's directory lists four types — positions, capabilities, permission sets and sharing rules (the console's `ENVIRONMENT_AREA_TYPES`) — each registered `security`, and the leg's one visible entry today, on the landing page decision 9 removes, is named for exactly that. Decision 11 puts every other such entry in the group of what it holds; this follows it. On that leg the same menu is drawn (the menu card decides whether that is one shell or two frames). Weighed and not taken: an entry of its own outside the six groups, which gives a catalog of four Access types a second place beside the group that already lists them. *(Amended 2026-11-26: ruled since, and differently — the directory leaves Studio's menu for Setup, for a group that holds access pages. Until it moves it is entered from 访问 Access as this item says: [Amendment (2026-11-26)](#amendment-2026-11-26-moves).)* -2. **The Settings area is not a group.** Decision 11 names six groups and Settings is not one of them, and no ruling speaks of TL;DR 5 and 6. The types those two items placed are found by the rule like every other type: `app` (General) under 界面 UI, `hook` and `mapping` under 数据 Data, `datasource` under 平台 Platform (connectors and webhooks are not registered types). A Settings group would list those types a second time, which the "one type, one group" rule forbids. +2. **The Settings area is not a group.** Decision 11 names six groups and Settings is not one of them, and no ruling speaks of TL;DR 5 and 6. The types those two items placed are found by the rule like every other type: `app` (General) under 界面 UI, `hook` and `mapping` under 数据 Data, `datasource` under 平台 Platform (connectors and webhooks are not registered types). A Settings group would list those types a second time, which the "one type, one group" rule forbids. *(Amended 2026-11-26: the item stands. Of its examples, `datasource` keeps its group and is to draw no row in the menu: [Amendment (2026-11-26)](#amendment-2026-11-26-moves).)* 3. **The order of the groups and their English names.** Decision 11 lists the six in the order of the table above and names them in Chinese. This record takes that order as the menu's, and writes the English names Data, UI, Automation, Platform, Access and AI. 4. **The title of this record.** It named the four pillars as the decision; it now names the menu and keeps the old words after "was:". The number and the file name do not move (Prime Directive #13). @@ -288,7 +289,7 @@ The four [entries that are not a type](#entries-not-a-type) are 高级 on a pack The tiers belong to a package's menu. The package-less scope (`~org`) and the cross-package leg (`~all`) draw no fold: the same labels and the same order, flat (§3.8). -*(Amended 2026-11-26: the two tiers and the rule below stand, and the ten 常用 types keep their places. Three types join them, each placed by name: `dataset` and `position`, and `form`, a type registered after this ruling, once Studio lists it — thirteen in all. 概览 Overview is drawn above the tiers and belongs to neither. Of the four entries that are not a type, the cross-package directory is to leave the menu. See [Amendment (2026-11-26)](#amendment-2026-11-26-moves).)* +*(Amended 2026-11-26: the two tiers and the rule below stand, and the ten 常用 types keep their places. Three types join them, each placed by name: `dataset` and `position`, and `form`, a type not yet registered, once Studio lists it — thirteen in all. 概览 Overview is drawn above the tiers and belongs to neither. Of the four entries that are not a type, the cross-package directory is to leave the menu. See [Amendment (2026-11-26)](#amendment-2026-11-26-moves).)* ### The rule that sorts a type @@ -347,7 +348,7 @@ Refs: decision card [#37192](https://github.com/objectstack-ai/objectstack/issue - **The `form` type**, the same day, as card #37451 records both: the question 「Studio 菜单还没有 form 类型是吗?怎么规划?」 ([comment 7184972402](https://github.com/objectstack-ai/objectstack/issues/37451#issuecomment-7184972402)), and then the placement 「表单放常用」 ([comment 7185703578](https://github.com/objectstack-ai/objectstack/issues/37451#issuecomment-7185703578)). - **What the plan had left open**, the same day, in that area's thread: 「同意」, to the area's recommendations on questions 1, 4 and 5 of the epic's five and on where Diagnostics lives. The ruling record on the card sets out what was recommended ([comment 7187264388](https://github.com/objectstack-ai/objectstack/issues/37451#issuecomment-7187264388)). -The discussion has **no GitHub record** beyond four places, and they are what a repository reader can reach: the epic's body (the quotations above and its decisions 1–12); the epic's phase table and its five questions ([comment 7184108099](https://github.com/objectstack-ai/objectstack/issues/37424#issuecomment-7184108099)); the ruling record for questions 2 and 3 (comment 7184753035); and card #37451 with its comments (the pick, the five homes it gives, the question on `form` and the ruling on its tier, the ruling record for questions 1, 4 and 5 and for Diagnostics, and that the name 应用搭建 / App Studio was kept when a rename was put to the maintainer). This section cites a decision by its number in the epic's body, and a question by its number in comment 7184108099. Where a ruling of that day changes one of the epic's numbered decisions, the ruling decides, and the part of this section that carries it says so: decision 9's disable, enable and delete (question 1); the page of decisions 11 and 12 that sorts loose items one by one (question 3); decision 12's move of Diagnostics; and decision 12's Setup group for the cross-package directory (question 5). +The discussion has **no GitHub record** beyond four places, and they are what a repository reader can reach: the epic's body (the quotations above and its decisions 1–12); the epic's phase table and its five questions ([comment 7184108099](https://github.com/objectstack-ai/objectstack/issues/37424#issuecomment-7184108099)); the ruling record for questions 2 and 3 (comment 7184753035); and card #37451 with its comments (the pick, the five homes it gives, the question on `form` and the ruling on its tier, the ruling record for questions 1, 4 and 5 and for Diagnostics, and that the name 应用搭建 / App Studio was kept when a rename was put to the maintainer). This section cites a decision by its number in the epic's body, and a question by its number in comment 7184108099. Where a ruling of that day changes one of the epic's numbered decisions, the ruling decides, and the part of this section that carries it says so: decision 1's line that revises ADR-0146's split, and decision 9's disable, enable and delete (question 1); the page of decisions 11 and 12 that sorts loose items one by one (question 3); decision 12's move of Diagnostics; and decision 12's Setup group for the cross-package directory (question 5). **The amendment declares; it implements nothing.** It is written once for all five phases of the epic, so that a later phase changes code and not this record. The first phase is four cards: [#37452](https://github.com/objectstack-ai/objectstack/issues/37452) (the menu's look and the graphite tokens), [#37454](https://github.com/objectstack-ai/objectstack/issues/37454) (概览, built thin), [#37455](https://github.com/objectstack-ai/objectstack/issues/37455) (Save, Cancel, the AI button and the panel toggle in their new homes) and [#37456](https://github.com/objectstack-ai/objectstack/issues/37456) (the top bar removed; the two rows, the switcher, the lock, the rail). The later phases are rows of the epic's phase table, not yet filed. Until those cards land the code still draws the top bar. No question the plan put to the maintainer is left open: each answer is written in the part of this section it decides. @@ -437,7 +438,7 @@ Decision 12 draws the line: **Studio develops one package; Setup runs the organi - **Diagnostics stays in Studio's menu**, in 平台 Platform, where it is (ruled the same day; the same record). Decision 12 moves the page to Setup → Diagnostics, and that one sentence of decision 12 is not carried: ADR-0146 D1 gives Studio "diagnostics" on the maintainer's words of 2026-10-30 about the catalog, source, layers, history and diagnostics — 「我认为还是应该在 studio」 — and D1 stands. On a package the page reads that package: it lists, across types, the open package's items that fail validation. Setup → Diagnostics keeps what it holds, the records of the running system — the audit log, sessions, notification events — and gains no metadata page. A sweep of the whole environment, if one is ever wanted, is reached from the cross-package directory and not from a second Diagnostics entry. - **The cross-package environment directory (`~all`) leaves the menu for Setup, for a group that holds access pages** (decision 12; question 5, ruled). Decision 12 names Setup → Diagnostics as its group, and the ruling moves it: what the directory lists is access metadata — positions, permission sets, capabilities and sharing rules. Which entry of Setup it becomes is its card's to say. An item listed there still opens in Studio (ADR-0146 D1). Until the directory moves it stays where it is, entered from 访问 Access. - **The menu draws no `datasource` row** (decision 12). A connection is configuration bound to an environment, and it is managed in Setup → Integrations alone. The type stays registered `system`; like `field`, it is a type that draws no row. -- **`form`, once Studio lists it, is a 常用 type of 界面 UI.** [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) carves forms out of `view` into a type of their own and registers it `ui` (its D2). The card that registers the type keeps it out of Studio's directory until the card that brings its designer ([#37086](https://github.com/objectstack-ai/objectstack/issues/37086), [#37087](https://github.com/objectstack-ai/objectstack/issues/37087)). Its group is the rule's: its registered domain. Its tier is the maintainer's, by name: 「表单放常用」. The rule's first test alone would sort it 高级, because a form is bound to one object, and where the maintainer places a type by name, the name decides; `form` is a named placement as well. It is listed last of the group's 常用 types, after `report`, and so directly before `view`, the type it was carved from ([item 11](#amendment-2026-11-26-silent)). +- **`form`, once Studio lists it, is a 常用 type of 界面 UI.** [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) carves forms out of `view` into a type of their own and registers it `ui` (its D2). The card that is to register the type keeps it out of Studio's directory until the card that brings its designer ([#37086](https://github.com/objectstack-ai/objectstack/issues/37086), [#37087](https://github.com/objectstack-ai/objectstack/issues/37087)). Its group is the rule's: its registered domain. Its tier is the maintainer's, by name: 「表单放常用」. The rule's first test alone would sort it 高级, because a form is bound to one object, and where the maintainer places a type by name, the name decides; `form` is a named placement as well. It is listed last of the group's 常用 types, after `report`, and so directly before `view`, the type it was carved from ([item 11](#amendment-2026-11-26-silent)). **The rule of 2026-11-25 is not reworded.** It says that where the maintainer places a type by name, the name decides, and it carried two such placements: `picklist` in 高级, and the three AI types in 常用. `dataset`, `position` and `form` are three more, each in 常用. The three tests still sort every type that no ruling names. @@ -461,7 +462,7 @@ Decision 11 of the epic, as ruled on its questions 2 and 3 (maintainer: 「同 - **There is no catch-all package.** [ADR-0070](./0070-package-first-authoring.md) D1 and D6 stand. - **A create with no package asks for one, and the kernel refuses it** (question 2, ruled A). When no package resolves, the interface asks the person to pick a package or create one. The kernel closes the same create, which ADR-0070 D1 already requires and the kernel does not yet do ([#37453](https://github.com/objectstack-ai/objectstack/issues/37453)'s readings). Four writers keep a named exemption, and no other: an overlay of a kernel item, until the platform pair's whitelist exists; the ruled import of an external datasource; a migration that preserves a binding; and platform registration. `os meta register` is closed with the rest. The interface's ask and the kernel's close ship in the same phase, the kernel last. Saving a loose row that already exists, in place, stays open. Sharing rules, queues and assignment rules that an organization authors in Setup bind to the `.custom` package of the object that owns them, with no new exemption. -- **Loose items stay where they are, and one door moves them** (question 3, ruled C). An item that belongs to no package stays legal: it belongs to the implicit environment package (ADR-0150 D1, the fourth bucket), and nothing is renamed or migrated. One new door moves a selection — one item, several, or all — into a package, and runs each through the judges a save runs. It reuses the list page that exists. When that door ships, the bulk adopt and Studio's `~org` entry retire together. This replaces the page that sorts loose items one by one, which decisions 11 and 12 planned. Where the new door is opened from is its card's to say. +- **Loose items stay where they are, and one door moves them** (question 3, ruled C). An item that belongs to no package stays legal: it belongs to the implicit environment package (ADR-0150 D1, the fourth bucket), and nothing is renamed or migrated. One new door moves a selection — one item, several, or all — into a package, and runs each through the judges a save runs, judging the selection as a set for the cross-boundary rule of ADR-0150 D3 (a). It reuses the list page that exists. When that door ships, the bulk adopt and Studio's `~org` entry retire together. This replaces the page that sorts loose items one by one, which decisions 11 and 12 planned. Where the new door is opened from is its card's to say. - **What this changes in the menu.** The organization's own flows keep their entry in 自动化 Automation until the door ships. The ⋯ menu keeps "adopt loose items" until then, and loses it then. ADR-0070 is not edited by this amendment. Where the ruling restates its D1 and D5, the phase-4 cards that carry the ruling out owe that record its marks. @@ -502,4 +503,4 @@ Merging accepts them; an objection names the number. 10. **English names.** The maintainer's words are Chinese: 概览, 新建软件包, and the tabs 信息 · 待发布 · 发布历史. This record writes Overview, New package, and Info · Pending · Publish history. 11. **Where `form` sits among the 常用 types.** The maintainer placed the type's tier by name, and its group is its registered domain, `ui` (ADR-0159 D2). Its place inside the tier is not ruled. This record lists it last of the group's 常用 types, after `report`: the four ruled on 2026-11-25 keep their order, and `form` then sits directly before `view`, the type it was carved from. The owning area had recommended the place directly after `view`; a 常用 type cannot take it, because the menu lists a group's 常用 types and holds its 高级 types in the fold beneath them. If another place among the five is meant, the order of that one row is the word to change. -Refs: epic [#37424](https://github.com/objectstack-ai/objectstack/issues/37424) (the quotations, decisions 1–12; the phase table and questions 1–5, comment 7184108099; the ruling on questions 2 and 3, comment 7184753035; the mockups, [comment 7181963746](https://github.com/objectstack-ai/objectstack/issues/37424#issuecomment-7181963746)); card [#37451](https://github.com/objectstack-ai/objectstack/issues/37451) (this amendment; the pick and the five homes; the question on `form`, comment 7184972402, and the ruling on its tier, comment 7185703578; the ruling on questions 1, 4 and 5 and on Diagnostics, comment 7187264388); [#37452](https://github.com/objectstack-ai/objectstack/issues/37452), [#37454](https://github.com/objectstack-ai/objectstack/issues/37454), [#37455](https://github.com/objectstack-ai/objectstack/issues/37455), [#37456](https://github.com/objectstack-ai/objectstack/issues/37456) (the first phase); [#37453](https://github.com/objectstack-ai/objectstack/issues/37453) (the readings on package-less writes); [#37086](https://github.com/objectstack-ai/objectstack/issues/37086) and [#37087](https://github.com/objectstack-ai/objectstack/issues/37087) (the `form` type and its designer); [#36501](https://github.com/objectstack-ai/objectstack/issues/36501) (the switcher's removal, reversed); epic [#36510](https://github.com/objectstack-ai/objectstack/issues/36510) (the save rule); [ADR-0146](./0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md) D1, D3 and D5; [ADR-0070](./0070-package-first-authoring.md) D1, D2, D5 and D6; [ADR-0150](./0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md) D1 and D7; [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D2 and D10. +Refs: epic [#37424](https://github.com/objectstack-ai/objectstack/issues/37424) (the quotations, decisions 1–12; the phase table and questions 1–5, comment 7184108099; the ruling on questions 2 and 3, comment 7184753035; the mockups, [comment 7181963746](https://github.com/objectstack-ai/objectstack/issues/37424#issuecomment-7181963746)); card [#37451](https://github.com/objectstack-ai/objectstack/issues/37451) (this amendment; the pick and the five homes; the question on `form`, comment 7184972402, and the ruling on its tier, comment 7185703578; the ruling on questions 1, 4 and 5 and on Diagnostics, comment 7187264388); [#37452](https://github.com/objectstack-ai/objectstack/issues/37452), [#37454](https://github.com/objectstack-ai/objectstack/issues/37454), [#37455](https://github.com/objectstack-ai/objectstack/issues/37455), [#37456](https://github.com/objectstack-ai/objectstack/issues/37456) (the first phase); [#37453](https://github.com/objectstack-ai/objectstack/issues/37453) (the readings on package-less writes); [#37086](https://github.com/objectstack-ai/objectstack/issues/37086) and [#37087](https://github.com/objectstack-ai/objectstack/issues/37087) (the `form` type and its designer); [#36501](https://github.com/objectstack-ai/objectstack/issues/36501) (the switcher's removal, reversed); epic [#36510](https://github.com/objectstack-ai/objectstack/issues/36510) (the save rule); [ADR-0146](./0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md) D1, D3 and D5; [ADR-0070](./0070-package-first-authoring.md) D1, D2, D5 and D6; [ADR-0150](./0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md) D1, D3 and D7; [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D2 and D10.