Skip to main content
6 min read
AI ArchitectureMulti-Agent SystemsDesign Review

Stress-Testing AI System Designs: How 7 Stateless Subagents Audited Our Architecture Spec

Applying the Elephant-Goldfish Model (EGM) to catch rate-limit contradictions, fork PR security gaps, and framework drift before writing a single line of code.

AV
By Alberto E. Vilano Reyna · Senior SDET and AI Quality Engineer

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:


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:

All articles →

Need This Architecture Built in Your Codebase?

I partner with SaaS engineering leaders on fixed 21-day sprints and async monthly retainers.