How Frozen Specs, 120 Tests and a Blind Reviewer Stopped an AI Agent Faking Results
JHAB2018 · reddit · 2026-12-01
The author had an AI agent design and simulate an 800-V EV cooling plate with free tools (FreeCAD + CalculiX), costing €31 in API calls over 9 hours. The key was a 4-part control loop preventing the agent from quietly loosening rules or hallucinating a "PASS":
- Frozen spec: target limits locked and SHA-256 hashed before step 1, so goalposts can't move silently.
- 120 deterministic checks: no LLM self-grading—every run must pass 120 hard pass/fail scripts on actual files and solver outputs.
- Independent blind reviewer: a read-only reviewer seeing only raw simulation output halted the loop twice—catching an artificial shortcut (58/100) and a real physical limit (63/100).
- Hard escalation: instead of faking green, the loop paused for an explicit human trade-off decision, re-ran from scratch, then cleared 120/120 checks with an 87/100 blind-review score.
Takeaway: going from "cool demo" to reliable output came from locking specs, replacing self-grading with deterministic tests, separating the reviewer, and forcing escalation—better prompts weren't the answer.
More from coding & agent
- Devin CLI ships /vim mode for keyboard-native agent interaction — premqnair · 2026-12-01
- What breaks first in production AI agents? Memory, says one operator — alvelda · 2026-12-01
- Gemini Neon revives old agent session and proposes speculative decoding idea Claude missed — ycombinator · 2026-12-01
- Engineer uses Codex to automate antibacterial peptide discovery, 5 candidates validated in lab — ycombinator · 2026-12-01
- A Claude Skill and MCP Server for Getting Clients to Agree on Scope Before Coding — Existing-Spare4336 · 2026-12-01
- Open-Source Redaction Tool Keeps AI Agents From Leaking Sensitive Data — ButterscotchTop999 · 2026-12-01