agmiAgent Memory Integrity GitHub

Ecosystem

agmi is built to be the measurement other people's work points at: the standards text, the vendor threads, the maintainer-contributed rows and the assessments all hang off the same results file.

Where agmi sits agmithe measurementopen, MIT, reproducible StandardsIETF BMWG 5.4.7 method textOWASP agentic security, ASI06 VendorsLangGraph, Letta, Mem0, inspeximusissues, fixes, re-measured rows Contributorsmaintainers submit adapters and rowswith the control cases as tests Assessmentshosted runs and vendor badgesthrough AudiTrax Labs, from 1.0
The measurement in the middle; standards, vendors, contributors and assessments around it. The open benchmark stays free. Hosted runs and badges are the paid layer, from 1.0.

Standards

IETF BMWG
China Mobile's draft-han-bmwg-agent-security-benchmark defines metric 5.4.7, Protection of Memory Data Integrity, with no test method. The eight edits, verdict words, control cases and scoring rule were sent to the working group list on 24 September 2026 as proposed text for a new Section 6.6, with measured verdicts. The draft's authors replied on 28 September: they agree the current "manually tamper" wording is too vague and that read-path versus audit-only detection belongs in the metric, and they track the proposal as issue #1 on their repository for the next revision. The method is also filed as a companion Internet-Draft, draft-khandelwal-bmwg-agent-memory-integrity-00 (26 September 2026). agmi is the reference implementation. Archive.
OWASP
The front-door attacks map to the agentic security initiative's memory and context poisoning category (ASI06). agmi is offered there as the way to test it.

Companion benchmarks

MemoryStackBench
MemoryStackBench evaluates memory-stack behavior through supported APIs, including recall, integrity, and continuity. agmi measures the store underneath the same APIs: what it serves back after an edit it never saw. The two are listed on each other's pages by agreement with the maintainer, October 2026.

Stores measured

