DiagEval: Trajectory-Conditioned Diagnosis for Reliable Software Evaluation with GUI Agents
Sirui Hong1∗ Zhijie Liu1∗ Tengfei Li1
arXiv:2605.17439v1 [cs.SE] 17 May 2026
1 DeepWisdom
2 Independent Researcher
Wei Tao2
Yifan Wu3
Chenglin Wu1
3 The Hong Kong University of Science and Technology (Guangzhou)
Abstract Evaluating LLM-generated interactive software requires execution in addition to static analysis. The key difficulty is that correctness is a graph-level reachability property over latent UI state-transition graphs, whereas a GUI evaluator observes only a single execution trajectory. A failed rollout therefore rules out only one realized path, leaving failure attribution ambiguous between evaluator-side execution error and genuine software defect. We present D IAG E VAL, a trajectoryconditioned diagnostic evaluation protocol for post-failure GUI-agent evaluation of interactive software. Rather than blindly retrying from scratch, D IAG E VAL reuses the failed trajectory to choose targeted diagnostic probes and aggregates their outcomes into an internal attribution signal. The latent-graph view motivates the diagnostic problem; D IAG E VAL does not reconstruct the graph or estimate calibrated posterior probabilities. We evaluate D IAG E VAL on WebDevJudge-Unit and RealDevBench across multiple GUI-agent evaluators and LLM backbones. On false-negative cases, D IAG E VAL recovers 45.6–62.1% of failures that were initially misattributed to software defects, outperforming retry-based baselines with 34.4–160.6% relative gains. On the full evaluation sets, this recovery improves accuracy from 69.9% to 78.3% on WebDevJudge-Unit and from 65.0% to 81.6% on RealDevBench. These results suggest that reliable GUI-agent evaluation requires not only stronger execution, but also active failure diagnosis to disambiguate evaluator-side errors from genuine software defects. Our code is available at https://github.com/scutGit/DiagEval.
1
Introduction
As LLM-generated software grows from isolated code snippets to full-stack applications with complex UIs, the evaluation problem changes with it: static analysis is no longer enough, and correctness must be verified through interactive execution [Bian et al., 2025, Lu et al., 2025c, Xiao et al., 2026, Li et al., 2026, Kong et al., 2026, Peng et al., 2026]. GUI agents are a natural choice for this role. However, they introduce a new reliability risk: evaluator-side failures can become false evidence against the software itself. This is not a corner case. Recent works [Li et al., 2026, Lu et al., 2025c] on automated web-development evaluation show that agentic evaluators can incorrectly label feasible tasks as infeasible due to their own operational failures rather than actual shortcomings in the implementation. In parallel, exploratory GUI testing work identifies an execution-bias attribution problem, where software-side defects are misidentified as agent-side execution slips [Gao et al., 2026]. This ambiguity is further amplified by agent-environment misalignment: as noted by Liu et al. [2025], an agent’s expected outcome may diverge from the environment’s actual state transition. For example, a button that remains unchanged after a click may indicate a broken interface element, a misgrounded action, or a view that failed to expose the relevant state transition. At its core, the challenge is failure attribution under limited trajectory evidence: a failed GUI-agent rollout records only one agent–environment interaction trace, in which actions, observations, DOM ∗ Equal contribution.
Preprint.
states, logs, and reasoning traces are entangled. These signals are diagnostically ambiguous because the same failed transition can arise from different sources: the agent may ground or execute an action incorrectly, the environment may expose only a partial observation of the relevant program state, or the software may genuinely block all valid progress. This ambiguity is structural rather than incidental, because software correctness is a graph-level property while an evaluator observes only a path-local slice of it. A test should be considered successful if at least one valid execution path reaches the target state in the software’s latent state-transition graph. By contrast, a failed rollout rules out only the sampled path and does not prove that the goal state is unreachable. We refer to this structural under-determination as the single-trajectory identifiability gap. After observing a single failed trajectory, the latent cause of failure is therefore structurally underdetermined. The failure may reflect evaluator-side under-exploration or execution error (AGENT FAIL), or it may indicate a genuine system defect (E NV FAIL). Without probing alternative paths or selectively acquiring additional evidence, these hypotheses remain observationally confounded. Existing agent frameworks and reliability mechanisms improve GUI-agent execution in different ways, but they do not directly address post-failure attribution. ReAct-style agents [Yao et al., 2023] interleave reasoning and acting to gather evidence, but they do not explicitly distinguish execution unreliability from genuine software failure after a failed interaction. Repetition- and feedback-based strategies such as naive retry, Best-of-N sampling, and self-correction can reduce transient errors by adding more attempts or feedback, but they often fail when the same agent-side mistake recurs across runs or is reinforced by correlated self-critique [Shinn et al., 2023, Madaan et al., 2023, Huang et al., 2024]. More broadly, robustness methods acknowledge environment noise and uncertainty, but aim to harden policies against it rather than attribute a particular failure [Smirnova et al., 2019]. Post hoc attribution and active information acquisition offer related tools for diagnosing completed traces or selecting informative actions, but they are not designed to turn a failed GUI-agent rollout into online diagnostic probes for software evaluation [Zhang et al., 2025a, Veiga and Renoux, 2023, Chen et al., 2026]. What is missing is a diagnostic stance for GUI-agent evaluation: after a failure, the evaluator should use the failed trajectory to decide which uncertainty sources to probe next and how the resulting evidence should be attributed to evaluator-side error versus genuine software defect. To address this, we propose D IAG E VAL, which formulates post-failure software evaluation as active diagnosis under attribution uncertainty. Rather than retrying from scratch, D IAG E VAL reuses the executed trajectory to identify the dominant source of uncertainty, interacts with the environment through targeted probes to disambiguate uncertainty, and integrates the resulting outcomes into an internal attribution signal. In this way, post-failure evaluation becomes a trajectory-conditioned diagnostic process rather than undifferentiated re-execution. Across two interactive software benchmarks, D IAG E VAL improves recovery and accuracy over retry-based baselines, and its diagnostic mechanism transfers across GUI-agent frameworks, supporting post-failure diagnosis as an evaluator-side reliability mechanism. Our contributions are as follows: 1. Problem formulation. We identify post-failure attribution under limited trajectory evidence as a distinct reliability problem in interactive software evaluation. We show that single-trajectory verdicts are structurally insufficient because graph-level correctness cannot be determined from path-local observation alone. 2. Trajectory-conditioned diagnostic protocol. We propose D IAG E VAL, which decomposes a failed trajectory into typed sources of uncertainty, prioritizes candidate diagnostic probes via a structured information-value ranking, and integrates branch-typed outcomes into an internal attribution signal through an update rule. 3. Reliability gains across benchmarks. On WebDevJudge-Unit (WDJ-U) [Li et al., 2026] and RealDevBench (RDB) [Bian et al., 2025], D IAG E VAL recovers 45.6–62.1% of false negatives, compared with 17.5–46.2% under retry-based baselines. On the full evaluation sets, accuracy rises from 69.9% to 78.3% on WDJ-U and from 65.0% to 81.6% on RDB. 4. Reliability–cost frontier and transfer. D IAG E VAL improves reliability without scaling the GUI-execution backbone or specializing to a GUI-agent framework. With gemini-3-flash-preview as the executing GUI agent, it reaches 76.1%/78.6% on WDJU/RDB, exceeding AppEvalPilot run end-to-end on claude-opus-4-6 at less than half its percase cost; it also transfers to UI-TARS without retuning, with +14.2–+22.1 accuracy points.
2
2
Related Work
2.1
Evaluation for Software Engineering
Software-engineering evaluation has progressed from function- and repository-level code benchmarks [Chen et al., 2021, Zhuo et al., 2024, Jain et al., 2025, Zhang et al., 2024, Ding et al., 2023, Liu et al., 2024, Jimenez et al., 2024, Miserendino et al., 2025] to agentic, interactive settings [Zhuge et al., 2024, Chan et al., 2024, Zhou et al., 2024, Xie et al., 2024, Rawles et al., 2025]. Most relevant to us, WebDevJudge and RealDevBench [Li et al., 2026, Bian et al., 2025] adopt execution-based evaluation in dynamic environments, yet still treat a failed rollout as a terminal verdict. We instead study post-failure attribution: whether a failure reflects a true software defect or evaluator-side under-exploration. 2.2
LLM-as-a-Judge
LLM-as-a-Judge [Zheng et al., 2023] evaluates static outputs, and Agent-as-a-Judge [Zhuge et al., 2024] extends this paradigm to intermediate trajectories. However, both treat evaluation as scoring a fixed artifact. Existing efforts to improve reliability, e.g., debiasing, hallucination reduction, judge finetuning, rubric prompting, and multi-judge ensembling [Ye et al., 2024, Li et al., 2025, Chen et al., 2024, Thakur et al., 2025, Xu et al., 2023, Wei et al., 2025, Chan et al., 2023, Zhu et al., 2025], still assume fixed evidence. This assumption is inadequate for interactive software evaluation, where a failed trajectory exposes only a path-local slice of graph-level correctness. Recent Computer-Using Agent verification methods also improve judgment within the fixed-trajectory setting [Rosset et al., 2026]. By contrast, we treat failed rollouts as opportunities for active evidence acquisition, using targeted diagnostic probes to resolve agent-vs-environment attribution. 2.3
GUI Agents
GUI agents have progressed from metadata-based systems to fully visual agents that can autonomously interact with software environments [Cheng et al., 2024, Wu et al., 2024, Xu et al., 2024, Gou et al., 2024], enabled by multimodal LLMs such as Claude 3.5 Sonnet [Anthropic, 2024] and Gemini 2.5 [DeepMind, 2025]. However, as evaluators, GUI agents remain unreliable under partial observability, asynchronous rendering, and agent-induced execution errors, including hallucination, UI mislocalization, and inconsistent behavior in dynamic environments [Jin et al., 2026, Li et al., 2026]. Frameworks such as WebGen-Bench [Lu et al., 2025c] and UXAgent [Lu et al., 2025a] exploit GUI agents for large-scale interactive evaluation, but their judgments are still trajectorydependent and lack attribution capability: they cannot reliably distinguish software defects from evaluator-side failures. We address this limitation by formulating evaluator failure as a trajectorylevel diagnosis problem and using cross-trajectory evidence to distinguish software defects from agent-side execution misses.
3
Preliminaries and Problem Formulation
3.1
Graph-Based Evaluation as Reachability Inference
We model the software under test as a latent state-transition graph G = (S, E), where each edge represents an action-labeled executable UI transition between latent interface states. A test case T = (I, O) is successful if some reachable state satisfies the target output condition. We use Vcase ∈ {0, 1} to denote this ground-truth success label. Software correctness is therefore a graph-level reachability property. The evaluator, however, does not observe G directly. Instead, it interacts with the software through a partially observed trajectory τ = (o0 , a0 , . . . , oN ), where each ot is an observation and each at is an executed action. Based on this trajectory, the evaluator outputs a binary verdict ŷ ∈ {0, 1} indicating whether the test case is judged successful. The evaluation objective is therefore to maximize P(ŷ = Vcase ). The key mismatch is structural: the evaluator observes only the realized execution path, whereas correctness depends on whether some valid path exists in the underlying reachable graph. As shown in Figure 1(a), a failed trajectory τ rules out only the realized path, not the reachability of sgoal . As a result, a failed trajectory does not establish that the target state is unreachable, making negative verdicts particularly difficult to interpret in GUI-based software evaluation. 3.2
Sources of Uncertainty and the Attribution Problem
When a GUI agent fails to complete a task, the latent failure cause Z ∈ {AGENT FAIL, E NV FAIL} is not directly observable. AGENT FAIL indicates that Vcase = 1, i.e., a valid execution path exists in 3
Figure 1: Overview of D IAG E VAL. Given a failed rollout τ , D IAG E VAL parses a failure diagnostic summary (FDS), dispatches SOU-guided diagnostic branches, and integrates evidence across multiple branch trajectories to refine an internal attribution score over Z ∈ {AGENT FAIL, E NV FAIL}. G, but the evaluator fails to discover or verify it. E NV FAIL indicates that Vcase = 0, i.e., the target state is genuinely unreachable under the intended task semantics. The evaluator must infer Z from indirect evidence carried by the executed trajectory. Each rollout reveals only a noisy, partial local view of the latent transition graph, shaped by perception, reasoning, and runtime distortions. We identify four systematic sources of uncertainty (SOU) that challenge attribution: (SOU 1) Imperfect grounding (perception errors). The agent may fail to correctly locate or interact with the intended UI elements [Gou et al., 2024, Lee et al., 2025, Chen et al., 2025a, Yang et al., 2025] due to visual ambiguity, dynamic layouts, or subtle affordance changes. Such errors can make an evaluator-side failure appear externally similar to an environment-side blockage. (SOU 2) Incomplete observation (partial observability). The agent’s view captures only the currently visible UI state, missing hidden elements such as collapsed menus, off-screen content, or latent interface regions [Kaynak et al., 2025, Garousi et al., 2024]. As a result, the evaluator may conclude failure even though valid interactions remain undiscovered. (SOU 3) Reasoning hallucination (inference errors). LLM-based evaluators may prematurely conclude task completion, over-interpret weak UI signals, or rationalize failed interactions as environmental faults [Anthropic Engineering Team, 2025, Zhang et al., 2025b, Chen et al., 2025b, Lu et al., 2025b, Ye et al., 2025]. This introduces cognitive distortion on top of already partial evidence. (SOU 4) Runtime instability (execution errors). Transient environment conditions such as network timeouts, nondeterministic backend latency, or flaky UI state may cause non-reproducible failures, affecting action validity and outcome stability. These heterogeneous, context-dependent SOUs cannot be reliably disambiguated from a single trajectory alone. Different SOUs imply different diagnostic responses: SOU-1/2/3 require testing alternative paths, while SOU-4 needs reproducibility checks. This makes attribution inherently diagnosis-dependent.
3.3
The Single-Trajectory Identifiability Gap
This ambiguity is structural. Given a failed trajectory τ , the post-failure evaluation problem is to maintain evidence about Z ∈ {AGENT FAIL, E NV FAIL} from partial trajectory observations. This is particularly challenging for negative verdicts, since a single observed trajectory reveals only one realized path, while failure may arise either from an environment-side defect or from the evaluator’s inability to discover an alternative feasible path. We refer to this underdetermination as the single-trajectory identifiability gap, which motivates post-failure evaluation as a sequential diagnosis problem requiring active evidence acquisition. 4
4
Method: DiagEval
We formulate post-failure software evaluation as a sequential diagnosis problem: after an initial GUI-agent rollout receives a negative verdict ŷ1 = 0, the evaluator gathers evidence to infer whether the failure reflects AGENT FAIL or E NV FAIL. As illustrated in Figure 1(b), D IAG E VAL implements this diagnosis loop by parsing the failed trajectory into a Failure Diagnostic Summary (FDS), generating diagnostic branches from selected restart states, and then executing and aggregating branch evidence into an internal attribution score. This score guides subsequent diagnosis, but it is not a calibrated posterior estimate. D IAG E VAL uses it without reconstructing the latent transition graph. The complete algorithmic procedure is given in Appendix C. 4.1
Failure Parsing: Fork-Node Localization and State Abstraction
Fork-Node Localization. Given an initial failed trajectory τ1 = (o0 , a0 , . . . , oT ), D IAG E VAL seeks a fork node t∗ , the restart point from which targeted re-exploration is expected to most effectively reduce attribution uncertainty over Z. Intuitively, the fork node is not simply the most anomalous step, but the earliest actionable point at which alternative continuations may still separate AGENT FAIL from E NV FAIL. Conceptually, a useful fork node balances goal proximity to a feasible continuation and attribution informativeness for reducing uncertainty over Z: d [ · ∆H(t). t∗ ∈ arg max Prog(t) t∈Tcand
(1)
[ where Tcand ⊆ {0, . . . , T − 1} denotes the candidate restart steps in τ1 , Prog(t) ∈ [0, 1] measures d estimated proximity to a plausible continuation, and ∆H(t) ≥ 0 measures expected reduction in attribution uncertainty. Because G and the true attribution distribution over Z are not observable from a single failed trajectory, D IAG E VAL treats Eq. 1 as an idealized selection criterion rather than a closed-form objective. It approximates this criterion with a reflective LLM-based judge J using a compressed diagnostic summary R1 derived from the failed GUI-agent trajectory τ1 . The summary aggregates the executed trajectory context, agent action explanations, and final failure evidence such as screenshots, DOM state, and judge output. The judge J analyzes R1 and predicts (t∗ , h∗ , δ ∗ ) ← J (R1 , task), where t∗ is the selected restart index, h∗ is the dominant SOU, and δ ∗ is a diagnostic explanation. In effect, J implicitly performs both candidate ranking and step selection over Tcand from trajectory-level evidence. Failure Diagnostic Summary (FDS). Based on the fork-node reasoning, D IAG E VAL constructs a Failure Diagnostic Summary (FDS): F0 = (t∗ , h∗ , Dt∗ , Ct∗ ), where Dt∗ = (δ ∗ , Acand ) provides the failure explanation and candidate policies, and Ct∗ denotes the recoverable environment context associated with t∗ , used for hot resumption without replaying the prefix τ1:t∗ −1 . The FDS serves as the structured interface between failure parsing and downstream diagnostic probing. Implementation details are provided in Appendix F.1. 4.2
Diagnostic Probe Generation
Given the diagnostic state Fk = (t∗k , hk , Dt∗k , Ct∗k ), D IAG E VAL initializes probe types at the fork node t∗k and instantiates them as a candidate branch set Pk . Here, a branch denotes a detailed executable plan instantiated from a probe type. The dominant SOU hk guides this routing; details are provided in Appendices F.2 and F.3. Figure 2 illustrates why diagnostic branches should be guided by the FDS rather than by blind retry: an unguided retry may reproduce the same visible state, whereas an FDS-guided branch redirects exploration toward more informative transitions. Type A (Alternative transitions). Type-A probes realize the same subgoal through alternative actions, modalities, or routes. They test whether the original failure was caused by misexecution rather than genuine unreachability, and are primarily used when hk ∈ {1, 3}. Type B (Observation Expansion). Type-B probes expand the visible frontier of the interface through scrolling, navigation, menu expansion, or state revelation. They test whether the original failure stemmed from incomplete observation, and are primarily used when hk = 2. Type C (Reproducibility Test). Type-C probes perform controlled repetitions under the same or minimally perturbed conditions to test whether the failure is stable. They are used when hk ∈ {3, 4}, especially for runtime instability and ambiguous reasoning failures. Each branch b ∈ Pk contains: (i) a concrete action sequence, and (ii) an expected observation pattern that would differentially support AGENT FAIL or E NV FAIL. These probe types are not only behav5
iorally distinct, but also attributionally asymmetric, which we formalize as branch-typed likelihoods in Sec. 4.3.
Figure 2: Comparison of post-failure retry strategies on “Click the upvote button for a post in a specific subreddit.” The initial test (left) and a naive retry (middle) both fail along essentially the same homepage trajectory. D IAG E VAL (right) uses the FDS to identify SOU-2 (Incomplete Observation), generates a targeted retry plan, and verifies success (1500 → 1501). 4.3
Information-Gain Branch Ranking
Before execution in round k, D IAG E VAL orders candidates in Pk by a structured informationvalue principle: branches are preferred when their possible outcomes are expected to better separate AGENT FAIL from E NV FAIL. We instantiate this principle with a heuristic Expected Information Gain (EIG) score based on the branch-typed update rule in Sec. 4.4. Here, p(k) denotes D IAG E VAL’s current preference toward E NV FAIL at diagnosis round k. To simulate outcomes, D IAG E VAL uses likelihood parameters rather than calibrated probabilities. For a branch b of type d(b), wb scores recovery under AGENT FAIL, βd(b) scores success that can still occur under E NV FAIL, and γd(b) scores failure compatibility under AGENT FAIL. We set γA > γB > γC , making Type C failures stronger evidence for E NV FAIL. Formal parameter definitions are provided in Appendix F.4. The EIG score of branch b is then h i (k+1) (2) EIG(b; Fk ) = Hbin (p(k) ) − Eo∼P (·|b) Hbin (pb,o ) , (k+1)
where Hbin (p(k) ) is the attribution uncertainty before executing any branch in round k, and pb,o is the hypothetical attribution signal obtained if branch b produced outcome o. The expectation is over o ∈ {verified_success, fail} under the outcome scores defined above. Consequently, branches expected to produce the largest reduction in attribution uncertainty are ranked first, while lower-gain branches are deferred, making the limited branch budget focus on more informative probes. 4.4
Attribution Score Update and Stopping
After EIG ranks the candidate set Pk , D IAG E VAL executes branches in descending EIG order. Let p(k,j−1) and p(k,j) denote the attribution signal before and after executing the j-th branch in round k. For branch bk,j , let dk,j = d(bk,j ), wk,j = wbk,j , and ok,j be its observed outcome. The update rule follows Bayes’ rule as a transparent scoring mechanism, not as a claim of calibrated probabilistic inference: p(k,j−1) ok,j = fail, p(k,j−1) + (1 − p(k,j−1) )γd , k,j (k,j) p = (3) βdk,j p(k,j−1) , ok,j = verified_success. wk,j (1 − p(k,j−1) ) + βdk,j p(k,j−1) The stopping rule reflects outcome asymmetry: verified_success immediately stops diagnosis with verdict PASS (AGENT FAIL) as a reachability witness. Failures are accumulated, and if the updated signal satisfies p(k,j) ≥ τenv , D IAG E VAL stops early with verdict FAIL (E NV FAIL); otherwise, diagnosis continues with the updated attribution score until budget exhaustion. 6
5
Experiments
5.1
Experimental Setup
Datasets and Metrics. We evaluate on two open-source web-development benchmarks: RealDevBench (RDB) [Bian et al., 2025] with 429 annotated executable cases and WebDevJudge-Unit (WDJ-U) [Li et al., 2026] with 502 unit-level tasks with ground-truth pass/fail labels. We report accuracy and average cost per case (USD). On false-negative (FN) subsets, defined as cases with ground-truth PASS but initial verdict FAIL, we additionally report FN recovery rate. Appendix D provides dataset details, and Appendix E describes the RDB annotation protocol. Baselines. We compare AppEvalPilot [Bian et al., 2025], WebVoyager [He et al., 2024], UI-TARS Agent [Qin et al., 2025]2 , and model-native CUA. We report model-native CUA for Qwen3.5-35BA3B, Claude Opus 4.6, and Gemini 3 Flash Preview [Qwen Team, 2026, Anthropic, 2026a, Google DeepMind, 2025], and evaluate GUI-agent frameworks with Claude Opus 4.6 or Gemini 3 Flash Preview as shown in Table 1. We set the GUI-agent step budget max_iters = 15 and 20 on WDJ-U and RDB, respectively. Diagnostic Settings. We use AppEvalPilot as the GUI-agent evaluation framework, invoking D I AG E VAL’s online diagnosis procedure from Sec. 4 only when an initial FAIL verdict is returned. We evaluate two diagnostic budgets: D IAG E VAL (×1) runs one diagnosis round, and D IAG E VAL (×2) adds a second round for cases that remain unresolved after the first. Each round k instantiates a candidate pool Pk of N = 5 branches and executes the top K = 3 under EIG ranking; diagnosis starts from a neutral prior p(0) = 0.5 and terminates upon verified_success or once p(k,j) ≥ τenv = 0.7. We set (w0 , β0 ) = (0.60, 0.20) and (γA , γB , γC ) = (0.60, 0.50, 0.40), and instantiate the diagnostic judge J with Claude Sonnet 4.6 [Anthropic, 2026b]. Per-case costs include the AppEvalPilot rollout and J calls for FDS construction and branch selection. Appendix H.4 provides an auxiliary analysis of LLM-call composition on the FN diagnostic subset. The parametersetting protocol and sensitivity analyses are reported in Appendix H.3. 5.2
Experimental Results
(i) Reliability through targeted recovery. Table 1 reports the main end-to-end comparison. With Gemini 3 Flash Preview as the GUI-execution backbone, D IAG E VAL (×1) reaches 76.1% accuracy on WDJ-U and 78.6% on RDB, compared with 69.9% and 65.0% for AppEvalPilot. A second diagnostic round raises the accuracy to 78.3% and 81.6%, respectively. The accuracy gain is concentrated in false-negative recovery. After one round, FNs decrease by 45.6% on WDJ-U (114 → 62) and 47.0% on RDB (132 → 70), while 89.2% and 94.5% of the original TNs are preserved. After two rounds, only 40.4% and 37.9% of the original FNs remain, and TN preservation is still 86.0% on WDJ-U and 84.9% on RDB. This pattern indicates that D IAG E VAL separates recoverable AGENT FAIL cases from confirmed E NV FAIL cases among initially negative verdicts. (ii) Accuracy–cost tradeoff. On WDJ-U, D IAG E VAL (×1) with Gemini 3 Flash Preview reaches 76.1% accuracy at $0.122 per case, exceeding AppEvalPilot with Claude Opus 4.6 at 30.5% of its cost. The RDB comparison is more pronounced: the same diagnostic setting reaches 78.6%, compared with 69.9% for AppEvalPilot with Claude Opus 4.6, using only 47.5% of the cost. These results suggest that post-failure attribution improves reliability beyond the gains obtainable from stronger GUI-agent execution alone. (iii) Attribution evidence from SOU-guided probes. Figure 3 breaks down where the recovered cases come from. SOU-2 contributes the most to FN recovery, mainly through Type B visibility branches, and achieves the highest recovery on both WDJ-U and RDB (75.0% and 60.3%). SOU-1 and SOU-3 mainly trigger Type A alternative-transition branches, suggesting evaluator-side grounding or plan-realization errors. SOU-4 behaves differently: reproducibility-oriented branches produce a TN flip of 0.0% on RDB and 5.8% on WDJ-U within the SOU-4 subset. Overall, the accuracy gain comes from structured diagnostic evidence and informative counter-evidence, rather than from indiscriminately flipping failed verdicts. 5.3
Ablation Study
Diagnostic-Mechanism Ablation. To isolate recovery effects, we evaluate all methods on the same FN subsets. Attribution evidence is measured by ∆H = Hbin (p(0) ) − Hbin (pend ), the entropy drop 2 We use the UI-TARS Agent implementation released with the WebDevJudge open-source repository.
7
Table 1: Main results on WDJ-U and RDB. Acc. is end-to-end accuracy, ∆ is the absolute change relative to AppEvalPilot, and FN/TN report false-negative and true-negative counts. Costs are reported in USD per case. ∗ indicates that the AppEvalPilot-relative change is not computed. Arrows indicate metric direction; best values are bolded, and D IAG E VAL rows are highlighted. Model
Acc. ↑
Framework
∆↑
FN ↓
TN ↑
$/case ↓
(a) WDJ-U (502 cases) Qwen3.5-35B-A3B
Model CUA
46.1%
*
258
211
0.08
Claude Opus 4.6
Model CUA AppEvalPilot UI-TARS WebVoyager
70.9% 74.1% 74.5% 65.5%
-3.6 — +0.4 -8.6
88 108 102 94
174 199 198 169
0.32 0.400 0.361 0.190
Gemini 3 Flash Preview
Model CUA AppEvalPilot UI-TARS WebVoyager D IAG E VAL (×1) D IAG E VAL (×2)
50.0% 69.9% 54.8% 68.9% 76.1% 78.3%
-19.9 — -15.1 -1.0 +6.2 +8.4
40 114 84 90 62 46
33 186 143 169 166 160
0.040 0.070 0.020 0.035 0.122 0.154
Qwen3.5-35B-A3B
Model CUA
42.2%
*
238
101
0.09
Claude Opus 4.6
Model CUA AppEvalPilot UI-TARS WebVoyager
69.0% 69.9% 71.3% 70.4%
+1.0 — +1.4 +0.5
80 104 97 83
52 66 65 53
0.35 0.385 0.188 0.188
Gemini 3 Flash Preview
Model CUA AppEvalPilot UI-TARS WebVoyager D IAG E VAL (×1) D IAG E VAL (×2)
62.2% 65.0% 52.9% 68.3% 78.6% 81.6%
-2.8 — -12.1 +3.3 +13.6 +16.6
50 132 181 77 70 50
36 73 71 62 69 62
0.019 0.112 0.02 0.025 0.183 0.234
(b) RDB (429 cases)
from the neutral signal p(0) = 0.5 to the terminal signal pend . This analysis focuses on FN recovery, while bilateral attribution quality is deferred later. We compare NR, a naive rerun; NR+IE, which adds FDS context and fork-point localization but removes SOU-guided branching and attribution updates; and full D IAG E VAL, which further adds targeted diagnostic branching. Table 2 shows that FN recovery and ∆H improve together only with SOU-guided branching. NR+IE provides modest gains over naive rerun with low ∆H, whereas full D IAG E VAL substantially improves both metrics: on WDJ-U, D IAG E VAL (×1) more than doubles recovery over NR+IE (45.6% vs. 20.2%) and quadruples ∆H (0.274 vs. 0.063). D IAG E VAL (×1) also outperforms the two-round NR and NR+IE ablations, indicating that the gain comes from diagnosis quality rather than additional budget. For budget-matched naive sampling on WDJ-U FN cases, D IAG E VAL (×2) reaches 59.6% recovery, a 106.2% relative gain over the optimistic Best-of-3 baseline (28.9%) in Table 8. Bilateral Attribution Score: Magnitude and Quality. We next test whether the attribution signal ranks failure types beyond the final pass/fail verdict. As shown in Table 3, on resolved cases the terminal signal pend aligns with the ground-truth attribution: recovered FN cases settle at low pend , attributing toward AGENT FAIL, whereas retained TN cases settle at high pend , attributing toward E NV FAIL; missed cases exhibit the complementary pattern. Using pend as the ranking score, D I AG E VAL attains ROC-AUC values of 0.620/0.720 at ×1 and 0.761/0.763 at ×2 on RDB/WDJ-U. The signal therefore acts as a bilateral attribution score beyond the final verdict, although it is not a calibrated probability.
(a) WDJ-U.
(b) RDB.
Figure 3: SOU-typed branch allocation and diagnostic outcomes. Each subfigure corresponds to one benchmark. The left panel shows the distribution of Type A/B/C probes within each SOU, and the right panels report FN recovery for Z=AGENT FAIL and TN flip for confirmed Z=E NV FAIL cases. 8
Table 2: Component ablation on FN subsets. FDS: failure diagnosis; Fork: fork-point resume; Branch+Att.: SOU-guided branching with attribution score update. Rec.%: FN recovery rate; Cost: USD per case; ∆H: entropy reduction in the internal attribution score from a neutral prior (higher indicates stronger attribution evidence). Best within each budget block in bold. Components
RDB (n=132)
WDJ-U (n=114)
Method
FDS Fork Branch+Att. Rec.% ↑ Cost ↓ ∆H ↑ Rec.% ↑ Cost ↓ ∆H ↑
D IAG E VAL w/o Diagnose (NR, ×1) D IAG E VAL w/o Branch (NR+IE, ×1) D IAG E VAL (×1)
– ✓ ✓
– ✓ ✓
– – ✓
32.6 37.1 47.0
0.030 0.018 0.183
0.001 0.024 0.305
17.5 20.2 45.6
0.059 0.053 0.123
0.046 0.063 0.274
D IAG E VAL w/o Diagnose (NR, ×2) D IAG E VAL w/o Branch (NR+IE, ×2) D IAG E VAL (×2)
– ✓ ✓
– ✓ ✓
– – ✓
46.2 43.2 62.1
0.057 0.045 0.234
0.012 0.024 0.325
28.1 30.7 59.6
0.115 0.130 0.163
0.120 0.141 0.410
Table 3: Score-based bilateral attribution by D IAG E VAL. Resolved cases are FN examples recovered to pass or TN examples retained as fail; missed cases are the corresponding complements. We report the mean score assigned to the ground-truth attribution direction and the ROC-AUC of P (env) for ranking TN over FN cases. FN: GT= AGENT FAIL Setting
TN: GT= E NV FAIL
P̄ (agent) |res ↑ P̄ (agent) |miss ↓ P̄ (env) |res ↑ P̄ (env) |miss ↓ ROC-AUC ↑
RealDevBench (RDB) D IAG E VAL (×1) 0.670 D IAG E VAL (×2) 0.672
0.126 0.208
0.805 0.803
0.430 0.374
0.620 0.761
WebDevJudge-Unit (WDJ-U) D IAG E VAL (×1) 0.659 D IAG E VAL (×2) 0.657
0.135 0.148
0.873 0.864
0.402 0.431
0.720 0.763
Efficiency Analysis of Branch Ordering. We further assess EIG-based diagnostic efficiency by comparing branch ordering methods. As detailed in Appendix H.2, EIG ordering achieves the highest first-branch success rate (66%) and the lowest probe cost (1.48 executed probes per recoverable case), showing a clear efficiency advantage over prompt-based ordering methods. 5.4
Cross-Framework Transfer
We evaluate whether the proposed diagnostic mechanism transfers across GUI-agent frameworks, with details provided in Appendix H.1. We use UI-TARS as the GUI-agent evaluation framework and invoke D IAG E VAL’s online diagnosis procedure when UI-TARS returns an initial FAIL verdict. D IAG E VAL achieves a maximum absolute end-to-end accuracy improvement of 22.1 and 21.7 percentage points on WDJ-U and RDB, respectively. These gains indicate that D IAG E VAL operates as a framework-agnostic evaluator-side mechanism, rather than a prompt-level enhancement tied to a specific GUI-agent framework.
6
Conclusion and Limitations
D IAG E VAL shows that post-failure GUI evaluation is better framed as trajectory-conditioned diagnosis than as repeated retry. By reusing prior trajectories, launching targeted probes, and aggregating cross-trajectory evidence, it recovers 45.6–62.1% of false negatives (vs. 17.5–46.2% for retry), yields mean entropy reduction of ∆H = 0.27–0.41 over the binary attribution score under the fixed update model, and lifts full-set accuracy from 69.9% to 78.3% on WebDevJudge-Unit and from 65.0% to 81.6% on RealDevBench. More broadly, when correctness is graph-level but evidence is path-local, reliability depends on adaptive evidence acquisition rather than attempt multiplicity alone. Limitations. D IAG E VAL relies on hand-tuned likelihood hyperparameters, prompt-implemented branch ranking, and a binary attribution space, so the resulting score is an internal diagnostic signal rather than a calibrated posterior. The fail-update rule also assumes P(fail | E NV FAIL, d) = 1 for every probe type, which may be too strong. The diagnostic loop further depends on an external LLM supervisor J for FDS construction and branch generation (see §5.1), so failures or biases of J can propagate into both probe selection and the resulting attribution signal. Future work should learn calibrated likelihoods, reduce prompt dependence in branch selection, study cross-supervisor robustness, and extend attribution beyond the binary split. 9
References Anthropic. Claude 3.5 sonnet. https://www.anthropic.com/news/claude-3-5-sonnet, 2024. Accessed on March 28, 2025. Anthropic. Claude Opus 4.6, February 2026a. URL https://www.anthropic.com/news/ claude-opus-4-6. Anthropic model announcement and system-card reference. Anthropic. Claude Sonnet 4.6 system card, February 2026b. URL https://www.anthropic. com/claude-sonnet-4-6-system-card. System card for Claude Sonnet 4.6. Anthropic Engineering Team. Effective harnesses for long-running agents. https://www. anthropic.com/engineering/effective-harnesses-for-long-running-agents, 2025. Accessed: 2025-12. Yutong Bian, Xianhao Lin, Yupeng Xie, Tianyang Liu, Mingchen Zhuge, Siyuan Lu, Haoming Tang, Jinlin Wang, Jiayi Zhang, Jiaqi Chen, Xiangru Tang, Yongxin Ni, Sirui Hong, and Chenglin Wu. You don’t know until you click: Automated gui testing for production-ready software evaluation, 2025. URL https://arxiv.org/abs/2508.14104. Chi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu, Wei Xue, Shanghang Zhang, Jie Fu, and Zhiyuan Liu. Chateval: Towards better llm-based evaluators through multi-agent debate, 2023. URL https://arxiv.org/abs/2308.07201. Jun Shern Chan, Neil Chowdhury, Oliver Jaffe, James Aung, Dane Sherburn, Evan Mays, Giulio Starace, Kevin Liu, Leon Maksin, Tejal Patwardhan, et al. Mle-bench: Evaluating machine learning agents on machine learning engineering. arXiv preprint arXiv:2410.07095, 2024. Dongping Chen, Ruoxi Chen, Shilin Zhang, Yaochen Wang, Yinuo Liu, Huichi Zhou, Qihui Zhang, Yao Wan, Pan Zhou, and Lichao Sun. MLLM-as-a-judge: Assessing multimodal LLM-as-a-judge with vision-language benchmark. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=dbFEFHAD79. Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code, 2021. URL https://arxiv.org/abs/2107.03374. Mengzhuo Chen, Junjie Wang, Fangwen Mu, Yawen Wang, Zhe Liu, Huanxiang Feng, and Qing Wang. Seeing the whole elephant: A benchmark for failure attribution in llm-based multi-agent systems. arXiv preprint arXiv:2604.22708, 2026. Wentong Chen, Junbo Cui, Jinyi Hu, Yujia Qin, Junjie Fang, Yue Zhao, Chongyi Wang, Jun Liu, Guirong Chen, Yupeng Huo, Yuan Yao, Yankai Lin, Zhiyuan Liu, and Maosong Sun. GUICourse: From general vision language model to versatile GUI agent. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, editors, Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 21936– 21959, Vienna, Austria, July 2025a. Association for Computational Linguistics. ISBN 9798-89176-251-0. doi: 10.18653/v1/2025.acl-long.1065. URL https://aclanthology.org/ 2025.acl-long.1065/. Yihan Chen, Benfeng Xu, Xiaorui Wang, Yongdong Zhang, and Zhendong Mao. Training llmbased agents with synthetic self-reflected trajectories and partial masking, 2025b. URL https: //arxiv.org/abs/2505.20023. 10
Kanzhi Cheng, Qiushi Sun, Yougang Chu, Fangzhi Xu, Yantao Li, Jianbing Zhang, and Zhiyong Wu. Seeclick: Harnessing gui grounding for advanced visual gui agents. arXiv preprint arXiv:2401.10935, 2024. Google DeepMind. Gemini 2.5 computer use model, 2025. URL https://blog.google/ technology/google-deepmind/gemini-computer-use-model. Yangruibo Ding, Zijian Wang, Wasi Ahmad, Hantian Ding, Ming Tan, Nihal Jain, Murali Krishna Ramanathan, Ramesh Nallapati, Parminder Bhatia, Dan Roth, et al. Crosscodeeval: A diverse and multilingual benchmark for cross-file code completion. Advances in Neural Information Processing Systems, 36:46701–46723, 2023. Yifei Gao, Jiang Wu, Xiaoyi Chen, Yifan Yang, Zhe Cui, Tianyi Ma, Jiaming Zhang, and Jitao Sang. Guitester: Enabling gui agents for exploratory defect discovery, 2026. URL https: //arxiv.org/abs/2601.04500. Vahid Garousi, Nithin Joy, Zafar Jafarov, Alper Buğra Keleş, Sevde Değirmenci, Ece Özdemir, and Ryan Zarringhalami. Ai-powered software testing tools: A systematic review and empirical assessment of their features and limitations, 2024. URL https://arxiv.org/abs/2409.00411. Google DeepMind. Gemini 3 Flash model card, December 2025. URL https://storage. googleapis.com/deepmind-media/Model-Cards/Gemini-3-Flash-Model-Card.pdf. Model card for Gemini 3 Flash; evaluated via Gemini 3 Flash Preview API. Boyu Gou, Ruohan Wang, Boyuan Zheng, Yanan Xie, Cheng Chang, Yiheng Shu, Huan Sun, and Yu Su. Navigating the digital world as humans do: Universal visual grounding for gui agents. arXiv preprint arXiv:2410.05243, 2024. URL https://arxiv.org/abs/2410.05243. Hongliang He, Wenlin Yao, Kaixin Ma, Wenhao Yu, Yong Dai, Hongming Zhang, Zhenzhong Lan, and Dong Yu. Webvoyager: Building an end-to-end web agent with large multimodal models. arXiv preprint arXiv:2401.13919, 2024. Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou. Large language models cannot self-correct reasoning yet. In Proceedings of the International Conference on Learning Representations (ICLR), 2024. Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=chfJJYC3iL. Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. Swe-bench: Can language models resolve real-world github issues? In Proceedings of the International Conference on Learning Representations (ICLR), 2024. Chao Jin, Wenkui Yang, Hao Sun, Yuqi Liao, Qianyi Jiang, Kai Zhou, Jie Cao, Ran He, and Huaibo Huang. Halluclear: Diagnosing, evaluating and mitigating hallucinations in gui agents. arXiv preprint arXiv:2604.17284, 2026. Ergün Batuhan Kaynak, Mayasah Lami, Sahand Moslemi, and Anil Koyuncu. Llmshot: Reducing snapshot testing maintenance via llms. In 2025 IEEE International Conference on Software Maintenance and Evolution (ICSME), pages 827–832, 2025. doi: 10.1109/ICSME64153.2025.00087. Fanheng Kong, Jingyuan Zhang, Yang Yue, Chenxi Sun, Yang Tian, Shi Feng, Xiaocui Yang, Daling Wang, Yu Tian, Jun Du, Wenchong Zeng, Han Li, and Kun Gai. Webtestbench: Evaluating computer-use agents towards end-to-end automated web testing. arXiv preprint arXiv:2603.25226, 2026. Hyunseok Lee, Jeonghoon Kim, Beomjun Kim, Jihoon Tack, Chansong Jo, Jaehong Lee, Cheonbok Park, Sookyo In, Jinwoo Shin, and Kang Min Yoo. Reguide: Data efficient gui grounding via spatial reasoning and search, 2025. URL https://arxiv.org/abs/2505.15259. 11
Chunyang Li, Yilun Zheng, Xinting Huang, Tianqing Fang, Jiahao Xu, Lihui Chen, Yangqiu Song, and Han Hu. WebDevJudge: Evaluating (M)LLMs as critiques for web development quality. In Proceedings of the International Conference on Learning Representations, 2026. URL https: //openreview.net/forum?id=CCSPm6V5EF. Songze Li, Chuokun Xu, Jiaying Wang, Xueluan Gong, Chen Chen, Jirui Zhang, Jun Wang, KwokYan Lam, and Shouling Ji. Llms cannot reliably judge (yet?): A comprehensive assessment on the robustness of llm-as-a-judge, 2025. URL https://arxiv.org/abs/2506.09443. Kaiming Liu, Xuanyu Lei, Ziyue Wang, Peng Li, and Yang Liu. Agent-environment alignment via automated interface generation. arXiv preprint arXiv:2505.21055, 2025. Tianyang Liu, Canwen Xu, and Julian McAuley. Repobench: Benchmarking repository-level code auto-completion systems. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=pPjZIOuQuF. Yuxuan Lu, Bingsheng Yao, Hansu Gu, Jing Huang, Zheshen Jessie Wang, Yang Li, Jiri Gesi, Qi He, Toby Jia-Jun Li, and Dakuo Wang. Uxagent: An llm agent-based usability testing framework for web design. In Proceedings of the Extended Abstracts of the CHI Conference on Human Factors in Computing Systems, CHI EA ’25, pages 1–12. Association for Computing Machinery, 2025a. doi: 10.1145/3706599.3719729. URL https://doi.org/10.1145/3706599.3719729. Zimu Lu, Houxing Ren, Yunqiao Yang, Ke Wang, Zhuofan Zong, Junting Pan, Mingjie Zhan, and Hongsheng Li. Webgen-agent: Enhancing interactive website generation with multi-level feedback and step-level reinforcement learning, 2025b. URL https://arxiv.org/abs/2509. 22644. Zimu Lu, Yunqiao Yang, Houxing Ren, Haotian Hou, Han Xiao, Ke Wang, Weikang Shi, Aojun Zhou, Mingjie Zhan, and Hongsheng Li. Webgen-bench: Evaluating llms on generating interactive and functional websites from scratch. In Advances in Neural Information Processing Systems (NeurIPS), 2025c. URL https://arxiv.org/abs/2505.03733. Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. Self-refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems (NeurIPS), 2023. Samuel Miserendino, Michele Wang, Tejal Patwardhan, and Johannes Heidecke. Swe-lancer: Can frontier llms earn $1 million from real-world freelance software engineering? arXiv preprint arXiv:2502.12115, 2025. Zhiyuan Peng, Wei Tao, Xin Yin, Chenhao Ying, Yuan Luo, and Yiwen Guo. PlayCoder: Making llm-generated gui code playable, 2026. URL https://arxiv.org/abs/2604.19742. Yujia Qin, Yining Ye, Junjie Fang, Haoming Wang, Shihao Liang, Shizuo Tian, Junda Zhang, Jiahao Li, Yunxin Li, Shijue Huang, et al. Ui-tars: Pioneering automated gui interaction with native agents. arXiv preprint arXiv:2501.12326, 2025. Qwen Team. Qwen3.5: Towards native multimodal agents, February 2026. URL https://qwen. ai/blog?id=qwen3.5. Chris Rawles, Sarah Clinckemaillie, Yifan Chang, Jonathan Waltz, Gabrielle Lau, Marybeth Fair, Alice Li, William Bishop, Wei Li, Folawiyo Campbell-Ajala, Daniel Toyama, Robert Berry, Divya Tyamagundlu, Timothy Lillicrap, and Oriana Riva. AndroidWorld: A dynamic benchmarking environment for autonomous agents. In Proceedings of the International Conference on Learning Representations, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/ hash/01a83bc2f2732a58e6aa731e659e7101-Abstract-Conference.html. Corby Rosset, Pratyusha Sharma, Andrew Zhao, Miguel Gonzalez-Fernandez, and Ahmed Awadallah. The art of building verifiers for computer use agents. arXiv preprint arXiv:2604.06240, 2026. doi: 10.48550/arXiv.2604.06240. URL https://arxiv.org/abs/2604.06240. Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), 2023. 12
Elena Smirnova, Elvis Dohmatob, and Jérémie Mary. Distributionally robust reinforcement learning, 2019. URL https://arxiv.org/abs/1902.08708. Aman Singh Thakur, Kartik Choudhary, Venkat Srinik Ramayapally, Sankaran Vaidyanathan, and Dieuwke Hupkes. Judging the judges: Evaluating alignment and vulnerabilities in LLMs-asjudges. In Ofir Arviv, Miruna Clinciu, Kaustubh Dhole, Rotem Dror, Sebastian Gehrmann, Eliya Habba, Itay Itzhak, Simon Mille, Yotam Perlitz, Enrico Santus, João Sedoc, Michal Shmueli Scheuer, Gabriel Stanovsky, and Oyvind Tafjord, editors, Proceedings of the Fourth Workshop on Generation, Evaluation and Metrics (GEM²), pages 404–430, Vienna, Austria and virtual meeting, July 2025. Association for Computational Linguistics. ISBN 979-8-89176-261-9. URL https://aclanthology.org/2025.gem-1.33/. Tiago Veiga and Jennifer Renoux. From reactive to active sensing: A survey on information gathering in decision-theoretic planning. ACM Computing Surveys, 55(13s):1–22, 2023. Tianjun Wei, Wei Wen, Ruizhi Qiao, Xing Sun, and Jianghong Ma. Rocketeval: Efficient automated llm evaluation via grading checklist, 2025. URL https://arxiv.org/abs/2503.05142. Zhiyong Wu, Zhenyu Wu, Fangzhi Xu, Yian Wang, Qiushi Sun, Chengyou Jia, Kanzhi Cheng, Zichen Ding, Liheng Chen, Paul Pu Liang, et al. Os-atlas: A foundation action model for generalist gui agents. arXiv preprint arXiv:2410.23218, 2024. Bang Xiao, Lingjie Jiang, Shaohan Huang, Tengchao Lv, Yupan Huang, Xun Wu, Lei Cui, and Furu Wei. Code aesthetics with agentic reward feedback. In Proceedings of the International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id= Q87kwGI6bx. Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh Jing Hua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, Yitao Liu, Yiheng Xu, Shuyan Zhou, Silvio Savarese, Caiming Xiong, Victor Zhong, and Tao Yu. OSWorld: Benchmarking multimodal agents for open-ended tasks in real computer environments. In Advances in Neural Information Processing Systems (NeurIPS), 2024. URL https://openreview.net/forum?id= tN61DTr4Ed. Wenda Xu, Danqing Wang, Liangming Pan, Zhenqiao Song, Markus Freitag, William Wang, and Lei Li. INSTRUCTSCORE: Towards explainable text generation evaluation with automatic feedback. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 5967–5994, Singapore, December 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.emnlp-main.365. URL https://aclanthology.org/2023.emnlp-main.365/. Yiheng Xu, Zekun Wang, Junli Wang, Dunjie Lu, Tianbao Xie, Amrita Saha, Doyen Sahoo, Tao Yu, and Caiming Xiong. Aguvis: Unified pure vision agents for autonomous gui interaction. arXiv preprint arXiv:2412.04454, 2024. Yuhao Yang, Yue Wang, Dongxu Li, Ziyang Luo, Bei Chen, Chao Huang, and Junnan Li. Aria-UI: Visual grounding for GUI instructions. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, editors, Findings of the Association for Computational Linguistics: ACL 2025, pages 22418–22433, Vienna, Austria, July 2025. Association for Computational Linguistics. ISBN 979-8-89176-256-5. doi: 10.18653/v1/2025.findings-acl.1152. URL https://aclanthology.org/2025.findings-acl.1152/. Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. In Proceedings of the International Conference on Learning Representations (ICLR), 2023. Jiayi Ye, Yanbo Wang, Yue Huang, Dongping Chen, Qihui Zhang, Nuno Moniz, Tian Gao, Werner Geyer, Chao Huang, Pin-Yu Chen, Nitesh V Chawla, and Xiangliang Zhang. Justice or prejudice? quantifying biases in llm-as-a-judge, 2024. URL https://arxiv.org/abs/2410.02736. Naimeng Ye, Xiao Yu, Ruize Xu, Tianyi Peng, and Zhou Yu. Ai agents for web testing: A case study in the wild, 2025. URL https://arxiv.org/abs/2509.05197. 13
Guibin Zhang, Junhao Wang, Junjie Chen, Wangchunshu Zhou, Kun Wang, and Shuicheng Yan. Agentracer: Who is inducing failure in the llm agentic systems?, 2025a. URL https://arxiv. org/abs/2509.03312. Shudan Zhang, Hanlin Zhao, Xiao Liu, Qinkai Zheng, Zehan Qi, Xiaotao Gu, Yuxiao Dong, and Jie Tang. Naturalcodebench: Examining coding performance mismatch on humaneval and natural user queries. In Findings of the Association for Computational Linguistics ACL 2024, pages 7907–7928, 2024. Weichen Zhang, Yiyou Sun, Pohao Huang, Jiayue Pu, Heyue Lin, and Dawn Song. Mirage-bench: Llm agent is hallucinating and where to find them, 2025b. URL https://arxiv.org/abs/ 2507.21017. Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E Gonzalez, and Ion Stoica. Judging LLM-as-a-judge with MT-bench and chatbot arena. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 46595–46623. Curran Associates, Inc., 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/ 91f18a1287b398d378ef22505bf41832-Paper-Datasets_and_Benchmarks.pdf. Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, and Graham Neubig. Webarena: A realistic web environment for building autonomous agents. In Proceedings of the International Conference on Learning Representations (ICLR), 2024. Lianghui Zhu, Xinggang Wang, and Xinlong Wang. JudgeLM: Fine-tuned large language models are scalable judges, 2025. URL https://arxiv.org/abs/2310.17631. Mingchen Zhuge, Changsheng Zhao, Dylan Ashley, Wenyi Wang, Dmitrii Khizbullin, Yunyang Xiong, Zechun Liu, Ernie Chang, Raghuraman Krishnamoorthi, Yuandong Tian, Yangyang Shi, Vikas Chandra, and Jürgen Schmidhuber. Agent-as-a-judge: Evaluate agents with agents, 2024. URL https://arxiv.org/abs/2410.10934. Terry Yue Zhuo, Minh Chien Vu, Jenny Chim, Han Hu, Wenhao Yu, Ratnadira Widyasari, Imam Nur Bani Yusuf, Haolan Zhan, Junda He, Indraneil Paul, et al. Bigcodebench: Benchmarking code generation with diverse function calls and complex instructions. arXiv preprint arXiv:2406.15877, 2024.
14
A
Broader Impact
D IAG E VAL improves the reliability of automated software evaluation by separating evaluator-side errors from genuine defects. However, because GUI agents process screenshots, DOM states, and interactive workflows, this approach risks exposing sensitive user data. Furthermore, enhanced UI exploration capabilities could be maliciously misused to probe software vulnerabilities. To mitigate these risks, deployments must strictly use sandboxed environments, exclude sensitive data, ensure fully auditable diagnostic traces, and restrict application to authorized testing settings.
B
Detailed SOU and Diagnostic Operators
Table 4: Detailed sources of uncertainty (SOU) and diagnostic operators. This table expands the corruption mode and observable cue for each SOU. SOU
Corruption
Cue
Op.
Imperfect grounding Incomplete observation Reasoning hallucination Runtime instability
Wrong target or actuation Hidden viewport, tab, or state
A blocked edge may still be reachable A continuation may lie off-screen or off-state
A B
Misread UI semantics
A reported blockage may be spurious
A/C
Non-deterministic execution
A failure may be transient
C
C
Sequential Diagnostic Algorithm
Overall diagnostic procedure. The SOU operators in Table 4 define the evidence channels used by D IAG E VAL. Algorithm 1 summarizes how these operators are invoked in the sequential diagnostic loop. After an initial failed evaluation, D IAG E VAL constructs an FDS, generates and selects diagnostic branches, orders them by EIG score, and updates the attribution score after each executed probe. Diagnosis terminates when a branch verifies success, when the attribution signal exceeds τenv , or when the diagnostic budget is exhausted. Algorithm 1: D IAG E VAL Sequential Diagnostic Evaluation Input: task; evaluator E; rounds R; candidates Ncand ; budget K; threshold τenv . Output: final verdict ŷ and terminal attribution score p. 1 (τ1 , ŷ1 ) ← E(task); if ŷ1 = PASS, return ŷ = PASS 2 Initialize pcur ← 0.5 and H ← ∅ 3 for k = 0, . . . , R − 1 do 4 p(k,0) ← pcur 5 Fk = (t∗k , hk , Dt∗k , Ct∗k ) ← ΦFDS (τ1 , H) 6 Pk ← G(Fk , Ncand ) ek ← TopK 7 P K, b∈Pk Jsel (b; Fk , H) 8 πk ← argsortb∈Pek [−EIG(b; Fk , p(k,0) )] 9 for j = 1, . . . , |πk | do 10 bk,j ← πk [j], dk,j ← d(bk,j ) br 11 (τk,j , ok,j ) ← Exec(bk,j , Ct∗k ) (k,j) 12 p ← Update(p(k,j−1) , ok,j , bk,j ); pcur ← p(k,j) br 13 H ← H ∪ {(bk,j , dk,j , ok,j , τk,j , p(k,j) )} 14 if ok,j = verified_success then return ŷ = PASS 15 if p(k,j) ≥ τenv then return ŷ = FAIL 16 end for 17 end for 18 return ŷ = FAIL, pcur
15
D
Datasets and Metrics
We evaluate on two open-source web-development benchmarks: RealDevBench (RDB) [Bian et al., 2025] and WebDevJudge-Unit (WDJ-U) [Li et al., 2026]. RDB is a repository-level benchmark. For this dataset, we use the commercial software-generation system Atoms3 to generate code because it provides direct run-and-deploy functionality, allowing us to collect deployed software environments without preparing offline containers. The raw RDB annotation pool contains 662 generated cases with valid paired annotator scores after excluding construction-failure records. From this pool, we remove cases whose deployed environments fail completely and form two disjoint subsets: a 41-case pilot set used only for lightweight sanity checks of empirical parameters, and a 429-case main test set used for all reported RDB results. The 41-case pilot set also provides the dimension-prior counts later summarized in Tables 6 and 7; it is not used in the reported RDB test results. WDJ-U contains 502 unit-level tasks with ground-truth pass/fail labels. For both benchmarks, accuracy is the fraction of cases whose final evaluator verdict matches the ground-truth label, and average cost per case is the total API cost divided by the number of evaluated cases. The FN subset contains cases with ground-truth PASS but initial verdict FAIL; FN recovery rate is the fraction of this subset corrected to final PASS under the matched diagnostic setting. For diagnostic analyses, TN flip rate measures the fraction of initially correct FAIL verdicts on groundtruth FAIL cases that are changed to PASS, and entropy reduction ∆H is computed from the internal attribution signal before and after diagnostic probing.
E
RealDevBench Annotation Protocol
For the RealDevBench portion, we manually annotate each generated software project against the task-specific test requirements to determine whether the environment-level execution is genuinely successful. Each case is independently reviewed by two test engineers, after which an algorithm reviewer performs calibration. Cases with inconsistent judgments are re-executed and adjudicated in a second round. This process yields the environment-level pass/fail labels for the RDB pilot and main-test subsets, with only the 429-case main test set used in the reported RDB results. Inter-rater agreement. The first annotator (A) and the second annotator (B) independently assign a binary score to each case: 0 for failure and 1 for pass. After excluding records with construction failures, 662 cases receive valid scores from both annotators. The two annotators agree on 611 cases, yielding an observed agreement of Po = 0.923. Cohen’s κ is 0.734, with an expected chance agreement of Pe = 0.710, indicating moderate-to-substantial agreement under the standard interpretation of κ values. The marginal score distributions are also similar: annotator A assigns 0 to 17.37% of cases and 1 to 82.63%, while annotator B assigns 0 to 17.82% and 1 to 82.18%. Table 5 summarizes the confusion matrix. Table 5: Inter-rater agreement between the first annotator (A) and second annotator (B) after filtering construction failures. Scores are binary: 0 denotes failure and 1 denotes pass. A=0 A=1
B=0
B=1
91 27
24 520
The total disagreement rate is 7.7% (51/662). Among the disagreements, A is stricter in 24 cases (A=0, B=1), while B is stricter in 27 cases (A=1, B=0), suggesting that the two annotators have broadly balanced strictness.
F
Prompt Templates
This section provides the core prompt templates used by D IAG E VAL’s supervisor module. All prompts produce structured JSON output for downstream processing. Full verbatim prompts are available in the supplementary code. 3 https://atoms.dev/
16
F.1
Failure Diagnostic Summary (FDS) Prompt
The FDS prompt takes a compressed failed trajectory and produces the initial diagnostic record. Failure Diagnostic Summary Prompt You are a test replay supervisor. A GUI agent just finished its first-round test run and the result is FAILURE. You are given the compressed trajectory. Analyze the trajectory and answer three questions in order: 1. **Why did it fail?** - Is it the agent’s fault (wrong strategy, wrong clicks) or the environment’s fault (app broken, page not loading, UI non-functional)? 2. **Should we retry?** - Will a second attempt with a different strategy likely succeed, or is retrying pointless? 3. **If retry, from which step?** - Which step is the last known-good state to restart from, and what should the agent do differently? ## How to read the trajectory - **"action"** = the raw pyautogui command executed (click, scroll, key press, etc.). - **"summary"** = what the agent INTENDED to do. This is NOT confirmation the action succeeded. - You MUST use the **final result evidence** to retroactively judge earlier steps. If evidence says "all elements were unresponsive", then earlier clicks on those elements also failed - even if summaries sound optimistic. - A click + optimistic summary != success. Only mark a step as successful if there is corroborating evidence. ## Failure type definitions - **agent**: The application works (at least partially), but the agent chose wrong actions, clicked wrong elements, used a bad strategy, or gave up too early. Retry with a better approach is likely to help. - **env**: The application itself is broken - page didn’t load, JS not running, all UI elements non-responsive, blank/black screen, or critical infrastructure failure. Retrying the same test is unlikely to help without fixing the environment. - **ambiguous**: Cannot determine clearly; some elements worked but the failure pattern doesn’t clearly point to agent or environment. ## Task under test {task_desc} ## Trajectory last_completed_iter: {last_completed_iter} ### Step-by-step timeline (action + summary pairs): {timeline_text} ### Final result: {result_history_text} ## Required output Return ONLY a single JSON object (no markdown fences): { "failure_type": "<agent | env | ambiguous>", "fail_reason": "<2-3 sentences: why did the test fail? What went wrong?>", "should_retry": <true | false>, "retry_reason": "<1-2 sentences: why retry will/won’t help>", "restart_from_iter": <int, 0-based step index to restart from; set to 0 if should_retry is false or if no step succeeded>, "restart_explanation": "<2-3 sentences: why restart from this step, and what should the agent do differently>" } ## Examples Agent failure (retry worthwhile): { "failure_type": "agent", "fail_reason": "The agent successfully loaded the page and opened the date picker, but then repeatedly clicked the same start-date field without ever selecting an end date. The date range was never completed, so the display info never updated.", "should_retry": true, "retry_reason": "The application is functional. The agent just needs a better strategy for selecting both start and end dates.", "restart_from_iter": 4, "restart_explanation": "Step 4 successfully opened the start-date picker (confirmed by the date value changing in step 5). Restart here and immediately select a start date, then switch to the end-date field - do not re-click the start-date field." } Environment failure (retry not worthwhile): { "failure_type": "env", "fail_reason": "No UI element responded to any interaction throughout the entire session. Buttons, dropdowns, and scroll all failed. The page appears to have loaded as a static render without JavaScript execution.", "should_retry": false, "retry_reason": "The application is completely non-functional. Retrying with the same environment will produce the same result.", "restart_from_iter": 0,
17
"restart_explanation": "No step produced any verifiable progress. If the environment is fixed, start from scratch." } Ambiguous failure: { "failure_type": "ambiguous", "fail_reason": "The agent managed to interact with some elements (dropdown worked, scroll worked) but the core Upload File button was consistently unresponsive across 6 attempts at different coordinates.", "should_retry": true, "retry_reason": "Some UI elements work, so the app may be partially functional. A different upload approach (drag-and-drop, keyboard shortcut) might succeed.", "restart_from_iter": 2, "restart_explanation": "Step 2 confirmed the page is partially interactive (dropdown responded). Restart here and try file upload via keyboard shortcut (Ctrl+O) or drag-and-drop instead of clicking the button." } ## Your answer (JSON only):
Operational representation of the uncertainty profile. The SOU taxonomy in the main text defines conceptual evidence channels; we do not assume that each failure belongs strictly to only one SOU. In implementation, the uncertainty profile hk is represented as an operational routing profile rather than as a four-dimensional probability vector over SOUs. Concretely, we write hk = (ck , wk ), where ck is a discrete failure category inferred from the FDS failure reason, and wk is a normalized distribution over the three diagnostic branch dimensions D = {A, B, C}. The FDS first produces structured fields such as failure_type, fail_reason, restart_from_iter, and restart_explanation. F.2
Failure Category Classification Prompt
After the FDS is produced, a second inference pass expands the SOU-driven probing strategy into three probe types and five concrete subcategories, each corresponding to a specific diagnostic objective and intervention pattern (as mentioned in §4.2). Each category is anchored by 2–3 concrete examples in the prompt (e.g., for wrong_target: “The agent clicked the preset text label instead of the actual radio button circle, so the resize was never applied”). The classified category maps to empirical per-dimension success priors (Table 6) for branch budget allocation. Failure Category Classification Prompt Classify the agent’s failure reason into exactly ONE category. ## Categories - **insufficient_exploration**: The agent gave up too early or failed to navigate/scroll enough. It drew premature conclusions without fully exploring the page or available UI. - **wrong_strategy**: The agent located the correct elements but used the wrong technique, algorithm, or execution approach (wrong key timing, wrong game strategy, wrong sequence). - **wrong_target**: The agent interacted with the wrong element, wrong coordinates, or misidentified what a UI component does. The element itself may be correct but the agent pointed at the wrong thing. - **env_boundary**: The feature may not be implemented, the app has a broken component, or the UI is non-responsive regardless of what the agent tries. - **unknown**: The failure does not clearly fit any of the above categories. ## Examples [insufficient_exploration] "The agent only pressed ’pagedown’ twice and then concluded no carousel exists. It never took a screenshot to confirm the page state." "The agent completed the survey but could not find dimension percentage scores on the results page. It did not scroll through the full results page." "The agent scrolled through the timeline but did not explore all UI controls or buttons that might reveal comparison photos." [wrong_strategy] "The agent moved the paddle briefly (0.5 seconds) and then the ball was lost. It never implemented continuous paddle control to keep the ball alive." "The agent repeatedly anchored on card (0,0) paired with every other card - an invalid memory match strategy since both cards need to be different." "The agent performed hard drops without attempting to clear lines, so the LINES counter remained at 0." [wrong_target] "The agent repeatedly attempted to fill form fields using incorrect coordinates, resulting in validation errors."
18
"The agent clicked the preset text label instead of the actual radio button circle, so the resize was never applied." "The agent attempted to drag a locked (correctly-placed) puzzle piece instead of testing an unlocked piece." [env_boundary] "Clicking a tag on a note card navigated to the detail page instead of filtering - the tag filtering feature may not be implemented." "The agent waited 105 seconds but no inactivity prompt appeared - the timeout threshold may be longer than tested or not implemented." "Every time a shape property value was committed, the selected shape disappeared from the canvas likely an application bug." ## Failure reason to classify {fail_reason} Return JSON only, no markdown: {"category": "insufficient_exploration | wrong_strategy | wrong_target | env_boundary | unknown"}
Table 6: Empirical per-dimension success counts by failure category, used for SOU-driven dimension allocation. Source: 103 branches across the 41-case RDB pilot set. Failure category insufficient_exploration wrong_strategy wrong_target env_boundary unknown
Dim A
Dim B
Dim C
1 3 2 2 0
7 0 0 1 0
0 0 0 0 0
Source of dimension priors. The counts in Table 6 are derived from the 41-case RDB pilot set, consisting of 41 agent-fail cases and 103 executed diagnostic branches. The table reports only successful-branch counts; failed executed branches are part of the 103-branch source pool but do not contribute to the cells. We use these counts as lightweight routing priors for SOU-guided branchdimension allocation. The 429-case RDB main test set and WDJ-U are held out from this pilot source and have zero case-level overlap with it. To check whether these pilot-derived priors reflect stable diagnostic structure, we further compare the dominant successful dimension on held-out evaluation logs in Table 7. For the categories with clear pilot signal, the dominant successful dimension is consistent across the pilot, the RDB main-test FN set, and the WebDevJudge-Unit FN set: wrong_strategy, wrong_target, and env_boundary are all dominated by Dimension A. Thus, the pilot counts serve as coarse dimensionlevel routing priors rather than case-specific statistics. We apply Laplace smoothing before converting the counts into allocation weights, so every diagnostic dimension retains non-zero probability. Table 7: Held-out consistency of pilot-derived dimension priors. Each entry reports the dominant successful dimension followed by the raw successful-branch counts along Dimensions A/B/C. For example, A (3, 0, 0) means that Dimension A is the dominant dimension, with 3 successful branches in Dimension A, 0 in Dimension B, and 0 in Dimension C. Failure category
Pilot
wrong_strategy A (3, 0, 0) wrong_target A (2, 0, 0) env_boundary A (2, 1, 0)
F.3
RDB Main Test
WDJ-U
A (4, 1, 0) A (5, 0, 1) A (4, 1, 0)
A (20, 0, 1) A (7, 1, 0) A (9, 2, 0)
Branch Generation Prompt
The branch generation prompt (used in §4.2) instructs the executor agent to produce N candidate plans across the three operator dimensions. The prompt provides: • The task description and failure analysis from the FDS. • The trajectory tail (last steps before failure) for context. • The current screenshot at the fork-point state. • Per-dimension guidance and minimum count constraints (e.g., “Dimension A minimum: 3, Dimension B minimum: 1, Dimension C minimum: 1”). 19
Each generated plan is a JSON object with fields: dimension/type (A/B/C), title (short identifier), plan (step-by-step concrete strategy), and reason (why this plan addresses the identified failure). The dimension guidance for Type A is dynamically generated from the FDS (restart_explanation); Type B and C use fixed templates targeting viewport expansion and interactability probing respectively.
Trajectory Reuse and Incremental Graph Update. Each executed probe contributes a trajectory fragment consisting of the resumed context, the action sequence taken under the probe, the observed UI states, and the terminal outcome label. We append the probe type, the realized fragment, and the success/fail outcome to Hk , and merge newly observed states and transitions into Ĝk∪ by aliasing repeated screenshots / DOM configurations to previously seen local states whenever the UI context is unchanged. When resuming from an intervention point, the executor replays or re-establishes the prefix needed to recover the local UI state around t∗k , then launches the new probe from that recovered context rather than discarding prior exploration and restarting the entire case.
F.4
Information-Value Branch Ranking Prompt
Branch ranking is conditioned on the current Failure Diagnostic Summary (FDS) Fk together with local execution context, including the visible UI state at t∗k and prior probe outcomes in Hk , rather than unconstrained free-form text alone. The branch selection module (§4.3) instructs the supervisor to rank and select the top-K executable branches from the candidate pool by approximating the EIG ranking score in Eq. 2. Each candidate branch is evaluated with respect to both attribution relevance and executability. The prompt first applies four validity checks: 1. Root-cause fit: does the branch directly address the diagnosed failure mode or dominant SOU? 2. Feasibility: can the branch be executed from the current checkpoint and visible interface state? 3. Non-redundancy: does the branch avoid trivially repeating actions that already failed without introducing new evidence? 4. Specificity: is the branch a concrete, executable action plan rather than a vague strategy? Branches that fail these checks are removed from Avalid (Sk ). For each remaining branch, the supervisor estimates the branch outcome under the two latent attribution hypotheses: whether the branch is likely to succeed if the original failure was AGENT FAIL, and whether the same outcome would remain likely if the environment is genuinely blocked. Operationally, the prompt asks for structured fields: • valid: whether the branch passes the feasibility, specificity, and non-repetition checks. • p_success_agent: estimated likelihood of success under AGENT FAIL. • p_success_env: estimated likelihood of an observed success signal under E NV FAIL. • eig_rationale: why the success/failure outcomes would or would not separate the two attribution hypotheses. • rank: the final order among valid branches by expected attribution-entropy reduction. These numeric likelihoods are not treated as globally calibrated probabilities. Instead, they instantiate the local world model used for branch prioritization at selection time. Formally, for a branch b of type d(b), we use wb = P (verified_success | AGENT FAIL, b), βd(b) = P (verified_success | E NV FAIL, b), γd(b) = P (fail | AGENT FAIL, b), where wb captures recovery under evaluator-side failure, βd(b) captures success that can still occur under environment-side failure, and γd(b) captures failure compatibility under evaluator-side failure. The actual observed outcome is incorporated afterward through the branch-typed score update in Eq. 3. Therefore, selection-time information value acts as a planning signal for branch ordering, while the realized entropy reduction is determined only after branch execution. 20
G
Case Study and Examples
G.1
Diagnostic Pipeline Case Example
We walk through a complete D IAG E VAL diagnostic cycle on a concrete case from RealDevBench to illustrate how the components from §4 interact in practice. Task.
“Check saturation adjustment functionality” on a film-effect image processing website.
Failed trajectory (Round 1). The agent attempted to interact with a saturation slider before loading any image into the editor. Clicks at coordinates (960, 692) on the “Choose File” button did not trigger a file dialog. After repeated failed clicks and three action-error retries, the agent reported failure without trying alternative approaches. The trajectory tail: Step 2: click(960, 692) –- Click “Choose File” to upload image Step 3: click(1850, 442) –- Click saturation slider Step 4: click(960, 692) –- Retry “Choose File” button Steps 5–7: [action error, retrying] –- Report failure
FDS output. failure_type: agent failure_category: wrong_target fail_reason: “The agent attempted to interact with a saturation slider before any image was loaded into the editor, and the file upload button clicks at (960, 692) did not successfully open a file dialog or load an image. The agent never established a valid starting state (an image in the editor) before trying to test the saturation adjustment feature.” should_retry: true initial penv : 0.10 fork-point (t∗0 ): step 0 (complete restart) restart_explanation: “No step produced verifiable progress, so restart from step 0. The agent should first take a screenshot to understand the current UI state, then locate and click the correct file upload button, confirm an image is loaded in the editor, and only then interact with the saturation slider.”
The low initial penv = 0.10 reflects the supervisor’s assessment that this is likely an agent-side grounding error rather than a broken application. Dimension allocation. Given failure_category = wrong_target, the empirical priors from Table 6 assign weights wA =0.6, wB =0.2, wC =0.2, concentrating the branch budget on alternative transitions (Type A), because wrong_target failures are most likely resolved by finding the correct interactive element. Generated branches (5 candidates). A-0: OCR-based button targeting. Use visual text recognition to find the “Upload”/“Open”/“Choose File” button instead of hardcoded coordinates; click the detected bounding box center. A-1: Parent container interaction. Click the larger drop-zone container surrounding the upload area with a 50px offset from the previously failed point. A-2: Alternative image source. Look for a “Sample Image” gallery or “File” menu in the navigation bar to load an image without using the upload button. B-3: Viewport expansion. Scroll down 500px to check if the upload button or saturation slider is partially off-screen. C-4: Interactability probe. Hover over (960, 692) to check cursor change, confirming whether the element is actually interactive before clicking. Selected branches (K=3). The supervisor selected A-0, A-2, A-1 in priority order, all of which are Type A, consistent with the wrong_target SOU hypothesis. Under the local world model, these branches have high EIG score because success under any of them would strongly support AGENTFAIL: the application would be shown reachable once the upload step is grounded correctly. Their failure would also provide useful negative evidence because three distinct action-form realizations would have failed from the same fork point. The B and C candidates were deprioritized because 21
viewport expansion and hover-only interactability checks are less likely to separate AGENT FAIL from E NV FAIL for this diagnosed grounding error. This example illustrates the full diagnostic pipeline: the FDS produces a structured failure analysis with SOU hypothesis, branch generation proposes candidate probes over diagnostic dimensions, information-value selection prioritizes probes expected to maximally shift the attribution signal, and executed outcomes update the internal attribution score. Intervention-point execution details. Operationally, resuming from t∗k means recovering the local UI context needed for the next diagnostic action, not teleporting to an exact simulator state. When available, the system replays the verified trajectory prefix up to t∗k ; otherwise it reconstructs the local context by navigating back to the same page / panel configuration before executing the probe. This design is sufficient for diagnosis because probes are defined over the local neighborhood of t∗k , but it can be imperfect when the environment contains hidden session state or asynchronous effects that are difficult to reproduce exactly. G.2
Illustrative Running Example
Running example. Consider the test point “verify that clicking the timeline sets the video end point” in a VideoClipper application. The initial evaluation fails because the file-upload button is non-responsive—the evaluator cannot reach the timeline editor. D IAG E VAL classifies this as env_boundary and allocates branch budget with emphasis on Dimension A. Starting from the (0) maximum-ignorance prior pENV = 0.50, the supervisor selects three probes spanning all three evidence channels: 1. Branch 1 (Dim B, observation probe): scroll the page to search for a pre-loaded sample video γB =0.50 (1) or alternative entry point. Fails. pENV = 0.50 −−−−−→ 0.67 (∆p = +0.17). 2. Branch 2 (Dim C, diagnostic probe): Tab-cycle through focusable elements to test whether γC =0.40 (2) the upload button accepts keyboard activation. Fails. pENV = 0.67 −−−−−→ 0.83 (∆p = +0.17)—this probe uses the smallest γ value, making failure hardest to reconcile with evaluatorside error and therefore providing the strongest evidence toward environment-side blockage. 3. Branch 3 (Dim A, re-instantiation probe): hover and double-click the upload button with γA =0.60 (3) alternative timing. Fails. pENV = 0.83 −−−−−→ 0.89 (∆p = +0.06)—the smallest shift, because γA =0.60 is the largest likelihood, making a failed re-instantiation most compatible with evaluator miss. The diminishing increment also reflects score saturation: as pENV approaches 1, each additional failure contributes less marginal evidence. After exhausting the diagnostic budget, the internal attribution score pENV ≈ 0.89 strongly favors environment-side blockage (Figure 4). All three branches produce the same binary outcome (fail), yet the branch-typed observation model converts them into different evidence strengths via the dimension-specific likelihoods γd . This is the core mechanism that enables structured attribution evidence: uniform retry, which treats every failure identically, cannot distinguish these cases. G.3
Additional Case Studies
Case 3: Trajectory anchoring (OfficeEmployeeTaskAllocator) Observed mismatch and resume-only behavior. Baseline sees dashboard showing 6 tasks but “All Tasks” list shows only 4. NR+IE (×1, ×2) resumes and repeats the same observation three times, anchored to “count rows in All Tasks list.” D IAG E VAL branch and outcome. NR (×2) discovers an alternative via status filters: Not Started (1) + In Progress (3) + Completed (2) = 6. Takeaway. Resume context without branching locked the agent into a failed verification strategy. Case 4: Multi-step architectural reasoning (Professional Portfolio) Observed failure and resume-only behavior. Baseline tries Download button, Ctrl+S, More actions menu, right-
22
P(EnvFail
k)
0.9
Dim B (observation): =0.50 Dim C (diagnostic): =0.40 Dim A (re-instantiation): =0.60 0.83
0.8
0.67
0.7 0.6 0.5 0.4
0.89 Dim C | =0.40 p = +0.17
p = 1.0
Dim A | =0.60 p = +0.06
Dim B | =0.50 p = +0.17
0.50 Prior (p0)
Branch 1 (Dim B)
Branch 2 (Dim C)
Branch 3 (Dim A)
Figure 4: Attribution-score update across diagnostic branches in the running example. Each branch yields the same binary outcome (fail), but produces a different update magnitude due to branch-typed likelihoods γd , consistent with Eq. 3. click, and no download is triggered. NR (×2) repeats the same button-clicking pattern with no memory of what was tried. D IAG E VAL branch and outcome. D IAG E VAL (×2) identifies that direct button clicks are ineffective and generates a Dim A branch: open “Download Resume” → PDF viewer loads → click download icon within viewer → save dialog triggered. Takeaway. This two-step approach requires understanding the application’s document viewing architecture. Case 5: Environment pre-conditioning (CSS Animation Playground) Observed failure. No method succeeds in ×1 because the animation completes before the pause button can be tested. D IAG E VAL branch and outcome. D IAG E VAL (×2) diagnoses the temporal root cause and generates a Dim B branch: set “Iteration Count” to Infinite first, then click pause. The animation stops and the button icon changes. Takeaway. The environment is functional but requires a specific interaction ordering.
H
Additional Experiments
H.1
Cross-Framework Transfer
We further evaluate whether D IAG E VAL can improve a different GUI-agent framework without retuning. Specifically, D IAG E VAL is developed with AppEvalPilot as the source framework, and we transfer the same diagnostic procedure to UI-TARS as the target framework. The diagnostic components, including failure parsing, branch generation, branch selection, probing, and attributionscore update, are kept unchanged; only the underlying GUI-agent framework is replaced. Figure 5 reports absolute accuracy changes in percentage points over each framework’s own singlepass baseline. On WDJ-U, UI-TARS obtains 54.8% accuracy under single-pass evaluation. Adding D IAG E VAL raises accuracy to 72.1% under the ×1 setting and 76.9% under the ×2 setting, corresponding to absolute gains of +17.3 and +22.1 percentage points. On RDB, UI-TARS improves from 52.9% to 67.1% and 74.6%, giving absolute gains of +14.2 and +21.7 percentage points. These results show that D IAG E VAL provides substantial absolute accuracy improvements beyond the framework on which it was developed, indicating that the diagnostic procedure transfers across GUI-agent frameworks rather than relying on AppEvalPilot-specific behavior. To test whether the gains of D IAG E VAL can be explained by repeated sampling alone, we compare it against a diagnosis-free naive retry baseline on the same WDJ-U originally false-negative subset 23
Figure 5: Cross-framework transfer results. ∆ denotes the absolute accuracy gain in percentage points over the corresponding single-pass baseline of the same GUI-agent framework. used in the main evaluation (114 cases). For a fair comparison, naive retry uses the same backbone (Gemini 3 Flash Preview) and the same AppEvalPilot framework as D IAG E VAL, so that any difference reflects the diagnostic mechanism rather than backbone capacity. Naive retry reruns each task from scratch, without failure parsing, branch construction, or attribution-score updates. We consider three naive-retry baselines: Retry-1 (a single retry), Majority-3 (majority vote over three attempts), and Best-of-3, which counts a case as recovered if any attempt succeeds. Best-of-3 is therefore an optimistic sampling-only baseline. Table 8: Recovery on WDJ-U originally false-negative cases. All methods are evaluated on the same 114 cases. Retry-1 denotes a single naive retry; Majority-3 denotes majority vote over three attempts; Best-of-3 counts a case as recovered if any attempt succeeds. Method
Recovered / Recovery Rate
Naive retry (Retry-1) Naive retry (Majority-3) Naive retry (Best-of-3)
20/114 (17.5%) 16/114 (14.0%) 33/114 (28.9%)
D IAG E VAL (×1) D IAG E VAL (×2)
52/114 (45.6%) 68/114 (59.6%)
Table 8 shows that D IAG E VAL’s gains cannot be attributed to repeated sampling alone. Under naive retry, recovery remains limited on false negatives: one retry recovers 17.5%, Majority-3 recovers 14.0%, and Best-of-3 recovers 28.9%. The lower Majority-3 result also suggests that majority aggregation can introduce additional voting noise when retry outcomes are unstable across runs. Even against the optimistic Best-of-3 baseline, D IAG E VAL remains substantially stronger, reaching 45.6% recovery after one diagnostic round and 59.6% after two. This shows that D IAG E VAL gains its advantage by identifying attribution-informative sources of uncertainty and converting them into targeted probes that help separate AGENT FAIL from E NV FAIL, thereby reducing attribution uncertainty, rather than by retrying more times alone. H.2
Branch Prioritization
We evaluate whether belief-conditioned branch prioritization improves diagnostic efficiency. The analysis is conducted on the WebDevJudge-Unit FN set. Among the 114 FN cases, 50 are successfully recovered by diagnostic probing, and these 50 recovered cases form the evaluation set for branch ordering. This evaluation is conditional on branch selection: for each case, the LLM-selected branch set already contains at least one branch that can recover the task. We therefore keep the selected branch set fixed and vary only the execution order, so that any performance difference reflects the efficiency of ordering rather than the ability to select a successful branch. Compared methods. We compare three ordering strategies: (i) Random ordering, which executes the selected branches in random order; (ii) LLM-default ordering, the order produced by the LLM judge and used as the default execution order in D IAG E VAL; (iii) EIG ordering, our belief-conditioned ordering strategy that ranks branches by EIG score over the attribution score. 24
Table 9: Ordering performance on recoverable cases. Different execution orders are compared with the selected branch set fixed. First-branch success denotes the fraction of cases recovered by the first executed branch. Ordering strategy
First-branch success
Avg. probes / case
Total probes
Saving vs. random
Random ordering LLM-default ordering EIG ordering
33% (17/50) 58% (29/50) 66% (33/50)
2.00 1.60 1.48
100 80 74
– 20% 26%
As shown in Table 9, EIG ordering achieves the highest first-branch success rate and the lowest probe cost. Relative to LLM-default ordering, it improves first-branch success from 58% to 66% and reduces the total number of probes from 80 to 74. Compared with random ordering, EIG doubles the first-branch success rate from 33% to 66% and saves 26% of probe executions. These results suggest that, once the LLM judge has selected semantically plausible diagnostic branches, EIGbased ordering can more effectively place recoverable branches earlier in the execution sequence. H.3
Sensitivity to Hyperparameters
Parameter-setting protocol. The default update and stopping parameters are empirical scoring constants rather than fitted probabilities. We select (w0 , β0 ) = (0.60, 0.20), (γA , γB , γC ) = (0.60, 0.50, 0.40), and τenv = 0.70 through lightweight sanity checks on the 41-case RDB pilot set, while holding out the 429-case RDB main test set for final reporting. Table 6 provides the pilot-derived routing sanity check for branch-dimension allocation, whereas Tables 10 and 11 test whether the reported trends are stable around the default scoring constants. Sensitivity to Likelihood Parameters We test whether the attribution signal depends strongly on a particular choice of likelihood parameters (Table 10). To align with the main method, we parameterize the branch-typed update by a base pair (w0 , β0 ), where w0 denotes the nominal probability of observing verified_success under AGENT FAIL, and β0 denotes the nominal probability of observing success under E NV FAIL. Branch-specific terms wb and βd(b) are instantiated from this base pair together with branch type. Across settings, D IAG E VAL remains stable and retains non-trivial entropy reduction. Even at w0 = β0 = 0.50, where success/failure outcomes alone carry no attribution preference, D IAG E VAL still achieves ∆H ≈ 0.25–0.27. This indicates that attribution signal does not come only from raw success/failure outcomes, but also from the branch-typed probing structure itself. Increasing the separation between w0 and β0 yields larger ∆H, but also makes the update more sensitive to the assumed likelihood asymmetry. We therefore use (w0 , β0 ) = (0.60, 0.20) as the default setting in the main experiments. Table 10: Sensitivity to likelihood parameters for D IAG E VAL (×1). Results are reported in terms of ∆H under the branch-typed score update. The row w0 = β0 = 0.50 is a non-informative reference, in which success/failure outcomes alone provide no directional preference between AGENTFAIL and E NV FAIL; any remaining attribution signal therefore comes from the branch-typed probing structure. The default setting (w0 , β0 ) = (0.60, 0.20) is used in the main experiments. w0 / β0
RDB WDJ-U
w0 =β0 =0.50 (non-inform. ref.) w0 =0.50, β0 =0.10 w0 =0.60, β0 =0.20 (default) w0 =0.70, β0 =0.20 w0 =0.80, β0 =0.10 w0 =0.90, β0 =0.05
0.269 0.365 0.305 0.321 0.428 0.531
0.254 0.361 0.274 0.315 0.429 0.536
Stopping Threshold Sensitivity We also vary the E NV FAIL stopping threshold τenv (Table 11), which controls when diagnosis terminates early and returns an E NV FAIL verdict. The stopping threshold τenv is designed to affect efficiency: it determines how early diagnosis terminates once the accumulated E NV FAIL belief becomes sufficiently high. In our results, τenv = 0.70 provides the best trade-off: it saves 67 branches (35.4%) while preserving perfect recoverable-case recovery (50/50) and incurring zero truncation error. 25
Table 11: Sensitivity of the E NV FAIL stopping threshold τenv . We vary the early-stopping threshold τenv for the accumulated E NV FAIL belief and report its effect on diagnostic efficiency and recoverable-case safety. Saved branches denotes the number and percentage of diagnostic branches skipped by threshold-based early stopping. Correct RC recovery counts recoverable cases that are still successfully recovered, while RC truncation error counts recoverable cases that are incorrectly stopped before recovery. Threshold τenv
Saved branches
Correct RC recovery
RC truncation error
0.65 0.70 0.75 0.80 0.85 0.90
83 (43.9%) 67 (35.4%) 40 (21.2%) 20 (10.6%) 1 (0.5%) 0 (0.0%)
37/50 50/50 50/50 50/50 50/50 50/50
13/50 0/50 0/50 0/50 0/50 0/50
The threshold results show that the efficiency gain from early stopping must be balanced against recoverable-case safety. A low threshold such as τenv = 0.65 saves the most branches, but it prematurely stops 13 recoverable cases and reduces correct recovery to 37/50. In contrast, thresholds of 0.75 and above preserve all recoverable cases, but the saved branches decrease substantially as the threshold becomes more conservative. The setting τenv = 0.70 achieves the most favorable operating point in this experiment: it retains perfect recovery on recoverable cases while still skipping over one third of diagnostic branches. Together with the ordering results, this suggests that beliefconditioned diagnosis improves efficiency in two complementary ways: EIG ordering reduces the number of probes needed to find a successful branch, while threshold-based early stopping avoids unnecessary probing once the evidence for E NV FAIL is sufficiently strong.
H.4
Model-Call Composition in FN Retry
Figure 6 reports the Gemini/Claude call ratio per case across the FN retry pipeline. This ratio reflects the division of labor in D IAG E VAL: Gemini is used for the GUI-agent execution loop, while Claude is used for supervisor-side diagnosis, retry-plan generation, and checkpoint analysis. In the first run, both benchmarks show a high ratio (≈18–19), since each case mainly invokes Gemini for the agent rollout and only requires lightweight Claude-side supervision. After Retry ×1, the ratio decreases on both WDJ-U and RDB, reflecting additional Claude calls introduced by failure verification, diagnostic planning, and restart-point analysis. Across all stages, the average number of Gemini calls remains within a relatively narrow range (≈11–13 per case), suggesting that the agent-side execution cost is largely determined by the fixed rollout budget. In contrast, the Gemini/Claude ratio varies mainly with Claude-side supervision. By Retry ×2, WDJ-U shows a higher ratio because its average Claude-call count decreases, whereas RDB remains lower due to more sustained supervisor involvement. Thus, this figure complements the cost analysis by showing that variation in per-case call composition is driven primarily by diagnostic supervision rather than by large changes in the Gemini execution loop. 26
Gemini / Claude Ratio
FN Retry Gemini / Claude Call Ratio per Case 24
WDJ RDB
22
21.4 (11.5/0.5)
20 18
19.0 (11.4/0.6)
18.2 (10.9/0.6)
16.4 (11.4/0.7)
16 14 13.9 (12.5/0.9)
14.5 (12.7/0.9)
12
First Run
Retry ×1
Retry ×2
Figure 6: Gemini / Claude call ratio per case across the FN retry pipeline. The ratio is computed as the average number of Gemini agent calls divided by the average number of Claude supervisor calls per case. Parenthetical values report the rounded underlying averages (Gemini avg. / Claude avg.). Gemini calls remain relatively stable across stages, while most variation in the ratio comes from Claude-side diagnostic supervision.
27