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): weekly cron hard-fails on slow-path regression (iter 108)

ruv08757d2db114
diff --git a/.github/workflows/oia-audit-weekly.yml b/.github/workflows/oia-audit-weekly.yml
index 9bef56296b..e1e4ed6456 100644
--- a/.github/workflows/oia-audit-weekly.yml
+++ b/.github/workflows/oia-audit-weekly.yml
@@ -146,6 +146,19 @@ jobs:
echo "## Drift vs prior week: \`$VERDICT\` (similarity=$OVERALL)" >> $GITHUB_STEP_SUMMARY
echo "Alert status: \`$ALERT\`" >> $GITHUB_STEP_SUMMARY
echo "Path: \`$PATH_TAKEN\`" >> $GITHUB_STEP_SUMMARY
+ # iter 108 — fail the workflow if the cron accidentally fell
+ # through to the slow path. The cron's --baseline-file flag
+ # is the load-bearing invariant for cron-budget correctness;
+ # if it disappears, the audit takes ~26s instead of ~1.4s
+ # and the iter-7 weekly-cron budget exhausts on slower runners.
+ PATH_LABEL=$(node -e "
+ const j = JSON.parse(require('fs').readFileSync('/tmp/drift-trend.json'));
+ console.log(j.timing?.path || 'unknown');
+ ")
+ if [ "$PATH_LABEL" != "file" ]; then
+ echo "::error::Cron drift step expected timing.path='file' but got '$PATH_LABEL' — the iter-67 fastpath flag may have regressed"
+ exit 1
+ fi
- name: Upload drift trend artifact
# iter 70 — same always() pattern; the trend artifact is most
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index 46d6e1af7d..a037955c8b 100755
--- a/plugins/ruflo-metaharness/scripts/smoke.sh
+++ b/plugins/ruflo-metaharness/scripts/smoke.sh
@@ -191,6 +191,17 @@ 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 "17z71. weekly cron drift step fails on slow-path regression (iter 108)"
+miss=""
+W="$ROOT/../../.github/workflows/oia-audit-weekly.yml"
+# iter-108 hard-fails the workflow if cron accidentally drops --baseline-file
+grep -q 'PATH_LABEL=' "$W" 2>/dev/null || miss="$miss no-path-label-var"
+grep -q "timing?.path || 'unknown'" "$W" 2>/dev/null || miss="$miss no-path-extraction"
+grep -q 'if \[ "\$PATH_LABEL" != "file" \]' "$W" 2>/dev/null || miss="$miss no-path-assertion"
+grep -q "iter-67 fastpath flag may have regressed" "$W" 2>/dev/null || miss="$miss no-error-message"
+grep -q "::error::Cron drift step" "$W" 2>/dev/null || miss="$miss no-gh-error-annotation"
+[[ -z "$miss" ]] && ok || bad "$miss"
+
step "17z70. ADR-152 cross-references resolve + ADR-151 scope-refs documented (iter 107)"
miss=""
ADR_DIR="$ROOT/../../v3/docs/adr"