spin
spinning in placeDoing the same thing over and over — same tool, same arguments, same result — while treating it as progress.
GLOSSARY / RUN FAILURE
Six named runtime failure modes of agents — what each one is, how it is detected, and where the judgment lives. The names enter the engine's type system (RunFailureKind), which gives detection, adjudication, recovery, audit and testing a place to hang. Detection is layered on purpose: spin / blowup / thrash are computed at checkpoints by the guard rule table; stall is watched by an independent-thread watchdog; burn hangs on the budget channel; drift is prevented by the task system and caught by LLM review. Each layer only watches what it can actually observe.
Doing the same thing over and over — same tool, same arguments, same result — while treating it as progress.
Crashing into the same error again and again — neither changing course nor asking for help.
Plenty of motion, a high failure rate, zero progress.
What is being done quietly separates from what was asked — every local action is legal, the overall direction is already off.
The run is still "running" but the heartbeat is gone — a frozen event loop cannot detect its own freeze.
Budget or round limit exhausted, still not converging.
default-run-guard.ts (guard rule table), loop-watchdog.ts (stall watchdog), the budget channel (burn). Thresholds evolve with the implementation — the repository is the source of truth.ChaosProvider (src/testing/chaos-provider.ts) injects timeout / rate_limit / empty_response / malformed / truncated / partial_tool_call — this is not something we describe; you can run it yourself.consecutiveErrors >= 3 mislabeled "red-fix-green" as a stall, and early toolFailureRate > 0.5 mislabeled "write the failing test first" as thrash — both correction stories are in the article.