Tech4Biz Wiki

agmi: the conformance suite for tamper evidence in AI agent memory

Someone edits an agent's memory behind its back; agmi checks whether the store notices.

agmi
Class Conformance test suite
Language Python 3.10 or newer
Licence MIT
Repository published September 2026
Latest release 0.7.0, 11 November 2026
Install pip install agent-memory-integrity (the import and command names stay agmi)
Author Yasha Khandelwal
Record DOI 10.5281/zenodo.22860886
Source GitHub
Website agentmemoryintegrity.org

Someone edits an agent's memory behind its back; agmi checks whether the store notices.

An AI agent that keeps memory, or resumes from a checkpoint, believes what its store gives back. If that store is a file, a database or a hosted service, anyone with write access to it can change what the agent believes next, and a store that serves the edited record as genuine gives the agent no way to tell.

agmi measures that one property. A store that refuses or reports an edit passes. A store that serves it as genuine does not. agmi never concludes that a store noticed because the content came back different; the store has to say so itself.

How one measurement works

Every result comes from the same four steps, and the tool's own API is used on both sides of the edit.

  1. The runner writes five records into a fresh store through the tool's normal API.
  2. An attack edits the backing store underneath the tool, without going through it.
  3. The store is reopened and read back through the tool's normal API.
  4. The tool's own answer is recorded: it raised, refused or reported the problem, or it served the edited store as normal.

Two controls run before every verdict. A reload with no edit must still verify, and a landed guard proves the edit changed exactly what the attack intended. If either fails, the cell is marked error or n/a and never counts as a pass.

The ten edits

Edit Name What the attacker does
T1 Content tamper Changes the content of one record in the middle
T2 Tail truncation Deletes the newest two records
T3 Middle deletion Removes one record from the middle
T4 Reordering Swaps the content of two records
T5 Forged insertion Inserts a fabricated record after the newest one
T6 Cross-context replay Puts another owner's genuine content into the victim's slot
T7 Rollback replay Puts the oldest record's content into the newest slot
T8 Metadata tamper Changes a record's metadata and leaves its content alone
T9 Snapshot rollback Restores an older complete copy of the store after one more genuine record was written
T10 Erasure resurrection Lets the tool erase a record through its own API, then restores the copy from before the erasure

T1 to T8 are the edits defined in the Internet-Draft listed below. T6, T7 and T9 use only bytes the store itself wrote, in the wrong place or at the wrong time, which is why they separate encryption from integrity.

Verdicts

Each cell in the scorecard carries one of five words.

Verdict Meaning
rejected The store refused the edit on its read path
reported The store's separate audit call named the edit
accepted The store served the edit as genuine
n/a Not measured, with the reason in the cell. Not a pass
error The edit did not land as intended, so the harness is at fault and not the store

What it has measured

As of 27 November 2026 the README reports 29 stores. Twelve of them make no integrity claim, and those served every applicable edit as genuine, including all three official LangGraph checkpointers. The other seventeen do make a claim, and the scorecard shows exactly where each one holds and where it stops. The MythologIQ Agent Memory reference runtime was the first row to refuse all eight record-level edits on the read path, and Surgical DevOps G7 was the first to refuse all nine, including the whole-store rollback.

Two outside projects use the suite. memory-blackbox runs the agmi GitHub Action in its CI, after its maintainer fixed a restart gap that agmi reported. MythologIQ's durability tests pin agmi as their accepted external evidence for T1 to T9, and reproduce it in their own CI.

The memory agent

The scorecard measures a tool against fixed attacks. The memory agent works the other way: pointed at one target, it searches the attacks, channels and mutations for the first that gets a false memory served as trusted, proves each landing, and reports only what it proved, with the steps to reproduce it. An authorisation gate runs before any target is touched and fails closed, so it will not run against a target the caller does not control.

Standards

The eight-edit method, the verdict rules and the control cases were sent to the IETF BMWG mailing list on 24 September 2026 as proposed text for metric 5.4.7 of draft-han-bmwg-agent-security-benchmark. The same method is now an individual Internet-Draft, draft-khandelwal-bpm-agent-memory-integrity-00, last updated on 1 November 2026 and expiring on 5 May 2027. It replaces the earlier BMWG-named draft, renamed after the BPM working group was formed. It is an individual submission and has not been adopted by a working group.

Roadmap

Planned items are intentions, not commitments.

Release Scope Status
0.7.0 T10 erasure resurrection, the scorecard as a W3C v0.1 per-check report, new rows, a site built from the results file Released
0.7.1 Hosted stores measured through their front door only (Zep, Letta Cloud), and Graphiti Next
Phase 3 Live targets over HTTP behind the authorisation gate, and an obedience check that proves the agent acted on the poison Planned
Phase 4 The memory agent driving content-only attacks through a real model Planned
0.9 Deserialization safety and a reference integrity layer Planned
1.0 Stable adapter interface, published conformance levels, vendor badges, and hosted runs through AuditTrax Labs with the open benchmark staying free Planned

Limits

agmi is measured on Linux and macOS with Python 3.11 and 3.12. Windows is untested. Fixtures are in English. Rows are single deterministic runs at the version shown. The method paper describes release 0.5 and the at-rest edits only.

See also

Sources