Glossary · Drift Detection (Git-Anchored Invalidation)

Drift Detection (Git-Anchored Invalidation).

The codebase is the ground truth.

The short answer

Content-anchored invalidation binds memories to the code spans that justify them; when git history moves underneath, affected nodes are flagged LowConfidence or demoted.

Read the full answer

This solves the staleness problem decay alone can't: a highly-retrieved fact (your auth scheme, your employer) becomes confidently wrong the day reality changes. Drift checks run per session and at session end; anchors, not timestamps, decide.

Drift Detection (Git-Anchored Invalidation), working

Every memory has a half-life.

A tried approach fades in 23 days, a decision holds for 347, a synthesis lasts 693: the shipped decay rates.

Experience field · live
Day240

● strong○ fading◌ nearly gone· forgotten● just re-read● kept by use

One mark per memory node. Copper is a fresh re-read, which resets that node's clock.anvaya-mind-rs/crates/mind-types/src/config.rs

In Anvaya

How we implement it.

Drift Detection (Git-Anchored Invalidation)Anvaya's Invalidation service checks anchors against git diffs each session; drifted nodes drop confidence and stop packing until re-corroborated.

Questions

Asked about Drift Detection (Git-Anchored Invalidation).

Why isn't decay enough?

Decay handles low-relevance aging. Drift handles high-relevance wrongness, the dangerous case where the old fact keeps winning retrieval.

What is an anchor?

The file span, symbol, test, or commit a node cites as evidence. Move the span, trip the check.

How does this compare to editing CLAUDE.md?

Manual edits rely on humans noticing. Anchors notice automatically, every session, against git truth.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.