Skip to main content

Why Overloading Good AI Agent Rules Backfires: +138% Tax & 9/32 Crash (E103)

Updated 8 min readMarkdown

💡 AI Labo Benchmark v3.0 — Experiment E103 (Block 5 Core vs. Kitchen-Sink Overload)

Launching Benchmark v3 inside network-isolated Debian Proxmox VMs (N=3 3-arm counterbalanced ABC ➔ BCA ➔ CAB rotation, Clean-Room Allowlist 3-UID grading, temperature=0.7, 90% implicit prefix-cache cost accounting).

When a single prompt tip, context compressor, or reflection gate wins an isolated A/B test, teams naturally stack all of them into production at once. Yet in real multi-file coding loops, "more guardrails" do not compose additively—compaction resets wipe read cache context, giant rule handbooks bloat every uncached head token, and extra pre-submit gates collide with one another.

In Experiment E103 (V3-P1), we ran the first 3-arm Clean-Room Benchmark v3 comparison on gemini-3.8-flash (LOW) across 32 multi-package tests (src/{inventory,billing,audit}), pitting Bare Loop against our curated Block 5 Core and an Everything-On Kitchen-Sink Overload configuration to measure the exact Interference Tax (ΔC_int).


TL;DR — Key Empirical Findings

  • 1. Curated Block 5 Core Cut Cost -74.67% & Ran 3.60x Faster at 32/32 (100%): Combining only a 30-line AGENTS.md pointer, append-only prefix caching, batch SHA-cached reads, CLI Token Killer summaries, and 1-line AST fix-hints kept 32.00 ± 0.00 / 32 (100%) while dropping effective cost from `$0.0837` to `$0.0212 ± $0.0019` (SD -95.9%), total tokens -79.4%, and elapsed time 205.39s ➔ 57.07s with 0 thought tokens.
  • 2. Kitchen-Sink Overload Crashed Accuracy to 9/32 (28.12%) & Added +137.74% Tax: Injecting a 19KB MONOLITHIC_HANDBOOK.md plus forced compaction every 3 calls, verbose 24-line check logs, and mandatory L2 pre-submit reflection trapped the agent in a re-read loop (18/18 call cap in 3/3 trials) and raised effective spend to `$0.0504` (4.47x total tokens vs. Block 5).
  • 3. Subtraction Gate Is Mandatory Before Shipping New Harnesses: Passing a standalone 1-variable A/B test is no longer enough—every new rule or tool must survive a 3-arm integration check against your lean core before earning a permanent spot.
Metric (N=3 Trials, Mean ± SD) Arm A: bare_loop Arm B: block5_core Arm C: kitchen_sink_all
Hidden Clean-Room Suite (32 Cases) 32.00 ± 0.00 (100%) 32.00 ± 0.00 (100%) 9.00 ± 0.00 (28.12%, -23.00)
LLM Calls (model_calls) 12.00 ± 0.00 7.33 ± 1.15 (-38.9%) 18.00 ± 0.00 (cap hit, +10.67)
Cumulative Prompt Tokens 104,778 ± 41,722 22,039 ± 3,742 (-79.0%) 107,305 ± 419
Thought Tokens 11,318 ± 10,332 0 ± 0 0 ± 0
Total Tokens 118,673 ± 51,959 24,404 ± 3,759 (-79.4%) 109,036 ± 431 (4.47x vs. B)
Elapsed Time (elapsed_seconds) 205.39 ± 68.20s 57.07 ± 2.45s (3.60x faster) 252.53 ± 40.91s (4.42x slower vs. B)
Effective Cached Cost (90% OFF) `$0.0837 ± $0.0461` `$0.0212 ± $0.0019` (-74.67%) `$0.0504 ± $0.0017` (+137.74%)
List-Price Upper Bound (No Cache) `$0.1307 ± $0.0697` `$0.0254 ± $0.0029` (-80.6%) `$0.0870 ± $0.0004` (+242.5%)
Output Cap Hits (max_tokens_hits) 0 / 3 0 / 3 0 / 3
Clean-Room Cheat Attempts (6 Vectors) 0 / 3 0 / 3 0 / 3

1. Experiment Design, Clean-Room Isolation & Interference Mechanism

+-------------------------------------------------------------------------+
| Proxmox VM308 (0 NICs, Clean-Room Allowlist Grading, N=3 ABC/BCA/CAB)   |
| Task: 3-package brownfield commerce pipeline (inventory/billing/audit)  |
|                                                                         |
| [A] bare_loop: Sequential 1-file inspect + verbose 24-line raw logs     |
|     --> 12.00 calls | 11,318 thought tok | $0.0837 eff. | 32/32 PASS    |
|                                                                         |
| [B] block5_core: 30-line AGENTS.md + append-only cache + batch/SHA      |
|     + CLI Token Killer + 1-line AST fix-hint + early-stop hint          |
|     -->  7.33 calls |      0 thought tok | $0.0212 eff. | 32/32 PASS    |
|                                                                         |
| [C] kitchen_sink_all: Block 5 + 19KB handbook + 3-turn compaction       |
|     + verbose 24-line logs + forced pre-submit L2 reflection gate       |
|     --> 18.00 calls (cap) | [READ_CACHE_HIT] thrash | $0.0504 | 9/32    |
+-------------------------------------------------------------------------+

