In “Before You Trust the Canary, Plant a Bug” (https://dev.to/copyleftdev/before-you-trust-the-canary-plant-a-bug-1k5a), Don Johnson describes a rehearsal for an AI coding evaluation. The earlier experiment asked an agent to put a fresh marker on the first line of its final reply in some runs. Every requested marker appeared and all 30 runs passed the hidden checks. The follow-up asks what those checks would catch if a solution actually broke the booking contract.
A rejected operation can still change an index
In Johnson’s scripted example, an attempt to reschedule a booking overlaps another reservation. The store returns the expected conflict and still shows the original bookings when asked to list them. A separate availability query gives the wrong answer because the room index reflects the rejected change. A test that checks the error code and the booking list would miss the discrepancy. A follow-up query that uses the index can expose it.
For a reservation system, the practical question is which downstream reads depend on the invariant being protected. After an operation fails, a test can check both whether the record stayed in its original slot and whether an availability query still marks that slot as occupied. Keeping these assertions separate also makes it easier to see which part of the contract a failure violates.
Test the evaluator with a known failure
Johnson’s team introduced small defects into reference solutions and ran the evaluator against them. The original fixed checks caught 30 of the 31 scored defects. The survivor was a change that could move a reservation to another room during rescheduling. The team added a check for room preservation. The published mutation report records that the updated fixed checks and the randomized checks each caught all 31 scored defects.
The team also replayed the 30 saved runs with the updated evaluator. All still passed. The rehearsal gives the team evidence that the checks can detect the specific failures they planted. Whether an exact marker predicts correct work remains an open question. That would require data from runs in which the two measurements can diverge.