Module 10 · cognitive feature
Memory that survives the session
A standard LLM forgets everything between sessions and rots context inside one. The FDE deploys tiers instead: a scratchpad for mid-task reasoning, episodic vector memory for what happened, and semantic graph memory for what is durably true about the organisation. Shrink the scratchpad budget below and watch what gets evicted.
$ python -m fde_toolkit memory
Short-term scratchpad
Mid-task ReAct reasoning. Cleared when the task ends.
- keep
scratch.calcSum of last 24h transfers by CUST-4412 = 27,400 USD.13t - keep
scratch.alertAlert AML-4471 open: 15,000 USD to GB counterparty.13t - keep
scratch.stepChecked sanctions list — no hit on beneficiary BEN-7781.14t
Long-term episodic (vector)
Past sessions, decisions and their outcomes. Retrieved by similarity.
- keep
ep.s2.decisionSession 2: escalation goes to the named MLRO, never to a shared mailbox.18t - keep
ep.s1.decisionSession 1: VP Compliance rejected auto-closing alerts below 1,000 USD; wants them sampled instead.25t - keep
ep.s1.frictionSession 1: the client's Oracle extract times out past 500k rows; use the incremental job.22t - keep
ep.s2.patternSession 2: three false positives all came from payroll batch narratives.18t
Long-term semantic (graph)
Durable organisational facts and preferences. Retrieved by traversal.
- keep
sem.policy.dualAny agent-initiated payment above 10,000 USD requires dual human approval.19t - keep
sem.graph.ownerCUST-4412 is a subsidiary of NMC Health PLC; exposure is measured at group level.20t - keep
sem.pref.toneOrganisation preference: findings are written for a regulator, not a data scientist.21t
Recall
importance-weighted similarity
- episodic
ep.s1.decisionSession 1: VP Compliance rejected auto-closing alerts below 1,000 USD; wants them sampled instead.
Context rot
scratchpad-only agent, 12 turns
- turn 11.00
- turn 21.00
- turn 31.00
- turn 41.00
- turn 51.00
- turn 61.00
- turn 71.00
- turn 80.88
- turn 90.78
- turn 100.70
- turn 110.64
- turn 120.58
Recall is the share of earlier turns still inside the window. Once it drops, the agent is not reasoning badly — it simply cannot see what it decided ten minutes ago. That is the argument for tiers, in one chart.