Skip to content

Commit a6d3c77

Browse files
committed
docs(changeset): the per-package plural read covers every unbundled by-package type, nine at this release
Claude-Session: https://claude.ai/code/session_01Utp6CaHzbLsFjKRLUGw9Ae Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3ca8881 commit a6d3c77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.changeset/32517-registry-memoryloader-bundle-members.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Metadata-protocol: none
1212
Two places kept one item where the metadata service holds several.
1313

1414
- **A bundled type's members.** A bundled type (`email_template`, one member per `locale`) holds several members under one `(package, name)`. `DatabaseLoader` keeps a row per member, but `MetadataManager`'s in-memory registry and the `MemoryLoader` the artifact door saves into kept one item per `(package, name)`, so a second locale of one package's template overwrote the first and the service's own `list`, `loadMany` and `loadManyKeyed` answered only the locale written last. Each member now has its own key under its slot. The canonical member (`en-US`) keeps the slot's own key, so a template with one locale, and every unbundled type, is stored exactly as before. A rollback addressed to the environment files its restored member under that member's key too.
15-
- **A by-package type's packages.** For `api`, `agent`, `skill`, `action`, `flow` and `permission`, the `MemoryLoader`'s unscoped `loadMany` / `loadManyKeyed` and `MetadataManager.loadMany` / `loadManyKeyed` folded two packages' items of one name into the one saved last. They now answer one item per `(package, name)`; a name one package holds answers exactly as before: a package-less item under it is still that holder's (ADR-0150 D4), whatever object an action binds, and one package's action bound to several objects is still one item, the binding saved last (`DatabaseLoader` keeps a row per binding since #32651 and its own unscoped reads still answer one per name; `list` serves every binding). `DatabaseLoader`'s plural reads are unchanged.
15+
- **A by-package type's packages.** For every unbundled type in `PACKAGE_SLOTTED_STORE_TYPES` (at this release nine: `api`, `agent`, `skill`, `action`, `permission`, `flow`, `picklist`, `mapping`, `dataset`), the `MemoryLoader`'s unscoped `loadMany` / `loadManyKeyed` and `MetadataManager.loadMany` / `loadManyKeyed` folded two packages' items of one name into the one saved last. They now answer one item per `(package, name)`; a name one package holds answers exactly as before: a package-less item under it is still that holder's (ADR-0150 D4), whatever object an action binds, and one package's action bound to several objects is still one item, the binding saved last (`DatabaseLoader` keeps a row per binding since #32651 and its own unscoped reads still answer one per name; `list` serves every binding). `DatabaseLoader`'s plural reads are unchanged.
1616

1717
The slot rules still count packages, never members: one package's two locales are one holder, so a read or removal naming no package is refused (`409`, ADR-0150 D3) only when two packages hold the name, and the refusal names each package once. A removal naming a package drops every member of its slot and no other package's. A read of a slot answers its member written last, as before. `unregisterPackage` removes a slot's members together, with the one `deleted` announcement the slot made before. `list` puts each slot's last-written member first, as before.
1818

0 commit comments

Comments
 (0)