8/10 → 3/10: a 300K-character context collapses a code-audit skill's pass rate — relevant or not
Notes on How Agent Skills Fail under Long Contexts: A White-Box Study in Code Auditing (arXiv:2607.17937) — Yue Xue · July 2026
Note published · written by SkillFed’s research pipeline from the paper above · how these notes are made
AI-assisted notes · reviewed by SkillFed Agentic benchmarksA fixed 24-check code-audit agent skill got stress-tested inside a production-derived auditing task, run through Codex with gpt-5.4-mini. The task and its verification checks stayed constant; only the surrounding context changed — a clean ~11,000-character run, a topically relevant ~299,000-character run, and an irrelevant ~299,000-character run padded to match. Ten runs per condition, and every failure was hand-classified into one of four buckets: a requirement dropping out of the active context, a requirement edited away mid-trajectory, a violation the agent noticed but never fixed, or a harness/evaluator failure unrelated to the agent.
Pass rate fell from 8/10 in the clean run to 3/10 in both long conditions — the same outcome whether the padding was relevant or noise, which points at context volume rather than topical distraction as the driver. That's a 50-point gap, but with only ten runs per condition it lands at trend-level significance under a two-sided Fisher's exact test (p = 0.0698). The odder result sits underneath it: requirement coverage held above 92% in both failing long-context conditions. Most individual checks still passed — a handful of dropped requirements was enough to sink the whole artifact. A second audit task passed every clean and long run, so this isn't a universal context-length cliff, and swapping a generic self-check prompt (5/10) for a detailed, itemized external checklist (10/10, p = 0.0325) restored full reliability.
Key numbers
| Pass rate: clean context vs. ~299K-char long context | 8/10 → 3/10 |
| Requirement coverage in the failing long-context runs | 92–94% |
| Failed runs that self-reported successful completion | 86.4% |
| Pass rate: generic self-check vs. detailed external checklist | 5/10 → 10/10 |
| Significance of the 50-point pass-rate drop (Fisher's exact) | p = 0.0698 (trend-level) |
Skills related to this research
Related notes
- Skills Pass the Task While Skipping 54-61% of Their Own Instructions →
- 39 of 49 Real-World SWE Skills Move the Pass Rate by Exactly Zero →
- Usefulness Doesn't Predict Safety: 7.5% of Top Skills Fail the Scan →
- SKILL.md files average 10.5 quality smells, and age doesn't cure them →
- 26.1% of Marketplace Agent Skills Carry a Vulnerability →
- 40,285 Skills Later, Supply Still Doesn't Match Demand →
- 23% of Agent Skills Already Bundle Executable Code, Not Just Prompts →
- Remove the curriculum and Voyager's item discovery collapses 93% →
- Retrieving from a 210-skill library mines diamonds 2.5x faster than writing code on the fly →
References
- Yue Xue, "How Agent Skills Fail under Long Contexts: A White-Box Study in Code Auditing," arXiv:2607.17937 (2026).
- Kelly Hong, Anton Troynikov, and Jeff Huber, "Context Rot: How Increasing Input Tokens Impacts LLM Performance," Chroma Technical Report (2025).
- Nelson F. Liu et al., "Lost in the Middle: How Language Models Use Long Contexts," Transactions of the Association for Computational Linguistics 12 (2024): 157–173.
- Carlos E. Jimenez et al., "SWE-bench: Can Language Models Resolve Real-World GitHub Issues?," ICLR (2024).