Skip to Main Content

Agents don't only hallucinate — they confidently act on facts that stopped being true. Ask an on-call agent who's on call for payments and it pages Marcus Webb, who rotated off six days ago. The stale memory wasn't a marginal retrieval hit: it outscored every fresh result, 0.94 to 0.92. Relevance and truth are different axes, and vector search only measures one of them. StaleGate is a runtime freshness gate between an agent and its memory. Freshness is enforced inside the MongoDB Atlas Vector Search pre-filter, so expired memories never enter the ANN candidate set. Every read returns FRESH, STALE or UNKNOWN. When the expected cost of acting on a stale fact exceeds the cost of checking, StaleGate re-queries an authoritative record, rewrites the memory, and learns that source's real lifetime from the outcome — four sources sharing one 3-day prior learned lifetimes ranging from 18 hours to 36 days. MongoDB Atlas stores four kinds of state: agent memories with embeddings and provenance, learned per-source decay statistics, the records revalidation queries, and LangGraph checkpoints. Fireworks supplies both embeddings and chat inference. LangGraph orchestrates plan → recall → revalidate → act, checkpointed to MongoDB so an interrupted run resumes instead of starting cold. Across 16 changed-fact queries, wrong answers fell from 100% to 0%, with 94% corrected and 100% recall on immutable controls. The sources of truth are mocked MongoDB collections rather than live PagerDuty/GitHub integrations, and the evaluation set is synthetic.

Team

sudhan30

Placement

Participant

More from The Persistent Context Sprint Hackathon | Live at MongoDB .Local Build Fest

Amelia The problem. Live captions get the words right, but words are the easy part. In a group conversation, deaf and hard-of-hearing people lose everything…

Amelia for the Deaf project preview

Tracecase finds the exact environment that makes a customer's bug happen. - Problem: A customer reports that a feature is broken, yet the code review and…

TraceCase project preview

You never have to give claude context ever again. Your conversations with claude become skills and the moment it notices that you are performing the same task…

www.loom.com/…

Tusk — the SRE that never forgets. Experienced human SREs can solve problems quickly because they've seen the problem before. Tusk enables your AI SRE to do…

Tusk project preview

A persistent, reloadable project brain, where memories are both the candidates and the decentralized lenses an AI swarm judges through to establish project…

Galen Goodwick project preview

Groundhog is a game agent that dies, remembers, and comes back smarter. An LLM agent crawls a little dungeon we rigged so that a memoryless run reliably…

Groundhog project preview