<?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: Stefanos Palyvos</title>
    <description>The latest articles on DEV Community by Stefanos Palyvos (@stefbuilds).</description>
    <link>https://dev.to/stefbuilds</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%2F4074769%2F7696a20e-bbdb-4ae3-b0da-7ab45ac33e70.jpg</url>
      <title>DEV Community: Stefanos Palyvos</title>
      <link>https://dev.to/stefbuilds</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stefbuilds"/>
    <language>en</language>
    <item>
      <title>How I caught an AI-generated Python regression that the tests missed -hackathon project</title>
      <dc:creator>Stefanos Palyvos</dc:creator>
      <pubDate>Wed, 12 Aug 2026 12:10:40 +0000</pubDate>
      <link>https://dev.to/stefbuilds/how-i-caught-an-ai-generated-python-regression-that-the-tests-missed-hackathon-project-hhn</link>
      <guid>https://dev.to/stefbuilds/how-i-caught-an-ai-generated-python-regression-that-the-tests-missed-hackathon-project-hhn</guid>
      <description>&lt;p&gt;The change was small, the diff looked sensible, and the existing tests passed.&lt;/p&gt;

&lt;p&gt;Then I tried an empty list.&lt;/p&gt;

&lt;p&gt;The original function returned []. The revised version returned None. Nothing immediately crashed, but code expecting a list had quietly received a different contract.&lt;/p&gt;

&lt;p&gt;That gap is why I built Cross‑Examine.&lt;/p&gt;

&lt;p&gt;Cross‑Examine is a verification harness for Python changes. Given a base Git revision and a proposed revision, it captures observed behavior from the base, then replays the same inputs against the changed code.&lt;/p&gt;

&lt;p&gt;When behavior differs, it preserves a receipt:&lt;/p&gt;

&lt;p&gt;Input: []&lt;br&gt;
Base output: []&lt;br&gt;
Head output: None&lt;br&gt;
Verdict: BROKEN&lt;/p&gt;

&lt;p&gt;The receipt includes the reproducing input, the exact command, and captured output from both revisions. It is meant to be something a developer can inspect and rerun, rather than a confidence score from a model.&lt;/p&gt;

&lt;p&gt;The model has a deliberately limited role. GPT‑5.6 proposes behavior worth checking through a constrained schema, but it cannot produce a verdict. Deterministic execution runs the comparison, and a pure aggregation step decides the result. Cross‑Examine also runs bounded, derandomized Hypothesis examples to look for counterexamples beyond the initial proposal.&lt;/p&gt;

&lt;p&gt;The idea is not that a tool can prove a PR correct. It is narrower: when an AI-generated change looks plausible and the tests are green, replay behavior that already existed and see whether the change still keeps its promises.&lt;/p&gt;

&lt;p&gt;Cross‑Examine is currently Python-only, supports a bounded set of call shapes, and should run only on repositories you trust. It executes target code, so it is not a sandbox. Those limits are intentional. An honest UNVERIFIABLE result is better than an unearned “safe.”&lt;/p&gt;

&lt;p&gt;I built it during OpenAI Build Week with Codex and GPT‑5.6. Codex helped implement the system. At runtime, GPT‑5.6 proposes checks, while deterministic code owns the verdict.&lt;/p&gt;

&lt;p&gt;The repository includes an offline demo that recreates the empty-list regression without an API key:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/stefbuilds/cross-examine" rel="noopener noreferrer"&gt;https://github.com/stefbuilds/cross-examine&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’d be interested in where behavior replay would help in your workflow, and where you would be cautious about relying on it.&lt;/p&gt;

&lt;h1&gt;
  
  
  Python #SoftwareTesting #DevTools #OpenSource #AI
&lt;/h1&gt;

</description>
      <category>debugging</category>
      <category>git</category>
      <category>python</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
