Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
63dbd58
docs(adr): ADR-0159 draft — forms leave view for a form metadata type…
claude Nov 24, 2026
e50a02f
docs(adr): ADR-0159 — forms are their own metadata type; amend ADR-00…
claude Nov 24, 2026
86b607f
docs(adr): ADR-0159 — say where form items are served
claude Nov 24, 2026
16dcc53
Merge origin/main into claude/issue-36868-form-metadata-type-adr
claude Nov 24, 2026
f4f936c
Merge remote-tracking branch 'origin/main' into claude/issue-36868-fo…
claude Nov 24, 2026
3525790
docs(adr): ADR-0159 records the five merge questions as ruled, all op…
claude Nov 24, 2026
689e569
Merge remote-tracking branch 'origin/main' into claude/issue-36868-fo…
claude Nov 24, 2026
70d05f3
docs(adr): ADR-0159 folds the contract review and the L1 record of he…
claude Nov 24, 2026
9336492
docs(adr): ADR-0159 D7 — the removable pair-refusal causes are exampl…
claude Nov 24, 2026
86c83a2
docs(adr): ADR-0159 — a stored row that closes an address by replacin…
claude Nov 24, 2026
be1c0cb
docs(adr): ADR-0159 D7-d — say the two readings of today's layers wer…
claude Nov 24, 2026
cb029b1
Merge origin/main (305fe60e6e9) into claude/issue-36868-form-metadata…
claude Nov 24, 2026
c74ae94
docs(adr): ADR-0159 — the fold keeps the served body, five points pas…
claude Nov 24, 2026
dd4b051
Merge origin/main (d25d912d108) into claude/issue-36868-form-metadata…
claude Nov 24, 2026
737f6f2
docs(adr): ADR-0159 — card 2's refusal covers every package-less list…
claude Nov 24, 2026
db3a727
Merge origin/main (a73edb3cd78) into claude/issue-36868-form-metadata…
claude Nov 24, 2026
102c857
docs(adr): ADR-0159 — card 2 is narrowed for its refusal; the project…
claude Nov 24, 2026
a9b2da7
docs(adr): ADR-0159 — the two kinds of held row are ruled to get no d…
claude Nov 24, 2026
f17dd59
Merge origin/main (b01d8f97e97) into claude/issue-36868-form-metadata…
claude Nov 24, 2026
d9a00e5
docs(adr): ADR-0159 — three sentences brought in line with the later …
claude Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/adr/0017-object-has-many-view.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ADR-0017: Object has-many View (Independent View Entities)

