CI Cost Telemetry Contract (P1.2)¶
Status: Active proposal (v1) Date: 2026-04-16
Objective¶
Standardize weekly CI cost telemetry so engineering leadership can track runtime spend, artifact growth, and workflow frequency by lane.
Scope¶
This contract defines the minimum telemetry payload for each weekly reporting cycle:
- Minutes by lane (PR, release, security, docs, maintenance)
- Artifact size by lane (MB)
- Run frequency by lane (count per week)
- Failure rate by lane (%)
Data contract¶
Machine-readable schema path:
docs/contracts/ci-cost-telemetry.v1.json
Required top-level fields¶
schema_versiongenerated_at_utcwindowrepolanestotals
Lane record (required fields)¶
lane_idworkflow_namesrun_countminutes_totalminutes_p50minutes_p95artifact_mb_totalfailure_rate_percent
Weekly snapshot location¶
Recommended output path pattern:
docs/artifacts/ci-cost-telemetry-YYYY-MM-DD.json
KPI thresholds (initial)¶
- PR lane p95 runtime <= 20 minutes
- Release lane p95 runtime <= 40 minutes
- Weekly artifact growth <= +15% week-over-week
- Failed run rate <= 10% per lane (except known maintenance windows)
Dashboard ingestion guide¶
Step 1 — Produce snapshot¶
Generate weekly telemetry JSON and validate against schema.
Step 2 — Publish artifact¶
Store validated snapshot in docs/artifacts/ and attach to weekly review issue.
Step 3 — Dashboard mapping¶
Map fields:
totals.minutes_total-> overall CI minute spendlanes[*].minutes_p95-> runtime risk by lanelanes[*].artifact_mb_total-> artifact storage pressurelanes[*].failure_rate_percent-> reliability trend
Step 4 — Operating review¶
In weekly platform review:
- Flag lanes above thresholds.
- Open remediation tasks for top 3 regressions.
- Track trend deltas over 4-week rolling window.
Rollout phases¶
- Shadow mode (2 weeks): collect without enforcement.
- Advisory mode (2 weeks): warn on threshold exceedance.
- Policy mode: block selected releases if release lane breaches policy for 2 consecutive weeks.
Acceptance criteria (P1.2)¶
- CI telemetry contract documented.
- Machine-readable schema published.
- Dashboard ingestion mapping documented.
- Rollout phases defined.