Skip to content

Commit 43953ed

Browse files
committed
chore(changeset): ADR-0087 disposition for the stored-row binding narrowing
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mBUwWJMnLUdKBYraT
1 parent 96d897b commit 43953ed

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.changeset/28594-stored-row-package-binding.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22
"@objectstack/metadata-protocol": patch
33
---
44

5-
fix(metadata-protocol): a stored row's package in the metadata list is its column's, never its body's
5+
fix(metadata-protocol)!: a stored row's package in the metadata list is its column's, never its body's
66

77
The metadata list read (`getMetaItems`, and the execution read the automation engine binds from) served a stored row's `_packageId` from its `package_id` column only when the body carried none, so a row whose body carried another package's id was served as that package's item. The column now wins: a body stamp is replaced by the column's package, or dropped when the row is bound to no package. The save door has stripped a body's `_packageId` since #16702, so only a row written before that, or by another writer, carries one.
88

99
Clause-②: no (narrowing) — a stored row whose body carries a `_packageId` other than its column's is served under its column's package (or none), no longer under the body's. Nothing is widened.
1010

1111
Metadata-protocol: none
12+
13+
<!-- adr-0087: not-required (no-migration-prescription) No key is added, removed or renamed and no stored body is rewritten or refused: the row's package binding is its `package_id` column, which the read already served whenever the body carried no stamp; a body stamp that disagrees with the column was never written by the save door, so no author has anything to convert. -->
14+
15+
**BREAKING** read narrowing (`@objectstack/metadata-protocol`), shipped as `patch`.
16+
17+
- **Before.** A stored row whose body carried `_packageId` was served with the body's value, whatever its column said.
18+
- **Now.** It is served with its column's package, or with none when the row is bound to no package.
19+
- **Unchanged.** A row whose body carries no stamp, or one equal to its column, is served exactly as before.
20+
- **Who sees it.** Only a row written before the save door began stripping body stamps, or by a writer other than the save door.

0 commit comments

Comments
 (0)