Knowledge plane / Tier 1 / Phase 2

Memory & State

What should the system remember?

Decide deliberately what persists beyond a task — working, episodic, semantic and procedural memory — with an explicit write policy, retention limits and poisoning controls.

01 / WHAT THIS BOUNDARY OWNS
  • Working memory within a task and session
  • Episodic memory: what happened before, per user and per tenant
  • Semantic memory: durable facts learned about the domain and the user
  • Procedural memory: how this organisation does a task
  • Write policy — what earns a place in memory — plus TTL and forgetting
  • Redaction, tenant partitioning and the right to erasure
02 / INTEGRATION POINTS
03 / ENTERPRISE ACCOUNTABILITY

AI Engineering, with Privacy

  • Head of AI Engineering — accountable owner
  • ML engineer — recall quality and write policy
  • Backend engineer — stores, partitioning, TTL enforcement
  • Data privacy officer — retention, erasure, minimisation

Architectural recommendation, not a research finding.

04 / WHAT DONE LOOKS LIKE
Pilot may use session-scoped memory only. Long-lived cross-session memory should not ship before poisoning controls and erasure both work.

Signals to watch

  • Recall usefulness — memory hits that improved the outcome
  • Write rate and store growth per tenant
  • TTL adherence and orphaned record count
  • Cross-tenant assertions (target zero)
  • Erasure completion time
05 / FAILURE MODES
  1. Memory poisoning: a hostile fact written once and trusted forever (OWASP ASI06)
  2. Unbounded growth degrading recall precision and cost
  3. Cross-tenant leakage through a shared store or a careless key
  4. A wrong memory causing the same error repeatedly, with confidence
  5. Erasure requests that cannot be honoured across derived indexes
06 / REFERENCE LANDSCAPE

Tool and standards snapshot · last reviewed approximately mid-2026

Open source

  • Mem0
  • Zep
  • Letta (MemGPT)
  • LangMem
  • Redis
  • PostgreSQL with pgvector
  • Qdrant

Managed

  • Managed vector stores with tenancy controls
  • Agent platforms with built-in memory services

Standards

  • CoALA as the reference model for memory types
  • GDPR erasure and retention obligations
ARCHITECTURE NOTE

Memory is where an agent stops being stateless and starts accumulating liability. A write policy is a governance artefact, not an implementation detail.