Future-reader KEEP probe
This canister explicitly permits a cold KEEP upgrade with only future-reader
inbox work remaining. It owns no business workflows, response addresses or
subscriptions. Fourcans and ordinary full-drain applications are unchanged.
Both images use the same retained memory and fixed reader.notify.v1 route.
The reader-two feature changes the installed capability from 1 to 2.
queue_future(body, operation) sends a real Reactor notification to the same
canister, requiring reader 2. Reader 1 stores it and acknowledges sequence 1
without entering the handler. The root uses assert_reader_upgrade_ready and
shutdown_for_reader_upgrade; restoration calls restore_reader before starting
the controller. replay_packet resends the exact saved physical packet to check
the stored-prefix acknowledgement before and after application processing.
controls(true) deliberately traps after promotion during restoration to test
upgrade rollback. These endpoints are qualification controls.
From the factory root, using its exclusive build target and qualified PocketIC:
source tools/env.sh
python3 cdk-rsx/tools/build-app.py \
--manifest-path tests/canisters/rrt-reader-upgrade-probe/Cargo.toml \
--package rrt-reader-upgrade-probe-canister --name reader_probe \
--out-dir tests/tmp/reader-v1 --offline --locked
python3 cdk-rsx/tools/build-app.py \
--manifest-path tests/canisters/rrt-reader-upgrade-probe/Cargo.toml \
--package rrt-reader-upgrade-probe-canister --features reader-two --name reader_probe \
--out-dir tests/tmp/reader-v2 --offline --locked
node tests/pocketic/reader-upgrade-lifecycle.mjs \
--source-root="$PWD" --pocket-ic="$POCKET_IC_BIN" \
--v1="$PWD/tests/tmp/reader-v1/reader_probe" \
--v2="$PWD/tests/tmp/reader-v2/reader_probe" \
--output="$PWD/tests/tmp/reader-upgrade-result"
Build and result directories must be fresh. This fixture does not authorize pending workflow, addressed-result or physical-callback upgrades. Reader generations gate installed capabilities; they do not convert incompatible Wire schemas. Native tests and authoring the runner do not establish a passing KEEP qualification; use the actual artifact/result receipt.