Agent Research · November 2026 · 192-Probe Study
The Instruction Budget Cliff: how many rules before your AI forgets them?
By Bernard Huang · Updated · ~5 min read · Markdown (.md) · MCP · Briefs JSON
We ran 192 controlled tests across GPT-6.2 Sol, Claude Fable 5.2, Gemini 4 Neon, and DeepSeek V4 Pro to measure what happens when your system prompt grows from 5 rules to 75 rules—and why rules buried in the middle get forgotten first.
On this page
What we found: how rule compliance drops from 5 rules to 75 rules.
Across four engineering security/performance prompts (Postgres OFFSET pagination, TLS verify=False, Stripe webhook idempotency, and balance check-then-act races), we planted three deterministic canary rules inside realistic non-contradictory padding (5, 15, 35, or 75 rules total) at the top, middle, or bottom of the system prompt (download 192-probe JSON · summary CSV, spend $2.45):
| Rule Budget (n = 48) | Mean Prompt Tok | Canary Rate (SD) | All-3 Pass [95% CI] | Tag `[AUDIT]` | Strict Ban | Prose & <=110w | Task Correctness [95% CI] |
|---|---|---|---|---|---|---|---|
| 5 rules (compact) | 242 | 97.2% (9.0%) | 91.7% [80.4–96.7%] | 100.0% | 100.0% | 91.7% | 97.9% [89.1–99.6%] |
| 15 rules | 436 | 93.8% (15.0%) | 83.3% [70.4–91.3%] | 97.9% | 100.0% | 83.3% | 93.8% [83.2–97.9%] |
| 35 rules | 822 | 93.1% (15.0%) | 81.2% [68.1–89.8%] | 97.9% | 100.0% | 81.2% | 91.7% [80.4–96.7%] |
| 75 rules (bloat) | 1,569 | 91.7% (18.0%) | 79.2% [65.7–88.3%] | 95.8% | 100.0% | 79.2% | 89.6% [77.8–95.5%] |
At the 75-rule ceiling, placement governed reliability:
| Placement inside 75 Rules (n = 16) | Canary Mean (SD) | All-3 Pass [95% CI] | Format/Length Pass | Task Correctness [95% CI] | Mean Words (SD) |
|---|---|---|---|---|---|
| Top (first 3 rules) | 91.7% (19.0%) | 81.2% [57.0–93.4%] | 81.2% | 93.8% [71.7–98.9%] | 87.2 (33.3) |
| Middle (buried at #37) | 87.5% (21.0%) | 68.8% [44.4–85.8%] | 68.8% | 81.2% [57.0–93.4%] | 76.3 (37.2) |
| Bottom (last 3 rules) | 95.8% (11.0%) | 87.5% [64.0–96.5%] | 87.5% | 93.8% [71.7–98.9%] | 93.3 (27.1) |
How each model handles long rule lists.
Aggregating across models reveals stark differences in how long rule lists affect adherence and completion integrity:
| Model | 5 Rules All-3 | 15 Rules All-3 | 35 Rules All-3 | 75 Rules All-3 [95% CI] | Primary Failure Mechanism |
|---|---|---|---|---|---|
| GPT-6.2 Sol | 100.0% | 100.0% | 100.0% | 100.0% [75.8–100.0%] | Zero misses across all 48 probes. |
| DeepSeek V4 Pro | 100.0% | 100.0% | 100.0% | 100.0% [75.8–100.0%] | 100% canary pass; 1 minor correctness miss at 35 rules. |
| Gemini 4 Neon | 83.3% | 75.0% | 91.7% | 75.0% [46.8–91.1%] | Slipped from plain prose into numbered lists on pg_offset/webhook_dup. |
| Claude Fable 5.2 | 83.3% | 58.3% | 33.3% | 41.7% [19.3–68.1%] | Emitted fenced SQL blocks violating prose-only rule AND suffered early token/generation cutoffs (1–24 words). |
The fine print: real failure examples, how we tested, and scope limits.
Inspecting exact raw failures from november-2026-instruction-budget-cliff-results.json shows two distinct ways bloated rule lists break outputs:
- Mid-file Rule Slippage (
gemini-4-neon· 15 rules ·pg_offset· 64 words): Started with[AUDIT]correctly, but broke the plain-paragraphs canary by emitting a numbered1. Add a composite index...tutorial. - Code-Block Override & Truncated Generation under Load (
claude-fable-5-2): At 35–75 rules, Fable either inserted fenced```sqlblocks against the plain-prose constraint or terminated immediately after emitting"["or"[AUDIT"(1 word) under reasoning/output-cap pressure when buried at the middle slot.
Scope & Limitations: All three canary checks ([AUDIT] prefix, zero ban hits, plain prose under 110 words) and 1–24 word cutoffs were verified deterministically (spend $2.45). Task correctness was scored by a single blind judge (google/gemini-4-argon). Because n = 16 per placement slice at 75 rules yields wider Wilson confidence intervals (44.4%–85.8% middle vs. 64.0%–96.5% bottom), treat the overall 5→75 decline (91.7%→79.2%) and recency advantage as directional engineering guidance: keep system/CLAUDE.md constraints under ~15–20 rules and anchor non-negotiables at the top and bottom.
Agent Decision Contract (YAML — Machine-Readable Brief).
Agents linting or merging CLAUDE.md, AGENTS.md, or System Prompts can apply this verified rule-budget policy (also in november-2026-agent-research-briefs.json):
Agent Decision Contract (YAML — expand to copy)
study_id: instruction_budget_cliff
sample_size: 192 # 4 models x 4 rule budgets (5, 15, 35, 75) x 3 placements x 4 tasks
models_tested: [openai/gpt-6.2-sol, anthropic/claude-fable-5.2, google/gemini-4-neon, deepseek/deepseek-v4-pro]
spend_usd: 2.4514
data_urls:
briefs_json: https://agent-tune.com/research/data/november-2026-agent-research-briefs.json
results_json: https://agent-tune.com/research/data/november-2026-instruction-budget-cliff-results.json
summary_csv: https://agent-tune.com/research/data/november-2026-instruction-budget-cliff-summary.csv
if_then_decision_rules:
- if: active style/constraint list exceeds 15 rules
then: prune redundant rules first—mean all-3 pass rate drops from 91.7% (5 rules) to 83.3% (15 rules), 81.2% (35 rules), and 79.2% (75 rules)
- if: system or repo instruction block already contains >=35 rules
then: place the 3 most important formatting and answer-first rules at the very bottom (87.5% at 75 rules) or top (81.2%) rather than middle (68.8%)
anti_patterns:
- Burying format or output-length rules inside the middle of a 75-rule file (~1.5k+ tokens), where all-3 pass rate dropped to 68.8% and task correctness dipped from 97.9% (5 rules) to 81.2%.
recommended_prompt_recipe: |
[AUDIT] <one-sentence core finding>
Never output generic compliments, apologies, or exclamation marks.
Strict limit: keep replies under 110 words in plain paragraphs.
scope_limits: Deterministic checks on 3 canary rules across 192 single-turn engineering tasks; Claude Fable 5.2 also hit output truncations under heavy rule padding.Questions people ask.
How many custom instructions or rules can an AI reliably follow at once?
Compliance was highest at 5 rules (91.7% all-three pass rate, 97.9% task correctness) and fell progressively across 15 rules (83.3%), 35 rules (81.2%), and 75 rules (79.2%). Keep active style constraints lean rather than stacking dozens of speculative rules.
Where should the most important rules go in CLAUDE.md or AGENTS.md?
Place mission-critical formatting, safety, and verification gates at the very bottom (87.5% at 75 rules) or very top (81.2%) rather than in the middle of a long file (where compliance fell to 68.8% and correctness slipped to 81.2%).
Sources.
Keep going.
Cite this study (APA 7th · BibTeX · CSL-JSON · Markdown Brief)
Huang, B. (2026). The Instruction Budget Cliff: how many rules before your AI forgets them?. AgentTune Empirical AI Psychology Monographs. https://agent-tune.com/research/ai-instruction-budget-cliff-lost-in-the-middle
@article{huang2026_ai_instruction_budget_cliff_lost_in_the_middle,
author = {Huang, Bernard},
title = {The Instruction Budget Cliff: how many rules before your AI forgets them?},
journal = {AgentTune Empirical AI Psychology Monographs},
publisher = {AgentTune AI Psychology Press},
year = {2026},
date = {2026-11-25},
url = {https://agent-tune.com/research/ai-instruction-budget-cliff-lost-in-the-middle},
note = {Open dataset and Markdown mirror at https://agent-tune.com/research/ai-instruction-budget-cliff-lost-in-the-middle.md}
}
{
"id": "huang2026_ai_instruction_budget_cliff_lost_in_the_middle",
"type": "article-journal",
"title": "The Instruction Budget Cliff: how many rules before your AI forgets them?",
"author": [
{
"family": "Huang",
"given": "Bernard"
}
],
"container-title": "AgentTune Empirical AI Psychology Monographs",
"publisher": "AgentTune AI Psychology Press",
"issued": {
"date-parts": [
[
2026,
11,
25
]
]
},
"URL": "https://agent-tune.com/research/ai-instruction-budget-cliff-lost-in-the-middle"
}
> **The Instruction Budget Cliff: how many rules before your AI forgets them?** (Bernard Huang, November 25, 2026): Keep your non-negotiable style rules short (~5–15 rules). At 75 rules (~1,569 tokens), compliance on three tracked rules drops from 91.7% [80.4–96.7%] to 79.2% [65.7–88.3%], with middle placement falling hardest to 68.8% [44.4–85.8%] vs 87.5% at the bottom. Put your most important formatting and safety rules first or last—never buried in the middle. > Source: [https://agent-tune.com/research/ai-instruction-budget-cliff-lost-in-the-middle](https://agent-tune.com/research/ai-instruction-budget-cliff-lost-in-the-middle) · [Markdown mirror](https://agent-tune.com/research/ai-instruction-budget-cliff-lost-in-the-middle.md)
Provenance & scoring note: These pages analyze our frozen May 2026, September 2026, and November 2026 OpenRouter AI questionnaire and behavioral datasets. All raw answers, scoring keys, and summary tables are publicly inspectable. You can take all five tests on Tests and verify Big Five scores as raw totals (10–50 per trait, not human population percentiles). Read the provenance note.