<?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: Tushar Tandon</title>
    <description>The latest articles on DEV Community by Tushar Tandon (@tushr).</description>
    <link>https://dev.to/tushr</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%2F4280717%2Fb280f98e-57d6-4983-a71a-d8f1865e341b.png</url>
      <title>DEV Community: Tushar Tandon</title>
      <link>https://dev.to/tushr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tushr"/>
    <language>en</language>
    <item>
      <title>Our CI agent fixed the bug. Then it put the bug back.</title>
      <dc:creator>Tushar Tandon</dc:creator>
      <pubDate>Sat, 05 Dec 2026 18:06:59 +0000</pubDate>
      <link>https://dev.to/tushr/our-ci-agent-fixed-the-bug-then-it-put-the-bug-back-23g7</link>
      <guid>https://dev.to/tushr/our-ci-agent-fixed-the-bug-then-it-put-the-bug-back-23g7</guid>
      <description>&lt;p&gt;wo hours before the end of a 72-hour hackathon, our CI agent fixed a bug taken from the history of a real Python library. Then it took its own fix back out.&lt;/p&gt;

&lt;p&gt;The library was &lt;a href="https://github.com/mahmoud/boltons" rel="noopener noreferrer"&gt;boltons&lt;/a&gt;, and the bug was in &lt;code&gt;SpooledStringIO.readline(0)&lt;/code&gt;, which should return an empty string and returned a whole line. prOwl, our agent, traced it to Python's codecs reader, which sizes a read as &lt;code&gt;size or 72&lt;/code&gt;. Zero is falsy, so a request for zero characters read up to 72. prOwl added an early &lt;code&gt;return ''&lt;/code&gt; for length zero and ran the suite. Our guard stopped the run (&lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/realbugs/traces/20261130-212257-be72-tests-fail-on-main-at-e6cf77b-add-regres/trace.jsonl#L27-L28" rel="noopener noreferrer"&gt;trace&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;policy: 621 tests ran but 623 ran earlier in this run; a fix may not remove or deselect tests
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent's next note:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The policy says only 621 tests ran this time versus 623 earlier, so I'll undo my change and rerun to see whether the drop comes from my edit.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It removed its fix, read the file back, and ran the suite again. The bug came back, and so did the count of 623. It worked out that the two "missing" tests had never been tests. It decided it couldn't prove that under the policy, and handed the fix to a person with the arithmetic written out (&lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/realbugs/traces/20261130-212257-be72-tests-fail-on-main-at-e6cf77b-add-regres/trace.jsonl#L29-L34" rel="noopener noreferrer"&gt;undo&lt;/a&gt; · &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/realbugs/traces/20261130-212257-be72-tests-fail-on-main-at-e6cf77b-add-regres/trace.jsonl#L35-L41" rel="noopener noreferrer"&gt;rerun&lt;/a&gt; · &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/realbugs/traces/20261130-212257-be72-tests-fail-on-main-at-e6cf77b-add-regres/outbox/escalation.md" rel="noopener noreferrer"&gt;handoff&lt;/a&gt;):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I reverted the change (confirmed at ioutils.py:462-466) and did not try to work around the policy.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent was right, and the guard was ours. It was also the third time in 30 hours that our own bookkeeping had counted the wrong thing.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR.&lt;/strong&gt; Three times in 30 hours, a guardrail in our agent counted a description of something instead of the thing itself. One broken commit became two pull requests. A Stop would have left a broken commit unfixed forever. A correct fix "lost" two tests that were never tests. The model was right every time. &lt;strong&gt;Count the thing itself, never a description of it.&lt;/strong&gt; Each section ends with a test you can run on your own agent.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is our Near Miss write-up for Agentware 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three counts, three wrong units
&lt;/h2&gt;

