All posts

The Agent Fixed CI. What Did It Change?

A green check can hide a change to what CI verifies. Give workflow changes an independent reviewer and show that the revised check still catches the failure.

A coral route splits before a large ring checkpoint and rejoins it on the other side.

What did the green check verify?

The pull request was red when you handed it to the coding agent. Twenty minutes later, it reports that CI is fixed. The check has the same name, the badge is green, and the diff includes a workflow file. Before you hit Merge, open that file.

There are several ways this could be good work. The patch may fix the bug and clean up a stale runner setting along the way. The workflow may have stopped finding the intended tests and needed repair. Or the revised workflow may run fewer tests than before. The badge gives all three outcomes the same amount of screen space.

If a PR changes a required check, send it to someone who owns what CI is supposed to verify. A green badge says the reported status met the merge rule for a particular commit. Open the run to see what actually ran.

Who decides what gets to merge?

In a study of 932,791 agent-authored pull requests from the AIDev dataset, researcher Miroslaw Staron classified 37,409, about 4%, as affecting the pipeline's control plane. That category includes edits to workflow configuration, permissions, and deployment policy. It gives a sense of how often these PRs touch the machinery that governs later ones. Staron's study, Table 3

The study classified pull requests from their titles and descriptions and checked the classification against 34 manually assessed examples. Its governance score gives extra weight to pipeline edits by design. Whether a particular change was justified, authorized, or harmful takes a closer look at the repository and its rules. Classification method and scoring

The distinction matters even on a team that merges a dozen PRs a week. An application patch can affect the software that ships. A change to the release workflow can affect what every subsequent patch has to prove. The second diff may fit on a single screen and still deserve the more experienced reviewer.

Assign the second reviewer before the failure

Suppose the billing team owns an invoice exporter, and the release team owns its integration job. The patch fixes an export that drops the last row and proposes a different command for the job. The billing reviewer can confirm the invoice is complete. The release reviewer has a different question. Will the new command still run the invoice regression when the next payment change reaches the queue?

For the invoice example, ask for the revised job's result against a known-bad export and against the patched version. The first run should fail on the missing row. The second should pass. A dependency-install failure tells the reviewer about the runner, so ask for the actual assertion in the log. Serhii Romanov describes a related before-and-after technique for isolating the effect of a test edit. He also proposes assigning owners to CI and the files it depends on. Romanov's worked example

Decide who owns the job while it's working. When there's pressure to get the queue moving again, the engineer waiting on a patch should already know where to send a proposal that alters its merge requirements. The release team can then approve an intentional repair, such as updating test discovery after a directory move, with the same evidence they would require for a human-authored proposal.

Route the review through the repository

GitHub can require approval from a designated code owner on a protected branch. Its Actions guidance recommends assigning owners to workflow files, and its CODEOWNERS documentation recommends protecting the ownership file itself. The person who can explain your integration suite should get a say when a PR changes how it runs. GitHub Actions security guidance · GitHub CODEOWNERS documentation

Trace each required job to the files that determine its behavior. That may include a package script, shared action, or test configuration outside the workflow directory. Include those files in the ownership rules. When a pipeline repair and an application fix can land separately, separate PRs make it easier to see which change restored the check and which fixed the product. When they need to travel together, put the evidence for each in the description.

A good PR description names the job, the behavior it must still catch, and the reviewer responsible for that decision. For the invoice export, link the run where the last-row assertion fails and the run where it passes. The next maintainer can use those logs to see what the release team meant to preserve.