WRIT: Benchmark for persistent, usable AI memory — tests write integrity, not just retrieval
Repo markmhendrickson/writ, read from GitHub 7 h ago. markmhendrickson has not joined Take My Repo.
markmhendrickson/writ is a public repo on GitHub by markmhendrickson. WRIT: Benchmark for persistent, usable AI memory — tests write integrity, not just retrieval. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in TypeScript, has 9 stars and last changed on 2026-06-22. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Not what the model remembers -- what it can still do with it.
WRIT (Write Integrity Test) evaluates whether an AI system can maintain correct, usable, and evolving state over time across multi-session interactions. It measures memory as persistence, update correctness, constraint application, and reliability under noise and time gaps.
No widely used AI memory benchmark tests what happens to stored data after agents write to it. Retrieval metrics (recall@k, precision, latency) are necessary but not sufficient. WRIT tests the failure modes that retrieval benchmarks miss: silent drift, lost history, broken provenance, and undetectable corruption.
Inspired by No AI memory benchmark tests what actually breaks.
Included:
Excluded:
| Type | Description | Example |
|---|---|---|
| Explicit Facts | Clearly stated user information | "My email is mark@example.com" |
| Mutable Facts | Facts that change over time | "I work at Acme" -> "I work at Initech" |
| Latent Constraints | Implicit preferences and goals | User always declines dairy -> dairy allergy inferred |
| Work State | Ongoing plans, tasks, or workflows | Multi-step project with dependencies |
| Entities & Relationships | People, places, and linked objects | "Sarah is my cofounder. She lives in Berlin." |
| Non-Memory | Information that should not persist | Ephemeral instructions, one-time context |
Hallucination is model-level: the LLM generates content with no basis in its input. The retrieval was fine. The generation went wrong.
Memory corruption is infrastructure-level: the stored data is wrong. The model retrieves it faithfully. The answer looks correct because the retrieval was correct. What was retrieved had changed. Memory corruption passes every hallucination guardrail.
WRIT tests both, and requires systems to distinguish between them.
Each scenario consists of:
{
"scenario_id": "string",
"version": "1.0.0",
"category": "drift|temporal|provenance|constraint|entity|forgetting",
"sessions": [
{
"session_id": 1,
"timestamp": "ISO-8601",
"messages": [
{ "role": "user|assistant", "content": "string" }
]
}
],
"memory_events": [
{
"id": "string",
"type": "explicit|mutable|latent|entity|work_state|non_memory",
"value": "any",
"introduced_in": 1,
"updated_in": null,
"retracted_in": null,
"should_persist": true,
"previous_values": []
}
],
"probe": {
"session": 10,
"prompt": "string",
"required_capabilities": ["retrieval", "update_tracking", "constraint_application"],
"temporal_query": {
"as_of": "ISO-8601 | null",
"expect_current": true
},
"should_abstain": false
},
"ground_truth": {
"current_value": "any",
"value_history": [
{ "value": "any", "as_of": "ISO-8601", "source_session": 1 }
],
"provenance": {
"source_session": 1,
"source_message_index": 0,
"agent_or_user": "user"
}
},
"failure_modes": ["stale_memory", "missing_memory", "hallucinated_memory"]
}
| Category | Tests |
|---|---|
| Retrieval | Can the system find a stored fact? |
| Update Handling | When a fact changes, does the system use the current value? |
| History Preservation | Are previous values of a fact still accessible? |
| Temporal Replay | Can the system reconstruct state as of a past date? |
| Provenance | Can the system trace a fact to its source session and input? |
| Constraint Inference | Does the system apply implicit preferences correctly? |
| Multi-hop Reasoning | Can the system combine multiple stored facts? |
| Selective Forgetting | Does the system correctly drop non-persistent information? |
| Abstention | Does the system decline to answer when memory is insufficient? |
| Failure Mode | Description |
|---|---|
| Stale Memory | Using an outdated value when a newer one exists |
| Missing Memory | Failing to recall a fact that was stored |
| Incorrect Generalization | Over-applying a fact to wrong contexts |
| Memory Hallucination | Producing a "remembered" fact that was never stored |
| Constraint Violation | Acting against an inferred or explicit preference |
| Retrieval Miss | Fact exists but retrieval fails to surface it |
| Over-retention | Persisting information that should have been forgotten |
| False Confidence | High confidence on wrong or stale data |
| Silent Drift | Value changed with no record of the change |
| Provenance Loss | Fact exists but source cannot be traced |
| Metric | Definition |
|---|---|
| Recall Accuracy | Fraction of stored facts correctly retrieved on probe |
| Update Fidelity | Fraction of mutable facts reflecting the latest value |
| Drift Rate | Fraction of values that changed without explicit user correction |
| Detectability | For each drift, can the system show when, what, and the previous value? |
| Constraint Consistency | Fraction of probes where inferred constraints are correctly applied |
| Application Correctness | Fraction of probes where the correct action is taken given memory |
| Abstention Quality | Precision/recall of declining to answer when memory is insufficient |
| Metric | Definition |
|---|---|
| Stale Usage Rate | Fraction of probes returning outdated values |
| Hallucination Rate | Fraction of probes returning values never stored |
| Distractor Sensitivity | Performance degradation when near-duplicate distractors are present |
| Temporal Accuracy | Correctness of as-of-date state reconstruction |
| Provenance Completeness | Fraction of facts with traceable source chain |
| Over-retention Rate | Fraction of non-memory items that persist |
Each scenario is run in three modes to isolate failure attribution:
| Mode | Description | Purpose |
|---|---|---|
| No Memory | System receives only the probe, no prior context | Baseline: what the model invents |
| Native Memory | System uses its own memory after processing all sessions | Production behavior |
| Oracle Memory | System receives perfect ground-truth memory state | Ceiling: isolates model from memory failures |
Comparing modes:
Scenarios include:
Multi-dimensional scoring is required. A single aggregate score hides the failure modes that matter.
Example scorecard:
| Metric | Score |
|---|---|
| Recall Accuracy | 82% |
| Update Fidelity | 47% |
| Drift Rate | 12% |
| Detectability | 23% |
| Temporal Accuracy | 31% |
| Provenance Completeness | 15% |
| Constraint Consistency | 61% |
| Hallucination Rate | 18% |
| Abstention Quality | 22% |
The example above would indicate: retrieval works, but the system silently drifts, cannot reconstruct past state, and loses provenance. This is the profile the blog post describes.
Failures must be attributed to one of three layers:
| Layer | Responsibility | Example Failure |
|---|---|---|
| State Layer | Persistence, immutability, versioning | Value silently overwritten |
| Retrieval Layer | Finding relevant facts given a query | Correct value exists but not surfaced |
| Agent Policy Layer | Deciding what to do with retrieved facts | Correct value retrieved but wrong action taken |
Every widely used AI memory benchmark tests retrieval: can the system find a stored fact? None test write integrity: is the stored fact still correct after agents write to it?
| Benchmark | Scale | What it tests | What it misses |
|---|---|---|---|
| LoCoMo (ACL 2024) | ~16K tokens, 10 conversations, 32 sessions | Multi-session QA, event summarization, temporal reasoning | Static corpus. Facts don't change. No write operations. |
| LongMemEval (ICLR 2025) | 115K-1.5M tokens, 500 questions | Information extraction, multi-session reasoning, knowledge updates, abstention | Conversations are pre-generated. The system ingests but never writes back. No drift, no provenance, no corruption. |
| BEAM (ICLR 2026) | 128K-10M tokens, 2000 questions | Retrieval at scale where context-stuffing fails. Multi-domain, multi-hop. | Tests whether you can find the needle in 10M tokens. Does not test whether the needle changed since you stored it. |
| AMB (Vectorize, 2026) | Meta-benchmark aggregating LoCoMo, LongMemEval, LifeBench, PersonaMem | Multi-dataset accuracy, speed, cost comparison across memory systems | Inherits retrieval focus from component datasets. Acknowledges gaps: "none of the current datasets stress memory at scale, none test agentic settings where the agent decides what to retain." |
| WRIT | 5-20 sessions per scenario, temporal gaps of days to months | Write integrity: drift rate, detectability, temporal replay, provenance, update fidelity, selective forgetting | Higher cost per scenario. Partial human evaluation. Harder to standardize constraint inference scoring. |
All four established benchmarks share a design assumption: the corpus is static. The system ingests conversations, then answers questions about them. Facts do not change between ingestion and query. The system never writes to its own memory in a way that could corrupt previous facts.
This matches how memory systems were evaluated when context windows were small and retrieval was the hard problem. It does not match how memory systems fail in production, where agents write state across sessions, facts change, corrections overwrite previous values, and summarization merges records.
The DEV Community analysis "What Memory Benchmarks Don't Test" (March 2026) identifies three failure modes LoCoMo cannot catch: confident retrieval of stale beliefs, unresolved contradictions surfaced as equivalent facts, and absence of trust decay over time. WRIT tests all three.
WRIT does not replace retrieval benchmarks. Good retrieval is necessary. A system that cannot find stored facts will fail WRIT too (recall accuracy is a core metric).
The relationship:
| Retrieval benchmarks (LoCoMo, LongMemEval, BEAM) | WRIT | |
|---|---|---|
| Question | Can you find the right fact? | Is the fact you found still correct? |
| Failure mode | Retrieval miss | Silent corruption |
| Root cause | Embedding quality, chunk boundaries, attention degradation | Last-write-wins, summarization loss, provenance gaps |
| Architecture tested | Retrieval pipeline (semantic, BM25, graph, temporal) | State layer (immutability, versioning, provenance) |
| Scale threshold | Matters most at >1M tokens (BEAM's insight) | Matters at first conflicting write (~100K tokens) |
A system can score 95%+ on LongMemEval and fail catastrophically on WRIT if it overwrites values on update, loses history, or cannot trace provenance. WRIT catches the failures that retrieval benchmarks structurally cannot detect.
npm install
npm run benchmark -- --adapter neotoma --scenarios all
npm run benchmark -- --adapter neotoma --scenarios drift
npm run benchmark -- --adapter neotoma --scenarios temporal
npm run report
WRIT tests memory systems through adapters. Each adapter implements a standard interface:
interface MemoryAdapter {
name: string;
init(): Promise<void>;
processSession(session: Session): Promise<void>;
probe(prompt: string, options?: ProbeOptions): Promise<ProbeResult>;
getHistory(factId: string): Promise<FactHistory | null>;
getStateAsOf(factId: string, timestamp: string): Promise<any>;
getProvenance(factId: string): Promise<Provenance | null>;
reset(): Promise<void>;
}
Built-in adapters:
neotoma -- Tests Neotoma's observation-based memory with immutability and provenancebaseline -- Naive key-value store (mutable, no history) for comparisonMIT
markmhendrickson/writ is a public repo on GitHub by markmhendrickson. WRIT: Benchmark for persistent, usable AI memory — tests write integrity, not just retrieval.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-06-22. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Create an independent profile on the web within minutes with your Blockstack ID
Artists earn STX for their Bimba memes while curators earn Bimba Coin (BIM) and NFTs for their meme votes via Proof-of-Meme (PoM) mining 🐶 ⛏
Shared development processes and practices for consistent, high-quality software development