&lt;p&gt;An unattended agent's safety isn't only the model's judgment. Much of it is plain code that answers bookkeeping questions. Have we already handled this? Is that work finished? Did that test run prove anything? Each of our three near misses was one of those answers counting the wrong unit.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hour&lt;/th&gt;
&lt;th&gt;The count&lt;/th&gt;
&lt;th&gt;What it counted&lt;/th&gt;
&lt;th&gt;What it should have counted&lt;/th&gt;
&lt;th&gt;What nearly happened&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;open cases&lt;/td&gt;
&lt;td&gt;descriptions of a failure&lt;/td&gt;
&lt;td&gt;broken commits&lt;/td&gt;
&lt;td&gt;two identical PRs on GitHub, 51 s apart&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;69&lt;/td&gt;
&lt;td&gt;fixes in flight&lt;/td&gt;
&lt;td&gt;records saying "fix proposed"&lt;/td&gt;
&lt;td&gt;fixes that reached GitHub&lt;/td&gt;
&lt;td&gt;after a Stop, prOwl would skip a broken commit forever&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;70&lt;/td&gt;
&lt;td&gt;tests run&lt;/td&gt;
&lt;td&gt;lines in pytest's summary&lt;/td&gt;
&lt;td&gt;tests&lt;/td&gt;
&lt;td&gt;a correct fix blocked and undone&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"The model wasn't the problem" is a common conclusion after an agent nearly misbehaves, and it's too broad to act on. Ours is narrower, and you can test for it: each of these guards was a count, and each one counted a description instead of the thing.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Count the thing itself, never a description of it.&lt;/strong&gt; Not who noticed it, not how a log worded it, not what a status field claims.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What prOwl is
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/TushxrTxndon/prOwl/tree/4e3c12aff25c8057449614628fdf5b12e9072f53" rel="noopener noreferrer"&gt;prOwl&lt;/a&gt; is our Developer Workflow entry: a night shift for a repository with nobody on call. When &lt;code&gt;main&lt;/code&gt; breaks, prOwl reproduces the failure in a Docker sandbox with no network. It fixes the code (never the tests) under a guard enforced in code, re-tests the branch in a clean checkout, and opens a draft PR. It never merges or approves. Stop bumps a "kill epoch" that every loop and every GitHub write checks first. Every run writes a signed, hash-chained trace, and the agent's quotes in this post come from those traces.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/evUgXkHCHIk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Our 2:35 demo. A failed Actions run becomes &lt;a href="https://github.com/TushxrTxndon/prowl-playground/pull/8" rel="noopener noreferrer"&gt;draft PR #8&lt;/a&gt; in 38 seconds, and Stop cancels a second run 37 ms after the click.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Near miss 1: two pull requests for one broken commit (hour 40)
&lt;/h2&gt;

&lt;p&gt;On November 29 we pushed a commit called "Speed up percent_of with plain float math" to a fresh playground repository. It swapped a &lt;code&gt;Decimal&lt;/code&gt; calculation for &lt;code&gt;round(cents * float(rate) / 100)&lt;/code&gt;. Python's &lt;code&gt;round()&lt;/code&gt; rounds half to even, so 2.5 cents became 2, and two money tests failed.&lt;/p&gt;

&lt;p&gt;prOwl notices a broken &lt;code&gt;main&lt;/code&gt; in two ways, on purpose. &lt;strong&gt;Repo watch&lt;/strong&gt; runs the tests on every new commit, so it covers repositories without CI. &lt;strong&gt;Actions log ingestion&lt;/strong&gt; reads failed GitHub Actions runs. Both noticed commit &lt;code&gt;322591d&lt;/code&gt;, 47 seconds apart. Both runs found the cause, changed the same line, and passed the clean-checkout re-test.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Opened (UTC)&lt;/th&gt;
&lt;th&gt;Title&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/TushxrTxndon/prowl-playground/pull/2" rel="noopener noreferrer"&gt;PR #2&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;09:56:11&lt;/td&gt;
&lt;td&gt;Restore half-up rounding in percent_of (fixes CI &lt;strong&gt;on&lt;/strong&gt; 322591d)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/TushxrTxndon/prowl-playground/pull/4" rel="noopener noreferrer"&gt;PR #4&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;09:57:02&lt;/td&gt;
&lt;td&gt;Restore half-up rounding in percent_of (fixes CI &lt;strong&gt;at&lt;/strong&gt; 322591d)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;We had two layers of duplicate protection. Both counted descriptions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The case key included the detector.&lt;/strong&gt; Each event's ID was hashed from its type, repo, ref and &lt;em&gt;source&lt;/em&gt;. &lt;code&gt;sentinel:322591d&lt;/code&gt; and &lt;code&gt;github:actions/…&lt;/code&gt; are different sources, so one commit became two cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The failure signature depended on the log's formatting.&lt;/strong&gt; prOwl skips a failure whose signature (the sorted names of the failing tests) already has a fix open. Our pattern for test names was anchored at the start of a line. But &lt;code&gt;gh run view --log-failed&lt;/code&gt; puts the job, the step and a timestamp in front of every line.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pytest  Run python -m pytest -q 2026-11-29T09:55:30.3447682Z FAILED tests/test_pricing.py::test_bulk_discount_applies_at_threshold - assert 10000 == 9000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;The line shape our regression test replays: three tab-separated fields come before &lt;code&gt;FAILED&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So the Actions copy fell back to a hash of the log, and a hash never equals a list of test names. As far as prOwl could tell, no fix was open.&lt;/p&gt;

