# How do you check what an AI agent actually saved?

> After the agent's write, read the record back through a path the agent didn't use, such as an API or a database read, and compare every field it meant to change. The agent's report and the success screen can both say "done" when the save failed. OpenAdapt runs this read-back for a write made by any agent or script.

- Canonical: https://openadapt.ai/guides/check-what-an-ai-agent-saved
- Updated: 2026-11-23

## Why the agent's own report isn't enough

A computer-use agent decides it is done from what it sees on the screen. A screen can show "Saved" before the server answers, or after a save that went to the wrong record. The agent has nothing on the screen to notice.

| Test | Bad saves the agent reported as done | Bad saves the read-back flagged | Clean saves confirmed |
| --- | --- | --- | --- |
| MockMed, our test app, with the save broken 6 ways | 30 of 30 | 30 of 30 | 10 of 10 |
| OpenEMR test copy, with faults in its database | 28 of 30 | 30 of 30 | 5 of 5 |

The agent was Claude Sonnet 5.5 with computer use, on synthetic records. Neither test had a false alarm. On the other 2 OpenEMR bad saves, the agent said it saved the chart but couldn't see the whole email field; it noticed none of the 30 failures.

## How to check a write

1. Name the record and the fields the write should change.
2. After the write, read that record another way: an API, a database read or a report, not the screen the agent typed on.
3. Compare each field you meant to change, and check that nothing extra was created.
4. Return one of three results: confirmed, wrong, or not sure. A person checks the record before a "not sure" save is retried.

In our fault test, a check that looked only at the screen passed 54 of the 72 wrong records as correct, while a full database read passed none of them. [How the test worked](https://openadapt.ai/guides/know-rpa-bot-saved-the-record#numbers).

## Where OpenAdapt fits

OpenAdapt reads the record before and after a write, against a description of the change that you own, and returns confirmed, wrong or not sure. It never returns an unchecked success. The check is a fixed comparison and makes no model calls.

### Technical details

`openadapt verify effect` judges one write by any agent or script against the system of record (REST, FHIR, SQL or GraphQL). The engine command is `openadapt-flow verify-run`. The outcome is `CONFIRMED`, `REFUTED` or `UNCERTAIN`; a confirmed write comes with a receipt.

From Python, `openadapt_flow.verifier` gives `begin_write` and `verify_write` for a write in any agent framework. `openadapt verify serve` offers the same check to any MCP client as `verify_begin`, `verify_check` and `verify_recheck`.

```bash
uvx --python 3.12 openadapt@latest verify effect --help
```

Related: [How do you know an automation saved the record?](https://openadapt.ai/guides/know-rpa-bot-saved-the-record) · [Your agent alone, or with OpenAdapt](https://openadapt.ai/compare/computer-use-agents)

## Questions

### Can the agent check its own work?

Not reliably. In the two tests above, the agent reported 58 of the 60 bad saves as done and noticed none of the failures. The check has to read the record by another path.

### Does the check need an AI model?

No. It reads the record and compares fields, so it gives the same answer every time and makes no model calls.

### What if the system has no second way to read the record?

Then the result says the save wasn't checked, instead of calling it done.

## Sources

1. OpenAdapt scoreboard, the agent's claims versus the read-back, run openemr_referral/2026-11-20-a ([SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#the-agents-claims-versus-the-read-back)). Claude Sonnet 5.5 did the entry alone with computer use, on a local OpenEMR test copy with synthetic patients. We injected faults only in the test database, in these ways: a field blanked, a value changed, a duplicate chart, a save that never landed, another chart deleted, and another chart edited. Each fault had 5 items, and there were 5 clean items as well. By the scoreboard's success rule, the agent reported 28 of the 30 bad saves as done; on the other 2 it said it saved the chart but couldn't see the whole email field. It noticed none of the 30 failures. verify-run (openadapt-flow 3.3.0) caught 30 of the 30 injected bad saves. It confirmed 5 of 5 clean saves, with 0 false alarms. One more item, where the saved chart didn't hold the email the agent typed so the fault never fired, was also not reported as verified. A second run, openemr_referral/heldout-2026-11-20-a, used 6 different faults with three existing charts: verify-run caught 30 of 30 injected bad saves, plus 1 bad save the agent made itself on a clean-save item (31 of 31 in all), and confirmed 5 of 5 clean saves with 0 false alarms; one fault-not-reached item was also not reported as verified; in that run the agent itself reported the wrong date of birth in all 5 items where the fault moved it. The runs weren't timed.
2. OpenAdapt scoreboard, the agent's claims versus the read-back ([SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#the-agents-claims-versus-the-read-back)). Claude Sonnet 5.5 with computer use did a task on MockMed, our synthetic test app, whose server broke the save in 6 ways, 5 times each. The agent reported all 30 bad saves as done. The read-back flagged all 30 and confirmed all 10 clean saves, with no false alarms.
3. OpenAdapt fault test, openadapt-flow benchmark/effect_e2e, 2026: faults injected into our own engine on a test record system, 90 runs; 72 left the record wrong. A check of the screen alone passed 54 of those 72; a read-back over the app's REST API passed 9 of them; the full database read caught all 72. A coverage test over a fixed fault list, not a real-world error rate.
