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): dispatcher round-trip enforces wall budget (iter 99)

ruv16150fd1165c
diff --git a/.github/workflows/metaharness-ci.yml b/.github/workflows/metaharness-ci.yml
index 7624de7ee0..f8eadffa3f 100644
--- a/.github/workflows/metaharness-ci.yml
+++ b/.github/workflows/metaharness-ci.yml
@@ -458,5 +458,16 @@ jobs:
# 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)"
+ # iter 99 — also verify the fast-path actually delivers the
+ # measured ~1.4s baseline (slow path is ~26s). Allow 30s budget
+ # to tolerate slow CI runners while still catching a ~10x regression.
+ WALL=$(node -e "
+ const j = JSON.parse(\`$OUT\`);
+ console.log(j.timing?.parallelWallMs ?? 0);
+ ")
+ if [ "$WALL" -gt 30000 ]; then
+ echo "FAIL: dispatcher fast-path wall ${WALL}ms > 30000ms (regression?)"
+ exit 1
+ fi
+ echo "✓ drift-from-history dispatcher round-trip green (fast-path via CLI; wall ${WALL}ms)"
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index 3fb51dd6d5..11f9a64539 100755
--- a/plugins/ruflo-metaharness/scripts/smoke.sh
+++ b/plugins/ruflo-metaharness/scripts/smoke.sh
@@ -191,6 +191,15 @@ 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 "17z62. CI dispatcher round-trip enforces wall budget (iter 99)"
+miss=""
+W="$ROOT/../../.github/workflows/metaharness-ci.yml"
+# Wall-clock budget check added to iter-98 step
+grep -q "dispatcher fast-path wall \${WALL}ms > 30000ms" "$W" 2>/dev/null || miss="$miss no-wall-budget-check"
+grep -q 'j.timing?.parallelWallMs' "$W" 2>/dev/null || miss="$miss no-wall-extraction"
+grep -q "WALL=\\\$" "$W" 2>/dev/null || miss="$miss no-wall-var"
+[[ -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"