How it works
The harness increments a counter when it is about to call the model, when it is about to call a tool, or both, according to the rule the team wrote. That counter is not the token counter. A run can exhaust tokens with steps remaining, or exhaust steps with tokens remaining. When the counter hits the cap, the loop stops even if the latest reply asked for another tool. The model does not see the remaining steps unless the harness writes that number into the next request.
The cap is a safety rail, not a measure of success. Stopping at the cap with the merge uncommitted is a failed task that happened to be cheap in tokens. A generous cap that is never reached tells you nothing about whether the contacts were merged. Read the counter beside the token total. On a contact merge, compare_contacts can be small in tokens and still cost a step, while a huge note field can blow the token cap on call two with the step counter still at two.
A worked example
Duplicate contact merge
A salesperson asks the agent to merge two CRM records for Dana Shah, both tagged trade-show.
The step budget is six model calls. Tokens are capped separately and are nowhere near that cap.
Call 1 searches contacts and returns record A and record B. Call 2 compares them and finds the same mobile number and two different email addresses. Call 3 searches again for the mobile, which adds no record. Call 4 compares A and B once more. Call 5 drafts a merge. Call 6 is the budget.
The harness does not run merge_contacts. It stops and tells the salesperson the duplicate is still present because the step cap was reached first. The token counter shows most of the allowance unused.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- The budget counts only model calls, tools are unlimited, and a script of compare_contacts calls runs long after the merge should have been attempted or refused.
- One shared counter mixes steps and tokens, a long biography on record A exhausts it during call 2, and the trace cannot say whether the cap that fired was actions or tokens.
- The budget stops after merge_contacts has updated record A and not record B, and the CRM is left with a half-applied merge and no compensating step.
How to measure it
For each merge attempt record steps used, the cap, tokens used and the token cap as four separate numbers. Count attempts that stopped because steps were exhausted while tokens remained, and the reverse.
Among step-cap stops, read whether merge_contacts had already returned a merged id. A cap stop with no merged id is an unfinished duplicate. A cap stop after a merged id is a budget that cut the closing reply, which is a different fault.
How Abracadabra helps
The salesperson says the duplicate is still in the CRM, or asks why the assistant stopped after comparing the two records and never merged them.
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.