Merim TufoDiscuss your project
Technical bulletin
AI–001

AI–001AI Implementation

Passing tests, broken onboarding

Author: Merim TufoDate: Revised: 3 min read

Green paper steps connected by a folded bridge across a gap.
Editorial illustration of checking the connections between working parts.
Short answer

My first large agent-assisted app build passed many local checks and still failed at onboarding. I changed the review process to require a working route through the product, starting with a new user, before treating individual features as delivered.

The run was for my own product work. Its report in early October recorded 1,741 passing tests. Yet a new user could not get through the opening flow. That number is a historical run result, not a statement about the current test suite.

I had evidence that pieces of the code behaved as expected. I did not have enough evidence that the pieces formed a usable product.

The unit of review was too small

The workflow divided the application into tasks. Each task could produce code, pass its checks and return a status. That structure made parallel work possible, but it also made it easy to judge a feature inside a narrow boundary.

A screen could be correct given a particular account state. A backend operation could be correct given a record that already existed. The route between those conditions was where the product failed.

The report also tolerated too many unresolved gaps. Once a task was marked as passed with caveats, the caveats lost urgency. Aggregating those statuses made the overall result look further along than the experience on a device.

I moved the first checkpoint earlier

I changed the process to require a thin, connected path through the app before expanding the feature set. A new user had to enter, complete the central action and see a durable result.

The path could be visually plain. It still had to use the real boundaries that mattered: navigation, account state, the backend and local persistence where the product depended on it.

This gave later work a working route to preserve. If a new feature broke the route, the regression was easier to describe than a general feeling that integration would need attention near the end.

In the next documented run, the opening walkthrough found and repaired the broken path before the process continued into the wider feature work. That was a useful change. It did not prove that the entire delivery system could operate without supervision.

A blocked action cannot count as a pass

I also made the review distinguish a functional blocker from a cosmetic defect. A spacing problem and an inaccessible primary action cannot share the same status just because both have a workaround in a report.

When a review requests changes, those changes need to become work with a new acceptance check. Writing a recommendation is not the same as applying it. Skipping a difficult interaction is not evidence that it works.

This matters with agent workflows because reports can be very fluent. A confident explanation can make a missing verification step easy to overlook. I want the result tied to an observable action, the state it started from and the evidence it left behind.

I still want the small tests

The lesson was not to abandon unit or widget tests. They are useful for isolating behaviour and making changes with less uncertainty. I needed another layer covering the seams between features.

For mobile projects, integration tests are one part of that layer. A manual walkthrough adds questions an assertion may not capture: is the next action obvious, does the explanation make sense, and is recovery possible without developer help?

I now ask for both kinds of evidence when assessing an AI implementation: the bounded checks around individual work and a demonstration of the complete task. My fresh-account review describes the starting conditions I use for that demonstration.

A larger test count would not have answered the missing question in that first run. Someone had to open the app as a new user and try to use it.

Sources

  1. Flutter integration testing

Merim Tufo · Product & Technology Consultant, Sarajevo. About · Discuss your project