Skip to content

Commit 01d462a

Browse files
committed
fix(spec): qualify the entry's surface and name the added member's preview and delete address
Contract review round 2. The entry's surface named every write the ceremony would move as refused; it now says a declared-override move, and that a row it moves as the pair's own member keeps the write. The preview names that row as the pair's own member and only `--json` carries `addedMember`; the pair's delete of a non-canonical locale needs the member selector. The changeset's "Now refused" bullet now says the gate admits the row declared as the base's override, so it agrees with "Still open". Claude-Session: https://claude.ai/code/session_01ADHkmQncBZPJcTEqSfYmqd Co-authored-by: Claude <noreply@anthropic.com>
1 parent d241313 commit 01d462a

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎.changeset/28576-packageless-overlay-write-closed.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Skills-docs: updated here — `skills/objectstack-platform/SKILL.md`'s ADR-0146
2121

2222
The preview lists five dispositions; only `movable` rows are moved, and every other row keeps its package-less write:
2323

24-
- `movable`: `--apply` moves it into the pair, as the base's declared override (outcome `moved` with its `basedOn`). A row of an `email_template` locale the base does not ship (the preview names it `addedMember`) moves instead as the pair's own member at that locale, declaring nothing (outcome `moved` with that `addedMember` in place of a `basedOn`), since a declared override of a locale the base does not ship is refused; its package-less write stays open, before and after the move. A move that ends `failed` keeps the row as it was; fix what the error names and re-run. When the error names the pair (it cannot be ensured, or it refuses the row) or, for a declared override, the base's missing version, the row also keeps its package-less write and may be left.
24+
- `movable`: `--apply` moves it into the pair, as the base's declared override (outcome `moved` with its `basedOn`). A row of an `email_template` locale the base does not ship (the preview lists it as the pair's own member; `--json` carries it as `addedMember`) moves instead as the pair's own member at that locale, declaring nothing (outcome `moved` with that `addedMember` in place of a `basedOn`), since a declared override of a locale the base does not ship is refused; its package-less write stays open, before and after the move. A move that ends `failed` keeps the row as it was; fix what the error names and re-run. When the error names the pair (it cannot be ensured, or it refuses the row) or, for a declared override, the base's missing version, the row also keeps its package-less write and may be left.
2525
- `multi_shipped` (several packages ship the name): delete it naming no package, then save it into the pair of the package it customizes if it is still wanted (the pair's override is then served at that base's address, `?package=<base>`; a read naming no package is not pinned to it while several packages ship the name).
2626
- `no_pair` (the base's id forms no pair): nothing to do.
2727
- `foreign_declaration` (its `overrides` names another package): remove the key with a save naming no package, then re-run: the move declares the right override. (A package-less save that keeps a corrected `overrides` is refused by the override write gate.)
@@ -43,9 +43,9 @@ PUT /api/v1/meta/view/account_list?package=com.acme.crm.custom
4343
{ "name": "account_list", "label": "My accounts", "overrides": { "package": "com.acme.crm", "basedOn": "1.4.0" } }
4444
```
4545

46-
To restore the package original, FROM `DELETE /api/v1/meta/view/account_list` TO `DELETE /api/v1/meta/view/account_list?package=com.acme.crm.custom`. `basedOn` is the base's installed `manifest.version`. The pair is created by `os migrate packageless-overlays --apply`, or by Studio's Customize. A locale of an email template the base does not ship is the pair's own member, not an override: write it into the pair with no `overrides` (one declaring the base is refused), and `DELETE …?package=<base>.custom` removes it.
46+
To restore the package original, FROM `DELETE /api/v1/meta/view/account_list` TO `DELETE /api/v1/meta/view/account_list?package=com.acme.crm.custom`. `basedOn` is the base's installed `manifest.version`. The pair is created by `os migrate packageless-overlays --apply`, or by Studio's Customize. A locale of an email template the base does not ship is the pair's own member, not an override: write it into the pair with no `overrides` (one declaring the base is refused), and `DELETE …?package=<base>.custom&member=<locale>` removes it (with no `member`, the delete addresses the canonical locale).
4747

48-
- **Now refused.** A save (draft or publish mode), a publish, a delete of the active item, or a rollback whose restored row is package-less, with no `?package=` (or an empty one), of a `view`, `dashboard`, `report`, `translation` or `email_template` that exactly one installed read-only package ships, where the item's stored package-less row in that state (or, with none, the saved body) is one the ceremony classifies `movable`, the pair can be ensured (the base has a namespace and a SemVer version), and the override write gate admits that row into the pair. This covers an unmigrated `movable` row, and the first package-less write of an item the pair already holds (a moved one). Each answers `403 NOT_OVERRIDABLE`, writes nothing, and its message names the item, the shipping package, the pair (`?package=<base>.custom`), the `overrides` declaration and `os migrate packageless-overlays`; a rollback's message says to save a version from before the move into the pair, declaring it. The metadata item page shows that message as sent when its URL holds no `?package=`. The refusal comes before every gate that reads a stored row's lock, so it is the same with or without `overrides` in the body.
48+
- **Now refused.** A save (draft or publish mode), a publish, a delete of the active item, or a rollback whose restored row is package-less, with no `?package=` (or an empty one), of a `view`, `dashboard`, `report`, `translation` or `email_template` that exactly one installed read-only package ships, where the item's stored package-less row in that state (or, with none, the saved body) is one the ceremony classifies `movable`, the pair can be ensured (the base has a namespace and a SemVer version), and the override write gate admits that row, declared as the base's override, into the pair (so not an `email_template` locale the base does not ship: see **Still open**). This covers an unmigrated `movable` row, and the first package-less write of an item the pair already holds (a moved one). Each answers `403 NOT_OVERRIDABLE`, writes nothing, and its message names the item, the shipping package, the pair (`?package=<base>.custom`), the `overrides` declaration and `os migrate packageless-overlays`; a rollback's message says to save a version from before the move into the pair, declaring it. The metadata item page shows that message as sent when its URL holds no `?package=`. The refusal comes before every gate that reads a stored row's lock, so it is the same with or without `overrides` in the body.
4949
- **Still open.** Every write naming `?package=<base>.custom` (the pair's save, publish, delete and rollback, judged by the override write gate as before); a rollback of the pair's own declared row, which is judged as the pair's override; a write of a name no installed package ships (environment metadata); and every package-less write the ceremony would not move, as before this release: a name several read-only packages ship (`multi_shipped`); a base whose id forms no pair (`no_pair`); a base whose pair cannot be ensured (no namespace, or a version that is not SemVer); a stored package-less row whose `overrides` names another package (`foreign_declaration`) or beside the pair's row of the item (`shadowed`; its package-less writes are addressed to the pair's row as before, so its package-less delete restores the package original). Every package-less write of an `email_template` locale the base does not ship stays open too, before and after the ceremony moves its row as the pair's own member (#28904): the close judges only the declared-override move, and the override write gate refuses a declared override of that locale (#28777). Discarding a draft stays open.
5050
- **Unchanged.** A package-less row stored before this release is still served exactly as before, by every read. The ceremony still moves it: it writes into the pair, never package-less.
5151
- **Studio.** The read-only item notice no longer links to the package-less Setup overlay (`@object-ui/app-shell`).

‎packages/spec/src/migrations/entries/semantic/18.packageless-overlay-write-closed.ts‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,23 @@ export const entry: SemanticMigration = {
1818
+ 'metadata area where Setup\'s metadata URLs now land, when its URL holds no ?package=) onto a '
1919
+ 'view, dashboard, report, translation or email template that one installed read-only package '
2020
+ 'ships, where `os migrate packageless-overlays` would move the row into that package\'s '
21-
+ 'paired `<base>.custom`; and the package-less sys_metadata rows Setup\'s form stored that way',
21+
+ 'paired `<base>.custom` as a declared override (a row it moves as the pair\'s own member, an '
22+
+ 'email template locale the base does not ship, keeps the write); and the package-less '
23+
+ 'sys_metadata rows Setup\'s form stored that way',
2224
replacement:
2325
'after upgrading, run `os migrate packageless-overlays` (preview) on each deployment with '
2426
+ 'Setup customizations, with the flags and environment the deployment boots with (`--preset` '
2527
+ 'and `--dev` mean what they mean to `os serve`), then `os migrate packageless-overlays '
2628
+ '--apply`: it moves each `movable` row into the base\'s paired `<base>.custom`, declaring '
2729
+ '`overrides: { package: <base>, basedOn: <installed version> }`, except a row of an email '
28-
+ 'template locale the base does not ship (the preview names it `addedMember`), which it moves '
29-
+ 'as the pair\'s own member at that locale, declaring nothing (its outcome is `moved` with that '
30-
+ '`addedMember` in place of a `basedOn`). From then on write that customization into the '
30+
+ 'template locale the base does not ship (the preview lists it as the pair\'s own member; '
31+
+ '`--json` carries it as `addedMember`), which it moves as the pair\'s own member at that '
32+
+ 'locale, declaring nothing (its outcome is `moved` with that `addedMember` in place of a '
33+
+ '`basedOn`). From then on write that customization into the '
3134
+ 'pair: `PUT /api/v1/meta/<type>/<name>?package=<base>.custom` with the `overrides` declaration '
3235
+ 'in the body (an added member\'s with none), and `DELETE /api/v1/meta/<type>/<name>?package='
33-
+ '<base>.custom` to restore the package original (an added member\'s removes it). An added '
36+
+ '<base>.custom` to restore the package original (an added member\'s, with '
37+
+ '`&member=<locale>`, removes it). An added '
3438
+ 'member\'s package-less write stays open, before and after its move. Every row the preview '
3539
+ 'lists and does not move keeps its package-less write: `multi_shipped` (several packages ship '
3640
+ 'the name): delete it naming no package, then save it into the pair of the package it '

0 commit comments

Comments
 (0)