Skip to content

Commit f42afe7

Browse files
feat(spec)!: a view holds lists only; view-held forms are tombstoned (#38957)
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzj7Sj3euvc1cYXrhNA <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBDjzWFC3d7kCBaYY5Z9GpAL)_ Fixes #37112 Supersedes #38908, which superseded #38888. The maintainer handed this card to seat `repo:objectstack@os-support-ai` (claim 7315188352 on #37112, amendments 1–15). This branch starts at #38908's head `573b29bb88` (every commit of #38908 and #38888 kept) and merges `main`. #38908 and #38888 close when this PR lands. 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 ## 维护者速读 - 用户能看到什么变化:升级到 19 版后,视图只放列表,表单只认独立的 `form` 类型;三种旧写法在校验、`defineStack` 和保存时被拒绝(422),并给出改法;没跑升级命令的部署会拒绝启动,并提示该跑哪条命令。 - 有意和 18 版不同的地方(跑完升级命令前):存在旧格式行里的表单,在 `os migrate protocol --to 19 --apply` 搬走之前一律不对外服务(404),搬走后按原名、原链接恢复服务。其中包括 18 版会在链接上打开的、19 版之前存下的「开着的副本」;自己组装内核、不挂启动守卫的宿主也一样。还包括:某个包已经以 `form` 类型发布了一个表单、部署里另有旧格式行也存着它时,18 版在链接上打开它,19 版在搬走前同样回 404,搬走后恢复。已下线的表单在搬之前、搬之后都保持下线。 - 测试含义变化:组织归属迁移在 single 姿态下,`withdrawalsCarried` 由 0 变为 1(表单下线也会搬到 `form` 上,偏向关闭);API 调用方能看到的错误码变化:带表单、撞上已占用公开链接的 `view` 保存,原来回 `FORM_ADDRESS_TAKEN`,现在回 `422 INVALID_METADATA`。 - 为什么做:表单拆成独立类型这个专题的收尾一步,19 大版本按裁定一次切换。 - 出错会怎样:影响升级到 19 版的部署和作者;合并前可撤回,发版后撤回要再出一个版本。 - 要你做什么:契约复审和 L1 通过后请你批(Tier H);落地时请顺手关闭 #38908 和 #38888(它们的提交都已在本 PR 里)。 ## What changes PR 2 of 2 for #37112 (PR 1, #38844, shipped the conversions, `os migrate protocol --to 19` and the switch marker). - [x] Tombstones in `@objectstack/spec`: `view.form`, `view.formViews`, the `form` view kind, the flattened form overlay, and the `_views.KEY.title` / `.submitBehavior` translation tails (ADR-0159 D7, D8). New exports `ServedViewItem`, `expandServedViewContainer`, `isServedViewItem`. - [x] Boot guard (ruling 7303149461): a 19 runtime without the switch marker refuses to start with `FORM_TYPE_SWITCH_REQUIRED` and names the command; no skip switch. Birth marker (ruling 7308112533): a store created from empty records the marker itself. - [x] View reads serve lists only (metadata-protocol, intake, rest, loaders); the `view` save door refuses the old shapes with the `forms:` prescription (`422 INVALID_METADATA`); saving a served old-shape container back is refused, so no stored state is lost. - [x] The `form` type's write doors and validators moved from `view` to `form`; lint stops reading the old shapes; `form-view-internal-not-loaded` is retired (its successor `form-consumer-less` stays). - [x] Withdrawn public forms stay closed across the switch: the door judges the base's own form ahead of its override; a stored copy's withdrawal keeps closing the copying package's form; `os migrate organization-ownership --apply` carries a form withdrawal into the pair at 19. - [x] Withdrawn forms stay closed across the switch for every stored shape: a stored row is read under the name its package's form is served under at 19, and a row whose package cannot be told apart reads closed at each package that ships the form (contract-review round 1, M1; claim amendment 16). - [x] Fix: a form save into a pair no longer hangs on SQLite when legacy organization rows exist (the read joins the save's transaction). - [x] `os migrate packageless-overlays` deletes a view container it cannot move only after `os migrate protocol --to 19 --apply` has moved its form members. - [x] Console (`ui/`): list switcher, Studio view editor and view preview handle lists only. - [x] Docs, spec prose, liveness re-cite, BREAKING changeset `.changeset/37112-view-holds-lists-only.md`. ## Why ADR-0159 card ⑤b: forms are their own metadata type, and major 19 stops reading the three view-held form shapes (ruling record 7142585849 on #36868: convert first, then switch, in the next major). ## Deliberate differences from 18 until the ceremony On protocol 19, before `os migrate protocol --to 19 --apply --yes` has moved them, forms held only in stored old-shape rows answer `404` on both doors, whoever asks; after the move they are served as `form` items under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which 18 served at its link (amendment 10, 7325088362, records the per-cell 18 reading), and it holds on a host that assembles its own kernel without the boot guard. It also includes a form a package ships as a `form` item while a stored old-shape row also holds it: 18 served it at its link, and on 19 it answers `404` until the ceremony moves the row (seat ruling on contract-review round 1). Withdrawn arms are unchanged: closed before and after the move. ## Rewritten tests (none deleted; every flip is 200→404 within the ruled classes Q2/Q3) - Q2: 'an old-shape form open in the base's code is read as no `form` item … 404 (ADR-0159 D7)'; 'an old-shape form whose `data.object` differs … served on neither door'; the reads-once by-name form read answers `undefined` and the door GET 200→404 (×2); the title-i18n overlay case renamed to its 404. - Q3: 'package-less form at the environment's own address … 404 before `--apply`, served after' (×3); 'the fold, writable-base twin … closed before and after'; 'retired form and its successor … 404 before, served after'; 'three old shapes … lists only'. - The three ceremony cases in `public-form-two-type-withdrawal.test.ts` now answer 404 before `--apply` and serve after it, renamed '(ADR-0159 D7)'. - `public-form-section-i18n.test.ts`: 3 cases (overlay 404; container slots 404). - The audience-gated stored old-shape item on `/meta/view` and `/meta/form` answers 404 to stranger and holder alike (was 403/200). - The taken-link `view` write answers `422 INVALID_METADATA` (was `FORM_ADDRESS_TAKEN`; named in the changeset). - The four stored-copy withdrawal pins: the open arm reads 'the copy opens nothing' (was 'doors serve the shipped form'); the four (i)(b) form cells the same. - Dogfood: the `isDefault`-on-default-form assertion is replaced by its refusal case (ADR-0159 D1 refuses `isDefault` on form items). - Ownership migration: 'under single, a withdrawal travels with the promoted row' now reports `withdrawalsCarried` 1 (was 0; the form carry also closes the served `form`, fail-closed); the control case's open list drops the package-less entry (the double serves `form` items only); the pair case runs `isolated`. - New describe '[ADR-0159 D7] a stored row is read under the name its package's form is served under on protocol 19' in `public-form-two-type-withdrawal.test.ts`: two controls and three cells (closed on both doors before and after `--apply`, the ceremony moves the withdrawal into the pair; a row whose package cannot be told apart reads closed at each; the row's list keeps its name). Ablation: with the new reading reverted the three cells answer 200 instead of 404 and the two controls stay green; restored to `blob == HEAD`. - Withdrawal pins over old-shape bases re-pointed to `form` items, each with its named ablation measured red; new twins 'narrowing only, the 19 twin' and 'pin 2b, the 19 twin'. Renames (old → new): - 'pin 1 — … closed (ablate: the `view` half of the layer)' → 'pin 1 — … closed three ways over (ablate together: the closed reading of a served old-shape row, the `form` half and the `view` half of the layer; any two of them alone leave it closed, and pin 3 carries the `view` half alone)'. Measured: red only with all three ablated. - 'pin 2 — the mirror: withdrawn by a `form` override, open as an old-shape item in the base (ablate: the `form` half)' → 'pin 2 — the mirror on 19: a `form` override switched off over a base whose old-shape item serves no form stays closed (the `form` half is carried red by pin 5 for `form`, "narrowing only, the 19 twin" and "pin 2b, the 19 twin")'. - 'rule 9 — an organization-scoped `form` save is refused as the same `view` save is, the withdrawal held in the other type, and nothing is written' → 'rule 9 — an organization-scoped `form` save is refused under every posture …: nothing is written, and both doors stay closed'. - New: 'the switched-off form in a record-form slot, the stored twin over a base whose `form` item in the slot declares no link …', red under its named ablation (judge "public" by `sharing.enabled === true`). Renames change titles and ablation labels only; no assertion was weakened or dropped. ## Verification Gates below ran on head `8b171d71`; the M1 fix (head `83a0f872`) re-ran the metadata-protocol (23,940 tests), rest (9,243), spec (29,057) suites and the dogfood battery (53), all green, plus the typecheck, alias, NUL-byte and changeset gates. Unless noted (logs kept by the card thread). Body refreshed 2026-12-02T02:45Z. - `node scripts/pm/dispatch-gates.mjs --ran`: 176 derived, 176 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero: every line recorded its exit code). 172 ran on `22acdd4e` (the same tree but one rest test file); the 4 that first refused for want of a build (`check-plugin-teardown-shape --self-test`, `check:skill-examples`, `check:dual-build-cjs-loads`, `check:published-readme-exports`) passed on `8b171d71` after `pnpm build`. - `@objectstack/metadata-protocol` full suite: 381 files passed, 9 skipped; 23,940 tests passed. - `@objectstack/rest` full local project: 448 files, 9,238 tests passed, exit 0. - Dogfood battery, real booted stacks: 7 files, 53 tests passed (`public-form-withdrawal-walled`, `guest-grants-channel`, `guest-owner-stamp`, `public-form-read-back-masking`, `public-form-submit-answer`, `form-type-switch-boot-refusal`, `view-container-default-form`); every rewritten withdrawal test keeps its 404s and runs. - Ablations: every new or re-pointed withdrawal pin was measured red under its named mutation and restored to `blob == HEAD`; the SQLite transaction pins time out without the join; the ownership carry pins go red with the carry pointed at the `view` read. - CI on `11c52522` (`83a0f872` with `main` merged in; a pure merge, the spec regeneration chain and the skills token ratchet re-ran with no change): 66 success, 9 skipped, 1 failure (PR-body guards, below); the opt-in dogfood battery (three shards) is green on this head and on `83a0f872`. Known red: - **PR-body guards** (duplicate check): #38908 and #38888 still carry `Fixes #37112`. Every commit of both is in this PR. They close as superseded when this PR lands; until then this guard stays red by design. ## Follow-ups - #39003: UI leftovers unreachable at 19 (Studio form family, dead helpers, a dead i18n key) and the semantic migration's stale rule id (after #38875). - #39004: `GET /api/v1/meta/form?object=X` ignores `object` (pre-existing, made visible by 19). ## Human Minimum - [ ] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [ ] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` passes. - [ ] 4. One issue, one branch off an up-to-date `main`, one pull request. - [ ] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [ ] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [ ] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [ ] 8. Title, body and comments are in English. - [ ] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzj7Sj3euvc1cYXrhNA <!-- signed: repo:objectstack@os-support-ai · os-support-ai · session_01WGufzj7Sj3euvc1cYXrhNA --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 363c967 commit f42afe7

