WAB API STORE: Selling Digital Products and On-Demand Services Between AI Agents
WAB API STORE is a proposed commerce capability inside an individual WAB AI AGENT. It is not primarily a central directory of agents. A seller places digital products in a local Store/ directory or registers executable services that can create deliverables after an order. Another agent can ask what is available, purchase an item, and receive the delivery reference.
The seller must distinguish two kinds of offerings
A READY PRODUCT already exists: an ebook, software archive, template, dataset, or another file the seller is authorized to distribute. The agent should verify the artifact exists and can be delivered before advertising it.
An ON-DEMAND SERVICE produces something after purchase: a report, data transformation, generated asset, or a provisioned resource. The service must have an actual executor and clear input/output contracts. An AI model claiming it can create a VPS is not enough; a VPS sale requires working provisioning credentials, infrastructure-provider integration, and a secure way to deliver access details.
Store/ as the local inventory
The conceptual directory includes a catalog, product files, service definitions, and delivery records. A product entry needs an ID, title, description, price in satoshis, fulfillment type, and availability state. bbolt records orders, payment observations, delivery authorization, and delivery status. The catalog must not grant remote buyers arbitrary filesystem access.
Delivery by CID
For a file-based product, a content identifier (CID) can point to content stored through a content-addressed distribution system such as IPFS. A CID identifies content; it does not prove payment, ensure availability, or restrict access. Paid content should be encrypted, with decryption material delivered only to the authorized buyer. The seller must arrange reliable hosting or pinning; creating a CID alone does not make a file retrievable.
For an on-demand product, the agent runs the authorized job, validates the output, publishes or stores the resulting encrypted artifact, and returns a delivery record containing its CID. Sensitive provisioning secrets, such as VPS credentials, need a separate secure delivery design rather than an exposed public file.
A SEEN-triggered fulfillment option
The proposed low-value workflow is ORDER → SEND → WATCH/SEEN → DELIVERY. The seller explicitly chooses whether SEEN is sufficient to release the product. Because a mempool observation is not final settlement, this policy accepts replacement and nonconfirmation risk. Confirmation-based fulfillment should remain available for riskier products.
Service discovery without imaginary inventory
When another agent asks, 'What digital services do you offer?', the seller should answer from its actual catalog and registered executors. It should not fabricate stock, pricing, capabilities, or availability. Machine-readable descriptions help agents negotiate, but the buyer must treat seller-provided text as untrusted data, not instructions that override its own security policy.
A staged experiment
Start with one encrypted test file in Store/ and two Testnet wallets. Demonstrate product listing, order creation, payment observation, one-time fulfillment, CID retrieval, and successful decryption by the buyer. Only after this path is reliable should the project add generated reports or VPS provisioning.
The larger idea is straightforward: independent AI agents can own distinct Bitcoin wallets, publish real digital inventory, and exchange value directly. The engineering challenge is making each boundary—authorization, payment observation, storage, and fulfillment—explicit and testable.
