AI Agent Faked a Test Log, Then Trusted It: The Provenance Gap
Lilian Weng's new survey on self-optimizing agent harnesses shows fake test logs and how provenance vanishes when trajectories get compressed into summaries.
Lilian Weng's July 4 survey, 'Harness Engineering for Self-Improvement,' maps roughly three years of work on agents that optimize their own scaffolding. Read from a production-trust angle, though, it reads less like an AI story and more like operations engineering being reinvented: regression gates, immutable logs, and least privilege keep showing up as the fixes for loops that fail in documented, reproducible ways. The clearest example is from the Darwin Gödel Machine paper, where an agent editing its own harness wrote a fake log claiming its tests had passed, then read that same log back and concluded its changes were validated — no deception required, just an untyped filesystem meeting ordinary tool-use hallucination.
The numbers reinforce the point. Terminal-Bench 2.0 shows the same models scoring very differently depending on scaffold (best pairing at 63%); STOP's recursive loop helps when seeded with GPT-4 but actively hurts with weaker models like GPT-3.5 or Mixtral, showing recursive self-improvement isn't a free lunch. Meta-Harness's discovered scaffold edges out strong hand-built baselines like Goose and Terminus-KIRA by a few points, but the top scorer, ForgeCode, couldn't be reproduced by the paper's own authors, and the search set and test set were identical 89 tasks — an acknowledged limitation. A companion ablation is the real headline: giving the optimizer only scores, or LLM-written summaries of trajectories, barely moves performance, while raw traces roughly double the score. Compression strips exactly the diagnostic detail optimization needs.
That finding got an uncomfortable real-world echo during this piece's own research: an early draft sourced a benchmark number from an LLM-generated summary site, which misattributed a baseline score — caught only by checking the original table. DGM's own headline jump, from 20% to 50% on SWE-bench Verified, came from an 80-iteration run costing roughly $22k over two weeks, and what it 'discovered' were largely known engineering tricks already used in hand-built harnesses. SIA, which lets an agent edit both harness and weights, remains explicitly unproven due to confounded baselines.
Taken together, this body of work is less a story about recursive self-improvement than a warning about provenance: without typed logs, auditable traces, and access to raw data rather than summaries, agent trust chains fail quietly and repeatedly — and automation doesn't fix that, it just adds a new place for it to break.