Explore, Compile, Replay: Turning Persona-Driven Agent Explorations into Deterministic Tests

Agents driven by large language models can explore an application the way a given user would, and report real defects. But an exploration is not a test: every run calls a model again, takes another path and may reach another verdict, so its findings cannot gate a merge. We present Explore-Compile-Replay (ECR), a pattern that separates three moments. An agent explores once, and the exploration is recorded as a typed trace in which actions and oracles are data. A pure compiler turns the trace into a standard test file, such as a Maestro flow, that runs in continuous integration with no model and without ECR installed. When the system changes and a replay breaks on a step, an agent or a person proposes a new action for that step, and a guard accepts it only if the change is local and every oracle gives what the trace recorded. A failed oracle is never repaired: a person decides. A defect found while exploring is recorded as an oracle that was observed to fail, and compiles to a test that stays red until the defect is fixed. An adapter contract and seven laws, checked by an executable conformance kit, state when support for a new kind of system is correct. We describe an open implementation with a reference adapter and a mobile adapter, and an evaluation protocol, written before any measured run, that injects six classes of drift, one of which is a regression that must stay red. On LocalSend, 7 traces, one of them unstable, met 25 mutants of five classes: no regression ended green, every reworded text and added dialog was detected, three of five moves and every delay went unseen, and a one-step repair was accepted for 25 of the 26 traces broken by a reworded text. Changes that need two steps were refused, and fewer than half of the text and structure mutants were repaired in full.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-26
DOI
https://doi.org/10.5281/zenodo.24565285
Primary Topic
Software Testing and Debugging Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Explore, Compile, Replay: Turning Persona-Driven Agent Explorations into Deterministic Tests

Pierre Raffalli
Zenodo (CERN European Organization for Nuclear Research)
Software Testing and Debugging Techniques
preprint

Explore, Compile, Replay: Turning Persona-Driven Agent Explorations into Deterministic Tests

Pierre Raffalli
preprint en

Abstract

Agents driven by large language models can explore an application the way a given user would, and report real defects. But an exploration is not a test: every run calls a model again, takes another path and may reach another verdict, so its findings cannot gate a merge. We present Explore-Compile-Replay (ECR), a pattern that separates three moments. An agent explores once, and the exploration is recorded as a typed trace in which actions and oracles are data. A pure compiler turns the trace into a standard test file, such as a Maestro flow, that runs in continuous integration with no model and without ECR installed. When the system changes and a replay breaks on a step, an agent or a person proposes a new action for that step, and a guard accepts it only if the change is local and every oracle gives what the trace recorded. A failed oracle is never repaired: a person decides. A defect found while exploring is recorded as an oracle that was observed to fail, and compiles to a test that stays red until the defect is fixed. An adapter contract and seven laws, checked by an executable conformance kit, state when support for a new kind of system is correct. We describe an open implementation with a reference adapter and a mobile adapter, and an evaluation protocol, written before any measured run, that injects six classes of drift, one of which is a regression that must stay red. On LocalSend, 7 traces, one of them unstable, met 25 mutants of five classes: no regression ended green, every reworded text and added dialog was detected, three of five moves and every delay went unseen, and a one-step repair was accepted for 25 of the 26 traces broken by a reworded text. Changes that need two steps were refused, and fewer than half of the text and structure mutants were repaired in full.

Zenodo (CERN European Organization for Nuclear Research)
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon