Checks

This page describes every check in the lab, the 23 test types its findings are filed under, and how each check proves it works before it is allowed to block a release.

How a check proves itself

A check that has never caught anything has not proven it can. So the lab carries its own deliberately breakable product, the toybox: a small notes application with accounts, tenants, orders, a payment webhook, a scheduled job and a classifier. It has twenty-two planted bugs. Each one is a switch that turns on one real kind of mistake.

The lab's selftest runs the toybox once with every switch off, where every check must stay quiet, and then once for each switch, where the check that claims that switch must fail. A check that cries wolf on the clean toybox, or misses its own planted bug, fails the selftest. Every one of the twenty-two switches is watched by exactly one check, and the lab's own tests fail if a switch is left unwatched or watched twice.

Checks that no planted bug can fairly prove, such as the AI community and the agent comparison, report what they see, and the lab marks none of their findings blocking. A few checks have no planted bug in the selftest and can still block when your gate is set to block: the agent benchmark, five attack modules, the payments check and the uninstall check on a virtual machine. Your gate's report patterns can name any of them to keep it from blocking. Here is how each is tested instead. This is weaker evidence than a planted bug in the self-test: a stand-in shows that a check can catch one kind of fault, not that it catches that fault on your product, so read a pass from these checks with more caution.

  • The agent benchmark. Its tests run it against a small stand-in agent that can be set to fail one way at a time: slowing down under concurrency, drifting on known answers, forgetting or contradicting itself in a long conversation, agreeing with a false claim, leaking a planted canary through a prompt injection, or costing too much. Each suite has to catch its fault.
  • Five attack modules: authentication, injection, spoofed headers, oversized bodies and double submission. They are run against the clean toybox, where none of them may raise a blocking failure and at least one has to come to a pass. In their own tests, the authentication module also catches the toybox's password reset that leaves other sessions logged in, and the double submission module catches its double charge.
  • The payments check. Its webhook relay is tested against a stand-in webhook on the lab's own machine that checks signatures as a target should: events relayed with the right signing secret are accepted, and events signed with another secret are refused. In a run it needs a test key for the payment provider; without one it reports a skip that says why.
  • The uninstall check on a virtual machine. It runs the uninstall steps and the clean-up checks your profile gives, and fails if a step fails or a clean-up check does not hold. The lab's tests do not plant a failed uninstall, so this check is not proven against a planted bug.

These are the twenty-two planted bugs.

  • Security headers missing on some pages.
  • A forbidden claim split across two lines of a page, so a naive search misses it.
  • A secret written to the application's log.
  • One tenant able to read another tenant's record by its id.
  • A refusal that looks different for a record that exists and one that does not.
  • A payment webhook that accepts a bad or missing signature.
  • A password reset that leaves the account's other sessions logged in.
  • Unknown addresses answering as if they existed, rather than with not found.
  • A database dump downloadable from the web root.
  • A content security policy that blocks the page's own script.
  • One order charged twice.
  • A scheduled job that reports success and does nothing.
  • The application writing outside its own stage, into something it must never touch.
  • A classifier that quietly gets worse.
  • Responses that slow down sharply once many requests arrive together.
  • A sign-up that fails when the mail server cannot be reached, instead of keeping the message for later.
  • Links in mail that point at the production site instead of the copy that sent them.
  • A password reset link that keeps working after it should have expired.
  • A search that hands the database's own error back to the caller.
  • Password reset requests with no rate limit.
  • An assistant that follows an instruction buried in the text it was handed.
  • An assistant that acts for another tenant when the request asks it to.

What the lab has not proved yet

Twenty-two switches is what the toybox has, not everything that can go wrong. It has no switch for these kinds of bug, so the lab has not proved it would catch any of them:

  • cross-site request forgery on a state-changing form
  • an authorisation bypass on one endpoint
  • vertical privilege escalation between roles
  • a concurrent race on payment or coupon redemption
  • personal data in logs beyond one token
  • stored cross-site scripting
  • an open redirect
  • mass assignment
  • file upload handling
  • session fixation

Each needs a switch and a check that catches it before the lab claims it. Until then a claim about any of them is at best argued, never tested.

The 23 test types

Every finding is filed under one of 23 test types, in six groups. Reports use the groups as headings.

Does it work? Journeys, interfaces, business rules, multi-party, money and messages.

Is it safe? Identity, isolation, attack and agent risk.

Does it hold up? Deployed shape, load, resilience and lifecycle.

Is it true? Claims, privacy proof and record integrity.

Is it good? Usability, platforms, agent web and accuracy.

Does it last? Time, and release to release.