**Status**: Accepted · Implemented Phases 1–4 (2026-05-30) · Phase 5 (Studio designer) deferred · **Amended** (2026-09-04, [ADR-0131](./0131-total-organization-ownership-no-null-organization-id.md) D13 — §3.4's `sys_view_definition` store and §3.6's objectui repointing are **retired as inert**: verified on 2026-09-04 that no framework writer or reader of its rows exists, that `objectui` never referenced the object in its history (its runtime-view CRUD writes the ADR-0005 `view` overlay via `client.meta.saveItem`), and that a per-user view scope is a parked v18 direction. Runtime-authored views are environment metadata; §3.5's `GET /meta/view?object=` filter stands)
**Status**: Accepted · Implemented Phases 1–4 (2026-05-30) · Phase 5 (Studio designer) deferred · **Amended** (2026-09-04, [ADR-0131](./0131-total-organization-ownership-no-null-organization-id.md) D13 — §3.4's `sys_view_definition` store and §3.6's objectui repointing are **retired as inert**: verified on 2026-09-04 that no framework writer or reader of its rows exists, that `objectui` never referenced the object in its history (its runtime-view CRUD writes the ADR-0005 `view` overlay via `client.meta.saveItem`), and that a per-user view scope is a parked v18 direction. Runtime-authored views are environment metadata; §3.5's `GET /meta/view?object=` filter stands) · **Amended** (2026-11-24, [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D7 and D10, on the maintainer's ruling 「拆成 form 类型,对外表单并入」, ruling record [`7123091354`](https://github.com/objectstack-ai/objectstack/issues/36444#issuecomment-7123091354) — **a view is a list**: a form is an item of the `form` metadata type, not a view item. `viewKind`'s `form` value, the `form` arm of the item and the container's `form` and `formViews` members keep loading until protocol major 19, read through ADR-0159 D5's projection, and are tombstoned in that major with the ADR-0087 conversion and the stored-row ceremony ADR-0159 D7 names. The container, the item identity and the switcher query are unchanged for lists. The note at §2's ViewItem bullet governs how §2, §3.1 and §3.2 are read. It lands by an authorized approval or the maintainer's merge of the PR cut from #36868)
**Deciders**: ObjectStack Protocol Architects
**Builds on**: [ADR-0003](./0003-package-as-first-class-citizen.md) (package as first-class citizen), [ADR-0005](./0005-metadata-customization-overlay.md) (one Zod source per type, org overlay), [ADR-0010](./0010-metadata-protection-model.md) (L1/L2/L3 protection)
**Consumers**: `@objectstack/spec`, `@objectstack/metadata`, `@objectstack/objectql`, `@objectstack/rest`, `@objectstack/platform-objects`, `../objectui` (runtime switcher + Studio designer)
Expand Down Expand Up @@ -64,6 +64,17 @@ has-many ViewItem.**
- **`ViewItem`** — name `<object>.<viewKey>` (qualified, globally
unique), an `object` foreign key, a `viewKind` (`list` | `form`), a
`scope`, and the existing `ListView`/`FormView` payload under `config`.

> **Note (2026-11-24, [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md), ruling record `7123091354` on
> [#36444](https://github.com/objectstack-ai/objectstack/issues/36444), 「拆成 form 类型,对外表单并入」) — a form is a `form`
> item, and `viewKind` is list-only.** The `form` kind this bullet, §3.1's `ViewKindSchema` and `ViewItemSchema`, and §3.2's
> per-`formViews` expansion describe is carved out of `view` into its own metadata type. Until protocol major 19 the three
> shapes that carry a form in a view (the container's `form`, a `formViews` entry, a `viewKind: 'form'` item) keep loading
> and are read as `form` items through one projection (ADR-0159 D5); in major 19 they are tombstoned, `ViewKindSchema` is
> `list` alone, and the migration is ADR-0159 D7's. Everything this record says about lists stands as written: the
> container as authoring sugar, the qualified `OBJECT.KEY` identity, `getViewsByObject()` and the `?object=` filter. A
> form keeps the name it was served under. The bullet and the sections stay as written, and this note governs how they
> are read.
- **Three scopes** (a layer axis, *distinct* from ADR-0010 `_provenance`):
- `package` — ships from `*.view.ts` source; immutable at runtime
(not deletable / hideable / overridable in the switcher).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ It lands by the maintainer's hand-merge of the PR cut from #30881.
· **Amended in place** (2026-11-06, ruling record [`6691022506`](https://github.com/objectstack-ai/objectstack/issues/29594#issuecomment-6691022506) on [#29594](https://github.com/objectstack-ai/objectstack/issues/29594), maintainer, verbatim: 「① 定制单位 = App;同意」, and the second ruling record [`6691217245`](https://github.com/objectstack-ai/objectstack/issues/29594#issuecomment-6691217245) there, verbatim: 「内核白名单,可以下一版本再处理,首批名单建议:Users、Organizations;其他同意。」): the customization unit is the App, so there is one pair per App, `<app id>.custom`, shared by every package its artifact delivers and never one per module; the kernel is one platform suite with one platform pair, `com.objectstack.kernel.custom`, whose range is the platform version; no kernel object is customizable in this version, and the kernel whitelist (Users, Organizations) belongs to the next one ([D3](#d3), [D11](#d11), Q4, [Consequences](#consequences), merge questions 8 to 12); the App of a package is read from the declarations the registry holds, a package that declares no App is its own unit, and a pair created under the old per-package unit is re-identified as, or moved into, its App's pair by the migration ceremony (merge questions 11 and 12). It lands by the maintainer's hand-merge of the PR cut from #31014.
· **Amended in place** (2026-11-17, card [#34724](https://github.com/objectstack-ai/objectstack/issues/34724) of epic [#34571](https://github.com/objectstack-ai/objectstack/issues/34571), maintainer, verbatim: 「打包动作不是应该在 studio 对应的软件包中自定义吗」, and on platform actions getting no switch, 「同意,立卡」; ruling record [`6944409840`](https://github.com/objectstack-ai/objectstack/issues/34724#issuecomment-6944409840), verbatim: 「保持原状并写明恢复方法」): the action's ledger switch moves onto the action in Studio and Setup › Packaged Actions retires, so the line above that says D4 "keeps the ledger switch" now reads as the switch living in Studio; the platform's own actions carry no switch in the console, a row that already switches one off stays in force, and the activation door is the way to turn it on again ([D4](#d4), [D9](#d9)). It lands by the hand-merge or authorized approval of the PR cut from #34724.
· **Amended in place** (2026-11-24, card [#36891](https://github.com/objectstack-ai/objectstack/issues/36891) of epic [#36890](https://github.com/objectstack-ai/objectstack/issues/36890), maintainer, verbatim: 「元数据列表如果全部改成点击之后弹出全屏的详情页呢?是不是对象流程这些可以用同一种风格,顶部的导航也不需要了。」, 「我们说的弹出窗口全屏,应该是右侧全屏对吧,左侧菜单和前端一样可以折叠。」, and on the epic's fifteen numbered decisions, twice, 「全部按建议」): the "All metadata" area is Studio's only entry and the four pillars are no longer places — an item opens on its metadata address and fills the content pane beside one collapsible left menu, the object, the flow and the permission set opening their designers there and no longer a pillar; the menu's six groups and its type-to-group table are [ADR-0084](./0084-application-builder-information-architecture.md)'s as amended the same day; the item's address, its ‹ › order, its leave guard, and where a dashboard or a report opens (an app's own edit state) and is created are fixed in [D1](#d1), and the pillar and landing wording of [D2](#d2), [D3](#d3), [D4](#d4), [D8](#d8), [D11](#d11) and the [Consequences](#consequences) is read through it (merge questions 13 to 15). It lands by the hand-merge or authorized approval of the PR cut from #36891.
· **Amended in place** (2026-11-24, [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D4, on the maintainer's ruling 「拆成 form 类型,对外表单并入」, ruling record [`7123091354`](https://github.com/objectstack-ai/objectstack/issues/36444#issuecomment-7123091354)): `form`, the metadata type forms are carved into, joins [D2](#d2)'s "Which types" list as overridable by declaration, with no conditions; its classification row lands in the same change as its registry row, which the pin in `packages/spec/src/kernel/customization-package.test.ts` requires. It lands by an authorized approval or the maintainer's merge of the PR cut from #36868.
**Decided by**: the maintainer, 2026-10-30, in the desktop session that re-planned the epic, verbatim and
untranslated as epic #28236 records them — the direction 「方向定为包级覆盖:代码和 Studio 用同一机制,定制都进 .custom。」; the suffix 「同意 后缀改成 .custom」; the eight questions 「等我拍板的 8 个问题,全部同意」; the extension
fields 「扩展字段用 __c 后缀,只有 .custom 包能用。」; the item toolbar 「同意新增 2h「Studio 项工具栏」并放在 2a 之前」;
Expand Down Expand Up @@ -378,7 +379,7 @@ reads, never a judgement the gate makes. Three types are excluded whatever the r
catalog holds one name per deployment for: **permission sets, positions and capabilities are not overridable**
([D6](#d6); ADR-0048's 2026-10-08 addendum, ADR-0131 D3). `object` is **extended**, never replaced ([D10](#d10));
`field` rides with its object. The types ADR-0126 §3 assigns outside the regimes as code (`hook`, `job`, `api`,
`agent`, …) stay outside: customization of those is a new version of the package.
`agent`, …) stay outside: customization of those is a new version of the package. **`form`** (amended 2026-11-24, [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D4) is on the list from the change that adds the type to the registry: a declared override of a base's form in the paired `.custom` replaces that form whole, and it is what Setup's public-form switch writes. A `view` override of a form stored before that change is the same override; ADR-0159 D7's ceremony moves it to `form` with its `overrides` declaration and its `basedOn` unchanged, and until it is moved the anonymous form doors keep reading its withdrawal (ADR-0159 D6).

**What this lifts from ADR-0126 §9 and ADR-0131 D6.** §9's first bullet deferred it: "The ServiceNow-style overlay layer
(badge / customization list / diff-vs-base / revert / upgrade skip-report) — recorded as the mature direction **if**
Expand Down
Loading
Loading