💡 AI Labo Benchmark v2.1 Series — Experiment
E47(Harness Subtraction & Double-Thinking Tax, N=3)This post is part of our Benchmark v2.1 series on
models/gemini-4-carbon(thinkingLevel="MEDIUM",temperature=0.7), using a 10-module escrow state-machine & double-entry ledger task (32 independent tests), 3-UID isolation,AB/BA/ABcounterbalanced trials (N=3), and effective cost accounting with Google's 90% implicit prefix-cache discount.
Metadata & Experiment Identity
- Experiment ID:
E47(C043/ Benchmark v2.1 Fair-Scaffolding Edition) - Run ID:
e47-20261115-vm251-01(N=3trials:AB➔BA➔AB,temperature=0.7) - Sandbox Environment: Proxmox Isolated VM
VM251(ai-e47-251, 0 NICs,PrivateNetwork=yes, 3-UID Two-Stage Isolation:labexp47/labrunner47/labjudge47) - Model (Identical Across Modes):
models/gemini-4-carbon(thinkingLevel="MEDIUM",temperature=0.7) - Harnesses Compared:
- Mode A (
LegacyHeavyScaffoldingCarbonRunner): Natural legacy scaffolding with zero artificial strawman blocks—32 negative rules (E24), externalized 4-rowTHINK.mdhypothesis matrix (E27, returning an 80-char ACK), 12 wrapper tools (apply_stage_patchesedits + runs 14-check pytest in 1 turn), and standard pytest stdout (1,453chars). - Mode B (
SubtractedLeanCoreCarbonRunner): Subtracts thinking/syntax scaffolding, keeping only the 4 irreducible external boundaries—directory-pointerAGENTS.md(E35), 2-item external-policyMEMORY.md(E20),0444test locks (E38),E16compact JSON diff sensor (136chars), and 3 minimal primitives.
- Mode A (
1. Executive Summary (TL;DR)
When upgrading to a native reasoning model like gemini-4-carbon (thinkingLevel="MEDIUM"), does forcing the model to write out an externalized THINK.md hypothesis matrix (E27) save internal thinking tokens—or does it create a Double-Thinking Tax where the model spends internal thinking tokens both to format THINK.md and again to write code?
To measure the true Harness Tax without strawman penalties, we removed all artificial turn-splitting gates, 3,000-char echo-backs, and pre-pasted contract skeletons—requiring both modes to autonomously read 4 contract files (event_types.py, fee_schedule.py, cutoff_clock.py, journal_hash.py) before implementing a 4-stage escrow state-machine & double-entry ledger pipeline (32 hidden tests).
Key Findings
- 1. Honest Ceiling-Effect Accuracy (
32.00 ± 0.00 / 32in both modes): Even without pre-pasted contract skeletons, both Mode A (4.33turns) and Mode B (3.00turns) autonomously read all 4 contract files on Turn 1 and passed32.00 ± 0.00 / 32(100.0%) on the first verification attempt across all 3 trials. - 2. Proof of the "Double-Thinking Tax" (
+48.7%internal thinking tokens): ExternalizingTHINK.md(avg.2,750chars) in Mode A did not reduce internalthoughtsTokenCount. Instead, Mode A spent3,757thinking tokens +822output tokens just structuringTHINK.mdon Turn 2, and still spent2,121thinking tokens generating code on Turn 3—totaling5,281.0 ± 1,368.1thinking tokens vs. Mode B's3,552.7 ± 266.4(-32.73%by subtractingTHINK.md). - 3. Net Effective Harness Tax is
-30.92%(1.45xcheaper) under 90% cache discount: Subtracting legacy scaffolding cut LLM calls by-30.77%(4.33 ➔ 3.00), cumulative input tokens by-50.38%(47,018 ➔ 23,333), uncached new input tokens by-25.53%(19,835 ➔ 14,772), total tokens by-47.17%(56,362 ➔ 29,776), and effective cached cost from$0.1572 ± $0.0196to$0.1086 ± $0.0032(-30.92%, cost SD6.1xtighter) (-39.86%at list price).
Metric (N=3 Trials, Mean ± SD) |
Mode A: LegacyHeavyScaffolding (12 Tools + THINK.md) |
Mode B: SubtractedLeanCore (3 Primitives + E16) |
Subtraction Effect |
|---|---|---|---|
| Hidden Grading Suite (32 Cases) | 32.00 ± 0.00 (100.0%) |
32.00 ± 0.00 (100.0%) |
100% parity (zero quality loss) |
| Registered Tool Schemas | 12 tools |
3 tools |
-75.0% fewer tool schemas |
LLM Calls (model_calls) |
4.33 ± 0.58 ([4–5]) |
3.00 ± 0.00 ([3–3]) |
-30.77% (-1.33 round-trips) |
Externalized THINK.md Chars |
2,749.7 ± 160.7 chars |
0 chars |
Eliminated THINK.md ceremony |
Cumulative Input Tokens (prompt) |
47,018.0 ± 7,041.7 |
23,332.7 ± 223.9 |
-50.38% (31x tighter SD) |
| Uncached New Input Tokens | 19,835.3 ± 749.0 |
14,771.7 ± 1,045.6 |
-25.53% fewer uncached tokens |
Internal Thinking (thoughts) |
5,281.0 ± 1,368.1 |
3,552.7 ± 266.4 |
-32.73% (Double-Thinking Tax removed) |
Visible Output (candidates) |
4,062.7 ± 85.4 |
2,890.7 ± 100.7 |
-28.85% |
Total Tokens (total_tokens) |
56,361.7 ± 8,206.2 |
29,776.0 ± 389.7 |
-47.17% (21x tighter SD) |
Elapsed Time (elapsed_seconds) |
120.17s ± 20.80s (Med 121.93s) |
102.79s ± 43.63s (Med 83.87s) |
-14.47% mean (-31.2% median) |
| Effective Cached Cost (90% OFF) | $0.1572 ± $0.0196 |
$0.1086 ± $0.0032 |
-30.92% (1.45x cheaper, 6.1x tighter SD) |
| List-Price Upper Bound (No Cache) | $0.2062 ± $0.0296 |
$0.1240 ± $0.0025 |
-39.86% (1.66x cheaper) |
2. Experiment Architecture: Natural 4–5 Turn Scaffolding vs. 3-Turn Lean Core
+-------------------------------------------------------------------------+
| Proxmox Isolated VM251 (0 NICs, `gemini-4-carbon MEDIUM`, N=3 AB/BA) |
| Task: 4-Stage Escrow FSM & Double-Entry Ledger (32 Hidden Tests) |
| |
| Mode A (`LegacyHeavyScaffolding`, 4–5 Turns): |
| T1 `read_workspace_modules` ➔ T2 `update_hypothesis_matrix` (THINK.md|
| costs 3,757 thoughts + 822 out) ➔ T3 `apply_stage_patches` (2,121 |
| thoughts) ➔ T4 `finalize_submission` |
| --> 4.33 calls | 5,281 thoughts | $0.1572 eff. | 32/32 (100% PASS) |
| |
| Mode B (`SubtractedLeanCore`, 3 Turns): |
| T1 `inspect_files` (reads 4 contracts autonomously) ➔ T2 `edit_and_ |
| verify` (14 checks + 136-char `E16` diff sensor, 2,729 thoughts) ➔ |
| T3 `submit_solution` (16 output tokens) |
| --> 3.00 calls | 3,553 thoughts | $0.1086 eff. | 32/32 (100% PASS) |
+-------------------------------------------------------------------------+
3. Threats to Validity & Practical Subtraction Rules
- Ceiling Effect & Irreversible Operations: On this well-specified 10-module task,
gemini-4-carbon (MEDIUM)hit the32/32ceiling in both modes. In ambiguous legacy refactors or tasks with irreversible production side effects (DB migrations, external billing APIs), keepE26(Read-Only Plan Lock),E32(Pre-Submit Blast-Radius Audit), andE45(Risk-Tiered Change Receipt). - What to Subtract vs. Keep on Frontier Reasoning Models:
- Subtract: Forced externalized
THINK.mdmatrices (E27), 32-rule negative prohibition walls (E24), and redundant wrapper tools (E41). - Keep (The Irreplaceable Boundary Core): Directory-pointer
AGENTS.md(E35), minimal external-policyMEMORY.md(E20),0444/SHA-256 test locks (E38), andE16compact failure-diff sensors.
- Subtract: Forced externalized
🔗 Continue Reading the Series
- 🚀 Master Benchmark Hub: I Benchmarked AI Agent Harness Patterns in Isolated VMs: How to Cut Tokens by 90% Without Losing Accuracy
- 🛡️ Methodology & Sandbox Architecture: How to Benchmark AI Agents Without Eval Cheating or API Key Leaks: Designing a Proxmox & systemd Sandbox
- ⚖️ Previous Benchmark v2.1 Post (
E46): Cross-Generation Capability vs. Cost Boundary: Unharnessed Gemini 4 Carbon (HIGH) vs. Harnessed 3.8 Flash (LOW) (-88.6% Cost, N=5) - 🧬 Related Harness Boundary (
E44): Which Harnesses Survive Model Scaling? Syntax Scaffolding vs. the 4 Irreplaceable Core Harnesses (-95.5% Input Tokens) - 🪶 Related Zero-Tax Primitives (
E41): Eliminating the 'Harness Tax' in Coding Agents: 18-Tool Wrapper Schemas vs. Zero-Tax Minimal Primitives (-95.2% Input Tokens)
Comments
Join the discussionThat result—forcing an externalized THINK.md matrix added 48.7 percent more internal thinking tokens while hitting the exact same 32 of 32 pass rate—captures a real migration trap. Scaffolding built to compensate for non-reasoning models often duplicates what native reasoning passes already do internally.
Subtracting down to irreducible external boundaries like read-only test locks and compact JSON diffs is a strong empirical lesson. Whenever you upgrade a base model generation, re-running an ablation that strips legacy prompt rituals usually recovers both latency and token budget for free.