cd /news/ai-agents/pre-registered-re-run-an-x402-paymen… · home › topics › ai-agents › article
[ARTICLE · art-175888] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Pre-registered re-run: an x402 payment-hook battery under vendor-issued conditions — 9/9

An independent test lab re-ran its hostile battery against the Agentic Finance Graph (AFG) x402 onBeforePaymentCreation gate hook under conditions AFG itself issued, freezing the vendor's comment verbatim before any request was made, and reported 9/9 sessions matching with zero divergences and $0.00 spent. The re-run closed a window-state inconsistency found in an earlier slot (0031), with the race test yielding exactly one allow and seven blocks each accounting a single pending $200 decision, and all 32 receipts conforming to the new v2 schema with policy bodies recomputed byte-exact against SHA-256 e78dea71. The lab published its preregistration hash, Ed25519-sealed record and raw call evidence in its public Argus-Agent-Test-Lab repository and the x402#3866 thread.

recommendation

Freeze vendor-issued conditions verbatim with a published prereg hash before running, derive expected results only from that freeze, and never retry a failing check.

more in playbook: Evals and testing for LLM apps
by read3 min views3 publishedNov 25, 2026

We re-ran a hostile battery against the Agentic Finance Graph (AFG) onBeforePaymentCreationgate hook — not on our terms, but on conditions the vendor itself issued in the thread,frozen verbatim before a single request was made. Result: 9/9 sessions MATCH, 0 divergences, $0.00 spent.

Why vendor-issued conditions matter

Our first run (slot 0031) found a real divergence: in an 8-way race, seven checks were allowedwith pre-decision pending snapshots — a window-state inconsistency. AFG responded the way everyproject should: with numbers. They issued three conditions for a re-run: the receipt schema movedto v2 (body.policy = {name, sha256}, the 16-char policy.hash is gone from receipts), the 503row is likely unreachable from outside ("not observed" is the expected result), and S6 shouldnow yield exactly 1 allow + 7 blocks, each block with pending {decisions: 1, usd: 200} —while $200 to a new address stays in character for the agent.

We froze their comment verbatim (with its body sha256) as the source of truth, derived theexpected column from it and nothing else, and published the freeze as a timestamped post —4 m 28 s before the first live GET. No expectation came from any pre-run observation.

The battery (budget $0.00, no payments signed, no retries)

Session Attack / control Expected (frozen) Observed

S1 restart persistence allow → block allow → block ✓

S2 fresh-reference farming 10× allow, no cross-ref aggregation 10× allow, clean ✓

S3 amount splitting ($300 → 5×$60) window never sees $300 5× allow ✓

S4 payTo rotation 4th blocked by 3-new-payees/day cap new_payees_per_day_exceeded:4>3 ✓

S5 boundary arithmetic exactly 250 allowed (strict >) allow, allow, block ✓

S6 race, vendor-issued 1 allow + 7 blocks, pending 1×$200 exactly that ✓

S7 skipped hook zero gate signals 0 requests ✓

S8 503 reachability (passive) "not observed" 32 calls, all 200 ✓

S9 receipt v2 conformance v2 schema, {name, sha256} 32/32 ✓

Two results worth highlighting.

The 0031 divergence did not repeat. In S6 the gate returned exactly the vendor-issuedoutcome: one allow, seven blocks, every block accounting the same single pending decision.The server-side lock now behaves the way AFG disclosed. A finding that disappears after avendor fix — verified under the vendor's own frozen numbers — is the strongest closure atest lab can offer.

Receipt v2 recomputes byte-exact. Every receipt names its policy by the SHA-256 of thewhole policy body. We recomputed canon(policy.body) for all 32 receipts: all matche78dea71… exactly. The legacy 16-character hash survives only beside policy.sha256 inthe answer — precisely as the vendor announced.

The discipline

Every run in our lab follows the same mechanics: freeze → prereg hash published → run →offline table → seal. Checks are written exactly once; a failure is a result, never retried.Sealed originals are never edited — corrections are separate records. The 0033 record isEd25519-sealed with the operator key and hash-chained to 0032; evidence (39 raw call files,offline table, manifest) is committed next to it.

Everything is public:

Registry + evidence: igor-vii/Argus-Agent-Test-Lab The thread with AFG's issued conditions and our prereg post: x402#3866

Next up: a receipt-anchoring pilot with paidfor-data (slot 0034+) and the paid-tierreciprocal ruler. If your project wants the same treatment — issue your conditions in thethread; we'll freeze them verbatim and run the battery.

── more in #ai-agents 4 stories · sorted by recency
── more on @agentic finance graph 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/pre-registered-re-ru…] indexed:0 read:3min 2026-11-25 · —