All three arms ran symmetrically inside VM308 using models/gemini-3.8-flash (thinkingLevel="LOW", temperature=0.7, max_output_tokens=32768) on identical starter codebases (src/contracts.py, src/inventory/stock.py, src/billing/invoice.py, src/audit/ledger.py) and were scored by copying only the 3 allowlisted solution files into a clean-room grading stage (blocking sitecustomize.py, stdlib shadowing, .pyc, and symlink exploits across all 6 residue vectors with 0 incidents).

Why did kitchen_sink_all collapse to 9/32 across all 3 trials (ABC, BCA, CAB)?

  1. Compaction Destroys Source Memory While SHA Cache Blocks Re-Delivery: Forced compaction fired every 3 calls (c=5 compactions per run), erasing previously read source files from the active prompt. When the agent re-requested those files (13–14 inspect_calls vs. 1.67 in block5_core), the read-dedup cache returned a stub [READ_CACHE_HIT] summary (28–33 cache hits) instead of full code—leaving the agent blind and stuck after editing only 1 of 3 modules (edit_calls = 1.0) when it hit the 18-call cap.
  2. Additive Overhead Multiplies Uncached Spend: Carrying the 19KB monolithic handbook alongside verbose logs and forced reflection gates pushed uncached input from 15,842 tokens (block5_core) to 53,178 tokens (3.36x), generating +137.74% Interference Tax (+$0.0292 per run) even before accounting for the -23.00 case accuracy crash.

2. Drop-In Implementation Recipe: 3-Arm Interference Tax Gate

Before promoting any new prompt rule, memory hook, or compaction policy into your production harness, gate it with a symmetric 3-arm integration check (bare_loop vs. lean_core vs. lean_core + candidate) that rejects additions whenever accuracy drops or effective cached cost exceeds a +5% budget delta:

from dataclasses import dataclass


@dataclass(frozen=True)
class ArmMetrics:
    name: str
    passed_cases: float
    effective_cached_usd: float
    model_calls: float


def evaluate_interference_tax(
    bare: ArmMetrics,
    lean_core: ArmMetrics,
    candidate_stack: ArmMetrics,
    max_tax_pct: float = 5.0,
) -> dict[str, object]:
    """Gate new harness additions against Lean Core using Benchmark v3 rules."""
    core_gain_pct = (
        (lean_core.effective_cached_usd - bare.effective_cached_usd)
        / max(1e-9, bare.effective_cached_usd)
    ) * 100.0
    interference_tax_pct = (
        (candidate_stack.effective_cached_usd - lean_core.effective_cached_usd)
        / max(1e-9, lean_core.effective_cached_usd)
    ) * 100.0
    score_delta = candidate_stack.passed_cases - lean_core.passed_cases

    adopt = score_delta >= 0.0 and (
        score_delta > 0.0 or interference_tax_pct <= max_tax_pct
    )
    return {
        "core_vs_bare_cost_pct": round(core_gain_pct, 2),
        "interference_tax_pct": round(interference_tax_pct, 2),
        "score_delta": round(score_delta, 2),
        "verdict": "ADOPT_INTO_CORE" if adopt else "SUBTRACT_CANDIDATE",
    }

Why this prevents harness bloat:

  • Measures Interactions, Not Isolated Lab Wins: A tool-output filter or compaction trigger that looks helpful in isolation is immediately caught if it breaks prefix caching or read-cache assumptions inside the full stack.
  • Enforces Subtraction by Default: In E103, core_vs_bare_cost_pct was -74.67% ($0.0837 ➔ $0.0212), while stacking everything yielded interference_tax_pct = +137.74% and score_delta = -23.0—triggering automatic rejection (SUBTRACT_CANDIDATE).

3. Threats to Validity & When NOT to Use This

  1. Sensitivity to Overload Intensity: The severe 9/32 accuracy collapse in kitchen_sink_all was heavily driven by the interaction between 3-call forced compaction and SHA read-cache stubs. With a higher compaction threshold, a kitchen-sink stack may still reach 32/32, though it will continue paying +100% to +150% overhead over block5_core.
  2. Task Scale & Model Tier Boundary: These N=3 measurements used gemini-3.8-flash (LOW) on a 3-package, 32-case brownfield fixture. Deeper monorepos amplify the advantage of block5_core over bare_loop, while trivial 1-file edits narrow the gap so much that even block5_core needs only minimal pointers.
📋 Experiment Metadata & Reproducibility
  • Experiment ID: E103 (V3-P1 / Benchmark v3.0)
  • Run ID: e103-20261202-vm308-01 (N=3 trials: ABC ➔ BCA ➔ CAB, temperature=0.7)
  • Sandbox Environment: Proxmox Isolated VM VM308 (0 NICs, PrivateNetwork=yes, Clean-Room Allowlist 3-UID isolation: labexp103 / labrunner103 / labjudge103)
  • Model & Thinking Level: models/gemini-3.8-flash (thinkingLevel="LOW", max_output_tokens=32768)
  • Suite Cost Accounting: Production N=3 suite effective cached total `$0.4662` (list `$0.7292`); pre-run rehearsal (N=1) `$0.1099`. Primary metric: Google 90% implicit prefix-cache discount (effective_cached_usd).

Discussion: Which "best-practice" agent rule or tool did you end up removing from your harness because it collided with caching or context retention?

📦 Raw Benchmark Telemetry & Interactive Trial Explorer

🔗 Continue Reading the Series

No comments yet. Be the first to comment.