Async scope probe
A small SDK-only canister: roundtrip(target, value) records a saved counter,
ends its root frame, awaits the target's ordinary echo method, then records the
outcome in a fresh frame. stats exposes its durable counters. A missing target
or rejected response is returned as an error and counted; it does not reinterpret
or retry the call under a new identity.
trap_after_increment intentionally traps after a retained write, for actual IC
rollback checks. Native tests check the separate-frame state transitions and
service rebind; only actual Wasm/PocketIC can check exports, suspension and rollback.
This is an SDK lifecycle fixture, not a durable retry or delivery protocol.
The root owns an opaque Counters module and one declared transient APP. The SDK owns the global transient allocator and rejects KEEP while callbacks/tasks remain. After full draining, teardown releases APP and SDK registrations before the clean handoff; the closed catalog is admitted before reopening retained memory.
The timer probe tests one-shot, concurrent and serial interval timers on a
PocketIC application subnet. Run it with the root test task
integration:timer-recovery. The case for a lost wake intentionally clears
the fixture's physical timer while leaving its SDK queue intact. The cycles
cases use the IC's freezing threshold and self-call accounting. They cover
a self-call rejected for cycles before the canister freezes, the retry
delay of a hook that cannot pay for its dispatch, and cancellation of a
rejected timer before its retry runs. A separate
case traps in a real callback and checks that the original serial timer
keeps running after cleanup.
The freeze case with an already-woken migratory future checks that the
global hook commits its dispatch before that future runs in the timer's
self-call.
Timer recovery runner