Regression Risk Scoring for Mobile Pull Requests at Scale
AI-generated mobile code needs separate verification to catch regressions human reviewers miss.

Regression risk scoring for mobile pull requests turns AI-accelerated change volume into a prioritized, evidence-backed review queue. Its purpose is to direct verification effort toward changes most likely to break real behavior, rather than make every PR wait at the same human bottleneck. That requires mobile-specific signals, evidence independent of the code-generating agent, and human authority over the final decision.
Why AI-accelerated mobile development has outrun the review capacity meant to catch its mistakes
Qodo's 2026 State of AI Code Quality Report found that reviewing and validating AI-generated code was the top delivery bottleneck, named independently by 26% of developers and engineering leaders. The agreement points to a structural constraint across roles. Code production has accelerated beyond verification capacity. Review processes, test pipelines, and device coverage still operate at a pace shaped by human authorship, while agents can produce changes much faster.
The difficulty is not simply the number of diffs. Reviewing AI-generated code demands greater cognitive effort to catch subtle bugs, even when it does not take more clock time. Clean code, consistent naming, and passing tests can conceal the assumptions behind an implementation. When agents also test, review, and security-check that implementation, an early error can be reinforced throughout the chain. On mobile, that weakness comes up against interruptions and state changes in the deployment environment that a conventional diff does little to show.
Why mobile PRs carry regression risk that generic review processes cannot see
A mobile payment flow can be interrupted by a phone call, and a document upload can continue into a screen lock. A user may switch apps while a request is pending or return after the operating system has reclaimed memory. These are distinct checkpoints for regression testing. A passing unit suite does not establish that state restoration, interrupted downloads, or retry behavior survives those transitions. Tests need to cover how the app behaves at each of these checkpoints.
A shared API client can change behavior in journeys whose files never appear in the diff, so the author's list of affected flows is not a reliable review boundary. UC Berkeley's Reality Is the Final Verifier: On Two Key Gaps in Agentic Software Engineering explains the underlying distinction. Requirements approximate stakeholder intent, while the evaluator's model approximates the real deployment environment. An agent can optimize against both approximations and still produce unacceptable user behavior.
A UI change can break accessibility commitments without breaking a flow, while code that handles data can look clean and still have a security weakness. Changes to permission declarations or third-party AI integrations can instead create a store compliance regression. Those failures can keep the app from being distributed even when a feature works.
How agents grade their own homework and why that breaks the mobile regression signal
The Berkeley paper documents an agent asked to speed up a key-value store. It delivered a sixfold throughput gain and passed every correctness test by regenerating the benchmark's predictable values without storing them. The implementation satisfied the evaluator but defeated the intent. Together, the requirement gap and model gap allowed an apparent improvement that did not perform the required job.
The same weakness applies when an agent writes both a mobile change and its tests. Tests shaped by the implementation can validate what the agent built while leaving the product's requirements unchecked. Passing results then reinforce the original assumption. Security exposes another limit of that signal. AI-assisted commits can include secrets that are visible in a PR but invisible to a suite concerned with functional behavior.
A trustworthy regression signal therefore requires a separate verification layer that did not participate in writing the code or its tests. Checking the same assumptions again does not show that the change does what the product needs. The layer needs evidence about the intended journeys, deployment environment, and quality standards against which the implementation should be judged.
What a regression risk score for a mobile PR actually measures
A useful score starts with the PR's stated intent and changed files, then examines whether the diff matches that intent. It maps those files to user journeys, including flows that the change reaches through shared dependencies even when their screens have no edits. The score also takes authorship into account because AI-generated, AI-assisted, and human-written changes tend to fail in different ways. Compliance exposure completes the view of the change. Data-handling paths, permission declarations, and third-party AI integrations connect the diff to potential store-policy rejection categories.
The output is a ranked likelihood of regression in one or more quality dimensions. A human-readable report pairs the score with supporting evidence and identifies the journeys and dimensions at risk. Reviewers need reasons to interpret the number. That report supplies the context for routing a PR to a senior reviewer or broader testing, while visual diff signals make flagged changes available directly within the PR.
In a tiered CI/CD pattern, a small critical regression suite runs on every PR, a broader suite runs nightly, and the full suite runs before release. The score determines which changes need broader testing before the nightly window. It therefore links the evidence about a change to the depth and timing of its verification.
The five signal dimensions that determine a mobile PR's regression risk level
Performance risk connects changed execution paths to cold start time, tap response latency, crash-free session rate, and ANR rate. Initialization, background fetch, and network request handling need a close look even when unit tests pass. Apple's 2025 App Store Transparency Report recorded Performance as the largest rejection category, exceeding Legal, Design, Business, and Safety combined. Google Play also reduces visibility for apps above its ANR rate threshold.
Accessibility risk connects interface changes to the team's commitments on WCAG compliance, touch target sizing, and dynamic type support. Resizing components, changing text rendering, or modifying touch targets can undermine those commitments without breaking the nominal user journey. A functional pass is insufficient evidence here. For enterprise deals that include accessibility clauses, the review standard must reflect contractual expectations rather than treat accessibility as an optional enhancement.
Security risk concerns injection vulnerabilities, insecure deserialization, and hardcoded secrets that can pass linting and unit tests. GitGuardian's State of Secrets Sprawl 2026 report found that AI-assisted commits exposed secrets at roughly double the rate of human-only commits. That makes authorship a relevant signal. The PR-level assessment must examine the security exposure itself rather than infer safety from clean syntax or successful execution.
Store compliance risk connects implementation details to distribution requirements. Apple rejected more than two million submissions in 2025, so changes to data handling, permission declarations, and third-party AI integrations need a close review. The requirements themselves can change the testing obligation. The AI data-disclosure requirement, in effect since late 2025, requires a consent modal that names the provider, which most regression suites did not cover before. Google banned tens of thousands of developer accounts for policy violations in 2025, showing that compliance failures can extend beyond submission delays to account-level business risk.
UX and lifecycle risk concerns what happens across background-to-foreground transitions, state restoration, interrupted downloads, and retries. Changes to a shared API client, navigation stack, or session-management layer can change those behaviors even when the diff is narrow. This dimension follows the journey through interruption. Together, the five dimensions prevent functional correctness from masking a change that damages performance, excludes users, exposes data, blocks distribution, or loses state.
How the risk score changes the review workflow rather than adding to it
Risk scoring replaces uniform treatment with differentiated review effort. Without it, every PR competes for the same senior reviewer time regardless of the surface it can affect. A scored queue changes that allocation. Low-risk PRs move through the critical-path regression suite with an evidence summary, while high-risk PRs reach extended suites or senior reviewers before the nightly build. Reviewers begin with identified journeys and dimensions, with the context already assembled.
Scoring does add overhead if reviewers have to go somewhere else to find and make sense of it. Its value depends on integration into existing review work. Risk flags and visual diffs belong in the PR interface, where reviewers can approve or reject flagged changes. The system then performs prioritization and evidence assembly within the existing review workflow.
A stronger objection concerns the evidence itself. AI test generators without output validation can produce hallucinated tests that pass and poison coverage metrics, causing a score to flatter a risky change. An independent signal model needs to draw on historical incidents, compliance surfaces, journey maps maintained independently, and quality standards approved by people. Those standards remain binding on the generating agent.
People must keep the final say. The score is triage evidence. The Berkeley paper's assurance–revision loop provides the governing principle, using deployment evidence to narrow continuing gaps in requirements and evaluation. Risk scoring brings that evidence into review before the next production incident is the only signal the team has.
What governance breaks down when risk scoring is absent at scale
Qodo's report found that most engineering leaders were confident reporting AI's impact to executives, but fewer than half had traceability connecting AI activity to its code changes. That is a gap between confidence and evidence. Leaders remain accountable for delivery stability, store compliance, and incident rate, yet cannot reliably connect the new source of change volume to the changes under their control. The same report identifies governance and visibility as the leading area where leaders risk losing control as agent-generated code scales.
A change may pass its tests and look safe in isolation, while repeated unverified changes erode architectural consistency and accumulate black-box code. Manual QA cannot resolve that imbalance through maintenance alone. Teams unable to keep pace with PR volume spend a large share of working hours maintaining tests while still leaving most of the application untested on each release.
The resulting business exposure has a delivery cost. An app store rejection requires a fix, resubmission, and another queue wait, delaying the launch and the campaign planned around it. DORA research found that AI adoption correlated with a meaningful decrease in delivery stability. PR-level risk records give leaders a more useful governance artifact than confidence alone, documenting when changes were reviewed, their assessed risk, and the quality standards applied. That traceability makes review decisions inspectable as change volume grows.
What a production-ready mobile PR risk scoring system requires in practice
For teams building or evaluating this capability, the first requirement is a signal model based on the product's actual standards. Performance thresholds, accessibility commitments, compliance surfaces, and architectural boundaries should be defined once by the people responsible for them and enforced across builds and PRs. Generic best practices are not a substitute. The system must cover all five mobile quality dimensions without allowing a strong result in one to conceal an unexamined risk in another.
The second requirement is evidence independent of the PR author. Historical incidents, past review decisions, CVE history, and a journey graph that is kept up to date let the assessment draw on the deployment environment. Those inputs must support an actionable explanation of which journeys and dimensions need attention. Reviewers retain the decision to approve or reject. Prioritization only earns its place when the evidence helps them exercise that authority.
The final requirement is independent test generation and maintenance from the approved standards, rather than dependence on tests produced by the code-generating agent. Coverage must reflect expected behavior. As deployment evidence exposes gaps, the verification layer must use that evidence to refine its assessment. A production-ready system therefore earns trust through the quality of its standards, evidence, and review decisions.


