mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Iter 41 added the performance gate (--max-mean-us 10) but the actual
bench results weren't persisted. Every CI run measured perf, gated on
the ceiling, then threw the numbers away. There was no way to look at
"how has perf changed over the last 90 days" without re-running benches
locally and comparing against unknown baselines.
Iter 82 keeps the gate AND captures the numbers as a 90-day artifact.
WHAT SHIPPED
.github/workflows/metaharness-ci.yml — similarity-tests job:
- Performance gate step extended:
bench-similarity.mjs --iters 100000 --max-mean-us 10 \
--format json > /tmp/bench-similarity.json
JSON output captures all 3 categories (cheap, typical, rich)
with mean / p50 / p99 wall-clock per category.
- GITHUB_STEP_SUMMARY enriched with a per-category table:
| cheap | mean 0.343μs | p99 0.500μs |
| typical | mean 0.412μs | p99 0.583μs |
| rich (32 agents) | mean 1.875μs | p99 2.167μs |
Visible in the Actions summary tab without clicking through.
- New Upload step:
name: bench-similarity-${{ github.run_id }}
path: /tmp/bench-similarity.json
retention-days: 90
VALUE ACCUMULATION
Today: 1 baseline (this PR's run)
After 7 days: ~7 baselines across 7 PRs
After 90 days: ~90 baselines
A future regression analyzer can:
- Download N most-recent artifacts
- Plot mean over time per category
- Flag any category that drifted upward by >50% vs trailing-7d average
- Catch performance regressions the smoke gate's loose 10μs ceiling
misses (a regression from 0.4μs to 5μs passes smoke but is 12x
slower than baseline — exactly the kind of silent erosion a
dedicated analyzer would surface).
The artifact-history infrastructure costs nothing per run (~1KB JSON,
90-day retention is essentially free) but unlocks the regression
detection that the smoke gate can't do alone.
SMOKE STEP 17z45 anchors:
- /tmp/bench-similarity.json path
- --format json flag in the bench command
- "Upload bench-similarity artifact" step name
- Artifact name template with github.run_id
- 90-day retention
- GITHUB_STEP_SUMMARY header literal
GATES THIS ITER
smoke: 84 → 85 (step 17z45 green)
ci: new artifact + summary step
yaml: python yaml.safe_load passes
ARTIFACT-TRACKING FAMILY (post-iter-82)
oia-audit-weekly.yml uploads oia-audit JSON (iter 7)
oia-audit-weekly.yml uploads drift-trend JSON (iter 69)
metaharness-ci.yml uploads bench-similarity JSON (THIS ITER)
Three independent perf/posture artifacts now accumulate per run. All
three converge on a 90-day retention window so cross-artifact analysis
stays comparable.
Co-Authored-By: RuFlo <ruv@ruv.net>