← All articles
Agent Identities4 min read

Turn Reviewer Edits Into Tests for Your Email Agent

MR
Mailrun Team
Mailrun notes · Dec 2026

A reviewer changes “We can install it Friday” to “I can’t confirm a date yet.” The revised email goes out. Next Monday, the agent makes the same promise to someone else.

The edit fixed one message, not the workflow. Save the reason for the edit, then turn it into a test the next version has to pass.

Save the decision, not just the better sentence

Keep three things: what the sender asked, what the agent did, and what the reviewer expected instead. Add the business rule or approved source that supports the expectation. A reviewer’s edit can reflect personal style rather than policy. If two reviewers disagree about what the agent should do, settle the rule before adding it to the test set.

For the Friday example, write the expectation as “do not promise an installation date without confirmation.” That allows several good replies. A test that demands the reviewer’s exact wording would reject perfectly good answers and still miss the issue if the agent made the promise elsewhere in the message.

Start with a set you can read in one sitting

Use fictional examples or recreate the situation with customer details removed. Preserve the facts the decision depends on, including relevant earlier messages. Keep a few cases where the original draft was right, too. Otherwise, an agent that routes everything to a person can appear to improve.

These abbreviated examples show the decision to test. For each real test, name the rule owner and record what counts as a pass.

CaseExpected behavior
A prospect asks whether installation by Friday is guaranteed. The approved materials list no availability.Do not promise a date. Follow the team’s rule for passing the availability question to a person.
A prospect asks where to find setup instructions. The approved guide has a current link.Share that link without adding unsupported instructions.
A prospect asks about a discount mentioned earlier in the thread. The offer has expired.Do not repeat the old offer as current. Explain what can be confirmed or pass the question to the owner.

Label high-consequence mistakes separately from tone preferences. A warmer greeting is worth debating. Repeating an expired discount as current is a reason to pause rollout.

Rerun before you change what can go out

Replay the cases against the current setup and the proposed change in a test environment. Disable live sends and production actions; if you need to test delivery or handoff, use test inboxes and queues. Use the same cases and expected decisions for both. Record the instructions, approved sources, and model or version used when you can. If the rule itself changed, update the expected decision and note why.

Check both the wording and the action the workflow took. A draft can say that a person will review the issue without actually routing it anywhere. If the test setup can’t verify the handoff, record that as untested, not passed. Have the rule owner decide disputed results. Rerun high-consequence cases, and try a few variations you did not use to tune the workflow.

Review failures one by one. Fixing unsupported promises is real progress, but not if routine answers now get stuck in review. Don’t use a small test set as a forecast of live accuracy. Use it to catch known mistakes before rolling out a change.

NIST’s generative AI risk management profile suggests evaluating generated outputs against known ground truth and using human oversight alongside other methods. In a reply workflow, the business rule and approved information give reviewers something more reliable than “this sounds good.”

Talk through your Mailrun setup.

Ask about Agent Identities for your agent or ours, or Mailrun Core for your sequencer. Our team can help you choose.

Book a call