Skip to content

Commit dd1ff6c

Browse files
committed
test(objectql): the no-artifact restatement pin asserts the row's own binding as _packageId
With no artifact present the hydrator still grafts nothing (_provenance org, the row's own _lock, no _packageVersion); the _packageId it carries is the row's package_id column, read, not invented. Claude-Session: https://claude.ai/code/session_01P88ehrZ6hM19hBzdpsQTTo Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6c48c8e commit dd1ff6c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎packages/objectql/src/protocol-derived-provenance-doors.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,12 @@ describe('#16702 criterion 5 — mergeArtifactProtection precedence is unchanged
411411
const hydrated = engine.registry.getItem<Record<string, unknown>>('app', 'pet_hospital');
412412
expect(hydrated?._provenance).toBe('org');
413413
expect(hydrated?._lock).toBe('none');
414-
expect(hydrated?._packageId).toBeUndefined();
414+
// [#23233] The row's OWN package binding (its `package_id` column), as a
415+
// list read always stamped it — read from the row, not invented and not
416+
// grafted: no artifact exists, so `_provenance` stays `org`, `_lock`
417+
// stays the row's own and no `_packageVersion` appears.
418+
expect(hydrated?._packageId).toBe(PKG);
419+
expect(hydrated?._packageVersion).toBeUndefined();
415420
});
416421
});
417422

0 commit comments

Comments
 (0)