Rust in Everything
← Papers

StatePortal: Agentic Checkpoint Synthesis for Testing Deep States in Interactive Software

Zhiyuan Peng, Wei Tao, Chenhao Ying, Yuan Luo, Yiwen Guo

2026-11-19▲ 9arXiv 2611.23257v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

StatePortal synthesizes versionable checkpoints from a functional test case and read-only source, restores deep GUI states through agent-onboarded hooks, and scores them with a conjunctive programmatic-state and visual oracle.

Problem

Deep-state GUI testing requires long interaction histories whose cost recurs across commits. GUI automation that could amortize this cost assumes a DOM or accessibility tree, which self-rendered engines do not expose. Existing GUI-agent benchmarks do not evaluate checkpoint synthesis for a new target from a test case and read-only source. Programmatic state checks alone can miss failures visible only in rendered output.

Method

StatePortal receives a natural-language functional test case and read-only access to the target source repository. It explores the repository with a bounded ReAct loop over list_dir, grep, and read_file, with up to 16 turns and at most one repository query per turn. A source-guided onboarding agent generates a per-application hook, driver, capability contract Sigma, and save/reload self-tests, validated on five cases per application. From one shared exploration history, one model emits a checkpoint declaring the semantic Start, restoration strategy and payload, finite transition spec, and predicted assertions. Restoration runs through the hook in a warm session; the transition executes once, and acceptance requires both a programmatic-state oracle and a visual oracle to pass. Frozen checkpoints can then replay without further synthesis or model calls.

Results

  • Checkpoint seeding raises GUI-agent completion under the same pixel action space, and StatePortal completes more when it also delivers the target action through the hook. §5.1.1
  • Replay of frozen checkpoints reproduces original verdicts with all model calls disabled. §5.1.2
  • The hybrid oracle detects controlled visual faults that pass programmatic-state checks alone. §Abstract
  • On real defects missed by registered tests, StatePortal checkpoints separate buggy and fixed builds on most comparable tasks, with a measured false-separation rate. §5.2
  • One-time hook onboarding succeeds on all ten applications without human intervention. §3.4
  • DeepStateBench spans 61 tasks over 10 applications with source sizes from 874 to 7.2M lines. §Abstract

Limitations

  • The component ablations do not establish statistical significance: the reported E2E differences are +8.2, +3.3, and +9.8 percentage points, and none reaches the 0.05 threshold under prespecified exact paired tests with Holm correction; bootstrap intervals summarize task variation, not generation seeds or models (§B.24.1).
  • Evaluation depends on coverage of the registered observations: for a read-only or idempotent operation, a valid Start may already satisfy Goal, and registered observations provide only a partial assessment of semantic correctness (§B.3).
  • The latent-defect study is diagnostic; extending it to more real repairs and seeds would measure how reliably synthesized tests separate regressions from fixes (§7).
  • Replay reproduction is not perfect: one of 112 checkpoints is inconsistent across replays, and one other is consistent but differs from its original verdict (§5.1.2).

Key points

  • A method receives a natural-language functional test case and read-only source, and outputs a checkpoint declaring the Start, restoration strategy and payload, finite transition spec, and assertions; construction uses a per-application hook. §2
  • Source-grounded exploration is a bounded ReAct loop over list_dir, grep, and read_file, with up to 16 turns, at most one repository query per turn, and citations restricted to accessed files. §3.1
  • The checkpoint and transition are synthesized jointly from one shared exploration history; predicted assertions are retained but do not affect acceptance, which is determined by hidden programmatic and visual oracles. §3.3
  • A source-guided onboarding agent generates the hook, driver, capability contract, and save/reload self-tests, validated on five cases per application with two held out, without human intervention on all ten applications. §3.4
  • Acceptance is the conjunction of a programmatic-state oracle and a visual oracle; the visual oracle can downgrade a programmatic pass to failure but cannot accept a programmatic failure, and programmatic failure short-circuits the visual call. §4.3
  • StatePortal reaches Start on 38.4% of trials and records 27.5% E2E, against 36.6% Start and 10.4% E2E for Agent S3 w/ Checkpoint, supporting the benefit of delivering the target action through the generated transition spec. §5.1.1
  • Frozen checkpoints replay with zero model calls and a median replay time of 422 ms; 98.90% of 1,361 graded replays reproduce the original verdict. §5.1.2
  • Because one checkpoint places buggy and fixed versions in the same deep state, comparing rendered outputs without a model gives a differential oracle for defects no fail-to-pass test encodes; all 129 fixed-version cells of the three restoring configurations reuse the buggy-side checkpoint without further synthesis. §5.2

Mind map

StatePortal
Problem
Deep state costs recur
No DOM in self-rendered engines
Programmatic checks miss visual faults
Method
Source exploration
Onboarding hook and contract
Joint checkpoint and transition synthesis
Hybrid oracle
Benchmark
DeepStateBench 61 tasks 10 apps
Five language families six stacks
Source 874 to 7.2M lines
Results
Seeding 0% to 10.4%
StatePortal 27.5% E2E
Replay 98.90% no model calls
Visual faults 96.25%
Limits
Ablations not significant
Registered observations partial
Latent-defect study diagnostic
Replay not perfect