mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Iter 69 wired drift detection into the weekly cron. But the conditional
`if: steps.prior-artifact.outputs.has_prior == 'true'` skipped the
drift steps whenever the audit step exited non-zero — i.e., whenever
the audit alerted on HIGH severity.
Result: drift detection ran on healthy weeks but SKIPPED on the weeks
that mattered most. The drift report would be missing exactly when
forensics needed it.
WHAT SHIPPED
.github/workflows/oia-audit-weekly.yml — three step conditionals
upgraded:
- Download prior week's audit artifact:
Before iter 70: default conditional (skipped on audit-step failure)
After iter 70: if: always()
- Compute structural drift vs prior week:
Before: if: steps.prior-artifact.outputs.has_prior == 'true'
After: if: always() && steps.prior-artifact.outputs.has_prior == 'true'
- Upload drift trend artifact:
Same upgrade.
The `always() && <condition>` syntax fires the step in BOTH success and
failure cases of prior steps, AS LONG AS the prior-artifact download
succeeded. This is the documented GHA idiom for "this step is forensic
and should run even when upstream failed".
WHY THIS IS THE LOAD-BEARING SCENARIO
A regression that adds a HIGH-severity finding is exactly the case
where drift evidence is most valuable:
- The audit step says "HIGH worst severity → workflow fails"
- The user opens the Actions tab to see what broke
- Pre-iter-70: drift report is missing → user has to manually diff
against prior artifact
- Post-iter-70: drift report is one click away, and the comparison
shows whether this regression is a sudden spike or a gradual creep
The drift-trend artifact's 90-day retention means even if the user
notices weeks later, the structural-distance log is intact.
SMOKE STEP 17z33 anchors:
- `if: always() && steps.prior-artifact.outputs.has_prior == 'true'`
literal present (catches the 3 drift-step conditionals as a group)
- Download step has `if: always()` (line after id: prior-artifact)
- Rationale comment present ("skipped drift exactly when it was
most valuable")
GATES THIS ITER
smoke: 72 → 73 (step 17z33 green)
yaml: python yaml.safe_load passes
workflow: 3 conditionals upgraded, no schema break
ITER 69-70 ARC
69 — wired drift detection into the weekly cron
70 — ensured drift detection ALSO fires on the failure path
The autonomous drift-detection promise from iter 69 is now ACTUALLY
autonomous — including the weeks where someone needs the evidence
most urgently.
Co-Authored-By: RuFlo <ruv@ruv.net>