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

ci(metaharness): metaharness-real-data CI gate (iter 48 β€” locks iter-47 fix)

ruv42721b84ba22
diff --git a/.github/workflows/metaharness-ci.yml b/.github/workflows/metaharness-ci.yml
index 97ccfe5a26..a853924d91 100644
--- a/.github/workflows/metaharness-ci.yml
+++ b/.github/workflows/metaharness-ci.yml
@@ -320,3 +320,51 @@ jobs:
echo "$OUT" | grep -q "similarity" || { echo "FAIL: help text dropped similarity"; exit 1; }
echo "βœ“ help text references similarity subcommand"
+ metaharness-real-data:
+ # iter 48 β€” the load-bearing integration gate at PR time. Unlike
+ # `similarity-tests` (which runs WITHOUT @metaharness/* to prove
+ # architectural constraint #1), this job INSTALLS the upstream dep
+ # and exercises the real CLI β†’ fingerprint β†’ similarity chain.
+ #
+ # This is the only CI surface that would have caught the iter-38
+ # schema-shape bug fixed in iter 47. Every other test uses hand-built
+ # fixtures that happened to have the correct shape.
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+
+ - name: Pre-flight β€” confirm metaharness CLI is reachable via npx
+ # The roundtrip test uses npx -y metaharness@latest, which fetches
+ # the package on first call. Warm the cache here so the test's
+ # 90s timeout doesn't expire on cold start.
+ run: |
+ npx -y metaharness@latest --version
+ echo "βœ“ metaharness CLI warm"
+
+ - name: End-to-end pipeline roundtrip (iter 47)
+ # Must exit 0. Exit 2 means metaharness wasn't reachable (we just
+ # warmed it, so that would be infra failure). Exit 1 means the
+ # roundtrip's load-bearing self-match invariant (overall===1)
+ # failed β€” that's the schema-shape regression iter 47 fixed.
+ run: |
+ node plugins/ruflo-metaharness/scripts/test-pipeline-roundtrip.mjs
+ echo "βœ“ full ADR-152 Β§3.1 pipeline works with real metaharness output"
+
+ - name: Cross-check β€” same path also produces valid score JSON via dispatcher
+ # Hits the iter-36 score subcommand via the iter-42-fixed dispatcher
+ # to confirm the CLI surface stays aligned with what oia-audit
+ # consumes internally.
+ run: |
+ set -e
+ cd v3/@claude-flow/cli
+ npm install --no-audit --no-fund --ignore-scripts --silent
+ npm run build
+ cd ../../../
+ OUT=$(node v3/@claude-flow/cli/bin/cli.js metaharness score --path . --format json)
+ echo "$OUT" | grep -q '"harnessFit"' || { echo "FAIL: score dispatcher dropped harnessFit"; exit 1; }
+ echo "βœ“ score dispatcher emits the expected metaharness schema"
+
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index 7aca197c3f..03e3bdeb84 100755
--- a/plugins/ruflo-metaharness/scripts/smoke.sh
+++ b/plugins/ruflo-metaharness/scripts/smoke.sh
@@ -191,6 +191,20 @@ 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 "17z11. CI gate runs roundtrip with real metaharness installed (iter 48)"
+miss=""
+F="$ROOT/../../.github/workflows/metaharness-ci.yml"
+[[ -f "$F" ]] || miss="$miss workflow-missing"
+# The new job exists
+grep -q "^ metaharness-real-data:" "$F" 2>/dev/null || miss="$miss no-real-data-job"
+# Pre-flight warms the cache
+grep -q "Pre-flight β€” confirm metaharness CLI is reachable" "$F" 2>/dev/null || miss="$miss no-preflight"
+# Invokes the iter-47 roundtrip
+grep -q "test-pipeline-roundtrip.mjs" "$F" 2>/dev/null || miss="$miss no-roundtrip-step"
+# Cross-check via dispatcher
+grep -q "score dispatcher emits the expected metaharness schema" "$F" 2>/dev/null || miss="$miss no-cross-check"
+[[ -z "$miss" ]] && ok || bad "$miss"
+
step "17z10. end-to-end pipeline roundtrip (iter 47 β€” caught iter-38 schema bug)"
F="$ROOT/scripts/test-pipeline-roundtrip.mjs"
miss=""