How it works
State is a record the harness updates on purpose. After a tool returns, code copies a few fields into that record: member id, the balance just read, points still pending, and the question the member asked. The next model call receives the record, plus the newest turn, rather than every earlier sentence. The transcript can stay in a log for people. It is not the working memory of the loop. Pasting it all back in is how an old balance returns and contradicts the tool.
What goes into the record is a design choice. Keep ids and figures the next step must not recompute wrongly. Leave out chatter, and leave out another member's facts. If pending points are dropped, the model explains a gap it can no longer see and may call get_balance again for a number it already holds. If the record is never updated after a fresh read, the model quotes the stale copy with confidence because that copy is what the harness presented as current.
A worked example
Points that do not match
A member asks why the app shows 1200 points when last week's receipt should have added more. Member id M440.
Step 1 calls get_balance with M440. The tool returns posted 1200 and pending 300, labelled as the shop visit on Tuesday. The harness writes those three facts into the state record and does not replay the whole marketing email thread.
Step 2, a minute later, the member asks whether the Tuesday visit counts. The model is given the state record, not a dump of every prior campaign message. It calls list_pending with M440. The tool returns the same 300, still pending, reason not yet cleared by the till.
The reply says 1200 are posted and 300 are waiting, and it quotes the Tuesday visit. It does not invent a second balance from an older message that mentioned 900.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- The full transcript is pasted back, an older message still says 900 points, and the model quotes 900 after get_balance has already returned 1200. The member then has to repeat the Tuesday visit.
- The state record keeps M440 and drops the pending 300, so the next reply says the Tuesday visit is missing when list_pending was never asked.
- A previous member's balance stays in the record, M440 is told they have 40 points, and the tool for M440 was not called on this turn.
How to measure it
On each model call, record whether the prompt carried the state record, the full transcript, or both, and which balance figure was in the record at that moment. Compare it with the latest get_balance result.
Read corrections where the member repeats the right balance. Note whether the contradicted figure came from the state record, from an old transcript line, or from a tool result on this step. Those are three different faults.
How Abracadabra helps
The member says the balance just quoted does not match the number from a minute ago, or repeats the Tuesday receipt because the assistant has forgotten the pending points.
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.