AI agent evaluation guide · Updated 2026-06-27

Agent Memory Evaluation Checklist: Recall Accuracy, Tenant Isolation, Retention Policy, Audit Evidence, and Task Correctness

A practical checklist for evaluating codebase memory, knowledge graphs, skills directories, MCP memory tools, and agent recall before trusting them in production workflows.

Agent memory is useful only when it improves task correctness without leaking data, inventing facts, or preserving stale context. A memory tool that recalls the wrong file, mixes tenants, hides retention rules, or cannot explain why it retrieved something becomes a liability.

This checklist connects codebase-memory-mcp, Cognee, skills directories, cybersecurity skill catalogs, SkillSpector, and repository-understanding tools into a single evaluation loop. The goal is to test memory as a controlled system: what it stores, what it retrieves, why it retrieves it, how it is audited, and when it must forget.

RepoDaily verdict

Do not judge agent memory by a single impressive recall demo. Evaluate it with seeded facts, stale facts, forbidden facts, similar tenants, task outcome checks, retention review, and audit evidence. Good memory improves task correctness while remaining explainable, scoped, deletable, and reviewable.

RepoDaily fixture evidence: simulated memory retrieval test

This is not a benchmark of Cognee, codebase-memory-mcp, Claude Code, or any single AI product. RepoDaily created a small local memory fixture to check whether the evaluation checklist catches current recall, stale facts, tenant/repo isolation, forbidden secret-like memory, deletion behavior, and source evidence.

Evidence itemFixture resultWhy it mattersLimitation
Simulated memory cases8/8 simulated memory scenarios returned the expected result.Validates the checklist logic, not a specific memory product.Deterministic local fixture only; no live memory service is connected.
Current recall with sourceCurrent auth and policy facts are retrieved only when tenant and repo scope match.Memory is useful only when recall is scoped and source-backed.Uses local markdown facts rather than a real vector database or graph store.
Stale fact handlingA legacy auth note is marked stale and paired with current source evidence.Prevents agents from confidently applying old architecture notes.Freshness is modeled with explicit status flags in the fixture.
Tenant and repo isolationTenant-b and demo-web facts are not retrieved from a tenant-a demo-api query scope.Cross-tenant or cross-repo retrieval is a high-severity memory failure.The fixture models isolation rules; it does not test a hosted multi-tenant product.
Forbidden and deleted memoryFake secret-like memory is denied, and deleted notes are filtered before retrieval.Memory must have both safety boundaries and a deletion path.Uses fake values only; no real secrets or customer data.
  1. Read this section as a RepoDaily self-test of the memory evaluation checklist, not as a score for any vendor or model.
  2. The test supports the page recommendation: evaluate memory with seeded facts, stale facts, tenant/repo isolation, deletion behavior, and source evidence before trusting it in engineering work.
  3. The evidence is intentionally small and local, so the result is a reproducible sanity check rather than a full memory-product benchmark.

Quick matrix

Memory surfaceWhat to testGood signalFailure signal
Codebase memoryRecall files, symbols, decisions, and prior fixes for a scoped repo taskReferences correct files and helps produce a smaller correct diffConfuses old branch, wrong module, or unrelated repo
Knowledge graphEntity relationships, provenance, updates, and deletion behaviorCan show where a relationship came from and when it changedReturns graph facts without source or freshness
Skills directoryTask selection, instruction boundaries, and versioned skill contentChooses relevant skill and follows allowed scopeSelects overbroad skill or ignores repo policy
Security skill memorySensitive examples, exploit patterns, and defensive contextKeeps training examples separated from live secretsBlends demo credentials with real environment data
Repository understandingDocument summarization, source-grounding, and gap detectionCites source files and admits uncertaintyInvents architecture or hides missing evidence
MCP memory toolTool scope, persistence, tenant boundary, and deletion pathMemory is scoped, logged, and removableOne workspace can retrieve another workspace’s context

Agent memory scorecard

Score memory with controlled probes before enabling it for real engineering work.

Dimension0 points1 point2 pointsReviewer question
Recall accuracyWrong or vague recallPartially correctCorrect with source evidenceWhat source supports this memory?
Task impactNo better than no memoryHelps planning onlyImproves final task correctnessDid memory improve the diff or decision?
FreshnessStale facts trustedSome update handlingDetects stale or superseded contextHow does memory expire or update?
IsolationScopes unclearSome separationTenant/repo/user boundaries testedCould another repo retrieve this?
RetentionKeeps everythingManual cleanupRetention and deletion policy existsWhen must this be forgotten?
AuditabilityNo traceLogs partial retrievalsStores retrieval reason, source, and reviewer evidenceCan we explain why memory was used?

30-minute agent memory evaluation test plan

Run this before enabling a memory layer for coding agents, MCP tools, or team workflows.

