[METRICS-02] Track rework rate and change failure rate as leading instability indicators
Labels: observability, process, p1-critical, effort-small
Assignee: 🤖 Copilot
Phase: Phase 1 — AI Foundation
DORA 2025 Source: “Rework rate” added to DORA core metrics; “AI increases throughput, also increases instability” finding
Effort: Small (< 1 day)
Prerequisites: DEVOPS-01 (CI pipeline), OBS-01 (Sentry)
Why This Is New in 2025
The 2025 DORA report introduces rework rate as a new core metric alongside the traditional four (deployment frequency, lead time, change failure rate, time to restore). The finding: AI-assisted teams that don’t track rework see throughput gains consumed by hidden instability. Rework rate is the earliest warning signal that AI output quality is degrading or that the copilot-instructions.md needs updating.
“Teams should track rework rate as a leading indicator of hidden instability.” — 2025 DORA Report, Engineering Leaders analysis
The 2025 report also reinforces change failure rate tracking — but with a new urgency: AI increases the volume of changes, which statistically increases the number of failures unless quality gates are proportionally strengthened.
The Three Metrics to Track
| Metric |
Definition |
Target |
Tool |
| Rework rate |
Lines reverted or substantially changed within 14 days of authoring, as % of total lines authored |
< 10% |
scripts/churn-report.sh (extend METRICS-01) |
| Change failure rate |
% of deployments that cause a user-visible bug, crash, or rollback |
< 5% |
Sentry error spike detection |
| PR revision rate |
% of PRs that require at least one revision request before merge |
< 25% |
GitHub Insights + weekly manual tally |
Acceptance Criteria
Rework Rate Dashboard (extend METRICS-01)
Change Failure Rate via Sentry
- Identify the deploy that caused the spike (git log)
- Revert the merge commit:
git revert -m 1 <merge-sha>
- File a bug issue with Sentry error link and rework PR
- Root cause: was it a Copilot pattern failure? Update copilot-instructions.md
Weekly Snapshot Script
Files to Create / Change
scripts/churn-report.sh — extend with rework rate
scripts/weekly-metrics.sh (create)
docs/METRICS.md — add rework rate, change failure rate definitions and targets
docs/RUNBOOKS.md — add Change Failure Response runbook and Weekly Review cadence
package.json — add metrics script
[METRICS-02] Track rework rate and change failure rate as leading instability indicators
Labels:
observability,process,p1-critical,effort-smallAssignee: 🤖 Copilot
Phase: Phase 1 — AI Foundation
DORA 2025 Source: “Rework rate” added to DORA core metrics; “AI increases throughput, also increases instability” finding
Effort: Small (< 1 day)
Prerequisites: DEVOPS-01 (CI pipeline), OBS-01 (Sentry)
Why This Is New in 2025
The 2025 DORA report introduces rework rate as a new core metric alongside the traditional four (deployment frequency, lead time, change failure rate, time to restore). The finding: AI-assisted teams that don’t track rework see throughput gains consumed by hidden instability. Rework rate is the earliest warning signal that AI output quality is degrading or that the copilot-instructions.md needs updating.
The 2025 report also reinforces change failure rate tracking — but with a new urgency: AI increases the volume of changes, which statistically increases the number of failures unless quality gates are proportionally strengthened.
The Three Metrics to Track
scripts/churn-report.sh(extend METRICS-01)Acceptance Criteria
Rework Rate Dashboard (extend METRICS-01)
scripts/churn-report.shupdated to also output:docs/METRICS.mdupdated with rework rate definition, target threshold (< 10%), and interpretation guide:Change Failure Rate via Sentry
docs/RUNBOOKS.mdupdated with “Change Failure Response” runbook:git revert -m 1 <merge-sha>Weekly Snapshot Script
scripts/weekly-metrics.shcreated that outputs a single-screen summary:Script is documented in
docs/RUNBOOKS.mdunder “Weekly Review”Added to
package.json:"metrics": "bash scripts/weekly-metrics.sh"Files to Create / Change
scripts/churn-report.sh— extend with rework ratescripts/weekly-metrics.sh(create)docs/METRICS.md— add rework rate, change failure rate definitions and targetsdocs/RUNBOOKS.md— add Change Failure Response runbook and Weekly Review cadencepackage.json— addmetricsscript