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, $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
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