COMPLETEFeb 2026
Hypothesis
Progressive knowledge injection — giving agents increasingly structured domain knowledge — improves JUnit test generation quality on Spring Boot projects more than model upgrades.Setup
The 9 Variants
Key Findings
- Two independent axes discovered — Knowledge injection and prompt hardening improve quality independently
- Model floor exists — PetClinic achieves 92-94% coverage across all variants (the model already knows PetClinic)
- SAE is most efficient —
70 expected steps(withdrawn, see below), $2.84 per run - Partial knowledge paradox — Some knowledge without structure can decrease performance
- First Markov fingerprints — Tool-call traces reveal distinct behavioral signatures per variant
Updated 2026-08-27 — “70 expected steps” could not be reproduced. Re-running the v1 traces
through the corrected library did not reproduce it. The variant
naming in the data on disk (
control, variant-a–e, claude-haiku, claude-*-sae) does not
match the nine-variant table above either, so this figure appears to come from a data or code
vintage that no longer exists. Treat it as unverified rather than wrong — it may well have been
right when written.Two things in v1’s favour, both checked: it is not affected by CT6, because every v1 variant ran
exactly one run per item, which is the one case where grouping by item is correct. And its
start-state exposure (CT7) is small — 2–11% on the four arms that do not begin in EXPLORE,
against the 30–90% seen in v3 and v4. Updated 2026-09-15 — the relative ordering is withdrawn too. Reanalysis found the arms do not
share a start state, so a start-state defect does not cancel between them, and no corrected figure
is offered while that work is open. At nine runs across nine variants, three of them a single run,
v1 cannot carry a comparison in any case. Kept as a record of method, not of result.Markov Analysis
Agent behavior varies dramatically across variants even when final outcomes are similar. The Markov fingerprint analysis revealed:- JAR cluster patterns — How much time agents spend in dependency inspection
- Thrashing loops — BUILD→TEST→EDIT cycles that indicate the agent is stuck
- Loop amplification — Quantified via transition probability engineering (TPE)
Resources
Experiment Repo
Full traces, Markov analysis scripts, raw data
Blog: Agent Fingerprint
Narrative walkthrough of the Markov findings