LangGraph
SqliteSaver, PostgresSaver, RedisSaver and SqliteStore. Issue #9004 (encrypted checkpointer replay) was raised from these measurements and a community fix verified with the suite. Its remaining gap, head deletion, is #9099; a community reference implementation of a caller-supplied head anchor was verified with the suite on the sync and async paths, and the two fixes measured together close both.
OpenAI Agents SDK
SQLiteSession. All eight edits accepted; #5176 was closed with a documentation change stating the session store trusts its storage.
CrewAI
Long-term memory on the LanceDB dataset it moved to in 1.15. All nine of the edits it has been measured on served, T10 not yet measured; LanceDB versioning only delays an edit until the next reopen.
Vertex AI Memory Bank
Google's managed store, the first on the board, measured through the data-plane API with the attacker a principal holding roles/aiplatform.user outside the agent's session. Seven edits served; reorder and whole-store rollback have no API and score n/a. A revision is kept per change and readable on audit; the read path does not consult it.
LlamaIndex
Memory on the SQLAlchemy chat store. All eight edits accepted; #23246 is open, with a community documentation note in review.
langgraph-ledger
A hash-chained JSONL ledger beside any LangGraph checkpointer, with verify_thread() re-hashing every logged checkpoint against the store. Reports a changed, removed, swapped, cross-thread or rolled-back checkpoint on audit; serves a forged checkpoint the ledger never logged (it becomes the head on resume and the audit does not look for it) and a metadata edit (the digest covers the checkpoint, not its metadata). The read path is the inner checkpointer, unchanged.
memory-blackbox
A signed, hash-chained provenance ledger with a watcher for memory files such as MEMORY.md. Measured as two rows: with the agent process alive across the edit, every one of the eight edits changes the file's digest and the next scan records it as an out-of-band write; with the agent restarted between the edit and the scan, 0.1.0 served all eight because the new process baselined from the file. Reported privately and fixed the same day in 0.1.1 (PR #31): the ledger's last write is now the baseline, and both rows report all eight. The first fix in a store driven by the suite; the maintainer runs the agmi Action in CI. The ledger itself is out of the suite's scope and was not edited.
Atelya Attest
A keyed hash chain over the agent's memory op-log, with an optional head checkpoint in a ledger kept under separate control. Measured as two rows. The chain alone reports a changed, deleted, swapped, forged, cross-context or rolled-back entry and a relabelled one, and serves tail truncation, since a shorter chain is still a valid chain. With the anchored head, the truncation is reported too: all eight. The README says exactly this, and the measurement agrees.
CONTINUUM
A hash-chained, append-only event log an agent recovers from, with verify_events() naming each violation by kind and sequence, and continuum attest signing the chain head. Measured as two rows: the chain alone reports seven of eight and serves tail truncation; with the signed head and the check attest-verify performs, all eight. The second package whose README boundary and measurement agree.
AtMem
Auditable memory engine on one SQLite file with a hash-chained audit log and an externally anchored checkpoint. Measured as two rows on 2.3.8: the chain alone, and the chain with the checkpoint kept outside the store. From 2.3.8 each memory record is bound to the integrity commitment its creation event carries, so verify() reports all eight record-level edits on both rows: a changed, swapped, cross-subject, rolled-back or relabelled record no longer matches its commitment, a deleted one is missing from the chain, and a forged one has no creation event. The records the agent reads through list() are still served until verify() runs. A whole-store rollback is reported only by the checkpoint, which holds while that file stays outside the attacker's reach and is updated after every genuine write. On 2.3.7 the eight record-level edits were served on both rows. Remeasured by the maintainer in PR #7 and reproduced independently from the published wheel before publication.
agent-memory
The MythologIQ Agent Memory reference runtime (Apache-2.0, installed from the repository at commit f2aef57). Every canonical SQLite row is hashed into a bucketed Merkle digest, the governance log is chained, and a sidecar beside the database binds the configuration to the last committed generation. open() fails closed on any mismatch, and the agent cannot read a fact without open(), so all eight edits are refused on the read path. Two things the eight do not measure, recorded in the pinned tests: the digests are unkeyed SHA-256, so an attacker who recomputes them is not caught by the digests alone; and a rollback of the whole state directory, database and sidecar together, is served as genuine, because the generation anchor sits beside the store it anchors. The second is the stale-snapshot case the Agent Memory maintainers' own durability work (#571) names, and the shape of the ninth edit planned for the suite.
acrf-memory-guard
Per-entry HMAC checked on read (the ACRF-04 pattern). The first product on the scorecard that claims tamper evidence: refuses a changed, forged or relabelled entry on the read path, and serves a missing, swapped, cross-user or rolled-back genuine entry, since the signature covers one entry's bytes and not its slot. Its own README says rollback is out of scope; the measurement agrees and adds the other four.
Letta
Block checkpoint history and archival memory.
Mem0
Local Qdrant store, at rest and front door.
inspeximus
Five rows: default, receipts on (two attacker positions), and two defended trust-root configurations contributed by its maintainer with the control cases as tests. The maintainer also found the T6 no-op in the suite's own harness (issue #5), which is why control C3 exists.

Contributors

Rows come from maintainers as well as from the suite's author. The inspeximus defended rows were submitted by the tool's maintainer, DanceNitra, with the two control cases from the issue thread written as tests, and reproduced independently before publication. He also read the harness closely enough to find that one of its edits was not landing, which became control C3. That is the pattern for every future vendor row: an adapter, the measured cells, the controls as tests, an independent reproduction, and the harness open to the same scrutiny as the tools it measures.

Assessments

The open benchmark is free and stays free. From 1.0, AudiTrax Labs offers hosted runs against a vendor's own deployment, conformance levels, and a badge that links back to the public row, so a claim of tamper evidence is a link to a measurement.

Conformance levels, proposed for 1.0

A level is a claim a vendor can make and a reader can check against the row it links to. Levels are earned on the read path: a store that only finds the edit on a separate audit call stays at L0 with its cells marked reported. This is the proposed ladder; it is published at 1.0 once two vendors have earned a level above L0.

