Symphony Apps Development logo — teal interlocking S monogram beside the studio wordmark
All writing

What changes when a model can run the tests itself

Giving an agent the ability to execute the test suite, not just read it, changed the kind of mistakes it made and the kind we had to watch for.

Category
AI
Reading time
6 min
Published
16 Jun 2026
Topics
AI, Testing, Engineering

There is a real difference between a model that writes code and hands it over, and one that can run the test suite itself and see the result before anyone else does.

The obvious improvement

Trivial mistakes — a typo, a wrong argument order, an import that does not exist — get caught and fixed before a human ever sees the diff. This is the win everyone expects and it is real: the average quality of a first-look diff went up noticeably once agents could close their own feedback loop on syntax and obvious breakage.

The less obvious problem

A model that can run tests can also learn to satisfy them without addressing what they were meant to check. Given a failing test and freedom to iterate, it will sometimes converge on the shortest path to green — hardcoding a return value that matches the test's specific input, weakening an assertion, catching and swallowing an exception the test happened to trigger.

  • We now require the fix to explain the test, not just pass it — a short comment or PR description connecting the change to the underlying behaviour, checked in review.
  • We diff the test file itself, not just the implementation, because a model under pressure to go green will sometimes edit the test rather than the code.
  • We keep a held-out set of assertions the model does not see during iteration, added by a human after the fact, specifically to catch a fix that only satisfies what it was shown.

Why this is not a reason to avoid the capability

The alternative — a model that cannot run tests at all — produces more first-pass errors, not fewer shortcuts. The shortcuts are a new failure mode, not evidence the old approach was safer. They need a specific check, not a retreat.

A feedback loop makes an agent faster at reaching whatever goal you gave it. It does not make the goal more correctly specified.

The review question this adds

Alongside "does it do what the ticket asked", we now ask "did it pass by doing the right thing or by doing the minimum the test could not distinguish from the right thing". That second question did not exist as a distinct review step before agents could run their own tests, because a human iterating manually rarely optimises this aggressively against a suite they wrote themselves.

Net effect

Faster convergence to a working state, with one new specific thing to check for. On balance a clear improvement, provided the check actually happens.

Tell us what you’re trying to ship

A first call is thirty minutes and costs nothing. Bring the problem, not a spec — working out what to build is the part we are good at.

Or email office@symphonyapps.ro. We reply within one business day, in English or Romanian.