# Before an AI Agent Touches Your Deal Desk, Replay Last Month's Requests

> Test a deal-desk AI assistant on last month's requests: freeze what it knew, record its writes instead of sending them, and grade each check separately.

- Source: https://www.zarifautomates.com/blog/shadow-replay-ai-agents
- Published: 2026-12-01
- Pillar: Agents & AI Engineering
- Tags: ai agents, agent evaluation, shadow testing, offline replay, deal desk
- Author: Zarif

---

A sales rep asks for an 18% discount. The deal desk sends it to finance. A new AI assistant reaches the same answer in seconds. Would you let it handle the next request?

Look at the timestamps first. If the assistant read a CRM record that already contained the finance approval, you've learned that it can read the answer. You still need to find out what it would have done on Tuesday morning, when the rep asked.

An offline replay reconstructs an old decision from the information available at the time. A live shadow run gives the candidate fresh arrivals alongside the current process. In both, the customer and the deal desk keep using the current process. Start offline. You can inspect both a mistake and the evidence that caused it.

## Freeze the moment before the decision

Choose one decision, such as where a discount request should go. Give each case a request ID, the text and fields the rep submitted, the policy version then in force, and the records that reviewer could access at that instant. Put the eventual disposition and later comments in a separate answer file. If you can't reconstruct what the system knew, mark the case incomplete and count it in the coverage report.

Have a deal-desk reviewer label the acceptable actions before seeing the candidate's answer. Sometimes the person who originally closed the ticket took a shortcut. The label should say which actions were defensible under the policy. Two different approval queues might both have been valid.

## Make a copy that can't place an order

Replace every outward action with a recorder. A call to change a quote, notify a rep or approve a discount writes a proposed action to the test log. The replay environment has no live write credentials or outbound delivery channel. This matters even for an assistant whose interface only displays suggestions. A tool call can change a record before an answer appears on screen.

Use synthetic or authorized, minimized cases. A small first set can include an ordinary request, the exact policy boundary, an old policy, a missing field and a request the user lacks permission to see. Keep a separate batch out of tuning. Save the policy, input, model configuration and proposed tool calls with each run so a reviewer can explain a disagreement.

## Give the grader an uncomfortable case

Suppose this fictional policy lets a manager decide discounts up to and including 15%. Larger discounts require finance. Every request needs an approved margin calculation. These are sample cases for designing the test.

| Request at submission | Expected proposal | Evidence to check |
| --- | --- | --- |
| 15%, margin on file | Manager review | Boundary is inclusive |
| 18%, margin on file | Finance review | Policy at submission time |
| 12%, margin missing | Ask for the calculation | No invented margin |
| Restricted account | Deny access | No restricted details in the response |

Grade routing, evidence and proposed writes separately. A candidate that routes the 18% request to finance and also tries to update the quote has failed the write check. An average across the three checks would hide the failure that matters most. Repeat borderline cases to expose variation between runs.

For the vocabulary behind this setup, see [how Anthropic distinguishes a trial, a grader and an outcome](https://www.anthropic.com/research/demystifying-evals-for-ai-agents).

## Decide what earns a live shadow run

Here's an illustrative result. Of 40 eligible requests, a candidate routed 32 correctly, routed two incorrectly and deferred six. That's 32/34 correct among answered cases, and 34/40 coverage. If the two errors sent restricted requests to the wrong audience, the team has a reason to stop even with 94% accuracy among answers.

Compare those same cases with the current rules and with the time a person spends checking a suggestion. If cheap routing rules perform just as well, keep them. If the assistant helps with ambiguous free text, try that slice in live shadow and count disagreements by cause.

Give the deal-desk owner the decision about when a suggestion may first reach a rep.

For a small dataset and runnable scoring code, use the [ticket-agent evaluation lab](/blog/evaluate-ai-agent-performance-reliability). For the later step that turns an approved proposal into an action, use the [exact-decision approval guide](/blog/how-to-build-ai-agent-human-in-loop-approval).

## Related Guides

- [Evaluate a Ticket Agent: Dataset, Scoring Code and Failure Report](/blog/evaluate-ai-agent-performance-reliability)
- [The Forward Deployed Engineering Playbook: Discovery to Production](/blog/forward-deployed-engineering-playbook)
- [Green Node, Failed Tool: An n8n Guard for Agent Tool Calls](/blog/n8n-tool-call-guard-workflow)


