<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cecelia Turnbeau</title>
    <description>The latest articles on DEV Community by Cecelia Turnbeau (@ccbeau85).</description>
    <link>https://dev.to/ccbeau85</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4191213%2F845b28dd-38f0-4304-a8a4-14e40f6f3c30.png</url>
      <title>DEV Community: Cecelia Turnbeau</title>
      <link>https://dev.to/ccbeau85</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ccbeau85"/>
    <language>en</language>
    <item>
      <title>Your AI Coding Agent Passed the Tests. Did the Tests Actually Run?</title>
      <dc:creator>Cecelia Turnbeau</dc:creator>
      <pubDate>Tue, 20 Oct 2026 22:28:42 +0000</pubDate>
      <link>https://dev.to/ccbeau85/your-ai-coding-agent-passed-the-tests-did-the-tests-actually-run-4pg</link>
      <guid>https://dev.to/ccbeau85/your-ai-coding-agent-passed-the-tests-did-the-tests-actually-run-4pg</guid>
      <description>&lt;h1&gt;
  
  
  Your AI Coding Agent Passed the Tests. Did the Tests Actually Run?
&lt;/h1&gt;

&lt;p&gt;A coding agent finishes a task, runs pytest, and reports success.&lt;/p&gt;

&lt;p&gt;Exit code: &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Everything is green.&lt;/p&gt;

&lt;p&gt;But here's a question I've become increasingly interested in:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What exactly did that green result prove?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because there's a difference between a test suite passing and the intended verification actually taking place.&lt;/p&gt;

&lt;p&gt;And that distinction is becoming increasingly important as we delegate more software development to autonomous agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  I tried changing the evidence, not just the code
&lt;/h2&gt;

&lt;p&gt;While investigating coding-agent verification, I ran a small controlled experiment against a repository after a clean test run.&lt;/p&gt;

&lt;p&gt;I introduced five changes to see which ones the test suite would catch.&lt;/p&gt;

&lt;p&gt;Four of the five left the suite passing.&lt;/p&gt;

&lt;p&gt;Among the changes I examined:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A weakened assertion in a test file.&lt;/li&gt;
&lt;li&gt;A new &lt;code&gt;conftest.py&lt;/code&gt; at the repository root.&lt;/li&gt;
&lt;li&gt;A modified &lt;code&gt;pytest.ini&lt;/code&gt; that altered test collection.&lt;/li&gt;
&lt;li&gt;An implementation change that genuinely broke behavior.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The implementation failure turned the suite red.&lt;/p&gt;

&lt;p&gt;But several changes affecting what the tests asserted or executed still produced successful exit codes.&lt;/p&gt;

&lt;p&gt;That experiment wasn't a measurement of how frequently coding agents behave this way. These were deliberate changes designed to probe the verification boundary.&lt;/p&gt;

&lt;p&gt;What interested me was something more fundamental.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A successful test command is not automatically evidence that the intended test obligations were satisfied.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The test files aren't the entire verification system
&lt;/h2&gt;

&lt;p&gt;Developers often protect their acceptance tests from modification.&lt;/p&gt;

&lt;p&gt;That's sensible.&lt;/p&gt;

&lt;p&gt;But with pytest, the files in &lt;code&gt;tests/&lt;/code&gt; aren't the only things influencing what executes.&lt;/p&gt;

&lt;p&gt;Configuration and collection behavior matter too.&lt;/p&gt;

&lt;p&gt;For example, a repository-level &lt;code&gt;conftest.py&lt;/code&gt; can participate in pytest's collection process. A &lt;code&gt;pytest.ini&lt;/code&gt; can alter discovery settings. Plugins and environment configuration can also influence execution.&lt;/p&gt;

&lt;p&gt;Depending on the setup, those mechanisms can change what gets evaluated without modifying a protected test assertion.&lt;/p&gt;

&lt;p&gt;The important distinction is between:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Protecting the tests&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Protecting the authority that determines which tests execute.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Those aren't necessarily equivalent.&lt;/p&gt;

&lt;p&gt;And even protecting collection configuration isn't a complete solution. The interpreter, dependencies, environment variables, and loaded plugins can introduce additional assumptions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why an exit code isn't enough
&lt;/h2&gt;

&lt;p&gt;An exit code of zero tells you that the command completed successfully according to the rules of that execution.&lt;/p&gt;

&lt;p&gt;It doesn't, by itself, establish:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;That the expected tests were collected.&lt;/li&gt;
&lt;li&gt;That required tests actually executed rather than being skipped.&lt;/li&gt;
&lt;li&gt;That the expected assertions remained intact.&lt;/li&gt;
&lt;li&gt;That the execution environment matched the approved baseline.&lt;/li&gt;
&lt;li&gt;That the tests were sufficient to establish the requested behavior.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those are separate questions.&lt;/p&gt;

&lt;p&gt;And some require different kinds of evidence.&lt;/p&gt;

&lt;p&gt;For example, comparing collected test identifiers may catch missing tests, but identifiers alone won't reveal that a required test was skipped.&lt;/p&gt;

&lt;p&gt;Similarly, independently rerunning an unchanged test suite doesn't establish that its assertions represent the correct product requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Execution integrity and test adequacy are different problems.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We shouldn't confuse them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Independent verification has its own trust boundary
&lt;/h2&gt;

