TON Connect testing: an AI agent works from rules in Git, and regression covers 3 of 30 wallets
An AI agent needs more than access to all the documents: it also has to know what to read before writing tests. While testing TON Connect (a protocol where an app asks the user's wallet for a signature), a QA engineer set up a Git repository with rules and links to sources instead of one huge prompt. Out of roughly 30 wallets, regression runs on three, and the rest are marked as uncovered. The takeaway: it pays to give agents routes and rules, and to leave the coverage decisions to a human.
AI-processed from Habr AI; edited by Hamidun News
Imagine asking an AI agent to write tests for a new feature. The requirements live in one place, the code in another, the platform constraints in a third, and only a couple of people remember why past decisions were made. Even if you give the agent access to everything, it won't work out what matters for your specific task.
A QA engineer who tested the TON ecosystem and the TON Connect SDK in the first half of 2026 solved this not with a giant prompt, but with a separate repository holding the process rules. TON Connect is a protocol through which an application (dApp) gets the address of the user's crypto wallet and asks it to sign or send a transaction. The keys stay with the wallet.
The registry listed about 30 wallet integrations, and it is impossible to check every combination, so regression ran on three of them. The author calls the approach Process-as-Code: the working rules live in files, are versioned in Git, and go through review like any other code. The work is split into three phases: PREP (analysis and planning), EXEC (manual execution), and AUTO (automation and CI).
Why a prompt is not enough
Wallets kept getting added, along with applications, operating systems, connection methods, networks, and SDK versions. The compatibility model included nine dimensions: the OS and its version, the application context (a regular browser, a Telegram Mini App, or a wallet's WebView), the wallet context (native app, web client, extension, Mini App), the wallet itself, the transport (HTTP Bridge or JS Bridge), the blockchain network (mainnet or testnet), the SDK versions, and the contract version.
For release testing, three main integrations were picked, conventionally called Wallet A, B, and C. The other combinations were not counted as covered, and the coverage map recorded what was not verified and why. The number of combinations did not shrink as a result. But it became clear what has been verified, which risks remain, and what still has to be done by hand.
The manual workload was cut with five techniques: reconciling the PRD, design, and code before the manual run (shift left), prioritizing by risk, test design (pairwise reduces the combinations but does not know which of them are valid, so constraints were handled separately), moving stable critical scenarios into CI, and reusing tests and rules in the next features.
What lives in the QA repository
The source code remains the source of truth about the implementation. The QA repository defines how the agent gathers context and returns evidence. It stores an entry point (which points the agent to the right documents), agent rules (recurring mistakes and how to avoid them), specifications with invariants, contracts for handoffs between development and QA, templates for bug reports and test plans, and the test plans and matrices themselves. Any change to a premise is visible in the diff and tied to its author.
At the start of a session, the agent is required to do three things: read the rules, update the repositories with git fetch before analyzing branches or code, and before answering about how a feature behaves, read the invariants file and list the applicable constraints. The bug-report skill defines which evidence to collect and forbids guessing: unknown fields are not filled in, the root cause is marked as a hypothesis, and when a route is ambiguous, the agent stops and asks. A task is created only after a human confirms it.
Three phases with manual gates
In PREP, the agent compares the PRD, mockups, specification, and diff, finds discrepancies, prepares questions for development, and drafts the matrix. In EXEC, it creates test cases, drafts bug reports, and analyzes the affected components. In AUTO, it writes UI integration tests, fixtures, and run steps for CI. Through MCP servers and standard integrations, the agent reads code and documentation and works with GitHub, Linear, Figma, Notion, and Allure TestOps. After each phase, the engineer checks the result and decides for themselves whether to move on.
The author also examines the boundary of mocks. A test with a mocked service checks the request the SDK built, but it does not prove that the real service works and that the transaction reached the network. That is why scenarios with real sends are run separately, with human confirmation, and are not part of the CI gate. A telling case is gasless jetton (TON token) transfers in AppKit: the user pays the fee in the jetton, while an external relayer covers the network fee in TON. The mechanism relies on Wallet V5.
Limitations and conclusion
The scheme does not make the agent autonomous: it deliberately limits its authority so that the output can be verified. Because the gates are manual, throughput is bounded by the engineer. Some transition conditions, such as the presence of required artifacts or test results, can be checked automatically. Unverified combinations remain a risk, and they need to be recorded explicitly.
The practical takeaway for teams that bring agents into testing: keep the rules, invariants, and coverage decisions in Git rather than in prompts. That way they can be reviewed, and they carry over to the next feature. Give the agent a route to the right sources rather than the entire knowledge base at once.
- Nov 23, 2026Asus ProArt P16 for $7,000 Runs a 125-Billion-Parameter AI Model Without the Cloud
- Nov 23, 2026DeepSeek Teaches V4-Flash to See Images: Up to 384 Tokens per Picture
- Nov 23, 2026In a Survey of 11,000 Developers, 42% Complain About AI Code They Can't Understand, and 34% About Errors
- Nov 23, 2026Local AI Agent in Python: Qwen3 4B and Ollama Search Your Files Without an API Key
Key Questions Answered
Why a prompt is not enough?
Wallets kept getting added, along with applications, operating systems, connection methods, networks, and SDK versions. The compatibility model included nine dimensions: the OS and its version, the application context (a regular browser, a Telegram Mini App, or a wallet's WebView), the wallet context (native app, web client, extension, Mini App), the wallet itself, the transport (HTTP Bridge or JS Bridge), the blockchain network (mainnet or testnet), the SDK versions, and the contract version.
What lives in the QA repository?
The source code remains the source of truth about the implementation. The QA repository defines how the agent gathers context and returns evidence. It stores an entry point (which points the agent to the right documents), agent rules (recurring mistakes and how to avoid them), specifications with invariants, contracts for handoffs between development and QA, templates for bug reports and test plans, and the test plans and matrices themselves. Any change to a premise is visible in the diff and tied to its author.
What are the key details on Three phases with manual gates?
In PREP, the agent compares the PRD, mockups, specification, and diff, finds discrepancies, prepares questions for development, and drafts the matrix. In EXEC, it creates test cases, drafts bug reports, and analyzes the affected components. In AUTO, it writes UI integration tests, fixtures, and run steps for CI. Through MCP servers and standard integrations, the agent reads code and documentation and works with GitHub, Linear, Figma, Notion, and Allure TestOps.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.