# Screenshots Are Not State: Transactional Verification and Compilation for GUI Agents

> CommitJIT checks GUI agents at state-changing commits, then reads back results instead of judging every screenshot. In paired tests across three ST-WebAgentBench apps (N=44), it cut silent errors from 95.5% to 27.3% while policy-compliant completion rose from 4.5% to 6.8%.

- arXiv: https://arxiv.org/abs/2611.39728
- Authors: Richard Abrich
- Published: 2026-12-01
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.39728
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## A GUI agent needs proof beyond the screen

**95.5% → 27.3%** 3-app ST-Web SER, unwrapped→CommitJIT (N=44)

## An active pane is not the full state

![Figure 1](https://cdn.instaxiv.com/figures/2611.39728/figure1.webp)

Panel (a) shows false-veto compounding and why an active-pane screenshot misses off-screen state. Panel (b) maps CommitJIT: commit checks, graded read-back, calibration and zero-egress replay. (Figure 1)

## The check happens where state changes

1. **Let navigation run**: Navigation leaves backend state unchanged, so CommitJIT skips visual checks until a commit.
2. **Guard the commit**: Before a save or send, provenance and policy checks run in under 5 ms; a durable write-ahead log records pending work.
3. **Read the saved state**: Verify on-screen or by reopening; a local 4B vision model helps when DOM is absent. After two repairs, unresolved cases pause for human sign-off.

## Why checking every action can backfire

$$
\begin{gathered}P_{\mathrm{step}}(\text{false veto}) \geq 1-(1-\epsilon)^{T} \\ P_{\mathrm{commit}}(\text{false veto})=1-(1-\alpha)^{K}\leq K\alpha\end{gathered}
$$

With independent false alarms, K≪T: checking every step compounds risk; K commit checks bound false-veto probability by Kα if every state change passes a commit.

- $\epsilon$: Per-action false-positive rate
- $T$: Total action steps
- $\alpha$: Per-commit false-positive rate
- $K$: State-changing commit sinks

## On the 3-app ST-WebAgentBench suite, PREPARE beats commit-only gating

| Method | SER (95% CI) | CuP | Raw completion |
| --- | --- | --- | --- |
| Unwrapped | 95.5% [84.9, 98.7] | 4.5% | 6.8% |
| Commit-only | 50.0% [35.8, 64.2] | 6.8% | 11.4% |
| **CommitJIT + Policy/PREPARE (−22.7 pp SER)** | **27.3% [16.4, 41.9]** | **6.8%** | **13.6%** |

_gpt-5.4, N=44; brackets: 95% Wilson CIs; 2.09M tokens/arm; p=1.9×10⁻⁹ vs unwrapped. SER=silent-error rate; CuP=policy-compliant completion._

## The safety gain comes with an autonomy cost

**HealthAdmin, unwrapped:** On 26 tasks × 2 models (N=52), unwrapped SER was 61.5% [48.0, 73.5]; VCR was 38.5%.

**CommitJIT default-deny:** Multi-tab checks plus default-deny closure lowered SER to 1.9% [0.3, 10.1] (1/52; p=9.31×10⁻¹⁰), while VCR fell to 11.5%; 45/52 runs escalated.

Near-zero SER came with much lower autonomous completion.

## Verified traces can survive an interface upgrade

1. **Compile verified work**: Only read-back-verified traces become deterministic replay plans.
2. **Re-ground after drift**: After an upgrade, re-ground against live DOM; if a schema change breaks the match, repair against an offline structural twin.
3. **Keep raw values out**: The twin replaces values with session-local symbols, so cloud repair receives no raw payload; promote the replay only after live read-back passes.

## Zero-egress replay verifies all 60 upgrade tasks

| Method | v2 verified (95% CI) | SER |
| --- | --- | --- |
| Stagehand, matched gpt-5.4 | 93.3% [84.1, 97.4] | 3.3% (2/60) |
| CommitJIT + indexed DOM | 93.3% [84.1, 97.4] | 0.0% (0/60) |
| CommitJIT + 2 PREPARE cards | 100.0% [94.0, 100] | 0.0% (0/60) |
| **CommitJIT + zero-egress twin** | **100.0% [94.0, 100]** | **0.0% (0/60)** |

_Four pinned Docker app upgrades, v1→v2, N=60; REST API ground truth. PREPARE used two cards; twin sent 0 B raw payload._

## Version 2 retracts the crash-duplicate claim

![Figure 3](https://cdn.instaxiv.com/figures/2611.39728/figure3.webp)

Panel (b), N=32, one-worker SIGKILL: all arms had matched page text and crash-wiped notes; each finished 32/32 exactly once, 0/32 duplicates. Model calls: CommitJIT 100, unwrapped 280, retry-prompt 462; v1's gap is retracted. (Figure 3)

## Where verification still stops short

- **Policies must be supplied**: On the 12-task zero-SOP EHR slice, generic wrapping had 0% verified completion vs 16.7% unwrapped (p=0.45, not significant); it cannot infer unwritten rules.
- **Abstention is not judgment**: MedHarnessBench abstained 12/12: silent-error rate was 0%, but verified completion was also 0%; clinical correctness remained unjudged.
- **Pixels leave blind spots**: With 2-frame checks on four unseen desktop apps, ~45% of silent failures were non-visual; Windows H.264 RDP falsely stopped 40/105 runs despite 0/105 wrong writes.
- **Crash evidence stays narrow**: 32-task rerun: one worker, listed records; 0/32 is consistent with a ~9% one-sided 95% upper bound. Delayed, concurrent and unsearchable writes lack fair page-text tests.

Best used when: Best suited when policies are explicit and a reliable read-back path exists.

## Key takeaways

- A click is an action, not proof the intended state reached the system of record.
- Verify at commits, read back the target, and pause when evidence is missing.
- Can a write-ahead log plus read-back protect delayed, concurrent, or unsearchable writes against a page-reading baseline?

## Links

- arXiv: https://arxiv.org/abs/2611.39728
- PDF: https://arxiv.org/pdf/2611.39728

## Citation

```bibtex
@article{abrich2026screenshots,
  title   = {Screenshots Are Not State: Transactional Verification and Compilation for GUI Agents},
  author  = {Abrich, Richard},
  journal = {arXiv preprint arXiv:2611.39728},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.39728}
}
```
