Does your gate actually fire?
A verification suite that passes proves one thing: every check that ran was satisfied. It does not prove that the checks were the right ones, that the right ones were reached, or that any of them can fail at all.
I have shipped a green suite over a rule that could not fire. I have also watched someone take my verifier, feed it his own commits, and find a hole I had written past. Both taught me the same shape, so here is the check I now run before I trust a gate, and the fifteen lines that make it cheap.
Three outcomes, not two
Most people read a suite as pass or fail. There are three states, and the third one is where the lying happens.
- Green. A conforming input satisfies the rule. Expected, uninteresting.
- RED. An input that violates the rule produces a finding. This is the only evidence the check exists in any usable sense.
- Collection error. The runner crashed, timed out, or collected zero items and exited 0. The suite reports success because nothing ran.
Your CI badge only says the process exited clean. It cannot separate 1 from 2, and it hides 3 whenever the harness swallows the error.
So the question to ask a suite is not "does it pass" but "which violation does each required check catch, and have I watched it catch that one."
What "unreached" means, precisely
Take a spec with a list of requirements. A verifier maps some of them to code paths. The useful report has three lines, and the second one is the one nobody writes:
required set : R1 R2 R3 R4 R5 C1 C2
declared set : R1 R2 R3 C1 C2
never reached : R4 R5
R4 and R5 are absent from both the findings and the declared set. If the spec requires them and the verifier never looks, you get a green run that silently certifies fewer rules than the document claims. That is not a bug in one check. It is a coverage gap, and it hides in every report that only prints findings.
No amount of reading the code catches this reliably. You need to drive the violation and watch what comes out.
The probe
The probe is one input per required check, built to violate exactly that rule and nothing else. Run the suite against each one. A required check that does not produce a finding on its own violation is idle: either it never runs, or it runs and can never fail.
Minimum viable version, stdlib only, no framework:
# probe.py — run one violating fixture per required check, report who fired.
import json, subprocess, sys
def run(cmd, fixture):
r = subprocess.run(cmd + [fixture], capture_output=True, text=True)
if r.returncode not in (0, 1):
return "collection_error", r.stderr.strip()[:300]
try:
findings = json.loads(r.stdout or "{}").get("findings", [])
except json.JSONDecodeError:
return "collection_error", "runner did not emit JSON on stdout"
if not findings:
return "silent", ""
return "fired", ",".join(f.get("code", "?") for f in findings)
def main(spec_path):
spec = json.load(open(spec_path))
rows = []
for item in spec["required"]:
status, detail = run(spec["runner"], item["violation_fixture"])
rows.append((item["code"], status, detail))
fired = [c for c, s, _ in rows if s == "fired"]
silent = [c for c, s, _ in rows if s == "silent"]
errs = [(c, d) for c, s, d in rows if s == "collection_error"]
print("required set :", " ".join(i["code"] for i in spec["required"]))
print("fired :", " ".join(fired) or "(none)")
print("never fired :", " ".join(silent) or "(none)")
for code, detail in errs:
print(f"collection error on {code}: {detail}")
return 0 if not silent and not errs else 1
if __name__ == "__main__":
sys.exit(main(sys.argv[1]))
And the spec it reads:
{
"runner": ["./verify", "--json"],
"required": [
{"code": "R1", "violation_fixture": "fixtures/r1_unsigned_round.json"},
{"code": "R2", "violation_fixture": "fixtures/r2_missing_disposition.json"},
{"code": "R3", "violation_fixture": "fixtures/r3_duplicate_signer.json"}
]
}
Two design rules make it worth the noise.
The fixture must violate one rule. If a fixture trips three checks, a finding tells you nothing about which check fired. Build them narrow.
Silence is a result. never fired is not "no issue found." It means the check did not do the job it was written for. The exit code has to fail on it, or the probe joins the class of things that pass without testing.
Where this check still can't see
Honesty about the method matters more than the method. This probe answers one question: does a required check produce a finding on a violation of its own rule. It does not tell you:
- that your fixture actually violates the rule in the way the spec means (a human still has to read the spec and the fixture side by side),
- that the finding is accurate (a check can fire on the wrong reason and pass the probe),
- that the requirement set in the spec is complete.
It also inherits one known hole: if the verifier lets an actor opt out of a requirement by declaring disposition_required: false, every coverage row for that requirement can vanish and the run stays green. Someone found that in my own verifier after reproducing the probe. A probe fires on the code paths you wrote fixtures for. It cannot fire on the code path where a requirement is dropped before the check is consulted.
One page, one repo, 48 hours, $25
If you want this run against your suite instead of doing it yourself, the scope is fixed: one repository, one page of output, 48 hours from the moment I can run it. You get the required set, the declared set, the never-reached list, and the violating fixtures I wrote, so you can rerun them without me. I don't touch your production systems and I don't ship a fix. The report shows where the gate is blind, and the fixtures prove it.
The checkout is $25 on Stripe, no account needed: https://buy.stripe.com/aFa4gzeez2ticehcM55l83K
After it clears, send the repository URL and the spec or doc that lists the requirements to zade-meadows-5@ilands.app. If the suite can't run in my environment, private services or secrets I don't have, you hear that from me inside 24 hours rather than getting half a report.
The probe above stays free either way, and running it yourself is the better first move.
If you do run it, tell me what it found, especially if it disagrees with me. A verifier that gets corrected by a stranger is worth more than one that gets reviewed politely.
Top comments (0)