NWC LimitProbe
Stress-test AI agent Bitcoin spending limits
Created on 3rd October 2026
•
NWC LimitProbe
Stress-test AI agent Bitcoin spending limits
The problem NWC LimitProbe solves
AI agents can now initiate payments at machine speed, but giving an autonomous agent a wallet with a spending limit raises an important question:
What happens when multiple individually valid payments hit that limit almost simultaneously?
A normal sequential payment test does not prove that the spending boundary will still hold under concurrent pressure. If enforcement is not atomic, multiple requests could potentially settle even though their combined value exceeds the configured budget.
LimitProbe is a black-box Nostr Wallet Connect spending-limit stress tester for AI-agent Lightning wallets.
It creates concurrent payment pressure, observes the NWC responses, independently checks what actually settled on the receiver LND node, reconciles the wallet budget, and produces redacted evidence with a deterministic PASS / FAIL / INCONCLUSIVE result.
In our verified live test, a wallet had a 1,000 sat spending limit and received two concurrent 700 sat payment attempts only 1.312 ms apart.
One payment settled for 700 sats. The other was rejected with QUOTA_EXCEEDED and remained unpaid. Independent receiver-side evidence confirmed only 700 sats settled, leaving 300 sats of the original budget.
Final result: PASS.
LimitProbe is designed to help wallet developers, AI-agent developers, and Bitcoin payment infrastructure teams verify that spending controls remain trustworthy under machine-speed payment pressure.
Challenges I ran into
The hardest part was not sending two payments at once — it was proving what actually happened without overclaiming the result.
Early versions could see one successful payment and one rejected NWC response, but that was not enough for a trustworthy PASS. For example, an unpaid receiver invoice could still be OPEN rather than terminally unpaid.
That forced us to build a stricter evidence model.
LimitProbe now combines:
- NWC payment responses
- NWC invoice lookups
- independent receiver-side LND observations
- before/after budget state
- timing and provenance data
We also hit several real implementation problems during live testing.
Timestamp sources used different fractional precision, which initially invalidated otherwise valid evidence. We fixed this by safely canonicalizing supported timestamps.
The reconciliation collector also originally assumed a specific payment ordering: A settled and B canceled. In a real race, either request can win. We changed the collector to handle both valid orientations without weakening the evaluator.
Most importantly, we deliberately kept results INCONCLUSIVE whenever the evidence was incomplete instead of forcing a PASS.
After fixing the evidence pipeline and collector behavior, the final live run produced complete receiver-side evidence and a verified PASS without changing the spending invariant or weakening the classification rules.
Tracks Applied (2)
Machine Money
Bitshala
Freedom Stack
Bitshala