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

fix(ci): weekly cron drift detection fires on audit failure (iter 70)

ruv96d1bb212eb2
diff --git a/.github/workflows/oia-audit-weekly.yml b/.github/workflows/oia-audit-weekly.yml
index 73a2dd040d..648e038d8e 100644
--- a/.github/workflows/oia-audit-weekly.yml
+++ b/.github/workflows/oia-audit-weekly.yml
@@ -73,8 +73,13 @@ jobs:
# fastpath made it cheap (~1.4s). Now every Sunday's run diffs
# against the most recent prior weekly artifact and surfaces the
# structural distance + alert.
+ # iter 70 — `if: always()` so drift detection fires EVEN when the
+ # audit step exits non-zero (HIGH alert). The pre-iter-70 default
+ # conditional skipped drift exactly when it was most valuable:
+ # the weeks where something was breaking.
- name: Download prior week's audit artifact (if any)
id: prior-artifact
+ if: always()
continue-on-error: true
run: |
set +e
@@ -102,7 +107,8 @@ jobs:
GH_TOKEN: ${{ github.token }}
- name: Compute structural drift vs prior week (iter 69)
- if: steps.prior-artifact.outputs.has_prior == 'true'
+ # iter 70 — always() AND has-prior: fires on the failure path too
+ if: always() && steps.prior-artifact.outputs.has_prior == 'true'
run: |
set -e
# iter-67 fastest path: --baseline-file skips audit-list + memory roundtrip
@@ -129,7 +135,9 @@ jobs:
echo "Alert status: \`$ALERT\`" >> $GITHUB_STEP_SUMMARY
- name: Upload drift trend artifact
- if: steps.prior-artifact.outputs.has_prior == 'true'
+ # iter 70 — same always() pattern; the trend artifact is most
+ # useful for forensics when the workflow has failed.
+ if: always() && steps.prior-artifact.outputs.has_prior == 'true'
uses: actions/upload-artifact@v4
with:
name: drift-trend-${{ github.run_id }}
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index f915a807d5..abf138eee0 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 "17z33. weekly cron drift detection fires even on audit failure (iter 70)"
+miss=""
+F="$ROOT/../../.github/workflows/oia-audit-weekly.yml"
+# All 3 drift steps now use always() so audit-step exit-1 doesn't skip them
+grep -q "if: always() && steps.prior-artifact.outputs.has_prior == 'true'" "$F" 2>/dev/null || miss="$miss no-conditional-always"
+# Download step also has if: always() (line AFTER id: prior-artifact)
+grep -A1 "id: prior-artifact" "$F" 2>/dev/null | grep -q "if: always()" || miss="$miss no-download-always"
+# Comment explains the rationale
+grep -q "skipped drift exactly when it was most valuable" "$F" 2>/dev/null || miss="$miss no-rationale-comment"
+[[ -z "$miss" ]] && ok || bad "$miss"
+
step "17z32. weekly cron computes drift vs prior artifact (iter 69)"
miss=""
F="$ROOT/../../.github/workflows/oia-audit-weekly.yml"