Bitcoin AI Agent SEND Authorization: Four-Digit PIN and Durable Pending Requests
Natural-language payment requests should not turn directly into Bitcoin transfers. A proposed WAB AI AGENT workflow uses a four-digit PIN chosen at installation as an additional authorization step for SEND. The Go executor, not the language model, verifies authorization. The feature is under design.
No PIN, no engine SEND
When the user says "send 5,000 sats to this address," the model may extract the destination and sender amount, but the executor does not call the engine's SEND endpoint until the request is approved. Instead it returns an AUTH_REQUIRED state with a pending request identifier. This refusal happens in the agent before any engine transfer request is made.
bbolt remembers the request, not the conversation
A pending-request record can store the exact destination, network, amount, creation time, expiry, and state AWAITING_PIN. The owner approves that immutable request through an authenticated local CLI or protected interface. Go then reserves the total sender debit against both daily and lifetime budgets in an atomic bbolt transaction, and submits the transfer with a durable idempotency key. The model need not retain a chat transcript or reinterpret the original address after approval.
PIN is an extra factor, not the wallet key
A four-digit PIN has only 10,000 combinations. It must never be the sole defense of an Internet-accessible Bitcoin wallet. The installer can collect it without echoing it and store a password-derived verifier rather than plaintext in .env; authorization also needs strong owner authentication, rate limits, lockouts, short request expiry, and a private channel. Do not place the PIN in AI chat messages, model prompts, provider logs, or tool results. BTC KEY remains local and separate.
State transitions and uncertain results
A practical sequence is AWAITING_PIN → AUTHORIZED → RESERVED → SUBMITTING → BROADCAST/RECONCILED. If the engine request times out after submission, keep the reservation and mark it for reconciliation rather than assuming no transaction occurred. A PIN approval authorizes one fixed request, not an unlimited session of sends.
The user experience
The agent can respond: "This transfer needs authorization. Approve pending request send_001 in the protected interface." Once approved, Go completes the exact stored request. A future agent can support chained SEND and WATCH operations, but WATCH must not make an unauthorized SEND possible.
