How it works
The harness attaches a schema to the model request and asks for a reply that validates against it. Decoding, or a check immediately after the reply, rejects text that is missing a required field, has the wrong type, or adds a key the schema forbids. The result is data the next step can store without scraping a paragraph. No function runs because of the schema. Nothing is written to a warranty database until some other code takes those fields and calls a tool.
A tool call is a different shape. The model asks the harness to run register_warranty with arguments, and the harness performs that call. Structured output only constrains the text that comes back. Teams blur them when they treat a valid JSON object as a saved registration. Validity means the fields match the types. It does not mean the serial exists, and it does not mean a row was inserted. Those are tool results, and they belong in the trace beside the schema check, not inside it.
A worked example
Headphone warranty fields
A customer wants to register headphones and types a serial, a purchase date and a retailer.
The harness requests structured output with three required fields: serial as text matching the HX pattern, purchase_date as a date, retailer as text. No tool is on this call.
The model returns serial HX-19, purchase_date 2026-03-02, retailer North Street Audio. The schema check passes. The harness shows the three fields to the customer and asks for a confirmation. register_warranty has not been called, and the warranty table has no new row.
On a second try the model returns serial unknown and a sentence in purchase_date. The schema check fails. The customer is asked for the serial from the box. Still no tool runs.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- The schema accepts serial as any text, the model returns unknown, the check passes, and a later tool stores a warranty that can never be looked up.
- A valid object is treated as a completed registration, register_warranty is never called, and the customer is told the headphones are covered.
- The model emits both a schema object and a tool call, the harness runs the tool with a serial taken from prose rather than from the object, and the stored serial does not match the fields the customer confirmed.
How to measure it
Count replies that failed the schema, replies that passed, and replies that passed and were followed by a register_warranty result. A pass with no tool result is not a registration.
Read cases where the customer says the warranty was not found. Compare the serial in the schema object, the serial in the tool arguments, and the serial on the box they repeat in chat. A mismatch between object and tool is a handoff bug, not a schema success.
How Abracadabra helps
The customer is shown three labelled fields and asked to confirm them, or is told the serial does not match the pattern, and nothing yet says the warranty was saved.
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.