plugins/ruflo-metaharness/commands/ruflo-metaharness.md
MetaHarness integration commands. All shell out to npx metaharness ...
or npx -p metaharness@latest harness ... via the _harness.mjs
shared helper; no library imports on ruflo's boot path.
harness score [--path .] [--alert-on-fit-below N] [--format table|json] -- 5-dimension readiness scorecard (harnessFit / compileConfidence / taskCoverage / toolSafety / memoryUsefulness + estCostPerRunUsd + scaffoldReady).
node plugins/ruflo-metaharness/scripts/score.mjs --path <dir>--alert-on-fit-below N exits 1 when harnessFit < N — CI regression gateharness genome [--path .] [--alert-on-risk-above 0.5] [--format table|json] -- 7-section repo readiness report (repo_type / agent_topology / risk_score / mcp_surface / test_confidence / publish_readiness).
node plugins/ruflo-metaharness/scripts/genome.mjs --path <dir>--alert-on-risk-above N exits 1 when risk_score > Nharness mcp-scan [--path .] [--fail-on low|medium|high] [--format table|json] -- Static security scan of .mcp/servers.json + .harness/claims.json. Reads only; no dispatch.
node plugins/ruflo-metaharness/scripts/mcp-scan.mjs --path <dir>highmcp-scan --fail-on high fails the build on any HIGH findingharness threat-model [--path .] [--fail-on clean|low|medium|high] [--format table|json] -- Enterprise-review threat model. Returns worst severity + categorized findings[].
node plugins/ruflo-metaharness/scripts/threat-model.mjs --path <dir>high; tightenable to medium for stricter gatesharness oia-audit [--path .] [--dry-run] [--alert-on-worst clean|low|medium|high] [--format table|json] -- Phase-2 composite worker (ADR-150). Bundles oia-manifest + threat-model + mcp-scan into one timestamped audit record, stores in metaharness-audit memory namespace.
node plugins/ruflo-metaharness/scripts/oia-audit.mjs--alert-on-worst high exits 1 when composite ≥ high — CI weekly drift gate--dry-run skips memory persistence — useful for local checksharness mint --name <id> --template <vertical:coding|minimal|…> [--host claude-code|codex|…] [--target /abs/path] [--confirm] [--format table|json] -- Scaffold a custom AI agent harness. DRY-RUN by default; --confirm required to write.
node plugins/ruflo-metaharness/scripts/mint.mjs --name <id> --template <id> --host <id>/tmp/ruflo-mint-<ts>-<name>/--confirm: prints dry-run plan, exits 0 without touching disk--confirm: shells npx metaharness new ... --yes