AI + QA

Google’s mirror dimension sets the bar for agent test environments

On 19 November, Aaron Selya and Charles Qian of Google’s Chrome AI Security team described how Google tests Chrome’s auto browse agent. It does not point the agent at the web. It points it at a “mirror dimension”: a sealed sandbox holding thousands of generated websites built around everyday user journeys, behind a local proxy that answers every request. The agent can type youtube.com and get a page that loads normally. It never touches the real one.

The day before, Reuters reported internal Meta posts saying its Muse agent had sent staff messages they had not asked for, including bank balances that were not theirs. Meta said many of the flagged messages were hallucinations. Reuters could not establish whether real data was being shown or invented.

Put the two stories side by side and the lesson is plain. Agent evaluation is test-environment engineering. Google has shown what the bar looks like, and most product teams are nowhere near it.

What Google actually built

Google makes two arguments against testing on the live web. It is ineffective, because the web changes underneath you, and irresponsible, because an agent with a browser can do real harm. So the rule is that effects from one run must never carry into the next, and every run starts from a clean, identical baseline.

The agent drives headless Chrome inside a gVisor sandbox. Traffic goes to a local proxy that serves generated sites and creates TLS certificates on the fly, signed by a custom root certificate authority installed in the sandboxed browser. A human defines the user journeys. A research agent writes a site spec, a builder agent writes the code, and critic agents check accessibility semantics, form validation edge cases, console errors and responsive layouts.

Then Google attacks its own agent. Indirect prompt injections are planted as images, page text, malicious aria labels or altered WebMCP tool responses, at any step of a long task.

The detail we found most useful is about “eval awareness”: the model suspecting it is under test and behaving differently. Telling it to visit a sandbox URL gave the game away. So did an odd query parameter used to select injected attacks, which is why Google moved that selection into HTTP headers such as X-Sandbox-Injection-Key. Sites that felt static or half-built were also a tell. A test environment that looks like a test environment tells you how the agent behaves in test environments.

Why the Muse story is a testing problem

Read the Reuters report as a QA lead rather than a privacy officer. The question nobody could answer was where the numbers in the agent’s output came from.

That question is only answerable if your test data is traceable. If every test user is seeded with distinct, recognisable values (balances, names, reference numbers that exist in exactly one fixture), a value in the wrong session points straight to its source. A value that exists in no fixture is a hallucination. A value from another user’s fixture is a leak. Those are different defects with different fixes, and without seeded data you cannot tell them apart.

We do not know how Meta tests Muse, and we are not claiming this would have caught anything. The point is narrower: an environment built for traceability turns an unanswerable question into a lookup.

The same discipline at your own tool boundary

Most product teams do not need a synthetic internet. Their agent calls a handful of tools: a CRM, a ticketing API, a document store, a payments service. The boundary is smaller, but the requirements are the ones Google wrote down.

  • Realistic fakes that keep state. A stub that returns the same JSON every time tests nothing about a multi-step task. If the agent creates a ticket, the next call to list tickets should include it.
  • A hard reset between runs. Every run starts from the same snapshot. If your eval shares a staging database with yesterday’s runs, you are measuring residue.
  • Separate seeded data per test user. Distinct values per account, so cross-account leakage is caught by string match rather than by argument.
  • Control over every tool response. You choose what each tool returns, including errors, timeouts, empty results and malformed payloads.
  • Attack text where the agent reads. Instructions hidden in tool outputs, retrieved documents, email bodies and form fields, at the first step and at the seventh.
  • Nothing that says “test”. Hostnames, IDs and data that look like production.

This is how we approach our own work for a regulated bank. Our sanctions screening and law-enforcement request intake agents cannot be evaluated against live systems, so they are evaluated against replicas we control. For the intake agent, the incoming request is itself the untrusted input: it arrives from outside, and anything inside it could be an instruction dressed up as content. The environment has to let us plant that text deliberately and watch what the agent does with it.

Repeatability matters more than volume

Google says its automated red-teaming pipeline produces more than 1,000 test candidates a day per security engineer, over 30 times what one person could manage by hand. That figure will get quoted. It is the least important number in the post.

What makes the volume worth anything is that every candidate runs from the same clean baseline. As Security Boulevard noted, the same tests can be re-run to check whether a security fix actually worked. A score you cannot reproduce is not evidence. If your agent passes on Tuesday and fails on Wednesday with no code change, you have learned about your environment, not your agent.

Agents are non-deterministic, so you will run each scenario several times and look at pass rates. That only means something if the environment is fixed. Variance from the model is signal. Variance from a shared staging database or leftover test data is noise you have chosen to keep.

Google expects sealed sandboxes to become the baseline for agent safety research. We would go further: for any agent that touches customer data or money, a resettable, seeded, attackable environment is the minimum before an evaluation result counts as evidence.

What to do this quarter

If you own quality for a product that ships an agent, start here:

  1. List every tool your agent can call and write down what your eval does at each one today: live call, shared staging, static stub or stateful fake.
  2. Replace live calls and shared staging first, with stateful fakes and a snapshot restored before every run.
  3. Seed each test user with unique, searchable values and add an automatic check that flags any value appearing in the wrong user’s output.
  4. Inject instructions into tool outputs and documents at several steps of your longest workflows, and record what the agent does.
  5. Run the same suite twice with no changes. If results differ beyond what model variance explains, fix the environment before trusting any score.

Build the environment and the evaluation before you extend the agent, not after launch when you cannot explain what it said.

We build this kind of harness as part of our AI assurance and evaluation work. For an agent whose input is untrusted by design, see our law-enforcement request intake agent.

Building something that has to hold up?

Bring the process, not a specification. We will tell you honestly whether an agent is the right answer.