Change quality
What each of the six change quality metrics counts, what it leaves out, and how it compares with DORA and published research.
A manager can see what agent runs cost and how many lines they shipped. The question after the merge is whether those changes held up. Change quality answers it with six metrics, and each one reads records Oxagen already keeps: pull requests, CI runs, bugs, reverts, line survival, work item estimates, and the shell commands of each run.
get_change_quality reads all six. It answers on the API, MCP, the agent, and the CLI (oxagen spend quality). The app draws the same figures on the Change quality dashboard under Reports, on the Run, Work item, and Agent pages, and in the Operator ranking.
How Oxagen counts a change
A change is a pull request merged into its base branch. Each change counts once, under its primary run: the run credited with the most of its shipped lines. A change no run opened is an engineer change. It counts only in the Engineer group, which is the team's own baseline beside every agent group.
A change fails when one of these happens within 14 days of its merge:
- A revert lands. A revert counts only when it lands on the branch the change merged into. A
git revertcounts when it names the merge commit. A merged pull request counts when its body saysReverts #NorReverts owner/repo#N, anywhere in the body, so "partially reverts #12" counts. Oxagen reads that body when the merge delivery arrives, so a later edit marks nothing. - A work item the change finished is reopened.
list_defectstraces a bug to the change. A person's answer wins, and with none, Oxagen names the latest pull request in the same repository that merged before the fix opened and before the bug was found, and changed one of the same files the fix changed. A bug must be a GitHub issue closed by a pull request.- The default branch fails CI on the merge commit, after the pull request's last head passed.
A change counts once however many signals it has. A change merged less than 14 days ago is pending: it shows as a count and stays out of the rate. A signal can arrive after the window ends, such as a bug traced late, so a past week's rate can rise.
Change failure rate
The share of changes that failed within 14 days, among changes whose 14 days have ended. get_change_quality returns it as changeFailure. Beside it sit two sums: the spend on failed changes, which is the cost of every run linked to them, and the recovery spend, which is the cost of the runs that fixed or reverted them. The CI and review cost of failed changes is not priced yet.
Reads Not recorded.
- A group with no change that has finished its 14 days.
- Imported weeks. Oxagen imports 12 weeks of merged pull requests from before a repository is linked, and those weeks have no revert, reopen, or pull request CI record. They never count as changes with no failure.
Comparison. DORA's change failure rate counts production deployments that needed remediation. DORA reports an elite figure of 5% in 2023 and 2024, and 2% to 4% as the second-best range in 2025 (DORA metrics, 2025 report). LinearB lists good as 1% to 4% (community benchmarks), and DX reports averages of 2.8% to 4.6% (DX Core 4). Oxagen counts merges, because it sees merges and not production. A failure is a revert, a reopen, a traced bug, or a broken default branch, so the figures are close in spirit and not the same count. One study of agent pull requests found 2.66% held a reverting commit, from 0.7% to 7.6% depending on the agent (Oukay et al., MSR 2026).
Where it shows. The Change quality dashboard, the Run page's Change quality panel, the Agent page's Last 30 days panel, which adds a tile over the last 90 days, and the Operator ranking.
CI failures per thousand shipped lines
Failed CI runs on the pull request lane of merged changes, divided by the lines those changes shipped, times 1,000. It reads every head the pull request reached, with no window. get_change_quality returns it as ciFailures, with failures per change, the first-pass rate, and rework spend beside it.
A CI run is the latest attempt of each workflow on one head commit. A failed attempt followed by a passing re-run counts as a passing run. Running and cancelled runs count neither way. A failed head counts for the run that made the head commit, and a line counts for the run credited with it. The CI pipeline dashboard uses the same rule, so a failure that a re-run passed reads as passed on both.
Reads Not recorded.
- A change with no CI run that passed or failed on any head.
- A change with no record of which lines each run shipped, for the per-line figure.
- Imported weeks.
CI records start at the repository's link. Oxagen backfills 30 days of default-branch runs and nothing earlier for pull requests.
Comparison. CircleCI's State of Software Delivery sets a target of 90% passing on the default branch and measured 70% to 82% from 2023 to 2026 (2023, 2026). That counts every workflow run on the default branch. This metric counts one run per head on a pull request, before the merge, so the two answer different questions. No published figure exists for the first-pass rate or for failures per line. A change written in more lines reads better on any per-line figure, which is why failures per change sits beside it.
Where it shows. The dashboard's second tile, the Run page's CI figure, which opens the repository's CI tab on its pull request runs, and the Operator ranking.
Rewrite rate
The share of lines a merge added that were gone when measured. Oxagen reads line survival once, 30 to 60 days after the merge, by blame at the default branch's newest published commit. This is the one figure outside the 14-day window. Lower is better. get_change_quality returns it as rewrite.
Deleted, moved, vendored, and generated files and lockfiles are left out. A change merged less than 60 days ago with no measurement is pending.
Reads Not recorded. A change merged 60 or more days ago with no line survival measurement. An imported change counts when its survival was measured.
Comparison. GitClear measured code churn, lines reverted or substantially revised within two weeks, at 5.7% in 2024 and 3.1% in 2020 (GitClear 2025). LinearB calls a rework rate under 3% elite, counted on code under 21 days old (community benchmarks). Both measure a shorter window than Oxagen's 30 to 60 days, and GitClear reads all code, so Oxagen's rate is not comparable line for line.
Where it shows. The dashboard's third tile and the Agent page's Last 30 days panel, as a tile over the last 90 days, and the Operator ranking.
Failed change recovery time
For each failed change that recovered, the time from failure to recovery. get_change_quality returns it as recovery: the median, the 90th percentile by nearest rank, the sample size, and the failed changes still waiting.
A change that broke the default branch is timed from its failed CI run, and ends at the next passing CI run on that branch. Every other failed change is timed from its merge. A bug is put right when its fix merges, and a reopened work item when it closes again. A revert puts every signal right at once.
Reads Not recorded. A group whose failed changes have not recovered, and a bucket that holds only imported changes.
Comparison. DORA reports an elite recovery time under one hour in 2023 and 2024, counted from a failed deployment. Oxagen times most changes from the merge, so its time includes the time the failure took to show.
Where it shows. The dashboard's fourth tile, which opens the changes still failed.
Estimate accuracy
The share of accepted work items whose recorded agent minutes landed within 25% of the estimate. Only items with an estimate above 0 and recorded minutes above 0 count. The median of recorded minutes over estimated minutes sits beside it, and above 1 means the work took longer than planned. get_change_quality returns it as estimate, and get_work_item carries one item's figures.
Agent minutes run from each run's start to its end, so they include time spent waiting on a person.
Reads Not recorded. An item with no estimate. A migration on 2026-10-22 cleared every tracker estimate, so only items whose estimate a person confirmed since then count. The Engineer group has no value, because no run records an engineer's minutes.
Comparison. Estimation research calls the share of estimates within 25% PRED(25) and measures the error against the actual time. Oxagen measures it against the estimate, because the estimate is what a person planned with. It uses no published figure.
Where it shows. The dashboard section below the tiles, the Estimate accuracy row in Agent time on the Work item page, and the Operator ranking.
Tested pushes
The share of pushes made after a passing test run, with no file change between. Oxagen folds each run's shell commands and file changes in order as the run records them. get_change_quality returns it as testedPushes, and get_run_report carries one run's counts.
Tested pushes count every root run that started in the range and pushed, with its subagents added, whether or not a pull request merged. A line proves a pass only when its success shows the test part passed, so pnpm test | tail -5 and pnpm test || true prove nothing. Listing or skipping tests, such as cargo test --no-run, is no pass either.
Reads Not recorded.
- Codex runs. Its hook reports a failed command as ok (#9725).
- Stella runs. Its tools read as other (#8059).
- Any run that started before 02:22:49 UTC on 2026-11-22, when Oxagen first counted tested pushes.
Only Claude Code, the Agent SDK, and Cursor runs record tested pushes. Every other runtime reads Not recorded and never 0%. The Engineer group has no value, because no run records an engineer's pushes. Imported weeks hold no run, so they read Not recorded too. A run that made no push is left out of both counts, and the Run page shows it as Not recorded.
Comparison. No published figure exists.
Where it shows. The dashboard section below the tiles, the Run page's Change quality panel, and the Operator ranking. The section also shows the first-pass rate for changes from runs that tested every push and from runs that left one untested. Its drafted rule, run the tests before git push, opens steering or an approval rule for a person to confirm.
Not recorded
A figure whose records all still wait reads Pending, and a figure with nothing to count shows no value. A figure with no input reads Not recorded and never 0. The reason sits in the ? tip beside it. Records with a missing input leave both the numerator and the denominator, and get_change_quality counts them by reason in notRecorded.
Groups and ranges
Group any figure by workspace, operator, agent, harness, model, work item label, repository, or model tier. The dashboard offers workspace only when it reads the whole organization. A change takes its dimensions from its primary run. Harness reads tacho.sessions.harness, the column Spend uses. Operator is the person who enrolled the host, so on a shared machine every run counts under one person.
A range is a Spend preset or a start and an end UTC day, up to 366 days. One read returns at most 92 buckets, so a year reads by week or month. Weeks start on Monday, and the first and last bucket cover only the part inside the range, so buckets add up to the total. Work item label groups can add up to more than the whole, because a change counts under each label of its item.
Research on AI and delivery stability
DORA's 2024 report estimated that each 25% rise in AI adoption went with a 7.2% drop in delivery stability (2024 report). The 2025 report found that AI adoption still goes with less stable delivery, and that more changes without strong automated testing and fast feedback lead to more instability. The Change quality dashboard draws the team's own engineer baseline and no industry figure.