vestige/crates
Sam Valladares fa87186724 feat(mcp): consolidate maintenance/lifecycle into maintain (7→1)
Tool Consolidation v2.2.0, Layer 1 commit 5/6. Advertised tools 21 → 15.

Folds consolidate + dream + gc + importance_score + backup + export + restore
into one action-dispatched tool:

  action = consolidate | dream | gc | importance_score | backup | export | restore

- Thin facade forwards the same args envelope to each existing handler; the
  `action` discriminator is cloned out before the envelope is moved into a
  callee. No handler uses deny_unknown_fields, so per-action params validate.
- Safety defaults preserved (all handler-internal): gc dry_run=true by default,
  restore path-confinement, export traversal guard. Verified by
  test_maintain_actions_and_safety (gc dry-run + restore missing-path error).
- Events preserved end-to-end:
  - Pre-dispatch Started events (ConsolidationStarted/DreamStarted) re-emitted
    in the `maintain` arm keyed on action.
  - emit_tool_event normalizes the `maintain` name to its effective action, so
    the existing ConsolidationCompleted/DreamCompleted/ImportanceScored arms
    fire unchanged — no duplicated emit logic.
- All 7 old names remain hidden warn!+redirect aliases (removed v2.3.0), keeping
  their own pre-emits.
- Tests: count 21→15, 7 negatives, new dispatch/safety test.

Gates: cargo test --workspace, cargo clippy -D warnings — clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 18:16:16 -05:00
..
vestige-core fix(core): re-enable usearch fp16lib to unbreak Windows MSVC build (#94) 2026-06-22 01:19:40 -05:00
vestige-mcp feat(mcp): consolidate maintenance/lifecycle into maintain (7→1) 2026-06-28 18:16:16 -05:00