A top-up restores the balance, not the timers — how do you tell?

In How can top-up be this broken and unstable ?! a top-up reported success and the canister’s balance did not go up. Working out what had actually happened took reconstructing, from the outside, where the cycles had gone — and one of the first questions asked was whether the canister was spending them itself while handling a call or a heartbeat.

The balance alone could not answer that. What made any of it visible was a query the canister exposed about its own state. That thread resolved fine, and its cause was benign. We are pointing at it for a different reason: the hard part was that the balance did not carry the information anyone needed. That is the gap we have been working on for two months. This post is what we have, including the part that went wrong.

Cycles tell you what a canister can do, not what it is doing

When a canister runs out of cycles it freezes. You top it up and the balance comes back. But the timers that drove it do not necessarily resume, and every dashboard will show you a healthy canister that is doing nothing.

We settled on two states we could actually detect:

  • STILL_DEAD — balance is healthy, liveness is not.
  • REVIVED_BALANCE_ONLY — balance and status recovered, but liveness could not be
    verified either way.

The second matters more than the first. If a target exposes no liveness signal, “it was
topped up” is the honest end of what anyone can tell you, and claiming a recovery you did not
observe is worse than saying nothing.

A few lines make it verifiable

use std::cell::Cell;
use std::time::Duration;

thread_local! {
    static TICK: Cell<(u64, u64)> = const { Cell::new((0, 0)) };
}
fn bump() { TICK.with(|c| c.set((c.get().0 + 1, ic_cdk::api::time()))); }
fn arm()  { ic_cdk_timers::set_timer_interval(Duration::from_secs(60), || async { bump() }); }

A 60-second timer bumping a timestamped counter, plus a query exposing it. A counter that
advances proves the timers resumed. A counter that does not is the whole signal. Without it
you are reading balance and calling it health.

The fixture, so you can see what the detector sees

To exercise the detector we needed a target that is known-bad by construction, so we built
one and left it on mainnet. It is not a canister that failed — it is a canister that cannot
succeed. Six lines of Rust returning a hard-coded constant, no timer and no state, deployed
2026-08-02:

dfx canister call slrvd-cqaaa-aaaai-raqcq-cai watchdog_heartbeat '()' --query --network ic
(1 : nat64, 0 : nat64)

First value is the tick count, second is the IC system time at the last tick. A zero
timestamp does not mean “stale” — it means never written. That value cannot change, and that
is the point: it is a fixture for the detector, not evidence about the wild.

(dfx now prints its own deprecation notice pointing at icp-cli; we have only verified the dfx
form, so that is the only one we will quote.)

One constraint worth stating plainly

canister_status is reserved to controllers, so a canister with zero controllers exposes no
status to anyone — us included. Module hash is a separate matter and stays publicly readable
through other paths. We mention it because we first wrote the stronger claim and our own
measurements contradicted it.

The part we did not plan

On 2026-08-25 at 17:32:43 UTC our watchdog stopped being able to read its targets — four
level transitions in seven minutes, then nothing readable. It has been blind since.

We had written, before it happened: a monitor that went blind must shout, not go quiet. It
did shout. It emitted the transitions correctly, within the minute. What we had not built was
the transport: the signal sat in an outbox for 31 hours before it reached a human, and no
automatic mechanism was going to move it. We built that path afterwards.

We still do not know the cause. The failing call discards its error, so two distinct causes
collapse into the same empty result — and naming it would mean upgrading the canister while
it is holding the evidence.

We are reporting this because a monitoring project that publishes only its successes is worth
nothing. The detection held and refused to report health it could not verify. The delivery
did not, and that gap was ours.

What we are actually asking

We are not selling anything and there is nothing to sign up for. What we have is a detector
and a fixture; what we do not have is a well-characterized set of real cases.

So, has anyone had timers fail to resume after a top-up on mainnet? Did you notice, and what
did you notice it with? We would rather describe this from other people’s incidents than from
our own mock.

Happy to go into the detection logic or the level scheme if it is useful.


Correction, added after posting

Discourse surfaced Timers and frozen canisters - cryostasis under this topic, which I had not found before writing. That thread is on exactly this, it already has the name, and it goes considerably further than what I wrote above.

An earlier version of this post said I had not found a thread about the state after recovery. That was wrong, and I would rather correct it than leave it standing. What is open over there is narrower and more useful than my question here — whether the non-resume reproduces on current mainnet at all, as against recovery attempts being silent no-ops. I will follow up in that thread rather than duplicate it here.

The Rust snippet as first published did not compile. I had trimmed thread_local! and the two use lines away to make it fit a “five lines” claim, which drops the wrapper that makes .with() valid and leaves a Cell in a static, where it cannot go. Three errors, two of them from that one edit. Corrected above, and the section is no longer titled by a line count. The version now shown is what actually runs on mainnet, checked offline against the deployed crate (ic-cdk-timers 1.0.0, cargo check --frozen --target wasm32-unknown-unknown).

Posting a snippet under a heading that says it makes something verifiable, without having compiled that snippet, is the same mistake as reading a balance and calling it health. Noted.