Feature Request: Persistent cross-session memory backend for guardrails context
Problem
NeMo Guardrails currently supports conversation memory within a single session. Agents operating across multiple sessions lose context between interactions. There is no built-in mechanism for remembering user preferences across sessions, learning from past guardrail violations, or sharing context between agents.
Proposed Solution
A pluggable persistent memory backend interface:
class PersistentMemoryStore:
async def remember(self, key: str, content: dict, importance: float) -> str
async def recall(self, query: str, top_k: int = 5) -> list[dict]
async def forget(self, key: str) -> None
async def decay(self) -> None # Temporal forgetting
Reference Implementation
Mimir (https://github.com/Perseus-Computing-LLC/mimir) provides encrypted persistent memory with decay curves, hybrid search, and conflict detection via 36+ MCP tools.
Integration Points
- Remember past guardrail activations to avoid repeated warnings
- Store user-specific safety preferences across sessions
- Share safety context between distributed agents
- Persistent, encrypted audit trail of all guardrail decisions
I'm happy to contribute a PR with the interface + Mimir backend if there's interest.
Feature Request: Persistent cross-session memory backend for guardrails context
Problem
NeMo Guardrails currently supports conversation memory within a single session. Agents operating across multiple sessions lose context between interactions. There is no built-in mechanism for remembering user preferences across sessions, learning from past guardrail violations, or sharing context between agents.
Proposed Solution
A pluggable persistent memory backend interface:
Reference Implementation
Mimir (https://github.com/Perseus-Computing-LLC/mimir) provides encrypted persistent memory with decay curves, hybrid search, and conflict detection via 36+ MCP tools.
Integration Points
I'm happy to contribute a PR with the interface + Mimir backend if there's interest.