What to build
Automatically demote code_verified claims when their code anchors stop
resolving. Greplica already detects drift via greplica graph audit anchors
(tree-sitter file#symbol resolution), but detection is read-only — a claim
whose anchored symbol was renamed, moved, or deleted stays labeled
code_verified and keeps surfacing in graph context as verified truth. This
wires the existing detector to a write action so stale claims are demoted to
truth: unknown (non-destructively) with an invalidation event recorded. The
check is deterministic — the compiler is the judge, no LLM needed.
Acceptance criteria
Blocked by
None - can start immediately.
What to build
Automatically demote
code_verifiedclaims when their code anchors stopresolving. Greplica already detects drift via
greplica graph audit anchors(tree-sitter
file#symbolresolution), but detection is read-only — a claimwhose anchored symbol was renamed, moved, or deleted stays labeled
code_verifiedand keeps surfacing ingraph contextas verified truth. Thiswires the existing detector to a write action so stale claims are demoted to
truth: unknown(non-destructively) with an invalidation event recorded. Thecheck is deterministic — the compiler is the judge, no LLM needed.
Acceptance criteria
greplica graph audit anchors --invalidate) demotesdrifted
code_verifiedclaims totruth: unknownvia the existingsupersession model (history preserved, nothing deleted).
status, and the memory-commit /
git_commit_shawhere it drifted.graph audit anchorsstays report-only (no behavior change withoutthe flag);
unsupported_languageanchors are never auto-demoted.graph contextno longer returns demoted claims ascode_verified.fixture#oldSymbol, renamethe symbol, assert the claim becomes
unknown+ event recorded + originalretained in history.
Blocked by
None - can start immediately.