Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(metaharness): current subcommand list + mint anti-MCP guard (iter 73)

ruv96b436706f09
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index 1f6136f343..55598cb983 100755
--- a/plugins/ruflo-metaharness/scripts/smoke.sh
+++ b/plugins/ruflo-metaharness/scripts/smoke.sh
@@ -191,6 +191,21 @@ grep -q "execCli(\[\s*'-y'\s*,\s*'metaharness@latest'" "$F" 2>/dev/null || \
grep -q "cwd: opts" "$F" || miss="$miss no-cwd-passthrough"
[[ -z "$miss" ]] && ok || bad "$miss"
+step "17z36. CLI subcommand list current + mint anti-MCP guard (iter 73)"
+miss=""
+DISP="$ROOT/../../v3/@claude-flow/cli/src/commands/metaharness.ts"
+WRAPPER="$ROOT/../../v3/@claude-flow/cli/src/mcp-tools/metaharness-tools.ts"
+# iter-73 description string lists all 10 dispatchable subcommands
+for sub in score genome mcp-scan threat-model oia-audit audit-list audit-trend similarity drift-from-history mint; do
+ grep -q "${sub}" "$DISP" 2>/dev/null || miss="$miss subcommand-${sub}-not-listed"
+done
+# ANTI-MINT GUARD: mint is intentionally CLI-only per ADR-150 §Sandboxing
+# (writes to filesystem with explicit --confirm; never exposed via MCP).
+# A future iter that accidentally adds 'metaharness_mint' as an MCP tool
+# would violate the sandboxing rule. Negative grep fires the alarm.
+! grep -q "name: 'metaharness_mint'" "$WRAPPER" 2>/dev/null || miss="$miss mint-leaked-to-mcp"
+[[ -z "$miss" ]] && ok || bad "$miss"
+
step "17z35. parseMcpScanText edge-case unit tests (iter 72)"
miss=""
F="$ROOT/scripts/test-similarity.mjs"
diff --git a/v3/@claude-flow/cli/src/commands/metaharness.ts b/v3/@claude-flow/cli/src/commands/metaharness.ts
index c14e29a619..e1e29b261a 100644
--- a/v3/@claude-flow/cli/src/commands/metaharness.ts
+++ b/v3/@claude-flow/cli/src/commands/metaharness.ts
@@ -112,7 +112,10 @@ export const metaharnessCommand: Command = {
options: [
{
name: 'subcommand',
- description: 'One of: score | genome | mcp-scan | threat-model | mint',
+ // iter 73 — list reflects all 10 dispatchable subcommands (was
+ // stale at the iter-3 list of 5). Keep this synced with the
+ // SUBCOMMANDS map above.
+ description: 'One of: score | genome | mcp-scan | threat-model | oia-audit | audit-list | audit-trend | similarity | drift-from-history | mint',
type: 'string' as const,
},
],