Here is what writes findings under each.

  • Journeys: the journey runner, the explorer, and the AI community report.
  • Interfaces: the fixture server in strict mode, for every call your product makes to an outside service that has no recorded answer.
  • Business rules: invariants, and the silent work check.
  • Multi-party: the AI community report.
  • Money: payment events relayed from the payment provider's test mode to your webhook, and money invariants such as one charge per order.
  • Messages: the mail checks.
  • Identity: journeys and invariants that declare it, such as a password reset ending every other session.
  • Isolation: the isolation check and the untouched proof.
  • Attack: the adversaries and the canary check.
  • Agent risk: the agent benchmark, for prompt injection and pushback.
  • Deployed shape: the edge check.
  • Load: the load check, the benchmark's latency suite, and the bottlenecks in the community report.
  • Resilience: the resilience check.
  • Lifecycle: journeys and invariants that declare it. A check of its own, on a clean throwaway machine, is planned for later.
  • Claims: the claims check.
  • Privacy proof: the canary check, and journeys and invariants that declare it, such as exporting your own data.
  • Record integrity: journeys and invariants that declare it.
  • Usability: the AI community report.
  • Platforms: journeys and invariants that declare it.
  • Agent web: the human web and agent web comparison.
  • Accuracy: the accuracy check, and the benchmark's knowledge suite.
  • Time: the time journeys.
  • Release to release: residents across releases.

So nineteen test types have a check of their own, and four, identity, lifecycle, record integrity and platforms, are covered by what your profile declares. Any journey or invariant can name the test type its finding belongs to, so you can put a check of your own under any heading.

The front door and what you say

Edge

The edge check looks at your deployed shape. Required security headers must be present on every page your profile lists and on the home page, and each missing header comes with a sentence saying why it matters. An unknown address must answer not found. A fixed list of files that must never be served, such as a version control folder, an environment file or a database backup, must not be served, nor a backup copy of any page. Old hosts must redirect or refuse. Transport security is checked where there is any. Pages must load under their own content security policy, checked in a real browser. The edge check never follows redirects, so each address is judged as it is actually served. It is proven by four planted bugs: missing headers, unknown addresses answering, a served database dump, and a policy that blocks the page's own script.

Claims

The claims check reads your pages, scripts and compiled web modules for phrases you must never say and phrases you must always say. It reduces each page to its visible words, so a phrase split across lines or across a piece of markup is still found. Phrases match as whole words, so "unverified seller" is not the claim "verified seller", and a phrase with a negation such as not or never just in front of it is reported as something seen, not as a failure, because "we do not sell your data" is not the claim "we sell your data". A forbidden phrase found anywhere outside the paths your profile exempts is a blocking failure with a short quote and the exact address. It is proven by the claim split across two lines.

Safety

Isolation

The isolation check makes an account and a record for every role, then calls every route that takes an id as every role against every other role's record. Reading another tenant's record is a critical failure. A refusal that differs from the refusal for a missing record is an existence leak. It also checks each route's allow list, refuses anonymous callers, and times refusals to report a measurable gap between real and missing records. It is proven by the tenant leak and the existence leak.

Canary

The canary check plants fake but realistic secrets, thirteen kinds, each carrying a unique marker, through settings, files and sign-up forms. After the run it sweeps the logs, every recorded response, captured mail, your pages and any other places your profile names, and it sees through percent, base64, hex and JSON encoding. A marker found anywhere is a critical failure that says where it was found, never the value. It is proven by the secret written to the log.

Adversaries

Seven attack modules, each filed under attack. Attack checks run against a customer's staging site only when you explicitly opt in.

  • Webhooks: unsigned, wrongly signed, stale and replayed webhooks. Proven by the webhook that accepts a bad signature.
  • Authentication: whether repeated failed logins are slowed or locked, whether a password reset ends old sessions, whether a token stops working after logout, and whether a suspended user is shut out.
  • Injection: database, script, path and server-side request payloads sprayed into common fields on every route that accepts data. It fails on a server error with a body, a script reflected back in a page, or a call to its own listener.
  • Enumeration: walking ids around a record of its own, reported as observed, since the isolation check is the authoritative test.
  • Spoofed headers: whether rotating forwarded-for headers gets around a login rate limit.
  • Oversized bodies: one and ten megabyte requests, failing on a server error or a hang.
  • Double submission: submitting a payment route twice and checking each order has exactly one charge. In a full run, the planted double charge is caught by the one-charge-per-order invariant.

Attacks are grouped into packs, such as a baseline pack, an authentication pack, a webhooks pack, a mail pack and a money pack, and your profile chooses which run.

The untouched proof

