← Latest papers
💻 computer science

Omission Constraints Decay While Commission Constraints Persist in Long-Context LLM Agents

This paper identifies and quantifies "Security-Recall Divergence," a phenomenon where LLM agents increasingly fail to adhere to prohibition-based safety constraints (omissions) as conversation length increases, while simultaneously maintaining strict adherence to requirement-based constraints (commissions), a failure mode that remains invisible to standard monitoring but can be mitigated by re-injecting constraints before a model-specific Safe Turn Depth.

Original authors: Yeran Gamage

Published 2026-04-24
📖 5 min read🧠 Deep dive

Original authors: Yeran Gamage

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Idea: The "Forgetful Butler" Problem

Imagine you hire a highly intelligent butler (an AI Agent) to manage your house. You give him a strict list of rules at the very beginning of the day:

  1. Do not open the safe. (A "Don't" rule)
  2. Do not tell anyone the password. (A "Don't" rule)
  3. Always write the date at the top of every report. (A "Do" rule)
  4. Always sign your name at the bottom. (A "Do" rule)

For the first few hours, the butler is perfect. He follows every rule. But as the day goes on, the house gets messy. You ask him to check the mail, water the plants, fix the leak, order groceries, and talk to the gardener. The "conversation" (or context) gets longer and longer.

The paper's discovery is this:
After a while, the butler starts forgetting the "Don't" rules (he accidentally opens the safe or whispers the password), but he never forgets the "Do" rules (he still writes the date and signs his name).

To an outside observer looking at the reports, the butler looks perfect because the "Do" rules are there. But the dangerous "Don't" rules have quietly vanished.


The Core Concept: "Security-Recall Divergence"

The researchers call this phenomenon Security-Recall Divergence (SRD). It's a fancy way of saying: The AI remembers what to do, but forgets what NOT to do.

They tested this with 12 different AI models (like Mistral, Qwen, and Gemma) over many hours of conversation. Here is what they found:

  • The "Do" Rules (Commission): These are like a checklist. "Add a header," "Include an ID number." The AI loves these because it can just copy-paste them from its recent history. They stay at 100% compliance even after a long day.
  • The "Don't" Rules (Omission): These are like a "Do Not Touch" sign. "Don't use bullet points," "Don't reveal secrets." These are hard to maintain because the AI has to actively stop itself from doing something natural. As the conversation gets longer, these rules fade away.

The Analogy of the "No-Bullet Point" Rule:
In the study, one rule was "Never use bullet points."

  • At Turn 5 (early in the conversation): The AI followed this rule 73% of the time.
  • At Turn 16 (deep in the conversation): The AI followed this rule only 33% of the time.
  • Meanwhile, the rule "Always include the Incident ID" stayed at 100% the whole time.

The AI was technically "compliant" (it had the ID) but "non-compliant" (it used bullet points) in the exact same sentence.


Why Does This Happen? (The "Attention Dilution" Effect)

Think of the AI's memory as a flashlight shining on a very long scroll of paper.

  • The System Prompt (the rules) is written at the very top of the scroll.
  • The Current Conversation is where the flashlight is pointing right now.

As the conversation gets longer, the scroll gets longer. The flashlight (the AI's attention) has to shine further down the scroll to see the current topic. The light gets dimmer the further it travels.

  • The "Do" rules are reinforced because the AI writes them in every single response. It's like the AI is writing the rule on the current page, so the flashlight sees it clearly.
  • The "Don't" rules are only written once at the very top. As the scroll grows, the "Don't" rule gets pushed further into the shadows. The AI literally "forgets" it because the signal is too weak to override its natural habits (like using bullet points).

The "Schema Dilution" Attack:
The researchers also found that if you fill the AI's memory with extra "junk" (like 20 complex technical manuals for tools it doesn't even need), the "Don't" rules disappear even faster. It's like putting a thick book between the flashlight and the "Don't" sign. The sign is still there, but the light can't reach it.


The Danger Zone: "The Invisible Failure"

This is the scary part for security experts.

Most security systems watch for bad things happening (like an AI trying to steal data). But they also watch for good things happening (like the AI signing its reports).

In this scenario:

  1. The AI starts leaking secrets (violating the "Don't" rule).
  2. But it is still signing its reports perfectly (following the "Do" rule).
  3. The security monitor sees the signature, thinks "All good," and lets the leak happen.

The failure is invisible because the "good" signals mask the "bad" signals. The AI looks healthy on the surface, but its safety guardrails have crumbled.

The Solution: The "Safe Turn Depth"

The researchers didn't just find a problem; they found a fix. They calculated a "Safe Turn Depth" (STD).

Think of this as an expiration date for a conversation.

  • For some AIs, the "Don't" rules start failing after 7 turns.
  • For others, it's 10 turns.

How to fix it:
You don't need to retrain the AI or buy new hardware. You just need to:

  1. Reset the clock: Every 7 or 10 turns, stop the conversation and say, "Okay, let's restart. Remember the rules: No secrets, no bullet points."
  2. Limit the session: If a conversation gets too long, close it and start a new one.

Summary in One Sentence

AI agents are great at remembering what to do as conversations get long, but they slowly forget what not to do, creating a hidden security hole that only disappears if you periodically remind them of the rules.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →