In the last post I argued that agents will pay for judgment, not just data. That's an easy thing to say in a blog post. It's harder to prove with a wallet, a payee address and real settlements on-chain.
So before anything goes to mainnet, I paid myself. A test wallet acted as the agent, signed USDC authorizations over x402, and called the Finding Gate on Base Sepolia again and again until something broke. Plenty did.
First, a name change. AIL now has a public name: Falsara. Same idea, same refuse-only gate, same private-memory roadmap.
The Finding Gate has two paid routes:
POST /v1/check-findingat $0.025POST /v1/check-finding-pocat $0.075, for a finding that comes with a proof of concept
The payment order is the core product rule: verify the payment, run the gates, then settle. If settlement fails, the caller gets a 402 and no verdict. No verdict means no charge, and no charge means no verdict.
Early live runs already returned all three verdicts the Gate is allowed to give: INCOMPLETE, REFUSE and NO_REFUSAL. The plumbing worked on the happy path. The interesting part was everything around it.
A mocked facilitator is polite. A live chain isn't. The first full live round turned up five bugs, and PR #11 fixed all of them:
Foundry PoCs were refused for their imports. The PoC route treated
forge-std, OpenZeppelin, solmate, solady,lib/and@remappings as citations that had to exist in the target. Normal toolchain imports became hard refusals. Now they're stripped only from the writeup copy the citation check reads, andsrc/imports still count.Forged payments could lock out a real payer. The per-payer rate limit read
authorization.frombefore the facilitator verified the signature. Anyone could spend someone else's quota with junk signatures. The per-payer limit now runs only after a successful verify.Transient settle errors burned the signature.
replacement transaction underpriced,nonce too lowand similar submit errors made a valid payment unusable. These are now retried up to three times with backoff. When settlement truly fails, the claim is released so the same signature can be sent again.Malformed evidence was a 503 that burned the signature. An evidence pack that passed the schema but couldn't be read by the gate now returns
400 INVALID_EVIDENCE. It isn't settled, and the claim is released.Re-encoding bypassed the replay guard. Whitespace changes to the same authorization looked like a new payment. The replay key is now the canonical network, asset, payer and nonce.
None of these were exotic. They were all the kind of thing a real agent, retrying in a loop, would hit on day one.
After the fixes, I ran the fifth live round against the patched build:
38 paid calls on Base Sepolia
$1.40 in test USDC spent
0 drift between my receipts and on-chain USDC transfers
0 double charges
latency p50 1,064 ms, p90 2,046 ms, max 2.87 s
no new gate bugs
I also checked the money rules live. A duplicate of a payment still in flight got 409. Replaying a payment after it had settled got 402, because the authorization nonce was already used, and no second verdict. A failed settle returned no verdict body.
Balances reconciled. Every cent the wallet lost showed up at the payee, with a matching receipt.
The gate wasn't the weak point. Settlement was.
I settled through the public x402.org facilitator. Under concurrent calls it started hitting nonce errors: settlement transactions colliding on the gas signer's nonce. I don't control that signer, so I couldn't fix it from my side. My retry logic kept customers from being charged twice, but "retry and hope" is not a payment system.
Settlement was also the biggest piece of my latency. It took about 850 ms of a typical call, before any retries. That's the main reason p90 sits just above 2 seconds.
So I'm building my own.
The self-hosted facilitator handles the exact scheme with EIP-3009 USDC. The design comes straight from what went wrong:
One nonce queue per gas signer. Each signer has its own submit queue and local nonce, so concurrent settles don't fight over the same nonce.
Fee bump and resync. An underpriced error bumps the fee. A nonce-too-low error resyncs and retries.
Idempotent on the authorization nonce. The same signed payment is submitted once. Duplicates join the existing attempt.
Success only after a receipt. A reverted transaction is not a success.
Coinbase CDP as a fallback, carefully. CDP is used only on transport errors or 5xx responses with no transaction hash. A settle timeout never falls through, because the first facilitator may already have broadcast. Charging an agent twice is worse than asking it to retry.
In local tests with 25 concurrent settles plus 5 duplicates, and injected nonce too low and replacement transaction underpriced errors, I got 25 successful sends and zero extra sends from the duplicates. The next step is the same kind of burst live on Base Sepolia.
The money path is the product. Agents won't read your docs. They'll retry, re-encode and race themselves. Every one of those has to land on "charged once, verdict once" or "not charged, no verdict".
Reconcile against the chain, not your logs. "0 drift" only means something when you check it against on-chain transfers.
Shared infrastructure is fine until it's in your hot path. A public facilitator is great for a first demo. Once you depend on it under load, its limits become yours.
a live Sepolia burst through the self-hosted facilitator
never charging without a verdict, even when my own ledger write fails after a successful settle
MCP payments that follow the x402 MCP transport spec, so standard agent clients can pay
mainnet on Base, with both my facilitator and Coinbase CDP, once Sepolia is clean
The Gate is still the cheap public edge. The point of all this plumbing is to make it safe to sell the real products, Prehunt and Patterns, to agents that pay without asking a human first.
Falsara is built by Yuriy Khomenkov at khomdev.org.
Base Sepolia Finding Gate payee: 0xd8633de21Ec6c7455F3bc993e17b5db7CD6D33b4 · network eip155:84532 · $0.025 / $0.075 with PoC · x402

