How it works
The check has three parts and a stored result. The input is the message the agent sees, copied from a real session rather than written to flatter the prompt. The pass rule states an observable fact: the reply names the carrier and the tracking state the tool returned, and it does not add a delivery date the tool never gave. The grader is a script that looks for those strings. Record pass or fail, then send the same input through again after the next edit.
Leave the case unchanged while the agent changes. If the pass rule is loosened in the same change as the prompt, a new pass can mean the test got easier. Store the input, the rule, and the grader beside the result. When a live session fails in a way this case does not cover, add a new case with its own rule. One check answers one question, and a fluent reply that skips the tracking state is still a fail.
A worked example
Parcel tracking at a clothing desk
A person writes to the clothing desk: "Where is my parcel for order 4412?" The tool returns carrier Northline and the state out for delivery. The pass rule says the reply must contain the carrier and that state, and must not name a delivery day the tool did not give. The grader is a script. In this run the agent replies that the parcel is on the way and should arrive tomorrow. The script marks a fail: the carrier is absent, the state is absent, and tomorrow was invented. The input, the rule, and the script are saved together so the next prompt edit is scored against the same case.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- The pass rule says the reply should sound helpful, and two reviewers mark the same parcel answer differently, so the case flips when the reviewer changes and the result stops being a fact about the agent.
- The script looks for a tracking phrase the tool never returns, so every run fails, the suite goes red, and people start ignoring it because the grader is checking the wrong string.
- The input is a tidy sentence from a demo, nobody has ever typed it, and the suite stays green while real parcel questions, full of order numbers and typos, keep failing in the sessions.
How to measure it
Track pass or fail on this same input across prompt versions, with the grader version stored beside each result. A rise in passes means little if the rule was edited in that same change.
Count how many live parcel sessions still end without a carrier and a state after the change. The case is doing its job when that gap and the script agree on which sessions failed and why.
Further reading
How Abracadabra helps
When a session stops short of the job, lift the person's wording into a case with a pass rule. After the edit, compare task success on that task and cohort with the previous period.
Abracadabra does not run the eval or the simulation. Search by meaning, and by tool event, for the sessions that stopped, and use that wording when you write the case. After a change, compare task success for that task and cohort with the previous period.
Request access to read this on your own agent.