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): drift-from-history dispatcher CI cross-check (iter 98)

ruvfccee2848603
diff --git a/.github/workflows/metaharness-ci.yml b/.github/workflows/metaharness-ci.yml
index 92a0ca0a0e..7624de7ee0 100644
--- a/.github/workflows/metaharness-ci.yml
+++ b/.github/workflows/metaharness-ci.yml
@@ -434,3 +434,29 @@ jobs:
echo "$OUT" | grep -q '"harnessFit"' || { echo "FAIL: score dispatcher dropped harnessFit"; exit 1; }
echo "✓ score dispatcher emits the expected metaharness schema"
+ - name: Drift-from-history dispatcher round-trip with --baseline-file (iter 98)
+ # Exercises the iter-66/67 fast-path THROUGH the iter-42-fixed
+ # CLI dispatcher. Catches:
+ # - iter-42 dispatcher flag-drop regression
+ # - iter-67 --baseline-file synth-listResult drift
+ # - iter-95 timing.path derivation drift
+ # The score cross-check above tests the simple path (one arg).
+ # This tests the chained-subprocess path (composes 3 scripts).
+ run: |
+ set -e
+ # Generate a fresh audit as baseline-file input
+ node plugins/ruflo-metaharness/scripts/oia-audit.mjs \
+ --dry-run --format json > /tmp/drift-baseline.json
+ # Dispatch through the CLI — exercises iter-42 flag round-trip
+ OUT=$(node v3/@claude-flow/cli/bin/cli.js metaharness drift-from-history \
+ --baseline-file /tmp/drift-baseline.json \
+ --dry-run --format json)
+ # Verify the iter-95 timing.path field surfaces with 'file'
+ echo "$OUT" | grep -q '"path": "file"' \
+ || { echo "FAIL: dispatcher did not propagate baseline-file or timing.path missing"; echo "$OUT" | head -30; exit 1; }
+ # Verify the iter-66 skip flag is true (proves the fast-path
+ # synthesizes the listResult correctly through the dispatcher)
+ echo "$OUT" | grep -q '"skippedAuditList": true' \
+ || { echo "FAIL: dispatcher fast-path bypass not active"; exit 1; }
+ echo "✓ drift-from-history dispatcher round-trip green (fast-path via CLI)"
+
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index eae372b101..3fb51dd6d5 100755
--- a/plugins/ruflo-metaharness/scripts/smoke.sh
+++ b/plugins/ruflo-metaharness/scripts/smoke.sh
@@ -191,6 +191,19 @@ 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 "17z61. drift-from-history dispatcher round-trip in CI (iter 98)"
+miss=""
+W="$ROOT/../../.github/workflows/metaharness-ci.yml"
+grep -q "Drift-from-history dispatcher round-trip" "$W" 2>/dev/null || miss="$miss no-step-name"
+grep -q "metaharness drift-from-history" "$W" 2>/dev/null || miss="$miss no-cli-invocation"
+grep -q '"path": "file"' "$W" 2>/dev/null || miss="$miss no-path-file-assert"
+grep -q '"skippedAuditList": true' "$W" 2>/dev/null || miss="$miss no-skip-true-assert"
+grep -q "/tmp/drift-baseline.json" "$W" 2>/dev/null || miss="$miss no-baseline-path"
+# Iter-98 step lives in the metaharness-real-data job
+grep -B100 "Drift-from-history dispatcher round-trip" "$W" 2>/dev/null | grep -q "metaharness-real-data:" \
+ || miss="$miss not-in-real-data-job"
+[[ -z "$miss" ]] && ok || bad "$miss"
+
step "17z60. weekly cron summary surfaces timing.path (iter 97)"
miss=""
W="$ROOT/../../.github/workflows/oia-audit-weekly.yml"