How it works
When a message arrives the harness builds one request from the standing instructions, the tool list and the conversation so far. The model returns either prose for the person or a request to call a named tool with arguments. That request is a choice of action. The harness checks the name against the tools it actually exposes, runs the call, appends the result and calls the model again. Choosing the next action, rather than only the next sentence, is what makes the system an agent. A reply that never leaves the text is a chatbot turn, even when the wording sounds as if the work has already happened.
The model does not move money. It names a tool such as lookup_order, read_policy or create_refund, and the harness runs only that name. Each result changes the next choice: the price comes from the order, the photo rule comes from the policy, and the refund is created only after both are in the message list. The decision to stop then belongs to the harness, not to a sentence that claims the refund is done.
A worked example
Cracked kettle refund
A shopper writes that a glass kettle on order K1842 arrived cracked and asks for the money back.
The model calls lookup_order with K1842. The tool returns the kettle, a delivered status and a card payment of 42 pounds.
The model calls read_policy with reason damaged_on_arrival. The tool returns that a photo is not required when the courier scan already marks the box damaged.
The model calls create_refund with K1842, 42 pounds and reason damaged. The tool returns refund id R77 and a card credit pending.
The model tells the shopper the credit is on the card and quotes R77. The harness stops because the refund tool returned an id and the reply names it.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- The model writes that the refund is on its way and never calls create_refund, so the shopper leaves with a promise and the payments system has no refund id to settle.
- The model calls create_refund before lookup_order, invents an amount of 42 pounds, and the tool rejects the unknown order, after which the model apologises and stops without a second attempt.
- The model calls lookup_order, receives the order, then calls lookup_order again with the same id because a trimmed result dropped the price, and the loop never reaches the refund.
How to measure it
Count refund tasks where create_refund returned an id and the closing reply quoted that id, and count tasks where the reply claimed a refund with no matching tool result. Read the turn where the shopper asks whether the money has actually moved.
Also count the model calls between the first lookup_order and create_refund, and how often the loop stopped on prose with the refund tool never selected. Those counts separate a finished refund from a polite miss.
Further reading
How Abracadabra helps
The shopper asks for the money back, then asks again whether it has actually been sent, or corrects the order number after the assistant named a different purchase.
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.