Callback and timer lifecycle fixture

Run from a release

Use the release build with example=reactor-peer and the default features. Use the local host setup to set host and POCKET_IC_BIN.

node "$host/packaged-probes.mjs" reactor-peer "$run/artifacts/reactor-peer" \
  "$POCKET_IC_BIN" "$run/reactor-result"

The runner installs two canisters and uses only their Reactor endpoints. It checks the exact received bytes, the decoded acknowledgement, and physical permit retirement. It then upgrades the drained sender with KEEP and sends a fresh notification through the restored peer. Follow runtime startup and the add_peer, send, and reactor_receive endpoints.

Qualify callbacks from the checkout

The fixture exercises real callbacks, cleanup, physical permit return, uncertainty and timer cancellation. Build with the canonical SDK builder:

source tools/env.sh
python3 cdk-rsx/tools/build-app.py \
  --manifest-path tests/canisters/rrt-callback-probe/Cargo.toml \
  --package rrt-callback-probe-canister --name probe \
  --out-dir tests/tmp/callback-build --offline --locked
node tests/pocketic/callback-safety.mjs \
  "$PWD/tests/tmp/callback-build/probe" "$PWD/tests/tmp/callback-result" \
  "$POCKET_IC_BIN"
node tests/pocketic/timer-cancellation.mjs \
  "$PWD/tests/tmp/callback-build/probe" "$PWD/tests/tmp/timer-result" \
  "$POCKET_IC_BIN"

pump_fault traps each Reactor pump that reaches the send driver. The harness task integration:reactor-wake-recovery uses it to check that the controller pumps again after the SDK discards its wake.

The runners take an artifact stem, a fresh result directory and the qualified PocketIC executable. They preserve real physical callbacks and SDK cleanup; no ingress callback impersonation or runtime replacement is used.