π 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
feat(doctor): MetaHarness check in standard health-check flow (ADR-150 iter 14)
ruv625493062e8d
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.shindex 5ebe6375f1..f7b9111171 100755--- a/plugins/ruflo-metaharness/scripts/smoke.sh+++ b/plugins/ruflo-metaharness/scripts/smoke.sh@@ -170,6 +170,22 @@ if (!od.metaharness) { console.error('missing metaharness in optionalDependencieif (j.dependencies && j.dependencies.metaharness) { console.error('metaharness leaked into dependencies'); process.exit(1); }" 2>/dev/null && ok || bad "ruflo wrapper missing metaharness optionalDep"+step "17h. doctor integration β checkMetaharness in standard health checks (iter 14)"+F="$ROOT/../../v3/@claude-flow/cli/src/commands/doctor.ts"+miss=""+[[ -f "$F" ]] || miss="$miss missing-file"+# The check function exists, with ADR-150 anchor+grep -q "async function checkMetaharness" "$F" || miss="$miss no-check-function"+grep -q "ADR-150" "$F" || miss="$miss no-adr-anchor"+# Registered in BOTH the allChecks array AND the componentMap+grep -q "checkMetaharness, // ADR-150" "$F" || miss="$miss not-in-allChecks"+grep -q "'metaharness': checkMetaharness" "$F" || miss="$miss not-in-componentMap"+# Help text mentions it+grep -q "metaharness)" "$F" || miss="$miss not-in-help-text"+# Graceful: never throws; returns warn (not fail) on missing+grep -q "status: 'warn'" "$F" || miss="$miss no-graceful-warn"+[[ -z "$miss" ]] && ok || bad "$miss"+step "17g. parallel-pipeline e2e integration test (ADR-150 β iter 13)"F="$ROOT/scripts/test-parallel-pipeline.mjs"miss=""diff --git a/v3/@claude-flow/cli/src/commands/doctor.ts b/v3/@claude-flow/cli/src/commands/doctor.tsindex 485d7f2ec6..6fa69d13bb 100644--- a/v3/@claude-flow/cli/src/commands/doctor.ts+++ b/v3/@claude-flow/cli/src/commands/doctor.ts@@ -552,6 +552,37 @@ async function checkVersionFreshness(): Promise<HealthCheck> {}// Check Claude Code CLI (async with proper env inheritance)+// ADR-150 β surface MetaHarness availability + harnessFit score in+// the standard ruflo doctor flow. Graceful degradation: when metaharness+// is not installed (no network, optionalDep skipped), the check returns+// `warn` with a hint instead of `fail` β ruflo continues to function.+async function checkMetaharness(): Promise<HealthCheck> {+ try {+ const version = await runCommand('npx -y metaharness@latest --version 2>&1', 15000);+ // metaharness emits multi-line stdout; parse a version-shaped line.+ const versionMatch = version.match(/(\d+\.\d+\.\d+)/);+ if (!versionMatch) {+ return {+ name: 'MetaHarness (ADR-150)',+ status: 'warn',+ message: 'Installed but version-string not parseable; integration may still work',+ };+ }+ return {+ name: 'MetaHarness (ADR-150)',+ status: 'pass',+ message: `v${versionMatch[1]} β run \`npx ruflo metaharness score\` for the full scorecard`,+ };+ } catch {+ return {+ name: 'MetaHarness (ADR-150)',+ status: 'warn',+ message: 'Not installed β `npx ruflo metaharness *` commands will degrade gracefully',+ fix: 'npm install --include=optional # to enable the metaharness optional dep',+ };+ }+}+async function checkClaudeCode(): Promise<HealthCheck> {try {const version = await runCommand('claude --version');@@ -741,7 +772,7 @@ export const doctorCommand: Command = {{name: 'component',short: 'c',- description: 'Check specific component (version, node, npm, config, daemon, memory, api, git, mcp, claude, disk, typescript)',+ description: 'Check specific component (version, node, npm, config, daemon, memory, api, git, mcp, claude, disk, typescript, agentic-flow, encryption, federation, metaharness)',type: 'string'},{@@ -789,6 +820,7 @@ export const doctorCommand: Command = {checkAgenticFlow,checkEncryptionAtRest, // ADR-096 Phase 5checkFederationBreaker, // ADR-097 Phase 4+ checkMetaharness, // ADR-150 β MetaHarness optional integration];const componentMap: Record<string, () => Promise<HealthCheck>> = {@@ -809,6 +841,7 @@ export const doctorCommand: Command = {'agentic-flow': checkAgenticFlow,'encryption': checkEncryptionAtRest, // ADR-096 Phase 5'federation': checkFederationBreaker, // ADR-097 Phase 4+ 'metaharness': checkMetaharness, // ADR-150 β MetaHarness optional integration};let checksToRun = allChecks;