&lt;p&gt;The fix, commit &lt;a href="https://github.com/TushxrTxndon/prOwl/commit/ae51093e6cb6c3766ee1645ac3588b4e307c25a6" rel="noopener noreferrer"&gt;&lt;code&gt;ae51093&lt;/code&gt;&lt;/a&gt;, landed 43 minutes after PR #4. It strips the prefix and keys a CI failure on the commit, whoever noticed it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# a failing commit is one case, whether repo watch or GitHub Actions noticed it first&lt;/span&gt;
&lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"ci_failure"&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/test_github.py#L770" rel="noopener noreferrer"&gt;regression test&lt;/a&gt; sends the same commit from both detectors and asserts that one case is queued. A person marked PR #2 ready and merged it. We closed PR #4 with a comment linking the fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it on your agent:&lt;/strong&gt; send one event through every detector you have, and count the cases. A new detector adds a new description of the same thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Near miss 2: zero fixes after a Stop (hour 69)
&lt;/h2&gt;

&lt;p&gt;By hour 69 the kill switch was the part we trusted most, so we tried to break it properly. One complete fix-and-publish run writes 19 trace events. &lt;code&gt;prowl stopsweep&lt;/code&gt; runs the case 19 times from scratch, pressing Stop right after event N on run N. Then it presses Resume and lets the watcher look at the same commit again. A stop point passes only if nothing is written after Stop, no orphan branch is left, the trace is intact, and the remote ends with exactly one draft PR. Never zero, never two. (The model's decisions are scripted in the sweep; everything else is real except GitHub, as the limits below explain.)&lt;/p&gt;

&lt;p&gt;The first sweep failed at 3 of 19 points, all between the agent finishing and the draft PR landing. Two of them were the near miss: Stop right after the clean-checkout re-test (#15), and Stop after the push but before the draft PR (#17). In both, the run had already been recorded as "fix proposed". Nothing was published and nothing looked wrong. But the rule that decides whether to work on a commit is &lt;em&gt;skip it if a fix was already proposed&lt;/em&gt;, the same duplicate rule we had tightened at hour 40. It would have believed the record and skipped that broken commit forever. The third failure (#16) was the reverse: a push that never started was marked "delivery uncertain".&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A dedupe rule is a promise that an earlier attempt finished.&lt;/strong&gt; Find the record it trusts, and check everything that can write that record: Stop, crashes, retries.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now a run stopped before its draft PR reaches GitHub is recorded as &lt;em&gt;stopped&lt;/em&gt;, and the watcher retries it after Resume. Any unpushed branch is removed. If Stop lands after the PR was delivered (#19), the record stands, and Resume opens no second PR. &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/sweep/RESULTS.md" rel="noopener noreferrer"&gt;Sweep: 19 of 19&lt;/a&gt; · &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/test_stop_publish.py" rel="noopener noreferrer"&gt;regression tests&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A crash gives the code no chance to clean up. An hour later, &lt;code&gt;prowl crashtest&lt;/code&gt; killed the real watcher process with SIGKILL at five points. One was just after GitHub accepted the draft PR, before prOwl had recorded it. Because prOwl journals every GitHub write before making it, and reconciles on restart with read-only lookups, GitHub never received a second draft PR at any of the five points. A delivery it can't confirm waits for a person. &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/restart/RESULTS.md" rel="noopener noreferrer"&gt;Crash test: 5 of 5&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it on your agent:&lt;/strong&gt; press Stop after every event of one full run, not just once, and count the side effects after Resume. Then &lt;code&gt;kill -9&lt;/code&gt; it the moment the remote says yes. When you don't know whether a write landed, look; don't retry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Near miss 3: two tests that were never missing (hour 70)
&lt;/h2&gt;

&lt;p&gt;Back to boltons. To test prOwl on code we had never seen, we rebuilt ten historical bug fixes from it. Each case is the commit before the upstream fix, plus only the tests that fix introduced. A case passes only if prOwl proposes a fix on its own branch, touches no test file, and the &lt;strong&gt;entire upstream suite&lt;/strong&gt; (600+ tests) passes in a clean checkout. Everything ran locally in Docker with no network, and nothing was posted upstream. &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/realbugs/RESULTS.md" rel="noopener noreferrer"&gt;Benchmark&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The guard came from a teammate's review at hour 17. The cheapest way for an agent to turn CI green is to make tests stop running. So prOwl remembers the largest test count it has seen in a run, and it won't verify a passing run below that count. The comment in our code says why: &lt;code&gt;a "pass" that ran fewer tests than before proves nothing&lt;/code&gt;. &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/prowl/tools.py#L1199-L1215" rel="noopener noreferrer"&gt;Guard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But boltons uses pytest subtests.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;State of the library&lt;/th&gt;
&lt;th&gt;What pytest reported&lt;/th&gt;
&lt;th&gt;What our guard counted&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Broken&lt;/td&gt;
&lt;td&gt;&lt;code&gt;2 failed, 621 passed, 20 subtests passed&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;623&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed&lt;/td&gt;
&lt;td&gt;&lt;code&gt;621 passed, 22 subtests passed&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;621&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both failures were subtests of one test, &lt;code&gt;test_readline_zero_length&lt;/code&gt;: one ran in memory (&lt;code&gt;rolled=False&lt;/code&gt;) and one after rollover to disk (&lt;code&gt;rolled=True&lt;/code&gt;). The parent test was already among the 621, and pytest reports each failing subtest as an extra failure on top of it. When the subtests passed, they moved to the separate "subtests passed" column, which our parser ignored. Our guard was counting entries in pytest's summary, not tests.&lt;/p&gt;

&lt;p&gt;What the agent did next is the behaviour we most want to keep. It didn't retry, reword its fix, or touch the tests. It treated the guard's message as a claim it could check: undo, rerun, compare. Even when that check suggested the guard was miscounting, it didn't overrule the guard:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I can't verify this under policy, so escalate with the fix.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That choice cost us in our own numbers, and that's how we found the bug. We scored the benchmark on verified repairs, not on obedience, so the first pass went down as &lt;strong&gt;9 of 10&lt;/strong&gt;. The final status, &lt;code&gt;escalated&lt;/code&gt;, looks like an ordinary miss, but the trace shows the fault was in our code. So make "stop and ask, with evidence" a real outcome, and count it as a miss: then a broken guard shows up in your numbers. &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/realbugs/results.json#L2-L25" rel="noopener noreferrer"&gt;Both attempts&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We fixed the count where prOwl reads pytest output. It now subtracts the &lt;code&gt;SUBFAILED&lt;/code&gt; and &lt;code&gt;SUBERROR&lt;/code&gt; records from the summary total, and the rule against a shrinking suite stays. Three regression tests pin it down (&lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/test_subtests_count.py" rel="noopener noreferrer"&gt;tests&lt;/a&gt; · &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/prowl/tools.py#L177-L185" rel="noopener noreferrer"&gt;parser&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The real broken and fixed reports must both count as &lt;strong&gt;621&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;620 passed, 22 subtests passed&lt;/code&gt; must still count as fewer tests.&lt;/li&gt;
&lt;li&gt;An ordinary &lt;code&gt;1 failed, 8 passed&lt;/code&gt; must still count as &lt;strong&gt;9&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Eight minutes after the handoff, the case ran again from scratch. prOwl proposed the same early &lt;code&gt;return ''&lt;/code&gt; on its own branch, and a clean checkout passed the full boltons suite. That made &lt;strong&gt;10 of 10&lt;/strong&gt;, and both attempts stay in the results. &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/tests/realbugs/traces/20261130-213231-d6f7-tests-fail-on-main-at-e77a515-add-regres/trace.jsonl#L33-L36" rel="noopener noreferrer"&gt;Verified re-run&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One limit remains. Our guard compares two numbers. If one test disappears and a different one appears, the count stays level. If your promise is "the same tests ran", compare test IDs, not totals.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it on your agent's guard:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Give it a real failing report and its fixed twin. It must accept the fix.&lt;/li&gt;
&lt;li&gt;Take one test out of the fixed report. It must block.&lt;/li&gt;
&lt;li&gt;Swap one test for a different one. If it still accepts, your guard counts tests but can't tell which tests ran.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we haven't proved
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stop can't recall a write GitHub already accepted.&lt;/strong&gt; It prevents every later write, but a PR that landed before the click stays up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Stop sweep and the crash test script the model's decisions,&lt;/strong&gt; and in them GitHub is a local remote with a counting transport. Our live GitHub evidence is PR #2 and PR #4, the demo's PR #8, and the 37 ms Stop followed by &lt;a href="https://github.com/TushxrTxndon/prowl-playground/pull/9" rel="noopener noreferrer"&gt;PR #9&lt;/a&gt; after Resume.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An unconfirmed delivery after a crash waits for a person.&lt;/strong&gt; We chose blocking over guessing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The corpus is small:&lt;/strong&gt; one playground repository, and ten bugs from one library. boltons is public, so its fixes may be in a model's training data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Check it yourself
&lt;/h2&gt;

&lt;p&gt;You need Git and Python 3.12 or newer. It costs $0, with no API key and no GitHub account. The README has the same &lt;a href="https://github.com/TushxrTxndon/prOwl/blob/4e3c12aff25c8057449614628fdf5b12e9072f53/README.md#L93-L104" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/TushxrTxndon/prOwl.git &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; prOwl
git checkout --detach 4e3c12aff25c8057449614628fdf5b12e9072f53
python -m venv .venv &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; . .venv/bin/activate      &lt;span class="c"&gt;# Windows: .venv\Scripts\activate&lt;/span&gt;
python -m pip install --require-hashes -r requirements.lock
python -m prowl judge
python -m pytest -q tests/test_subtests_count.py tests/test_stop_publish.py &lt;span class="s2"&gt;"tests/test_github.py::test_one_ci_case_per_commit_whoever_notices_it"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;judge&lt;/code&gt; replays our evaluation scenarios against the real tools, verifies every committed trace and prints a scorecard. The last command runs the regression tests for all three near misses. &lt;code&gt;python -m prowl audit &amp;lt;path to trace.jsonl&amp;gt;&lt;/code&gt; checks that a trace hasn't been edited. Every code and trace link in this post points at our submitted commit, &lt;a href="https://github.com/TushxrTxndon/prOwl/tree/4e3c12aff25c8057449614628fdf5b12e9072f53" rel="noopener noreferrer"&gt;&lt;code&gt;4e3c12a&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built in 72 hours for &lt;a href="https://agentwarehack.com/" rel="noopener noreferrer"&gt;Agentware 2026&lt;/a&gt;, run by Hackathon Raptors (@raptorsdev). We wrote prOwl with Claude Code as our pair programmer, and the boltons benchmark ran Claude Opus through Claude Code. The bugs in this post were ours. Thanks to &lt;a href="https://fileclerk.co.uk/" rel="noopener noreferrer"&gt;FileClerk&lt;/a&gt; for sponsoring the Near Miss write-up awards.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>hackathonraptors</category>
      <category>ai</category>
      <category>devops</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
