当界面开口说话:面向主动交互的数据感知生成式UI框架
摘要
提出了GenUI-Harness,一个多智能体框架,将信息检索的Tool Agent与生成前端代码界面的GUI Coder Agent配对,并引入UI-TauBench基准测试。4B模型经训练后Pass@3从9.33%提升至58.00%,超越Claude Opus 5(46.67%),生成的UI还将平均对话轮次从3.4次降至1.2次。
查看缓存全文
缓存时间: 2026/10/09 06:25
# Data-AwareGenerative UI Harness for Active Interaction
Source: [https://arxiv.org/html/2610.11123](https://arxiv.org/html/2610.11123)
## When Interfaces Speak: Data\-Aware Generative UI Harness for Active Interaction
Xiaolong LiXiaohan XuJinyang LiXinnuo XuGe QuNan HuoJack WilliamsReynold ChengThe University of Hong Kong Microsoft ResearchThe BIRD Team\{xia01ong,xxh24,jl0725\}@connect\.hku\.hk[https://github\.com/bird\-bench/GenUI\-Agent](https://github.com/bird-bench/GenUI-Agent)
###### Abstract
Most human\-agent interaction today remains text\-based\. However, natural language is often not a perfect medium for complex tasks, as it can lead to cognitive overload, ambiguity, information chaos, and a slow input process; ephemeral generative UIs can present structured information and guide users toward task completion\. In this work, we proposeGenUI\-Harness, a multi\-agent harness that pairs a Tool Agent for information retrieval and task execution with a GUI Coder Agent that identifies ambiguities and generates front\-end code for structured interfaces, helping users complete their tasks\. Training such a versatile coder with reinforcement learning is challenging: verifiable rewards for interactive UI generation require costly execution, while LLM\-as\-a\-Judge rewards are prone to reward hacking\. We address the first challenge withDynamic UX, a lightweight package that supports dynamic interaction and reward collection within a single sandbox, and the second withReward Auditor, a meta\-reward mechanism that monitors reward distributions and automatically distills diagnostic patterns into a shared rubric and scoring specification\. To evaluate this task, we introduceUI\-TauBench, a benchmark for active human\-agent interaction through generated UI code, built on10real\-world domain databases constructed from public data sources and based on Tau\-Bench tool use settings, with Lite \(300 tasks\) and Full \(1,000 tasks\) splits\. Experiments show thatGenUI\-Harness achieves an average Pass@3 gain of4\.48 percentage pointsover smolagents on Lite\. Training withGenUI\-Harness improves a 4B backbone from a9\.33%baseline to58\.00%Pass@3, even outperforming larger frontier models such as Claude Opus 5 \(46\.67%\)\. We further show that GenUI\-Harness remains robust not only on ambiguous queries, but also on non\-ambiguous ones\. In a reviewer survey comparing communication channels, generated UIs reduce the average number of dialogue rounds from3\.4to1\.2\. These results show that data\-aware generative interfaces can support effective task completion and reduce dialogue rounds in the evaluated database\-backed workflows\.
## 1Introduction
Most current human\-agent systems still interact through text\([Yao et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib71);[Schick et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib54);[Li et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib31);[Qin et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib46);[Yao et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib72)\)\. While natural language is flexible, it is often not a perfect medium for complex, goal\-directed tasks: users face cognitive overload when translating structured needs into text, ambiguity from underspecified requirements, information chaos from scattered preferences and database records, and a slow input process when typing complex instructions\([Larkin & Simon, 1987](https://arxiv.org/html/2610.11123#bib.bib27);[Rao & Daumé III, 2018](https://arxiv.org/html/2610.11123#bib.bib51);[Aliannejadi et al\., 2019](https://arxiv.org/html/2610.11123#bib.bib1);[Zamani et al\., 2020](https://arxiv.org/html/2610.11123#bib.bib75)\)\. These limitations reflect a deeper mismatch between medium and task in interactive agent settings: advancing human\-agent collaboration requires moving beyond conversational text to dynamic, data\-aware interfaces that simultaneously visualize grounded candidate records and capture structured user intent for downstream action execution\.
Figure[1](https://arxiv.org/html/2610.11123#S1.F1)illustrates this contrast with a flight\-booking request\. In a conventional text interaction, flight details and clarification questions accumulate piecemeal across turns, leaving the user to piece together and evaluate competing alternatives, while the agent struggles to map fragmented user utterances into structured action arguments\. This back\-and\-forth dialogue increases cognitive burden and the likelihood of grounding errors\. In contrast, a data\-aware generative interface dynamically consolidates retrieved flight candidates, pre\-grounded constraints, and missing slots into a structured canvas\. By anchoring candidate options directly in verified database records and restricting interactive controls to unresolved fields, the interface eliminates ambiguity at the source and collapses multi\-turn textual interrogation into a single, verifiable submission ready for downstream action execution\.
Figure 1:Text\-based and generated\-UI interaction for the same flight\-booking request\. Left: text requires successive clarification of travel preferences\. Right: the generated UI presents retrieved options and structured controls for direct review and clarification\.In this paper, we study*data\-aware generative UI*as an alternative interaction paradigm\. Building on personalized, task\-specific, and dynamically synthesized interfaces\([Gajos et al\., 2010](https://arxiv.org/html/2610.11123#bib.bib19);[Vaithilingam & Guo, 2019](https://arxiv.org/html/2610.11123#bib.bib63);[Vaithilingam et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib64);[Nandy et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib39);[Cao et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib9);[Chen et al\., 2026](https://arxiv.org/html/2610.11123#bib.bib12)\), an*adaptive and ephemeral*interface provides a communication channel tailored to the current request and relevant database records\. It presents structured information and supports direct input, following the principles of direct manipulation and focused clarification\([Larkin & Simon, 1987](https://arxiv.org/html/2610.11123#bib.bib27);[Shneiderman, 1983](https://arxiv.org/html/2610.11123#bib.bib56);[Hutchins et al\., 1985](https://arxiv.org/html/2610.11123#bib.bib23);[Horvitz, 1999](https://arxiv.org/html/2610.11123#bib.bib22);[Xu et al\., 2019](https://arxiv.org/html/2610.11123#bib.bib69);[Aliannejadi et al\., 2021](https://arxiv.org/html/2610.11123#bib.bib2);[Zamani et al\., 2020](https://arxiv.org/html/2610.11123#bib.bib75)\)\. To realize this idea, we proposeGenUI\-Harness, a multi\-agent harness with a Tool Agent operating in two stages and a GUI Coder Agent between them\. During*pre\-agent exploration*, the Tool Agent gathers relevant records and candidate options through read\-only tool calls\. The GUI Coder Agent uses this evidence to identify ambiguities in task requirements and generates executable front\-end TypeScript code that presents the retrieved options and collects the required user input\. During*post\-agent execution*, the Tool Agent combines the submitted data with the retrieved evidence, obtains any remaining database\-dependent information, and executes the requested action through tool calling\.
The GUI Coder Agent must identify ambiguous task requirements, express them through appropriate interface controls, and generate code that renders correctly and submits useful data for downstream execution\([Wu et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib66);[Chen et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib10)\)\. We train the coder with reinforcement learning, for which reward design poses two challenges\. First, collecting execution\-based rewards requires rendering generated code at scale, with isolated sessions so that one rollout does not affect another\. We introduceDynamic UX, a lightweight package for parallel, session\-isolated execution and reward collection within a single sandbox\. Second, rendering alone does not establish whether an interface exposes the relevant ambiguities or enables successful downstream action\. Verifying these properties requires user interaction and task execution, while a less expensive LLM\-as\-a\-Judge reward may assign high scores to interfaces that fail during use and is susceptible to reward hacking\([Zheng et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib78);[Tan et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib60);[Gao et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib20);[Skalse et al\., 2022](https://arxiv.org/html/2610.11123#bib.bib58)\)\. We introduceReward Auditor, a meta\-reward mechanism that uses actual task\-execution outcomes to diagnose and automatically revise the training reward\. It monitors reward distributions and examines individual rollouts to identify failures that receive high rewards and successful interactions that the criteria undervalue\.
To evaluate this task, we introduceUI\-TauBench, a benchmark based on the tool\-use settings of Tau\-Bench\([Yao et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib72)\)that evaluates an agent’s ability to generate task\-specific UIs on the fly and use them for active human\-agent interaction\. It grounds tasks in10 real\-world domain databasesconstructed from public data sources\. Its Lite \(300 tasks\) and Full \(1,000 tasks\) splits evaluate whether the generated interface supports the user input and downstream action needed to reach the target database state\. On Lite,GenUI\-Harness attains higher Pass@3 thansmolagents,mini\-swe\-agent, andPion 8, 7, and 8 of the 9 shared backbones, respectively\. Training a 4B backbone within our harness increases Pass@3 from 9\.33% to 58\.00%, even outperforming substantially larger frontier models such as Claude Opus 5 \(46\.67%\)\. These gains are not limited to ambiguous user requests\. We also find thatGenUI\-Harness remains robust when user goals are already clearly specified, suggesting that generated interfaces are useful not only for clarification, but also for efficient task progression\. In a reviewer survey comparing communication channels, generated UIs reduce average dialogue rounds from 3\.4 to 1\.2, showing that structured submissions can consolidate multiple required inputs into a single exchange\.
Our contributions are threefold: \(1\) the task of*data\-aware generative UI*for stateful service tasks; \(2\)UI\-TauBench, which evaluates active human\-agent interaction through generated front\-end code; and \(3\)GenUI\-Harness, which combines tool grounding, role\-specialized UI generation, Dynamic UX, and Reward Auditor\. Experiments show strong database\-state success for a compact model and GUI\-Coder transfer across models\.
## 2Task Definition
The data\-aware generative UI task requires an agent to construct an executable interface from a user request and database evidence, collect the user input needed for the task, and complete the requested action through tool use\. Each instance contains a user request, an initial database state, query and action tools, and domain rules, following the tool\-use setting of Tau\-Bench\([Yao et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib72)\)\. The agent uses read\-only tools to retrieve relevant records from the database, generates a task\-specific UI on the fly to obtain missing user information or confirm the intended action, and calls an action tool to update the database while satisfying the user’s requirements and the applicable rules\. Appendix[A\.1](https://arxiv.org/html/2610.11123#A1.SS1)gives the formal definition\.
## 3UI\-TauBench
UI\-TauBench evaluates whether an agent can generate a useful interface on the fly from the current request and database evidence, collect user input, and complete the task through tool use\.
Figure 2:UI\-TauBench construction pipeline\. We collect and normalize the domain databases, construct and validate the query and action tools, and synthesize and validate the benchmark tasks\.#### Domain Data Collection\.
The benchmark uses 10 real\-world domain databases constructed from public data sources, covering flight booking, hotel booking, e\-commerce, and retail\([OpenFlights, n\.d\.](https://arxiv.org/html/2610.11123#bib.bib44);[António et al\., 2019](https://arxiv.org/html/2610.11123#bib.bib5);[Olist, 2018](https://arxiv.org/html/2610.11123#bib.bib40);[Chen, 2012](https://arxiv.org/html/2610.11123#bib.bib11)\)\. These sources provide domain records in heterogeneous schemas, rather than task environments with a common query interface and defined state transitions\. Four doctoral researchers collect and normalize these sources by standardizing field types and identifiers, checking cross\-table references, and organizing each domain into a user\-facing entity table, resource tables, and a transaction table\. Query tools can then retrieve related records, and action tools can apply updates whose effects are checked against a target database state under explicit domain rules\. Appendix[C](https://arxiv.org/html/2610.11123#A3)documents the data sources and construction details\.
#### Tool Design\.
Working from the normalized databases, the same annotators first specify the domain rules that govern action requirements, eligibility conditions, and valid state transitions, then define the corresponding query and action tools\([Li et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib31);[Qin et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib46)\)\. Query tools are atomic, read\-only retrieval operations that compose into search chains\. Action tools apply rule\-compliant updates whose arguments are grounded in query observations or user clarification\. Validation applies a separate condition to each tool type\. A query tool must execute without error, return a non\-empty result, and return records consistent with the arguments it was given\. An action tool is invoked with arguments taken from query observations or user clarification and must both satisfy the domain rules and produce the intended database state\. A tool that violates any condition is revised against the case that failed and revalidated at most twice\. Every surviving tool is then cross\-checked by a second annotator\. We retain a tool when both annotators agree that it is correct, and discard tools that still fail or whose behavior remains ambiguous\. Appendix[C\.1](https://arxiv.org/html/2610.11123#A3.SS1)details tool construction and validation\.
Table 1:Data statisticsStatisticLiteFullTotal instances3001,000Moderate\-ambiguity instances161523High\-ambiguity instances139477Unique query tools303304Unique action tools162331Avg\. tokens / user task90\.390\.2Avg\. masked args\. / action4\.94\.8Inter\-annotator agreement \(%\)94\.194\.3
#### Task Synthesis\.
We design a task synthesis agent usingClaude Opus 5\. For each candidate, one of these annotators samples a random user and specifies a task goal, such as changing an existing flight booking\. Given the selected user’s records, the domain database, and the available tools, the agent proposes and executes a query chain for that goal, with later calls using earlier results, and constructs a reference action whose arguments come from retrieved records\. We then mask all internal identifiers except the user identifier, together with 2–3 additional arguments for moderate\-ambiguity tasks or 4–5 for high\-ambiguity tasks\. Conditioned on the executed chain, retrieved records, and domain rules, the agent writes a natural\-language request that leaves these arguments unspecified\. The hidden reference action preserves the complete goal, while the visible request requires the evaluated agent to recover missing information through database exploration, user interaction, or both\. Each candidate passes three checks: execution verifies the reference action’s database update; alignment checks establish consistency among the request, user profile, records, rules, and reference action; and two independent annotators assess plausibility, fluency, and masked\-value leakage\. Disagreements are resolved by a third annotator, and unresolved candidates are discarded\. Appendix[C\.1](https://arxiv.org/html/2610.11123#A3.SS1)gives the full protocol\.
#### Data Statistics and Evaluation Metrics\.
Table[1](https://arxiv.org/html/2610.11123#S3.T1)shows theUI\-TauBench statistics\. Appendix[C\.2](https://arxiv.org/html/2610.11123#A3.SS2)reports per\-domain statistics and comparisons with existing benchmarks\. We conduct three evaluation sessions per task and report state exact\-match \(EM\) metrics overNNtasks:
Pass@3=100N∑i=1Nmaxj∈\{1,2,3\}zi,j,Avg@3=1003N∑i=1N∑j=13zi,j\.\\mathrm\{Pass@3\}=\\frac\{100\}\{N\}\\sum\_\{i=1\}^\{N\}\\max\_\{j\\in\\\{1,2,3\\\}\}z\_\{i,j\},\\qquad\\mathrm\{Avg@3\}=\\frac\{100\}\{3N\}\\sum\_\{i=1\}^\{N\}\\sum\_\{j=1\}^\{3\}z\_\{i,j\}\.Here,zi,j=1z\_\{i,j\}=1if sessionjjexecutes successfully and produces exactly the reference database state, and00otherwise\. Pass@3 measures success in at least one session; Avg@3 averages success across all three\.
## 4GenUI\-Harness
Solving each task inUI\-TauBench requires the agent system to understand the query, explore the database, and interact with the user\.GenUI\-Harness therefore assigns these requirements to separate roles\. A Tool Agent retrieves records and executes the final action, and a GUI Coder Agent turns the retrieved evidence and the unresolved arguments into an interface the user operates directly, so that choices are made among grounded options without exposing database schemas or internal identifiers\. Separating the roles also makes the interface component independently trainable, which allows the GUI Coder Agent to be optimized against execution outcomes while the Tool Agent is held fixed, and allows the trained coder to be paired with a different tool\-reasoning model\. Figure[3](https://arxiv.org/html/2610.11123#S4.F3)summarizes the workflow, and Appendix[A\.2](https://arxiv.org/html/2610.11123#A1.SS2)gives the detailed protocols\.
Figure 3:GenUI\-Harness links three stages: the Tool Agent retrieves task context, the GUI Coder Agent generates an interface to collect user input, and the Tool Agent uses that input to execute the final database action\.#### Pre\-Agent Exploration\.
Given the query and candidate action schemas, the Tool Agent identifies the intended operation and uses read\-only tools in a ReAct loop\([Yao et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib71);[Schick et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib54);[Li et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib31)\)\(up to 5 turns\) to retrieve records and the user profile\. This grounds known arguments and collects candidate options for unresolved user choices\. The Tool Agent passes the query and the exploration history, which records its tool calls and their observations, to the GUI Coder Agent\.
#### Generated UI\.
The GUI Coder Agent reads the query and the exploration history and determines which arguments the retrieved records already fix, which candidate values are available for the remaining ones, and which arguments only the user can decide\. For each argument left to the user it selects an interface control suited to that decision, such as a list for choosing among retrieved candidates or an input field for a value the user supplies\([Horvitz, 1999](https://arxiv.org/html/2610.11123#bib.bib22);[Vaithilingam et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib64);[Ma et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib35)\)\. It emits a single Material UI component in React and TypeScript that presents the candidates with readable labels and the attributes a decision depends on\. Arguments already resolved are shown as context or prefilled, so the user attends only to what is unresolved\. The user simulator operates the rendered interface according to its assigned intent and preferences, and its submission is returned to the Tool Agent as a JSON object whose keys name action arguments and whose values record the user inputs\.
#### Post\-Agent Execution\.
The Tool Agent resumes with the query, exploration history, and submitted user inputs\. It can use up to 5 further query turns to validate selections or recover remaining database\-dependent arguments\. It combines these observations with the user’s input to complete the action arguments, then executes the action tool to update the database\.
## 5Training
We construct training environments from 40 databases synthesized withClaude Sonnet 4\.6\([Anthropic, 2026b](https://arxiv.org/html/2610.11123#bib.bib4)\), all separate fromUI\-TauBench\. On all 40 databases,DeepSeek V4 Flash\([Xu et al\., 2026](https://arxiv.org/html/2610.11123#bib.bib68)\)generates end\-to\-end trajectories withinGenUI\-Harness\. We retain successful trajectories whose final database state matches the target and whose interfaces render with valid ARIA snapshots\. Trajectories from 25 databases are used to fine\-tune the Tool Agent and GUI Coder Agent separately with supervised fine\-tuning \(SFT\)\. The remaining 15 databases define the RL environments; retained trajectories from these databases supply reference UI code and ARIA snapshots for reward evaluation\. Appendix[D](https://arxiv.org/html/2610.11123#A4)details construction, filtering, and split verification\.
Both agents start fromQwen3\.5\-4Band are fine\-tuned separately on their respective training examples, which fixes the trajectory structure and the output format each agent must produce\. We call the resulting pair of checkpointsGenUI\-4B \(SFT\)\. Holding the Tool Agent at its SFT checkpoint, we then train only the GUI Coder Agent on the 15 RL databases with Group Relative Policy Optimization \(GRPO\)\([Shao et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib55)\), using the audited reward to optimize it toward interfaces that lead to successful task completion\([Le et al\., 2022](https://arxiv.org/html/2610.11123#bib.bib29);[Wu et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib66)\)\.
### 5\.1Dynamic UX
Static code checks cannot establish whether a generated UI renders successfully or what controls it exposes\. The component must be transpiled, loaded, and executed in a browser to obtain the interface evidence used for reward evaluation\. Repeating this process for every rollout adds rendering time before policy updates\. A straightforward isolation strategy launches a fresh browser or sandbox per rollout, duplicating browser processes and, with separate sandboxes, servers and dependencies as concurrency grows\. Dynamic UX instead shares one rendering runtime and browser process within a single sandbox while assigning each rollout an isolated browser context, so execution results and rewards cannot be affected by other samples\.
Dynamic UX initializes the web server, socket router, browser, and component library once, then assigns each rollout a unique session and isolated browser context\. It returns execution status and an initial ARIA snapshot for reward collection, while session\-based routing prevents state from crossing samples\. To evaluate rendering efficiency and scalability, we benchmark Dynamic UX on 1,100 pre\-verified components against fresh\-process rendering across five concurrency levels\. Results show that context\-level isolation is consistently more efficient: on average, Dynamic UX increases throughput by 18\.2% while reducing median latency by 15\.3%, peak resident set size \(RSS\) by 35\.2%, and Chromium process count by 59\.4%\. A 1,000\-session marker test completes without timeout, failure, or content leakage\. Appendix[D\.7](https://arxiv.org/html/2610.11123#A4.SS7)reports the full setup and results\.
### 5\.2Reward Auditor
Successful rendering does not establish that an interface enables task completion\. Verifying the latter requires user interaction, downstream action execution, and a check of the resulting database state, making full evaluation costly for every training rollout\. A language\-model judge provides less expensive feedback, but may reward plausible\-looking interfaces that fail during use or undervalue useful alternatives\([Zheng et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib78);[Kim et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib24);[Lambert et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib26);[Tan et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib60);[Gao et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib20)\)\. Reward Auditor addresses this gap with a meta\-reward mechanism that uses task\-execution outcomes to diagnose and iteratively revise the reward that trains the GUI Coder Agent\.
We construct the initial reward from task requirements and successful reference trajectories\. The judge compares the generated code and rendered ARIA snapshot with the user query, reference code, and reference ARIA\. Its rubric operationalizes four requirements: functional equivalence, feature completeness, implementation correctness, and task alignment, with scoresqife,qifc,qiic,qita∈\[0,5\]q\_\{i\}^\{\\mathrm\{fe\}\},q\_\{i\}^\{\\mathrm\{fc\}\},q\_\{i\}^\{\\mathrm\{ic\}\},q\_\{i\}^\{\\mathrm\{ta\}\}\\in\[0,5\]\. Letgig\_\{i\}indicate that the rollout passes the required code, rendering, reference\-evidence, and judge\-response checks\. The initial execution\-gated reward is
ji=0\.35qife\+0\.35qifc\+0\.15qiic\+0\.15qita5,ri\(0\)=giji\.j\_\{i\}=\\frac\{0\.35q\_\{i\}^\{\\mathrm\{fe\}\}\+0\.35q\_\{i\}^\{\\mathrm\{fc\}\}\+0\.15q\_\{i\}^\{\\mathrm\{ic\}\}\+0\.15q\_\{i\}^\{\\mathrm\{ta\}\}\}\{5\},\\qquad r\_\{i\}^\{\(0\)\}=g\_\{i\}j\_\{i\}\.This initial rubric provides an interpretable starting point without requiring exact code agreement with the reference\. Its specification appears in Appendix[D\.8](https://arxiv.org/html/2610.11123#A4.SS8)\.
This initial reward assigns the same zero score to failures in code extraction, structural validation, and rendering\. If every output in a prompt group fails these checks, the rewards provide no within\-group contrast for GRPO\. Conversely, a rendered interface can receive a high judge score even when its controls cannot submit the user’s intended values\. Auditing therefore needs to address both the judge’s criteria and the mapping from execution evidence to scalar rewards\.
Reward Auditor usesClaude Opus 5\([Anthropic, 2026a](https://arxiv.org/html/2610.11123#bib.bib3)\)to diagnose and revise rewards from task\-execution evidence on internal rollouts from the 15 RL databases \(Figure[4](https://arxiv.org/html/2610.11123#S5.F4)\)\. The user simulator operates the interface, and the fixed Tool Agent consumes the submission and executes a terminal action\.
Figure 4:Reward Auditor adds an offline reward\-revision loop to RL\. Task outcomes on selected internal rollouts guide revisions to judging criteria and scoring rules\.The objective labelziz\_\{i\}is positive only when execution succeeds and the resulting database state exactly matches the target\. For each audit round, Reward Auditor compares this label with the reward predictionz^i=𝕀\[ri≥0\.5\]\\hat\{z\}\_\{i\}=\\mathbb\{I\}\[r\_\{i\}\\geq 0\.5\]and examines the resulting cases, reward distributions, judge rationales, and complete trajectories to diagnose failure causes and recurring reward–outcome mismatches\.
The auditor then modifies the judging criteria and scoring rules and reviews the proposed changes\. It replays candidate rewards on stored rollouts and reviews the resulting scores before accepting a revision\. Replay holds generated code fixed, making score changes attributable to the reward revision rather than policy behavior\. Task\-specific diagnoses are consolidated into one shared rubric and scoring specification applied across tasks\. The revisions address interaction and submitted\-payload requirements, distinguish failure stages, and introduce targeted icon and accessibility checks\. We perform two rounds of meta\-reward\-guided revision, producing the final training rewardri\(2\)r\_\{i\}^\{\(2\)\}used for the reportedGenUI\-4B RL session\. In our experiments, Direct RL and both audited variants train independent policies from the same SFT initialization with the Tool Agent fixed\.
The final reward separates code\-extraction, structural, rendering, and empty\-interface failures before applying quality and accessibility scoring\. Appendix[D\.9](https://arxiv.org/html/2610.11123#A4.SS9)gives its complete specification and revision protocol\.
## 6Experiments
### 6\.1Setup
We benchmark four agent harnesses onUI\-TauBench:GenUI\-Harness,smolagents\([Roucher et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib52)\),mini\-swe\-agent\([SWE\-agent Team, 2025](https://arxiv.org/html/2610.11123#bib.bib59)\), andPi\([Earendil Inc\. and Contributors, 2026](https://arxiv.org/html/2610.11123#bib.bib18)\)\. All four are evaluated on the same tasks, databases, query and action tools, user\-simulator model, and final\-state evaluator, with the same backbone in each row\.GenUI\-Harness communicates through generated interfaces, whereas the three baselines retain their original text\-based interaction\. Model and inference details appear in Appendix[D\.3](https://arxiv.org/html/2610.11123#A4.SS3), and harness adaptations in Appendix[D\.5](https://arxiv.org/html/2610.11123#A4.SS5)\. We report Pass@3 and Avg@3 as defined in Section[3](https://arxiv.org/html/2610.11123#S3)\.
### 6\.2Main Results
#### Overall Performance\.
Table[2](https://arxiv.org/html/2610.11123#S6.T2)presents the end\-to\-end Lite comparison\. The three baselines use their native text interaction, providing the text\-only control for our generated\-UI system while sharing the task environment, tool APIs, user\-simulator model, and evaluator; no GUI Coder Agent or browser renderer is inserted into their paths\.GenUI\-Harness leads Pass@3 on seven of the nine backbones across open\-weight and closed\-source models\. Macro\-averaged across these backbones, it improves Pass@3 oversmolagentsby 4\.48 percentage points \(task\-paired bootstrap 95% CI: \[2\.37, 6\.59\]\); Table[10](https://arxiv.org/html/2610.11123#A4.T10)reports uncertainty against all three baselines\. Because the comparison preserves each harness’s native agent loop and communication mode, it measures complete system performance rather than isolating the interface channel alone; the reviewer study in Section[6\.3](https://arxiv.org/html/2610.11123#S6.SS3.SSS0.Px2)compares the two communication channels directly\. Full\-split results are presented in Appendix[D\.6](https://arxiv.org/html/2610.11123#A4.SS6)\.
#### Interaction Efficiency\.
Figure[6](https://arxiv.org/html/2610.11123#S6.F6)placesGenUI\-Harness alone on the favorable lower\-right frontier: it achieves higher Avg@3 with 36–43% fewer agent turns among successful episodes\. This suggests that the harness avoids redundant reasoning and recovery: the Tool Agent focuses on retrieval and validation, while the generated UI collects multiple grounded choices in one structured interaction\.
Table 2:State EM Pass@3 and Avg@3 \(%\) on the 300\-task Lite split across four harnesses \(three sessions; temperature 0\.7\)\.GenUI\-Harness uses generated UI; the other harnesses retain native text interaction\. Bold marks each row’s best result; ties are bolded jointly\.Figure 5:Avg@3 versus agent turns on Lite\.Figure 6:Avg@3 \(%\) across GUI Coder training stages\.
#### Role\-Specialized Training and Reward Auditing\.
We further train a compactQwen3\.5\-4BwithinGenUI\-Harness through role\-specific supervision and audited rewards\. SFT teaches the division of labor: the Tool Agent retrieves evidence and executes actions, while the GUI Coder Agent turns unresolved requirements into executable interfaces, increasing Avg@3 from 3\.22% to 27\.67%\. We then isolate the contribution of RL by fixing the SFT Tool Agent and GUI\-Coder initialization \(Figure[6](https://arxiv.org/html/2610.11123#S6.F6)\)\. Dynamic UX executes generated code and collects rollout rewards for GUI\-Coder GRPO at scale\. The initial judge\-based reward can favor plausible interfaces with broken controls or payload semantics and assign indistinguishable scores to different failure stages\. Reward Auditor compares these rewards with exact database\-state outcomes, diagnoses distribution\-level patterns and individual cases, and automatically revises the shared rubric and scoring rules through replay\. Replay holds sampled interfaces fixed, separating changes in reward behavior from changes in policy outputs\. The final reward distinguishes code\-extraction, structural, rendering, and empty\-interface failures before applying quality and accessibility scoring\. With the final audited reward,GenUI\-4B reaches 58\.00% Pass@3 and 36\.00% Avg@3, the best result in Figure[6](https://arxiv.org/html/2610.11123#S6.F6)and above the strongest Table[2](https://arxiv.org/html/2610.11123#S6.T2)baseline on both metrics\.
### 6\.3Analysis
#### Error Analysis\.
Across four models on the 300 Lite tasks, failures are dominated by unsuccessful UI interaction \(52\.0%\) and mismatched action arguments \(44\.5%\)\. Trace inspection identifies UI defects that prevent users from expressing required selections or submitting correct values; state mismatches require examining both submissions and resulting database changes\. For example, a single\-select control cannot express a required multi\-selection, and an immutable cabin\-class field submits the wrong value despite a fully specified user goal\. These findings highlight interface operability and argument fidelity as key bottlenecks\. Appendix[E](https://arxiv.org/html/2610.11123#A5)provides detailed counts, diagnostic procedures, and case studies\.
#### Communication\-Channel Analysis\.
We compare channels on 100 tasks whose interfaces execute and support valid user\-simulator interaction in all three sessions \(pass3\\mathrm\{pass\}^\{3\}\)\. For each task, three reviewers see the UI and three see a text rendering of the same task state; assignments are randomized, and each reviewer sees only one channel\. Generated UIs reduce average dialogue rounds from3\.4to1\.2\. UI latency is judged acceptable on85%of tasks by a majority of UI reviewers\. Appendix[F](https://arxiv.org/html/2610.11123#A6)details task selection, channel construction, latency measurement, and the evaluation protocol\.
#### Code\-Stage Intervention Across Models\.
To study the generalizability of GUI\-Coder, we pair it with five other reasoning models withinGenUI\-Harness\. For each model, we hold its original pre\-agent output fixed, replace only code generation with GUI\-Coder, collect a new UI, and rerun the same model as the post\-agent\. Table[3](https://arxiv.org/html/2610.11123#S6.T3)shows higher Lite Avg@3 for all five models\. Because the upstream exploration trace and post\-agent backbone are fixed, the intervention changes only interface construction\. The consistent improvements therefore indicate that GUI\-Coder adapts to distinct reasoning models rather than relying on a particular upstream agent\.
Table 3:Avg@3 \(%\) for code\-stage intervention on Lite, reusing the same pre\-agent output\. Green arrows show absolute gains\.
#### Evaluation on Unambiguous Tasks\.
In some scenarios, the user query states the intent clearly\. To analyzeGenUI\-Harness performance in this setting, we create non\-ambiguous Lite variants by revealing the user\-facing arguments masked in the original requests while keeping the tools, databases, user simulator, and evaluation protocol fixed\. Figure[7](https://arxiv.org/html/2610.11123#S6.F7)shows thatGenUI\-4B remains strongest in both settings\. We find that the UI provides guided task progression by organizing retrieved information for review and supporting confirmation of the intended action\.
Figure 7:Avg@3 \(%\) on Lite, with and without ambiguity\.
## 7Related Work
Tool\-using agents and state\-based benchmarks study planning, API execution, and task completion, but generally retain language\-based interaction\([Yao et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib71);[Yao et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib72)\)\. Clarification and mixed\-initiative systems recover missing intent through questions, structured options, or generated interfaces, but typically separate interface generation from database\-backed action execution\([Horvitz, 1999](https://arxiv.org/html/2610.11123#bib.bib22);[Rao & Daumé III, 2018](https://arxiv.org/html/2610.11123#bib.bib51);[Aliannejadi et al\., 2019](https://arxiv.org/html/2610.11123#bib.bib1);[Vaithilingam et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib64);[Chen et al\., 2026](https://arxiv.org/html/2610.11123#bib.bib12)\)\. Execution\-based UI\-code methods improve functional correctness through rendering or tests while treating code generation as the endpoint rather than part of an agent loop\([Wu et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib66);[Chen et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib10)\)\. We instead connect retrieved records, executable interaction, and terminal state evaluation within one task\. Appendix[B](https://arxiv.org/html/2610.11123#A2)provides a detailed related\-work discussion\.
## 8Conclusion
GenUI\-Harness separates database grounding and action execution from task\-conditioned interface generation\. Dynamic UX scales GUI rollouts, while Reward Auditor revises rewards using task outcomes\. OnUI\-TauBench Lite,GenUI\-4B achieves 58\.00% Pass@3 and 36\.00% Avg@3, outperforming all evaluated baselines; GUI\-Coder also improves five models\. Among successful episodes,GenUI\-Harness uses 36–43% fewer agent turns, and generated UIs reduce reviewer dialogue from 3\.4 to 1\.2 rounds\. Together, these results support executable, data\-grounded interfaces as an effective interaction layer for database\-backed agents\.
### AI use statement
Generative models are used as experimental components for synthetic benchmark construction, trajectory generation, user simulation, reward judging, and automated reward revision, as described in the paper\. Generative AI tools also provided feedback on experimental protocols and result interpretation and assisted with preparing and checking the code and data preview\. Separately, they were used to polish prose and formatting\. The authors reviewed the AI\-assisted work and take responsibility for the final text, claims, results, and artifacts\.
### Reproducibility statement
Appendix[C](https://arxiv.org/html/2610.11123#A3)documents the benchmark sources, normalization, tool validation, and task synthesis\. Appendix[D](https://arxiv.org/html/2610.11123#A4)provides training and inference settings, the Dynamic UX benchmark, and reward specifications\. Appendices[A](https://arxiv.org/html/2610.11123#A1),[F](https://arxiv.org/html/2610.11123#A6), and[H](https://arxiv.org/html/2610.11123#A8)describe the agent workflow, reviewer evaluation protocol, and prompts\. The accompanying code repository contains inference and Dynamic UX components with preview data\.
## References
- Aliannejadi et al\. \(2019\)Mohammad Aliannejadi, Hamed Zamani, Fabio Crestani, and W\. Bruce Croft\.Asking clarifying questions in open\-domain information\-seeking conversations\.In*Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval*, pp\. 475–484\. Association for Computing Machinery, 2019\.doi:10\.1145/3331184\.3331265\.URL[https://doi\.org/10\.1145/3331184\.3331265](https://doi.org/10.1145/3331184.3331265)\.
- Aliannejadi et al\. \(2021\)Mohammad Aliannejadi, Julia Kiseleva, Aleksandr Chuklin, Jeffrey Dalton, and Mikhail Burtsev\.Building and evaluating open\-domain dialogue corpora with clarifying questions\.In*Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing*, pp\. 4473–4484\. Association for Computational Linguistics, 2021\.doi:10\.18653/v1/2021\.emnlp\-main\.367\.URL[https://aclanthology\.org/2021\.emnlp\-main\.367/](https://aclanthology.org/2021.emnlp-main.367/)\.
- Anthropic \(2026a\)Anthropic\.Introducing Claude Opus 5, July 2026a\.URL[https://www\.anthropic\.com/news/claude\-opus\-5](https://www.anthropic.com/news/claude-opus-5)\.
- Anthropic \(2026b\)Anthropic\.Claude Sonnet 4\.6 system card, February 2026b\.URL[https://www\.anthropic\.com/claude\-sonnet\-4\-6\-system\-card](https://www.anthropic.com/claude-sonnet-4-6-system-card)\.
- António et al\. \(2019\)Nuno António, Ana de Almeida, and Luís Nunes\.Hotel booking demand datasets\.*Data in Brief*, 22:41–49, 2019\.doi:10\.1016/j\.dib\.2018\.11\.126\.URL[https://doi\.org/10\.1016/j\.dib\.2018\.11\.126](https://doi.org/10.1016/j.dib.2018.11.126)\.
- Azamuke \(2024\)Denish Azamuke\.Synthetic mobile money transaction dataset\.Mendeley Data, Version 2, 2024\.URL[https://data\.mendeley\.com/datasets/zhj366m53p/2](https://data.mendeley.com/datasets/zhj366m53p/2)\.
- Bai et al\. \(2022\)Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, et al\.Constitutional ai: Harmlessness from ai feedback\.*arXiv preprint arXiv:2212\.08073*, 2022\.
- Beltramelli \(2018\)Tony Beltramelli\.pix2code: Generating code from a graphical user interface screenshot\.In*Proceedings of the ACM SIGCHI Symposium on Engineering Interactive Computing Systems*, pp\. 3:1–3:6\. Association for Computing Machinery, 2018\.doi:10\.1145/3220134\.3220135\.URL[https://doi\.org/10\.1145/3220134\.3220135](https://doi.org/10.1145/3220134.3220135)\.
- Cao et al\. \(2025\)Yining Cao, Peiling Jiang, and Haijun Xia\.Generative and malleable user interfaces with generative and evolving task\-driven data model\.In*Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems*\. Association for Computing Machinery, 2025\.doi:10\.1145/3706598\.3713285\.URL[https://doi\.org/10\.1145/3706598\.3713285](https://doi.org/10.1145/3706598.3713285)\.
- Chen et al\. \(2023\)Bei Chen, Fengji Zhang, Anh Nguyen, Daoguang Zan, Zeqi Lin, Jian\-Guang Lou, and Weizhu Chen\.CodeT: Code generation with generated tests\.In*International Conference on Learning Representations*, 2023\.URL[https://openreview\.net/forum?id=ktrw68Cmu9c](https://openreview.net/forum?id=ktrw68Cmu9c)\.
- Chen \(2012\)Daqing Chen\.Online retail II\.UCI Machine Learning Repository, 2012\.URL[https://archive\.ics\.uci\.edu/dataset/502/online\+retail\+ii](https://archive.ics.uci.edu/dataset/502/online+retail+ii)\.
- Chen et al\. \(2026\)Jiaqi Chen, Yanzhe Zhang, Yutong Zhang, Yijia Shao, and Diyi Yang\.Generative interfaces for language models\.In*Findings of the Association for Computational Linguistics: ACL 2026*, pp\. 1499–1519\. Association for Computational Linguistics, 2026\.doi:10\.18653/v1/2026\.findings\-acl\.74\.URL[https://aclanthology\.org/2026\.findings\-acl\.74/](https://aclanthology.org/2026.findings-acl.74/)\.
- DeepSeek\-AI \(2026\)DeepSeek\-AI\.DeepSeek\-V4\-Flash\-0731 model card\.Hugging Face, July 2026\.URL[https://huggingface\.co/deepseek\-ai/DeepSeek\-V4\-Flash\-0731](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731)\.Official model card; accessed 2026\-08\-30\.
- Deka et al\. \(2017\)Biplab Deka, Zifeng Huang, Chad Franzen, Joshua Hibschman, Daniel Afergan, Yang Li, Jeffrey Nichols, and Ranjitha Kumar\.Rico: A mobile app dataset for building data\-driven design applications\.In*Proceedings of the 30th Annual ACM Symposium on User Interface Software and Technology*, pp\. 845–854\. Association for Computing Machinery, 2017\.doi:10\.1145/3126594\.3126651\.URL[https://doi\.org/10\.1145/3126594\.3126651](https://doi.org/10.1145/3126594.3126651)\.
- Deng et al\. \(2023\)Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Samuel Stevens, Boshi Wang, Huan Sun, and Yu Su\.Mind2web: Towards a generalist agent for the web\.In*Thirty\-seventh Conference on Neural Information Processing Systems*, 2023\.URL[https://openreview\.net/forum?id=kiYqbO3wqw](https://openreview.net/forum?id=kiYqbO3wqw)\.
- Deng et al\. \(2024\)Yang Deng, Xuan Zhang, Wenxuan Zhang, Yifei Yuan, See\-Kiong Ng, and Tat\-Seng Chua\.On the multi\-turn instruction following for conversational web agents\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics*, pp\. 8795–8812\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.acl\-long\.477\.URL[https://aclanthology\.org/2024\.acl\-long\.477/](https://aclanthology.org/2024.acl-long.477/)\.
- Drouin et al\. \(2024\)Alexandre Drouin, Maxime Gasse, Massimo Caccia, Issam H\. Laradji, Manuel Del Verme, Tom Marty, David Vazquez, Nicolas Chapados, and Alexandre Lacoste\.WorkArena: How capable are web agents at solving common knowledge work tasks?In*Proceedings of the 41st International Conference on Machine Learning*, volume 235 of*Proceedings of Machine Learning Research*, pp\. 11642–11662\. PMLR, 2024\.URL[https://proceedings\.mlr\.press/v235/drouin24a\.html](https://proceedings.mlr.press/v235/drouin24a.html)\.
- Earendil Inc\. and Contributors \(2026\)Earendil Inc\. and Contributors\.Pi: A minimal agent harness\.[https://pi\.dev/](https://pi.dev/), 2026\.
- Gajos et al\. \(2010\)Krzysztof Z\. Gajos, Daniel S\. Weld, and Jacob O\. Wobbrock\.Automatically generating personalized user interfaces with Supple\.*Artificial Intelligence*, 174\(12–13\):910–950, 2010\.doi:10\.1016/j\.artint\.2010\.05\.005\.URL[https://doi\.org/10\.1016/j\.artint\.2010\.05\.005](https://doi.org/10.1016/j.artint.2010.05.005)\.
- Gao et al\. \(2023\)Leo Gao, John Schulman, and Jacob Hilton\.Scaling laws for reward model overoptimization\.In*Proceedings of the 40th International Conference on Machine Learning*, volume 202 of*Proceedings of Machine Learning Research*, pp\. 10835–10866\. PMLR, 2023\.URL[https://proceedings\.mlr\.press/v202/gao23h\.html](https://proceedings.mlr.press/v202/gao23h.html)\.
- Harper & Konstan \(2015\)F\. Maxwell Harper and Joseph A\. Konstan\.The MovieLens datasets: History and context\.*ACM Transactions on Interactive Intelligent Systems*, 5\(4\):19:1–19:19, 2015\.doi:10\.1145/2827872\.URL[https://doi\.org/10\.1145/2827872](https://doi.org/10.1145/2827872)\.
- Horvitz \(1999\)Eric Horvitz\.Principles of mixed\-initiative user interfaces\.In*Proceedings of the SIGCHI Conference on Human Factors in Computing Systems*, pp\. 159–166\. Association for Computing Machinery, 1999\.doi:10\.1145/302979\.303030\.URL[https://doi\.org/10\.1145/302979\.303030](https://doi.org/10.1145/302979.303030)\.
- Hutchins et al\. \(1985\)Edwin L\. Hutchins, James D\. Hollan, and Donald A\. Norman\.Direct manipulation interfaces\.*Human\-Computer Interaction*, 1\(4\):311–338, 1985\.doi:10\.1207/s15327051hci0104\_2\.URL[https://www\.tandfonline\.com/doi/abs/10\.1207/s15327051hci0104\_2](https://www.tandfonline.com/doi/abs/10.1207/s15327051hci0104_2)\.
- Kim et al\. \(2024\)Seungone Kim, Juyoung Suk, Shayne Longpre, Bill Yuchen Lin, Jamin Shin, Sean Welleck, Graham Neubig, Moontae Lee, Kyungjae Lee, and Minjoon Seo\.Prometheus 2: An open source language model specialized in evaluating other language models\.In*Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing*, pp\. 4334–4353\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.emnlp\-main\.248\.URL[https://aclanthology\.org/2024\.emnlp\-main\.248/](https://aclanthology.org/2024.emnlp-main.248/)\.
- Koh et al\. \(2024\)Jing Yu Koh, Robert Lo, Lawrence Jang, Vikram Duvvur, Ming Lim, Po\-Yu Huang, Graham Neubig, Shuyan Zhou, Russ Salakhutdinov, and Daniel Fried\.VisualWebArena: Evaluating multimodal agents on realistic visual web tasks\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics*, pp\. 881–905\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.acl\-long\.50\.URL[https://aclanthology\.org/2024\.acl\-long\.50/](https://aclanthology.org/2024.acl-long.50/)\.
- Lambert et al\. \(2025\)Nathan Lambert, Valentina Pyatkin, Jacob Morrison, LJ Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, Noah A\. Smith, and Hannaneh Hajishirzi\.RewardBench: Evaluating reward models for language modeling\.In*Findings of the Association for Computational Linguistics: NAACL 2025*, pp\. 1755–1797\. Association for Computational Linguistics, 2025\.doi:10\.18653/v1/2025\.findings\-naacl\.96\.URL[https://aclanthology\.org/2025\.findings\-naacl\.96/](https://aclanthology.org/2025.findings-naacl.96/)\.
- Larkin & Simon \(1987\)Jill H\. Larkin and Herbert A\. Simon\.Why a diagram is \(sometimes\) worth ten thousand words\.*Cognitive Science*, 11\(1\):65–100, 1987\.doi:10\.1111/j\.1551\-6708\.1987\.tb00863\.x\.URL[https://doi\.org/10\.1111/j\.1551\-6708\.1987\.tb00863\.x](https://doi.org/10.1111/j.1551-6708.1987.tb00863.x)\.
- Laurencon et al\. \(2024\)Hugo Laurencon, Leo Tronchon, and Victor Sanh\.Unlocking the conversion of web screenshots into HTML code with the WebSight dataset\.*arXiv preprint arXiv:2403\.09029*, 2024\.doi:10\.48550/arXiv\.2403\.09029\.URL[https://arxiv\.org/abs/2403\.09029](https://arxiv.org/abs/2403.09029)\.
- Le et al\. \(2022\)Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, and Steven C\. H\. Hoi\.CodeRL: Mastering code generation through pretrained models and deep reinforcement learning\.In*Advances in Neural Information Processing Systems*, volume 35, pp\. 21314–21328, 2022\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2022/hash/8636419dea1aa9fbd25fc4248e702da4\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2022/hash/8636419dea1aa9fbd25fc4248e702da4-Abstract-Conference.html)\.
- Lee et al\. \(2024\)Harrison Lee, Samrat Phatale, Hassan Mansoor, Thomas Mesnard, Johan Ferret, Kellie Ren Lu, Colton Bishop, Ethan Hall, Victor Carbune, Abhinav Rastogi, and Sushant Prakash\.RLAIF vs\. RLHF: Scaling reinforcement learning from human feedback with AI feedback\.In*Proceedings of the 41st International Conference on Machine Learning*, volume 235 of*Proceedings of Machine Learning Research*, pp\. 26874–26901\. PMLR, 2024\.URL[https://proceedings\.mlr\.press/v235/lee24t\.html](https://proceedings.mlr.press/v235/lee24t.html)\.
- Li et al\. \(2023\)Minghao Li, Yingxiu Zhao, Bowen Yu, Feifan Song, Hangyu Li, Haiyang Yu, Zhoujun Li, Fei Huang, and Yongbin Li\.API\-Bank: A comprehensive benchmark for tool\-augmented LLMs\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing*, pp\. 3102–3116\. Association for Computational Linguistics, 2023\.doi:10\.18653/v1/2023\.emnlp\-main\.187\.URL[https://aclanthology\.org/2023\.emnlp\-main\.187/](https://aclanthology.org/2023.emnlp-main.187/)\.
- Liu et al\. \(2024\)Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, Minlie Huang, Yuxiao Dong, and Jie Tang\.AgentBench: Evaluating LLMs as agents\.In*International Conference on Learning Representations*, 2024\.URL[https://openreview\.net/forum?id=zAdUB0aCTQ](https://openreview.net/forum?id=zAdUB0aCTQ)\.
- Lu et al\. \(2025\)Jiarui Lu, Thomas Holleis, Yizhe Zhang, Bernhard Aumayer, Feng Nan, Haoping Bai, Shuang Ma, Shen Ma, Mengyu Li, Guoli Yin, Zirui Wang, and Ruoming Pang\.ToolSandbox: A stateful, conversational, interactive evaluation benchmark for LLM tool use capabilities\.In*Findings of the Association for Computational Linguistics: NAACL 2025*, pp\. 1160–1183\. Association for Computational Linguistics, 2025\.doi:10\.18653/v1/2025\.findings\-naacl\.65\.URL[https://aclanthology\.org/2025\.findings\-naacl\.65/](https://aclanthology.org/2025.findings-naacl.65/)\.
- Lu et al\. \(2024\)Xing Han Lu, Zdenek Kasner, and Siva Reddy\.WebLINX: Real\-world website navigation with multi\-turn dialogue\.In*Proceedings of the 41st International Conference on Machine Learning*, volume 235 of*Proceedings of Machine Learning Research*, pp\. 33007–33056\. PMLR, 2024\.URL[https://proceedings\.mlr\.press/v235/lu24e\.html](https://proceedings.mlr.press/v235/lu24e.html)\.
- Ma et al\. \(2025\)Jiaju Ma, Lei Shi, Kenneth Aleksander Robertsen, and Peggy Chi\.Ambigchat: Interactive hierarchical clarification for ambiguous open\-domain question answering\.In*Proceedings of the 38th Annual ACM Symposium on User Interface Software and Technology*, pp\. 1–18, 2025\.
- Medellín & Serna \(2011\)Rafael Medellín and Juan Serna\.Restaurant & consumer data\.UCI Machine Learning Repository, 2011\.URL[https://archive\.ics\.uci\.edu/dataset/232/restaurant\+consumer\+data](https://archive.ics.uci.edu/dataset/232/restaurant+consumer+data)\.
- Mialon et al\. \(2024\)Grégoire Mialon, Clémentine Fourrier, Craig Swift, Thomas Wolf, Yann LeCun, and Thomas Scialom\.GAIA: a benchmark for general ai assistants\.In*The Twelfth International Conference on Learning Representations*, 2024\.URL[https://openreview\.net/forum?id=fibxvahvs3](https://openreview.net/forum?id=fibxvahvs3)\.
- Min et al\. \(2020\)Sewon Min, Julian Michael, Hannaneh Hajishirzi, and Luke Zettlemoyer\.AmbigQA: Answering ambiguous open\-domain questions\.In*Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing*, pp\. 5783–5797\. Association for Computational Linguistics, 2020\.doi:10\.18653/v1/2020\.emnlp\-main\.466\.URL[https://aclanthology\.org/2020\.emnlp\-main\.466/](https://aclanthology.org/2020.emnlp-main.466/)\.
- Nandy et al\. \(2024\)Palash Nandy, Sigurdur Orn Adalgeirsson, Anoop K Sinha, Tanya Kraljic, Mike Cleron, Lei Shi, Angad Singh, Ashish Chaudhary, Ashwin Ganti, Christopher A Melancon, et al\.Bespoke: Using llm agents to generate just\-in\-time interfaces by reasoning about user intent\.In*Companion Proceedings of the 26th International Conference on Multimodal Interaction*, pp\. 78–81, 2024\.
- Olist \(2018\)Olist\.Brazilian e\-commerce public dataset by olist\.Kaggle, 2018\.URL[https://www\.kaggle\.com/datasets/olistbr/brazilian\-ecommerce](https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce)\.CC BY\-NC\-SA 4\.0\.
- Oliveira et al\. \(2017\)Beatriz Oliveira, Maria Antónia Carravilla, and José Fernando Oliveira\.Capacity\-pricing model: Car rental instances\.Mendeley Data, Version 1, 2017\.URL[https://data\.mendeley\.com/datasets/g49smv7nh8/1](https://data.mendeley.com/datasets/g49smv7nh8/1)\.
- OpenAI \(2025\)OpenAI\.gpt\-oss\-120b and gpt\-oss\-20b model card, August 2025\.URL[https://openai\.com/index/gpt\-oss\-model\-card/](https://openai.com/index/gpt-oss-model-card/)\.
- OpenAI \(2026\)OpenAI\.Introducing GPT\-5\.4, March 2026\.URL[https://openai\.com/index/introducing\-gpt\-5\-4/](https://openai.com/index/introducing-gpt-5-4/)\.
- OpenFlights \(n\.d\.\)OpenFlights\.Airport, airline and route data\.OpenFlights Data Repository, n\.d\.URL[https://openflights\.org/data\.php](https://openflights.org/data.php)\.Accessed 2026\-08\-30; distributed under the Open Database License, with component\-specific source terms\.
- Peng et al\. \(2026\)Yue Peng, Lanke Xia, Zihan Wang, Jiahao Ye, Ke Ning, and Hongyi Wen\.EvoGenUI\-Bench: Evaluating LLMs as multi\-turn generative UI assistants, 2026\.URL[https://arxiv\.org/abs/2608\.29387](https://arxiv.org/abs/2608.29387)\.Accepted to EMNLP 2026\.
- Qin et al\. \(2024\)Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, Sihan Zhao, Lauren Hong, Runchu Tian, Ruobing Xie, Jie Zhou, Mark Gerstein, Dahai Li, Zhiyuan Liu, and Maosong Sun\.ToolLLM: Facilitating large language models to master 16000\+ real\-world APIs\.In*International Conference on Learning Representations*, 2024\.URL[https://openreview\.net/forum?id=dHng2O0Jjr](https://openreview.net/forum?id=dHng2O0Jjr)\.
- Qwen Team \(2026a\)Qwen Team\.Qwen3\.5\-397B\-A17B model card\.Hugging Face, 2026a\.URL[https://huggingface\.co/Qwen/Qwen3\.5\-397B\-A17B](https://huggingface.co/Qwen/Qwen3.5-397B-A17B)\.Official model card; accessed 2026\-09\-24\.
- Qwen Team \(2026b\)Qwen Team\.Qwen3\.5\-4B model card\.Hugging Face, 2026b\.URL[https://huggingface\.co/Qwen/Qwen3\.5\-4B](https://huggingface.co/Qwen/Qwen3.5-4B)\.Official model card; accessed 2026\-08\-30\.
- Qwen Team \(2026c\)Qwen Team\.Qwen3\.6\-27B model card\.Hugging Face, 2026c\.URL[https://huggingface\.co/Qwen/Qwen3\.6\-27B](https://huggingface.co/Qwen/Qwen3.6-27B)\.Official model card; accessed 2026\-09\-10\.
- Qwen Team \(2026d\)Qwen Team\.Qwen3\.6\-35B\-A3B: Agentic coding power, now open to all, April 2026d\.URL[https://qwen\.ai/blog?id=qwen3\.6\-35b\-a3b](https://qwen.ai/blog?id=qwen3.6-35b-a3b)\.Official release article; accessed 2026\-08\-30\.
- Rao & Daumé III \(2018\)Sudha Rao and Hal Daumé III\.Learning to ask good questions: Ranking clarification questions using neural expected value of perfect information\.In*Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics*, pp\. 2737–2746\. Association for Computational Linguistics, 2018\.doi:10\.18653/v1/P18\-1255\.URL[https://aclanthology\.org/P18\-1255/](https://aclanthology.org/P18-1255/)\.
- Roucher et al\. \(2025\)Aymeric Roucher, Albert Villanova del Moral, Thomas Wolf, Leandro von Werra, and Erik Kaunismäki\.smolagents: A smol library to build great agentic systems\.[https://github\.com/huggingface/smolagents](https://github.com/huggingface/smolagents), 2025\.
- Salazar \(2023\)Luiz Henrique Salazar\.Medical appointments no\-show\.Mendeley Data, Version 1, 2023\.URL[https://data\.mendeley\.com/datasets/wm6w2fvkfj/1](https://data.mendeley.com/datasets/wm6w2fvkfj/1)\.
- Schick et al\. \(2023\)Timo Schick, Jane Dwivedi\-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom\.Toolformer: Language models can teach themselves to use tools\.In*Thirty\-seventh Conference on Neural Information Processing Systems*, 2023\.doi:10\.52202/075280\-2997\.URL[https://proceedings\.neurips\.cc/paper/2023/hash/d842425e4bf79ba039352da0f658a906\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper/2023/hash/d842425e4bf79ba039352da0f658a906-Abstract-Conference.html)\.
- Shao et al\. \(2024\)Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y\. K\. Li, Y\. Wu, and Daya Guo\.DeepSeekMath: Pushing the limits of mathematical reasoning in open language models\.*arXiv preprint arXiv:2402\.03300*, 2024\.URL[https://arxiv\.org/abs/2402\.03300](https://arxiv.org/abs/2402.03300)\.
- Shneiderman \(1983\)Ben Shneiderman\.Direct manipulation: A step beyond programming languages\.*Computer*, 16\(8\):57–69, 1983\.doi:10\.1109/MC\.1983\.1654471\.URL[https://doi\.org/10\.1109/MC\.1983\.1654471](https://doi.org/10.1109/MC.1983.1654471)\.
- Si et al\. \(2025\)Chenglei Si, Yanzhe Zhang, Ryan Li, Zhengyuan Yang, Ruibo Liu, and Diyi Yang\.Design2code: Benchmarking multimodal code generation for automated front\-end engineering\.In*Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics*, pp\. 3956–3974\. Association for Computational Linguistics, 2025\.doi:10\.18653/v1/2025\.naacl\-long\.199\.URL[https://aclanthology\.org/2025\.naacl\-long\.199/](https://aclanthology.org/2025.naacl-long.199/)\.
- Skalse et al\. \(2022\)Joar Skalse, Nikolaus H\. R\. Howe, Dmitrii Krasheninnikov, and David Krueger\.Defining and characterizing reward gaming\.In*Advances in Neural Information Processing Systems*, volume 35, 2022\.doi:10\.52202/068431\-0687\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2022/hash/3d719fee332caa23d5038b8a90e81796\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2022/hash/3d719fee332caa23d5038b8a90e81796-Abstract-Conference.html)\.
- SWE\-agent Team \(2025\)SWE\-agent Team\.mini\-swe\-agent: The minimal ai software engineering agent\.[https://github\.com/SWE\-agent/mini\-swe\-agent](https://github.com/SWE-agent/mini-swe-agent), 2025\.
- Tan et al\. \(2025\)Sijun Tan, Siyuan Zhuang, Kyle Montgomery, William Y\. Tang, Alejandro Cuadron, Chenguang Wang, Raluca Ada Popa, and Ion Stoica\.JudgeBench: A benchmark for evaluating LLM\-based judges\.In*International Conference on Learning Representations*, 2025\.URL[https://openreview\.net/forum?id=G0dksFayVq](https://openreview.net/forum?id=G0dksFayVq)\.
- Ticketmaster \(n\.d\.\)Ticketmaster\.Discovery API v2\.Ticketmaster Developer Portal, n\.d\.URL[https://developer\.ticketmaster\.com/products\-and\-docs/apis/discovery\-api/v2/](https://developer.ticketmaster.com/products-and-docs/apis/discovery-api/v2/)\.Accessed 2026\-08\-30; subject to Ticketmaster Developer Terms of Use\.
- Trivedi et al\. \(2024\)Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, and Niranjan Balasubramanian\.AppWorld: A controllable world of apps and people for benchmarking interactive coding agents\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics*, pp\. 16022–16076\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.acl\-long\.850\.URL[https://aclanthology\.org/2024\.acl\-long\.850/](https://aclanthology.org/2024.acl-long.850/)\.
- Vaithilingam & Guo \(2019\)Priyan Vaithilingam and Philip J\. Guo\.Bespoke: Interactively synthesizing custom GUIs from command\-line applications by demonstration\.In*Proceedings of the 32nd Annual ACM Symposium on User Interface Software and Technology*, pp\. 563–576\. Association for Computing Machinery, 2019\.doi:10\.1145/3332165\.3347944\.URL[https://doi\.org/10\.1145/3332165\.3347944](https://doi.org/10.1145/3332165.3347944)\.
- Vaithilingam et al\. \(2024\)Priyan Vaithilingam, Elena L\. Glassman, Jeevana Priya Inala, and Chenglong Wang\.DynaVis: Dynamically synthesized ui widgets for visualization editing\.In*Proceedings of the CHI Conference on Human Factors in Computing Systems*\. Association for Computing Machinery, 2024\.doi:10\.1145/3613904\.3642639\.URL[https://doi\.org/10\.1145/3613904\.3642639](https://doi.org/10.1145/3613904.3642639)\.
- W3C \(2023\)W3C\.Accessible rich internet applications \(WAI\-ARIA\) 1\.2\.W3C Recommendation, June 2023\.URL[https://www\.w3\.org/TR/wai\-aria\-1\.2/](https://www.w3.org/TR/wai-aria-1.2/)\.Section 2, Important Terms\.
- Wu et al\. \(2024\)Jason Wu, Eldon Schoop, Alan Leung, Titus Barik, Jeffrey Bigham, and Jeffrey Nichols\.UICoder: Finetuning large language models to generate user interface code through automated feedback\.In*Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics*, pp\. 7511–7525\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.naacl\-long\.417\.URL[https://aclanthology\.org/2024\.naacl\-long\.417/](https://aclanthology.org/2024.naacl-long.417/)\.
- Xie et al\. \(2024\)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*, volume 37, 2024\.doi:10\.52202/079017\-1650\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2024/hash/5d413e48f84dc61244b6be550f1cd8f5\-Abstract\-Datasets\_and\_Benchmarks\_Track\.html](https://proceedings.neurips.cc/paper_files/paper/2024/hash/5d413e48f84dc61244b6be550f1cd8f5-Abstract-Datasets_and_Benchmarks_Track.html)\.
- Xu et al\. \(2026\)Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, et al\.Deepseek\-v4: Towards highly efficient million\-token context intelligence\.*arXiv preprint arXiv:2606\.19348*, 2026\.
- Xu et al\. \(2019\)Jingjing Xu, Yuechen Wang, Duyu Tang, Nan Duan, Pengcheng Yang, Qi Zeng, Ming Zhou, and Xu Sun\.Asking clarification questions in knowledge\-based question answering\.In*Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing*, pp\. 1618–1629\. Association for Computational Linguistics, 2019\.doi:10\.18653/v1/D19\-1172\.URL[https://aclanthology\.org/D19\-1172/](https://aclanthology.org/D19-1172/)\.
- Yao et al\. \(2022\)Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan\.Webshop: Towards scalable real\-world web interaction with grounded language agents\.In*Thirty\-sixth Conference on Neural Information Processing Systems*, 2022\.doi:10\.52202/068431\-1508\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2022/hash/82ad13ec01f9fe44c01cb91814fd7b8c\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2022/hash/82ad13ec01f9fe44c01cb91814fd7b8c-Abstract-Conference.html)\.
- Yao et al\. \(2023\)Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, and Yuan Cao\.React: Synergizing reasoning and acting in language models\.In*The Eleventh International Conference on Learning Representations*, 2023\.URL[https://openreview\.net/forum?id=WE\_vluYUL\-X](https://openreview.net/forum?id=WE_vluYUL-X)\.
- Yao et al\. \(2025\)Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik Narasimhan\.τ\\tau\-bench: A benchmark for tool\-agent\-user interaction in real\-world domains\.In*The Thirteenth International Conference on Learning Representations*, 2025\.URL[https://openreview\.net/forum?id=roNSXZpUDN](https://openreview.net/forum?id=roNSXZpUDN)\.
- Yeh et al\. \(2009\)Tom Yeh, Tsung\-Hsiang Chang, and Robert C\. Miller\.Sikuli: Using GUI screenshots for search and automation\.In*Proceedings of the 22nd Annual ACM Symposium on User Interface Software and Technology*, pp\. 183–192\. Association for Computing Machinery, 2009\.doi:10\.1145/1622176\.1622213\.URL[https://doi\.org/10\.1145/1622176\.1622213](https://doi.org/10.1145/1622176.1622213)\.
- Yuan et al\. \(2024\)Weizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Xian Li, Sainbayar Sukhbaatar, Jing Xu, and Jason Weston\.Self\-rewarding language models\.In*Proceedings of the 41st International Conference on Machine Learning*, volume 235 of*Proceedings of Machine Learning Research*, pp\. 57905–57923\. PMLR, 2024\.URL[https://proceedings\.mlr\.press/v235/yuan24d\.html](https://proceedings.mlr.press/v235/yuan24d.html)\.
- Zamani et al\. \(2020\)Hamed Zamani, Gord Lueck, Everest Chen, Rodolfo Quispe, Flint Luu, and Nick Craswell\.MIMICS: A large\-scale data collection for search clarification\.In*Proceedings of the 29th ACM International Conference on Information and Knowledge Management*, pp\. 3189–3196\. Association for Computing Machinery, 2020\.doi:10\.1145/3340531\.3412772\.URL[https://doi\.org/10\.1145/3340531\.3412772](https://doi.org/10.1145/3340531.3412772)\.
- Zhang & Choi \(2025\)Michael JQ Zhang and Eunsol Choi\.Clarify when necessary: Resolving ambiguity through interaction with LMs\.In*Findings of the Association for Computational Linguistics: NAACL 2025*, pp\. 5541–5558\. Association for Computational Linguistics, 2025\.doi:10\.18653/v1/2025\.findings\-naacl\.306\.URL[https://aclanthology\.org/2025\.findings\-naacl\.306/](https://aclanthology.org/2025.findings-naacl.306/)\.
- Zhang et al\. \(2024\)Tong Zhang, Peixin Qin, Yang Deng, Chen Huang, Wenqiang Lei, Junhong Liu, Dingnan Jin, Hongru Liang, and Tat\-Seng Chua\.CLAMBER: A benchmark of identifying and clarifying ambiguous information needs in large language models\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics*, pp\. 10746–10766\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.acl\-long\.578\.URL[https://aclanthology\.org/2024\.acl\-long\.578/](https://aclanthology.org/2024.acl-long.578/)\.
- Zheng et al\. \(2023\)Lianmin Zheng, Wei\-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P\. Xing, Hao Zhang, Joseph E\. Gonzalez, and Ion Stoica\.Judging LLM\-as\-a\-judge with MT\-bench and chatbot arena\.In*Thirty\-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track*, 2023\.doi:10\.52202/075280\-2020\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2023/hash/91f18a1287b398d378ef22505bf41832\-Abstract\-Datasets\_and\_Benchmarks\.html](https://proceedings.neurips.cc/paper_files/paper/2023/hash/91f18a1287b398d378ef22505bf41832-Abstract-Datasets_and_Benchmarks.html)\.
- Zhou et al\. \(2024\)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*The Twelfth International Conference on Learning Representations*, 2024\.URL[https://openreview\.net/forum?id=rmiwIL98uQ](https://openreview.net/forum?id=rmiwIL98uQ)\.
## Appendix ATask Formulation and Agent Workflow
### A\.1Formal Task Definition and Evaluation
A task consists of a user query, an initial domain database, query and action tools with domain rules, and a specific user goal\. The query may express only part of that goal\. The agent observes the query, tool schemas, retrieved records, and subsequent user input\. Read\-only query calls gather evidence; the generated interface obtains user input; one terminal action updates the database\.
Each task specifies an initial database statesdb0s\_\{\\mathrm\{db\}\}^\{0\}and a reference actiona⋆=\(name⋆,𝐯⋆\)a^\{\\star\}=\(\\texttt\{name\}^\{\\star\},\\mathbf\{v\}^\{\\star\}\), where𝐯⋆=\{\(kj,vj\)\}j=1n\\mathbf\{v\}^\{\\star\}=\\\{\(k\_\{j\},v\_\{j\}\)\\\}\_\{j=1\}^\{n\}contains the grounded value of every required argument\. Executinga⋆a^\{\\star\}fromsdb0s\_\{\\mathrm\{db\}\}^\{0\}produces the target database statesdb⋆s\_\{\\mathrm\{db\}\}^\{\\star\}used for evaluation\. For taskiiand sessionj∈\{1,2,3\}j\\in\\\{1,2,3\\\}, the evaluator resets an isolated database copy tosdb,i0s\_\{\\mathrm\{db\},i\}^\{0\}, executes the agent’s terminal action, and observes the resulting states^db,i,j\\hat\{s\}\_\{\\mathrm\{db\},i,j\}\. Letei,j=1e\_\{i,j\}=1indicate successful execution\. The state\-EM outcome is
zi,j=𝕀\[ei,j=1∧s^db,i,j=sdb,i⋆\]\.z\_\{i,j\}=\\mathbb\{I\}\\\!\\left\[e\_\{i,j\}=1\\ \\land\\ \\hat\{s\}\_\{\\mathrm\{db\},i,j\}=s\_\{\\mathrm\{db\},i\}^\{\\star\}\\right\]\.OverNNtasks, Pass@3 is100N∑imaxjzi,j\\frac\{100\}\{N\}\\sum\_\{i\}\\max\_\{j\}z\_\{i,j\}and Avg@3 is1003N∑i∑jzi,j\\frac\{100\}\{3N\}\\sum\_\{i\}\\sum\_\{j\}z\_\{i,j\}\. The entire resulting database state must match the target\. This credits any action realization that induces the verified state transition, while failed execution and every missing, extra, or incorrect state change count as failures\.
### A\.2Detailed Agent Workflow
The Tool Agent performs up to five read\-only query turns before UI generation\. The GUI Coder Agent receives the initial query and exploration history, first reflects on the remaining information needs, and then produces a single React/TypeScript component\. The interface displays retrieved options and collects user input throughsubmitData\. The Tool Agent resumes with the query, exploration history, and submitted JSON, uses up to five further query turns to validate or resolve selections, and emits one terminal action\.
The user simulator receives the generated TSX, the initial ARIA snapshot, and the complete user goal encoded as the reference action\. It generates Playwright code to operate the interface according to that goal\. The simulator is fixed across all harnesses and nine backbones and does not determine success\. In generated\-UI sessions, it cannot invoke task tools or directly modify the database; it must act through the rendered interface, after which the fixed Tool Agent consumes its submission and the evaluator independently checks the terminal database state\. The reference action is private to the simulator and is not an additional input to the Tool Agent or GUI Coder Agent\. The same simulator also operates interfaces produced by unrelated model families, while the reviewer study in Appendix[F](https://arxiv.org/html/2610.11123#A6)confirms that people can operate the selected interfaces under the same task information\. We therefore use it as a controlled, capable\-user simulator without claiming that it reproduces the full distribution of human interaction behavior\. Appendix[H](https://arxiv.org/html/2610.11123#A8)gives the role templates, and Appendix[D\.3](https://arxiv.org/html/2610.11123#A4.SS3)specifies serving and retry settings\.
## Appendix BRelated Work
#### Tool\-Using and Interactive Agents\.
Tool\-using agents combine language reasoning with API calls to retrieve information and execute actions\([Yao et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib71);[Schick et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib54);[Li et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib31);[Qin et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib46)\)\. Their evaluation covers general assistance and stateful environments\([Liu et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib32);[Mialon et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib37);[Trivedi et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib62)\), as well as interaction with existing web and desktop interfaces\([Yao et al\., 2022](https://arxiv.org/html/2610.11123#bib.bib70);[Deng et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib15);[Zhou et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib79);[Koh et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib25);[Drouin et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib17);[Xie et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib67)\)\. Conversational benchmarks further study how agents respond to evolving user requests during navigation and tool use\([Lu et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib34);[Deng et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib16);[Lu et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib33)\)\. Tau\-Bench is particularly close to our setting: it combines simulated users, domain\-specific tools, and database\-state evaluation, with clarification conducted through textual dialogue\([Yao et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib72)\)\. We retain database\-backed task execution but change how user choices are elicited: the agent generates an executable interface from retrieved records and the action schema, allowing users to inspect options and supply the choices needed for the final action\.
#### Clarification and Generative Interfaces\.
Mixed\-initiative systems coordinate automated inference with user control, while clarification research studies how agents identify and resolve underspecified requests\([Horvitz, 1999](https://arxiv.org/html/2610.11123#bib.bib22);[Rao & Daumé III, 2018](https://arxiv.org/html/2610.11123#bib.bib51);[Aliannejadi et al\., 2019](https://arxiv.org/html/2610.11123#bib.bib1);[Xu et al\., 2019](https://arxiv.org/html/2610.11123#bib.bib69);[Min et al\., 2020](https://arxiv.org/html/2610.11123#bib.bib38);[Zhang et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib77);[Zhang & Choi, 2025](https://arxiv.org/html/2610.11123#bib.bib76)\)\. MIMICS operationalizes clarification through question\-and\-option panes, and AmbigChat uses interactive widgets for hierarchical disambiguation\([Zamani et al\., 2020](https://arxiv.org/html/2610.11123#bib.bib75);[Ma et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib35)\)\. In HCI, direct manipulation and automatically generated interfaces have long been used to expose task structure and reduce the gap between intent and action\([Shneiderman, 1983](https://arxiv.org/html/2610.11123#bib.bib56);[Hutchins et al\., 1985](https://arxiv.org/html/2610.11123#bib.bib23);[Gajos et al\., 2010](https://arxiv.org/html/2610.11123#bib.bib19)\)\. More recent systems synthesize task\-specific or malleable interfaces from demonstrations, natural\-language requests, or evolving data models\([Vaithilingam & Guo, 2019](https://arxiv.org/html/2610.11123#bib.bib63);[Vaithilingam et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib64);[Nandy et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib39);[Cao et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib9);[Chen et al\., 2026](https://arxiv.org/html/2610.11123#bib.bib12)\)\. Contemporaneous EvoGenUI\-Bench, accepted to EMNLP 2026, evaluates whether one executable interface preserves requirements and tool grounding across five successive revision turns\([Peng et al\., 2026](https://arxiv.org/html/2610.11123#bib.bib45)\); our benchmark instead evaluates task\-specific interfaces that elicit unresolved intent and complete a terminal database action\. Our setting is distinguished by database\-grounded service interaction: retrieved records and an executable action schema determine what the interface must clarify, and correctness is verified by executing the terminal action and exactly checking the resulting database state\.
#### UI Code Generation and Outcome\-Based Feedback\.
Prior work includes screenshot\-based GUI automation and datasets\([Yeh et al\., 2009](https://arxiv.org/html/2610.11123#bib.bib73);[Deka et al\., 2017](https://arxiv.org/html/2610.11123#bib.bib14)\), screenshot\-to\-code reconstruction\([Beltramelli, 2018](https://arxiv.org/html/2610.11123#bib.bib8);[Laurencon et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib28);[Si et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib57)\), and UI\-code fine\-tuning with compiler and multimodal feedback\([Wu et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib66)\)\. CodeRL and CodeT demonstrate the value of execution and generated tests when reference similarity is insufficient for functional correctness\([Le et al\., 2022](https://arxiv.org/html/2610.11123#bib.bib29);[Chen et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib10)\)\. Model\-generated feedback has also been used for scalable alignment and self\-improvement\([Bai et al\., 2022](https://arxiv.org/html/2610.11123#bib.bib7);[Lee et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib30);[Yuan et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib74)\), but judge and reward\-model reliability remains an active concern\([Zheng et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib78);[Kim et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib24);[Lambert et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib26);[Tan et al\., 2025](https://arxiv.org/html/2610.11123#bib.bib60)\)\. In particular, optimizing imperfect proxies can induce overoptimization or reward gaming\([Gao et al\., 2023](https://arxiv.org/html/2610.11123#bib.bib20);[Skalse et al\., 2022](https://arxiv.org/html/2610.11123#bib.bib58)\)\. We combine online execution\-gated feedback with a meta\-reward process that uses observed task outcomes to diagnose and iteratively revise the judging criteria and scoring rules\.
## Appendix CUI\-TauBench Construction Details
This appendix provides additional details on schema design, database population, domain rules, tool generation and validation, task synthesis, and quality control forUI\-TauBench\.
### C\.1Detailed Construction Pipeline
The construction pipeline follows the three top\-level stages shown in Figure[2](https://arxiv.org/html/2610.11123#S3.F2), with each stage producing a validated artifact required by the next\. During Tool Design, corresponding domain rules specify action requirements, service constraints, and valid state transitions before the tools are constructed and validated\. This ordering prevents errors in collected data, rules, or tool behavior from propagating into the final benchmark instances\. All pseudorandom choices in data construction use seed 42\.
#### Stage 1: Domain Data Collection\.
The benchmark uses 10 real\-world domain databases constructed from the public data sources documented in Table[4](https://arxiv.org/html/2610.11123#A3.T4)\. The same annotators collect and preprocess these sources by standardizing field types and identifiers and checking cross\-table references, then organize each domain into a user\-facing entity table, resource tables, and a transaction table\. The resulting databases are used for tool and task construction\.
Table 4:Public data sources for the 10 evaluation domains\. The table summarizes the domain information provided by each source and its license or access terms\.
#### Stage 2: Tool Design\.
The same annotators first specify corresponding domain rules that govern action requirements, eligibility conditions, service constraints, and valid state transitions\. They then define query and action tools over the normalized database\. Query tools are atomic, read\-only operations designed to compose into diverse search chains\. Their combined coverage includes broad overview operations, such as listing the records available to a user\-facing entity, and targeted retrieval operations, such as finding a resource by a date, location, status, or identifier\. Action tools implement rule\-compliant database writes across multiple service scenarios\. Their database\-valued arguments are grounded in actual query observations so that an agent can obtain the required values through the available tool interface\. Each tool is paired with a schema that describes its purpose, arguments, constraints, and return values\.
#### Tool Validation and Repair\.
We validate query and action tools before using them for task synthesis\. Each query tool is executed over the user\-facing entity records, and each action tool is tested with inputs grounded in real query observations; action validation checks both compliance with the domain rules and the resulting database state change\. An execution error or empty query result initiates a repair\-and\-revalidation loop\. We re\-execute the repaired implementation against the failed validation case and repeat this process at most twice\. A candidate that remains unsuccessful after the second repair is dropped\. We subsequently execute every proposed tool sequence end to end: a sequence is rejected if any tool raises an execution error or if it contains more than two empty query results\. The surviving sequence must terminate in an executable reference action whose resulting database state exactly matches the target state\. This separates artifact\-level tool generation from task\-level retention and ensures that only verified execution paths contribute to the benchmark\.
#### Stage 3: Task Synthesis\.
One of these annotators first samples a random user and specifies a service goal, such as changing an existing flight booking\. Given the selected user’s records, the domain database, and the available query tools, a task synthesis agent instantiated withClaude Opus 5proposes a chain of query calls for that goal\. Each call draws its arguments from the database rather than from invented values, and later calls depend on the results of earlier ones, so that a chain traverses the schema the way an agent would, from the user record to an existing transaction and then to the resources that transaction involves\. A chain contains 8\.7 query calls on average\. The synthesis agent executes the proposed chain against the domain database and then selects an action tool appropriate to the retrieved records\. Each argument of that action is filled with a value observed during execution, so that every argument of the reference action is grounded in a retrieved record\. We then remove information from the description the evaluated agent receives\. Every internal identifier required by the action, such as a booking or record identifier, is masked, so the evaluated agent must retrieve it from the database\. The user identifier remains visible so that the evaluated agent can determine which account the task concerns\. Two ambiguity levels determine how many further arguments are masked\. Moderate\-ambiguity tasks mask 2 to 3 additional arguments selected at random and high\-ambiguity tasks mask 4 to 5\. Masked values are recoverable only through database exploration, user interaction, or both\. Conditioned on the query chain, its execution results, and the domain rules, the synthesis agent generates the request the evaluated agent receives\. The request states the user goal in natural language and leaves the masked arguments unspecified, so that the resulting ambiguity is what the evaluated agent must resolve\. A candidate task is retained only if it passes three checks\. An execution check re\-executes the reference action and confirms that it produces the intended database state\. An alignment check confirms that the user profile, the request, the retrieved records, the domain rules, and the reference action are mutually consistent\. Two independent annotators confirm that the request is realistic for the domain and fluent and that no masked value appears; disagreements are resolved by a third annotator\. Table[1](https://arxiv.org/html/2610.11123#S3.T1)reports inter\-annotator agreement\.
### C\.2Benchmark Statistics and Comparison
Table[6](https://arxiv.org/html/2610.11123#A3.T6)reports the database composition and task counts for each evaluation domain\. The Lite and Full splits maintain comparable query length, ambiguity density, and annotation agreement, while Full broadens task and action\-tool coverage \(Table[1](https://arxiv.org/html/2610.11123#S3.T1)\)\. Table[5](https://arxiv.org/html/2610.11123#A3.T5)compares the interaction setting and evaluation target of closely related benchmarks\. Tau\-Bench and ToolSandbox elicit user information through dialogue\. AppWorld evaluates generated programs that operate application APIs, while WebLINX evaluates agents that navigate existing websites under conversational instructions\. InUI\-TauBench, generated front\-end code instead creates the interface through which the user provides task information; tool execution then connects that input to an objectively evaluated database update\.
Table 5:Comparison with related benchmarks, using the settings and scale reported in the cited papers\. Tasks, scenarios, and demonstrations are distinct dataset units\. Generated UI denotes front\-end code produced for the user to operate, rather than code used by the agent to call APIs or navigate an existing interface\.Table 6:UI\-TauBench domain statistics\. Every domain provides a user\-facing entity table, resource tables, and a transaction table\. Columns and records count fields and rows across these tables; the table also reports the retained tasks in each split\.#### Tool Semantics Review\.
Two of these annotators apply the validation criteria from Section[3](https://arxiv.org/html/2610.11123#S3)to every surviving tool, not to a sample\. Each tool is checked independently by a second annotator against the domain rules and the resulting database state change, and a tool is retained only when both annotators agree it is correct\. A tool the two annotators cannot agree on, or whose behavior remains ambiguous after the repair loop described above, is discarded rather than retained\.
#### Task Quality Review\.
The same annotators apply this check to every candidate task that passes the execution and alignment checks from Section[3](https://arxiv.org/html/2610.11123#S3), again not to a sample\. For each candidate, two annotators rate it independently, judging whether the request is realistic for the domain, fluent, and free of any masked value\. A disagreement between these two initial annotators is resolved by a third annotator through discussion, and a candidate whose ambiguity this discussion cannot resolve is dropped rather than retained\. Table[1](https://arxiv.org/html/2610.11123#S3.T1)reports agreement between the initial independent ratings separately for Lite \(94\.1%\) and Full \(94\.3%\)\.
## Appendix DTraining Details
### D\.1Training Data Construction
The training pool contains 40 domain databases, all disjoint from the 10 evaluation domains\. Before optimization, we partition them into 25 SFT databases and 15 RL databases, with no database shared across the two sets\. We useDeepSeek V4 Flashto generate end\-to\-end trajectories withinGenUI\-Harness and retain a trajectory only when its terminal action executes and reaches the target database state\. Each retained SFT task contributes one interface\-generation example for the GUI Coder Agent and one or more pre\- or post\-agent examples for the Tool Agent\. The RL split supplies task prompts for GUI\-Coder GRPO and Reward Auditor sampling; the SFT Tool Agent remains fixed during RL\. Table[7](https://arxiv.org/html/2610.11123#A4.T7)summarizes the resulting data\.
Table 7:Training\-domain split and data volume \(train/validation\)\. Each task contributes one GUI\-Coder example or RL prompt; an SFT task can contribute multiple Tool Agent examples\.#### ARIA snapshots and split verification\.
An ARIA snapshot records the rendered interface’s accessible roles, names, and structure\([W3C, 2023](https://arxiv.org/html/2610.11123#bib.bib65)\)\. We use it as execution evidence for the reward judge\. The 40 training databases and 10 evaluation domains are constructed from separate domain lists\. We check for exact overlap in user\-task text, serialized reference actions, and executable tool\-name sequences; none is found\. For recurring generic tool names, we additionally inspect arguments and implementations to check for reused tools or databases\.
### D\.2Model and Optimization Details
#### Models and role specialization\.
The Tool Agent and GUI Coder Agent use separate checkpoints initialized fromQwen3\.5\-4B\([Qwen Team, 2026b](https://arxiv.org/html/2610.11123#bib.bib48)\)\. Both are first trained with full\-parameter supervised fine tuning\. In theGenUI\-4B configurations, the Tool Agent is then kept fixed while only the GUI Coder Agent undergoes RL\. Starting from the GUI Coder Agent SFT checkpoint, we train three independent RL policies for Direct RL, Audit Round 1, and Audit Round 2 \(final\)\. The final audited policy is GUI\-Coder\. TheGenUI\-4B designation refers to the active model size per call: although the system stores two role\-specific checkpoints, each Tool Agent or GUI Coder Agent invocation activates only one 4B model\. Table[8](https://arxiv.org/html/2610.11123#A4.T8)summarizes the SFT settings\.
Table 8:Supervised fine\-tuning configuration for the two role\-specific agents\.
#### GRPO optimization\.
We optimize only the GUI Coder Agent with GRPO\([Shao et al\., 2024](https://arxiv.org/html/2610.11123#bib.bib55)\), keeping the Tool Agent fixed at its best SFT checkpoint\. The reported sessions use 1,500 training and 41 validation prompts from the larger RL pool in Table[7](https://arxiv.org/html/2610.11123#A4.T7)\. GRPO samples a group of interfaces for each prompt and uses their relative rewards to compute advantages, avoiding a separate value model\. LetA^i\\hat\{A\}\_\{i\}denote the group\-relative advantage of outputyiy\_\{i\}andρi,t=πθ\(yi,t∣x,yi,<t\)/πold\(yi,t∣x,yi,<t\)\\rho\_\{i,t\}=\\pi\_\{\\theta\}\(y\_\{i,t\}\\mid x,y\_\{i,<t\}\)/\\pi\_\{\\mathrm\{old\}\}\(y\_\{i,t\}\\mid x,y\_\{i,<t\}\)the token\-level importance ratio\. The clipped policy objective, with the KL coefficient set to zero, is
𝒥GRPO\(θ\)=𝔼\[1G∑i=1G1\|yi\|∑t=1\|yi\|min\(ρi,tA^i,clip\(ρi,t,1−ϵ,1\+ϵ\)A^i\)\],\\mathcal\{J\}\_\{\\mathrm\{GRPO\}\}\(\\theta\)=\\mathbb\{E\}\\\!\\left\[\\frac\{1\}\{G\}\\sum\_\{i=1\}^\{G\}\\frac\{1\}\{\|y\_\{i\}\|\}\\sum\_\{t=1\}^\{\|y\_\{i\}\|\}\\min\\\!\\left\(\\rho\_\{i,t\}\\hat\{A\}\_\{i\},\\;\\operatorname\{clip\}\(\\rho\_\{i,t\},1\-\\epsilon,1\+\\epsilon\)\\hat\{A\}\_\{i\}\\right\)\\right\],whereϵ\\epsiloncontrols the clipping range andGGis the number of outputs sampled per prompt\. Table[9](https://arxiv.org/html/2610.11123#A4.T9)summarizes the shared training configuration\.
Table 9:Shared GRPO configuration for the three independent GUI Coder Agent sessions\.
### D\.3Evaluation Inference Configuration
The open\-weight baselines areQwen3\.5\-4B,Qwen3\.6\-35B\-A3B, andQwen3\.6\-27B\([Qwen Team, 2026b](https://arxiv.org/html/2610.11123#bib.bib48);[Qwen Team, 2026d](https://arxiv.org/html/2610.11123#bib.bib50);[Qwen Team, 2026c](https://arxiv.org/html/2610.11123#bib.bib49)\),gpt\-oss\-120b\([OpenAI, 2025](https://arxiv.org/html/2610.11123#bib.bib42)\),DeepSeek V4 Flash\([DeepSeek\-AI, 2026](https://arxiv.org/html/2610.11123#bib.bib13)\), andQwen3\.5\-397B\-A17B\([Qwen Team, 2026a](https://arxiv.org/html/2610.11123#bib.bib47)\)\. The closed\-source baselines areGPT\-5\.4\([OpenAI, 2026](https://arxiv.org/html/2610.11123#bib.bib43)\),Claude Sonnet 4\.6\([Anthropic, 2026b](https://arxiv.org/html/2610.11123#bib.bib4)\), andClaude Opus 5\([Anthropic, 2026a](https://arxiv.org/html/2610.11123#bib.bib3)\)\.
The Lite harness comparison in Table[2](https://arxiv.org/html/2610.11123#S6.T2)and the training ablation in Figure[6](https://arxiv.org/html/2610.11123#S6.F6)use temperature 0\.7 for the evaluated model\. All evaluation stages use a 32K\-token output budget\. LocalvLLMrequests leave top\-ppunset and therefore use the serving default, whereas closed\-source API requests and the user\-simulator call explicitly use top\-p=1\.0p=1\.0\. Open\-weight models and our role\-specific checkpoints are served throughvLLM; the closed\-source models are accessed through a hosted API under the aliasesopenai\-gpt\-5\.4,claude\-sonnet\-4\-6, andclaude\-opus\-5\. All three closed\-source API baselines use the default thinking effort\. The fixed user simulator is served asDeepSeek\-V4\-Flash\-0731\. These are the exact identifiers exposed to the evaluation pipeline; the serving APIs do not expose dated snapshots for these aliases\.
Each structured generation permits at most three attempts when the required output cannot be extracted; transport\-level API requests permit up to 30 attempts\. These are internal retries within one evaluation session, distinct from the three complete sessions used for Pass@3 and Avg@3\. Browser rendering and user\-simulator execution each have a 60\-second timeout\. Each complete session starts from an isolated copy of the task’s initial database state\. Table[2](https://arxiv.org/html/2610.11123#S6.T2)reports all results to two decimal places\.
### D\.4Bootstrap Confidence Intervals for Lite Results
To assess whether the aggregate advantages in Table[2](https://arxiv.org/html/2610.11123#S6.T2)are robust to task sampling, we perform a paired bootstrap over the 300 Lite tasks\. Using random seed 42, in each of 10,000 replicates we sample task identifiers with replacement, retain all three sessions for every sampled task, and apply the same sampled identifiers to every harness and backbone\. We compute the paired difference for each backbone and then macro\-average across the fixed set of nine evaluated backbones\. Table[10](https://arxiv.org/html/2610.11123#A4.T10)reports percentile 95% confidence intervals\. All intervals remain above zero for both metrics, showing that the aggregate gains ofGenUI\-Harness are consistent across bootstrap resamples\.
Table 10:Macro\-average paired differences across the nine shared backbones on Lite\. Intervals are 95% task\-paired bootstrap confidence intervals over 10,000 resamples\.
### D\.5Baseline Harness Adaptation
The three baselines retain their original agent loops and text\-based user interaction; we do not insert the GUI Coder Agent or renderer into them\. They share the benchmark tasks, database, Python implementations of the query and action tools, user\-simulator model and hidden goal, and final\-state evaluator\. When a baseline requests information, the simulator receives its textual message and interaction history and replies in natural language\. This gives an end\-to\-end text\-only comparison while keeping the task environment and success criterion fixed\.
We adapt only the tool and termination boundaries required by each framework\. Insmolagents, the benchmark tools are registered through its native agent API\. Inmini\-swe\-agent, we replace the default shell\-only action surface with the benchmark’s JSON\-schema tool set and add an explicit finish action\. InPi, itspi\-agent\-coreNode\.js loop accesses the same Python tools through a localhost HTTP bridge\. Where a framework does not natively impose the benchmark’s termination conditions, an external check applies the configured stopping rule\.
Some role\-specific checkpoints emit tagged tool calls rather than native function calls\. For these checkpoints, a format adapter renders the expected prompt and maps tagged outputs into each framework’s internal tool\-call representation\. This conversion does not modify generated arguments, tool observations, database state, or grading; beyond these compatibility layers, we retain each framework’s own agent loop\.
### D\.6Full Split Results
The Full split contains 1,000 tasks, each requiring end\-to\-end tool use, user interaction, and state evaluation;GenUI\-Harness additionally generates and executes an interface\. Due to the resulting computational cost, we evaluate each task in one session and restrict this four\-harness comparison to open\-weight models\. Table[11](https://arxiv.org/html/2610.11123#A4.T11)reports single\-session Success Rate, equivalently Pass@1\. Under the same Full protocol, our role\-specializedGenUI\-4B achieves40\.90%Success Rate\.
Table 11:State EM Pass@1 \(single\-session Success Rate, %\) on the Full split ofUI\-TauBench \(1,000 tasks\) across four agent harnesses in their native interaction modes\. Bold marks the best result in each row\.
### D\.7Dynamic UX Systems Benchmark
We compare two process\-management strategies on 1,100 pre\-verified successful TSX components, sampling 100 from each of 11 evaluated model configurations with seed 42\. The fresh\-process implementation launches and tears down a Chromium browser for every rollout\. Dynamic UX launches one persistent browser instance and creates a fresh, isolatedbrowser\.new\_context\(\)for every rollout\. Both use the same per\-render identifier, websocket messages, component\-loaded signal, and dedicated websocket\-server–Vite pair; only the browser lifecycle differs\.
We evaluate both implementations at concurrency 1, 4, 8, 16, and 32 in the same 16\-core Rocky Linux 9\.8 sandbox\. Each configuration is repeated three times with newly shuffled sample orders drawn from a pseudorandom stream initialized with seed 42\. The first*concurrency*completed requests in each session are treated as warm\-up and excluded from latency and throughput, but remain in failure and timeout counts\. A 200\-ms background sampler records RSS and the number of Chromium processes in the harness process tree\. Table[12](https://arxiv.org/html/2610.11123#A4.T12)averages throughput and latency across repeats; peak RSS and process count are the maxima observed across the three repeats\.
Table 12:Matched\-concurrency rendering benchmark\. Baseline launches one browser per rollout; Dynamic UX shares one browser across isolated contexts\. Bold marks the better value; green arrows show relative change from Baseline\.At concurrency 1, the two architectures perform similarly\. As concurrency increases, repeatedly launching browser process trees becomes increasingly expensive\. Dynamic UX reaches its highest throughput at concurrency 16, where it improves throughput by 37\.5%, reduces median and P95 latency by 29\.2% and 41\.3%, reduces peak RSS by 48\.1%, and uses 76\.0% fewer Chromium processes than fresh\-process rendering\. At concurrency 32, both architectures approach saturation; Dynamic UX still provides 11\.3% higher throughput with 50\.9% lower peak RSS and 79\.7% fewer Chromium processes\. Separately, we render 1,000 sessions containing unique marker strings through Dynamic UX at concurrency 32\. All sessions complete without timeout or rendering failure, and no page contains another session’s marker\.
### D\.8Initial Reward Specification
The initial rubric translates the requirements of a task\-completing interface into four criteria\. Functional equivalence assesses whether the candidate supports the task\-relevant functions of the successful reference; feature completeness checks whether the required information and controls are present; implementation correctness concerns the generated code and component behavior; and task alignment checks consistency with the user request\. The reference is drawn from a successful trajectory, providing a concrete example of task completion rather than a code string that the candidate must reproduce\. The online judge,DeepSeek V4 Flashat temperature 0, receives the query, reference and candidate code, and their initial rendered ARIA snapshots\. It returns scores on these four criteria and supporting rationales\. Section[5\.2](https://arxiv.org/html/2610.11123#S5.SS2)gives the normalized weighted score\.
Direct RL uses this initial judge score after TSX extraction, task/reference\-evidence checks, structural validation, rendering, and valid judge\-response checks\. A failed check receives zero reward\. Reference ARIA is cached before training, whereas candidate code is rendered for each rollout\. This online path does not execute the full user\-interaction and post\-agent trajectory for every rollout; those executions provide the objective evidence used by Reward Auditor\. Collecting one such outcome requires browser interaction, post\-agent inference, action execution, and terminal\-state evaluation\. Reward Auditor applies this evidence to a sampled audit panel and amortizes the limited execution budget by converting its diagnostics into a shared reward specification used across RL rollouts\.
### D\.9Meta\-Reward Revision Protocol
#### Execution\-based diagnosis\.
Reward Auditor diagnoses and revises rewards from internal rollouts on the 15 RL training databases\.DeepSeek V4 Flash\([Xu et al\., 2026](https://arxiv.org/html/2610.11123#bib.bib68)\)generates a Playwright program to interact with the rendered interface; after browser execution, the fixed Tool Agent consumes the submission and predicts the terminal action\. The objective outcome is positive only when the action executes and the resulting database state exactly matches the target\. Reward Auditor compares this outcome withz^i=𝕀\[ri≥0\.5\]\\hat\{z\}\_\{i\}=\\mathbb\{I\}\[r\_\{i\}\\geq 0\.5\], whererir\_\{i\}is the complete reward, not the raw judge score\. The auditor examines the resulting true/false positive and negative cases, aggregate reward distributions, and complete trajectories, including retrieved evidence, generated code, user submissions, final actions, and judge rationales, to diagnose failure causes and recurring errors in the evaluation criteria or score assignment\.
#### Automated revision, review, and replay\.
In each round, Reward Auditor modifies the current reward specification from reward\-distribution summaries, diagnosed error patterns, and individual cases, and reviews the proposed changes\. It replays candidate specifications on the same stored outputs and reviews their effects on successful and unsuccessful traces before accepting a revision\. Diagnosis, revision, and review require no human intervention\. Holding the generated outputs fixed isolates score changes due to the reward specification\. Development checks include replay of 1,618 Direct RL rollouts from 372 groups for the deterministic scoring rules and comparison of candidate judges on 1,005 paired frozen candidates\.
#### Iterative reward revision\.
Audit Round 1 and Audit Round 2 are successive meta\-reward\-guided revisions of the training feedback\. The revisions address both what the judge evaluates and how its judgments and execution evidence determine the final scalar\. Table[13](https://arxiv.org/html/2610.11123#A4.T13)summarizes the targeted problems\. After automated review and replay, task\-specific diagnoses are consolidated into one shared rubric and scoring specification\. The accepted reward is applied across tasks and remains fixed for its RL session\. Direct RL and both audited variants train independent policies from the same GUI Coder Agent SFT checkpoint, with the Tool Agent fixed; reward versions are iterated, not policy checkpoints continued along one training trajectory\.
Table 13:Problems targeted by meta\-reward\-guided reward revision\. Revisions combine judging criteria with deterministic scoring rules\.
#### Final reward specification\.
The final reward combines the four\-dimensional quality score with ordered failure checks and a source\-based accessibility multiplier\. Using the judge scores defined in Section[5\.2](https://arxiv.org/html/2610.11123#S5.SS2), we compute
Qi=0\.35qife\+0\.35qifc\+0\.15qiic\+0\.15qita5\.Q\_\{i\}=\\frac\{0\.35q\_\{i\}^\{\\mathrm\{fe\}\}\+0\.35q\_\{i\}^\{\\mathrm\{fc\}\}\+0\.15q\_\{i\}^\{\\mathrm\{ic\}\}\+0\.15q\_\{i\}^\{\\mathrm\{ta\}\}\}\{5\}\.This uses the initial quality\-score weights without additional rescaling\. For each soft checkcc, letsi,c∈\[0,1\]s\_\{i,c\}\\in\[0,1\]be the fraction of eligible controls or labels exhibiting that defect\. The accessibility penalty and multiplier are
Pi=0\.110si,plain\+0\.055si,long\+0\.056si,link0\.221,Ai=1−0\.5min\(1,Pi\)\.P\_\{i\}=\\frac\{0\.110s\_\{i,\\mathrm\{plain\}\}\+0\.055s\_\{i,\\mathrm\{long\}\}\+0\.056s\_\{i,\\mathrm\{link\}\}\}\{0\.221\},\\qquad A\_\{i\}=1\-0\.5\\min\(1,P\_\{i\}\)\.The three nonzero\-weight checks detect labels that are not plain strings, overlong labels \(more than 5 words or 39 characters\), andSelectcontrols without alabelIdlinked to anInputLabel\. Their weights are 0\.110, 0\.055, and 0\.056, respectively; the label\-collision check has weight zero and does not changePiP\_\{i\}\. Severities are proportions rather than binary flags: three defective labels among nine eligible labels give severity1/31/3\. These checks form one shared scoring specification developed through the internal reward\-audit process\.
The following rules are evaluated from top to bottom, and the first matching branch returns the reward:
ri\(2\)=\{0\.00,masked rollout,0\.00,TSX extraction fails,0\.02,format check fails,0\.05,code is incomplete,0\.05\+0\.05\(1−si,icon\),an unavailable icon is used,0\.10,rendering fails,0\.15,rendering succeeds but ARIA has fewer than 400 characters,0\.20\+0\.80QiAi,otherwise\.r\_\{i\}^\{\(2\)\}=\\begin\{cases\}0\.00,&\\text\{masked rollout\},\\\\ 0\.00,&\\text\{TSX extraction fails\},\\\\ 0\.02,&\\text\{format check fails\},\\\\ 0\.05,&\\text\{code is incomplete\},\\\\ 0\.05\+0\.05\(1\-s\_\{i,\\mathrm\{icon\}\}\),&\\text\{an unavailable icon is used\},\\\\ 0\.10,&\\text\{rendering fails\},\\\\ 0\.15,&\\text\{rendering succeeds but ARIA has fewer than 400 characters\},\\\\ 0\.20\+0\.80Q\_\{i\}A\_\{i\},&\\text\{otherwise\}\.\\end\{cases\}A rollout is masked if the judge reports an error, rendering reports a transient error, or reference evidence \(including the reference ARIA snapshot\) is missing\. Heresi,icons\_\{i,\\mathrm\{icon\}\}measures the proportion of icon imports that are used but unavailable in the component package\. The icon check is a gate and does not enter the soft accessibility penalty or proceed to quality scoring\. Reported transient rendering errors are masked at zero; the 0\.10 branch applies to unmasked rendering failures\. The short\-ARIA branch is a low\-content heuristic\. The multiplier satisfiesAi∈\[0\.5,1\]A\_\{i\}\\in\[0\.5,1\], so the quality\-scoring branch lies in\[0\.20,1\.00\]\[0\.20,1\.00\], above all failure\-stage scores\. For example, a quality score of 0\.80 with no accessibility penalty gives 0\.84; a perfect quality score with all three soft\-check severities equal to one gives 0\.60\. In contrast, the initial reward assigns zero to every failed check and otherwise returnsQiQ\_\{i\}\.
#### Intermediate reward revision\.
Audit Round 1 introduced the judge caps in Table[14](https://arxiv.org/html/2610.11123#A4.T14)\. It is an intermediate reward version; the final reward is the ordered specification above\.
Table 14:Explicit judge caps in the Audit Round 1 revision\. FE, FC, IC, and TA denote functional equivalence, feature completeness, implementation correctness, and task alignment\.The Audit Round 1 parser also lowers an unsupported perfect score from 5 to 4\.5 and applies deterministic dimension caps to nonempty critical, payload, interaction, and visible\-content defect lists\. These rules illustrate how diagnosed defects become explicit evaluation criteria\. Subsequent revision is guided by the remaining reward–outcome mismatches, with both false positives and false negatives considered rather than requiring every criterion to become stricter\.
## Appendix EDetailed Error Analysis
#### Evaluation cohort\.
We analyze one session on each of the 300 Lite tasks forDeepSeek V4 Flash,Claude Sonnet 4\.6,Claude Opus 5, andGenUI\-4B, giving 1,200 model\-task sessions\. These single\-session diagnostics are separate from the three\-session aggregates in Table[2](https://arxiv.org/html/2610.11123#S6.T2)\. Table[15](https://arxiv.org/html/2610.11123#A5.T15)partitions the recorded outcomes\. Across 800 failures, 416 \(52\.0%\) have no valid UI interaction, 356 \(44\.5%\) are classified as correct\-tool calls with mismatched arguments or resulting state, and 28 \(3\.5%\) are rejected during execution\.
Table 15:Single\-session outcome partition on the 300 Lite tasks underGenUI\-Harness\. Columns are mutually exclusive and sum to 300 for every configuration\.
#### Diagnostic evidence\.
We inspect generated TSX, rendered ARIA snapshots, user\-interaction traces, submitted payloads, and final actions to distinguish failure stages from underlying causes\. For detailed trace review, we sample eight no\-valid\-interaction failures and eight argument\-mismatch failures per model \(64 cases in total; seed 42\)\. These cases support the mechanisms summarized in Table[16](https://arxiv.org/html/2610.11123#A5.T16); their frequencies are not extrapolated to all failures\. The “no valid interaction” category records where execution stops, not whether the underlying cause is the interface or the simulator\. We attribute a failure to generated code when the trace exposes a concrete restriction or incorrect binding that prevents the required interaction or submission\.
Table 16:Observed failure mechanisms and the evidence used to identify them\.
#### Representative cases\.
In a hotel\-preference task, a single\-select radio group cannot represent the requested selection of two hotels\. In a flight\-booking task, an immutable cabin\-class field submits “Economy” although the task requires “Premium Economy\.” These restrictions arise from the generated controls and submission logic: knowing the intended selection is insufficient when the UI cannot represent or submit it\. The examples show how generated code can obstruct interaction even when the user’s goal is fully specified\.
#### Interpreting state mismatches\.
Trace inspection also finds differences involving generated identifiers, list ordering, and free\-text values\. These remain failures under the reported strict database\-state comparison\. A state mismatch alone does not establish whether its cause lies in the UI payload, downstream tool reasoning, or state\-comparison behavior; that attribution requires the corresponding execution trace and domain semantics\.
## Appendix FCommunication\-Channel Survey Protocol
#### Survey design and task selection\.
We compare text\-based and generated\-UI communication on the same task content to assess interaction effort and perceived latency\. This comparison focuses on how reviewers communicate their preferences once an executable interface is available\. The survey involves six human reviewers and 100 tasks fromUI\-TauBench Lite\. All reviewers provided informed consent\. Reviewers were compensated with gift cards at a rate of US$30 per hour\. Participation is anonymous, and we collect no names or other identifying information\. All user profiles and task records shown in the survey are synthetic, and the tasks concern routine service workflows such as booking and reservation changes rather than sensitive personal decisions\. Reviewers only complete the assigned interaction and assess its usability or latency; no real customer data or private information is involved\. Interface content comes from four frontier models:GPT\-5\.4,Claude Opus 5,Claude Sonnet 4\.6, andDeepSeek V4 Flash\. For each model, a task must execute the generated interface successfully and produce a valid user\-simulator interaction, including a usable submission, in all three sessions\. We intersect the four models’ eligible task sets, sample 100 tasks from this common pool, and fix one source model for each selected task\. Letvi,m,j=1v\_\{i,m,j\}=1when sessionjjof modelmmon taskiimeets both validity conditions and00otherwise\. Withℳ\\mathcal\{M\}denoting the four source models, eligibility requires
∏m∈ℳ∏j=13vi,m,j=1\.\\prod\_\{m\\in\\mathcal\{M\}\}\\prod\_\{j=1\}^\{3\}v\_\{i,m,j\}=1\.We denote the all\-three requirement for each model bypass3\\mathrm\{pass\}^\{3\}: the superscript indicates that every session must pass the interface\-validity checks\. This differs from Pass@3, which requires at least one successful session\. Here, validity concerns interface execution and interaction, rather than final database\-state exact match\. The common eligibility rule keeps the channel comparison from being confounded by rendering or submission failures and applies equally to all four content sources\. The resulting comparison concerns communication on consistently usable interfaces; benchmark state\-EM results separately include unsuccessful executions and interactions\.
#### Assignment and paired conditions\.
For each task, the six reviewers are randomly assigned with seed 42 to two equal groups: three interact through text and three through the generated UI\. Each reviewer encounters every task in only one condition, giving 300 task–reviewer interactions per condition\. This design pairs conditions at the task level and prevents reviewers from carrying answers learned in one version into the other version of the same task\.
Both conditions use the same user query, retrieved options, and task state from one fixed source model per task\. In the UI condition, reviewers inspect the interface and provide or revise values through its controls\. A fixedDeepSeek V4 Flashconverter produces the text condition from the corresponding interface’s ARIA snapshot, preserving concrete values, prefilled preferences, and unresolved fields; reviewers respond by typing\. The conversion holds the available task information fixed so that the comparison concerns its presentation through text or UI, rather than differences in independently retrieved content\. Neither condition exposes the hidden reference action or internal execution decisions\.
#### Real\-user interaction and stopping criterion\.
Reviewers can ask follow\-up questions or request confirmation in either condition, with responses provided by our trained agent\. An interaction ends when the agent successfully executes an action that produces the target database state\. This evaluation permits the exchanges needed to complete the task rather than imposing the benchmark’s fixed pre\-agent–UI–post\-agent sequence\.
#### Interaction rounds\.
One round consists of a user message or interface submission and the corresponding agent response\. Multiple field edits or clicks within one UI submission do not count as separate dialogue rounds\. We count exchanges through successful task completion and average across the 300 task–reviewer interactions in each condition\. The resulting means are 3\.4 rounds for text and 1\.2 for generated UI\.
#### UI latency and acceptability\.
Interfaces are generated live during the survey\. UI latency is measured from the start of interface generation through rendering and display\. The three reviewers assigned to the UI condition independently assess latency acceptability for that task\. A task passes when at least two of them judge its latency acceptable; the reported rate is the number of passing tasks divided by 100\. This criterion is met for 85/100 tasks \(85%\)\. These outcomes describe the selected tasks with consistently valid interfaces\.
## Appendix GLimitations
Benchmark evaluation uses an LLM\-based user simulator operating through Playwright\. The simulator receives generated source and the reference goal to construct browser actions; although it must act through the rendered interface and cannot invoke task actions directly, this information may make it more capable than a user who observes only the interface\. Source\-blind evaluation from human\-observable state is an important direction for future work\. The reviewer survey covers a selected subset of consistently usable interfaces\. Code execution and accessibility\-tree evidence may not fully capture visual usability, including overlapping layouts or confusing arrangements\. Strict database\-state equality can also reject semantically equivalent outcomes that differ in generated identifiers, ordering, or free text\. Adaptive interface regeneration after further clarification is an important direction for future work\.
## Appendix HPrompt Templates
This appendix gives the prompt templates for the agent and simulator roles inGenUI\-Harness, lightly copy\-edited for readability\. The Tool Agent uses two templates, one for pre\-agent exploration and one for post\-agent execution, matching the two stages of Section[4](https://arxiv.org/html/2610.11123#S4)\. Fields written as\[\[name\]\]are placeholders substituted before each call\.\[\[agent\_history\]\]carries the running transcript of thought, action, and observation triples,\[\[domain\_db\]\]and\[\[tool\_sets\]\]the sampled domain records and available tool schemas, and\[\[reasoning\_for\_ui\]\]the output of an intermediate reflection step that selects which retrieved values the interface must expose\. Lines exceeding the text width are wrapped for printing\. We additionally give the initial four\-criterion reward judge template\. Appendix[D\.9](https://arxiv.org/html/2610.11123#A4.SS9)specifies the final reward composition, including ordered failure checks and accessibility penalties\. The meta\-reward revision step usesClaude Opus 5to analyze reward distributions and individual errors, revise and review the criteria, and assess replay results automatically\. Appendix[D\.9](https://arxiv.org/html/2610.11123#A4.SS9)describes this revision protocol\.
Tool Agent pre\-agent exploration template[⬇](data:text/plain;base64,WW91IGFyZSBhIGhlbHBmdWwgdG9vbCBhZ2VudC4gWW91IGFyZSBnb29kIGF0IHBlcmZvcm1pbmcgdGFza3Mgd2l0aCB0b29scy4KWW91IHdpbGwgYmUgZ2l2ZW4gYSB0YXNrLCB5b3VyIGludGVyYWN0aW9uIGhpc3Rvcnkgd2l0aCB0aGUgZW52aXJvbm1lbnQsIGFuZCBhIHNldCBvZiB0b29scy4gVGhpbmsgc3RlcCBieSBzdGVwIGFib3V0IGhvdyB0byB1c2UgdGhlIHF1ZXJ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CB0aGF0IHRoZSBpbmZvcm1hdGlvbiBnYXRoZXJlZCBpcyBzdWZmaWNpZW50IGFuZCB0aGF0IHlvdSBrbm93IHdoYXQgdG8gYXNrIHRoZSB1c2VyLCBwcmVkaWN0IFt0ZXJtaW5hdGVdIGFzIHRoZSB0b29sIGFjdGlvbjoKCmBgYGFnZW50X3N0YXRlCiMgU3RlcCBbW3N0ZXBfbnVtXV06ClRob3VnaHQ6Cjx0aG91Z2h0Pi8vIFlvdXIgdGhvdWdodCBoZXJlPC90aG91Z2h0PgpBY3Rpb246Cjx0b29sPgpbdGVybWluYXRlXQo8L3Rvb2w+CmBgYAoKWW91IGNhbm5vdCBsZWF2ZSB0aGUgQWN0aW9uIGZpZWxkIGVtcHR5LiBZb3UgbXVzdCBwcm92aWRlIGEgdmFsaWQgdG9vbCBjYWxsIHdpdGggYXJndW1lbnRzLiBUaGUgbW9yZSB5b3UgZ2F0aGVyIG5vdywgdGhlIG1vcmUgeW91IGNhbiBzdWNjZWVkIGxhdGVyLCBzaW5jZSB0aGUgdXNlciB3b3VsZCBvdGhlcndpc2UgYmUgb3ZlcndoZWxtZWQgYnkgdG9vIG11Y2ggaW5mb3JtYXRpb24uCkdlbmVyYXRlIHRoZSBuZXh0IHN0ZXAgb2YgdGhvdWdodCBhbmQgYWN0aW9uIGJhc2VkIG9uIHRoZSBhYm92ZSBpbmZvcm1hdGlvbiBhbmQgdGhlIE5vdGljZSBhYm92ZTo=)Youareahelpfultoolagent\.Youaregoodatperformingtaskswithtools\.Youwillbegivenatask,yourinteractionhistorywiththeenvironment,andasetoftools\.Thinkstepbystepabouthowtousethequerytoolstoretrievetheinformationfromthedomaindatabasethatyouneedinordertocallanactiontoolfortheuser\.Youhaveonlyonechancetoasktheuserallthequestionsneededtocompletethetask\.Firstthinkaboutwhatyouneedtodo,thendecidewhichtooltouse,thenperformtheactionbywritingitsarguments\.Specifically,youshould:1\.Thinkaboutthetaskandwhatisneededtocompleteit,andfillintheThoughtfield\.2\.DecidewhichquerytooltouseandfillintheActionfieldwiththetoolnameandtheargumentsthatdonotcomefromthedatabases\.3\.Usethisinformation\-gatheringsteptopreparebetterclarificationquestionsfortheuser\.\#Notice:\-Alwaysthinkstepbystep,andalwaysusethetoolstoperformtheaction\.\-AlwaysfillintheThoughtandActionfields,andneverskipastep\.\-Performonestepatatime,andwrapeachtoolcallin<tool\></tool\>tags\.\-Becauseofpermissionconstraints,youmayonlyusequery\-typetoolsonthedomaindatabase\.\-Tosavespace,doNOTmentionuser\_databaseordomain\_databaseintheActionfield\.Doingsobreakstheprogram\.\-ThetoolintheActionfieldmustbegiveninfull,withnothingomittedexceptdatabasecontents\.\-YoumustNOTusetoolsoutsidethetoolsetsprovidedintheTaskfield\.Doingsocausesanerror\.\-Donothallucinatearguments\.Takethemfromthesampledatabasesandfromothertoolresponses\.\-Onlyquerytoolsareneededatthisphase\.Actiontoolsareshownsoyoucanseewhichargumentstheyrequire\.\-Youmustwrapyourthoughtin<thought\></thought\>tagsandyourresponsein‘‘‘agent\_state\.\.\.‘‘‘\.Youwillbegivenatask,asetoftools,andtherelevantdatabases\.ThetaskisdescribedintheTaskfield\.\#Herearesampledomainanduserdatabasesforprecisetoolcalling:\#\#Sampledomaindatabase:\[\[domain\_db\]\]\#Toolsets:\[\[tool\_sets\]\]\#UserId:\[\[user\_id\]\]\#UserTask:\[\[task\]\]\#AgentHistory:\[\[agent\_history\]\]Yourresponsemustbeinthefollowingformat,withalltagskept:‘‘‘agent\_state\#Step\[\[step\_num\]\]:Thought:<thought\>//Yourthoughthere</thought\>Action:<tool\>//Yourtoolcallhere\.Oneexampleis:\{"type":"query","function":\{"name":"get\_comic\_arc\_info","arguments":\{"title":"Spider\-Man","issue":15\}\}\}</tool\>‘‘‘Whenthisisthelaststep,andyouareconfidentthattheinformationgatheredissufficientandthatyouknowwhattoasktheuser,predict\[terminate\]asthetoolaction:‘‘‘agent\_state\#Step\[\[step\_num\]\]:Thought:<thought\>//Yourthoughthere</thought\>Action:<tool\>\[terminate\]</tool\>‘‘‘YoucannotleavetheActionfieldempty\.Youmustprovideavalidtoolcallwitharguments\.Themoreyougathernow,themoreyoucansucceedlater,sincetheuserwouldotherwisebeoverwhelmedbytoomuchinformation\.GeneratethenextstepofthoughtandactionbasedontheaboveinformationandtheNoticeabove:
Tool Agent post\-agent execution template[⬇](data:text/plain;base64,WW91IGFyZSBhIGhlbHBmdWwgdG9vbCBhZ2VudC4gWW91IGFyZSBnb29kIGF0IHBlcmZvcm1pbmcgdGFza3Mgd2l0aCB0b29scyBhbmQgZGF0YWJhc2UgcXVlcmllcy4KWW91IHdpbGwgYmUgZ2l2ZW4gYSB0YXNrLCB5b3VyIGludGVyYWN0aW9uIGhpc3Rvcnkgd2l0aCB0aGUgZW52aXJvbm1lbnQsIHRoZSBjbGFyaWZpY2F0aW9uIG9idGFpbmVkIGZyb20gdGhlIHVzZXIsIHRoZSBxdWVyeSB0b29scywgYW5kIHRoZSBhY3Rpb24gdG9vbHMuCllvdSBoYXZlIGFscmVhZHkgZ2F0aGVyZWQgc29tZSBpbmZvcm1hdGlvbiBhbmQgYXNrZWQgdGhlIHVzZXIgZm9yIGNsYXJpZmljYXRpb24uClRoaW5rIGFib3V0IHRoZSB0YXNrLCByZXZpZXcgdGhlIGV4cGxvcmF0aW9uIHJlY29yZGVkIGluIHRoZSBoaXN0b3J5LCBhbmQgdGhlbiBwZXJmb3JtIGFuIGFjdGlvbiB0b29sIHdpdGggaXRzIGFyZ3VtZW50cy4KCklmIHlvdSBhcmUgZ29pbmcgdG8gY29udGludWUgZ2F0aGVyaW5nIGluZm9ybWF0aW9uLCB5b3Ugc2hvdWxkOgoxLiBUaGluayBhYm91dCB0aGUgdGFzayBhbmQgd2hhdCBpcyBuZWVkZWQgdG8gY29tcGxldGUgaXQsIGFuZCBmaWxsIGluIHRoZSBUaG91Z2h0IGZpZWxkLgoyLiBEZWNpZGUgd2hpY2ggcXVlcnkgdG9vbCB0byB1c2UgYW5kIGZpbGwgaW4gdGh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ZCB0aGUgTm90aWNlIGFib3ZlOg==)Youareahelpfultoolagent\.Youaregoodatperformingtaskswithtoolsanddatabasequeries\.Youwillbegivenatask,yourinteractionhistorywiththeenvironment,theclarificationobtainedfromtheuser,thequerytools,andtheactiontools\.Youhavealreadygatheredsomeinformationandaskedtheuserforclarification\.Thinkaboutthetask,reviewtheexplorationrecordedinthehistory,andthenperformanactiontoolwithitsarguments\.Ifyouaregoingtocontinuegatheringinformation,youshould:1\.Thinkaboutthetaskandwhatisneededtocompleteit,andfillintheThoughtfield\.2\.DecidewhichquerytooltouseandfillintheActionfieldwiththetoolnameanditsarguments\.3\.Usethissteptoconsolidatetheexistinginformationthattheactiontoolwillneed\.\#Notice:\-Alwaysthinkstepbystep,andalwaysusethetoolstoperformtheaction\.\-AlwaysfillintheThoughtandActionfields,andneverskipastep\.\-Performonestepatatime\.Wrapaquerytoolcallin<tool\></tool\>tags,andwrapthefinalactiontoolin<terminate\></terminate\>tags\.\-Becauseofpermissionconstraints,youmayonlyusequery\-typetoolsonthedomaindatabase,andactiontoolsfortheusertask\.\-Tosavespace,doNOTmentionuser\_databaseordomain\_databaseintheActionfield\.Doingsobreakstheprogram\.\-ThetoolintheActionfieldmustbegiveninfull,withnothingomittedexceptdatabasecontents\.\-YoumustNOTusetoolsoutsidethetoolsetsprovidedintheTaskfield,andyoumustnotinventexternaltools\.Doingsocausesanerror\.\-Donothallucinatearguments\.Takethemfromthesampledatabasesandfromothertoolresponses\.\-Youmustwrapyourthoughtin<thought\></thought\>tagsandyourresponsein‘‘‘agent\_state\.\.\.‘‘‘\.Youwillbegivenatask,asetoftools,andtherelevantdatabases\.ThetaskisdescribedintheTaskfield\.\#Herearesampledomainanduserdatabasesforprecisetoolcalling:\#\#Sampledomaindatabase:\[\[domain\_db\]\]\#Toolsets:\[\[tool\_sets\]\]\#UserId:\[\[user\_id\]\]\#UserTask:\[\[task\]\]\#AgentHistory:\[\[agent\_history\]\]Yourresponsemustbeinthefollowingformat,withalltagskept:‘‘‘agent\_state\#Step\[\[step\_num\]\]:Thought:<thought\>//Yourthoughthere</thought\>Action:<tool\>//Yourtoolcallhere\.Oneexampleis:\{"type":"query","function":\{"name":"get\_comic\_arc\_info","arguments":\{"title":"Spider\-Man","issue":15\}\}\}</tool\>‘‘‘Whentheinformationgatheredissufficientandyouarereadytocompletethetask,emitthefinalactiontoolwrappedin<terminate\></terminate\>tags:‘‘‘agent\_state\#Step\[\[step\_num\]\]:Thought:<thought\>//Yourthoughthere</thought\>Action:<terminate\>\{"name"://predictedactiontoolname"type":"action","arguments":\{//argumentsfortheactiontool\}\}</terminate\>‘‘‘YoucannotleavetheActionfieldempty\.Youmustprovideavalidtoolcallwitharguments\.\[\[final\_step\_alert\]\]GeneratethenextstepofthoughtandactionbasedontheaboveinformationandtheNoticeabove:
GUI Coder Agent interface generation template[⬇](data:text/plain;base64,IyBSb2xlCllvdSBhcmUgYW4gQUkgYXNzaXN0YW50IHdpdGggZXhwZXJ0aXNlIGluIHBlcmZvcm1pbmcgYWN0aW9ucyBmb3IgdXNlcnMgYXMgd2VsbCBhcyBjb2RpbmcuIEluIHBhcnRpY3VsYXIsIHlvdSBhcmUgYSBjYXBhYmxlIFJlYWN0IGFuZCBUeXBlU2NyaXB0IHByb2dyYW1tZXIgYWJsZSB0byBnZW5lcmF0ZSByaWNoLCBkeW5hbWljLCBhbmQgaW50ZXJhY3RpdmUgVUlzLgoKIyBUYXNrCllvdSBtdXN0IGdlbmVyYXRlIGEgTWF0ZXJpYWwgVUkgUmVhY3QgY29tcG9uZW50IHRoYXQgZ2F0aGVycyBmcm9tIHRoZSB1c2VyIHRoZSBpbmZvcm1hdGlvbiBuZWVkZWQgdG8gY29tcGxldGUgYSB0YXNrLiBDYXJlZnVsbHkgY29uc2lkZXIgdGhlIHVzZXIgdGFzaywgdGhlIGludGVyYWN0aW9uIGhpc3Rvcnkgd2l0aCB0aGUgZW52aXJvbm1lbnQsIGFuZCB0aGUgYWRkaXRpb25hbCBpbmZvcm1h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GUgZnVuY3Rpb24geW91IG11c3QgaW1wb3J0IGl0IGFzCmBgYHR5cGVzY3JpcHQKaW1wb3J0IHsgc3VibWl0RGF0YSB9IGZyb20gIi4vYXBpIgpgYGAKCiMgRXhhbXBsZSBvdXRwdXQKUmV0dXJuIHlvdXIgcmVzcG9uc2UgYXMgYSBzaW5nbGUgYHRzeGAgY29kZSBibG9jaywgc3VjaCBhczoKYGBgdHN4CmltcG9ydCBSZWFjdCBmcm9tICJyZWFjdCI7CmltcG9ydCB7IHN1Ym1pdERhdGEgfSBmcm9tICIuL2FwaSI7Ci8vIC4uLiBhZGRpdGlvbmFsIGltcG9ydHMgaWYgbmVlZGVkCgpmdW5jdGlvbiBNeUJ1dHRvbigpIHsKLi4uCn0KCmZ1bmN0aW9uIE15RmllbGQoKSB7Ci4uLgp9CgpleHBvcnQgZnVuY3Rpb24gQ29tcG9uZW50KCkgewogcmV0dXJuIDw+CiA8TXlGaWVsZC8+CiA8TXlCdXR0b24vPgogPC8+Cn0KYGBgCgojIFVzZXIgVGFzazogW1t0YXNrXV0KCiMgSW50ZXJhY3Rpb24gSGlzdG9yeToKW1thZ2VudF9oaXN0b3J5XV0KCiMgUmVhc29uaW5nOgpbW3JlYXNvbmluZ19mb3JfdWldXQpOb3cgZ2VuZXJhdGUgdGhlIGNvZGUgZm9sbG93aW5nIHRoZSByZWFzb25pbmcgYWJvdmUgYW5kIHRoZSBOb3RpY2U6)\#RoleYouareanAIassistantwithexpertiseinperformingactionsforusersaswellascoding\.Inparticular,youareacapableReactandTypeScriptprogrammerabletogeneraterich,dynamic,andinteractiveUIs\.\#TaskYoumustgenerateaMaterialUIReactcomponentthatgathersfromtheusertheinformationneededtocompleteatask\.Carefullyconsidertheusertask,theinteractionhistorywiththeenvironment,andtheadditionalinformationthattheusermustprovide\.ThengenerateadynamicinteractiveUIusingTypeScript,MaterialUI,andReactsothattheusercansupplythemissinginformationrequiredtocompletethetask\.Youhaveonlythis\*\*onechance\*\*tointeractwiththeuser\.\#Notice\-YoumayonlyuseMaterialUIcomponentsorCSS\-styledHTMLelementstobuildtheUI\.\-Youmustuseasinglefilenamed‘Component\.tsx‘thatexportsthecomponenttobedisplayed,e\.g\.‘exportfunctionComponent\(\)\{\.\.\.\}‘\.\-Nopicturesorimagesareallowed,onlyinteractiveelements\.\-Thelayoutshouldbeclearanduser\-friendly,withexplicitinstructionsandlabels\.Youareencouragedtousediverseelements\.\-Thecomponentishostedinsideanexistingapplication,soreturnaself\-containedcomponentthatcanbeimportedandused\.Thehostcontrolsthecomponent’sbackgroundandposition\.\-Thelayoutmustberesponsive,sincethescreendimensionsareunknown\.Assumeroughly1280x720\.\-Youmayselectimportantdatafromtheinteractionhistoryanddisplayittomaketheuser’staskeasier\.\-Youmaysplittheimplementationintoseveralcomponents,butyoumustexportonlyasinglefunction‘Component‘\.\#Gatheringfeedbackfromtheuser\-Selectandusetherightdatafromtheinteractionhistory\.Donotexpecttheusertoprovideallthedatayouneed\.\-Tosavetheuserinputyoumustcallthe‘submitData‘function,whichacceptsaJSONobjectandsendsittotheserver\.Ithastheinterface:‘‘‘typescriptasyncfunctionsubmitData\(data:object\):Promise<void\>;‘‘‘Tousethefunctionyoumustimportitas‘‘‘typescriptimport\{submitData\}from"\./api"‘‘‘\#ExampleoutputReturnyourresponseasasingle‘tsx‘codeblock,suchas:‘‘‘tsximportReactfrom"react";import\{submitData\}from"\./api";//\.\.\.additionalimportsifneededfunctionMyButton\(\)\{\.\.\.\}functionMyField\(\)\{\.\.\.\}exportfunctionComponent\(\)\{return<\><MyField/\><MyButton/\></\>\}‘‘‘\#UserTask:\[\[task\]\]\#InteractionHistory:\[\[agent\_history\]\]\#Reasoning:\[\[reasoning\_for\_ui\]\]NowgeneratethecodefollowingthereasoningaboveandtheNotice:
User Simulator interface operation template[⬇](data:text/plain;base64,IyBSb2xlCllvdSBhcmUgcm9sZS1wbGF5aW5nIGFzIGEgaHVtYW4gVVNFUiBpbnRlcmFjdGluZyB3aXRoIGFuIEFJI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CiBhd2FpdCAuLi4KYGBgCgpHZW5lcmF0ZSB5b3VyIFBsYXl3cmlnaHQgY29kZSBmdW5jdGlvbiBoZXJlOg==)\#RoleYouarerole\-playingasahumanUSERinteractingwithanAIagenttocompleteaspecifictask\.Yourgoalistogeneraterealisticandnaturalresponsesthatausermightgiveinthisscenario\.TheAIagentinteractswithyouthroughaUI,soyouwillbeaskedtofillininformationinthatUI\.\#YourtaskGiventhesourcecodeofaUI,itsARIAsnapshot,andagoal,generatePlaywrightcodethatinteractswiththeUItoachieveyourgoal\.\#InformationabouttheUI\#\#UIcode:‘‘‘tsx\[\[tsx\_code\]\]‘‘‘\#\#ARIAsnapshot:‘‘‘aria\_snapshot\[\[aria\_snapshot\]\]‘‘‘\#Yourspecifictasktoolcall\(INVISIBLETOTHEAGENT\):‘‘‘tool\_calling<tool\>\[\[original\_action\_tool\_calling\]\]</tool\>‘‘‘\#Notice:\-Writeasinglefunctionnamedinteract\_with\_pagethatusesPlaywrighttointeractwiththeUIaccordingtoyourtask\.Itmusthaveexactlythisname,andyoumustaimtocompletethetaskfully\.\-Thefunctionmustacceptoneargumentoftype‘Page‘andbeenclosedin‘‘‘python\.\.\.‘‘‘tags\.\-Thetoolcallaboveisyourendgoal\.UnderstanditsdetailsandwritecodethatplausiblyreachesthatgoalthroughtheUI\.\-ImporteverymoduleandfunctionyouneedfromPlaywright,suchas‘Page‘\.Withouttheimportsthecodewillnotrun\.\-ThePlaywrightversionis1\.53\.0\.Everyfunctionandmethodyouusemustbecompatiblewithit\.\-Youdonotneedtowaitforelementstoload,sincetheUIisalreadyloaded\.\#Exampleoutput‘‘‘pythonimportasynciofromplaywright\.async\_apiimportPage\.\.\.asyncdefinteract\_with\_page\(page:Page\):\#Yourinteractioncodehere\.Keepthefunctionnameandformatexactlythesame\.await\.\.\.‘‘‘GenerateyourPlaywrightcodefunctionhere:
Initial reward judge scoring template[⬇](data:text/plain;base64,WW91IGFyZSBhbiBleHBlcnQgY29kZSByZXZpZXdlciB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aXR5OiBmb3JtIHdpdGggZW1haWwvcGhvbmUgaW5wdXRzLCB2YWxpZGF0aW9uIG9uIHN1Ym1pc3Npb24sIEFQSSBjYWxsIHRvIHN1Ym1pdERhdGEgZW5kcG9pbnQsIHN1Y2Nlc3MvZXJyb3IgbWVzc2FnZSBkaXNwbGF5LiBBUklBIHNuYXBzaG90cyBzaG93IGJvdGggY29kZXMgcmVuZGVyIHNpbWlsYXIgVUkgc3RydWN0dXJlIHdpdGggZm9ybSBpbnB1dHMgYW5kIHN1Ym1pdCBidXR0b24uIE1pbm9yIGRpZmZlcmVuY2U6IEdUIGluY2x1ZGVzIGEgbG9hZGluZyBzcGlubmVyIGR1cmluZyBzdWJtaXNzaW9uICh2aXNpYmxlIGluIEdUIEFSSUEgYXMgJ3N0YXR1czogbG9hZGluZy4uLicpIHdoaWNoIGlzIG1pc3NpbmcgaW4gcHJlZGljdGVkIGNvZGUsIGhlbmNlIGZlYXR1cmVfY29tcGxldGVuZXNzIGlzIDQgaW5zdGVhZCBvZiA1LiBPdGhlcndpc2UgZnVuY3Rpb25hbGx5IGVxdWl2YWxlbnQuIn19CgpDUklUSUNBTCBSRVFVSVJFTUVOVFM6Ci0gUmV0dXJuIHZhbGlkIEpTT04gb25seSAtIG5vIG1hcmtkb3duIGNvZGUgZmVuY2VzLCBubyBleHBsYW5hdG9yeSB0ZXh0IGJlZm9yZSBvciBhZnRlcgotIEFsbCBkaW1lbnNpb24gc2NvcmVzIE1VU1QgYmUgaW50ZWdlcnMgaW4gdGhlIHJhbmdlIFswLCA1XQotIFVzZSB0aGUgZnVsbCByYW5nZSBvZiBzY29yZXMgLSBkb24ndCBjbHVzdGVyIGFyb3VuZCAzLTQ=)YouareanexpertcodereviewerevaluatingTypeScriptcodeimplementations\.\#\#REVIEWCONTEXTYouareprovidedwith:1\.\*\*USERTASK\*\*:Theoriginaltaskdescriptionorrequirementthatthecodeshouldaccomplish2\.\*\*GROUNDTRUTHCODE\*\*:Areferenceimplementationthatcorrectlysolvesthetask3\.\*\*PREDICTEDCODE\*\*:Theimplementationtobeevaluated4\.\*\*EXECUTIONRESULT\*\*:Bothcodeshavebeenexecutedandrenderedsuccessfully,withaccessibilitytreesprovided\#\#REVIEWTASKYourgoalistoevaluatehowwellthePREDICTEDCODEaccomplishestheUSERTASKcomparedtotheGROUNDTRUTHCODE\.Evaluatethepredictedcodeonthesedimensions:\#\#\#1\.FUNCTIONALEQUIVALENCE\(MostImportant\)Doesthepredictedcodeimplementthesamecorefunctionalityasthegroundtruth?\-Arethesameuserinteractionssupported\(buttons,forms,inputs\)?\-Doesithandlethesameeventsandactions?\-DoesitproducesimilaroutputsorUIstates?\-DoesitcallthesameorequivalentAPIs/functionswithcomparableinputs/outputs?\#\#\#2\.FEATURECOMPLETENESSAreallkeyfeaturesfromthegroundtruthpresentinthepredictedcode?\-CheckformajorUIcomponents\(forms,buttons,modals,lists,etc\.\)\-Checkforstatemanagementpatternsandderivedstate\-Checkforvalidationlogicanduserguidance\-CheckforAPIintegrations\-Checkforconditionalrenderinganduserfeedback\-Checkforaccessibilityfeatures\(labels,roles,keyboardflow\)thatarevisibleintheARIAsnapshot\#\#\#3\.IMPLEMENTATIONCORRECTNESSBasedontheexecutionresults,doesthepredictedcodeworkcorrectly?\-TheARIAsnapshotshowswhatUIelementsareactuallyrendered\-Verifythatkeycomponentsfromthegroundtruthappearinthepredictedcode’soutput\-Checkthatthepredictedcodesuccessfullyrenderswithouterrors\-Ifthepredictedcodeincludesmulti\-steporconditionalflows,confirmtheinitialstep/stateiscorrectlyrenderedandactionable\#\#\#4\.TASKALIGNMENTDoesthepredictedcodesolvetheuser’soriginaltask?\-EvenifimplementationdiffersfromGT,doesitachievethesamegoal?\-Arethereanycriticalmissingpiecesthatpreventtaskcompletionorcreateincorrect/unsafebehavior?\#\#EVALUATIONPRINCIPLES\*\*FOCUSONFUNCTIONALITY,NOTIMPLEMENTATIONDETAILS\*\*\-Twodifferentimplementationscanbefunctionallyequivalent\-Don’tpenalizefordifferentvariablenames,stylingapproaches,orcodestructure\-DOpenalizeformissingfeatures,brokenfunctionality,orincompleteimplementations\*\*USETHEEXECUTIONRESULTS\*\*\-TheARIAsnapshotsshowwhatactuallyrenders\-UsethistoverifythatkeyUIelementsarepresentandfunctional\-IfacomponentisinthecodebutnotintheARIAsnapshot,itmaynotbeworking\*\*BEFAIRBUTSTRICT\*\*\-Givecreditforcorrectimplementations,eveniftheydifferfromGT\-Don’tgivecreditforpartiallyimplementedfeaturesthatwon’twork\-Missingcriticalfeaturesshouldsignificantlyimpactthescore\*\*SCORINGGUIDELINES\*\*Foreachdimension,assignanINTEGERscorefrom0to5:\-\*\*5\*\*:Excellent\-FunctionallyequivalenttoGT,allkeyfeaturespresentandworkingcorrectly\-\*\*4\*\*:Good\-Mostfeaturespresentandworking,onlyminordifferencesormissingminorfeatures\-\*\*3\*\*:Adequate\-Corefunctionalitypresentbutmissingseveralfeaturesorhasnotableissues\-\*\*2\*\*:Poor\-Somefunctionalitypresentbutmajorfeaturesmissingornotworkingcorrectly\-\*\*1\*\*:VeryPoor\-Minimalfunctionality,missingmostfeaturesorfundamentallyincorrectapproach\-\*\*0\*\*:Failed\-NomeaningfulimplementationorcompletelywrongapproachUsetheFULLRANGEofscores\.Donotclusterallscoresat3\-4\.Ifcodeisexcellent,give5\.Ifcodeisbroken,give0\.\#\#USERTASK\{user\_task\}\#\#GROUNDTRUTHCODE‘‘‘typescript\{ground\_truth\_code\}‘‘‘\#\#GROUNDTRUTHEXECUTIONRESULTThegroundtruthcodewasexecutedsuccessfully\.Hereisitsaccessibilitytree:‘‘‘\{gt\_aria\_snapshot\}‘‘‘\#\#PREDICTEDCODE‘‘‘typescript\{predicted\_code\}‘‘‘\#\#PREDICTEDCODEEXECUTIONRESULTThepredictedcodewasexecutedsuccessfully\.Hereisitsaccessibilitytree:‘‘‘\{pred\_aria\_snapshot\}‘‘‘\#\#OUTPUTFORMATReturnONLYavalidJSONobjectwiththisexactschema\(nomarkdown,noextratext\):\{\{"functional\_equivalence":<integer0\-5\>,"feature\_completeness":<integer0\-5\>,"implementation\_correctness":<integer0\-5\>,"task\_alignment":<integer0\-5\>,"reasoning":"<conciseexplanationofthescores,mentioningkeyfeaturespresent/missing,comparingARIAsnapshots,andnotinganycriticaldifferences\>"\}\}Example\(donotcopyliterally\):\{\{"functional\_equivalence":5,"feature\_completeness":4,"implementation\_correctness":5,"task\_alignment":4,"reasoning":"Predictedcodeimplementsallcorefunctionality:formwithemail/phoneinputs,validationonsubmission,APIcalltosubmitDataendpoint,success/errormessagedisplay\.ARIAsnapshotsshowbothcodesrendersimilarUIstructurewithforminputsandsubmitbutton\.Minordifference:GTincludesaloadingspinnerduringsubmission\(visibleinGTARIAas’status:loading\.\.\.’\)whichismissinginpredictedcode,hencefeature\_completenessis4insteadof5\.Otherwisefunctionallyequivalent\."\}\}CRITICALREQUIREMENTS:\-ReturnvalidJSONonly\-nomarkdowncodefences,noexplanatorytextbeforeorafter\-AlldimensionscoresMUSTbeintegersintherange\[0,5\]\-Usethefullrangeofscores\-don’tclusteraround3\-4相似文章
没有再做一个 GPU 终端渲染器,而是训练了一个 126 万参数的模型,把 htop、vim、emacs 等 TUI 转换为真正的 UI 组件 [R]
作者用一个仅 126 万参数的轴向 Transformer 模型,将 htop、vim、emacs 等 TUI 界面的单元格解析为角色标签,再确定性地转换为 A2UI 声明式 UI 组件,客户端完全不再需要终端模拟器。模型在真实屏幕上的 mIoU 为 0.51,约 40% 的屏幕可直接命中模板而无需运行模型,代码与标签已开源。
@rabi_guha:ChatGPT 昨天推出了他们的生成式 UI 版本。我们把它拆解分析了一下,tl;dr……
作者逆向工程了 OpenAI 新推出的 ChatGPT Intelligent UI(生成式 UI),解析其架构:模型输出一种名为 DIL 的中间语言(Markdown + JSX 风格标签 + JavaScript),由服务端编译为 JS 程序与 JSON 文档,再由客户端沙箱运行时渲染为原生组件。
@snwiki238337: 目前的 Harness 优化,有两个大方向。 一统全局脚手架,试图用一套Prompt 和控制逻辑。但随着业务场景增加,针对财务表格优化的指令往往会干扰代码生成任务,导致严重的规则冲突与上下文过度膨胀。 另一种是针对每个特定领域单独复制一份…
Google Cloud AI Research 与 UIUC 合作提出 OO-Harness,将面向对象设计(继承、封装、多态)引入 Agent Harness 的自动演化,通过类层级体系实现专用脚手架的代码复用与安全降级,在三大长程基准上主指标从 61.62% 提升至 77.41%,且在分布外任务上显著优于传统自演化方法。
Macaron-A2UI:面向个人智能体的生成式UI模型
介绍了Macaron-A2UI,一种用于个人智能体的生成式UI模型,可综合动态界面与轻量级可执行操作,超越纯文本聊天。本文引入大规模语料库、A2UI-Bench基准,并使用LoRA微调和强化学习训练了高达754B参数的模型,取得了显著成果。
@kejunz: 传统 UI 注定会被「生成式 UI」取代,只不过它不是消息流中的一张「卡片」,这两天做了一个探索(数据都是Mock的) 1. 交互模式:用户的顺序式操作 / 固定的界面 → Agent 驱动的事件流,界面按需生成 / 销毁 2. 状态管理…
作者提出传统UI将被生成式UI取代的观点,并从交互模式、状态管理、输出方式、任务模式、可观测性和安全模式六个方面对比了转变方向,展示了Agent驱动的事件流和动态组件树等新范式。