Skip to content

Commit 6b1ea51

Browse files
committed
fix(spec): the packageless-overlay-write-closed entry names both closed overlay write addresses
The unreleased ADR-0087 semantic entry's surface and reason named only the write naming no package. The same release also closes the save, publish and rollback naming the read-only package itself onto its five overlay types, onto the TO the entry's replacement already prescribes. One entry now names both addresses and the rows each stored. Text only. Claude-Session: https://claude.ai/code/session_01JQwxbWytk9Ec5dXr38QrwZ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 399df5b commit 6b1ea51

2 files changed

Lines changed: 38 additions & 13 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
fix(spec): the `packageless-overlay-write-closed` upgrade entry names both closed overlay write addresses, the write naming no package and the write naming the read-only package itself
6+
7+
Clause-②: no (migration entry prose; no accept set moves)
8+
9+
Metadata-protocol: none
10+
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.

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

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ import type { SemanticMigration } from '../../types.js';
1313
export const entry: SemanticMigration = {
1414
id: 'packageless-overlay-write-closed',
1515
surface:
16-
'a metadata write that names no package (PUT, DELETE, publish or rollback under '
17-
+ '/api/v1/meta/<type>/<name> with no ?package=, and the metadata item page, in Studio\'s All '
18-
+ 'metadata area where Setup\'s metadata URLs now land, when its URL holds no ?package=) onto a '
19-
+ 'view, dashboard, report, translation or email template that one installed read-only package '
20-
+ 'ships, where `os migrate packageless-overlays` would move the row into that package\'s '
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',
16+
'a metadata write onto a view, dashboard, report, translation or email template that an '
17+
+ 'installed read-only package ships, at either of the two addresses that bypassed that '
18+
+ 'package\'s paired `<base>.custom`: (1) naming no package (PUT, DELETE, publish or rollback '
19+
+ 'under /api/v1/meta/<type>/<name> with no ?package=, and the metadata item page, in Studio\'s '
20+
+ 'All metadata area where Setup\'s metadata URLs now land, when its URL holds no ?package=), '
21+
+ 'where one installed read-only package ships the item and `os migrate packageless-overlays` '
22+
+ 'would move the row into the pair as a declared override (a row it moves as the pair\'s own '
23+
+ 'member, an email template locale the base does not ship, keeps the write); (2) naming the '
24+
+ 'read-only package itself (a save in draft or publish mode or a per-item publish under '
25+
+ '/api/v1/meta/<type>/<name>?package=<base>, POST /api/v1/packages/<base>/publish-drafts '
26+
+ 'holding such a draft, and a rollback of a row bound to the package), where the pair can be '
27+
+ 'ensured, the base records a version and the override write gate admits the declared body '
28+
+ 'into the pair (a delete naming the package keeps the write); and the sys_metadata rows '
29+
+ 'those writes stored, package-less or bound to the read-only package itself',
2430
replacement:
2531
'after upgrading, run `os migrate packageless-overlays` (preview) on each deployment with '
2632
+ 'Setup customizations, with the flags and environment the deployment boots with (`--preset` '
@@ -51,16 +57,24 @@ export const entry: SemanticMigration = {
5157
reason:
5258
'A customization of an installed package lives in its paired `.custom` package, where it is '
5359
+ 'a declared override that is exported with the pair and judged against the base\'s version '
54-
+ '(ADR-0146 D1, D2, D11). The package-less write made a row of no package instead, which no '
55-
+ 'export carries. Rows already stored that way are still served unchanged, so nothing breaks '
56-
+ 'at the upgrade. Between the upgrade and `--apply`, every customization is served, and the '
60+
+ '(ADR-0146 D1, D2, D11). Two writes bypassed the pair: the package-less write made a row of '
61+
+ 'no package, which no export carries, and the write naming the read-only package itself made '
62+
+ 'a row bound to that package, declaring nothing, served in place of the package\'s own '
63+
+ 'document. Rows already stored either way are still served unchanged, so nothing breaks at '
64+
+ 'the upgrade. Between the upgrade and `--apply`, every customization is served, and the '
5765
+ 'package-less save, publish, delete or rollback of a movable one the command moves as a '
5866
+ 'declared override is refused 403 NOT_OVERRIDABLE naming the pair and this command; an '
5967
+ 'email template locale the base does not ship, which the command moves as the pair\'s own '
6068
+ 'member, keeps its package-less write. The close reaches only what the command moves as a '
6169
+ 'declared override (its own classification and its own move steps), so no customization is '
62-
+ 'left without a write door. No conversion applies: the rows are stored data, not authored '
63-
+ 'source, and the move goes through the save door. ADR-0146, ADR-0087.',
70+
+ 'left without a write door. The save, publish or rollback naming the read-only package '
71+
+ 'itself is refused 403 NOT_OVERRIDABLE naming the pair and the `overrides` declaration '
72+
+ 'wherever the pair can take the declared override (it can be ensured, the base records a '
73+
+ 'version and the override write gate admits the declared body); a delete naming the package '
74+
+ 'stays open, as the way to remove such a row, and so does every write the pair could not '
75+
+ 'take, an email template locale the base does not ship among them. No conversion applies: '
76+
+ 'the rows are stored data, not authored source, and the move goes through the save door. '
77+
+ 'ADR-0146, ADR-0087.',
6478
acceptanceCriteria:
6579
'On the deployment\'s database and configuration, with its boot flags and environment, the '
6680
+ 'preview of `os migrate packageless-overlays` lists no movable row. Each customization is then '

0 commit comments

Comments
 (0)