Skip to main content
The example agent resolves support tickets. It reads a ticket, finds the customer in the CRM, refunds what the ticket asks (up to 100.00; more goes to a person), and replies. It calls no model: each step is fixed, so the same ticket always gets the same handling.

The files

Run it

Each recorded session lists the tool calls. Then redact, build the twin and run:
Output

What the checks found

Ticket T-1002 is from Sam Lee, and the CRM has two customers of that name. The agent refunds the first match without checking the email on the ticket, so effects_match_expected fails: the case expects the refund to go to the other customer. The failure cluster names the error kind (wrong_customer), the station (send), the check, and the tool. Ticket T-1005 also names a shared name, but its customer happens to be the first match: it passes. That is why the stratum, not the case, is the unit to read: “customers who share a name” fails on one of its two cases here, and the strata weights say how often such tickets arrive. Ticket T-1004 asks for 180.00, over the limit: the agent escalates, as the case expects.

Fix it

Match the customer by the email on the ticket, not by name alone:
Redaction replaced every name and email in the recordings with a consistent fake, so the ticket’s email and the CRM’s still match in the twin. The new run is of a new agent version, and every case passes:
Output

With your own support agent

Record tickets of every kind your agent sees, and write cases for the dangerous ones by hand: the refund over the limit, the shared name. Add strata for them, with honest weights, so the result reflects the work as it arrives.