287 files changed

Lines changed: 11434 additions & 6761 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/cli': minor
4+
'@objectstack/lint': minor
5+
'@objectstack/metadata-core': minor
6+
'@objectstack/metadata-protocol': minor
7+
'@objectstack/rest': minor
8+
'@objectstack/runtime': minor
9+
'@objectstack/plugin-auth': minor
10+
'@object-ui/console': minor
11+
'@object-ui/app-shell': minor
12+
'@object-ui/core': minor
13+
'@object-ui/types': minor
14+
---
15+
16+
feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7)
17+
18+
Clause-②: yes (narrowing)
19+
Metadata-protocol: narrowed
20+
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
21+
22+
**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.
23+
24+
**BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`:
25+
26+
| Old shape (protocol 18) | Protocol 19 |
27+
|---|---|
28+
| `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` |
29+
| `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` |
30+
| `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level |
31+
| `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` |
32+
33+
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`.
34+
35+
**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.
36+
37+
**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.
38+
39+
**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.
40+
41+
**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.
42+
43+
**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.
44+
45+
**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.
46+
47+
**Removed exports** (FROM → TO):
48+
49+
- `@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.
50+
- `@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.
51+
52+
**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.
53+
54+
<!-- 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 -->

‎content/docs/concepts/architecture.mdx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ Kernel **orchestrates** these rules at runtime, independent of the data structur
230230
// src/views/customer.view.ts
231231
import { defineView } from '@objectstack/spec';
232232

233-
// A view is authored with defineView({ list, form }); the list/form configs
234-
// are nested, and the data source declares which object the view reads.
233+
// A view container holds lists only: the list config is nested under `list`,
234+
// and the data source declares which object the view reads. A form is its
235+
// own `form` item, named OBJECT.KEY (see the next example).
235236
export const CustomerView = defineView({
236237
list: {
237238
type: 'grid',

‎content/docs/concepts/metadata-lifecycle.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ document **whole** for every read that serves the base's name
190190

191191
> **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.
192192

193-
> **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.
193+
> **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.
194194

195195
| Type | `allowEnvironmentOverlay` | Rationale |
196196
| :--- | :---: | :--- |

0 commit comments

Comments
 (0)