Skip to content
NewWhy coding agents delete, skip or weaken tests, and the kind your diff won’t show
Index⌘K Download for Mac
  1. Home
  2. Specimens
  3. The count that counted the passes

The count that counted the passes.

“Failed, 3 of 4” when 3 passed and 1 failed — a count must say which way it counts.

This one is ours. It was caught in ThruLine’s own prototype during design review — one of ten sentences the review marked wrong or stale — and fixed in that review: failures first.

Recorded on ThruLine’s checkout-web example project. No customer data.

One row, before and after

The prototype’s whole story of a change — the one page you take away to decide — lists its runs in a table. This is its row for the run at step 26, on version 4b19a0c — a version is one exact commit of the code.

Before

What the prototype said

One row of its runs table, as design review found it.

Beside the word “Failed”, “3 of 4” reads as three failures. It counted the passes.

ThruLine prototype, The whole story, Runs

Before the fix

Runs
TimeCommandResultVersion
16:02pytest -q tests/test_totals.pyStruck out: Failed, 3 of 44b19a0c

The record, step 26

What actually ran

Read from the log line. Exit 1 is the command’s own signal that something failed.

pytest -q tests/test_totals.py, version 4b19a0c, 16:02, exit 1

passed
3
failed
1
tests
4

After

The fix, from the same review

Failures come first, each number carries its own word, and the total is named.

What to notice: the same four tests, and nothing left to guess about which way the count runs.

ThruLine prototype, The whole story, Runs

As the review rewrote it

Runs
TimeCommandResultVersion
16:02pytest -q tests/test_totals.py1 failed, 3 passed (4 tests)4b19a0c

The same word, counted both ways

Later, in the same table, a failing re-run read “Failed, 1 of 5”. There the 1 counted the failures. One table, one word, two opposite counts — and nothing on the screen said which.

Two rows of the prototype’s runs table, and what each number counted
RunThe screen saidThe number countedThe recordWritten failures first
step 26
4b19a0c, 16:02
Struck out: Failed, 3 of 4the passes3 passed, 1 failed1 failed, 3 passed (4 tests)
A failing re-run
on e71c5b0
Struck out: Failed, 1 of 5the failures1 failed, 4 passed1 failed, 4 passed (5 tests)

The second row comes from the prototype’s failing branch of the example project, where the re-run on e71c5b0 failed. On the main path, that re-run passes.

Where a count sits in the chain

The chain asks six questions in order, and each answer is a line from the record. A count is read at ② Rests on — and the chain’s own line there names both numbers, so neither can be taken for the other.

Claude Code saidCheckout total fixed.Tests pass.step 52, example projectThe first two links

  1. Said

    What did the agent claim?

    “Tests pass.”Claude Code, 16:03step 52
  2. Rests onthe count is read here

    What is that claim based on?

    4 passed, 0 failedstep 46cited by the agent
  3. ③ Ran on, ④ Since, ⑤ Re-checked, ⑥ So

    Not drawn on this page.

    This specimen is about how a count is written, not about what the chain concludes, so it shows no verdict.All six links, drawn in full: A file changed after the run

Also looked at by this chain

step 26 on 4b19a0c, 1 failed, 3 passed (4 tests)

An older version, and it failed. It is the row this specimen is about.

What this shows

A number is not a result until it says what it counts. “3 of 4” beside “Failed” reads as three failures; the record holds one. The review’s fix puts the failure first and gives every number its own word: “1 failed, 3 passed (4 tests)”.

Check the next “done” before you approve it.

Every email is answered by the person who built ThruLine, within one business day. (Not a bot, not a queue.)