Files
ruflo/v3/@claude-flow
ruv 32c469c230 feat(metaharness): MCP audit-list + audit-trend tools (iter 21)
Extends the iter-20 MCP tool registry from 5 to 7 tools. Brings the
iter-15/16 audit-observability scripts to the same first-class
mcp__claude-flow__metaharness_* surface as the static-analysis tools.

NEW MCP TOOLS

  mcp__claude-flow__metaharness_audit_list
    Enumerate timestamped records in the metaharness-audit memory
    namespace. Optional --limit (default 20) and --since (Nh|Nd|Nw|Nm)
    filters. Returns newest-first.

  mcp__claude-flow__metaharness_audit_trend
    Diff two oia-audit records (drift detection). Pulls baseline +
    current from the metaharness-audit namespace by memory key.
    Surfaces composite worst-severity delta, per-component status
    change, introduced/cleared findings. Optional alertOnWorsening
    sets tool.alert.triggered when composite worsened.

DISCOVERY WORKFLOW (agents)
  1. metaharness_audit_list → see which keys exist
  2. metaharness_audit_trend --baseline-key A --current-key B → diff
  3. Branch on result.data.delta.worst.verdict ('worsened'/'improved')

ADR-150 ARCHITECTURAL CONSTRAINTS (preserved)
- Both tools delegate to existing plugin scripts (audit-list.mjs,
  audit-trend.mjs) via the same subprocess locator as the other 5.
- Zero static @metaharness/* imports added (smoke step 17m still
  enforces this).
- Graceful degradation flows through audit-list/audit-trend's
  natural empty-namespace + missing-key paths.

Smoke step 17m broadened to require all 7 tool names. Smoke: 29
invariants total. Fleet: 33/33. tsc clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-06-16 14:59:46 -04:00
..