feat(vm): add reference identity and deterministic value hashing

This commit is contained in:
2026-10-23 14:29:00 +01:00
parent 57992cf214
commit 69ad1931de
41 changed files with 2521 additions and 121 deletions
@@ -232,3 +232,12 @@ roots throughout preparation; the commit phase has no allocation, GC, scheduler
callback boundary. Refusal changes neither destinations nor input groups, and
releases temporary reservations. Consumer return carriers must be prepared before
publication. See [the instruction contract](02c-program-registry-and-pbx-v0.md#logical-guards-and-atomic-storage-publication).
## Borrowed intrinsic invocation
The [bounded intrinsic profile](02f-vm-identity-and-value-hashing.md) keeps
original arguments/owners rooted until result validation and stack commit. Hash
intrinsics use no guest allocation, dynamic scratch or stack growth; native
output storage is bounded by the declared result layout. They do not collect,
reenter or call guest code. Hash values create no roots. Legacy intrinsic
resource/effect contracts remain explicit and do not inherit these guarantees.