How do I test a prompt change on real past calls before it ships?
Replay the calls that went wrong and the calls that went right with the changed prompt, and score both the same way. Ship the change only if it fixes every call it aimed at and breaks none that worked; a change that fixes some calls and leaves others broken is not done.
Steps
- Pick the calls. Every call the change is meant to fix, plus calls that went right. The good calls are how you catch a change that breaks something.
- Write down what right looks like for each call, from your own rules or policy, before you replay anything.
- Replay the caller’s side of each call against the changed prompt and rules.
- Score every replay against the same rules you used to mark the original calls.
- Count two numbers: how many of the targeted calls are now fixed, and how many good calls now fail.
- Decide by the numbers. Ship only if every targeted call is fixed and no good call broke. Otherwise, change the fix and replay again.
- Keep the set. The same calls test the next change, and the one after.
A real example
Six calls from a public airline voice-agent benchmark (tau2-bench), not customer calls, checked by Rokan on Nov 23. Five broke the airline’s written policy: transfers that should have been refusals, a cancellation without the right to one, compensation nobody asked for, and a caller who asked for a supervisor and never got one. One call went right.
Rokan wrote two sets of rules and replayed all six calls with each, the good one included:
cand-2: 4 new rules, replaying all 6 calls ...
cand-2: fixed 3 of 5 it aimed at, broke 0 of 1 that worked
cand-2: blocked — 2 calls it aimed at still fail
The first set fixed 2 of the 4 calls it aimed at; the second fixed 3 of 5. Neither broke the good call, and neither fixed everything it aimed at, so both were blocked. Four more fixes never reached the replay: one was an empty rule, and three tried to change rules outside the agent the calls came from. Rokan held the best set for a person and changed nothing in the agent.
That is the point of step 6. Three fixed calls out of five is real progress, and still not a fix you ship.
What a replay can and can’t catch
- A replay of this kind is a model playing the caller’s side against the agent’s prompt and rules. It tests what the agent decides to say and do.
- It does not call the agent’s real tools or voice stack, so it does not re-test speech-to-text, audio or a live backend. Test those separately.
- A replayed caller can take a conversation somewhere the real one did not. Read the replays of the calls that changed, not only the scores.
Short answers
What counts as a regression when I change a prompt?
A call that went right before the change and goes wrong after it, judged by the same rules you used for the original call. That is why the replay set must include good calls, not only broken ones.
Should I ship a prompt change that fixes most of the broken calls?
Not if it leaves calls it aimed at still broken. Change it and replay again. In the airline example, a fix that repaired 3 of 5 targeted calls and broke nothing was still held for a person.
Can a replay of past calls test speech-to-text?
No. A replay where a model plays the caller tests the prompt and rules, not audio, speech-to-text or a live backend. Test those on their own.
How Rokan handles it
Rokan runs this replay for every fix it writes, across every customer’s past conversations, and blocks a fix that breaks a run that worked. A person on your team approves before anything changes.
This guide as Markdown: test-prompt-change-on-past-calls.md