StatePortal: Agentic Checkpoint Synthesis for Testing Deep States in Interactive Software
Zhiyuan Peng, Wei Tao, Chenhao Ying, Yuan Luo, Yiwen Guo
Shanghai Jiao Tong University · LIGHTSPEED · Independent Researcher
Published September 29, 2026 · on the feed November 19, 2026 · ▲ 10 · arXiv 2611.23257
The abstract
Large language models have reduced the effort to generate code for interactive software with graphical user interfaces (GUIs). For such software, a key testing bottleneck is reaching a deep state, one that requires a long interaction history. The cost of reaching it recurs across commits, and the GUI automation that could amortize it assumes a DOM or accessibility tree that self-rendered engines do not expose. We introduce StatePortal, an agent that synthesizes a checkpoint, an artifact that restores that state and can be versioned and replayed, from a natural-language functional test case and read-only access to the target's source code. The checkpoint is restored through a per-application hook that an onboarding agent binds or synthesizes once without hand-written hook code. Because a checkpoint can satisfy state checks while rendering incorrectly, checkpoints are scored by hybrid programmatic-state and visual evaluation: acceptance requires both a programmatic-state oracle and a visual oracle to pass. We calibrate the visual oracle against a blinded cross-VLM reference. We release DeepStateBench, 61 deep-state tasks across 10 interactive applications that span five language families and six rendering stacks, with source sizes from 874 to 7.2M lines. Across three registered models, a GUI agent seeded with synthesized checkpoints completes 10.4% of trials, compared with 0% without seeding under the same pixel action space, while StatePortal, which also delivers the target action through the hook, completes 27.5%. Over 1,361 replays of 112 checkpoints, 98.90% reproduce the original verdict with zero model calls, and the hybrid oracle detects 96.25% (77/80) of controlled visual faults invisible to programmatic-state checks alone. We open-source our code at https://github.com/pzy2000/State_Portal and website at https://stateportal.mineyosemite.chatgpt.site
The Brief
3:07A short podcast summary of the paper. Written and voiced by AI.
Transcript
StatePortal. Agentic Checkpoint Synthesis for Testing Deep States in Interactive Software. By Zhiyuan Peng and four others, from Shanghai Jiao Tong University, Lightspeed, and one other institution. Published on the twenty-ninth of September.
Large language models have made it easier to generate code for interactive software with graphical user interfaces. Testing that software has a particular bottleneck: reaching a deep state, one that only exists after a long history of interaction. To test anything that happens there, the tester first has to get there, and that cost comes back with every commit. GUI automation could spread the cost out, but it assumes a DOM or an accessibility tree, and self-rendered engines do not expose either one. For software that draws its own interface, the usual handles for automated testing simply are not there, and the long walk to a deep state has to be repeated again and again.
StatePortal is an agent that synthesizes a checkpoint, an artifact that restores the deep state and that can be versioned and replayed. Its inputs are a functional test case written in natural language and read-only access to the target's source code. Instead of clicking its way down to the state every time, the tester gets a portal straight to it. And because the checkpoint is an artifact rather than a one-off run, it can be kept under version control alongside the code and replayed whenever it is needed.
The checkpoint is restored through a hook specific to each application. An onboarding agent binds that hook, or synthesizes it, once, with no hand-written hook code. There is a catch the design has to guard against: a checkpoint can satisfy the state checks and still render incorrectly. So checkpoints are scored by a hybrid evaluation. A checkpoint is accepted only if both a programmatic-state oracle and a visual oracle pass, and the visual oracle is calibrated against a blinded reference built from several vision-language models. Neither oracle alone is trusted: the state has to be right underneath, and the screen has to show it correctly.
To test all this, the authors release DeepStateBench. It holds sixty-one deep-state tasks across ten interactive applications. Those applications span five language families and six rendering stacks, and their source code ranges from eight hundred and seventy-four lines up to seven point two million lines.
Results are reported across three registered models. A GUI agent seeded with synthesized checkpoints completes ten point four percent of trials. Without that seeding, in the same pixel action space, it completes none. StatePortal itself, which also delivers the target action through the hook, completes twenty-seven point five percent. Seeding alone lifts the agent from nothing to a tenth of trials, and delivering the action through the hook as well lifts the rate further still.
The checkpoints are also reproducible. Over one thousand three hundred and sixty-one replays of one hundred and twelve checkpoints, ninety-eight point nine percent reproduce the original verdict, with zero model calls. And the hybrid oracle catches seventy-seven of eighty controlled visual faults, or ninety-six point two five percent, faults that programmatic-state checks alone could not see.
Treat the deep state as something to be built once and kept, not something to be reached again each time, and the long interaction history stops being a recurring cost. The catch is trust in the restored state, and requiring both a state check and a visual check before accepting a checkpoint is how StatePortal answers it.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free