Skip to content

Commit ecf1fd4

Browse files
committed
fix(spec): the packageless-overlay-write-closed replacement covers rows bound to the read-only package
Since the ceremony also moves rows bound to the read-only package itself, the entry's replacement names them, and gives a bound foreign_declaration row the remedy the cli prints (delete it naming the package, then save its body into the pair, declared), since a save naming the package is closed. The package-less remedies are unchanged. Text only. Claude-Session: https://claude.ai/code/session_01JQwxbWytk9Ec5dXr38QrwZ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6b1ea51 commit ecf1fd4

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎.changeset/29393-overlay-write-entry-both-addresses.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Clause-②: no (migration entry prose; no accept set moves)
88

99
Metadata-protocol: none
1010

11-
The ADR-0087 semantic entry `packageless-overlay-write-closed`, unreleased and shipping in this release, named only the write naming no package in its `surface` and `reason`. The same release also refuses a save, publish or rollback that names the installed read-only package itself (`?package=<base>`) onto a view, dashboard, report, translation or email template it ships, with the same fix the entry's `replacement` already prescribes: write the customization into the base's paired `<base>.custom`, declaring `overrides`. The entry's `surface` now names both addresses, and the stored rows either one left (package-less, or bound to the read-only package); its `reason` says what each address stored, and which writes naming the package stay open (a delete, and every write the pair could not take). The generated protocol upgrade guide shows both in one entry. Text only: no schema, export or runtime behaviour changes.
11+
The ADR-0087 semantic entry `packageless-overlay-write-closed`, unreleased and shipping in this release, named only the write naming no package in its `surface` and `reason`. The same release also refuses a save, publish or rollback that names the installed read-only package itself (`?package=<base>`) onto a view, dashboard, report, translation or email template it ships, with the same fix the entry's `replacement` already prescribes: write the customization into the base's paired `<base>.custom`, declaring `overrides`. The entry's `surface` now names both addresses, and the stored rows either one left (package-less, or bound to the read-only package); its `reason` says what each address stored, and which writes naming the package stay open (a delete, and every write the pair could not take). Its `replacement` now says that `os migrate packageless-overlays` moves a row bound to the read-only package too, and gives such a row its own `foreign_declaration` remedy, the one the command prints: delete it naming the package, then save its body into the pair, declaring `overrides` (a save naming the package, which would remove the key in place, is closed). The generated protocol upgrade guide shows both in one entry. Text only: no schema, export or runtime behaviour changes.

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export const entry: SemanticMigration = {
3131
'after upgrading, run `os migrate packageless-overlays` (preview) on each deployment with '
3232
+ 'Setup customizations, with the flags and environment the deployment boots with (`--preset` '
3333
+ 'and `--dev` mean what they mean to `os serve`), then `os migrate packageless-overlays '
34-
+ '--apply`: it moves each `movable` row into the base\'s paired `<base>.custom`, declaring '
34+
+ '--apply`: it moves each `movable` row (package-less, or bound to the read-only package '
35+
+ 'itself, which the preview names "bound to" that package and `--json` marks `boundToBase`) '
36+
+ 'into the base\'s paired `<base>.custom`, declaring '
3537
+ '`overrides: { package: <base>, basedOn: <installed version> }`, except a row of an email '
3638
+ 'template locale the base does not ship (the preview lists it as the pair\'s own member; '
3739
+ '`--json` carries it as `addedMember`), which it moves as the pair\'s own member at that '
@@ -41,19 +43,23 @@ export const entry: SemanticMigration = {
4143
+ 'in the body (an added member\'s with none), and `DELETE /api/v1/meta/<type>/<name>?package='
4244
+ '<base>.custom` to restore the package original (an added member\'s, with '
4345
+ '`&member=<locale>`, removes it). An added '
44-
+ 'member\'s package-less write stays open, before and after its move. Every row the preview '
45-
+ 'lists and does not move keeps its package-less write: `multi_shipped` (several packages ship '
46-
+ 'the name): delete it naming no package, then save it into the pair of the package it '
46+
+ 'member\'s package-less write stays open, before and after its move. Every package-less row '
47+
+ 'the preview lists and does not move keeps its package-less write, and every bound row it '
48+
+ 'lists and does not move keeps its delete naming the package: `multi_shipped` (several '
49+
+ 'packages ship the name):delete it naming no package, then save it into the pair of the package it '
4750
+ 'customizes if it is still wanted (the pair\'s override is then served at that base\'s '
4851
+ 'address, `?package=<base>`); `no_pair` (the base\'s id forms no pair): nothing to do; '
4952
+ '`foreign_declaration` (its `overrides` names another package): remove the key with a save '
50-
+ 'naming no package, then re-run: the move declares the right override; `shadowed` (the pair '
53+
+ 'naming no package, then re-run: the move declares the right override (a row bound to the '
54+
+ 'read-only package cannot take that save, as a save naming the package is closed: delete it '
55+
+ 'naming the package, then save its body into the pair, declaring `overrides: { package: '
56+
+ '<base>, basedOn }`); `shadowed` (the pair '
5157
+ 'already holds the item; the pair\'s row is served when it declares the override, otherwise '
5258
+ 'this row still is): nothing to do to keep the pair\'s declared override, or restore the '
5359
+ 'package original (the DELETE above) and re-run to move this one; a `failed` move: fix what '
5460
+ 'the error names and re-run; when the error names the pair (it cannot be ensured, or it '
5561
+ 'refuses the row) or, for a declared override, the base\'s missing version, the row may also '
56-
+ 'be left, as it keeps its package-less write',
62+
+ 'be left, as it keeps its package-less write (a bound row, its delete naming the package)',
5763
reason:
5864
'A customization of an installed package lives in its paired `.custom` package, where it is '
5965
+ 'a declared override that is exported with the pair and judged against the base\'s version '

0 commit comments

Comments
 (0)