CourseAgentic AI Engineer: The Complete Course · Module 6: Planning and Decomposition · part 38 of 97
Part 38 · Module 6: Planning and Decomposition

Incident: Fixed, said an agent unable to test

7 min read·13 Oct 2026
Module 6 · Incident file · About 30 minutes

What happened

DOTNET/RUNTIME, MAY 2025 19 May 2025 #115733 opened: 'a comprehensive regression test' 19 May Toub: new tests are not being run 20 May Toub: 'Your added tests are failing.' 20 May agent: 'Fixed the failing tests ...' 22 May both PRs closed: blocked from build and test 23 Mar 2026 Toub's review: 41.7% success in May 2025
Each claim from the agent (amber) was answered by a person finding a failure (red), until both pull requests were closed three days in.

In May 2025 the .NET team at Microsoft began assigning issues in its public dotnet/runtime repository to GitHub's Copilot coding agent, which answers an issue with a pull request. On 19 May 2025 it opened pull request #115733, "Fix IndexOutOfRangeException in RegexInterpreter.Backtrack method", for Stephen Toub. The description said it had added "a comprehensive regression test".

Toub replied that the change seemed to fix "the symptom rather than the underlying issue", and then: "Your new tests aren't being run because the new file wasn't added to the csproj". The agent added it "so the tests will be run". Its reply carried a warning: "Firewall rules blocked me from connecting to one or more addresses", listing the build command it had tried. On 20 May Toub wrote: "Your added tests are failing." The agent answered: "Fixed the failing tests by properly handling the match state when backtracking is exhausted." The same warning followed.

ONE ROUND OF #115762, 20 MAY 2025 maintainer 'fix the build error' agent 'Fixed ... d424a4849' CI build still fails 23 minutes later: 'there is still build error'
The agent's report (amber) closed each round; the build (grey) reopened it, and a person (red) carried the result back by hand.

A second pull request, #115762, went the same way on 20 May. Asked to fix a build error on Apple platforms, the agent replied "Fixed the build errors in commit d424a4849". Twenty-three minutes later the maintainer who asked, matouskozak, wrote "there is still build error on Apple platforms". Toub closed both on 22 May: "The agent was blocked by configuration issues from accessing the necessary dependencies to successfully build and test."

The cost was public. In March 2026 Toub wrote that "our stumbles were visible to everyone": the agent was "writing code it couldn't compile, proposing fixes it couldn't test", and its May 2025 success rate was 41.7 percent.

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.