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.
Updated 2026-11-30
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
- Name the record and the fields the write should change.
- After the write, check observable evidence: a read-only API, database read, or export when available, a separate read-only view when safe, or the settled target fields and reference ID on single-session UIs.
- Compare each field you meant to change, and check that nothing extra was created.
- Return one of three results: confirmed, wrong, or not sure. A person checks the record before a "not sure" save is retried.
On 4 real upstream app upgrades (N = 60), unwrapped gpt-5.4 reported 15.0% (3/20) false completions and ASI programmatic skills silently cached 18.3% no-op runs, while OpenAdapt verified 42 of 60 runs and stopped the other 18 for review. See the full clean-room breakdown.
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.
uvx --python 3.12 openadapt@latest verify effect --helpRelated: How do you know an automation saved the record? · Your agent alone, or with OpenAdapt
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 API, database view, or export?
OpenAdapt checks the screen after the action settles (confirming the target field, cell, row, or reference number shows the expected state with no error), and re-reads the view or checks in a separate read-only session when the app supports it. Every receipt records how the check ran. If no check is configured at all, the result says the save wasn't checked.
Sources & cryptographic provenance (3 citations)
- OpenAdapt scoreboard, the agent's claims versus the read-back, run openemr_referral/2026-11-20-a (SCOREBOARD.md). 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.
- OpenAdapt scoreboard, the agent's claims versus the read-back (SCOREBOARD.md). 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.
- Clean-room 4-app real-upgrade UI-drift study (Gitea, Vikunja, Memos, Mealie; N = 60; 100-run amortized): OpenAdapt compiled + verified self-heal verified 42 of 60 runs and stopped 18 for review, with signed Ed25519 receipts on all 60. Silent errors in the other arms: 18.3% ASI programmatic synthesis (11/60), 15.0% unwrapped gpt-5.4 (3/20), and 3.3% Stagehand-style unverified self-heal (2/60, with 43 verified).
See it on your process
Bring a task your team types every day. We'll tell you whether it fits and what a test on your own system would cover.