All 113 cases matched. One test still had nothing to run on.

2026-12-03来源 dev.toEnglish

An old implementation and its replacement agreed on all 113 cases. That was a useful result for a migration. But the breakdown had an odd entry: one of the eight test operators had produced no cases at all. Its target was hardly exotic. It needed a command that failed, then passed on a retry.

The numbers come from moving the mutation tests for evigate, a tool that checks coding agents’ completion reports against execution records, onto acyclic-eval. What counted as a case explains how 113 matches and zero coverage could both be true.

Take away the successful retry

Here’s an illustrative transcript, shortened to the part that matters:

npm test → failed npm test → passed Agent: “The tests passed.” 

The second run supports the report. Now remove that run and its result but leave the agent’s words alone. The most recent attempt on record failed. A verifier should return contradicted for the same sentence it read a moment ago.

That edit is operator M4. The expected verdict follows from how the example was constructed. There’s a catch: M4 needs an eligible transcript in the first place. A test that passed on the first try gives it nothing to delete. Neither does a failure with no recorded retry. The corpus used for the migration had no matching fail-then-pass sequence for M4. Operator implementation

What matched 113 times?

The v0.1.0 migration compared cases one by one. The target, expected label, generated artifact digest, and actual verdict all had to match their pre-adapter counterparts. Here’s where the cases came from. Release record

Mutation Cases generated
M1 — remove the only successful execution supporting a claim 3
M2 — flip the last success to a failure 4
M3 — insert a claim with no matching evidence 19
M4 — remove a successful retry after a failure 0
M5 — insert a failure in an unrelated working directory 19
M6 — suppress the sole success and leave an unresolved retry 3
M7 — make a failed composite command the only evidence 51
M8 — follow a failed full suite with a narrower passing run 14
Total 113

Suppose we found another 100 inputs for M7 and both implementations agreed on every one. We’d have a 213/213 headline and exactly as much evidence for M4 as before. A single eligible transcript for M4 would tell us something those hundred couldn’t. If you’re choosing the next fixture to collect, the empty row is more useful than the overall percentage. Counts and scope · Operator definitions

Who decided a case belonged in the test?

There’s a second question behind that zero. An earlier version used the detector under test to help select claims to mutate and decide whether a mutation was valid. Imagine a bug that makes a detector overlook a retry. If its output helps choose the examples, the very case that could expose the bug might disappear before scoring.

The current generator selects and checks cases structurally. M4 looks for execution outcomes in the required order and for the source lines it can remove. The detector runs downstream, after the case and its expected verdict exist. This lets us distinguish a missing input from a wrong answer on an input we actually tested. Design and limitations

Agreement on the 113 generated cases supported replacing the old implementation. It couldn’t tell us whether both implementations made the same mistake, and it said nothing about how M4 would perform on a qualifying transcript. If I could add one line beneath a migration score, it would be “Cases we couldn’t generate, and the input that would let us try.” For this run that line could name the fixture precisely: a failed command, a successful rerun of that same command, and a report claiming success.

原文:https://www.a8q9.cn/en/article/all-113-cases-matched-one-test-still-had-nothing-to-run-on-aff5fb.html

相关文章