Part of #834 (Production-Readiness Audit) — Batch B1 (foundation, parallel-safe).
Replaces audit item #1 (P0). Parallel with: audit-b1 siblings — this issue owns docs/benchmarks/* + scripts/compare_benchmarks.sh.
Why P0: this is the audit's #1 critical finding. Today no benchmark regression can ever fail CI.
Problem
docs/benchmarks/baseline.json is an all-zeros placeholder (line 80 literally says "Populate this file with real benchmark baselines before enabling regression gating."). The benchmark workflow runs on every dev push, "compares" against the zeroed baseline, and publishes a green commit status. No regression can ever fail.
Acceptance criteria
Files in scope
docs/benchmarks/baseline.json
docs/benchmarks/README.md
scripts/compare_benchmarks.sh
Dependencies
- Unblocks: B4-1 (bench PR trigger + Bencher), B4-3 (SLO assertions). Those need a real baseline to compare against.
Out of scope
Branch / PR
- Branch:
ci/bench-baseline-real · Targets: dev
Part of #834 (Production-Readiness Audit) — Batch B1 (foundation, parallel-safe).
Replaces audit item #1 (P0). Parallel with:
audit-b1siblings — this issue ownsdocs/benchmarks/*+scripts/compare_benchmarks.sh.Why P0: this is the audit's #1 critical finding. Today no benchmark regression can ever fail CI.
Problem
docs/benchmarks/baseline.jsonis an all-zeros placeholder (line 80 literally says "Populate this file with real benchmark baselines before enabling regression gating."). The benchmark workflow runs on everydevpush, "compares" against the zeroed baseline, and publishes a green commit status. No regression can ever fail.Acceptance criteria
docs/benchmarks/baseline.json(replace all zeros).scripts/compare_benchmarks.shflipped to exit non-zero on regression beyond tolerance.docs/benchmarks/README.mddocuments: hardware used, driver/Lavapipe version, Zig version, capture procedure, tolerance policy — so future drift is interpretable.Files in scope
docs/benchmarks/baseline.jsondocs/benchmarks/README.mdscripts/compare_benchmarks.shDependencies
Out of scope
Branch / PR
ci/bench-baseline-real· Targets:dev