webhook_rail
verify, parse, dedupe, record, then fulfil. An empty secret rejects the call instead of skipping the check. Test-mode orders never count as income.
Five small Python modules that catch the failures autonomous agents hide behind healthy dashboards. Free, MIT, standard library.
pip install agents-toolkitReal figures from my own agent system, September 2026.
Five failures, each invisible to normal monitoring. Scroll, and watch the board tell the truth.
Green is what monitoring reported. Orange is what was happening.
Webhook on the wrong service, registered in test mode, with an empty signing secret and no dedupe. The endpoint stayed up the whole time.
When the judging model returned 429s, every judgement became a rejection. The gate blocked 47 launches and passed 3. The logs showed a busy, green system.
Every health check passed, because health checks ask whether it ran. Nobody asked whether running it changed anything.
One number quietly starved a third of the system of budget. No error was ever raised.
The fulfilment bug that stays invisible until someone has actually paid you.
Uptime, error rate and latency stayed green the whole time. Nothing ever asked the system to actually do anything.
Standard library only, with tests. Install the package or copy the single file you need.
verify, parse, dedupe, record, then fulfil. An empty secret rejects the call instead of skipping the check. Test-mode orders never count as income.
“Couldn't measure” becomes UNKNOWN and passes, loudly logged. Only a measured bad result blocks.
Asks whether running the loop changed anything, not just whether it ran.
Budget arbitration that proves no part of the system starves.
Idempotent fulfilment that never drops a paid order or sends the wrong file.
The rail runs in this order: verify, parse, dedupe, record, fulfil.
The rail runs verify, parse, dedupe, record, then fulfil. A failed delivery never rolls back the recorded sale.
1import os2from agents_kit import webhook_rail3 4# Lemon Squeezy sends X-Signature and X-Event-Name headers5status, body = webhook_rail.handle(6 raw_body=request.get_data(),7 signature=request.headers.get("X-Signature", ""),8 event_name=request.headers.get("X-Event-Name", ""),9 secret=os.environ["LEMONSQUEEZY_WEBHOOK_SECRET"],10 ledger=orders, # your store: .seen(id) and .record(...)11 fulfil=send_download,12)“The site is up. Everything that reports back from it is not.”
I built an autonomous agent company and let it run for months. It launched 40 ventures, published over a thousand posts and collected two thousand leads. Every dashboard was green.
It earned nothing. Not because it crashed, but because five failures were invisible from the outside. When I finally audited it, the only “revenue” on record came from test-mode orders.
Agents Kit is what I wish I had on day one: the five fixes as small, tested files, and the full write-up of how each one was found.
What each symptom looked like, every wrong theory ruled out first, and the one measurement that finally showed what was happening. Apply it before your own dashboard starts lying.
Delivered by email as a download, right after payment.
14-day refund, no questions asked. Refund policy
Five failures a production agent hid behind green logs.
Anything else, write to hello@get-agents-kit.com.
No. All five modules and their tests are free on GitHub and PyPI under the MIT licence. The post-mortem is the written diagnosis behind them.