THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Why Bitcoin AI Agents Need Deterministic SEND Guards

permalink THAMER
#authorization#bitcoin-ai-security#llm-hallucination

An AI model can correctly understand a destination address and still make a dangerous assumption about how much money to send. In an early Testnet run, a request containing a Bitcoin address but no amount caused the model to propose 10,000 sats. The downstream Bitcoin Engine received a structurally valid command and executed it.

The boundary that failed

The language model was allowed to fill a missing financial parameter. A wallet engine cannot infer whether the original user consented to that amount; it only sees the command passed by its client. The gateway therefore needs to validate spending authority against the user's actual request.

Guardrails tested afterward

The revised Go gateway checked for an explicit amount and destination, enforced a temporary 9,000-sat minimum for experimental sends, and required a request_id. These were gateway rules, not changes to Bitcoin consensus or to the wallet's permanent signed fee law.

A later 8,000-sat request was rejected by Go, proving the minimum check was exercised. Missing-request-ID sends were also rejected before reaching the engine.

What remains hard

Natural language can contain quoted commands, negations, multiple addresses, or multiple amounts. A simplistic text match is not sufficient to establish consent. Robust systems should use structured confirmation, explicit authorization boundaries, and deterministic validation that cannot be bypassed by a model-generated tool call.

Why this matters

Prompt instructions are useful for shaping behavior. They are not a financial authorization mechanism. A safe design treats the model as an interpreter and the Go executor as a separate enforcement boundary.

Related reading

  • /learn/design-bitcoin-ai-send-authorization/
  • /ask/can-an-ai-agent-invent-bitcoin-send-amount/

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects