Choosing Critical User Flows to Test First
Rank flows by failure impact, usage, and change rate.

Choosing critical user flows to test first means ranking the damage a failure could cause. Failure impact, usage frequency, and change velocity give engineers a practical starting order. That order puts the flows with the greatest exposure first, while explicit outcome assertions and independent verification show whether the tests really protect them.
Why test selection is a prioritization problem, not a coverage problem
Consider a team that ships a login regression despite a broad but shallow test suite. Users cannot get in, even though tests for less consequential features still pass. Asking how to cover everything has obscured the more urgent question of where a failure hurts most.
That coverage-first instinct treats test production as the main constraint, an assumption inherited from writing every test by hand. Agents make tests cheap to generate, but it still takes judgment to choose tests that help. A rarely used admin report and checkout do not deserve equal priority simply because both can be automated. Every untested flow represents a bet that a failure there would be acceptable. Damage-weighted triage makes those bets explicit before production exposes their cost.
The three variables that determine which flow to test first
Failure impact is the blast radius when a flow breaks, including blocked revenue, lost access, corrupted data, or a compliance event. Usage frequency is how many real users attempt the flow, which determines how quickly a failure spreads through the user base. Change velocity is how often engineers modify the code, templates, or APIs behind it. These are separate lenses on the same flow. None provides a sufficient ranking by itself.
Impact distinguishes a broken checkout from a broken export-to-CSV button, while frequency distinguishes a widely used path from an occasional task. Low traffic does not imply low exposure. Enterprise admins and billing contacts may use a flow infrequently while representing substantial revenue. Conversely, a medium-impact onboarding flow used by every new user and rebuilt every sprint can outrank a high-impact flow that receives almost no traffic and never changes.
When a flow is used often, a defect reaches more users, and when it changes often, there are more chances to introduce one. High impact makes that combination especially costly. This multiplicative relationship explains why flows that rank highly on all three dimensions deserve disproportionate attention, without requiring the team to pretend it can calculate a precise probability of failure.
How to score your own flows before writing a single test
An afternoon audit of existing telemetry, error logs, and deployment history provides a practical start before generating any tests. Each candidate flow should map to a business outcome, such as revenue, access, data, or compliance. Login and onboarding can block all subsequent actions, whereas a failure confined to one feature has a narrower blast radius. Existing error monitoring, including Sentry or Datadog, supplies evidence about recent production incidents.
Usage scoring should use recent session or event data, sorted by the number of unique users who attempted each flow. Under a revenue-exposure frame, a flow used daily by every paying customer outranks one used monthly by free users. A small group of enterprise accounts or billing admins also warrants an explicit flag when raw traffic would understate its exposure.
Change scoring should use git history for the templates, controllers, API endpoints, and shared components within each flow’s scope. Count distinct deploy events that modified the flow, rather than treating apparent stability as evidence that it is untouched. A flow changed in a majority of recent sprints is a high-velocity target. Shared components belong in this scope because changes there can alter a flow without modifying its own page.
The team should put these signals in a ranked table and mark each dimension High, Medium, or Low. Sorting by the count of High marks, with ties broken by failure impact, provides a defensible starting order with limited precision as a risk score. The table belongs in a shared document or ticket. Agreement and revision are part of its purpose. Its highest-ranked entries identify the first tests, which will usually protect revenue or access.
Revenue-critical flows deserve the first tests, and the reasoning is not just intuitive
Login, checkout, signup, and payment are often tested first because users lose access or the business loses revenue when they break. They are also central paths for the users who need them, and product teams frequently modify onboarding and checkout. Their priority follows from the framework. A login regression that locks out all users has a different blast radius from a broken filter on a search page, even when both failures are straightforward to reproduce.
The same reasoning applies to products without checkout. Their critical conversion may be a form submission that triggers a contract, an activation step that provisions infrastructure, or an action that requires customer support to undo. The business outcome defines the category. If the audit places no revenue or access flow near the top, the team should re-examine whether it classified those flows’ blast radius too conservatively. That review tests the scoring assumptions rather than replacing the ranking with a fixed checklist.
What the second tier looks like: flows that rank high on velocity or frequency but not both
Onboarding changes frequently and reaches every new user, and a failure may block acquisition while leaving existing revenue uninterrupted. That distinction can keep it out of an incident alert even when its business effect is substantial. Where onboarding does not belong in the first tier, its combination of frequency and velocity still makes indefinite deferral difficult to justify.
Consider a broken password reset email that leads to support tickets three weeks after a template refactor. Low frequency per user has not prevented an access failure. Instead, it has delayed discovery of the broken path. When templates change often, notification and email flows need regression tests even if they get less traffic than the core product.
Settings and account management are also easy to overlook, including changes to billing contacts, API key rotation, and team membership. Their aggregate traffic can be low while the consequences for affected users are high. Once first-tier tests pass consistently and expose real defects rather than flaky selectors, the team should expand into this tier by impact, then velocity, then frequency. Any uncovered flow modified in a majority of recent sprints belongs in that queue regardless of traffic.
Change velocity as the most underweighted variable in practice
Failure impact becomes visible when something breaks, while change velocity can remain unobtrusive until a code change causes a regression in a user path. This asymmetry skews attention toward remembered incidents and conspicuous business functions. Frequency also has a ready source in analytics. Velocity requires connecting code changes to the user paths they affect, including paths reached through shared components. It is easier to overlook precisely because it describes exposure before a visible failure.
Agent-driven development makes that imbalance more dangerous by increasing the pace of code changes. More flows can become high-velocity while the test inventory still reflects an earlier version of the product. Apparent stability is therefore a weak defense. A flow that was stable for six months can become exposed when a new feature begins modifying components it shares.
The corrective is to re-query git history every sprint for newly high-velocity flows. That cadence lets the priority change before the first regression and the incident that establishes its cost. For teams that generate tests with agents, changes to the ranking should steer the agent toward flows that are now at risk. The original ranking is a starting decision subject to revision.
How the oracle problem limits what any test, agent-generated or otherwise, can verify
A checkout test can establish that an order reaches confirmation without establishing that its tax calculation is correct. Completion and correctness are different claims. Judging the actual outcome requires a precisely specified expected result. Neither a scripted test nor an agent can infer that expectation merely from reaching the terminal state.
For prioritized flows, the practical consequence is that a human must define outcomes beyond successful navigation. Tests need explicit assertions for payment amounts, permission levels, and data written to a database. Otherwise, a test can establish that something happened without establishing that the right thing happened. The flow ranking identifies where to spend verification effort, but it does not supply the business rules that make an assertion meaningful.
Blast-radius classification helps locate where this distinction is most consequential. Authentication logic, database schemas, payment flows, and API contracts are areas where an incorrect result can be more damaging than an obvious interruption. The most important tests therefore need more than evidence of completion. The highest-priority flows are also those where human-defined expectations and independent verification are indispensable.
Why the verifier should not be the same agent that wrote the code
For those flows, the test guarding a merge should come from something that did not write the feature. Shared context can produce shared blind spots. A coding agent that misunderstands a requirement may encode that misunderstanding consistently in both implementation and assertions. Its tests can then pass on broken code without either result appearing internally contradictory.
Independent verification separates the implementation’s assumptions from the judgment applied to it. That separation is especially important for revenue, authentication, and data flows, where a misleading pass can conceal a large blast radius. The verifier still needs explicit expectations, but it should not derive them solely from the same reasoning that produced the code under test.
Agent verification also introduces a distinct tradeoff when it adapts to interface changes by re-deriving a path. Two runs may follow different routes. For compliance-critical flows, deterministic assertions should sit beneath agent verification so that outcome checks do not depend only on the path an agent chooses. Adaptable exploration and precise assertions serve different purposes, and neither substitutes for separating authorship from verification.
Keeping the priority list current as the codebase and team change
The inventory needs events that trigger updates rather than a separate meeting to review it on a schedule. A production incident affecting a flow outside the top tier is evidence that its blast-radius classification needs revision and its priority should rise. Consecutive sprints of changes to a previously stable flow call for a velocity adjustment. A new feature introducing a conversion, access, or data event belongs at the rank its signals earn. These events turn existing evidence into changes to the queue.
A small team can review the shared ranking during sprint planning, while a larger team can automate the git-history query and surface newly high-velocity flows in a standing Slack message. As agent-driven development produces more code per sprint, this cadence becomes more important because yesterday’s stable paths can leave the protected set’s assumptions behind.
Coverage-first thinking asks whether another path has a test. Risk-based testing asks whether the next test protects users and the business from the greatest remaining exposure.


