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 gives 36β52 expected steps for the SAE arms, not 70. 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. The relative efficiency ordering is likely sound; the
absolute step count is not citable.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