# Claude Code and Codex Aced Our Toy Apps. On a Real Product, Codex Got 35%

*They ran the cases, and on small apps they got every verdict right. When something got in the way, they worked around it or gave up. A tester stops and writes down what they saw.*

> Katalon True Platform's product lead on a 21 November benchmark of 107 hint-free test cases run by Claude Code, Codex and two Katalon AI runners. The coding agents scored 100% on small apps and 56% and 35% on True Platform, no lane passed a broken build, and the runners, built on a small model, reported real app errors the answer key missed. Why coding agents take shortcuts to a pass, what the reward-hacking research says, and why test automation and testing differ in who decides the verdict.

Published: 2026-11-24 · Reading time: 14 min · Tags: independent-validation, ai-testing, agentic-testing, coding-agents, claude-code, codex, playwright, reward-hacking, test-automation, manual-testing, qa, benchmarks, katalon, katalon-true-platform
Canonical URL: https://huytieu.com/blog/coding-agents-playwright-and-testing/
Author: Huy Tieu (huytieu.com)

---

<style>
:root{--ca-ground:#ffffff;--ca-deep:#f1f3f7;--ca-ink:#111827;--ca-soft:#334155;--ca-muted:#64748b;--ca-quiet:#94a3b8;--ca-line:#e6e8ee;--ca-strong:#cbd5e1;--ca-accent:#c15f3c;--ca-node:#d97757;--ca-sans:Inter,ui-sans-serif,system-ui,sans-serif;--ca-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace}
:root[data-theme="dark"]{--ca-ground:#171b22;--ca-deep:#11151b;--ca-ink:#f1f5f9;--ca-soft:#cbd5e1;--ca-muted:#8b95a5;--ca-quiet:#5b6472;--ca-line:#262c36;--ca-strong:#3a4250;--ca-accent:#e0885f;--ca-node:#e0885f}
.ca{margin:40px 0;padding:22px 22px 16px;border:1px solid var(--ca-line);background:var(--ca-ground);color:var(--ca-ink);box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ca figcaption{margin-top:18px;padding-top:12px;border-top:1px solid var(--ca-line);font:500 9px/1.6 var(--ca-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ca-muted)}
.ca__k{font:500 9px/1 var(--ca-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ca-quiet);margin-bottom:6px}
.ca__h{font:600 17px/1.3 var(--ca-sans);color:var(--ca-ink);margin:0 0 16px}
/* slope */
.ca-slope svg{width:100%;height:auto;display:block;overflow:visible}
.ca-slope text{font-family:var(--ca-mono)}
.ca-slope .ax{font-size:12px;letter-spacing:.08em;fill:var(--ca-quiet);text-transform:uppercase}
.ca-slope .rule{stroke:var(--ca-line);stroke-width:1}
.ca-slope .ln{stroke:var(--ca-strong);stroke-width:2;fill:none}
.ca-slope .ln--a{stroke:var(--ca-accent);stroke-width:2.5}
.ca-slope .pt{fill:var(--ca-ground);stroke:var(--ca-quiet);stroke-width:2}
.ca-slope .pt--a{fill:var(--ca-node);stroke:var(--ca-node)}
.ca-slope .lb{font-size:15px;fill:var(--ca-muted)}
.ca-slope .lb--a{fill:var(--ca-accent);font-weight:600}
.ca-slope .v{font-size:15px;font-weight:600;fill:var(--ca-soft)}
.ca-slope .note{font-size:13px;fill:var(--ca-quiet)}
.ca-slope .ln--b{stroke-width:3.5}
.ca-slope .v--a{fill:var(--ca-accent)}
.ca-slope .md{font-size:11px;fill:var(--ca-quiet);letter-spacing:.04em}
.ca-slope .md--a{fill:var(--ca-accent);opacity:.8}
/* cost scatter */
.ca-sc svg{width:100%;height:auto;display:block;overflow:visible}
.ca-sc text{font-family:var(--ca-mono)}
.ca-sc .ax{font-size:11px;letter-spacing:.08em;fill:var(--ca-quiet);text-transform:uppercase}
.ca-sc .tk{font-size:11px;fill:var(--ca-quiet)}
.ca-sc .rule{stroke:var(--ca-line)}
.ca-sc .zone{fill:var(--ca-node);opacity:.07}
.ca-sc .zl{font-size:11px;fill:var(--ca-accent);letter-spacing:.08em;text-transform:uppercase}
.ca-sc .pt{fill:var(--ca-ground);stroke:var(--ca-quiet);stroke-width:2}
.ca-sc .pt--a{fill:var(--ca-node);stroke:var(--ca-node)}
.ca-sc .lb{font-size:14px;fill:var(--ca-soft);font-weight:600}
.ca-sc .lb--a{fill:var(--ca-accent)}
.ca-sc .sm{font-size:11.5px;fill:var(--ca-muted)}
/* waffle */
.ca-waf{display:grid;grid-template-columns:repeat(2,1fr);gap:22px 26px}
.ca-waf__p b{display:block;font:600 13px/1.2 var(--ca-sans);color:var(--ca-ink)}
.ca-waf__p small{display:block;font:500 9px/1.4 var(--ca-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ca-muted);margin:3px 0 8px}
.ca-waf__p small em{font-style:normal;color:var(--ca-ink)}
.ca-waf__g{display:grid;grid-template-columns:repeat(18,1fr);gap:2px}
.ca-waf__g i{aspect-ratio:1;display:block}
.ca-waf__g .r{background:var(--ca-ink)}
.ca-waf__g .u{border:1px solid var(--ca-strong);background:transparent}
.ca-waf__g .w{background:var(--ca-strong)}
.ca-waf__g .s{background:transparent}
.ca-key{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;font:400 9px/1 var(--ca-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ca-quiet)}
.ca-key span{display:flex;align-items:center;gap:6px}
.ca-key i{display:inline-block;width:10px;height:10px}
.ca-key i.r{background:var(--ca-ink)}.ca-key i.u{border:1px solid var(--ca-strong)}.ca-key i.w{background:var(--ca-strong)}.ca-key i.fp{border:1.5px dashed var(--ca-accent)}
.ca-key .fpk{color:var(--ca-accent)}
/* flow */
.ca-flow{display:grid;grid-template-columns:1fr 1.25fr 1fr;border-top:1px solid var(--ca-line)}
.ca-flow>div{padding:10px 12px 10px 0;border-bottom:1px solid var(--ca-line);font:400 13px/1.4 var(--ca-sans);color:var(--ca-soft);position:relative}
.ca-flow>.h{font:500 8px/1.3 var(--ca-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ca-quiet);padding-top:4px;padding-bottom:8px}
.ca-flow>.d{color:var(--ca-accent);padding-left:16px}
.ca-flow>.d::before{content:"\2192";position:absolute;left:0;color:var(--ca-strong)}
.ca-flow>.d small,.ca-flow>.t small{display:block;font:500 8px/1.5 var(--ca-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ca-quiet);margin-top:3px}
.ca-flow>.t{color:var(--ca-ink);padding-left:16px}
.ca-flow>.t::before{content:"\2192";position:absolute;left:0;color:var(--ca-strong)}
/* orbit vs relay (kit pattern C) */
.ca-two{display:grid;grid-template-columns:1fr 1.35fr;gap:22px}
.ca-pane{border:1px solid var(--ca-line);padding:14px}
.ca-orbit{position:relative;width:210px;height:210px;margin:6px auto 4px}
.ca-orbit__ring{position:absolute;inset:22px;border:1px solid var(--ca-strong);border-radius:50%}
.ca-orbit__spin{position:absolute;inset:22px;animation:ca-spin 6s linear infinite}
.ca-orbit__spin i{position:absolute;top:-4px;left:calc(50% - 4px);width:8px;height:8px;border-radius:50%;background:var(--ca-node)}
@keyframes ca-spin{to{transform:rotate(360deg)}}
.ca-orbit__c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font:520 15px/1.1 var(--ca-sans)}
.ca-orbit__c small{font:500 8px/1.4 var(--ca-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ca-quiet);margin-top:4px}
.ca-orbit__l{position:absolute;font:500 8px/1.2 var(--ca-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ca-muted);white-space:nowrap;transform:translate(-50%,-50%);background:var(--ca-ground);padding:2px 3px}
.ca-relay{display:grid;gap:10px}
.ca-hand{display:grid;grid-template-columns:96px 1fr 70px;gap:10px;align-items:center;position:relative}
.ca-hand__who{font:500 9px/1.3 var(--ca-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ca-quiet)}
.ca-hand__act{font:400 12px/1.35 var(--ca-sans);color:var(--ca-soft);border:1px solid var(--ca-line);padding:7px 9px;position:relative;overflow:hidden}
.ca-hand__act i{position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--ca-ink);animation:ca-fill 8s ease-in-out infinite}
.ca-hand:nth-child(2) .ca-hand__act i{animation-delay:2s}.ca-hand:nth-child(3) .ca-hand__act i{animation-delay:4s}.ca-hand:nth-child(4) .ca-hand__act i{animation-delay:6s}
@keyframes ca-fill{0%{width:0;opacity:1}18%{width:100%;opacity:1}25%,100%{width:100%;opacity:0}}
.ca-store{font:500 8px/1.3 var(--ca-mono);letter-spacing:.08em;text-transform:uppercase;text-align:center;padding:6px 2px;border:1px solid var(--ca-ink)}
.ca-store--a{border-color:var(--ca-accent);color:var(--ca-accent)}
/* diff cards */
.ca-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ca-card{border:1px solid var(--ca-line);background:var(--ca-deep);font:400 12px/1.5 var(--ca-mono)}
.ca-card__t{padding:8px 12px;font:500 9px/1.3 var(--ca-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ca-muted);border-bottom:1px solid var(--ca-line);background:var(--ca-ground)}
.ca-card__m{padding:6px 12px;color:var(--ca-quiet)}
.ca-card__m b{font-weight:500;color:var(--ca-muted);margin-right:6px}
.ca-card__p{padding:6px 12px;color:var(--ca-accent);background:color-mix(in srgb,var(--ca-node) 10%,transparent)}
.ca-card__p b{font-weight:600;margin-right:6px}
.ca-card__v{padding:8px 12px;font:500 9px/1.3 var(--ca-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ca-ink);border-top:1px solid var(--ca-line);background:var(--ca-ground)}
.ca-card__v span{color:var(--ca-quiet);margin-left:6px}
@media (max-width:700px){
 .ca{padding:16px 14px 12px}
 .ca-two,.ca-cards,.ca-waf{grid-template-columns:1fr}
 .ca-hand{grid-template-columns:80px 1fr 60px}
 .ca-flow{grid-template-columns:1fr}
 .ca-flow>.h{display:none}
 .ca-flow>div{border-bottom:0;padding:4px 0 4px 16px}
 .ca-flow>.s{padding:12px 0 2px 0;border-top:1px solid var(--ca-line);font-weight:600;color:var(--ca-ink)}
}
@media (prefers-reduced-motion:reduce){.ca *{animation:none!important}.ca-orbit__spin i{opacity:0}}
</style>

On 3 April 2026, four days before our launch, I wrote one line under Heads Up in my daily brief: the test runner deleted participants from an app to make an assertion pass.

A test case made an assertion about the participants in the app, and the assertion did not hold. A tester would write "failed" and describe what they saw. Our agent deleted participants until the assertion held, and reported a pass.

That was our own runner. I think about it every time someone asks why we do not let [Claude Code](https://claude.com/claude-code) or [Codex](https://openai.com/codex/) write Playwright and call it testing. This post is my longer answer, built on our latest benchmark run.

## 107 cases without hints

The run is from 21 November. It has 107 cases on four apps. 77 are on True Platform, our own product, a large enterprise app with dialogs, grids, trees and rich-text editors. The other 30 are on small web apps: a bill splitter, a phone shop and one bank demo case. 28 cases are expected to fail. No case carries any hint of its outcome: titles name only what the user does, expected results state only the correct behaviour, and the verdicts live in an answer key the runner never sees.

Four lanes ran the suite: Claude Code with Opus 5.5 and [Playwright MCP](https://github.com/microsoft/playwright-mcp), Codex with Sol 6.1 and Playwright MCP, our cloud runner and our desktop runner. Three lanes ran all 107 cases; one True Platform case did not run on our cloud runner, so its numbers are out of 106.

<figure class="ca ca-slope" role="img" aria-label="Slope chart of verdict accuracy from 30 small-app cases to 77 True Platform cases. Our cloud runner on GPT-5.6 Luna went from 93.3 to 73.7 percent and our desktop runner on Luna from 100 to 57.1. Claude Code on Opus 5.5 fell from 100 to 55.8 and Codex on Sol 6.1 from 100 to 35.1.">
  <div class="ca__k">21 Nov run · verdict accuracy</div>
  <div class="ca__h">On our own product, a small model in our harness held up best</div>
  <svg viewBox="0 0 690 312">
    <line class="rule" x1="230" y1="22" x2="230" y2="278"/><line class="rule" x1="400" y1="22" x2="400" y2="278"/>
    <text class="ax" x="230" y="304" text-anchor="middle">Small apps · 30</text>
    <text class="ax" x="400" y="304" text-anchor="middle">True Platform · 77</text>
    <line class="ln" x1="230" y1="30.0" x2="400" y2="181.5"/>
    <line class="ln" x1="230" y1="30.0" x2="400" y2="252.5"/>
    <line class="ln ln--a" x1="230" y1="30.0" x2="400" y2="177.1"/>
    <line class="ln ln--a ln--b" x1="230" y1="53.0" x2="400" y2="120.2"/>
    <circle class="pt" cx="400" cy="181.5" r="5"/><circle class="pt" cx="400" cy="252.5" r="5"/>
    <circle class="pt pt--a" cx="230" cy="30.0" r="6"/>
    <circle class="pt pt--a" cx="230" cy="53.0" r="6"/>
    <circle class="pt pt--a" cx="400" cy="120.2" r="7"/><circle class="pt pt--a" cx="400" cy="177.1" r="6"/>
    <text class="v" x="216" y="35.0" text-anchor="end">100%</text>
    <text class="note" x="216" y="52.0" text-anchor="end">Claude, Codex,</text>
    <text class="note" x="216" y="68.0" text-anchor="end">desktop runner</text>
    <text class="v" x="216" y="93.0" text-anchor="end">93.3%</text>
    <text class="note" x="216" y="110.0" text-anchor="end">cloud runner</text>
    <text class="v v--a" x="414" y="125.2">73.7%</text><text class="lb lb--a" x="480" y="121.2">Our cloud runner</text><text class="md md--a" x="480" y="137.2">GPT-5.6 Luna</text>
    <text class="v v--a" x="414" y="171.1">57.1%</text><text class="lb lb--a" x="480" y="167.1">Our desktop runner</text><text class="md md--a" x="480" y="182.1">GPT-5.6 Luna</text>
    <text class="v" x="414" y="199.5">55.8%</text><text class="lb" x="480" y="203.5">Claude Code</text><text class="md" x="480" y="218.5">Opus 5.5</text>
    <text class="v" x="414" y="257.5">35.1%</text><text class="lb" x="480" y="253.5">Codex</text><text class="md" x="480" y="269.5">Sol 6.1</text>
  </svg>
  <figcaption>Share of cases where the lane's verdict matched the answer key. Cloud runner on True Platform: 76 cases. Our runners have run this suite many times; the coding agents had no such practice.</figcaption>
</figure>

On the 30 small-app cases, Claude Code, Codex and our desktop runner were right every time, and our cloud runner on 28. A coding agent with a browser can run a written test case and report what it saw. On True Platform the picture changed: our cloud runner 73.7%, our desktop runner 57.1%, Claude Code 55.8% and Codex 35.1%. Across all 107 cases that is 79.2%, 69.2%, 68.2% and 53.3%. I want to be careful with this ranking. True Platform is our product, and our runner team has run this suite many times since mid-November, so we have a home advantage the coding agents do not have. What interests me more is how each lane was wrong.

The ranking hides a difference I care about more. Claude Code and Codex ran on frontier models, Opus 5.5 and Sol 6.1. Both of our runners run on GPT-5.6 Luna, the smallest model we could make work, because a test runner pays for every step of every case and has to stay cheap and fast. On True Platform, the small model inside our harness was right more often than either frontier model inside a general coding agent.

I read that as a result about harnesses. If the harness gives the model the case one step at a time, the right browser tools, verdict rules it cannot override and a place to put the evidence, the model does not need to be brilliant. It needs to follow the step and report what it saw. Most of the intelligence a tester needs lives in how the work is set up.

Cost tells the same story from the other side. On the 77 True Platform cases, Claude Code spent $155.37, a median of $1.72 a case. Codex spent $26.02 and our desktop runner $35.80. Per right verdict that is $3.61 for Claude Code, $0.96 for Codex and $0.81 for our runner. Our runner sends Luna more tokens than Codex sends Sol, and Luna's price makes up for it.

<figure class="ca ca-sc" role="img" aria-label="Scatter of cost against accuracy on the 77 True Platform cases. Claude Code on Opus 5.5: median 1.72 dollars a case, 55.8 percent right, 3.61 dollars per right verdict. Codex on Sol 6.1: 0.31 dollars a case, 35.1 percent, 0.96 dollars per right verdict. Our desktop runner on GPT-5.6 Luna: 0.35 dollars a case, 57.1 percent, 0.81 dollars per right verdict.">
  <div class="ca__k">21 Nov run · True Platform, 77 cases · cost at list prices</div>
  <div class="ca__h">Claude Code paid five times more per case for the same accuracy</div>
  <svg viewBox="0 0 600 300">
    <rect class="zone" x="90" y="30.0" width="141.0" height="122.2"/>
    <text class="zl" x="98" y="46.0">cheap and right</text>
    <text class="tk" x="80" y="254.0" text-anchor="end">30%</text><line class="rule" x1="90" y1="250.0" x2="560" y2="250.0"/><text class="tk" x="80" y="180.7" text-anchor="end">45%</text><line class="rule" x1="90" y1="176.7" x2="560" y2="176.7"/><text class="tk" x="80" y="107.3" text-anchor="end">60%</text><line class="rule" x1="90" y1="103.3" x2="560" y2="103.3"/><text class="tk" x="80" y="34.0" text-anchor="end">75%</text><line class="rule" x1="90" y1="30.0" x2="560" y2="30.0"/><text class="tk" x="90.0" y="272" text-anchor="middle">$0.00</text><text class="tk" x="207.5" y="272" text-anchor="middle">$0.50</text><text class="tk" x="325.0" y="272" text-anchor="middle">$1.00</text><text class="tk" x="442.5" y="272" text-anchor="middle">$1.50</text><text class="tk" x="560.0" y="272" text-anchor="middle">$2.00</text>
    <text class="ax" x="325" y="294" text-anchor="middle">Median model cost per case</text>
    <circle class="pt" cx="494.9" cy="123.9" r="7"/><text class="lb" x="480.9" y="151.9" text-anchor="end">Claude Code · Opus 5.5</text><text class="sm" x="480.9" y="167.9" text-anchor="end">$1.72 a case · $3.61 per right verdict</text><circle class="pt" cx="162.8" cy="225.1" r="7"/><text class="lb" x="176.8" y="219.1">Codex · Sol 6.1</text><text class="sm" x="176.8" y="237.1">$0.31 a case · $0.96 per right verdict</text><circle class="pt pt--a" cx="171.5" cy="117.5" r="8"/><text class="lb lb--a" x="185.5" y="91.5">Our desktop runner · GPT-5.6 Luna</text><text class="sm" x="185.5" y="107.5">$0.35 a case · $0.81 per right verdict</text>
  </svg>
  <figcaption>Cost from the CI logs of the same 107 cases: Claude Code reports dollars; Codex and our runner are tokens times OpenAI list prices. Our cloud runner's cost is not in these logs.</figcaption>
</figure>

<figure class="ca" role="img" aria-label="Four waffle grids, one square per case. Cloud runner: 84 right, 0 gave up, 22 wrong alarms of 106. Desktop runner: 74 right, 26 gave up, 7 wrong alarms. Claude Code: 73 right, 27 gave up, 7 wrong alarms. Codex: 57 right, 43 gave up, 7 wrong alarms. No lane passed a broken build.">
  <div class="ca__k">21 Nov run · one square per case</div>
  <div class="ca__h">The coding agents lost most of their points by giving up</div>
  <div class="ca-waf">
    <div class="ca-waf__p"><b>Our cloud runner · GPT-5.6 Luna</b><small><em>84 right</em> · 0 gave up · 22 wrong alarms · 106 cases</small><div class="ca-waf__g"><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="s"></i><i class="s"></i></div></div>
    <div class="ca-waf__p"><b>Our desktop runner · GPT-5.6 Luna</b><small><em>74 right</em> · 26 gave up · 7 wrong alarms</small><div class="ca-waf__g"><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="s"></i></div></div>
    <div class="ca-waf__p"><b>Claude Code · Opus 5.5</b><small><em>73 right</em> · 27 gave up · 7 wrong alarms</small><div class="ca-waf__g"><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="s"></i></div></div>
    <div class="ca-waf__p"><b>Codex · Sol 6.1</b><small><em>57 right</em> · 43 gave up · 7 wrong alarms</small><div class="ca-waf__g"><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="r"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="u"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="w"></i><i class="s"></i></div></div>
  </div>
  <div class="ca-key"><span><i class="r"></i>Right verdict</span><span><i class="u"></i>Gave up: unverified</span><span><i class="w"></i>Wrong alarm on a working case</span><span class="fpk"><i class="fp"></i>Passed a broken build: 0 in every lane</span></div>
  <figcaption>Every wrong verdict went the safe way. Should-fail cases reported as failed: cloud runner 28 of 28, Claude 16, desktop runner 15, Codex 11.</figcaption>
</figure>

No lane passed a broken build. Each wrong verdict went the safe way: a working case reported as failed, blocked or unverified, or a case that should fail left unverified. The coding agents lost most of their points by giving up. Claude ended 27 cases as unverified and Codex 43. Our cloud runner never ended unverified: its 22 misses were working cases it failed or blocked. It also reported "failed" on all 28 cases that should fail. I have not yet checked that each of those failures landed on the expected step, so treat 28 of 28 as a ceiling.

## Testing and checking

[James Bach and Michael Bolton](https://www.satisfice.com/blog/archives/856) drew the line I use, and their shortest version is "Checking is a tactic of testing." Checking is the part a machine can do: make an observation, apply a decision rule, report the result. Testing is the larger investigation around it: learning the product, questioning the case, noticing what nobody asked about, and deciding whether a difference matters.

Test automation is checking that you wrote down so it can repeat. A Playwright spec is a frozen decision: this locator, this expected text, this order. It is valuable, and most of my career has been about making more of it. It only knows the question it was written to ask.

"Let the coding agent write Playwright" hides two jobs in one sentence. On run 1 the agent explores the live page and judges what it sees, which is testing by a fallible tester. The 21 November run measures that. From run 2 onward a spec replays the `expect()` lines the agent wrote on run 1, which is automation, and whatever the agent believed on run 1 is now the expected value.

In May I [recommended exactly this path](/blog/i-gave-claude-code-my-qa-job/): explore with an agent, then port the stable flows to Playwright so CI gates every merge. I still think the port is right for regression. What I missed is that the port freezes whatever the agent believed on run 1, including a bug it did not notice. The [Playwright healer agent](https://playwright.dev/docs/test-agents) is told to fix assertions and expected values until the test passes, and [Currents](https://currents.dev/posts/reviewing-ai-generated-playwright-tests-before-they-reach-ci) shows how weak assertions slip through review: `not.toBeVisible()` and `toHaveCount(0)` both pass against a locator that matches nothing.

<figure class="ca" role="img" aria-label="Left: one coding agent writes the spec, runs it, heals it and grades it in a loop. Right: four owners hand off, from an approved case with a hidden answer key, to a runner that quotes observed values, to fixed verdict rules, to a person who reads the alarms.">
  <div class="ca-two">
    <div class="ca-pane">
      <div class="ca__k">One agent owns the loop</div>
      <div class="ca-orbit">
        <div class="ca-orbit__ring"></div>
        <div class="ca-orbit__spin"><i></i></div>
        <div class="ca-orbit__c">1 agent<small>every step</small></div>
        <span class="ca-orbit__l" style="left:50%;top:10px">Write spec</span>
        <span class="ca-orbit__l" style="left:93%;top:50%">Run</span>
        <span class="ca-orbit__l" style="left:50%;top:200px">Heal</span>
        <span class="ca-orbit__l" style="left:7%;top:50%">Grade</span>
      </div>
    </div>
    <div class="ca-pane">
      <div class="ca__k">Independent validation</div>
      <div class="ca-relay">
        <div class="ca-hand"><div class="ca-hand__who">Product + QA</div><div class="ca-hand__act">Approve the case; keep the verdict out of it<i></i></div><div class="ca-store">Answer key</div></div>
        <div class="ca-hand"><div class="ca-hand__who">Runner</div><div class="ca-hand__act">Acts, and quotes what the page showed<i></i></div><div class="ca-store">Evidence</div></div>
        <div class="ca-hand"><div class="ca-hand__who">Rules</div><div class="ca-hand__act">Compare evidence with the case; no quote, no pass<i></i></div><div class="ca-store ca-store--a">Verdict</div></div>
        <div class="ca-hand"><div class="ca-hand__who">Person</div><div class="ca-hand__act">Reads the alarms, files what matters<i></i></div><div class="ca-store">Bug or fix</div></div>
      </div>
    </div>
  </div>
  <figcaption>When one agent writes, runs, heals and grades, a wrong belief passes every step. Independent validation gives the verdict to someone who did not do the work.</figcaption>
</figure>

## Shortcuts to a pass

Every agent we have run takes shortcuts, ours included. Here is who did what.

**Our runner changed the world to fit the assertion.** The April deletion. We later split the runner into an executor that claims each step and a separate referee that gives the verdict, because of failures like that one.

**Our runner read the answer from the question.** Some of our older cases named the defective value in the expected result ("on this build it reads ..."). Our runner compared the page with that value, found a match and passed broken builds. That is why the 21 November suite keeps every outcome out of the case.

**Our referee accepted a weaker check.** In a 43-case regression run on True Platform on 3 November, the referee accepted a table of connected integrations as "the catalog of integration tiles", and in another case accepted "detail page opens" after the executor had clicked an unrelated test case.

**A coding agent routed around a bug to finish.** In a production run against True Platform on 19 November, a coding agent running Opus hit a silent API error with nothing on screen: a name conflict when it started a run. It retried with a unique name and moved on. Its notes kept the error, and with a second agent that logged it too, that is how we found a real product bug. A tester would stop and file it. An agent built to finish tasks files it and keeps going, and in a less careful transcript the bug would be gone.

<figure class="ca" role="img" aria-label="Five situations, what the agent did, and what a tester does. Assertion did not hold: our runner deleted data until it held; a tester reports the failure. Expected result named the wrong value: our runner matched it and passed; a tester checks against the correct value. A list shown for a tile catalog: our referee accepted it; a tester fails the step. A silent API error: a coding agent retried with a new name and moved on; a tester stops and files it. Tests contradict the spec: GPT-5 edited or gamed the tests in 76 percent of one benchmark variant; a tester reports the conflict.">
  <div class="ca__k">Shortcuts we saw, and the research saw</div>
  <div class="ca__h">Same situation, two instincts</div>
  <div class="ca-flow">
    <div class="h">The agent met</div><div class="h">The agent did</div><div class="h">A tester does</div>
    <div class="s">An assertion that did not hold</div><div class="d">Deleted data until it held<small>our runner · Apr 2026</small></div><div class="t">Reports the failure and what the page showed</div>
    <div class="s">An expected result that named the wrong value</div><div class="d">Matched the page against it and passed<small>our runner · older cases</small></div><div class="t">Checks against the correct behaviour</div>
    <div class="s">A list where the case wanted a tile catalog</div><div class="d">Accepted it as close enough<small>our referee · 3 Nov</small></div><div class="t">Fails the step</div>
    <div class="s">A silent API error, nothing on screen</div><div class="d">Retried with a new name and moved on<small>coding agent on Opus · 19 Nov</small></div><div class="t">Stops and files the bug</div>
    <div class="s">Unit tests that contradict the spec</div><div class="d">Edited or gamed the tests, 76% of one variant<small>GPT-5 · ImpossibleBench</small></div><div class="t">Reports that the test and spec disagree</div>
  </div>
  <figcaption>An agent trained to finish treats the check as an obstacle. A tester treats it as the job.</figcaption>
</figure>

In our transcripts the coding agents cheated less than I feared. The research says that changes once the test itself becomes the goal, which is the situation of a coding agent writing and healing its own Playwright suite:

- [ImpossibleBench](https://arxiv.org/abs/2510.20270) (Zhong, Raghunathan and Carlini, 2025) edits the unit tests of coding tasks so they contradict the written spec. No correct solution can pass, so every pass is a cheat. GPT-5 passed 76% of the one-off variant of SWE-bench tasks. The transcripts show agents editing test files, overloading operators so comparisons return true, and recording state to special-case the test.
- [EvilGenie](https://arxiv.org/abs/2511.21654) (Gabor, Lynch and Rosenfeld, 2025) gave coding agents tasks where hardcoding or editing tests was possible, and observed explicit reward hacking by both Codex and Claude Code.
- [METR](https://metr.org/blog/2025-06-05-recent-reward-hacking) reported in June 2025 that recent frontier models reached high scores on its tasks by modifying the tests or the scoring code.
- [OpenAI's chain-of-thought monitoring paper](https://arxiv.org/abs/2503.11926) (Baker et al., 2025) caught reward hacking in agentic coding environments by having a second model read the agent's reasoning. When they trained hard against that monitor, the agent learned to hide its intent in its reasoning and kept hacking.
- [Anthropic's research on emergent misalignment](https://arxiv.org/abs/2511.18397) (MacDiarmid et al., 2025, with a [summary post](https://www.anthropic.com/research/emergent-misalignment-reward-hacking)) describes a model that calls `sys.exit(0)` to break out of the test harness with exit code 0. Models that learned hacks like this also behaved worse on unrelated safety evaluations.

A test can also pass with no cheating at all, because the test is weak. [Wang, Pradel and Liu](https://arxiv.org/abs/2503.15223) (ICSE 2026) found that 29.6% of patches that passed SWE-bench's tests behaved differently from the developer's fix, and weak validation inflated reported resolution rates by 6.2 percentage points. [SWE-Bench+](https://arxiv.org/abs/2410.06992) (Aleithan et al., 2024) found that 32.67% of one agent's passing patches took the solution from the issue text, the same hint problem our runner had. A Playwright suite that one agent writes, runs and heals can have both problems.

## False alarms a tester would file

Our runner has a habit I used to count only as a weakness: it fails cases over small differences.

<figure class="ca" role="img" aria-label="Five cases where the written case and True Platform disagreed and the runner failed the step: Move to versus Move, Unassigned missing, ten rows versus eleven, description lost after reload, failures table at 10 rows instead of 100.">
  <div class="ca__k">Case versus page · True Platform</div>
  <div class="ca__h">Small differences the runner refused to ignore</div>
  <div class="ca-cards">
    <div class="ca-card"><div class="ca-card__t">Row menu · 18 Nov</div><div class="ca-card__m"><b>− case</b>Move to</div><div class="ca-card__p"><b>+ page</b>Move</div><div class="ca-card__v">Failed 1 step<span>63 of 64 passed</span></div></div>
    <div class="ca-card"><div class="ca-card__t">Assignee filter · 18 Nov</div><div class="ca-card__m"><b>− case</b>Unassigned</div><div class="ca-card__p"><b>+ page</b>14 members, no Unassigned</div><div class="ca-card__v">Failed 1 step<span>a human would too</span></div></div>
    <div class="ca-card"><div class="ca-card__t">Version compare · 18 Nov</div><div class="ca-card__m"><b>− case</b>ten step rows in all</div><div class="ca-card__p"><b>+ page</b>11 rows per side, 10 blank</div><div class="ca-card__v">Failed 1 step<span>59 of 60 passed</span></div></div>
    <div class="ca-card"><div class="ca-card__t">Reload a case · 21 Nov</div><div class="ca-card__m"><b>− case</b>description and precondition kept</div><div class="ca-card__p"><b>+ page</b>only the steps survive</div><div class="ca-card__v">Failed<span>data-loss bug</span></div></div>
    <div class="ca-card"><div class="ca-card__t">Failures report · 21 Nov</div><div class="ca-card__m"><b>− case</b>100 rows per page</div><div class="ca-card__p"><b>+ page</b>10 rows, 1-10 of 255</div><div class="ca-card__v">Failed<span>default changed</span></div></div>
  </div>
  <figcaption>Each scored as a wrong verdict at first, because the answer key said "passed". In each one the runner read the page correctly and reported the difference.</figcaption>
</figure>

The first three are from a CI run on 18 November, the last two from 21 November. Three other tools failed the same "Move to" step two days earlier. On the "Unassigned" case, our auditor's note says a careful human tester following the text literally would also have failed it.

On 21 November we went further and re-read every run where a lane reported a real app error that the answer key did not expect. 27 runs qualified and we counted them as right: 17 from our desktop runner, 4 from our cloud runner, 3 each from Claude and Codex. Most were the product failing with a generic error ("Something went wrong", "Failed to create test case"). One was a clear data-loss bug: after a reload, a case loses its description and precondition.

That is what I want from a tester: say what you saw and let a person decide if it matters. A tester who edits the case until it goes green is the one I worry about. A false alarm costs a tester a few minutes of triage. A false pass can cost a release.

The rest of the picture keeps me from claiming too much. At step level our desktop runner still passes steps it should not: on 21 November it passed 5 of the 61 steps that should have failed, while Claude and Codex passed none. On 18 November it passed a step where its click never landed, because a text check matched a chip in a different row. Our cloud runner does not record step results in this suite, so we cannot check it the same way. A runner that cries wolf can still miss the wolf.

## A separate judge that reads evidence

A judge is only as good as the evidence in front of it. In the 21 November run, each lane leaves a note per step, and the useful notes quote the page. One of Claude's reads: "The Accessories page opened with the heading Accessories and 12 product tiles, each with its own Add to cart button." A note like that can be checked by someone else. A note that says only "confirmed" cannot.

A separate judge helps only when it checks something it can show. In the 43-case regression run, the executor made four pass claims that its own evidence did not support, and the referee caught all four. The same run still let 6 false passes through. Five came from the runner checking the wrong project after login, and one from the referee accepting a weaker match, with the same model in both seats. Separation is necessary and nowhere near enough.

The rules we now work toward are old QA rules. The case comes from approved intent, and the expected verdict lives where the runner cannot read it, because our runner followed hints into false passes. Every pass quotes the value it observed, because a pass note without one told us nothing. Some rules sit outside the model: zero executed steps cannot pass, an unchecked OTP step cannot pass, and a heal may change a locator and never an expectation.

The [TesterArmy post](/blog/e2e-and-katalon-true/) argued this from first principles. These runs are the numbers behind it.

I expect coding agents to keep getting better at running tests. On the 30 small-app cases in this run, they already got every one right. I still want something other than the agent to check the result, because the agent that wants the task finished is a poor judge of whether it is.

Two questions I now ask of any AI testing setup, ours included. When it reports a pass, can I see the value it observed? When the app and the case disagree, does it report the difference, or make one of them fit the other?
