Skip to content

Commit d226b31

Browse files
committed
chore: changeset and ledger entry name the /layers code-layer moves and the non-holder address move
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
1 parent bb9f1fd commit d226b31

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎.changeset/34682-bundle-member-selector.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ For a bundle that only stores a non-canonical row (a package-less `fr-FR` row wi
2727

2828
The plain read, `/layers` and the execution read now ask every layer for the canonical member when no member is named. They take the registry's bare-name answer only when it is that member. The base-address fallback serves only the base's canonical member, and an exact address (`?package=`) replaces another package's item only with the holder's item at the addressed member. So each of these arrangements answers 404 on every door naming no member, the same as `?member=en-US` and `/published`, before and after a restart.
2929

30-
A bundle that ships or stores its canonical member is served exactly as before. So is any named member, and so is every type with no members. A non-canonical member is still read with its own selector, for example `?member=fr-FR`, which the Studio list already links to for each member.
30+
A bundle that ships or stores its canonical member keeps its status and served body, and so does any named member. Three more answers move:
31+
32+
- `/layers` naming no member, where the canonical member is stored over a package that ships only another member: `code` goes from that member's body to `null`, as `/layers?member=en-US` already answered. Status and `effective` do not move.
33+
- For a type with no members, `/layers?package=X`, where X holds nothing of the name and the only holder is disabled: `code` goes from the disabled holder's artifact to `null`. A disabled package holds no name.
34+
- `?package=X` naming no member, where X does not hold the name and the environment stores it only in a non-canonical member: the read was refused `409 RESOURCE_CONFLICT` (`not-held-by-qualifier`, naming the environment) once a restart had hydrated the row. It now answers the `404` that `?member=en-US` already answered, on the plain read and `/layers`. A non-canonical member is still read with its own selector, for example `?member=fr-FR`, which the Studio list already links to for each member.
3135

3236
**Reverses two statements of the 18.6.0 note** for the arrangement where base A ships `email_template` `welcome` in `fr-FR` only and dependent D, which declares A, stores `en-US`:
3337

‎packages/spec/src/migrations/entries/semantic/18.bundle-without-canonical-member-bare-read-absent.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ export const entry: SemanticMigration = {
2626
+ 'another member and a dependent that declares it stores the canonical member, naming no package (the base\'s '
2727
+ 'other member was served); (3) ?package=X where X ships no canonical member while another package ships it (a '
2828
+ 'dependent, or a disabled holder, which the read naming no package re-addresses to X): X\'s other member was '
29-
+ 'served. ?member=CANONICAL, a named non-canonical member and /published do not move',
29+
+ 'served. Two more answers move with them: /layers naming no member, where the canonical member is stored over a '
30+
+ 'package that ships only another member, reports code null where it reported that member\'s body (status and '
31+
+ 'effective do not move); and ?package=X naming no member, where X does not hold the name and the environment '
32+
+ 'stores it only in a non-canonical member, answers 404 where it was refused 409 after a restart. '
33+
+ '?member=CANONICAL, a named non-canonical member and /published do not move',
3034
replacement:
3135
'Name the member: GET /api/v1/meta/TYPE/NAME?member=MEMBER (for example ?member=fr-FR), with ?package= where the '
3236
+ 'address needs it, serves that member, as before.',

0 commit comments

Comments
 (0)