A November 2026 preprint finds a steering fix for unavailable web actions repairs 85.4 percent in JSON but 58.1 in Markdown. Gate actions; report repair and damage.
An action that is not on the page
Web agents choose actions from a list the harness builds from the current page: click this link, type into that field. A recurring failure is an agent proposing an action that is not in the list at all, often a reasonable-sounding one such as clicking a search button the page does not have. A preprint submitted on 13 November 2026 and listed in the 16 November arXiv announcements, "Can Mechanistic Interpretability Help Explain LLM Agent Failures? A Case Study on Web Element Hallucination" by Mohamed Aghzal, Mor Geva, Gregory J. Stein and Ziyu Yao (arXiv 2611.18514), studies this failure inside a model and reports a result that matters for anyone who ships agent fixes.
The authors run Qwen2.5-7B-Instruct on live websites from Online-Mind2Web, at most ten interactions per task, with a JSON list of available actions in the prompt. Their dataset has 300 episodes and 2,071 actions, of which 32.6% reference an action not in the list. A linear probe on the model's internal state at the last prompt token predicts these failures before generation with 0.80 AUC. Steering the model along the probe's direction corrects many of them.
Then they change the interface. The paper's appendix replaces the JSON action list with a numbered Markdown list, and the model is also instructed to answer in that list format rather than JSON. The same steering vector, applied the same way, corrects far fewer of the failures.
Two numbers, two denominators
The paper reports each intervention as a pair: a fix rate, the fraction of confirmed hallucinated cases that become valid, and a break rate, the fraction of confirmed valid cases that become hallucinated. Its Table 6 compares the best configuration, a vector at one layer and position applied with strength 40, across the two formats:
| Interface | Fix rate | Break rate |
|---|---|---|
| Original JSON action list | 85.4% | 7.0% |
| Numbered Markdown list | 58.1% | 7.0% |
The fix rate fell by 27.3 points while the break rate stayed the same. The authors read this as a sign that the learned direction is entangled with the action format instead of encoding only the hallucination. Because both the action list and the required response format changed together, the experiment does not say which of the two caused the drop; it says the intervention did not transfer across that change of interface.
These figures describe one model, one benchmark and one set of prompts. They are not a general rate for web agents, and the table reports point estimates.
Detection, repair and damage are three questions
The paper also separates predicting a failure from fixing it. The probe ranks actions by how likely they are to be hallucinated before the model writes them; the steering vector changes what the model writes. A good detector does not imply a good repair, and a repair that works on the cases it targets can still harm cases that were fine. An evaluation of any intervention therefore needs three answers: how well the failure is detected, what share of failures the intervention repairs, and what share of correct behaviour it damages. A single score cannot carry all three.
Why the denominators matter in practice
A fix rate is measured over the actions that were invalid before the fix. A break rate is measured over the actions that were valid. Neither is the share of good actions overall, and neither is task success. A team that reports one headline number, such as the invalid-action share before and after, mixes the two populations and hides the trade.
The companion example makes this concrete with synthetic counts, not the paper's data: 200 actions per format, 60 of them invalid before the intervention. In the JSON format the intervention repairs 51 of 60 and damages 7 of 140; in the Markdown format it repairs 33 of 60 and damages 7 of 140.
| Format | Repair rate | Damage rate | Invalid share before | Invalid share after |
|---|---|---|---|---|
| JSON | 0.85 | 0.05 | 0.30 | 0.08 |
| Markdown | 0.55 | 0.05 | 0.30 | 0.17 |
| Pooled | 0.30 | 0.125 |
The pooled line looks like a solid improvement and hides that one interface is twice as bad as the other after the fix. If the Markdown format is what the agent will meet next quarter, the pooled number is the wrong one to ship on.
What stays deterministic
The paper is about explaining a failure inside a model, and its conclusion is that the explanation and the fix are both partial. For engineering, the more useful conclusion is about where to put a guarantee. An action that is not in the offered list can be detected without any model internals, every time, in every format: compare the proposed action with the list before anything reaches the browser.
The companion example implements that check for both interface formats. It renders the offered actions as JSON or as a numbered list, parses a reply in either format, and accepts an action only if its type and selector exactly match an offered entry:
def check(reply, fmt, offered=OFFERED):
try:
typ, sel, value = parse(reply, fmt)
except (ValueError, KeyError, json.JSONDecodeError) as e:
return {'ok': False, 'reason': f'unparseable: {e}'}
if not any(a['type'] == typ and a['selector'] == sel for a in offered):
return {'ok': False, 'reason': f'{typ} {sel} is not in the offered list'}
if typ == 'TYPE' and not value:
return {'ok': False, 'reason': 'TYPE needs a value'}
return {'ok': True, 'action': [typ, sel, value]}On four sample replies per format the gate makes the same decisions in both: it accepts the valid click and the valid typing action, rejects a click on a search button that is not offered, and rejects either a typing action with no value or a reply with no action block. A rejected action goes back to the agent with the reason, the same pattern as a retryable tool argument error.
This does not make interventions like steering pointless. A gate catches an invalid action after the model has committed to it; a good intervention reduces how often that happens, which saves a turn and keeps the agent's plan on track. But the gate is what guarantees that no unoffered action is executed, and it does not lose effectiveness when someone reformats the prompt.
Version the interface with the fix
The transfer result suggests a rule for any model-level fix, whether steering, fine-tuning, a prompt patch or a decoding constraint: record the interface it was measured on as part of the fix. That means the action list format, the response format, the system prompt version and the model checkpoint. When any of them changes, the fix's numbers are no longer evidence, and the evaluation must be rerun.
In practice:
- Keep the deterministic action gate permanently, and log every rejection with the interface version.
- Evaluate interventions per interface format, reporting repair over previously invalid actions and damage over previously valid ones, never only a pooled rate.
- Treat a prompt-format change as a model change for the purposes of your evaluation gates.
- Track the gate's rejection rate in production as the drift signal. A rise after a template change is the transfer failure the paper describes, observed in your own system.
Limits
The paper studies one 7B open model with access to its internal activations; hosted models do not expose the probes or steering it uses. Its format change altered two things at once. The synthetic table here illustrates the arithmetic of separate denominators and is not a reproduction of any experiment. What carries over directly is the evaluation discipline and the deterministic check, both of which need nothing from the model's internals.
Verification
The companion tests pin the gate decisions for both formats, check that selectors must match exactly, and pin the per-format repair and damage rates and the pooled figure that hides them. To apply the idea to your own agent, collect a sample of its proposed actions, run them through an equivalent gate, and measure the rejection rate separately for each prompt format you have shipped.