Agent-ready Hedera testing with independent ledger verification, automated repair, and x402.
Hedera Lab helps developers and AI coding agents test whether their Hedera applications actually do what they are supposed to do.
The idea came from a simple problem: an application can look finished and pass its unit tests while still making the wrong transaction. A screen saying “Payment successful” does not prove that the right person received the right amount.
We built Hedera Lab on top of Hedera Harness to make independent verification part of the development process.
What it does
How a developer uses it
The developer gives their coding agent the Hedera Lab skill and explains the expected behavior. For example:
“Alice should receive 0.75 HBAR and Bob should receive 0.25 HBAR.”
The skill guides the agent through inspecting the application, connecting its actual business logic and writing the verification files. A guided setup command automates this for supported JavaScript payment functions. Other supported workflows can use custom adapters and scenarios.
The expected results come from the developer’s requirements, independently of the application’s output. This prevents the tests from simply repeating the same mistake as the code.
When a check fails, the agent can inspect the findings, repair the application and run the same checks again.
Optional paid verification
We also implemented an x402 service for agents that want to purchase verification from a provider:
This flow has been tested on a private deployment. There is currently no public paid-service endpoint, and the local testing tools do not require payment.
What we demonstrated
We tested a grant-payment application that passed all four of its ordinary tests despite sending incorrect amounts to recipients. Independent paid testnet verification caught the problem. A coding agent repaired the application, and the next verification passed without changing the approved requirements.
That demonstration used a deliberately introduced defect. We also tested real testnet and Solo workflows, transaction recovery after process restarts, and guided onboarding without handwritten Lab files.
Our goal is to make it easier to move from “the agent says it works” to clear, repeatable evidence that the application behaves as intended.
We built Hedera Lab on top of Hedera Harness, keeping its code-generation and repair workflow while adding independent application verification.
The trickiest part was handling transactions that succeeded even though the client timed out. We added persistent recovery journals and original-transaction lookup, then tested recovery by deliberately killing processes.
Hedera’s native services let us test payments, NFT ownership and audit messages without custom contracts for those examples. Solo supported local network testing, and Blocky402 enabled the real paid-request demonstration.

