Risk-Based Bitcoin Agent Payment Authorization
Risk-Based Bitcoin Agent Payment Authorization
Design and trust boundary
Use deterministic risk signals from trusted services rather than a model-generated risk score. Missing or unknown signals require review or denial. An automatic decision is only one gate; budget reservation and exact intent authorization remain mandatory.
Independent reference implementation
1"""Offline educational example; no wallet calls."""
2def decision(debit, known_destination, evidence_fresh):
3 if type(debit) is not int or debit <= 0 or evidence_fresh is not True:
4 return "DENY"
5 if known_destination is not True or debit > 5000:
6 return "REVIEW"
7 return "ELIGIBLE"
8
9assert decision(5000,True,True) == "ELIGIBLE"
10assert decision(5001,True,True) == "REVIEW"
11assert decision(1,None,True) == "REVIEW"
12assert decision(1,True,None) == "DENY"Operational boundaries
All amounts are integer satoshis. This offline example assumes trusted policy inputs and does not authenticate a caller or execute SEND. Production requires durable state, exact intent binding, stable idempotency and reconciliation of uncertain broadcasts. The external policy must not modify the immutable wallet fee law.
Related research
https://thamer.org/learn/bitcoin-for-ai-agents-open-integration-guide
https://thamer.org/api
