Skip to content

Commit f8da2ea

Browse files
committed
chore(spec): the migration entry's reason claims the no-row judgment for the four earlier writes only; the changeset names the two open cells' carrier
Claude-Session: https://claude.ai/code/session_01L9qibwictsQHxYdcVwUTSp Co-authored-by: Claude <noreply@anthropic.com>
1 parent 35ca502 commit f8da2ea

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎.changeset/37608-disabled-holder-publish-rollback-refused.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ The save, the draft save, the delete and the draft discard naming no package alr
1717

1818
Every moved answer, before → after, for a type the registry reads by package, while every holder of the name is disabled, where the ADR-0146 D11 close leaves the package-less write open (a base with no pair, a member the package never ships, a holder that is not a read-only code package, among the cells that close lists):
1919

20-
- `POST /api/v1/meta/:type/:name/publish` whose draft address is the package-less draft (beside a package-less row or with none stored): `200` (the draft promoted into the hidden package-less row) → `409 RESOURCE_CONFLICT`, nothing written.
20+
- `POST /api/v1/meta/:type/:name/publish` whose draft address is the package-less draft (beside a package-less row or with none stored): `200` (the package-less draft promoted into the hidden package-less row, or, beside the disabled package's own active row, adopted into that row) → `409 RESOURCE_CONFLICT`, nothing written.
2121
- `POST /api/v1/meta/:type/:name/rollback` with a package-less row stored: `200` (the hidden row rewritten to the version's body) → `409 RESOURCE_CONFLICT`, nothing written.
2222
- The same two through the in-process `publishMetaItem` / `rollbackMetaItem` with no `packageId`.
2323

2424
The refusal's message is the one the save and the delete answer there: it starts with the fix ("Enable the package that holds …"), names no package, and says "send this publish again" or "send this rollback again". Once a holder is enabled again the read naming no package serves the package-less row as it was stored, and the same publish or rollback answers as before the disable.
2525

26-
Not moved: an item the ADR-0146 D11 close covers keeps that close's `403 NOT_OVERRIDABLE` for the publish and the rollback naming no package, with the package enabled or disabled; a publish or rollback naming a package; a publish whose draft address is a package's own draft, promoted into that package's own row, beside a package-less row or not (it touches no package-less row); a publish with no draft at its address, which keeps its `404 NO_DRAFT`; a rollback of a package-bound row; a rollback with no package-less row stored; a name no package holds; a name an enabled package holds; every read. Migration entry `disabled-holder-package-less-row-bare-write-refused` (`@objectstack/spec`), which already carried the four other writes, now carries these two for the upgrade guide.
26+
Not moved: an item the ADR-0146 D11 close covers keeps that close's `403 NOT_OVERRIDABLE` for the publish and the rollback naming no package, with the package enabled or disabled; a publish or rollback naming a package; a publish with no draft at its address, which keeps its `404 NO_DRAFT`; a rollback of a package-bound row; two writes that still land on an item only disabled packages hold, left open for a separate decision (#37851): a publish whose draft address is the disabled package's own draft, promoted into that package's own row (beside a package-less row or not), and a rollback with no package-less row stored, which stores the package-less row again from its history; a name no package holds; a name an enabled package holds; every read. Migration entry `disabled-holder-package-less-row-bare-write-refused` (`@objectstack/spec`), which already carried the four other writes, now carries these two for the upgrade guide.

‎packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ export const entry: SemanticMigration = {
4343
+ 'package still reached the row: the save edited it unseen, the draft save stored a draft the draft read then '
4444
+ 'answered 404 for, the draft discard removed it, the delete removed the row, the publish promoted a draft '
4545
+ 'into it and the rollback rewrote it, so enabling the package again served its item without the '
46-
+ 'customization, or with a body nobody saw land. They now judge the name\'s holders past a stored '
47-
+ 'package-less row, as they already did with none stored. A name no package holds, a package-less row at a '
48-
+ 'name an enabled package holds, and a name only disabled packages hold with no package-less row stored (its '
49-
+ 'refusal keeps the ?package= remedy) answer as before. There is no mechanical rewrite: whether the disabled '
50-
+ 'package should be enabled again is a judgement about the deployment.',
46+
+ 'customization, or with a body nobody saw land. The save, the draft save, the delete and the draft discard '
47+
+ 'now judge the name\'s holders past a stored package-less row, as they already did with none stored. The '
48+
+ 'publish and the rollback judge them only where they promote the package-less draft or restore the '
49+
+ 'package-less row while one is stored; with none stored they judge no holder, as before, so a publish of '
50+
+ 'the disabled package\'s own draft and a rollback that stores the package-less row again are not refused '
51+
+ 'by this entry. A name no package holds, a package-less row at a name an enabled package holds, and, for '
52+
+ 'the save, the draft save, the delete and the draft discard, a name only disabled packages hold with no '
53+
+ 'package-less row stored (its refusal keeps the ?package= remedy) answer as before. There is no mechanical '
54+
+ 'rewrite: whether the disabled package should be enabled again is a judgement about the deployment.',
5155
acceptanceCriteria:
5256
'For every name whose holders are all disabled and for which a package-less row or draft is stored, where the '
5357
+ 'ADR-0146 D11 close leaves the package-less write open: PUT /api/v1/meta/TYPE/NAME (publish mode and '

0 commit comments

Comments
 (0)