We stopped treating agent memory as storage and moved it into the behaviour-selection layer

Reddit r/AI_Agents Tools

Summary

A new middleware layer for agent memory called Collapse Aware AI moves retained-state influence into the behavior-selection layer, separating memory storage from memory influence. The system allows comparison between baseline and governed behavior, and offers inspectable intermediate states.

Most agent-memory systems I see follow roughly the same pattern: conversation → store/retrieve memory → inject it back into context → generate We took a different route. We built a middleware layer that sits between candidate behaviour generation and final selection. The rough architecture is: Input / current state ↓ Candidate behaviours ↓ Retained-state scoring ↓ Governor ↓ Final behaviour selection The underlying model can still produce its normal candidates. The middleware retains selected prior state, gives that information controlled weight, and then allows or suppresses its influence over later behaviour. That distinction matters because memory storage and memory influence are not the same problem. In our current build we can run the same scenario and candidate set under two conditions. In Studio mode the baseline candidate remains selected. Switch the governor to Governed mode and the underlying baseline can remain exactly the same, while retained-state weighting changes the final selected behaviour. So you can inspect both: what the underlying system preferred and what the governed system actually selected. It also gives us a clean off-state: remove the retained-state influence and behaviour returns toward the baseline rather than requiring the underlying model to be retrained. Other pieces we built around that include: retained state surviving restart; deterministic seed replay; explicit Studio/Governed comparison; candidate scoring and confidence; degraded/fallback reporting rather than silently pretending everything worked; an inspectable end-to-end middleware path. It is not another LLM, and it isn't intended to replace RAG/vector memory. The question we're exploring is narrower: Once an agent has remembered something, how should that retained information be allowed to affect what it does next? That seems to be a different architectural problem from simply deciding what to store and retrieve. We call the system Collapse Aware AI. The current Phase-1 Core Gold Build is working; we're now looking at real integrations in agents, simulations and other stateful systems. I'm interested in where people here think this layer belongs in an agent stack, or whether you think the entire selection-layer approach is solving the wrong problem...
Original Article

Similar Articles

Agent memory is not just RAG over user facts

Reddit r/AI_Agents

The article argues that simple RAG-based agent memory systems fail in production due to issues like stale preferences, missed keywords, and prompt injection, and advocates for a layered memory architecture with active selection, deterministic fallback, governance, and testing.

Agent Memory: An Anatomy

Hacker News Top

An exploration of the components and design decisions behind agent memory libraries, clarifying the gap between cognitive science terminology and engineering implementation.