Recorded computer interactions give an agent examples of how to complete tasks. They can include mistakes and recovery, but they only cover the paths that were collected. Collecting experience from the agent's own attempts requires an environment that responds to its actions.

For training, those attempts need to be repeatable. Each needs a known starting state, without changes left over from the previous attempt. We also need to establish whether the task succeeded without relying on the agent's own account. Live services rarely give us control over all of this, and running isolated copies may be impractical or expensive.

Synthetic environments give us other options. We can build an executable replica with the functionality needed for training, or use a learned model to predict responses from previous interactions. The replica gives us state we can inspect and rules we can test. The learned model can generate experience without running the application at every step, though its predictions may be wrong. The question is how much of the original application's behaviour each needs to preserve for that practice to be useful.

Environment construction

When the application's code is available, an isolated instance is the simplest starting point. Replacing external services with local test implementations is already work, but at least the application's own rules are present. Production accounts and data have no place in that setup.

A replica becomes useful when we cannot run the original or need more control over it. The difficult part is specifying behaviour that screenshots do not reveal. Permissions, persistence and retries all affect what an agent should learn. A page can look right while implementing entirely different rules. Documentation and recorded interactions help establish those rules, though some behaviour will remain unknown.

Coding agents can do much of the construction. VeriEnv demonstrates generated websites and a state-inspection SDK, followed by testing and repair through Playwright. That makes building more environments plausible. It does not make their behaviour correct by default. Independently checked workflows give us a reason to trust its training data beyond the coding agent's own tests.

The training system also needs access the learner must not have. It can inspect the database, restore fixtures and inject failures. The policy gets the task and the browser. Keeping those controls outside the policy's tools and network access prevents database shortcuts from passing as computer-use ability.

The same distinction applies to observations. An element list can help an agent learn navigation and workflow decisions without teaching it where to click in a screenshot. Textual training may still be useful for a visual policy, but that transfer is something to measure rather than assume.

State and resets

Reset behaviour sounds like infrastructure detail until it changes the reward. VeriEnv's human evaluation reports 76% judge correctness. A common error was resetting the database without preserving its data-generation seed. The checker expected records that the reset had changed.

The reset therefore needs its own tests. Repeating a known action sequence from the same fixture should produce the same relevant state and observations. That requires more than restoring database rows. Browser storage, caches, pending jobs, clocks and random seeds can all affect the next attempt. Versioned fixtures and isolated rollout instances make discrepancies easier to reproduce.

Control over execution also lets us produce failures worth learning from. A timeout before a transaction commits and a lost response after it commits can look identical in the browser. The correct response depends on whether the operation took effect. An error banner alone cannot reproduce that distinction.

Expired authentication, stale data and concurrent writes create similar decisions about whether to inspect, retry or stop. I would rather collect attempts under those conditions than produce another set of paraphrased instructions against the same happy path.

Task generation and grading

Task generation becomes more useful when it starts from application state. An initial fixture and a reachable outcome give us something concrete to ask for and check. Generating an instruction first leaves us to discover whether the application can fulfil it at all.

The grader needs to distinguish the requested change from everything else the agent did. A task can appear complete even though the agent changed the wrong record, performed the operation twice or altered another account's data. A final-state check can also miss forbidden intermediate actions. Those require an event log.

Testing graders with these incorrect outcomes exposes problems that known successes alone would miss. They should reject a success message with no persisted change and accept different valid ways of reaching the requested result. Otherwise, we risk rewarding the interface's claims or enforcing our preferred action sequence instead of the user's goal.

Feasibility needs a browser check too. A database operation may be valid while the interface makes it unreachable. An SDK-only solution would not establish that the learner had a chance of succeeding.

Once those checks exist, a language model can generate alternate instructions and task parameters. Each variant still needs to agree with its grader. Deterministic evaluation removes one source of uncertainty, but a deterministic check of the wrong goal is still wrong. Independently authored tasks and graders matter here because the same model can repeat an assumption across the application, instruction and evaluator.

Training data

The first training baseline need not involve a learned simulator. Verified successful trajectories already provide supervised fine-tuning data. VeriEnv uses rejection-based fine-tuning in its policy-training experiment, rather than reinforcement learning.

Failures belong in the archive even when they do not belong in the imitation dataset. They expose environment bugs and provide examples of invalid transitions for simulator training. Successful recovery trajectories are useful demonstrations in their own right. The distinction is between preserving an attempt for analysis and teaching the policy to repeat its actions.

A useful record connects the task and fixture version to each observation, action, next observation and reward. Fault schedules and browser traces make replay possible. Privileged state changes belong in a separate record so they cannot leak into policy inputs.

More data should also mean different decisions. Changes in permissions, initial state and task dependencies can require different behaviour. For visual policies, layout and viewport variation add grounding demands. Holding out whole combinations or environments gives a stronger test than splitting neighbouring transitions from the same trajectory.

Task selection can follow the policy's current ability. ScaleCUA's Frontier Sampling favours tasks near that ability while retaining random exploration. Mixed success and failure can signal useful difficulty. Unfortunately, unreliable resets and graders can produce the same pattern. A sampler cannot resolve that ambiguity from success rates alone.

Learned simulation

A learned simulator makes sense when running or resetting the application is expensive. If policy inference already dominates collection time, replacing a cheap local application with another model may make the system slower. That is a reason to measure collection costs before building the extra layer.

An experience model learns to predict the next observation and reward from executed transitions. The task, interaction history and retrieved examples provide context. DreamGym uses this approach to supply synthetic interactions for PPO or GRPO policy training. Its experiments use textual observations, not screenshots.

The concern is what happens over several steps. Individually plausible predictions can accumulate into a state the application could never reach. Training on invalid actions and recovery helps cover more than successful paths, but it does not establish that new rollouts are faithful. Generated and executed records need to remain distinguishable.

The combination I would test uses executable replay to audit simulated trajectories. This is a proposed extension, not a result established by these papers. The simulator generates a short rollout from a known fixture. The executable environment then restores that fixture and replays the actions, comparing available targets, relevant observations, errors and reward after each step.

The first mismatch matters more than an overall similarity score. Once an action depends on a state the replica never reached, later steps cannot be validated by continuing the replay. I would exclude that suffix from the audited training batch and retain the actual transition as a correction for the simulator. A missing action target counts as a mismatch, not an invitation to substitute another click.

Random audits would complement checks of retries and destructive operations. The replica would still need separate checks against the target application. Agreement between two approximations is not enough when both can share the same mistake.

There is also a hard limit to what an executable grader proves. Applied to model-invented state, it cannot tell us whether the transition into that state was possible. Replay checks the sampled trajectories. The rest retain simulator risk. Auditing every step may remove the cost advantage, so the useful question is how much error remains at an audit rate we can afford.

Transfer evaluation

A comparison needs executable-only training, simulator-only training and the audited hybrid from the same starting policy, alongside a no-additional-training baseline. Each condition needs the same access to seed data. Construction, collection, simulator training, inference and auditing all belong in the cost comparison. Counting fewer application interactions alone would favour the simulator before the experiment began.

The evaluation belongs in the target applications, with held-out tasks and layouts. Completed work matters, but so do duplicate operations, unauthorised changes and false declarations of success. Repeated runs can show how stable those results are. Cost at a matched completion rate would tell us more than rising rewards inside the simulator.

I would keep the hybrid only if it improves that result. A reliable executable environment is already useful training infrastructure. It does not need a learned simulator to be worth building.

Sources