Hylix record lifecycle probe
This qualification fixture uses the Hylix stable engine beneath one Store root with four nested module owners. Counter and leaf scalars and the records owner's Map/Queue/Shared<Blob> handles and Shared<Cell<u64>> counter are Hylix records; their Nyxus native cells contain only allocation descriptors and opaque child ownership. The root, directory and attachment metadata still require checked KEEP upgrades.
Default builds install V1. v2 converts only the counter owner's 8-byte record
to a 16-byte record and transfers its opaque leaf unchanged. It separately adds
one scalar to the records owner while moving its Map/Queue handles unchanged.
trap-upgrade
performs that conversion, changes stable scalars, removes the native attachment
and retires its stable record, clears all shared records, then traps. bad-codec changes the V1 fixed codec
with an explicitly different semantic contract, so native startup admission must
reject it. bad-hylix-contract changes the arena's anchor contract, so restore
must reject it before any stable record is decoded.
Use the canonical builder with separate names for these five feature selections,
then run tests/pocketic/hylix-lifecycle.mjs with --source-root, --pocket-ic,
--v1, --v2, --trap, --bad-codec, --bad-contract and --output.
Add a sixth bad-semantics build and --bad-semantics to check a same-size
record interpretation change.
Each artifact argument is a built filename stem. The runner verifies build
receipts and checks whole stable-image equality after rejected updates/upgrades.
The runner also populates enough entries to split Map nodes, checks sharing
counts through queue pops, replacement, movement and removal, clears/repopulates
to establish allocator reuse, verifies read-only queries leave every stable byte
unchanged, and verifies owner conversion preserves the exact collection carrier
bytes. A forgotten Cell edit must trap its active frame and restore every byte;
the next read, edit and checked KEEP must still succeed. Ordinary Cell loan
cleanup must release its transient registry buffer before generated SDK teardown.
Forgetting a Map edit after replacing a shared payload and retiring the old edge
must also trap, restore the ownership counts and allow fresh Map/Queue edits.
It does not claim a heap-discarding upgrade or workload performance.
The owner-local qualification modules also exercise frame buffering. Repeated
projected edits writes observe the current value through whole-record reads
in the same frame. A forgotten projected module writer must reject and roll
back. A temporary dirty records module replaces its shared watch owner before
retirement; surviving actual sharing edges must each have count one afterward.
The V2 counter converter first edits its source through a projected guard, then
asserts into_value consumes that current unpublished value, restoring the
probe's intended counter result in the target. tests/pocketic/hylix-ownership.mjs covers
these cases, nested forgotten Cell/Map guards, fresh work after failure/KEEP,
complete stable-image equality and source native child state after a late trap.