vestige/crates/vestige-mcp/src/tools
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
..
backfill.rs feat(mcp): wire backfill tool — Retroactive Salience Backfill, live on real storage 2026-06-27 16:57:00 -05:00
changelog.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
codebase_unified.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
composed_graph.rs Fix ComposedGraph clippy warnings 2026-06-18 16:08:51 -05:00
context.rs feat(v2.0.5): Intentional Amnesia — active forgetting via top-down inhibitory control 2026-04-14 17:30:30 -05:00
contradictions.rs v2.1.2 Honest Memory 2026-05-06 02:22:24 -05:00
cross_reference.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
dedup.rs v2.1.2 Honest Memory 2026-05-06 02:22:24 -05:00
dream.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
explore.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
feedback.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
graph.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
health.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
importance.rs feat(v2.0.5): Intentional Amnesia — active forgetting via top-down inhibitory control 2026-04-14 17:30:30 -05:00
intention_unified.rs fix(audit): sanitize graph error paths + expose intention status field 2026-04-19 17:02:36 -05:00
maintenance.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
memory_states.rs feat(v2.0.5): Intentional Amnesia — active forgetting via top-down inhibitory control 2026-04-14 17:30:30 -05:00
memory_unified.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
merge.rs fix: make windows release build and add manual rerun path 2026-06-18 23:39:38 -05:00
mod.rs feat(mcp): wire backfill tool — Retroactive Salience Backfill, live on real storage 2026-06-27 16:57:00 -05:00
predict.rs Release v2.1.0 2026-04-27 13:20:51 -05:00
restore.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
review.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
search_unified.rs feat(connectors): add Redmine and source filters (#57) 2026-06-19 02:21:25 -05:00
session_context.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
smart_ingest.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
source_sync.rs feat(connectors): add Redmine and source filters (#57) 2026-06-19 02:21:25 -05:00
suppress.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00
tagging.rs feat(v2.0.5): Intentional Amnesia — active forgetting via top-down inhibitory control 2026-04-14 17:30:30 -05:00
timeline.rs feat(connectors): external-source connector layer + GitHub Issues (#57) 2026-06-19 01:21:59 -05:00