Evidence-Driven Bitcoin Execution for Autonomous Software
Research status: Engineering philosophy based on the stated product architecture and reported laboratory evidence. New examples and procedures are illustrative and have not been executed.
A successful response is not the end
A local execution interface gives a program access to Bitcoin operations, but the network has its own settlement lifecycle. In the first Codex payment experiment, the operator sent 132,437 test satoshis. The transaction output matched the address, while the initial wallet scan returned BALANCE_WARMING. The report ended before confirmed reconciliation. That is evidence of receipt observation, not a completed spendable balance at that moment.
A stronger cross-chain example
In the later controlled HTLC experiment, the Bitcoin redemption output was 8,500 test satoshis. A transaction status lookup previously returned unknown even though the transaction appeared in a block. Wallet UTXO reconciliation subsequently matched the confirmed unreserved output. In the second round, the reported Taproot confirmed and spendable balance reached 28,700 satoshis and 100 WABLAB arrived on Sepolia. The refund round later matched an 8,500-satoshi SegWit output. These are reported testnet results, not a guarantee of production atomicity.
Evidence record design
{"network":"test","expected_output_sat":8500,"txid":null,"vout":null,"confirmations":null,"wallet_match":null}This is an illustrative incomplete record. Null fields mean not yet observed. A verifier fills them only from actual evidence, matching transaction ID, output index, script or address and amount. A balance delta alone is insufficient because unrelated transactions may affect it.
Reconciliation policy
Keep separate observations for request acceptance, broadcast, chain inclusion and wallet availability. Record observation time and chain height. Recheck after a reorganization and do not assume a single confirmation is irreversible. External adapters may verify contract transactions without modifying the core engine. An agent should stop and report inconsistent evidence rather than invent a successful outcome.
Primary references and related research
- [From SSH to a Bitcoin Testnet Payment with WAB](/ask/wab-agent-first-testnet-payment)
- [Checking WAB API v5 Health and Endpoint Discovery](/ask/wab-api-v5-health-and-discovery)
- [Local execution control](/docs/wab-philosophy-agent-local-execution-control)
- [Flying Wallet architecture](/docs/wab-philosophy-flying-wallet-architecture)
