Skip to content

Commit b99d86a

Browse files
committed
fix(spec): the packageless-overlay-write-closed header and failed-move tail name both closes
Contract review should-fixes on the entry: restore the dropped space in the multi_shipped remedy, the header comment names both closed addresses and both kinds of stored row, and a bound row's failed-move tail also keeps the save naming the package where the pair could not take the override. Text only. Claude-Session: https://claude.ai/code/session_01JQwxbWytk9Ec5dXr38QrwZ Co-authored-by: Claude <noreply@anthropic.com>
1 parent ecf1fd4 commit b99d86a

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

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

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22

33
import type { SemanticMigration } from '../../types.js';
44

5-
// ADR-0146 D11 — a runtime narrowing at the metadata write doors with no
6-
// authorable key: a write naming no package onto an item an installed package
7-
// ships is refused where `os migrate packageless-overlays` can move its row
8-
// as a declared override (a row it moves as the pair's own member stays open).
9-
// Registered because an upgrading deployment can carry the package-less Setup
10-
// rows those writes made, and the operator step that moves them into the
11-
// base's `.custom` pair ships in this same release, so it runs AFTER the
12-
// upgrade (the release-timing ruling on the card).
5+
// ADR-0146 D1, D11 — a runtime narrowing at the metadata write doors with no
6+
// authorable key, at the two addresses that bypassed a read-only package's
7+
// paired `.custom`: a write naming no package onto an item an installed
8+
// package ships is refused where `os migrate packageless-overlays` can move
9+
// its row as a declared override (a row it moves as the pair's own member
10+
// stays open), and a save, publish or rollback naming the read-only package
11+
// itself onto an item it ships is refused where the pair can take the
12+
// declared override (a delete naming the package stays open).
13+
// Registered because an upgrading deployment can carry the rows those writes
14+
// made, package-less or bound to the read-only package itself, and the
15+
// operator step that moves both kinds into the base's `.custom` pair ships in
16+
// this same release, so it runs AFTER the upgrade (the release-timing ruling
17+
// on the card).
1318
export const entry: SemanticMigration = {
1419
id: 'packageless-overlay-write-closed',
1520
surface:
@@ -46,9 +51,9 @@ export const entry: SemanticMigration = {
4651
+ 'member\'s package-less write stays open, before and after its move. Every package-less row '
4752
+ 'the preview lists and does not move keeps its package-less write, and every bound row it '
4853
+ '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 '
50-
+ 'customizes if it is still wanted (the pair\'s override is then served at that base\'s '
51-
+ 'address, `?package=<base>`); `no_pair` (the base\'s id forms no pair): nothing to do; '
54+
+ 'packages ship the name): delete it naming no package, then save it into the pair of the '
55+
+ 'package it customizes if it is still wanted (the pair\'s override is then served at that '
56+
+ 'base\'s address, `?package=<base>`); `no_pair` (the base\'s id forms no pair): nothing to do; '
5257
+ '`foreign_declaration` (its `overrides` names another package): remove the key with a save '
5358
+ 'naming no package, then re-run: the move declares the right override (a row bound to the '
5459
+ 'read-only package cannot take that save, as a save naming the package is closed: delete it '
@@ -59,7 +64,8 @@ export const entry: SemanticMigration = {
5964
+ 'package original (the DELETE above) and re-run to move this one; a `failed` move: fix what '
6065
+ 'the error names and re-run; when the error names the pair (it cannot be ensured, or it '
6166
+ 'refuses the row) or, for a declared override, the base\'s missing version, the row may also '
62-
+ 'be left, as it keeps its package-less write (a bound row, its delete naming the package)',
67+
+ 'be left, as it keeps its package-less write (a bound row, its delete naming the package, '
68+
+ 'and the save naming it where the pair could not take the override)',
6369
reason:
6470
'A customization of an installed package lives in its paired `.custom` package, where it is '
6571
+ 'a declared override that is exported with the pair and judged against the base\'s version '

0 commit comments

Comments
 (0)