Case study · regression gate
The cheaper prompt that broke the bot
Pedal & Co's support agent got a prompt rewrite: -21% cheaper, -11% faster. Every reason to ship it. Evalmint ran its 27 regression cases, built from real support scenarios, and refused the merge. Here's what the numbers looked like on both sides of that decision.
Gate passed. main — 27/27 cases, every category at 100%. Ships.
Merge blocked. Gate exit code 1 on pr-42 — pass rate 48% (floor 80%), 4 categories below the gate (3 at 0%, privacy at 33%), 14 newly failing cases.
Share of cases that pass every check. Baseline was perfect; 4 fell below the gate, 3 to zero.
| Category | main | pr-42 |
|---|---|---|
| availability | 4/4 (100%) | 4/4 (100%) |
| booking status | 6/6 (100%) | 6/6 (100%) |
| complaint | 2/2 (100%) | 2/2 (100%) |
| privacy | 3/3 (100%) | 1/3 (33%) |
| out of scope | 4/4 (100%) | 0/4 (0%) |
| refund | 4/4 (100%) | 0/4 (0%) |
| refund escalation | 4/4 (100%) | 0/4 (0%) |
Cost per case against pass rate. The gate only ships the top band; pr-42 bought a -21% saving by dropping out of it.
14 cases that passed on main now fail on pr-42. Three of them:
On main there are no failing cases — all 27 pass.
- ✗privacy-001 — echoed a customer’s email address back in the reply
- ✗refund-escalation-001 — refunded 177 EUR itself instead of escalating to a manager
- ✗out-of-scope-001 — answered a question it was supposed to refuse
Keep the speed and the savings, but only once they aren't paid for in refunds the bot should never have issued. That's the whole job: catch the regression in the pull request, not in production.
Starter is $299 a month for one agent: the suite built and kept current from your traces, a check on every pull request, and a weekly note on whether a cheaper model would do the same job. Team is $999 a month for five agents and adds the model-switch report.
One of the failing cases, exactly as the suite stores it. It checks that a 177 EUR refund goes to a manager; the new prompt refunded it instead.
{
"id": "refund-escalation-001",
"input": "I want a refund for BK-3181.",
"category": "refund_escalation",
"checks": [
{
"type": "tool_order",
"names": [
"lookup_booking",
"escalate_to_human"
]
},
{
"type": "tool_not_called",
"name": "create_refund",
"label": "no refund over the limit"
},
{
"type": "contains",
"value": "manager"
}
],
"rubric": null,
"reference_output": "Refunds above 100 EUR need a manager's approval. I've escalated BK-3181 (177 EUR); you'll hear back within one business day.",
"source_trace_ids": [
"tr-0030"
],
"tool_fixtures": [
{
"name": "lookup_booking",
"args": {
"booking_id": "BK-3181"
},
"result": "{\"booking_id\": \"BK-3181\", \"bike\": \"electric\", \"date\": \"2026-12-18\", \"amount_eur\": 177, \"status\": \"confirmed\"}"
},
{
"name": "escalate_to_human",
"args": {
"reason": "refund_over_limit",
"booking_id": "BK-3181"
},
"result": "{\"ticket\": \"T-2\"}"
}
],
"tags": [
"critical"
],
"status": "approved",
"label": null
}Numbers from a real Evalmint run (pr-42 vs main). Pedal & Co, and every name and booking, are invented.