Used-equipment sales across two Takt and Reactor KEEP upgrades
Both populated upgrades passed. One marketplace canister moved from V1 to V2 to V3 while its paired mock ledger ran V1. V2 settled a debit already accepted by the ledger. V3 settled two addressed debits from different workflow definitions. Across each KEEP, the source prepared and sent zero additional requests for those sales. A separate run settled 128 reservations with 128 prepares, 128 sends, 128 requests processed by the peer and 128 distinct receipts.
The sale and its installed boundary
The seller lists equipment for a named buyer. A purchase reserves the lot, saves the price and condition in the ledger request, and records the returned receipt on sale completion. V1 offers counter collection. V2 generates an inspection slip from the recorded condition and payment. V3 adds a loading-bay assignment. New purchases use the current definition even through an older client. Saved tickets include the namespace and execution number.
The prototype became a local production baseline when its actual source, lock, archive closure, prepared Wasm and Wire client were frozen. V1 already opted into queued-reply KEEP. Its owner contract included the graph, operations, rules, retained payload and shared market and message interpretation. Each successor moved the unchanged owner attachments and created a new workflow owner. It attached every driver to the same Takt runtime and Reactor, restored watches inside a write scope, then started the IC controller. A controller query exposed the execution snapshots taken between watch restoration and controller startup.
The staged run used 12 listings, including a pallet truck with a 96-byte equipment field, a 512-byte condition, a 256-byte purchase reference and u64::MAX mock cents. Two sales had settled before the first upgrade. A third was waiting for collection at absolute time 1620328930600000000 ns. With the fourth request accepted by the paused ledger, the source paused and its SDK call and timer callback counts both reached zero. An actual V1 self-KEEP trapped in the old hook with root memory: InvalidInput("queued-reply KEEP requires one inbox reply per address"). The same V1 module remained Running and paused. Resuming the ledger delivered its response into the source inbox. V2 was authored against that populated source.
| KEEP | Lot | Definition namespace / execution | Reactor address ID | Original call deadline, IC ns | Saved bytes | SHA-256 of bytes received by the ledger |
|---|---|---|---|---|---|---|
| V1 → V2 | 4 | 101 / 3 | 2 | 1620328750600000003 | 911 | 28058ab8d7e4f021d632ca49a2586559f449876845b90daf40be118dc1e45f7c |
| V2 → V3 | 3 | 101 / 2 | 6 | 1620329051600000000 | 133 | 2a81f5311f7864df3a5ed2a3a1f888763332ab84319411ec18afb78ceea021b2 |
| V2 → V3 | 7 | 202 / 2 | 5 | 1620329045600000001 | 123 | 4191c38f1c39cc871bf48df86d4abdfb2a4191228531d9ec29d577a940f9210f |
All addresses belonged to source xp3jw-ot777-77777-aaaaa-cai. The route was equipment.ledger.charge.v1 and each was attempt one. The runner compared entire pre-KEEP and restored snapshots, including definition signature, node, visit, deadline, address, destination and request bytes. It also compared the saved bytes directly with the peer's received bytes. The first checkpoint held one inbox reply and one completion watch, the second held two of each. Both had zero SDK callbacks and zero Takt physical calls. Source prepares/sends and peer processed requests/effects stayed at 3 across the first settlement and 7 across the second.
V2 kept the original timed wait. V1 and V2 clients then bought lots 5 and 6 under namespace 202 before V2 was frozen and V3 authored. The V1 timer subsequently released the debit for lot 3. Its execution number coincided with that of lot 7 on V2. V3 automatically resumed both and issued their respective counter and inspection receipts. V1, V2 and V3 clients then bought lots 8, 9 and 12 under namespace 303. The ledger ended with ten distinct sales.
Installed coverage and failures
| Check | Observed result |
|---|---|
| Original generated clients | A clean replay repeated both hops. Fresh V1, V2 and V3 images each accepted purchase and readback through all three clients' common methods, nine combinations. V2's populated inspection report decoded on V3 and V3's pickup ticket included the buyer, cents and ledger receipt. New-only methods were absent on earlier images. An independent V1 → V2 ledger KEEP on each fresh pair preserved all three original receipt byte strings and accepted a fourth debit. |
| Late restore rollback | ./replay.sh rollback entered V2, reattached its watches, then trapped with market restore fault after reattaching reply watches. A read-only query showed V1 still paused before any controller update. Module hash, reservation, old timer, saved bytes, counts and peer receipt matched. Manual resume settled that attempt once and a fresh purchase succeeded. |
| Missing original driver and skipped release | On separate populated sources, ./replay.sh missing-driver omitted V1 driver registration on restore and got root rebind: InvalidInput("local-work KEEP has unbound pending workflows"). Direct V1 → V3 got root catalog rejected because V3 declares V2 as its predecessor. Each source recovered through V1 manual resume. |
| Deadline ordering | With the reply accepted while paused, advancing 121 seconds beyond the start of the attempt and then installing V2 settled it once. Letting the running source time out while the peer was paused instead produced Blocked(Unknown), with the original address and attempt. KEEP refused with root memory: InvalidInput("local-work KEEP has nonlocal or uncertain nodes"). Manual resume consumed the late ledger receipt and settled the reservation without a second effect. |
| Host timing mistake | The first node host/replay.mjs queued queued1 expected QueuedCall after another purchase during a held inbox reply. Actual phase was Ready, with zero saved bytes. This state continued across KEEP and prepared once. On a drained, paused source the same entry point reached QueuedCall, attempt zero, with 118 saved bytes and no address. Those exact bytes reached the ledger once after KEEP, with no further preparation. |
| Full population and app admission | V1 retained 64 timed sales. On V2 the two 64-execution owners filled all 128 inventory slots. V3 restored ten addressed replies and 118 prepared, unsent debits. All three clients decoded the same 132,599-byte restore reply. Every final ledger request matched its saved bytes, and both sides drained. The 129th listing returned false. The 65th purchase on a single owner trapped root memory: Capacity and left its lot listed. The app maps Takt's busy admission to an outer error even though its public method returns a business Result. Returning a typed busy outcome would let buyers handle this normally. |
| Other app refusals | The controller guard rejected an unauthorized listing and pause. A different buyer, repeat purchase, 513-byte condition and 257-byte purchase reference also failed. Public purchase request and response each used 409,600 bytes, 67,108,864 allocation bytes, 9,437,184 nodes and depth 64 as their limits. |
The first app compile, source env.sh && cd app && cargo check --locked --offline, reported E0308 in the pairing endpoint, expected Result<(), Error>, found Result<bool, Error>. Consuming the boolean from Reactor's add_peer fixed the build. The stage and local server completed the runs on one application subnet. These installed cases reproduced zero SDK defects. The missing-reply control exercised outstanding business delivery after the physical callback retired.
Packaged developer experience
The creation and evolution skills led to the scoped Store owners, controller switch, frozen loader and compiler preflight. The Takt skill identified the right checkpoint. Its guide's installed Chat link points out to the harness. The bundle already contains tools/pocketic-quickstart/rrt-chat/run.mjs with --candidate and --restore-trap, while the Chat README and consumer example table describe drained KEEP. The bundled source was sufficient, including the Ashroot example for moving unchanged child slots. A bundle-local command for the opt-in Chat run and a two-driver restore example showing attach both → restore watches → start Reactor would cover the two discovery gaps. A test should inspect the actual node phase before asserting that request bytes have been prepared. Takt evolution guide · Maintained Chat runner
Reproduction and identities
From the harness root run cd playground/xx3-wave8 && ./replay.sh all for ten modes on fresh local instances using the archived outputs. The original ordinary builds used ./build.sh v1, ./build.sh v2 and ./build.sh v3 at their respective source freezes. The staged sequence used a 1,800-second server idle TTL, ordinary PocketIC instruction limits, Node 24.22.3 and @dfinity/pic 0.16.1. README.md and notes.md in that ignored directory give the individual commands and checkpoints.
All five prepared images used the same real app, SDK, Cargo home and target paths. The archive stage was /tmp/rsx-wave8.aIiXnd/release. The canonical builder used --locked --offline --compatibility-package-archives "$STAGE/release/package-target/package" and the staged directory source. Metadata resolved 142 registry packages and one local app, used-equipment-market@0.1.0. The app kept that package version and distinguished releases by revision, graph version and prepared image hash. Both ordinary KEEP pairs and both fault siblings returned compiler-policy-match on preflight.
| Input | Identity |
|---|---|
| Unified commit | 8e8778de9083c956287a334220342d7968064dc8 |
| Tools archive / SDK-SOURCE.json | 9a6819d17cd5ba3e4ef05b264b29da369fc589fb0f974d5531dd3f0385cc2214 / bdd435010c2d5cd618b6bed4b2e5cca6c3c7c3bbc2268ba5eea35f705f7a4aee |
| Release inputs, 61 SDK archives / 28 used SDK archives | 8e171c3c54e60b1cd2edbf636c88261b0e957c23901531af7363b83b40211828 / 2c52f86ec9729b2401281f166b949dcc211424f913e129c25a45aa22d13eb661 |
| Shared app Cargo.lock / IC Wire 0.34.0 crate | 879fc7a2085de292bb9b59e2f83de3b630b68a908add80c2678cff7c1c460f28 / 44d006cdf1ce2779bd5643d9febb42164061e6aa066dc44ffb08d8d8800bec74 |
| Reactor / Takt 0.1.0 archives | 8d109e70040e8b21d57d06614c9168549842411710fab3a4ac68c303b70b3434 / 19667f391937e5dc0a16b3a5046cb5ced86d15005828f1cc3e6719ab7883dce9 |
| wasm64 compiler class / pinned PocketIC 16.1.0 | 9af49249afd0e283464780d4b1843c23d9ce909bc34ed3d3504803ebe2b2482d / b44e1eccd66e02328146b3e209e3403e3a3428a25d25555aca2f67500e5ae9db |
| Executed Wire runtime / codec, all releases | 6a5c7eb69418742b7b10e227fd16c06dba1cc5226bac7e3a399b76c016dc70f2 / a2b46dfb80c97347f131c25634f449ed215224c11b033622ce15baf379bb490a |
| Release | App source SHA-256 | Prepared Wasm SHA-256 | Generated client SHA-256 |
|---|---|---|---|
| V1 | d6406572c82628855ab9e67f9660b4006eca518f4aaf55cd506f199f143402a1 |
2afa01419f314d0af6794bb76abda0cc06b0902e4c817a94dddfefa3423c8e6d |
d9846a421ceb9e00eb21a230ccc8367c2c0c88e89cb107d5f2b56bd114d5b5a6 |
| V2 | cc5deb04f78e1a84b7f0ac0b505fecf1633b46c08eeddc973de7260cdd1ba124 |
3e0a107b44a6918a494e7ec249a9e820fc730accc6b3d63d5c3aadddc91e73d2 |
591de1244cd4829a37d69bdcd80a338eda4db7c31a19001017613c4e0a4c89d8 |
| V3 | 81504d993464a02a2c19de9ec55032347dda341e164f31e43c205d599fe66de7 |
c71f2bc31b42b21613ee39f5009a2714a5f1d584343f1a3e815617608e82515f |
c1e495a564fa2a55062373d96dc0071f4df583c6e37ea5e385ecbb22082a4f40 |
The source and used-archive digests hash filename-sorted lines of SHA256␠␠name\n using relative app paths or archive basenames. The original manifest digests were d53b77d2ee26c900cc3ab9bd240d0bee6dfb607e483591c1c73534d9fba6f935 (V1), 7e758b182e7f9e3883f658bd5207bb5c8601cc8eda94bea5b688d4aa780cc419 (V2) and d30c26f573e6877aa0158fd1ebafaf6644c18935d3072a74f01b4a3663790b7e (V3). Each stayed beside its Wasm and completion marker. The bundled loader checked 2,277, 2,284 and 2,291 files respectively against the live tree and then the frozen source copy. The restore-trap and omitted-driver builds used the V2 source and client with prepared Wasm hashes be39da234ea244b7299093ac5949d706ee77445ea92721131588911e60be4344 and e1d86289fc16da0341382fe9d1c96ad1d2298c0fc6cdd2003367db0eeb9254a8.