vestige/crates/vestige-core/src
Sam Valladares 796d9474a8 feat(mcp): wire backfill tool — Retroactive Salience Backfill, live on real storage
The MCP surface for memory-with-hindsight. When a failure memory exists, the
`backfill` tool reaches backward across the real store and promotes the quiet
earlier cause that a vector search structurally cannot surface (not similar to
the failure, only causally upstream via a shared entity).

- tools/backfill.rs: builds BackfillCandidates from real KnowledgeNodes (entities
  from tags + heuristic env-var/path/identifier extraction), computes real cosine
  similarity from stored embeddings (to PROVE the cause ranks low on similarity),
  runs the core RetroactiveBackfill, and promotes surfaced causes via
  storage.promote_memory. Auto-finds the latest failure, or takes failure_id;
  manual=true forces; promote=false for a dry run.
- registered + dispatched in server.rs (35 tools now); tool-list test updated.
- storage: added pub set_created_at (backdate created_at) so the demo/test can
  plant a dated cause.

LIVE RECEIPT: live_backfill_surfaces_root_cause_through_storage ingests a
3-day-old API_TIMEOUT env-var note + a semantically-similar 500-error distractor
+ a crash into a REAL SQLite store, runs the backfill tool, and asserts it
surfaces + promotes the env-var note by the shared API_TIMEOUT entity (the root
cause RAG misses). clippy clean; 522 core + 453 mcp tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-27 16:57:00 -05:00
..
advanced feat(core): Retroactive Salience Backfill — memory with hindsight 2026-06-27 16:35:57 -05:00
codebase fix(clippy): Rust 1.95 compatibility — sort_by_key + collapsible_match 2026-04-19 21:11:49 -05:00
connectors feat(connectors): add Redmine and source filters (#57) 2026-06-19 02:21:25 -05:00
consolidation feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
embedder Make fastembed smoke tests tolerate unavailable model 2026-06-18 20:29:02 -05:00
embeddings Harden old CPU fallback paths (#71) 2026-06-18 21:54:04 -05:00
fsrs feat(v2.0.5): Intentional Amnesia — active forgetting via top-down inhibitory control 2026-04-14 17:30:30 -05:00
memory test(temporal): swarm-authored coverage for TemporalRange from/until/all/duration/default 2026-06-27 13:29:53 -05:00
neuroscience chore: remove 3,091 LOC of orphan code + fix ghost env-var docs 2026-04-23 03:18:53 -05:00
search feat(v2.0.5): Intentional Amnesia — active forgetting via top-down inhibitory control 2026-04-14 17:30:30 -05:00
storage feat(mcp): wire backfill tool — Retroactive Salience Backfill, live on real storage 2026-06-27 16:57:00 -05:00
trace fix(blackbox): address review blockers B1–B7 + re-capture proof bundle 2026-06-22 18:46:14 -05:00
config.rs fix: make windows release build and add manual rerun path 2026-06-18 23:39:38 -05:00
fts.rs v2.1.2 Honest Memory 2026-05-06 02:22:24 -05:00
lib.rs feat(blackbox): Agent Black Box + Receipts + risk-gated Memory PRs 2026-06-22 17:06:35 -05:00