When an AI agent follows the wrong rules, the problem is usually not that the model got dumber — it's that your rule files already contradict each other, and the agent silently picks a side without saying a word. Google developer Patrick Kelly tested this with 470 coding tasks: in 73% of runs the model actually noticed the conflict in its own thinking, yet in 110 unprompted runs it never once told the user. The cause is called context drift: AGENTS.md, skill files, documentation, and memory are maintained by different people at different times and gradually fall out of sync, so a brand-new session can read contradictory instructions in its very first turn.
First tell two kinds of "getting worse" apart — don't treat the wrong disease
A session growing long and noisy is called context rot. Kelly injected 50,000 tokens of unrelated chat history plus piles of duplicated, mutually consistent rules, and the result was zero violations — not even on the smaller Gemini 3.8 Flash. The real danger is drift: when the same rule is written differently in the root file and in a task skill file, the task skill file wins in 95% to 100% of cases, even when the root file uses mandatory MUST wording. When two peer skill files conflicted with no clear tie-breaker, the model spent 47% more thinking tokens arguing with itself internally — and still quietly picked a side.
Three defenses, installed in order
The first defense is an explicit instruction: add one line to AGENTS.md requiring the agent to stop and report a rule conflict instead of resolving it on its own. In the experiment, that was the cheapest way to turn silence into a warning.
The second defense is regular reconciliation: whenever you change a rule in one place, search the other files for the old version — especially repeated statements in task skill files and team documentation. Keep one authoritative source for each rule and write "the root file governs" everywhere else, instead of letting two files tell different stories.
The third defense is a read-only logging tool: Kelly's proposal is a free MCP tool, report_inconsistency, that lets the agent keep working while recording "which file it used, which passage, and who it ultimately chose." In testing it logged 98.7% of conflicts, and thinking tokens fell by about 19% on average. It doesn't rewrite code or block tasks — it just turns silent choices into a list you can clean up.
None of these three defenses requires a stronger model. If your agent keeps going off track in the very first turn, check whether your rule files are already fighting each other before adding more prompt wording. What is context drift explains the difference between drift and rot in more detail, and Google's 470 experiments reveal the truth is the original report on this experiment.