Skip to content

Commit 8913382

Browse files
committed
test(runtime),docs(changeset): the bare save of the three-row shape is refused as before, and the S2 pin reads the shared member
The changeset's "Not moved" said the package-less save beside two holders still edits the row while the read refuses. Measured on the existing bare-save harness (both transports, both save orders), the save naming no package of a name E's, F's and a package-less row hold is refused 409 RESOURCE_CONFLICT naming E and F and writes nothing, before and after this change. The note now says so, and cites #34348 only for its own shape (two shipping packages and a package-unbound row). It also says the shared member, where the dependent stores it over a row-held base, refuses naming both, as before. The S2 pin now reads `?member=en-US` naming no package: the shipped base's row (200) and, over a row-held base, 409 naming A and D. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4542737 commit 8913382

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎.changeset/33210-packageless-row-two-holders.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Skills-docs: none — `skills/objectstack-platform/SKILL.md` (the ADR-0146 parag
1818
- **A package-less row beside two packages' rows of a name no package ships** (packages E and F each store a row of `dash`, and a package-less row of `dash` is stored too). The plain read `GET /meta/dashboard/dash`, `GET /meta/dashboard/dash/published` and the execution read move FROM the row stored first (E's, F's or the package-less one) TO `409 RESOURCE_CONFLICT` naming E and F in `details.candidates`. `GET /meta/dashboard/dash/layers` already refused it, and still does with the package-less writes' sentence. The package-less row is never served in their place: it is a customization of a name it cannot say whose (red line 2). After a reboot, the registry's environment item of such a name is the bare slot's entry, the row hydrated last. With rows bound to two or more packages beside it, that entry no longer counts as the environment's own item.
1919
- **A member that only a dependent's addition holds, over a base that holds the name only as stored rows** (base A stores `welcome` in `en-US`, dependent D, which declares A, stores `fr-FR`, and no package ships `welcome`). `GET /meta/email_template/welcome?member=fr-FR`, `GET /meta/email_template/welcome/layers?member=fr-FR` and the execution read at `fr-FR` move FROM D's row (200) TO `404 RESOURCE_NOT_FOUND`. That is the answer the same reads already gave when A ships `welcome`: a bundle addition holds no name, so the read takes the base's address, which holds no `fr-FR`. Each dependent is judged against its own declared dependencies, so with a second dependent D2 storing `de-DE` the reads at `fr-FR` and at `de-DE` both answer `404`, in either registration order. A dependent that also stores a member the base stores (D storing `en-US` as well as `fr-FR`) is still an addition, as the registry judges it (a member held only as stored rows is no clash), so its `fr-FR` answers `404` too.
2020

21-
**Not moved.** One package's row beside a package-less row is that package's, served on every bare door in both save orders, before and after a reboot. Each exact address (`?package=E`, `?package=F`, `?package=D&member=fr-FR`) serves its own row. The base's own member (`?member=en-US`) is the base's. The read naming no member (the canonical member, `GET /meta/email_template/welcome` and `/published`) is not moved, even where a dependent stores the canonical member over a row-held base that holds only another one. A name with a disabled holder keeps its own judgment (#32354), and a package-less row beside a disabled holder leaves the read as it was (that shape, with the plain read following save order while `/layers` refuses, is #34440). The canonical member of a shipped base that holds only another member answers differently before and after a restart (#34441); this change does not move it. The writes do not move: the package-less save beside two holders still edits the row while the read refuses (#34348, decision open).
21+
**Not moved.** One package's row beside a package-less row is that package's, served on every bare door in both save orders, before and after a reboot. Each exact address (`?package=E`, `?package=F`, `?package=D&member=fr-FR`) serves its own row. The base's own member (`?member=en-US`) is the base's; where the dependent stores it too over a row-held base, the read there refuses naming both, as before. The read naming no member (the canonical member, `GET /meta/email_template/welcome` and `/published`) is not moved, even where a dependent stores the canonical member over a row-held base that holds only another one. A name with a disabled holder keeps its own judgment (#32354), and a package-less row beside a disabled holder leaves the read as it was (that shape, with the plain read following save order while `/layers` refuses, is #34440). The canonical member of a shipped base that holds only another member answers differently before and after a restart (#34441); this change does not move it. The writes do not move: in the first shape the save naming no package was already refused `409 RESOURCE_CONFLICT` naming E and F, writing nothing, and still is, so it now agrees with the read. A save that edits a package-unbound row while the read refuses is another shape, two enabled packages that ship the name with no package's row stored (#34348, decision open); this change does not move it either.
2222

2323
The ADR-0087 entry `row-held-base-addition-bare-read-at-base` registers the second move. The first is the narrowing `two-row-holders-bare-read-refused` already registers: two or more enabled packages hold the name only as stored rows. That entry's `reason` now says how the holders are judged: by the packages the rows are bound to at the member read, with the registry's holders only helping recognise a customization pair.

‎packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,17 @@ describe('[#32607 M1, M2] the no-disabled arm judges holders at the rows\' grain
744744
.toEqual([leg, 404, 'RESOURCE_NOT_FOUND', 404, 'RESOURCE_NOT_FOUND', null]);
745745
const own = await get(b.kernel, '/meta/email_template/sharedmail', { member: 'fr-FR', package: D });
746746
expect([leg, own.status, unwrap(own.body)?.item?.subject, unwrap(own.body)?.packageId], JSON.stringify(own.body)).toEqual([leg, 200, 'addon fr', D]);
747+
// The shared member `en-US`, naming no package, is not moved: the
748+
// arm reads only a named non-canonical member. A shipped base serves
749+
// its own `en-US`; over a row-held base A's and D's rows of it are
750+
// two holders, refused naming both, as without this change.
751+
const shared = await get(b.kernel, '/meta/email_template/sharedmail', { member: 'en-US' });
752+
if (ships) {
753+
expect([leg, shared.status, unwrap(shared.body)?.item?.subject, unwrap(shared.body)?.packageId], JSON.stringify(shared.body)).toEqual([leg, 200, 'base en', A]);
754+
} else {
755+
expect([leg, shared.status, codeOf(shared.body)], JSON.stringify(shared.body)).toEqual([leg, 409, 'RESOURCE_CONFLICT']);
756+
for (const id of [A, D]) expect(JSON.stringify(shared.body), leg).toContain(id);
757+
}
747758
};
748759
try {
749760
for (const id of registered) {

0 commit comments

Comments
 (0)