Turning Historical Conversations Into a Standing Regression Suite for LLM Agents
Production conversations become reusable regression tests for LLM agent changes.

Past production conversations can form the base of a standing regression suite for LLM agents, so teams can test prompt edits and harness changes against real behavior before deployment. The engineering work is to turn selected traces into stable, replayable cases with explicit expected behavior. Replay must exercise the changed component while preserving the conditions needed to reach it, rather than merely score an old run or repeat a conversation against a changed environment.
Why production conversations already contain what a regression suite needs
Every production agent run produces a tree of events, including model calls, tool calls, retrieval steps, planning decisions, and errors. Those records capture what the agent did and what its environment returned. A response that sounds right can hide a wrong tool selection, while a wrong conclusion can come after several correct intermediate steps. Without span-level records, both paths collapse into an output score that cannot explain the failure.
Production traffic also has dialogue patterns and edge cases that hand-authored datasets almost never account for. Users expose failure modes through the way they actually interact with the agent, rather than through the scenarios a test author expects. Yet that evidence often expires after debugging. A team inspects a failure, patches a prompt, and ships without creating a durable test artifact. The logs remain, but nothing proves that the fix holds when the next change touches behavior that was quietly working.
Why replaying a production conversation is harder than it looks
A recorded conversation is not a reproducible execution. Sampling means that the same prompt need not produce the same token sequence, while tools read databases and APIs whose state may have changed since the original run. The result of each step then shapes what happens at the next one. One early difference can redirect the entire trajectory, so a rerun never reaches the failure it was meant to test.
That divergence creates a gap between recording and testing. Existing tooling can preserve a run for inspection or score its historical output without being able to test new code against the same incident. Repeating the input is therefore not enough. The obstacle is preserving the relevant execution conditions while allowing the proposed change to run.
How Chronicle turns a single recorded incident into a permanent regression test
Chronicle records an agent run at its non-deterministic boundaries as immutable envelopes and replays from that record. Its central operation is cut-point replay. The developer chooses which boundaries receive recorded results and which execute live with new code, allowing the agent to relive an incident while the patched harness runs. This distinction prevents replay from becoming a test of recorded outputs alone.
Chawla and Koul’s REALM 2026 paper in the ACL Anthology reports that full replay issues zero model calls and is bit-stable across 20 repetitions. Its cut-point tests fail on faulty code and pass on guarded and benign changes for all 6 incidents in the recorded-failure benchmark. The mutation study provides a sharper comparison. Cut-point tests catch every mutant that lets the recorded unsafe action happen, but a baseline that stubs every boundary with the same assertion catches none.
The paper reports recording overhead of 23 µs per boundary crossing, which is a small part of typical model-call latency. Its validation nevertheless has an important limit. The benchmark uses simulated model boundaries, leaving replay against real non-deterministic model calls unvalidated in the published evaluation. The technique is principled, but its production evidence remains limited. Its practical contribution is a mechanism by which one recorded incident can become a permanent CI fixture without requiring the failure to recur.
Attributing failure to the right harness layer before creating a test case
Replay only helps if the test exercises the right component. Failure can originate in the prompt, tool, workflow, memory, model, or product logic, and most production failures lie in the harness. Attribution must precede test creation. Otherwise, a passing test can leave the actual regression risk untouched because it evaluates a downstream symptom.
Three recurring trace patterns give that diagnosis concrete handles. Infinite loops show the same tool firing over and over with similar arguments, which points to a workflow control-flow bug or a model that cannot tell when it is done. They cost the most to diagnose because resource exhaustion can look like a capability failure. Wrong-args failures show arguments that violate the tool’s schema, followed by retries with the same shape. Schema drift can corrupt outputs without an exception, making a schema-validation gate necessary to expose the mismatch.
No-error-handling failures follow a different path to apparent success. A tool returns an error, but the agent builds a reasonable-sounding response on top of it. The final answer hides the failed dependency. Prompt ambiguity can also cause a failure without an error signal, so an unclear instruction can look like a model capability limit. The resulting test annotation needs to name the harness layer, the expected span-level behavior, and the observed failure so that a future failure points to something actionable.
How personal-agent state makes some regression tests user-specific
For personal agents, the conversation alone does not define the test conditions. Memories, learned skills, tool configurations, and policy state evolve per user, changing how a failure propagates. The same change can therefore have different consequences. Qian et al.’s 2026 paper, Toward User-Conditioned Evaluation of Personal LLM Agents under Temporal Interventions, formalizes evaluation as a function of both the change event and persistent user-conditioned state.
The paper contrasts a light user with no tool-dependent skills against a power user with stale API memories and learned reporting skills. The light user may recover after one failed call, while the power user may regress across unrelated analysis workflows after the identical event. Persistent state defines the failure’s reach. The paper also cites evidence that API misuse and API incompatibility together account for the majority of reported failures in LLM-agent frameworks. A memory encoding an obsolete API shape can turn an external change into an internal regression.
The suite-design implication is to vary both the test population and the scenarios. Conversations need to include users who have built up different memories and have different specialized skill configurations. Happy-path users cannot stand in for that variation. A suite can cover the relevant intent yet still miss the failure because none of its cases includes the persistent state that allows the defect to spread.
How to regression test LLM agents using selected historical conversations
Selection requires human curation of collected traces. Must-pass happy paths earn a place because they represent each supported intent and the agent’s core value. Known edge cases earn a place because they have already exposed a defect. Recent fixes and harness changes also identify regression-prone areas where historical conversations can test the components just modified. Volume alone is not evidence of useful coverage.
Each selected case needs more than the raw trace. Its structure must identify the stressed harness layer, expected span-level behavior at each decision point, a pass-or-fail rubric, and tags for intent, owner, and priority. These fields connect execution to diagnosis. A score without those references may flag a change, but it does not establish which behavior was expected or who owns the discrepancy. For personal agents, selection must also preserve the user-state variation established in the preceding section.
Curation continues as capabilities enter and leave the product. The PR that adds a feature should add its golden conversation, while changed pricing, policies, or retired tool calls require stale cases to be replaced. Redundant conversations should be pruned. Each case consumes CI time, so the appropriate suite size is a range bounded by coverage and feedback speed. It must cover must-pass paths and known regressions while finishing before a developer moves to the next task.
Layering the suite so different changes get tested at the right cadence
A single cadence forces a choice between fast feedback and deeper coverage. A three-layer structure avoids making every PR wait for every evaluation. The regression layer runs golden conversations on every PR to cover must-pass happy paths and areas known to be regression-prone. It gates on task-completion pass rate and is the only layer developers wait on before merge. This layer supplies the shortest feedback loop.
The adversarial layer runs on release candidates and stresses policy preservation, edge cases, and known failure categories. Its gate is a policy-preservation threshold rather than the regression layer’s task-completion measure. The production-derived layer serves a different purpose. It samples recent live conversations per release and weekly, gating on drift from baseline rubric scores. These distinct gates prevent one measure from standing in for different kinds of risk.
Historical scoring and replay also answer different questions. Scoring a recorded conversation shows how the agent did in the past, while replay against new code tests how the proposed change behaves under the conditions that were preserved. Neither replaces the other. Latency needs its own P95 gate on the golden set because added tool calls, longer system prompts, and richer retrieval payloads can each increase delay. Without that gate, incremental slowdown can remain invisible until it reaches user-experience metrics weeks later.
What span-level evaluation tooling needs to do that most observability tooling does not
Observability shows that a span fired and what it returned. Evaluation judges whether that decision was correct. Tool selection, retrieval relevance, and planning quality each require a scoring layer above the trace, because a record of an action does not establish whether it was appropriate. Final-output evaluation cannot substitute for those judgments. A failure at one step can cascade through the execution without becoming visible in the final response.
The execution view must also show where the run branches. Tools call other tools, model calls branch, and retries create trees that can be hard to see in a simple timeline. A graph view helps find the failure path. That view helps with diagnosis, while scores for each span show where behavior differed from what was expected. Together, they show which decision was wrong and which downstream steps were affected by it.
Judges need calibration against human labels before their speed becomes trustworthy at scale. Domain experts and QA reviewers provide that reference. Tooling that lets them label traces and feeds those labels back into the scoring model connects automated evaluation to the judgment used to curate the suite. Without that path, scoring throughput can grow without a corresponding improvement in accuracy.
Keeping the suite current as the agent, its tools, and its users change
A standing suite can become misleading even when every test still passes. New capabilities introduce behavior it has never exercised, tool evolution invalidates old assumptions, and accumulated user state changes the production population. Maintenance must therefore follow changes in the agent, its environment, and its users rather than treat a green CI result as proof that coverage remains representative.
A new capability needs coverage when it ships, while an external API change requires review of golden conversations that depend on the old schema. User-state drift requires regular resampling of the production-derived layer. These updates preserve different parts of the test’s validity, including the expected behavior, the tool contract, and the population being represented. Neglecting any one can leave a technically runnable test evaluating the wrong conditions.
Live traffic supplies the evidence for deciding what to promote next. Conversations where behavior diverges from expectations, span-level scores fall, or an uncovered failure subtype appears identify gaps in the current suite. Promotion still requires review and attribution. Governed through the same review and promotion discipline as other production artifacts, the suite becomes a continuing test of proposed changes. Production traces then serve as both its original material and the ongoing reference that keeps its claims honest.