The untouched check fingerprints every never-touch file, folder and database before the run begins and again after it ends, and fails, critically, on anything that appeared, disappeared or changed. It also fails on every connection the guard refused. It is proven by the application writing outside its stage. See Evidence.

Working and holding up

Journeys and the explorer

The journey runner walks every journey in your profile, each with a clean session of its own, and wraps your own test suites. Each journey is one finding, and a failure names the step and carries a curl reproduction. The toybox's password reset journey proves it, by catching the reset that leaves other sessions logged in.

The explorer takes one journey and mutates it into dozens of variants: bad input in every field, repetition, going back and reloading, a dependency down, reused, expired and never-arriving mail, the wrong kind of credential, and leaving and coming back. Each variant is sorted into completed, handled refusal, dead end, crash or inconsistent. A crash is a tested failure.

Invariants and silent work

Invariants are the rules in your profile that must always hold, checked with a read-only query, a recorded request or a command. A check that cannot be carried out is inconclusive, never a silent pass. The silent work check calls each scheduled job's trigger and then proves, with an invariant, that the job really did its work. It is proven by the job that reports success and does nothing.

Load

The load check generates traffic from a weighted mix of addresses or from your own journeys, as a steady rate, a ramp, steps, a spike, or a number of virtual users with thinking time. For rate-based stages every arrival is worked out in advance, so the traffic can be repeated exactly, and every run is capped at a set number of requests. It can stand for many separate clients, so it measures your capacity rather than your rate limiter. It reports what your product managed and where it stopped keeping up, and tests the 95th percentile response time and the error rate against your targets. It refuses to start on a busy machine, because a load test on a busy machine proves nothing. It is proven by the toybox that slows down under load. Load testing a customer's staging site is subject to the rate limits described in Security.

Resilience

The resilience check puts a fault between your product and one of its dependencies, such as its mail server or database, without changing anything inside your product. Faults include delay, a dropped or refused connection, a server error, a slow or cut-short body, and a connection that never answers. It runs a journey healthy, with the fault in, and with the fault out again, and judges five rules: no crash, no internals such as stack traces in error pages, honest answers rather than a zero or an empty list where there was data, no data lost, and nothing that must not wait kept waiting. It is proven by the sign-up that fails when mail is down.

Mail

The mail checks judge every message the run captured. Every link must point at the copy under test or a host you allow, never at production. Every link must open, and a one-time link must work once and then be refused. No message may carry a secret or another recipient's address. Every message needs a subject, and marketing mail must carry an unsubscribe header. The sender's domain must align with the envelope. Whether your real domain publishes SPF, DMARC and DKIM records is not yet checked. Whether mail lands in a real inbox is not yet checked. It is proven by mail links that point at production.

Time

The time journeys move your product's clock to prove that what should expire does, such as a password reset link an hour after it was sent, and that what should still work still does. A product whose clock cannot be moved gets one skipped finding saying so, never a failure. It is proven by the reset link that never expires.

Money

The lab relays the payment provider's own test-mode events to your webhook, and money invariants such as one charge per order check the result. The lab works only in test mode and stops a run if any answer says otherwise.

Is it good and does it last

Accuracy

For products that judge things, such as a classifier or a document reader, the accuracy check sends every row of a labelled dataset and measures accuracy, precision, recall, false accepts and false rejects, each with a 95 per cent confidence interval, plus the worst mistakes with their inputs redacted. It fails only when even the top of the interval is below your baseline or floor, so noise alone does not fail a run. It is proven by the classifier that quietly gets worse: on the toybox a clean classifier scores 94.5 per cent and the planted bug drops it to 69.5 per cent.

The agent benchmark

The benchmark tests your own AI agent's deployed endpoint: real speed at several levels of concurrency, the turn where a long conversation falls apart, known-answer knowledge, whether it agrees with false claims, whether a prompt injection hidden in a message or in retrieved content gets through, and cost per resolved task. It has no planted bug, since the toybox is not a conversational agent. Its failures can block a gate set to block; list it under your gate's report patterns to have it report only.

Residents across releases

A fixed, seeded population of residents walks the same journeys on your current release and on the candidate, with the same choices and the same thinking time. The lab compares completion, giving up, errors and time per journey, overall and by kind of resident. A change counts as worse for customers only when it is both statistically significant and large enough to matter. In its own tests, a release behind a slow connection is caught as worse for customers even though every scripted journey passes on both. It reports and does not block.

The AI community and the agent web

The AI community and the human web and agent web comparison have pages of their own: The AI community and Human web and agent web. Both report what they observe. The lab marks neither blocking. A failed finding of theirs holds a release only if your profile's gate names it. One that could not be decided holds any gate set to block, unless your profile lists it to report only.

Plain text version, for reading aloud