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

Build a Zero-SEND AI Reply Regression Test

permalink THAMER
#ai-agents#bitcoin-testnet#developer-experiments#ollama#wab-engine

Build a Zero-SEND AI Reply Regression Test

Verify wording using recorded Engine JSON and no network broadcast. This is part two of the WAB ENGINE and AI Agents programming series, grounded in the V3.4 Testnet experiments.

What the experiment actually showed

A recorded Testnet result includes requested_sat 10000, recipient_sat 9000, change_sat 58000, and a txid. These are sufficient to test the reply formatter.

Engineering method

Load a local fixture, run the receipt formatter, assert exact amounts and absence of confirmed claims, then simulate model timeout and invalid intro.

A repeatable local exercise

Run go test ./... in Repo/.

Use a recorded JSON response or a mock HTTP server. Run local unit tests, compare actual values with expected values, and inspect error paths. An AI response must not be used as evidence of a wallet transaction or its confirmation.

What can go wrong

Do not call /send in unit tests. Keep any integration tests that can broadcast behind an explicit separate opt-in.

Practical review questions

  1. Which facts came directly from WAB ENGINE, and which are generated prose?
  1. Can the experiment be repeated without broadcasting another transaction?
  1. What observation would falsify the diagnosis?
  1. Which error states are visible to the caller rather than hidden by a fallback?

Implementation boundary

WAB ENGINE remains the authoritative execution layer. The experimental agent is a separate client. Examples are intentionally scoped to Testnet and do not modify the Engine, Bitcoin Core, the signed fee law, or deployed wallet state.

Project references

  • WAB ENGINE API: https://thamer.org/api
  • WAB ENGINE overview: https://thamer.org/engine
  • Educational code repository: https://thamer.org/repo/

Scope: experimental Testnet programming notes and preliminary SDK-style examples, not production-ready wallet software.

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