Asking the same AI session that wrote an architecture specification to "review it for bugs" almost always fails. Shared conversational history creates shared confirmation bias: the model remembers why it made compromises earlier in the thread and rationalizes away missing sections or contradictions.
Before writing production code for Agent Keeper, we subjected the design specification to the Elephant-Goldfish Model (EGM)—a 10-stage multi-agent review pipeline.
The Elephant-Goldfish Model (EGM)
EGM separates two complementary cognitive roles:
- The Elephant (Persistent Resolver): The primary context containing institutional memory, historical trade-offs, and final repair capabilities.
- The Goldfish (Stateless Auditors): Ephemeral subagents spawned in fresh context windows with zero conversational history, forced to evaluate the specification strictly on what is written.
What the 7 Stateless Personas Caught
| Persona | Core Mandate | Key Discovery Before Code Execution |
|---|---|---|
| Skeptical Architect | Anti-Weeds, YAGNI | Flagged inlined 30-line Pydantic dumps and speculative features; identified deepeval vs. native SDK redundancy. |
| Naive Reader | Self-Containment | Exposed undefined dataset schemas and noted that ephemeral GitHub Actions runners evaporate .eval_cache/ without actions/cache. |
| Hostile Design Critic | Scalability & Security | Caught a rate-limit math contradiction (30 calls in <90s = 20 RPM, exceeding Gemini's 15 RPM free-tier limit) and fork PR secret exposure. |
| Structural Validator | Symmetry & Compliance | Mandated formal Goals & Non-Goals and Problem Statement sections. |
| Style Editor | Objective Prose | Stripped buzzwords and corrected hyperbolic claims ("Zero-Flakiness Guarantee" → "Flakiness Mitigation"). |
| Pragmatic Tech Lead | Zero-Decision Rule | Prohibited leaving JSON schemas or adapter classes ambiguous for implementers; mandated exit verification commands. |
| Codebase Auditor | Doc-vs-Code Parity | Caught that the codebase used native google.genai.Client while the roadmap still referenced DeepEval. |
The Crucial Intervention: Rejecting Reviewer Bloat
Adversarial critics naturally suggest adding complexity. During an intermediate Zoom-Out Gate, the Skeptical Architect persona explicitly rejected reviewer bloat that would have crippled the pipeline:
- Rejected: 3-pass majority voting, dynamic token-bucket limiters, and VCR recording fixtures (which would have tripled API burn on free tiers).
-
Shipped Instead: Sequential execution (~10–12 RPM),
temperature=0.0, and gracefulpytest.skipon fork PRs.
Quick question for the comments: Have you tried adversarial multi-agent spec reviews before coding, or do you still rely on human RFCs?
Ready-to-Use Toolkit: Two-Tier LLM Eval CI/CD Gate & Review Kit ($29)
Skip the boilerplate and grab the production-ready kit (PDF guide, templates, and CI guardrails):
Originally published at avilano.dev.
Top comments (1)
The "shared confirmation bias" framing is the strongest part of this, because it names why asking the same session to review its own spec almost always fails — it remembers why it made each compromise and defends it. The catches that prove the point are the ones a same-session reviewer would rationalize away: the rate-limit math contradiction, 30 calls in under 90 seconds working out to 20 RPM against Gemini's 15 RPM free-tier limit, and the doc-vs-code parity catch, with the roadmap still referencing DeepEval while the codebase had moved to the native google.genai.Client. The Zoom-Out Gate rejecting reviewer bloat is the real lesson too — an adversarial review that only adds complexity is its own failure mode. I have not run a seven-persona pipeline myself; I usually re-read a spec in a fresh session instead, which is a much weaker version of the same idea. Of the seven personas, which one caught the most that the others missed, and have you kept the stateless auditors running for later spec changes or was this a one-time audit?