Bitcoin Agent Financial Execution Diagnostics
Bitcoin Agent Financial Execution Diagnostics
Design and operational boundaries
Classify normalized execution evidence into explicit next actions. A timeout or ambiguous response requires reconciliation, never an automatic new payment. A known transaction identifier is a lookup reference, not confirmation. The adapter must obtain evidence from trusted sources.
Independent reference implementation
1import re
2
3def diagnose(evidence):
4 state = evidence.get('state')
5 txid = evidence.get('txid')
6 if state == 'broadcast' and isinstance(txid, str) and re.fullmatch('[0-9a-f]{64}', txid):
7 return 'TRACK_TRANSACTION'
8 if state == 'not_dispatched' and evidence.get('trusted_local_proof') is True:
9 return 'REVIEW_ORIGINAL_INTENT'
10 return 'RECONCILE_WITHOUT_NEW_SEND'
11
12assert diagnose({'state':'timeout'}) == 'RECONCILE_WITHOUT_NEW_SEND'
13assert diagnose({'state':'broadcast','txid':'a'*64}) == 'TRACK_TRANSACTION'
14assert diagnose({'state':'not_dispatched'}) == 'RECONCILE_WITHOUT_NEW_SEND'Validation
Run the example locally to execute its synthetic assertions. This is an offline study, not a production monitoring service. It does not execute SEND, access wallet credentials or change the immutable wallet fee law.
Related research
https://thamer.org/learn/bitcoin-for-ai-agents-open-integration-guide
https://thamer.org/api
