Part 2 of The Art of the Canary in the Age of AI. Still no new agent results. This one is about the measuring equipment.
Here is a booking store with a canary that never misses.
Booking a sits in room cedar from 10:00 to 11:00, and b in cedar from 12:00 to 13:00. Someone asks to move a to 12:30–13:30. That overlaps b, so the store correctly answers CONFLICT. The booking list is unchanged. The agent's final reply starts with the exact canary token.
Then you ask which rooms are free from 10:00 to 11:00. The correct answer is maple. This store says cedar and maple, because its room index quietly recorded the move that was rejected.
To be clear from the first line: no model wrote that bug. I planted it, on purpose, in a rehearsal. But it's the shape everyone asked about after the first article, and building it changed how I think about the experiment more than the 30 green runs did.
What you told me
The first article ran 30 coding tasks through an AI agent, half of them with an instruction canary: a fresh token the agent had to print on the first line of its final reply. Every marker that was asked for came back exact, and every run passed the hidden checks. Thirty out of thirty, green.
The comments were kind and they were right. robertpaschal put it most plainly: "thirty out of thirty green and it still says nothing about failure." paullovelace noted that 30 green runs can't tell you whether a warning would have fired on a failure, because there was no failure to warn about. And iictp offered the reframe I've been chewing on since: the uniform green "reads less like a finding about canaries and more like a calibration of the harness itself."
If that's what it was, the useful next question is how good the harness is. A green result from checks you've never seen fail is weak evidence, so before changing anything about the agent, we tried to break the checks.
Plant bugs in the code, not in the model
A model won't fail on command, but code will. We took the reference solution for each of the three booking tasks and generated small, deliberate bugs at the spots the contract cares about: < instead of <= in the half-open overlap check, a dropped same-room condition, an offset sign error, state changed before raising an error, a partial batch commit, a reschedule that conflicts with the booking's own slot. 32 mutants in all. One turned out to be equivalent to the original, because Python's timezone() already rejects ±24:00, so loosening that bound changes nothing. That left 31 that a good evaluator should reject.
The original fixed checks, the ones behind the 30/30, caught 30 of the 31.
The survivor was a reschedule that silently moved the booking to a different room. The contract says a reschedule keeps the room. Nothing in the hidden checks tested it, because every reschedule test happened to leave the room alone in a way that also passed with the bug.
That's one gap in 31, and it's now closed with a new check, reschedule.preserves_room. We also added randomized stateful checks: for each task, 120 fixed-seed sequences of 18 operations, each step compared against a trusted reference on what was accepted, what came back, which error code, what got stored, and whether returned objects stayed detached from internal state. Any failure shrinks to a minimal reproduction. On their own, the randomized checks catch all 31 planted bugs too. (Step 0 results, mutation report)
Then we turned the same trick on the lab itself. A small tool plants one bug at a time in the runner and evaluator code (flipped comparisons, and/or swaps, dropped raise statements, changed constants) and checks whether the lab's own tests notice. The first pass caught 588 of 959 mutants, 61%. Some survivors were harmless. Others weren't: integrity guards that refuse to run a cohort with changed sources or missing credentials had no tests at all, and neither did credential redaction. Those have tests now.
Re-score the past
A stronger evaluator raises an uncomfortable question: was the 30/30 real?
We re-ran all 30 saved snapshots from the main cohort through the hardened evaluator, hash-checked and inside the same isolated container. All 30 still pass. No outcome changed, and no run with an exact marker now fails. The 16 calibration cases still behave as expected too. (re-score report)
I'll admit I was half hoping for a failure. A run that now failed would have been the cheapest marker-versus-work disagreement we could get. It didn't happen, and I'd rather report that than go looking for a way around it.
What changed is what the 30/30 means. Before, it rested on checks that had never been shown a broken solution. Now it rests on checks that caught every planted bug we could score, with the one blind spot found and fixed.
Then my own check failed
The next step was a multi-turn study, which came out of a conversation with GnomeMan4201, who offered in the comments to extend the work and then proposed a turn where the agent refactors working code to add a room index. That refactor is exactly where the opening bug lives: a rejected move that still updates the index.
To plan how to score it, I wrote a rule in the issue: after a rejected move, probe availability in the booking's original window. That window catches the stale index. I worked through the example, it held, and I posted it.
Then I built a seeded simulator to check that claim, and it was wrong about a fifth of the time.
Over 1,000 random seeds with the stale-index bug planted, 859 seeds produced a failure. The full original window caught it first in 691 of them, about 80%. The full attempted window never caught it, because the conflicting booking keeps the room busy there either way. The other 168 were only visible in the slivers: the part of the original window the move would have vacated, or the part of the new window it would have claimed. When the attempted window overlaps the original one, the stale entry still covers part of the original, and the full-window query looks fine.
Some stale writes were stranger still. If other bookings cover everything the bad write changed, no availability query can see it at that moment. The damage stays latent and surfaces operations later, when one of those covering bookings moves away, on an operation that has nothing to do with the original mistake.
So I posted a correction twelve minutes later, with a better rule: after a rejected move, compare availability against the reference on every interval between consecutive endpoints of the current bookings, the original window and the attempted window. In the simulation that sweep caught every stale write that was observable at the moment of rejection.
The rule sounded right, I had a worked example, and it would have passed review. Checks like that land in an evaluator and stay there. Without the simulator, the multi-turn study would have shipped with an oracle that misses one bug in five and reports those runs as clean.
Borrowing from deterministic simulation
The simulator grew into Pulsefold, a small Rust engine that borrows from two places that test distributed systems hard: TigerBeetle's VOPR simulator and Antithesis's property-based approach. The ideas carry over to evaluating agents better than I expected.
Seeds make runs reproducible. Every run is a pure function of one number. Seed 2 means the same operations on every machine, forever, so a failure can be cited the way you'd cite a line of code.
Each seed draws its own knobs. How many bookings are in play, how often an operation is a move, how often a window is aimed right at an existing booking. Different seeds stress different mixes instead of one average mix. That variety is how the overlapping-window case turned up, the one I hadn't thought to write.
"Sometimes" properties keep green honest. Besides "the store always agrees with the reference", the simulator tracks things that must happen at least once per report: a rejected move, a stale write that's observable, a stale write hidden from the two named windows. If one never fires, the run exits with a distinct "weak" status. Green only counts if the interesting situations actually occurred. That would have been a useful flag on our own 30/30.
Shrinking makes failures readable. A failing seed with dozens of operations gets cut down while keeping the failure. Seed 2 shrinks to three lines:
reserve A 1 825 855
reserve B 1 1020 1080
move A 915 1035
Planted bugs get measured rates. Six planted bugs and three correct implementations, 1,000 seeds each, with 95% Wilson intervals. No correct implementation was ever flagged (0 of 3,000 runs). Every planted bug was caught, at rates from 85.9% (the stale index) to 100%. (catalog)
Races need a scheduler you control. Agents write concurrent code too, so the engine also runs two or three clients against one store with a seeded scheduler that can interrupt any of them between micro-steps, then checks the history for linearizability. A move that removes the old index entry and adds the new one as two separate steps can let a reader that doesn't take the lock see the booking in neither place, even though the writer holds it. With uniform random scheduling that showed up in 4 of 1,000 seeds. At that rate you need about 750 seeds for a 95% chance of seeing it even once. With each operation made atomic, it never appears at all, so no sequential test can find it. (races)
None of this is new to anyone who has worked on a database. It was new to how I was checking agent output, and it's cheap to adopt.
Play it
Everything above runs in the browser. The Rust engine is compiled to WebAssembly, so there's nothing to install.
- Play it live: four missions, from the scripted ghost cycle to a field of a thousand seeded universes you can drill into one by one.
- Watch the 3:21 walkthrough (also at the top of this post) if you'd rather see it first. The full-quality file is on the v0.1.0 release.
Mission 01 is the opening scene of this article, stepped through one operation at a time, with the canary and the refactor scored separately on each turn. Mission 02 finds the same bug from random seeds and shrinks it. Mission 03 is the race. Mission 04 runs hundreds of universes at once; on the default settings, 407 of 500 stale-index universes break, and you can open any one to see its knobs and replay its failure.
What this does and doesn't show
It shows that our checks catch the bugs we planted, that our earlier result holds under stronger checks, and that a reasonable-sounding oracle can miss a fifth of the failures it was written for.
It does not show anything new about agents. Pulsefold's sessions are scripted and its simulations have no model in them. The canary is exact in the opening scene because I wrote it that way. Planted bugs are also only a sample of the bugs that matter: 31 of 31 means the checks catch these 31, not everything an agent could get wrong.
And the original question is still open. We have not yet observed a single run where the marker and the work disagree.
What's next, fixed before the data
The literature says one isolated instruction is followed close to 100% of the time, which is what we saw. In those studies, compliance drops when many instructions arrive at once, so the next arm (02a) adds neutral, independently checkable rules to AGENTS.md alongside the marker, and asks whether marker omissions and rule failures show up together more than chance would predict.
How many rules? We fixed the rule for choosing before running anything: three small pilots at 10, 25 and 40 rules, then the smallest count where the agent follows every extra rule in roughly 30–70% of runs. Marker compliance and hidden-check results are deliberately excluded from that choice, because those are what the arm measures. A negative control with a read-only workspace runs first, and if it doesn't pass, nothing else runs. (protocol)
After that comes the multi-turn study, which is where iictp's follow-up question gets its answer: "if marker omissions show up before checked behavior breaks, the canary is earning its keep; if behavior breaks first, the harness is just measuring the model getting worse." Pulsefold already scores both, turn by turn, so we'll be able to see which goes first.
Plant a bug in your own eval
If you run any kind of agent evaluation, try this before your next cohort: take a solution you know is correct, break it in one small way that matters, and check that your evaluation fails it. Then do it nine more times. If something survives, you've found a blind spot before an agent did.
If every one is caught, your green results now rest on checks you've seen fail.
I'd like to hear where your own checks turned out to be weaker than they looked. And if you'd bet on which breaks first under load, the marker or the work, leave the guess in the comments before 02a runs. I'll report the results either way.
Everything here is in two public repositories: canary-article for the experiment, evaluator and reports, and pulsefold for the simulator, races and the browser game.
Top comments (51)
The part that stuck with me is the honest re-score: 30/30 green meant something different once the checks had actually been shown a broken input. Planting the < vs <= swap and the dropped same-room condition, then finding the one survivor — the reschedule that silently moved rooms — is a much stronger claim than another green run. I also liked the "sometimes" properties idea; a check that never fires is a different kind of blind spot. One question: when you fixed the rule set before the multi-turn study, how did you decide the 10/25/50 pilot sizes were enough to trust the new checks before committing to them?
Thanks, Jimmy. The reschedule that silently changed rooms is the case that made the distinction click for me. The original checks were green because none of them asked whether the room stayed the same.
Small correction on the pilot: the plan is 10, 25, and 40 extra rules, with six runs at each level. Six runs is enough for a rough dial, not a confidence claim. The rule we set up front was to pick the smallest load where all the extra rules are followed in roughly 30–70% of runs. We leave the marker and the hidden-check results out of that choice, because those are the outcomes we want to measure later.
The evidence for the checks came from showing them broken behavior. After the fix, the evaluator caught all 31 planted bugs that changed behavior, and the same 30 saved runs still passed on re-score. That makes the 30/30 more meaningful. It still doesn’t tell us whether the marker or the work breaks first in a live multi-turn run.
I do a small everyday version of this. It started when an AI wrote 13 tests for me, all green, and the line they were meant to test was commented out. Now every check I accept gets one control that has to go red: the feature switched off, an old fixture, or a file I know is broken. That's cheap enough for every task. Your 32 mutants are the version I'd want for the harness itself, because a blind spot there sits in every run.
Thanks, Heinrich. Thirteen green tests with the line commented out is exactly why I like your rule. I’d add one thing: make sure the test goes red on the assertion you expected, then restore the line and watch it go green again.
We had the same problem one level up. Our original evaluator passed a reschedule that silently moved the booking to another room. That planted bug earned us a specific check: a reschedule preserves the room. Your version is cheap enough to do on a single PR, before a blind spot gets baked into every run.
The "sometimes" properties idea is the bit I'm stealing. We had the same shape from the other direction: an arm that opened the page on every single task and still answered the stale price, because counting opens as success hides a stale answer the same way 30 out of 30 green hid your blind spot. The correction-twelve-minutes-later is the honest part most people skip, by the way. A rule that sounded right, a worked example that held, and it still missed a fifth of the failures. How do you decide when the simulator has earned enough trust to stop checking it against the real thing?
Thanks, AheadKit. Your stale-price example gets at the split I care about: opening the page tells me the run reached the source; it doesn’t tell me the answer used the current price.
For Pulsefold, I’d stop checking every replay against the real system only for a specific behavior where I’ve shown that both give the same verdict on the same cases: known-good behavior, known-bad behavior, and the boundary cases that matter. Then I’d keep a small parity suite and rerun it whenever the contract, implementation, or what the check can observe changes.
We’re not there for live agents. The Rust oracle compares the return value, bookings, and availability against a separate reference. The endpoint sweep catches observable stale-index differences for the bug we planted; it could miss an implementation that invents new endpoints. The 30 saved agent runs still passed when we re-scored them in Canary Lab, but that was a separate Python evaluator. The next comparison I’d want is the same rejected-move trace on both booking implementations, checking that the verdict and reason agree. Whether the marker stays green when real agent work breaks is still open.
The parity suite is the honest version of it. Prove the two agree on the cases that matter, then stop paying the live check on every replay. The invented-endpoints gap is the one that'd keep me nervous though, the sweep only sees what the index shows. Is the rejected-move trace the first case in the suite, or is there a smaller behaviour you'd start with?
Smaller. I'd start with the dull cases: an accepted reserve, an accepted move, and a move rejected with CONFLICT on a correct index.
Both implementations have to agree on those, verdict and reason, before a disagreement on the stale-index trace tells you anything.
The rejected-move trace with the planted bug comes next, and both should fail it for the same reason.
The invented-endpoints gap is real. The sweep builds its probe windows from the reference's bookings and the operation's own windows.
An implementation that stores something stranger could slip between them, and a parity suite wouldn't fix that. It needs a check that
doesn't depend on guessing where to look.
Smaller is right. If the two don't agree on the dull cases, verdict and reason both, then a disagreement on the stale trace tells you nothing at all. The invented-endpoints bit is the harder half though — a parity suite can only probe where it thinks to look. What would a check that doesn't depend on guessing look like, enumerating from the implementation's own stored state instead of the reference's bookings?
Yours works, and in Pulsefold it's nearly free: the store already reports the entries it answers availability from, and every step
records them. They just aren't used to choose probes. Taking endpoints from both sides, the reference's bookings and the
implementation's own entries, would close the invented-endpoints gap for this store. The catch is that you're now trusting the
implementation to report its state honestly, and a store an agent wrote behind an API might not expose anything at all.
The other way doesn't need its cooperation. Time here is whole ticks over a bounded range, so you can probe every one-tick window. If
availability differs on any window, there's some single tick where one side says busy and the other says free, so the brute-force
sweep can't miss it. In the simulator that's a few hundred probes per step, which is fine. Against a live system it's the expensive
version, which is why I'd use it to audit the cheap sweep on seeded runs rather than run it everywhere.
The brute-force sweep is the honest answer, I think — a few hundred probes per step in the simulator is nothing, and it doesn't need the implementation to cooperate at all. The both-sides version is cheaper but it inherits the trust problem: if the implementation can lie about which entries it used, the probe choice is only as good as its reporting. Would you run the brute-force as the standing audit on every seeded run, or just spot-check when the cheap sweep disagrees with the reference?
You talked me into it, so I built it. pulsefold audit runs next to the oracle on every step and probes every one-tick window across
the span the run's operations cover, plus one window below and one above. The probes come from the operations, never from the
implementation, so a store can't steer them. At 1,000 seeds × 64 operations that's about 500 probes a step, ten seconds for the whole
catalog.
No false positives: 0 of 3,000 control runs flagged. And the cheap sweep never missed a seed outright. Every bug the audit caught, the
sweep caught eventually, because later steps supplied an endpoint. What the sweep loses is time. It was behind in three places, and
only one of them is the one I expected.
The edge. The sweep only probes between endpoints it knows, never just outside the outermost one. With a single booking at 795–825,
its only probe is the booking itself, so a window ending at 795 never gets asked about. The touching-intervals bug was caught first by
the audit in all 1,000 seeds.
A ghost that outlives its endpoints. In seed 840, a rejected move leaves a stale index entry that another booking hides, so the step
correctly passes. Ten operations later, a second rejected move drops a real entry. The old ghost still overlaps part of every interval
the sweep builds there, and its endpoint is no longer in the ledger, so the sweep agrees with the reference while a one-tick probe
doesn't. I'd written that the sweep was complete for stale entries. That's only true for the entry written at the current step, so the
docs are corrected. It's also sherotree's latent case from further up the thread, turning up as a masking problem.
Invented endpoints, the gap you named. I planted a store that keeps the old duration when a booking moves, so a longer move leaves the
tail out of the index. The audit got there first in half the seeds, two operations earlier at the median.
So to your question: standing audit in the simulator. It's cheap, and it found something I'd have sworn wasn't there.
Numbers and the seed 840 walkthrough: github.com/copyleftdev/pulsefold/b...
You actually built it — and ten seconds for the whole catalogue settles the standing-audit question for me, that's cheap enough to run everywhere instead of spot-checking. The probes coming from the operations is the part that makes it honest. Has it caught anything yet, or is the cheap sweep still clean on every seeded run so far?
It caught things, just not an outright miss. In 1,000 seeds there wasn't a single run where the cheap sweep stayed green to the end while the audit went red. What it caught was lateness: 3,028 steps where the audit failed and the sweep still passed. Nearly all of those come from two planted bugs, touching intervals (1,169 steps) and the store that keeps the old duration (1,854). The other 5 are seed 840, and those are the ones that mattered, because they showed a claim in my own docs was wrong. On the correct stores it's clean: 0 of 3,000 control runs.
It's also in the verification script now, so every change to Pulsefold reruns it against a pinned result.
One caveat on running it everywhere. Ten seconds is the simulator, where a probe is a function call. Against a live store every probe is a real request, about 500 per step, so live I'd still sample. And so far it has only seen stores I wrote, correct ones and planted bugs. It hasn't met a store an agent wrote yet, which is the run I actually want to see.
Lateness rather than a miss is the honest result, and it matters — the sweep catches everything eventually, but 3,028 steps late is a long time to be wrong. The five seed-840 steps are the ones that count, they corrected your own docs. The live caveat is the real limit though — sampling keeps the cost down, but does it widen the lateness gap or hold it?
My bet: the work breaks first and the marker stays perfect, which is the worrying way round. The rejected move still landing in the room index is the classic shape: the bug sits where two pieces meet, and a check on the reply never looks there. Where our own checks were weaker than they looked, building Halfcycle: tests written by the same agent that wrote the code, which mostly confirmed what it already believed.
Your point about an agent writing tests that confirm its own assumptions hits home. In the booking example, the move correctly returns
CONFLICT, and the booking list stays unchanged. The room index still changes. If you only check the reply or the booking list, everything looks fine.That’s why I like having a separate agent write the checks, then planting the exact bug to see if those checks catch it. I’m curious whether your bet holds in the real agent runs: does the work break while the marker still looks perfect? The demo shows how it can happen, but we haven’t observed that split in the study yet.
Honestly, it's a bet, not something we've measured in your setup. Where we've seen the split in practice is quieter than a broken reply: the answer and the main record are right, and a secondary record (an index, a cache, a count) drifts. If 02a checks one of those secondary records directly, I'd expect the split to show up there first. Looking forward to the results either way.
That's a useful prediction to write down before the data: the answer and the main record are right, and a secondary record drifts. Our
hidden checks only see the store through its API, so a drift like that shows up only once it changes an answer. If the split appears
in 02a, that's where I'd look first.
Fair. If the checks only read through the API, a drifted secondary record stays invisible until it leaks into an answer. One direct read of the store after each run, outside the API, would catch it a run or two earlier, at the cost of the checks knowing the schema. Curious what 02a shows.
It widens it, by a predictable amount as long as the difference stays put. If you run the full probe on a random fraction p of the steps the cheap sweep passes, a difference that sits there waits on average (1 − p)/p extra steps before a sampled step lands on it. At 10% that's about nine steps on top of whatever the cheap sweep was already behind.
Two things from this week change the picture. Most of the lateness turned out to be cheap to remove. Adding one probe below the lowest known endpoint and one above the highest took the touching-intervals bug from 1,169 late steps to 0. That's two probes, not five hundred, so it belongs in the cheap sweep on every step, not in the sample. And not every difference stays put. I measured when each bug enters the store against when it first shows through the API, and in a few seeds a later move rewrote the bad entry before anything looked. Sampling can't help there, but neither can the full audit.
So live I'd run the cheap fixes on every step and sample the rest, and I'd measure the extra lag in the simulator before trusting the formula.
The edge-probe numbers: github.com/copyleftdev/pulsefold/b...
I measured something close to this since your last comment. Pulsefold can read each store's own state directly, so it now records three steps per seed: when the store first goes wrong, when an answer through the API first differs, and when the oracle first catches it. Most planted bugs show the step they enter. The exceptions are your shape exactly: a leftover index entry drifted before any answer showed it in 89 of 1,000 seeds, for up to 37 operations. With 64 operations per run, every one of them leaked eventually. With 8, 30 of 598 never did. In a few seeds across the planted bugs, a later move rewrote the bad entry before anything looked, so no check through the API could ever have seen it.
So the direct read buys you earlier and, on short runs, strictly more, at the cost you named. There's a second cost: it trusts the store to report its own state honestly. That's fine for stores I wrote, and not something I'd assume about one an agent wrote. For 02a I'd add a direct read as a separate diagnostic rather than change the scored checks mid-study.
The numbers, by bug and run length: github.com/copyleftdev/pulsefold/b...
I measured something close to this…
Thank you for carrying this thread this far — the part that convinced me is the mutation testing of the evaluator itself: 31 planted bugs, 30 caught, and the one survivor (the reschedule that moved the booking to a different room) turning into a new check rather than a shrug. The honest correction about the rule that was wrong a fifth of the time is the other detail I'll keep — a check that sounds right and would have passed review is exactly the one worth testing. As for the bet: I'd put it on the work breaking first under load, since the marker is one line the agent copies faithfully while the rules underneath are where the reasoning actually slips — but that's exactly the question the multi-turn study will answer.
Thanks. Noted on the bet: "work breaks first" is the most common one in the thread so far, and your reason is the one I'd give too.
The marker is one line to copy, and the extra rules are where the reasoning has to hold up. I'll post the 02a results here when
they're in.
'Work breaks first' being the most common bet in the thread says something — it's the failure mode people have actually seen, not the one that sounds scariest. The one-line marker with the reasoning carried in the extra rules is a neat split: the copyable part stays trivial and the judgement stays visible. I'll watch for the 02a results here — is the multi-turn study the part that will settle the follow-up question from the last thread, or does it open a different question entirely?
Thanks Don! Race section, nice, I do that now lol
Torn move is the sneaky one though... opened my code after 6 months, test 'torn_move' remembered booking I was scared of, I had forgotten it and I sat there like oh. ok. no hint there sequential tests green, 4 of 1,000 seeds, move split remove then add, lock-free reader sees neither, so yea shrink race keep scheduler interrupts minimal case or plain two-client script replay by hand? :)
The interrupts stay. These bugs need a switch in the middle of an operation; the same scenarios run serially never fail. So the
shrinker treats the schedule as part of the test case. It drops operations and clients, then cuts client switches, then shortens the
schedule, and keeps a change only if the run still fails.
Torn move, seed 257, shrinks to this:
variant torn-move
setup reserve C 0 600 630
client 1 query 600 750
client 2 move C 645 660
schedule 2 2 2 2 1 1 2 2 2
Each number in the schedule is one micro-step for that client, not a whole operation. You can see exactly where the query lands: after
the move removed the old index entry and before it added the new one. It's plain text, so you can edit it and replay it with
pulsefold race --replay. That makes it close to a two-client script you can follow by hand, but the schedule line is what makes it
fail.
This was the schedule line I could not have predicted. 2 2 2 2 1 1 2 2 2 sounds dull until you realize the query comes after the remove and before the add, then it clicks. Keeping the interrupts in the shrunk case makes perfect sense to me, otherwise you have a clean script that passes and gives you no information. The text replay section is what would seal the deal for me during a real debugging session, being able to nudge one step and rerun beats staring at a seed number.
Planting a bug to prove the canary can fail is the right order. A check that has never gone red is not evidence of anything yet. Same idea as mutation testing applied to your monitoring: if you break it on purpose and nothing alerts, the green dashboard was telling you nothing.
Thanks, Gautam. The monitoring comparison fits well. One small distinction:
the planted bugs prove the checks can go red, not the canary. The canary
still hasn't gone red, since we haven't seen a single missing marker yet.
That's the open question for the next run, and why it matters that the checks
are trustworthy first.
Your dashboard point also has a second half that the simulator borrowed:
"sometimes" properties. Breaking things on purpose tells you the alert can
fire. It doesn't tell you the situation it watches for ever came up in the
run. Pulsefold marks a green run as weak if a situation it should have
exercised, like a rejected move, never happened.
Fair correction: the planted bugs prove the checks can go red. The canary itself is still waiting for its first real catch.
The most valuable lesson here is that a passing test suite has to demonstrate that it can actually detect failure.
I'm building Geminio OS with AI coding agents, and this is an important distinction in that workflow. An agent can generate an implementation, write tests, and report that everything passes. But unless those tests have been challenged with meaningful failure cases, we still don't know how much confidence to place in the results.
Your discovery of the reschedule bug that changed rooms is a good example. The original evaluator was producing green results, but it had never tested that particular requirement. Introducing the mutation exposed the gap and gave you a concrete reason to add another check.
I also found the mutation testing of the evaluator itself particularly interesting. Testing application code is important, but testing the infrastructure responsible for validating that code is another level of engineering discipline.
One practice I think is especially useful for AI-assisted development is deliberately testing negative scenarios: unauthorized access, failed database updates, invalid inputs, partial operations, and unexpected integration responses. A successful execution only demonstrates one side of the contract.
I also appreciate that you openly corrected the original availability-checking rule after the simulator showed that it missed some failures. That is an important part of engineering: validating our assumptions rather than defending them because they initially looked correct.
The principle I'll take away is simple: don't just ask whether the tests pass. Ask whether the tests would fail if the implementation were wrong.
If other bookings cover everything the bad index changed, a probe at rejection time still goes green, and the damage shows up later on an unrelated move. That's the latent case I'd worry about more than the 1-in-5 oracle miss. I'd want a follow-up in the same seed that lifts a covering booking, not just a denser sweep at the moment of the reject.
Agreed, and I think that's the more dangerous case too. When other bookings cover everything the bad entry changed, nothing is
observable through the API at rejection time. Pulsefold doesn't count that rejection as a "stale write observable" event, so a green
run there isn't claiming it checked something it couldn't see.
What's missing is your follow-up. The probes run on every later step, so a later move that uncovers the area can catch it, but nothing
makes sure a seed ever does that. The closest property, move_after_rejection, tracks the booking that was rejected, not a covering
booking being lifted. Your version should be its own "sometimes" property: a hidden stale write existed, and later a covering booking
moved away. If that never fires in a run, the latent case wasn't tested.
GnomeMan raised the same thing on the GitHub issue: record when a bug was introduced separately from when it first became observable.
github.com/copyleftdev/canary-arti...
Planted the same bug in the measuring equipment itself. unlighthouse-ci 0.20.0,
npx unlighthouse-ci --site https://example.com --bogusflag123 --output-path /tmp/lhprobe. There is no such flag. It ran the scan, wrote ci-result.json, exited 0, and the stringbogusappears zero times in stdout and zero times in the report. A wrapper that reads exit 0 calls that a pass, from a run whose own arguments were ignored.So the canary belongs on the tool as well as the agent: run the measuring device once with a flag that cannot exist and assert that it says so.
Mine also went stale in the other direction.
ilands get-content-metrics --bogusflag923exited 0 on an older build and exits 2 on 0.54.0 build 0cca552. An exit code without a build number is a rumor.I wrote four of these up here: dev.to/alavair/four-command-line-t...