The Test Suite Became a Feedback Loop
A test can score an agent’s last run. A useful feedback loop has to make the next run better.
Mark Pollack is the founder of Spring AI and an early contributor to the Spring Framework, widely used to build business software in Java. Before that, he worked in experimental physics at Brookhaven National Laboratory. His proposal for improving agents borrows the discipline of an experiment: record what happened, judge the result against an explicit standard, correct the system and run it again.
Pollack calls the approach Agent Control Theory. Its practical version fits in four words: work, record, judge, correct.
Record what the agent actually did
Prompts describe an intended process. Execution records show the process that occurred.
In Pollack’s Code Coverage v3 experiment, he expected better hints to reduce the time an agent spent exploring a file system. The prompt did change the behavior. The agent explored less and spent more time writing tests. Quality and cost remained similar.
The hoped-for saving did not appear. The record explained where the effort went.
A second run asked the agent to increase coverage and update testing APIs. It handled the coverage and ignored the API update. That is a small example of the larger problem: a completed task can still omit one of the obligations that defined success.
Judge the requirements, not the confidence
Spring PetClinic is a commonly used Spring sample application. JetBrains developer Anton Arhipov wrote the specification for an agent-built scheduling feature.
All 290 project tests passed. Arhipov’s review missed a required order for locking database tables. A panel of model judges flagged the violation; Pollack investigated and confirmed the finding.
No deadlock was reproduced, and no code fix was applied in that case. The fixed-commit case study establishes a narrower point: ordinary tests and a human review both missed a specified constraint that an additional judging layer caught.
That does not make model judges automatically trustworthy. Pollack’s rule is to use deterministic checks first—compilation, coverage and static analysis—and bring in model judgment only when a requirement needs interpretation. Evidence should constrain the discussion.
“You can't just rely on the agent saying, you ask it, did you do a good job?” Pollack told the show. “And the agent goes, yeah, I did a good job. That's not enough.”
Correction makes it a loop
A separate public record shows the correction step.
The Agent Client Protocol connects code editors with coding agents. Its specification requires a cancelled session to answer pending permission requests with a cancelled result. The case works because the protocol states the requirement explicitly enough for a judge to use.
The Agent Client Protocol SDK failed an evaluation of that requirement. An identifiable fix added the behavior and focused tests. The next preserved evaluation passed that item.
The first result identified what needed to change. The intervention changed the system. The rerun supplied new evidence. That sequence—not a score by itself—is the loop.
Cost belongs to finished work
Pollack uses a work-in-progress efficiency metric he calls J: total cost across all experimental runs divided by the number of runs that clear the complete quality bar. Failed attempts add cost without adding a successful result.
He originally considered counting individual requirements passed. He abandoned that approach because trivial criteria could inflate the denominator and create a false improvement. In one five-run batch, only two runs succeeded; by his account, requirement counting would have made the agent look one-third cheaper.
For an enterprise, that distinction matters. Cost per run can make a system look efficient while failed attempts quietly accumulate. The relevant unit is the finished job that met the quality bar.
The judge still needs supervision
A loop is only as useful as its feedback signal. Pollack said he does not yet know how to detect every case of a model judge drifting. A human still has to catch a judge that is confidently measuring the wrong thing.
The approach is not an argument for replacing human review with an AI jury. It is an argument for making the work inspectable, separating deterministic evidence from interpretive judgment and treating evaluation as input to the next attempt rather than a ceremonial score at the end.
The loop can improve the next run. Someone still has to decide whether its feedback deserves trust.
Listen to Episode 73
Episode 73, “The Test Suite Became a Feedback Loop”, is available now.
Download the episode, subscribe to the feed or listen on Apple Podcasts.
Sources
- Pollack AI
- Spring Framework overview
- Spring PetClinic sample application
- Mark Pollack — fixed-commit PetClinic case study
- Mark Pollack — PetClinic case-study write-up
- Agent Client Protocol introduction
- Mark Pollack — Agent Control Theory talk
- Andrew Ng — Agentic AI course
- Pollack AI Lab — Code Coverage v3: The Exemplar Effect
- Agent Client Protocol pending-permission requirement
- Java SDK failing evaluation
- Java SDK cancellation fix
- Java SDK passing rerun
- DevNexus biography for Mark Pollack
- Email correspondence with the show: Mark Pollack, AgentWorks and Agent Judge
If you supervise coding agents, what evidence changed the next run rather than merely scoring the last one? Email [email protected]. Use the subject line “The feedback loop caught this.” Anonymous notes and source-protection requests are welcome.