Hi HN, I built MemSeal, a deterministic containment layer on the write/recall boundary of agent long-term memory. Every entry gets a provenance envelope (source, derivation, trust tier) in a SHA-256 hash chain; deterministic policies W1–W5 decide what may be stored, and a trust-tiered recall path decides what may surface before an external send or irreversible action. No LLM in the policy — measurement used a local qwen2.5:14b, $0, 201 tests green. Honest gate: I self-report GATE 2 as FAIL on an independent, sealed holdout. On holdout v2 the security criteria pass — delayed-use 0.000, leaks 0 (22 → 0), injection 0.775 → 0.20 — but clean recall retention is 0.444 (bar 0.80; identical with no defense, on a small 18-marker sample, so not caused by the layer) and quarantine precision is 0.738 (bar 0.75; W1 had zero false positives on clean cases). Both holdouts, the fix rounds and the scoring adapters (all pre-registered and disclosed) are in reports/. Also measured as a wrapper around Mem0 (local Ollama + Qdrant): M8 secret leaks 4 → 0, with clean retention dipping 0.75 → 0.667, disclosed. The mem0 Feature Request is mem0ai/mem0#7870. Demo + dev dataset (120 cases): https://huggingface.co/spaces/NagaYu/memseal-demo and https://huggingface.co/datasets/NagaYu/memseal-bench. License is All Rights Reserved (evaluation reading only). Happy to take hard questions on the bench design.
Repository
NagaYu/memseal
MemSeal
NagaYu/memseal
MemSeal
A deterministic provenance-tracking containment layer on the write/recall boundary of AI agent long-term memory, using SHA-256 hash chains and trust-tiered policies.
Visit project- First shared
- Nov 9, 2026
- HN activity
- 11
Show HN@NagaYuNov 9, 2026
Show HN: MemSeal – provenance containment for agent long-term memory
Community