&lt;p&gt;A common response is to rerun the tests somewhere else.&lt;/p&gt;

&lt;p&gt;That's often the stronger approach.&lt;/p&gt;

&lt;p&gt;An independent CI runner or clean environment that the coding agent cannot modify can remove important opportunities for interference.&lt;/p&gt;

&lt;p&gt;But the boundary still needs to be defined carefully.&lt;/p&gt;

&lt;p&gt;Which repository revision gets evaluated?&lt;/p&gt;

&lt;p&gt;Which test definitions are authoritative?&lt;/p&gt;

&lt;p&gt;Can the agent change the configuration governing collection?&lt;/p&gt;

&lt;p&gt;Which dependencies and plugins are trusted?&lt;/p&gt;

&lt;p&gt;What happens when a legitimate task actually requires modifying the tests?&lt;/p&gt;

&lt;p&gt;Simply moving execution into another process doesn't answer every question. What matters is whether the verification authority is genuinely independent of the work being judged.&lt;/p&gt;

&lt;p&gt;And no matter how well that boundary is constructed, passing tests remain limited by what those tests were designed to detect.&lt;/p&gt;

&lt;h2&gt;
  
  
  There's also a human problem
&lt;/h2&gt;

&lt;p&gt;The more I've explored this, the more interested I've become in what happens after a verification system refuses to clear a change.&lt;/p&gt;

&lt;p&gt;Because a gate that catches interference but repeatedly demands unnecessary human investigation can create another bottleneck.&lt;/p&gt;

&lt;p&gt;Consider two situations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Situation A:&lt;/strong&gt; A required test was silently removed from execution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Situation B:&lt;/strong&gt; A legitimate, approved configuration update changed how tests are collected.&lt;/p&gt;

&lt;p&gt;Both may require withholding clearance until the verification basis is understood.&lt;/p&gt;

&lt;p&gt;But the developer shouldn't have to spend twenty minutes reconstructing the entire run to determine which situation occurred.&lt;/p&gt;

&lt;p&gt;The useful output isn't merely a red light.&lt;/p&gt;

&lt;p&gt;It's actionable evidence: what changed, what executed, what couldn't be established, and what requires approval.&lt;/p&gt;

&lt;p&gt;And this creates a second question worth measuring:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can independent verification reduce the human effort needed to accept agent-generated work, without weakening the checks that justify acceptance?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's a harder question than detecting one successful test-tampering example.&lt;/p&gt;

&lt;p&gt;It's also arguably the more commercially important one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'm building around this question
&lt;/h2&gt;

&lt;p&gt;I'm Cecelia Turnbeau, an attorney by professional background and the founder of &lt;a href="https://getclaragate.com/" rel="noopener noreferrer"&gt;ClaraGate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I've spent the past several months developing an independent verification approach for autonomous coding-agent workflows.&lt;/p&gt;

&lt;p&gt;The current alpha is deliberately narrow: it targets a defined OpenCode and Python/pytest workflow, independently reruns a designated test command using a declared interpreter, and checks a frozen verification surface.&lt;/p&gt;

&lt;p&gt;It does &lt;strong&gt;not&lt;/strong&gt; guarantee execution in a clean, agent-inaccessible clone. It does not certify test adequacy or prove code correctness.&lt;/p&gt;

&lt;p&gt;Those boundaries are important.&lt;/p&gt;

&lt;p&gt;The larger idea I'm exploring is that an agent's declaration of completion and the authority to accept its work should be separate things.&lt;/p&gt;

&lt;p&gt;But an architectural argument alone isn't sufficient to establish product value.&lt;/p&gt;

&lt;p&gt;That has to come from actual developer use.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I want to hear from developers
&lt;/h2&gt;

&lt;p&gt;I'm particularly interested in people using coding agents on real repositories, especially Python/pytest projects.&lt;/p&gt;

&lt;p&gt;Not what an ideal verification system &lt;em&gt;should&lt;/em&gt; do.&lt;/p&gt;

&lt;p&gt;What you're actually doing today.&lt;/p&gt;

&lt;p&gt;When your coding agent reports that a task is complete:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Do you independently rerun its tests, inspect the diff, rely on CI, or use another reviewer?&lt;/li&gt;
&lt;li&gt;Have you encountered a passing result where the wrong tests ran, tests were weakened, or important behavior wasn't checked?&lt;/li&gt;
&lt;li&gt;What part of verifying agent-generated work still consumes the most human attention?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And perhaps the most interesting question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If an independent verifier could establish that the designated checks ran against an intact verification basis, would that actually change your review workflow, or would it duplicate evidence you already trust?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm interested in both answers.&lt;/p&gt;

&lt;p&gt;If your existing setup already solves this effectively, I'd genuinely like to understand how.&lt;/p&gt;

&lt;p&gt;If it doesn't, I'd like to understand where the remaining burden lives.&lt;/p&gt;

&lt;p&gt;Because the goal shouldn't be to introduce another gate simply because we can.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The goal should be to make autonomous work more reliably acceptable, with evidence that justifies the decision.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm documenting this investigation through &lt;a href="https://getclaragate.com/insights/" rel="noopener noreferrer"&gt;ClaraGate Insights&lt;/a&gt;. I'm particularly interested in candid technical criticism and firsthand development workflows.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>devops</category>
      <category>python</category>
    </item>
  </channel>
</rss>