0–5 min: boundary definition

Name repo, user/tenant, allowed sources, forbidden data, retention window, and owner.

Success checkThe memory scope is explicit before testing.

5–10 min: seed probes

Add true, stale, near-duplicate, and forbidden facts plus one similar-tenant fact.

Success checkThe test can detect accuracy, freshness, and isolation failures.

10–18 min: task probes

Run file lookup, prior decision recall, bug-fix planning, skill selection, and source-grounded summary tasks.

Success checkMemory-backed outputs include source evidence and improve at least one task.

18–24 min: isolation and deletion

Test cross-tenant recall and delete one memory item, then rerun retrieval.

Success checkNo tenant bleed occurs and deletion affects future retrieval.

24–30 min: allowlist decision

Decide which task classes can use memory, which need approval, and what logs must be retained.

Success checkMemory rollout is scoped by evidence, not demo confidence.

Evaluation flow

  1. Define the memory boundary first: repo, user, team, tenant, task type, allowed sources, forbidden sources, and retention window.
  2. Seed a test set with correct facts, stale facts, near-duplicate facts, forbidden facts, and facts from a similar but separate tenant or repository.
  3. Run task probes: bug fix, file lookup, policy recall, prior decision recall, security warning, and summarization with explicit source requirements.
  4. Compare outputs against a no-memory baseline and a source-only baseline to see whether memory improves correctness or only confidence.
  5. Inspect retrieval logs, source links, timestamps, deletion behavior, and cross-tenant isolation after every probe.
  6. Approve memory only for the task classes where it improves outcome quality without violating scope, retention, or audit rules.

Scenario table

ScenarioEvaluation probePass signal
Codebase onboardingAsk agent where a feature is implemented and what files are risky to touchMemory points to correct files and distinguishes current code from old notes
Repeated bug fixAsk agent to recall a previous fix pattern and apply it to a new issueAgent cites prior pattern but verifies current code before changing it
Stale architecture noteSeed an old module name and ask for current architectureAgent marks old fact stale and cites current files
Tenant isolationCreate similar facts in two workspaces and ask from one workspace onlyMemory never retrieves the other workspace’s context
Sensitive data boundaryAdd forbidden secret-like strings to the environment or fixturesMemory refuses or redacts and does not persist forbidden data
Skill selectionProvide several possible skills for a taskAgent selects the narrow useful skill and explains why
Security assessmentUse SkillSpector-style skill review or cybersecurity skill promptsMemory helps review capability without mixing training examples and live secrets

Memory risk checklist

Confident stale recall

Memory can preserve old decisions after code changes. Freshness checks matter as much as recall accuracy.

Tenant bleed

Cross-workspace or cross-customer retrieval is a high-severity failure even when the recalled fact is technically correct.

Unreviewed persistence

If users do not know what is stored and how to delete it, memory becomes hidden state.

Source-free answers

Memory that cannot cite or explain provenance is hard to debug and easy to overtrust.

Skill overreach

A broad skill can cause the agent to act outside the task or repository policy.

Security example leakage

Training examples, exploit snippets, demo credentials, and live secrets must stay separated.

Evaluation implementation patterns

Seeded memory probes

Create known true, stale, forbidden, and near-duplicate facts so recall can be scored objectively.

No-memory baseline

Run the same task without memory to prove the memory layer improves outcome quality.

Source-required answers

Require file paths, timestamps, source snippets, or retrieval IDs for memory-backed claims.

Isolation harness

Test similar facts across tenants, repos, users, and branches before enabling shared memory.

Retention drill

Delete a memory item and verify it disappears from retrieval, logs, and follow-up task behavior.

Task-class allowlist

Enable memory first for low-risk tasks such as navigation, summarization, and docs before code changes or security work.

FAQ

Short answers for teams evaluating agent memory.

What is the most important memory metric?

Task correctness with source evidence. Recall is useful only if it improves the final decision or diff without violating scope.

How do we test tenant isolation?

Seed similar facts in two workspaces, query from one, and verify the other workspace is never retrieved or referenced.

Should memory be enabled for all agent tasks?

No. Start with low-risk tasks such as navigation and summarization, then expand only after accuracy, freshness, deletion, and audit behavior are proven.

What should memory logs include?

At minimum: query, retrieved source, timestamp, scope, tool, task owner, and whether the memory influenced the final output.

Related radar

AI Agent Tools Radar

Related RepoDaily briefs

Sources

  1. codebase-memory-mcp
  2. Cognee
  3. skills
  4. Anthropic Cybersecurity Skills
  5. SkillSpector
  6. Understand-Anything
  7. Model Context Protocol documentation
  8. Claude Code MCP docs

Feedback

Did this page help you make a decision?

Anonymous feedback helps RepoDaily improve what is actually useful.

Report outdated or missing evidence