LevelNameWhat it requiresRows there today
L0MeasuredThe store has a published row. Any verdicts.LangGraph SqliteSaver, LangGraph PostgresSaver, LangGraph RedisSaver, OpenAI Agents SDK SQLiteSession, LlamaIndex Memory, SQLAlchemy chat store, CrewAI long-term memory, LanceDB dataset, Vertex AI Agent Engine Memory Bank, managed store, edits through the data-plane API, OpenClaw agent memory, MEMORY.md read through memory_get, Hermes Agent memory, MEMORY.md read through the system-prompt snapshot, Letta block checkpoint history, Mem0 local Qdrant store, inspeximus, receipts off (default), inspeximus, receipts on, attacker holds the store directory, inspeximus, receipts on, attacker also holds the config home, langgraph-ledger over SqliteSaver, hash-chained ledger, verify_thread audit, memory-blackbox memory.md watcher, agent process alive, scan audit, memory-blackbox memory.md watcher, agent restarted before the scan, scan audit, Atelya Attest, keyed hash chain, verify_chain audit, Atelya Attest, keyed hash chain plus anchored head, verify and consistency audit, CONTINUUM event log, hash chain, verify_events audit, CONTINUUM event log, hash chain plus Ed25519-signed head, attest-verify audit, AtMem 2.3.8, audit chain alone, verify() audit, AtMem 2.3.8, audit chain with an external checkpoint outside the attacker-controlled store directory, verify() audit, acrf-memory-guard, per-entry HMAC over a JSON store
L1Bytes boundRejects on the read path every edit that changes or adds bytes: T1, T3, T5.OpenFang model, tip-persistence fix
L2Sequence boundAlso rejects deletion, reordering and rollback: T2, T4, T7.none yet
L3Context boundAlso rejects a record moved between owners and a metadata change: T6, T8.Agent Memory reference runtime, SQLite canonical substrate, bucketed row digests, fail-closed open
L4Head anchored off the storeAlso rejects a rollback of the whole store to an older genuine copy: T9.none yet

Roadmap

PhaseScopeStatus
0.1 to 0.5Attack catalogue, adapter interface, five at-rest edits on LangGraph, Letta and Mem0; inspeximus rows from its maintainer, reproduced independently; preprint, software DOI, PyPIdone
Phase 1Three attacker channels (external, laundered, agent-laundered), signed writes, attacker level on every celldone
Phase 2Mutation engine on every attacker write; update poisoning and metadata poisoning; twelve-column front-door scorecard on four real storesdone
Memory agent v1Hunt loop over six attacks, three channels and mutations; proof and reproduction script per finding; authorisation gate that fails closeddone
0.6.0Eight at-rest edits T1 to T8 with control cases and read/audit detection points, matching the proposed IETF 5.4.7 method; agmi-check and the GitHub Actiondone
0.6.1Control C3, the landed guard: every edit proves it landed as intended before a verdict; OpenAI Agents SDK and LlamaIndex rows; companion Internet-Draft fileddone
0.6.2memory-blackbox restart row, before and after the maintainer's fix (0.1.1); every scorecard row links to the code it measuresdone
0.6.3T9 snapshot rollback with its own landed control, measured on every at-rest row; the Agent Memory reference runtime row, accepted by its maintainers as external integrity evidence (#639, #650); the CrewAI row; the memory agent's storage-side hunt and composition engine, which found and closed a truncate-then-write launder in the reference storedone
0.6.4Managed stores, measured through the data-plane API because a managed store has no other door: Google Vertex AI Memory Bank, the first on the board, done; AWS Bedrock AgentCore Memory nextnext
0.7Hosted stores measured through their front door only: Zep, Letta Cloud; Graphiti; the inspeximus T6 cells flipped to real verdicts when its maintainer's fix landsplanned
Phase 3Live targets over HTTP (MCP memory servers, deployed LangGraph and Letta) behind the authorisation gate; obedience oracle that proves the agent acted on the poison; ingestion marking measured per frameworkplanned
Phase 4Memory agent driving content-only attacks through a real model, same proof disciplineplanned
0.9Deserialization safety, and a reference integrity layer (a hash chain over checkpoint ids) offered upstream as an optional modeplanned
1.0Stable adapter interface, published conformance levels, vendor badges, monthly report cadence; hosted runs through AudiTrax Labs, the open benchmark freeplanned