Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
c30e4e5
spec: tombstone view-held forms and the _views form translation tails
claude Dec 1, 2026
c94e22f
spec: keep the one-arm view item a discriminated union; ledgers follow
claude Dec 1, 2026
41518eb
spec: rewrite the view tests to the list-only answer
claude Dec 1, 2026
2c349f4
spec: expandViewContainer stays the raw expansion; add expandServedVi…
claude Dec 1, 2026
ced3490
rest: pin a stored container's form members as stored forms on both d…
claude Dec 1, 2026
d42ef2b
metadata-protocol, rest: a view read serves lists only; the form read…
claude Dec 1, 2026
240a1f5
spec: type getUiView's form answer as the form scaffold
claude Dec 1, 2026
3e79559
Merge origin/main into claude/project-thread-d63y4z
claude Dec 1, 2026
1a23b3c
docs(spec): the form-type-switch marker has two writers and a reader
claude Dec 1, 2026
35399e5
spec: the view item kind's variant ledger row follows the one-arm union
claude Dec 1, 2026
b2a4606
feat(runtime,cli)!: os serve refuses a database whose protocol-19 swi…
claude Dec 1, 2026
fb52fe6
spec: the form ledger, the translation ledger and the view prose foll…
claude Dec 1, 2026
7a58315
test(runtime): pin the no-ledger refusal and the declared order after…
claude Dec 1, 2026
07d7dcf
spec: tree-scoped absence pin for the view's retired form slots
claude Dec 1, 2026
3b17ebd
spec: the form-slot pin's scanner states its key-position rule once
claude Dec 1, 2026
ab69a2f
spec: the form-slot pin's neighbours hold the comment and string skips
claude Dec 1, 2026
5468184
test(cli): the switch record is what the served boot reads; the flush…
claude Dec 1, 2026
1bb1e92
test(cli): a switch birth marker the flush cannot write is handed to …
claude Dec 1, 2026
dfaf069
test(dogfood): the protocol-19 boot refusal is the way through, measu…
claude Dec 1, 2026
0d00ceb
test(cli): a real os serve boot refuses a database with no protocol-1…
claude Dec 1, 2026
390594f
Merge lane A boot guard into the lint lane base
claude Dec 1, 2026
4ed889b
feat(metadata-protocol,spec)!: a by-name `view` read serves lists onl…
claude Dec 1, 2026
3ef7c21
Merge lane A boot guard into the PR branch
claude Dec 1, 2026
2e3e0f3
test(rest): two addresses a stored old-shape body alone closes on a 1…
claude Dec 1, 2026
2deb87e
test(dogfood): five public-form fixtures author the form as a form item
claude Dec 1, 2026
65155e4
Merge lane C2 dogfood fixtures into the PR branch
claude Dec 1, 2026
fb66abb
feat(runtime,spec,plugin-auth): the protocol-19 boot refusal carries …
claude Dec 1, 2026
fff47a9
test(plugin-auth): the guard-ordering pin pays its dist-resolved load…
claude Dec 1, 2026
573b29b
Merge lane A follow-up (error code, auth start order) into the PR branch
claude Dec 1, 2026
694dc6a
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Dec 1, 2026
c79fada
docs(skills): the i18n key map sends a form's copy to the forms group
claude Dec 1, 2026
8139910
refactor(metadata-protocol): the lists-only by-name view read lives i…
claude Dec 1, 2026
432c706
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
836f91f
refactor(runtime): the form-type-switch refusal name is module-privat…
claude Dec 1, 2026
54034d1
feat(metadata-core,metadata-protocol,rest): the core reads follow the…
claude Dec 1, 2026
08eda76
Merge commit 'refs/c2/pr-branch' into claude/project-thread-0tmkk6
claude Dec 1, 2026
6ac4171
docs(cli): explain, generate and the migrate commands word a view as …
claude Dec 1, 2026
4b51e90
feat(lint)!: retire form-view-internal-not-loaded; view-container-sha…
claude Dec 1, 2026
1d3b73f
test(metadata): the artifact door's view-held-form fixtures take the …
claude Dec 1, 2026
6817403
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
37d24e8
wip(lint): the form rules read forms[] items; the walker drops the co…
claude Dec 1, 2026
b7db5ed
fix(lint): the showcase snapshot authors its forms as form items
claude Dec 1, 2026
8c9fc28
Merge commit 'refs/c2/pr-branch' into claude/project-thread-0tmkk6
claude Dec 1, 2026
3732922
test(metadata-protocol): the save-union and still-shown-by suites tak…
claude Dec 1, 2026
49066ed
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
843085a
test(lint): the walker suite pins the forms[] rung and the retired co…
claude Dec 1, 2026
fa83a16
test(lint): the form-layout suite stands on forms[] items
claude Dec 1, 2026
4439239
feat(ui): the console and Studio handle a view as a list; the view-he…
claude Dec 1, 2026
a8b64b1
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
78389c2
test(metadata-protocol): the public-form intake advisory is pinned at…
claude Dec 1, 2026
bffccc9
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
5ac4964
test(lint): the translatable-sections suite stands on forms[] items
claude Dec 1, 2026
3b8d33b
test(objectql),docs(rest): the form-only view container takes the pro…
claude Dec 1, 2026
0ab0df7
test(lint): the content-rule suites stand on forms[] items
claude Dec 1, 2026
4f6a46b
Merge commit 'refs/c2/pr-branch' into claude/project-thread-0tmkk6
claude Dec 1, 2026
2059fe9
test(cli): the thank-you panel coverage suite reads the forms family
claude Dec 1, 2026
b4e4761
test(metadata,rest): pay metadata-fs at collection; the admin read's …
claude Dec 1, 2026
de4fa91
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
2a9533a
test(app-shell): five metadata-admin test files pay their dynamic-imp…
claude Dec 1, 2026
36a776f
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
78d0b9a
test(lint): the runtime-gate family suite stands on the form door
claude Dec 1, 2026
5e43b72
Merge commit 'refs/c2/pr-branch' into claude/project-thread-0tmkk6
claude Dec 1, 2026
c45f24c
test(cli): the i18n title, section and entry coverage suites read the…
claude Dec 1, 2026
e3e6b5b
fix(spec): `ServedViewItem` is nameable from the root entry
claude Dec 1, 2026
b5e1fa6
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
9c859f3
test(metadata-protocol): the public-form file-field refusal is pinned…
claude Dec 1, 2026
d0dce20
test(rest): five injected-form harnesses serve the form as a `form` item
claude Dec 1, 2026
7241570
test(cli): two integration fixtures author their public form as a for…
claude Dec 1, 2026
e685c25
Merge commit 'refs/c2/pr-branch' into claude/project-thread-0tmkk6
claude Dec 1, 2026
116d534
fix(ui): the form schema derivation reads the form item schema; the O…
claude Dec 1, 2026
416c27b
Merge branch 'claude/project-thread-0tmkk6' of https://github.com/obj…
claude Dec 1, 2026
b832816
test(objectql): the stored-form census premises read the census's own…
claude Dec 1, 2026
2f1e9a4
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
2cade4b
fix(metadata-protocol): a form item's read carries the form-layout wa…
claude Dec 1, 2026
2fac0c6
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
59a21d3
refactor(rest): the cached meta read asks the intake warning for form…
claude Dec 1, 2026
8b6642f
test(verify): the public-form door fixture authors its two forms as f…
claude Dec 1, 2026
b0c3d53
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
357e7d0
test(metadata-protocol): the groups fold is pinned on form items; for…
claude Dec 1, 2026
64bce78
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
10b4c24
test(objectql): the duplicate batteries author their forms as form items
claude Dec 1, 2026
c9fece1
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
dec9653
test(objectql): the withheld-field form cases read and save the form …
claude Dec 1, 2026
8e546d9
test(metadata-protocol): view containers that hold a form are refused…
claude Dec 1, 2026
e08e649
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
a7550ad
test(dogfood): the default-form probe authors its forms as form items…
claude Dec 1, 2026
9fbba44
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
f28e337
refactor(metadata-protocol): the public-form intake advisory judges f…
claude Dec 1, 2026
fd3b1ed
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
a323d6c
test(metadata-protocol): two packages ship a form item, and a stored …
claude Dec 1, 2026
30027a8
test(rest): the stored-row and title i18n form tests author form items
claude Dec 1, 2026
2d7e927
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
b6ed185
test(verify): the public-form door test pays the automation service's…
claude Dec 1, 2026
4d356bf
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
ffefa40
test(metadata-protocol): drop an unread binding the view-container re…
claude Dec 1, 2026
2252ac4
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
c2664ff
test(rest): the pair-translation form test overrides a form item
claude Dec 1, 2026
7a5e36b
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
355c0ea
test(rest): a save-back of an old-shape container is refused, so no s…
claude Dec 1, 2026
1b2718c
test(rest): the effective-read withdrawal and #38437 pin 3 seeds reac…
claude Dec 1, 2026
e45ba32
test(metadata-protocol): a view container's per-package copies stand …
claude Dec 1, 2026
7a86dc4
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
79c1402
test(lint): the field-consumer fixtures author form items, not view-h…
claude Dec 1, 2026
de39d37
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
b9923fd
fix(rest): the public form doors judge the base's own form ahead of i…
claude Dec 1, 2026
695015c
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
bc2c797
fix(metadata-protocol): a pair's form override is served by name; a f…
claude Dec 1, 2026
51e6ac8
test(lint): view-held form fixtures become form items and refusal pins
claude Dec 1, 2026
cdae332
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
5b53222
test(rest): an old-shape base and a stored old-shape overlay serve no…
claude Dec 1, 2026
e6d50be
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
441a18f
fix(metadata-protocol): a stored copy's withdrawal keeps closing the …
claude Dec 1, 2026
26799ff
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
03dae18
fix(ui): the view config adapter produces a list draft, never a form …
claude Dec 1, 2026
1509263
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
52ed802
test(rest): the section i18n form tests serve form items
claude Dec 1, 2026
9a17368
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
f1021a2
test(ui): the adapter round-trip keeps a form-typed body whole as a l…
claude Dec 1, 2026
3daaada
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
c543a30
docs: stop authoring a form into a view in the architecture page and …
claude Dec 1, 2026
fbba12e
docs,spec: the author-time rule count, the stored-forms check and spe…
claude Dec 1, 2026
f08b556
docs: the form pages, the upgrade guide and the stored-forms check sa…
claude Dec 1, 2026
a19b693
changeset: protocol 19 — a view holds lists only, and a form is its o…
claude Dec 1, 2026
508c5b6
changeset: spell the ADR-0087 disposition as the gate parses it
claude Dec 1, 2026
c786a23
spec: the view-key namespace prose names list views only at protocol 19
claude Dec 1, 2026
8788a8f
cli: the ownership migration carries a form withdrawal into the pair …
claude Dec 1, 2026
3ca9fbe
cli(test): the withdrawal-pair integration file pays its dynamic load…
claude Dec 1, 2026
a05be9f
test(rest): the two-type withdrawal pins seed the old shapes at rest …
claude Dec 1, 2026
0f9fdca
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
6b32f92
test(rest): a stored old-shape overlay and a container body serve no …
claude Dec 1, 2026
48a65ce
docs(metadata-protocol): the disabled-extension fold's docblock names…
claude Dec 1, 2026
890e2bd
fix(cli): packageless-overlays orders a view container's delete after…
claude Dec 1, 2026
1fdc637
test(cli): packageless-overlays integration pays its dynamic workspac…
claude Dec 1, 2026
499a46c
metadata-protocol: the legacy organization-row read joins the engine'…
claude Dec 1, 2026
5e653b9
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
a894f5b
test(rest): three ceremony pins answer 404 before --apply, the moved …
claude Dec 1, 2026
2c4dde8
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
c179df8
runtime(test): the legacy organization-row transaction pins install t…
claude Dec 1, 2026
40dd2af
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
79de8ae
test(rest): the narrowing-only pin gets a twin whose base ships the f…
claude Dec 1, 2026
dfdec0f
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
cf1be3a
cli: the ownership migration's withdrawal carry reads the served form…
claude Dec 1, 2026
9c0c245
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
183eb85
cli(test): the ownership apply suites pay their dynamic workspace loa…
claude Dec 1, 2026
f856e70
test(rest): the fold's no-form-row pin stands over an open `form` ite…
claude Dec 1, 2026
bb9f923
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
f05dfdd
test(rest): pin 2b gets a twin whose dependent row is a stored `form`…
claude Dec 1, 2026
de28fec
changeset: name the ownership carry, the pre-switch 404, the taken-li…
claude Dec 1, 2026
189f20d
test(rest): the hook-refusal ledger harness answers the form door's s…
claude Dec 1, 2026
2e55839
test(rest): pin 2 and rule 9 named for what they pin; the record-form…
claude Dec 1, 2026
0a3d63c
Merge origin/main into claude/project-thread-0tmkk6
claude Dec 1, 2026
22acdd4
spec: regenerate the API, authorable-surface and export-origin baseli…
claude Dec 1, 2026
a898479
test(rest): pin 1 names the three readings that each keep it closed
claude Dec 1, 2026
8b171d7
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 1, 2026
52b2ac8
fix(metadata-protocol): read a stored row under its package's protoco…
claude Dec 2, 2026
e8cc104
test(rest): pin a stored row read under its package's protocol-19 for…
claude Dec 2, 2026
60d54fe
docs(spec,metadata-protocol): say what the served view filter passes;…
claude Dec 2, 2026
83a0f87
fix(metadata-protocol): keep the own-name reading for a container fil…
claude Dec 2, 2026
11c5252
Merge FETCH_HEAD into claude/project-thread-0tmkk6
claude Dec 2, 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
54 changes: 54 additions & 0 deletions .changeset/37112-view-holds-lists-only.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
'@objectstack/spec': minor
'@objectstack/cli': minor
'@objectstack/lint': minor
'@objectstack/metadata-core': minor
'@objectstack/metadata-protocol': minor
'@objectstack/rest': minor
'@objectstack/runtime': minor
'@objectstack/plugin-auth': minor
'@object-ui/console': minor
'@object-ui/app-shell': minor
'@object-ui/core': minor
'@object-ui/types': minor
---

feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7)

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view

**BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves.

**BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`:

| Old shape (protocol 18) | Protocol 19 |
|---|---|
| `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` |
| `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` |
| `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level |
| `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` |

The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`.

**What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item.

**Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running.

**Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened.

**Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move.

**Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members.

**Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does.

**Removed exports** (FROM → TO):

- `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it.
- `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens.

**New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions.

<!-- adr-0087: not-required (already-registered view-forms-move-to-form-type, translation-form-tails-move-to-forms) the source conversions and their semantic entries shipped with the move; this change tombstones the shapes they convert, and the four tombstones are filed as 19.* retired-key entries -->
5 changes: 3 additions & 2 deletions content/docs/concepts/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ Kernel **orchestrates** these rules at runtime, independent of the data structur
// src/views/customer.view.ts
import { defineView } from '@objectstack/spec';

// A view is authored with defineView({ list, form }); the list/form configs
// are nested, and the data source declares which object the view reads.
// A view container holds lists only: the list config is nested under `list`,
// and the data source declares which object the view reads. A form is its
// own `form` item, named OBJECT.KEY (see the next example).
export const CustomerView = defineView({
list: {
type: 'grid',
Expand Down
2 changes: 1 addition & 1 deletion content/docs/concepts/metadata-lifecycle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ document **whole** for every read that serves the base's name

> **ADR-0131 D6 — the per-organization overlay axis is retired.** The `/meta` doors (REST and the runtime dispatcher) carry no organization into a metadata write or read: a Studio or `PUT /api/v1/meta/...` write of the five ✅ types below lands **environment-wide** (since ADR-0131 D7 the `sys_metadata` family declares no organization column) and is served to every organization, and an organization admin holding only the retired `manage_org_presentation` capability is refused (`403`). The protocol itself refuses every organization-scoped write, and every read — item, list, layers, cached, history, diff, audit, drafts and the commit timeline — is environment → code, whatever organization a caller names. An overlay row an earlier release stored under an organization — under the `single` posture, every Studio save of these types, filed under the Default Organization — is served by no read, and on a SQL database (SQLite, PostgreSQL, MySQL) still holding one a v18 `os serve` refuses to start until the v18 migration ceremony (ADR-0131 C7: `os migrate organization-ownership --out PLAN`, then `--apply --plan-file PLAN`) has carried such a row to the environment layer and dropped the column; nothing deletes or rewrites it before then. The anonymous form doors read the environment alone too: the ceremony carries every organization-layer public-form withdrawal onto the environment, fail-closed. The table still records which types take an overlay of a shipped item.

> **ADR-0146 D11 — the tier no longer opens a write door onto a packaged item.** A write naming no package — a save, a publish, a reset (`DELETE`) or a rollback — onto a ✅-type item that one installed read-only package ships is refused `403 NOT_OVERRIDABLE`, and the sentence names the base's pair: save it into `?package=<base>.custom`, declaring `overrides` ([above](#customizing-an-installed-package-the-paired-custom-override-adr-0146)); for an item a kernel package (scope `system` or `cloud`) ships, the same write is refused with a sentence that names no pair, because kernel objects are not customizable in this version and a kernel package has no pair. A package-less row stored before the close is still served until `os migrate packageless-overlays` moves it into the pair as a declared override; the ✅ row is now the set that ceremony moves and the read path honours for an unmoved row. A package-less write of a name no package ships is environment metadata, and stays open. So does the package-less write of a view container (`list` and `listViews`, and the `form` / `formViews` members a row stored before protocol 19 still holds, which `os migrate protocol --to 19 --apply` moves to `form` rows): only a single view declares an override, so the ceremony lists the container and leaves it, and its views move into the pair one by one, each as a single view.
> **ADR-0146 D11 — the tier no longer opens a write door onto a packaged item.** A write naming no package — a save, a publish, a reset (`DELETE`) or a rollback — onto a ✅-type item that one installed read-only package ships is refused `403 NOT_OVERRIDABLE`, and the sentence names the base's pair: save it into `?package=<base>.custom`, declaring `overrides` ([above](#customizing-an-installed-package-the-paired-custom-override-adr-0146)); for an item a kernel package (scope `system` or `cloud`) ships, the same write is refused with a sentence that names no pair, because kernel objects are not customizable in this version and a kernel package has no pair. A package-less row stored before the close is still served until `os migrate packageless-overlays` moves it into the pair as a declared override; the ✅ row is now the set that ceremony moves and the read path honours for an unmoved row. A package-less write of a name no package ships is environment metadata, and stays open. So does the package-less write of a view container (`list` and `listViews`; since protocol 19 a write that carries a `form` or `formViews` member is refused `422 INVALID_METADATA` with a prescription naming `forms:`, and the members a row stored before it still holds are moved to `form` rows by `os migrate protocol --to 19 --apply`): only a single view declares an override, so the ceremony lists the container and leaves it, and its views move into the pair one by one, each as a single view.

| Type | `allowEnvironmentOverlay` | Rationale |
| :--- | :---: | :--- |
Expand Down
Loading
Loading