DEV Community

Cover image for I Killed an Always-On Agent Mid-Task. The Work Ran Twice.
sunnydachs
sunnydachs

Posted on Edited on

I Killed an Always-On Agent Mid-Task. The Work Ran Twice.

Since August, four companies shipped "always-on" agents: Grok Bot, Meta Muse, OpenAI Dots, Claude Duet. The pitch is identical — the work keeps going while you are away.

The follow-up nobody published numbers for: if the runtime dies mid-task, do side effects run once, twice, or not at all — and does the agent admit it?

So I built a probe, pointed it at a self-hosted always-on agent stack, and killed things on purpose. One stack, one free-tier model, six kills.

GitHub logo sunnydachs / crash-probe

Crash-recovery probe for always-on agent stacks: measure duplicates, losses and silent success when the runtime dies mid-task

crash-probe

Measure what an always-on agent does to your side effects when its runtime dies mid-task: duplicates, losses, and silent success.

The wave of always-on personal agents (Grok Bot, Meta Muse, OpenAI Dots Claude Duet) all promise the same thing: the work keeps going while you are away. The open-source twins of those products are self-hostable, so the question can be answered by measurement instead of by reading documentation:

If the agent's runtime dies while it is writing to the outside world, are the writes executed once, twice, or not at all — and does the agent tell you?

This repository contains the probe used for a published measurement on Rakazo (Apache-2.0), a self-hostable always-on agent stack.

What it measures

A bot runs one shell command that appends 30 timestamped lines to a ledger file (one line per second). The probe kills the runtime 12 seconds in, restarts it, and…

Here is what the ledger counted.

The probe

A test bot runs one shell command that appends 30 timestamped lines to a ledger file, one per second. Twelve seconds in, the probe SIGKILLs the runtime and restarts it. Then the ledger is counted:

  • duplicates — the same step written more than once
  • lost — fewer than 30 distinct steps
  • silent success — failure reported as completion

The ledger is append-only on purpose: a full re-run shows up as duplicate steps instead of silently replacing the file.

Result 1: killing the runtime duplicated every side effect

Three runs, three times the same: the ledger ended at 60 lines for 30 steps. Every side effect ran twice.

kill at t+12s → t+6s later the file already held 45 lines.

The timeline shows how. Six seconds after the kill, the file already held 45 lines — the orphaned shell from before the kill kept writing while the restarted runtime re-ran the task from the beginning. Two writers, one file, interleaved:

kill --> orphaned shell keeps writing
         restarted runtime starts over
              A        A
              v        v
   both write the same 30 steps -> 60 lines, order scrambled
Enter fullscreen mode Exit fullscreen mode

And the final report? "Done." The duplication was never mentioned.

Result 2: kill the computer, and the agent is honest

Next run: kill the runtime and the sandbox computer container.

This time the file vanished — the workspace did not survive the sandbox recreation, so the ~13 steps written before the kill were lost. No duplicates.

worker killed at t+13s → file gone with the container → 30 distinct steps became 0 recoverable.

But the agent reported it honestly: "the command was killed with exit code 137, no output." No fake success.

The asymmetry is the finding

what died side effects what the agent said
runtime all duplicated success, no warning
runtime + computer lost honest failure

Both paths settled on their own. Neither asked a human anything.

For an "always-on" product, that asymmetry matters more than either number alone: the failure mode you get depends on which layer died, and the dangerous one is the quiet one.

Scope and limits

  • One self-hosted stack, one model (free tier), one synthetic task. The closed products are not reachable from my region and were not tested.
  • The stack is alpha software; results describe this version.
  • Side effects are file writes inside a sandbox — no real inboxes or accounts.
  • The general mechanism (crash-recovered agents duplicating external effects) is already characterised in the literature (5,940 runs, Zenodo 23371574). What is new here is the measurement against a shipping always-on stack.

The probe is a small MIT-licensed script — clone it, point it at your own always-on stack, and see which type you have.

This is a personal OSS project - no warranty; issues and improvement ideas are welcome.

Top comments (0)