Thrash & Loop Traps

Repeated near-identical failing calls producing zero environment progress.

A fly bumps against a closed window, backs off an inch and bumps again, a foot from the open one. Each attempt varies the last: a little higher, a little to the left. None is a different idea. The fly is short on information, and trying harder doesn't produce any.

Agents get stuck the same way. A call fails, the agent makes a small, reasonable change and tries again, and it fails the same way. One retry is good judgment. Five retries that each get the same answer are a trap: turns, tokens and time burn while the environment doesn't move.

Thrash traps come in three shapes. Exact repeats send the same call again. Mutations change a detail each time: quoting, casing, an ID prefix. Oscillations swing between two states, applying a fix, reverting it, applying it again. All three share one signature: activity without progress.

In practice

Here is an illustrative deploy agent caught in a mutation loop.

TraceA deploy agent mutating arguments against an unchanging error
  1. T1
    deploy_service(name="billing", tag="1.8.2")→ 400 Bad Request: invalid manifestMaybe the tag needs a prefix.
  2. T2
    deploy_service(name="billing", tag="v1.8.2")→ 400 Bad Request: invalid manifestMaybe the service name is wrong.
  3. T3
    deploy_service(name="billing-api", tag="v1.8.2")→ 400 Bad Request: invalid manifestTry the original values in case it was transient.
  4. T4
    deploy_service(name="billing", tag="1.8.2")→ 400 Bad Request: invalid manifestBack where it started. Four calls, four identical answers, and nothing learned, because the error never said which part of the manifest is invalid.

Notice why the loop is stable. The tool is deterministic, and its error is identical whatever the agent changes. On turn 4 the agent has exactly the evidence it had on turn 1, so each new guess is as reasonable as the last. The real problem, a region that isn't enabled, is something no retry would reveal.

A legitimate retry looks different. After a rate limit or a timeout, the world changes between attempts, and waiting is the right move. The test is simple: did anything in the response or the environment change since the last attempt? If not, the next attempt is a repeat.

Why it matters

A stuck person gets annoyed, and annoyance makes them stop and ask. Agents have no such signal, and they usually can't tell from their own window that they're repeating themselves. The Guide calls that missing sense of elapsed turns and repeated attempts temporal proprioceptionLexicon · 48Temporal ProprioceptionInjected awareness of elapsed turns, budget consumed and retry counts..

Each loop wastes a turn of latency and a few hundred tokens of reasoning. The indirect cost is worse. Loops usually end when a budget runs out, and an agent at its limit is tempted to report something that sounds like success.

What to do about it

H-11 Errors as Steering Prompts breaks the loop at its source: an error that names the failing field and the next valid call gives the agent new information, the one thing a thrash trap lacks. H-15 Temporal Proprioception & Verification Gates adds the backstop: count repeated calls and identical failures, show the count to the agent, and trip a circuit breaker after a set number. H-02 Affirmative Null Observations removes a common trigger, the query mutated again and again after an empty result.

The way loops tend to end, with a quietly lowered bar, is silent corner-cuttingLexicon · 50Silent Corner-CuttingQuietly lowering standards or declaring premature success instead of failing.. Empty results that don't say what was searched, null observationsLexicon · 27Null ObservationsEmpty results or silent successes requiring explicit scope confirmation., are a common way in. In a trace, a thrash trap is a break in momentumLexicon · 55MomentumConsecutive streaks of productive, state-advancing turns without friction breaks., the run of turns that actually move the work forward.

esc

Try “tokens”, “errors”, “stale”, “handoff” or “blast radius”.