DEV Community

The Art of the Canary in the Age of AI

Don Johnson on November 24, 2026

Companion repository: copyleftdev/canary-article — full experiment, source code, run artifacts, and evidence explorer. All 30 main-attempt resul...
Collapse
 
programmer_arnab_96fb057e profile image
Programmer Arnab •

A useful caveat: a canary string mainly proves instruction-following or telemetry, not task success. Pair it with a negative control (canary absent when the runtime is broken) and a completion predicate tied to artifacts/checks, so “canary present but work blocked” is classified separately.

Collapse
 
copyleftdev profile image
Don Johnson •

Good suggestion, and our pilot shows why it matters, though in the other direction: the runtime was broken and the canary was still there. A broken runtime doesn't reliably remove the canary, so its presence can't tell you the runtime worked. We've added both pieces now. The report sets marker status against feature completion, so "present but blocked" has its own cell. There's also a deliberate negative control (plan-control) that runs the agent with a read-only workspace and fails if any run counts as completed work.

Collapse
 
yimingsong profile image
yiming song •

Good point — and the pilot in the article is a nice illustration of exactly that split: the canary was present while the work itself was blocked. Keeping marker compliance and task success as two separate checks feels like the right discipline.

Collapse
 
gnomeman4201 profile image
GnomeMan4201 •

The distinction between marker compliance and actual task execution in your pilot experiment caught my attention.

I've been researching instruction drift, runtime governance, and independent behavioral verification in LLM agents. Your Canary Lab experiment intersects with several questions I've been investigating.

I'd be interested in independently replicating your methodology and extending it into conditions involving sustained context pressure, instruction conflicts, and multi turn execution.

Specifically, I want to investigate whether a valid canary can persist while independently verified behavioral compliance deteriorates, and quantify how reliable that signal actually is as a predictor of failure.

I appreciate that you explicitly separated what your experiment established from what it couldn't establish. That's something I'd want to preserve in any follow up research.

Would you be open to discussing an independent replication or experimental extension?

Collapse
 
copyleftdev profile image
Don Johnson •

Yes, I'd welcome that. The question you describe, whether a valid canary persists while checked behavior degrades, is the one this study couldn't reach. I wrote a replication guide covering what to keep fixed and how to report a cohort so it stays separate from ours: github.com/copyleftdev/canary-arti.... Open an issue on the repo and we can plan the multi-turn design there.

Collapse
 
gnomeman4201 profile image
GnomeMan4201 •

Thanks, man. I opened issue #1⁠ with a sketch of the multi turn study. I’d be interested in your take on the rejected reschedule rule as the first thing to track.

Collapse
 
iictp profile image
IICTP •

Keeping the four questions separate is the part I'd borrow first — instruction loaded, marker followed, behavior correct, feature complete are four different claims, and most agent evaluations I see collapse them into one pass/fail. The uniform-green result reads less like a finding about canaries and more like a calibration of the harness itself: now you know the marker is followable and the checks are sound, so the next run with a weaker model or harder tasks can actually produce a disagreement worth learning from. Which of those would you vary first — the model, or the task difficulty?

Collapse
 
copyleftdev profile image
Don Johnson •

"A calibration of the harness" is a fair way to put it. We'll change the model side first, starting with lower reasoning effort on the same model. That keeps the calibrated tasks and evaluator, so any new failure comes from the model and not from a new instrument. Harder tasks come last because they need a new contract, reference solutions, and calibration. We also added a third condition with a neutral instruction of the same length, to test whether the marker itself changes anything.

Collapse
 
iictp profile image
IICTP •

Starting with lower reasoning effort on the same model is the cleanest first move — keeping the calibrated tasks and evaluator fixed means any new failure is attributable to the model, not to a new instrument. The third condition with the neutral instruction is a smart control: it isolates whether the marker itself changes anything. The thing I'd watch is which side degrades first — 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.

Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

The honest framing here is what makes it — 30/30 green and 15/15 markers matched means the canary is proven followable, not proven diagnostic, and you say so plainly instead of overselling it. The failed pilot is the more interesting result to me: the canary fired and the work still couldn't proceed because the container lacked codex-code-mode-host, which shows a signal with no precise meaning is just noise. What would you change first to actually break the streak — a weaker model, or longer sessions where context drift has room to bite?

Collapse
 
copyleftdev profile image
Don Johnson •

Thanks. One small correction: the pilot doesn't make the marker noise. It has a precise meaning, just a narrow one: one instruction was followed in the final reply, and nothing about whether the work succeeded. The pilot is the clearest example of that gap, which is why the report now has a table of marker status against feature completion.

Since posting, I went through the literature, and it changed the order. A weaker model isn't the best first move: one large study (HAL) found higher reasoning effort actually lowered accuracy in most runs, so turning effort down may not break anything. Two things come first. One is hardening the hidden checks and re-scoring the 30 saved runs, which costs no model runs and might turn up failures the original checks missed. The other is raising the load: many rules in AGENTS.md, or a marker required in every function instead of once per reply. On drift, the closest study I found (McMillan 2026) put a CLAUDE.md rule on every new function and got only about 64% compliance, falling with each extra function in a session. So yes, longer sessions are where it should bite, but that needs a multi-turn harness. gnomeman4201 offered above to work on that as an independent replication, and the guide is here: github.com/copyleftdev/canary-article/blob/main/docs/replicating.md

Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

Fair correction, and it's an important one — the pilot's marker had a precise, narrow meaning, and calling it noise understates what it actually proved. The HAL finding flipping your order is a good catch: re-scoring the 30 saved runs against hardened checks costs nothing and might surface failures the original checks missed. Is the multi-turn harness the thing that decides whether drift actually bites, or would the raised load alone be enough to break the streak first?

Collapse
 
paullovelace profile image
Paul Lovelace •

The most interesting result here might be the pilot, not the 30/30. A missing execution helper killed the run, the canary still showed up, and the work couldn't proceed — that's the exact shape of a signal that proves nothing about the work. And the honest line is the undefined fraction: 30 green runs can't tell you whether a warning would have fired on a failure, because there was no failure to warn about. What would the next run look like — do you crank the difficulty until something actually breaks, or is the point that the marker was never meant to be a warning at all?

Collapse
 
copyleftdev profile image
Don Johnson •

Agreed, the pilot is the more telling result. As we defined it, the marker isn't a warning. It shows one instruction was followed in the final reply. Whether it tracks anything else is still open. We won't raise difficulty until something breaks inside a single run, because then you can't tell what caused the break. Each round changes one thing (effort, then model, then tasks) and is reported separately. The report now also has a table of marker status against feature completion. The pilot lands in "exact marker, work incomplete", which the first report left out.

Collapse
 
syedfahads profile image
Syed Fahad •

new token every run and never in the task prompt is a nice touch. a fixed marker could leak in from memory or an old run and you'd never tell

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

a marker proving the format was followed is a thin result. thirty out of thirty green and it still says nothing about failure.

Collapse
 
copyleftdev profile image
Don Johnson •

Agreed, and that's the main limit of this round. It shows the format can be followed. It doesn't show the marker catches anything, because nothing failed. The next round is designed to produce failures: lower effort first, then a smaller model, one change at a time. Draft protocol: github.com/copyleftdev/canary-arti...