Case study: Two LLMs missed a future-data bug in coding and review loop
niacolhealth · reddit · 2026-08-25
A paper on AQuA (quantitative trading research agents) reveals a typical AI system vulnerability, highlighting blind spots in dual-LLM collaboration.
- The Bug: One agent wrote a feature dividing volume-so-far by the day's final total volume. The denominator included future trades (data leakage). A second reviewer agent approved the causal-sounding explanation. The feature failed on a clean re-split, found only via manual audit.
- Root Cause: It wasn't just a simple mistake; two model roles converged on a plausible explanation while the actual bug sat in the operation the authoring agent was allowed to express.
- AQuA v2 Fix: The system structurally responds by sealing data splits and feature definitions outside the agent's adaptive surface. Arbitrary code is replaced with a fixed registry of causal operators, making invalid transformations like the full-day normalizer impossible at the interface level.
- The Trade-off: A registry prevents invalid transformations but narrows the search space. A better reviewer preserves space but must catch subtle dependencies. The author asks: where should the complexity budget go—stronger static review, smaller toolsets, or a hybrid?
More from coding & agent
- Proof launches x401, first protocol letting AI agents prove who they represent — csuwildcat · 2026-10-15
- A versioned bootstrap loader pattern for keeping AI-generated code always shippable — NickPassig · 2026-10-15
- Amazon blocks AI shopping agents; Maritime offers $1/month Android MCP workaround — Scobleizer · 2026-10-15
- Dev vibe-codes open-source newsletter platform, 83% cheaper than Beehiiv from $19/mo — marclou · 2026-10-15
- ERP AI launches Proto: 'headless SaaS' business software built for AI agents — Aiden_Tech_Ai · 2026-10-15
- Engineering managers need deep reading, not just agent summaries: 5 recommended resources — rseroter · 2026-10-15