mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Iter 53 shipped drift-from-history as a CLI subcommand. Iter 54 exposes
it as the 9th metaharness MCP tool so agents can call it directly
without shelling out.
WHAT SHIPPED
1. v3/@claude-flow/cli/src/mcp-tools/metaharness-tools.ts
- New tool metaharness_drift_from_history
- Input schema: path / baselineSince / threshold / dryRun
- Description includes MCP_SUCCESS_SEMANTIC footnote (iter 46 pattern)
- Tool count: 8 → 9
2. plugins/ruflo-metaharness/scripts/test-mcp-tools.mjs
- tools.length === 9 (was 8)
- expectedNames includes metaharness_drift_from_history
- Phase 4 positive-case: data is an object, baseline.key string,
alert.threshold numeric — OR no-audit-history graceful error
- Phase 3 timeout extended to 90s for this tool (chains 3 subprocesses)
- Summary line: "All 8 MCP tools" → "All 9 MCP tools"
3. CLAUDE.md
- CLI subcommand listing: `ruflo metaharness drift-from-history`
- MCP tool listing: `mcp__claude-flow__metaharness_drift_from_history`
4. plugins/ruflo-metaharness/scripts/smoke.sh
- Step 17z17 anchors the new MCP tool (name + script-dispatch + inputs)
- Step 17o updated: 8 → 9 expected tools + count assertion `=== 9`
- CLAUDE.md grep guards for both subcommand + MCP tool
VERIFIED END-TO-END
$ node test-mcp-tools.mjs
✓ 9 tools registered (got 9)
✓ metaharness_drift_from_history registered
✓ drift_from_history positive: data is an object
✓ drift_from_history: baseline.key is a string
✓ drift_from_history: alert.threshold echoed numerically
115 passed, 0 failed
✓ All 9 MCP tools satisfy the runtime contract.
GATES THIS ITER
runtime: 103 → 115 MCP test assertions
tsc: clean rebuild
smoke: 17z17 step gating new tool surface
ITER 53-54 ARC
53 — drift-from-history as CLI subcommand + skill (composes 3 primitives)
54 — same surface exposed as MCP tool ◀ this iter
The dep is now end-to-end surfaced: production module, CLI skill, CLI
subcommand, dispatcher entry, MCP tool, doctor health check, smoke gates,
CI gates, real-data roundtrip test, CLAUDE.md documentation, unit tests,
performance benchmark, upstream-issue contributions. 13 surfaces deep.
Co-Authored-By: RuFlo <ruv@ruv.net>