glossary

Harness

Doom loop

A doom loop is the agent repeating the same action, with the same arguments and no new information in the result, so later steps cannot change the outcome and the harness must cut the cycle.

Abracadabra Team Glossary

How it works

The harness detects the pattern by comparing the latest action with the recent ones. It normalises the tool name and the arguments, then compares the latest tool result with the previous result for that same call. If the pair of name and arguments has already been seen, and the new result contains no field that was absent last time, the loop is not learning. Calling the same tool with a new file id, or calling it again because a status field changed, is a different action and is not this pattern.

The cut is a stop condition, not a hope that the next identical call will behave. The harness can stop, append a note that the action repeated, or ask the person for something the tools do not have. Leaving the model to notice is unreliable, because the model is doing what the unchanged result invites: trying the only call that previously returned. On a claim, three upload_photo calls with file F1 and the same received status are the pattern. A later upload of file F2, after a request for a different photo, is not.

A worked example

Storm claim photos

A policyholder asks to add storm photos to home claim CL-220.
The model calls get_claim with CL-220. The tool returns an open roof claim and says a photo is still required.
The model calls upload_photo with claim CL-220 and file F1. The tool returns received, no new fields, and the claim stays open.
The model calls upload_photo again with CL-220 and F1. The result is byte for byte the same. The harness marks a repeated action with no new information.
It does not call the model again for a third upload. It stops the loop and the reply tells the policyholder that F1 is already on CL-220 and that a photo of the damaged chimney is still missing.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • The harness never compares arguments, so upload_photo with F1 runs until the step budget, the claim stays open, and the policyholder is told the photo failed when it had already been stored.
  • The model asks the policyholder to reattach the same shot, the person sends F1 again, and the loop treats the new turn as progress even though the file id and the result did not change.
  • A status field flips from received to queued and back while the file id stays F1, a naive equality check misses it, and the claim never advances to a review state.

How to measure it

Count runs where the same tool name and normalised arguments appear at least twice with no new field in the later result. Break that count out from ordinary retries, which use a new argument or receive a changed payload.

Read the turn after the cut. The useful cases are the ones where the person says they already sent that file, or where the reply still asks for F1 after the tool had stored it.

Further reading

How Abracadabra helps

The policyholder says they already uploaded that photo and asks why the assistant wants the same shot again, while the claim still shows no review.

Abracadabra reads each conversation and labels the task, the step where it stopped, and signals such as repeated intents, user corrections and abandonment, pinned to the turn. After you change this part of the harness, compare task success for that task and cohort with the previous period. Experimentation and guarded rollouts are in early access.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.