While testing my company-brain implementation, I found an alert that could be blocked by a permission check and still be marked delivered.
Someone looking at the delivery record could reasonably think the recipient had been notified, even though no alert had been sent.
I caught this during local testing. The fix was to keep the alert undelivered when permission was denied and record why it was blocked. A related review found that manual approval could also leave an alert marked approved even though publication had failed.
Check the record after the action
A test that checked only whether access was denied would have passed. I also needed to check the delivery status.
The test needed to follow the action through to its recorded result. A blocked send should leave the alert undelivered; a successful send should have delivery evidence. Approval records permission to attempt the action, not proof that it happened.
An agent using several tools may prepare a change, ask for approval, attempt it and report back. Each step has its own result, so I check which ones happened before calling the task complete.
A correct write is only one part of a phone call
In one saved round of clinic phone-agent tests, two calls using synthetic data each made exactly one rescheduling change and reached the end of the interaction. The same review still had open questions about what the caller heard, including spoken planning filler, the opening practice name, audio continuity and latency.
I’d check the appointment record to confirm the new time, inspect the action history for duplicate changes, and listen to the call to judge the conversation. Each check answers a different question.
A transcript alone doesn’t tell me whether the appointment moved. The appointment record doesn’t tell me whether the caller understood what happened.
Write down what a successful task requires
For a rescheduling agent, I’d check that:
- The right appointment moved to the authorized time.
- A retry didn’t move it again or create another appointment.
- A new caller had to complete their own verification.
- The spoken confirmation matched the appointment record.
- If the caller changed their mind, the agent explained what had already happened and handled the next request correctly.
That last case needs care. Cancelling before the change is made is different from asking to undo it afterward. The agent has to check the current record before saying what it can do.
Make sure the test can catch the mistake
When I can reproduce a failure, I keep it as a test case. I want to see the test fail on the broken behavior and pass after the fix. I also keep the version of the code and configuration used for the run.
For database updates and deliveries, I use application records or provider receipts. For conversation quality, I need someone to listen or observe. A model can help grade a conversation, but I wouldn’t use its opinion as proof that an external action happened.
Anthropic’s guide to agent evals explains the distinction between an agent’s transcript and the final state of the application. That’s a useful place to start when choosing what to check automatically and what needs another kind of review.
Build a feedback loop from confirmed failures
For each run, record the task, starting state, model, code version, tools and allowed number of attempts. Keep the trace and the final result together.
If a failure is confirmed, add it to the tests you rerun after changes. Keep some tasks out of that development set so you can check whether the fix helps on examples it wasn’t designed around.
With several agents, I also check what happened during the handoff. Did the worker use the latest decision? What did it change? Is the result still valid after another worker’s update? My technical notes describe the versioned state and checks I use for that.
I also count retries, review and repairs when measuring the cost of a completed task. If someone spends an hour correcting the result, that hour belongs in the measurement.