How to Prove a Refusal Gate Actually Ran
Book a 20 minute call Free, no commitment, and you leave with the answer either way.
An Empty Log Proves Nothing
A refusal log that shows no refusals can mean two things. The gates held and nothing bad arrived. Or the gates never ran, or nothing read them, and the log is empty for the wrong reason. From the outside the two look identical.
This matters most where an automated agent touches money. If a gate is meant to stop a message from going out, the useful question is whether it stopped one when it should have, and whether that is recorded where a person will find it.
Run It on Invented Data
The test is a walk through the real code with made-up requests. No real invoice, no key, no network. We built one for PayPilot, a portfolio project for handling failed payments. It has no paying clients, and its page says so.
The walk sends seven requests. One carries a field the endpoint does not accept. One has a failure code outside the rules table. One sends to an address missing from the allowlist. One is a message the output guard rejects. One is a model-written draft that a guard replaced with fixed template copy. Those five are refusals.
The other two are controls. One is an ordinary decision that matched a rule. The other is a provider that failed. Neither counts as a refusal, because nobody decided to refuse anything.
Name the Rows Before You Look
The walk does not print a table and call it done. Before it runs, it names the five rows it expects, each under the gate that should have produced it. It then reads the refusal view, a single list of every refusal across the places that record them, and fails when any of them is absent.
It fails the other way too. If either control appears in the view, the run fails. A view that lists a provider outage as a refusal misleads as much as an empty one. It teaches the reader to ignore the list.
Publish the Run, Not a Description of It
The public page for this is generated by running the walk. A test regenerates it and fails the build if the committed page and a fresh run disagree. If a gate stops refusing, the page goes stale, the build goes red, and nobody ends up reading a claim the code no longer makes.
The page also lists what it does not show. The data is invented. The run uses a local SQLite store and an in-memory event log. The event log is not switched on for the public deployment, so on the live app a draft the guard replaced would not appear in the view. The Postgres path is not part of the walk, and the page says nothing about how often any gate fires.
What to Take From It
Three checks apply to any gate you put in front of money.
- Name the rows you expect before you look at the output.
- Include cases that must not appear, and fail when they do.
- Generate any public claim from the run, so the claim cannot outlive the behaviour.
You can see the walk and its result at paypilot.fly.dev/refusals-sample.
Want this set up for your business?
Book a 20 minute call →