Design notes, two of a series. One rule from Tessera, the governed AI-agent platform I build, and the reasoning behind it.
The situation
I keep a catalogue of the ways an agent platform can be attacked. It follows the twelve categories of the Cloud Security Alliance’s red-teaming guide for agentic AI, from hijacked authorisation to supply-chain attacks to agents that cannot be traced. For each family the catalogue has two cells: tests that show the attack is refused, and a recovery test that shows the system comes back clean.
The cells filled up. Then I asked a different question of each test: if the control it guards were broken tomorrow, would this test notice? For too many of them the honest answer was that I did not know. Some tests asserted a refusal and exercised the break in the same method, so one could not fail without the other. Some had no failing case at all. A green cell said that tests existed. It did not say they could catch anything.
Dijkstra said it in 1970: testing can show the presence of bugs, never their absence. A test that has never failed has not even shown that much.
The rule
A test counts only with a demonstrated kill.
Every test of a security control gets a twin. The twin arms a fault switch that breaks the control on purpose, and then the original test must go red. Only then does the catalogue count the original. The two are separate test methods, so the proof that the test can fail is not tangled up with the test itself.
Three examples of what that looks like.
The stop. Stopping an agent must stop everything it started. The test issues a stop to a run that has a tool running in a sandbox. It requires that every descendant is found, and that an independent read shows nothing left running with authority. The twin flips a switch that leaves one descendant off the list. If the test stays green, the test is the defect.
The supply chain. A release that was never approved, or whose approval was revoked, must be refused before anything is changed, with zero calls to the component that makes the change. And a rollback must not quietly restore an earlier approval. A separate observer of the running state gives the verdict.
Memory. A quarantined memory entry must be unreadable, and a purge must remove it from the durable store completely. The verdict comes from a read of the store that shares no code with the purge.
That last clause matters as much as the kill. A control that reports its own success is a witness testifying for itself.
Two housekeeping rules keep the catalogue honest. A cell that has tests but no demonstrated kill is listed as a gap, in the catalogue itself. And a gap is removed only by the change that lands the counting test, never by an edit to the list. A script checks both on every change.
What I rejected, and why
Code coverage as the measure. Coverage says a line ran. It does not say any assertion would have objected.
Mutation testing across the whole codebase. It is the same idea, from 1978, applied everywhere: seed faults automatically and count the ones the tests kill. It is valuable and slow, and its faults are syntactic. I want a small number of deliberate faults, each aimed at one named control: the stop that misses a child, the purge that leaves a row.
Trusting review. A reviewer can see that a test asserts a refusal. Seeing that it would fail under a fault nobody has written is beyond most of us on a Friday.
What it costs
Roughly double the test work for every security control. A fault switch in the product for each control, which is itself a risk: it must be inert in production, and that inertness needs its own proof. And a catalogue that shows its gaps to anyone who opens it, which is uncomfortable in exactly the way it should be.
What this does not claim
In Tessera the tests for the stop, the release supply chain and memory run with their kills. That shows each test can catch the one failure it was paired with. It does not show that the control is sufficient, or that the twelve families are complete. And no thresholds are set here. I would rather have no number than an invented one.
If you take one thing
Pick the control you would least like to lose: the stop, the approval, the tenant boundary. Break it on purpose, in a branch. Run the tests and count the ones that go red. That count is your coverage of that control, and it may be zero.
A test that has never been seen to fail is a Norwegian Blue. Lovely plumage. Check whether it is nailed to the perch.
References
The sources and allusions in this piece, with their origin:
- Cloud Security Alliance, Agentic AI Red Teaming Guide (2025): the twelve categories the catalogue follows.
- Edsger W. Dijkstra, Notes on Structured Programming (1970): testing shows the presence of bugs, never their absence.
- Richard DeMillo, Richard Lipton and Frederick Sayward, “Hints on Test Data Selection: Help for the Practicing Programmer”, IEEE Computer (1978): the origin of mutation testing.
- Monty Python’s Flying Circus, the “Dead Parrot” sketch (BBC, 1969).

Rutger Hemrika
AI strategy and governance for mission-critical software. Writes from building, not from slides; every claim carries an evidence grade.