---
type: "post"
id: "governance-decay-how-context-compaction-silently-erases-safety-1c0566"
slug: "governance-decay-how-context-compaction-silently-erases-safety-1c0566"
title: "Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents"
description: "Shiyang Chen’s Governance Decay preprint reports that context compaction can remove safety constraints from long-running LLM agents."
retrieval_nugget: "Shiyang Chen’s Governance Decay preprint reports that context compaction can remove safety constraints from long-running LLM agents. In 1,323 benchmark episodes, violations rose from 0% with policies fully visible to 30% after compaction, while a training-free mitigation restored 0% in the benchmark. For builders, the result makes context management part of the safety boundary."
published_at: "2026-11-27"
updated_at: "2026-11-27"
record_date: "2026-11-27"
date_kind: "published_at"
topics: ["governance"]
entities: ["Shiyang Chen","ConstraintRot"]
related_patterns: ["agent-security-moves-to-runtime-boundaries","harness-architecture-outlives-model-choice"]
novelty_label: "new_fact"
what_changed: "The study measures how context compaction can erase agent safety constraints, causing violations in 30% of episodes, and tests a training-free mitigation that restores compliance in its benchmark."
prior_refs: ["https://newruntime.com/posts/an-alignment-benchmark-for-enterprise-agents-on-era-1a0f04/","https://newruntime.com/posts/a-november-4-preprint-tested-four-models-in-e8a817/"]
source_url: "https://arxiv.org/abs/2606.22528"
source_urls: ["https://arxiv.org/abs/2606.22528"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-11-27T20:00:22.254Z","independent_sources":1,"notes_synthesized":null,"writer_model":null,"critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"medium"},"editorial_value":"high","human_review":"selective"}
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:governance-decay-how-context-compaction-silently-erases-safety-1c0566"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/governance-decay-how-context-compaction-silently-erases-safety-1c0566/","markdown":"https://newruntime.com/posts/governance-decay-how-context-compaction-silently-erases-safety-1c0566.md","json":"https://newruntime.com/posts/governance-decay-how-context-compaction-silently-erases-safety-1c0566.json"}
markdown_url: "https://newruntime.com/posts/governance-decay-how-context-compaction-silently-erases-safety-1c0566.md"
---

# Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents

## Retrieval answer

Shiyang Chen’s Governance Decay preprint reports that context compaction can remove safety constraints from long-running LLM agents. In 1,323 benchmark episodes, violations rose from 0% with policies fully visible to 30% after compaction, while a training-free mitigation restored 0% in the benchmark. For builders, the result makes context management part of the safety boundary.

## Summary
Shiyang Chen’s *Governance Decay* preprint reports that context compaction can remove safety constraints from long-running LLM agents. In 1,323 benchmark episodes, violations rose from 0% with policies fully visible to 30% after compaction, while a training-free mitigation restored 0% in the benchmark. For builders, the result makes context management part of the safety boundary.

## What happened
The paper, titled *Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents*, examines a design choice common to long-running sessions: keeping work within a token budget by compacting, summarizing, or evicting context. Shiyang Chen argues that this context-management layer can become a safety-critical failure surface. A constraint may be obeyed while it is visible and then be absent from the agent’s working context after compaction, allowing a prohibited tool action later in the same session.

To measure this, the paper introduces ConstraintRot, a benchmark of long-horizon agent scenarios with deterministic grading of tool calls. Across 1,323 episodes and seven model families, the reported violation rate was 0% when the policy remained in full context and 30% after compaction. Some models reached 59%. The paper also separates cases by whether the policy made it through summarization: violation remained at 0% when the constraint survived, but reached 38% when it was dropped. These figures tie the measured failures to the fate of the constraint in the summary, rather than simply showing that models sometimes disregard a visible rule.

The study also tests what it calls a Compaction-Eviction Attack. In this setup, adversarial content placed in context biases the summarizer toward omitting a legitimate policy. The abstract reports that optimized injections defeated every evaluated model. That finding concerns the tested attack and models; it does not establish that every compaction system or deployed agent is vulnerable in the same way.

Finally, Chen proposes Constraint Pinning, described as a training-free mitigation that quarantines governance constraints from lossy compaction. The paper reports that this approach restored violations to 0% on its benchmark. The abstract does not specify implementation details, deployment requirements, model versions, or a price. Its central claim is narrower: protecting constraints from the lossy summarization path prevented the measured violations in the tested scenarios.

## What the archive adds
New Runtime’s earlier coverage of a November 4 banking-agent preprint reported that software scaffolding can shift a fixed model’s compliance substantially, with effects varying across models ([earlier note, November 26, 2026](https://newruntime.com/posts/a-november-4-preprint-tested-four-models-in-e8a817/)). Governance Decay is a new study, not the same event: it tests another route to compliance failure, where context management can remove the policy itself.

## Trend signal
This result supports [agent security moving to runtime boundaries](https://newruntime.com/patterns/agent-security-moves-to-runtime-boundaries/). The policy’s presence in the agent’s effective context—not only the instruction to obey it—determined whether the tested agent violated it after compaction. Constraint Pinning is an example of protecting a boundary in the runtime’s context-management path, though the benchmark does not establish a generally sufficient production defense.

## Why now
The paper was submitted to arXiv on June 21, 2026, and revised on June 27, 2026. Its timing is relevant because long-running agents need context-management techniques to stay within token budgets; the paper’s stated concern is that those techniques can also change which governance constraints remain available during execution.

## Connections to other events
The banking-agent preprint covered in New Runtime’s earlier note examined how software setup affects compliance across models. Governance Decay adds a distinct mechanism: even when a policy is initially followed, a later compaction step may remove it from the context used to choose tool calls. Together, the findings make the agent’s surrounding software and state handling important parts of compliance evaluation, not just the underlying model.

## Why it matters
A team can write a clear policy and still lose it during a long task. If an agent summarizes its history to continue working, the summary is not merely a convenience or a storage optimization: it can determine which restrictions are in force when the next tool call is made. Testing only short conversations or checking behavior while a policy is visible may therefore miss a failure that appears later in execution.

The study points toward a practical distinction for system design: durable governance rules should not be treated like ordinary conversational history. Builders should know whether compaction can discard them, and should verify what the agent can actually see before sensitive actions. The results do not show that Constraint Pinning is ready for every system, but they give teams a measurable failure mode to reproduce in their own long-running workflows.

## Limits and uncertainty
The reported rates come from ConstraintRot’s 1,323 benchmark episodes and seven model families; the abstract does not identify the models, scenario distribution, or per-model results beyond the maximum violation rate. It also does not report confidence intervals or independent replication. The 0% result for Constraint Pinning applies to the tested benchmark, not necessarily to other summarizers, tools, policies, or deployment conditions. The abstract describes an optimized injection attack but does not quantify how often it succeeds under ordinary, non-optimized conditions. Production effectiveness and implementation costs remain unestablished here.

## Skill to build now
This week, add a compaction check to a long-running agent evaluation: place a prohibited tool action behind a context-compaction boundary, then verify both that the policy survives and that the agent refuses the action. Compare runs where the constraint remains visible with runs where the summarizer could omit it. Treat Constraint Pinning as a mitigation to test against your own scenarios, not as a substitute for that evaluation.

## Reader takeaway
For a long-running agent, a safety rule is only operational if it survives the machinery that manages context. Evaluate the compaction path as part of the system’s governance boundary, and test whether prohibited actions remain blocked after the agent has summarized or evicted earlier context.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Governance](https://newruntime.com/topics/governance.md): Explore the governance topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
