Cradle Discuss a project
All articles

Why an AI Benchmark’s Database Check Passes Cancellations Made Before Consent

A black stamp leaves a vermilion mark beside an empty checkbox.

Our team at Cradle took a public retail benchmark and changed one thing in its test conversations. We moved the customer’s “yes” from before the cancellation to after it. The agent still made the same tool calls. The order still ended up cancelled. The benchmark’s database check gave both versions full credit on every task we completed.

Imagine asking a support agent about cancelling an order and watching it cancel before you confirm. It could point to a clean database record. You would still have a reason to say the agent handled the interaction incorrectly. The database can tell you what happened to the order. The conversation tells you whether the agent had permission when it acted.

That difference is easy for someone reading a transcript to see. It takes deliberate test design to make it visible in an automated score.

One change, three traces

We used the published retail environment and database evaluator from Sierra Research’s tau-bench repository. Its retail policy requires the agent to check that an order is pending and get explicit confirmation of the order and the cancellation reason before acting. Its database evaluator replays the tool calls and compares the resulting database with the expected database.

We screened all 114 tasks in the retail base split. We selected the 18 whose reference actions included cancellation and completed the three-way replay on 18. For each task, we constructed one trace where the customer confirmed first, one where the same confirmation came after the corresponding cancellation, and one where we omitted the cancellation. In the two timing variants, the tool names, arguments and their order stayed the same. The benchmark ran the actual retail tools and replayed their recorded responses in strict mode. The replay completed for every task that matched the selection rule.

The result was consistent. The database matched in 18 of 18 tasks with prior confirmation and 18 of 18 with late confirmation. When we omitted cancellation, the database matched in zero. That last control matters. It confirms that the check detects an unfinished change to the order. The timing pair shows which part of the workflow the database check leaves unresolved.

Across 18 tasks, the database matched in all tasks both when consent preceded cancellation and when consent followed it. It matched in zero tasks when cancellation was omitted.
Outcomes of the three replay variants. A database match is the reported outcome for this component.

Why teams should care

Suppose you run evaluation for a support product. A new agent release scores well on order cancellation. You might use that result to approve a rollout or compare two models. If the check you rely on measures database state, a high score tells you something useful about whether orders end up where you expect. To conclude that the agent also waited for approval, you need evidence about the sequence.

This crops up wherever permission arrives through a different system from the action it authorizes. In accounts payable, an invoice can end up posted even if the approval came after posting. In customer support, a refund may reach the right account even if it was issued before review. Those are examples of how the same test design could apply. Our experiment measured retail cancellation.

There is also a training implication. If a score is used as a reward, its definition shapes which outcomes receive positive feedback. Giving identical credit to both traces leaves the timing of confirmation unspecified in that signal. The effect on a trained agent would depend on the rest of the reward and how often these cases occur. That’s a reason to test the signal before relying on it.

What this tells us about tau-bench

The database component has a sensible purpose. Many workflows have several valid sequences of actions, and two correct agents can reach the same outcome by different routes. A grader that insists on an exact sequence can reject useful alternatives. For example, a status read immediately before cancellation can satisfy a rule requiring the read before action, even if another agent reads status earlier.

Our finding is about the database component on controlled traces at a specific revision. The retail tasks in the replay can also carry natural-language assertions. We did not evaluate those judges, run a model leaderboard, or estimate how frequently agents cancel prematurely. The replay gives teams an exact example of where to look when they want separate evidence of permission and outcome.

A test an evaluation team can use

Choose a workflow where the agent needs a specific piece of evidence before it can act. Start with one accepted trace. Create a second version by moving that evidence to just after the action, keeping the tool calls and final state the same. Give both traces to the grader. If they get the same score, ask which part of your scoring policy was supposed to distinguish them.

Then add a different valid trace. Move an unrelated step, or use a different route that still complies with the policy. That protects agents that finish the work correctly in an unexpected order. Include a case with missing evidence as well. When the log cannot establish what happened, an inconclusive result is more informative than a pass.

For cancellation, the extra check can be small. Record the approved order and reason, the event that established confirmation, and the mutation that needed it. Check that the confirmation applies to the same operation and precedes it. Keep the database check for the outcome. With both in place, a reviewer can see whether the order was cancelled and whether the agent had permission at the time.

At Cradle, we build and test training environments for AI agents. We’re sharing the design and replay evidence so other evaluation teams can apply the same test to their own workflows. If you own an agent evaluation, start with the action where timing matters most. What would your grader do if the right approval arrived one step too late?

Sources for verification