Back to feed
Dev.to
Dev.to
7/3/2026
One prompt, three memories: building a memory-governance agent with Qwen

One prompt, three memories: building a memory-governance agent with Qwen

Short summary

When a care assistant runs for months, bigger context windows don't solve the real problem—governance does. This hackathon project layers a deterministic policy (ERINYS) between memory storage and the LLM, sorting memories into four states: selected (trusted), conflicted (contradictory), demoted (stale), and blocked (sensitive). Demo testing with Qwen prevented three synthetic PII identifiers from leaking while raw memory failed.

  • Deterministic memory governance prevents PII leakage without sacrificing response detail
  • Four-state policy filters context before LLM generation, making decisions auditable and reproducible
  • Content-agnostic architecture reusable across domains, demonstrated with Qwen on healthcare use case

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more