Back to Vault
Agent Memory
Tier 3

MemGuard

View on GitHub Fetched 2026-07-02 3 related flows

Summary

An AI agent memory validation platform that continuously verifies whether facts stored in agent memory are still true - guarding writes and re-validating stored knowledge instead of trusting it forever.

Key Takeaways

  • Validate memory at write time AND re-verify on a schedule
  • Stale 'facts' are a memory-poisoning vector, not just a quality issue
  • Treat memory writes like untrusted user input

Reliability Note

Active open-source project; patterns generalize beyond its stack.

Flows informed by this source

3
Flows category icon
Memory & Context

Memory Write Policies

Decide what gets remembered: write gates, provenance, confidence, and validation - because memory quality is set at write time.

01Write the memorability criteria
02Attach provenance and confidence
03Detect and resolve contradictions

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate
Flows category icon
Agent QA & Security

Guard Memory Writes Against Injection

Stop poisoned data from becoming persistent agent beliefs: validate, attribute, and quarantine memory writes as untrusted input.

01Make writes source-aware
02Validate content before persistence
03Quarantine and require corroboration

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-120 minutesAdvanced
Flows category icon
Agent QA & Security

Prompt Injection Defense Checklist

Systematically defend your agent against prompt injection: trust boundaries, content isolation, and defense-in-depth that assumes injection will happen.

01Map trust boundaries
02Isolate and label untrusted content
03Separate authority from content

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-150 minutesAdvanced

Made with Emergent