imyash2004

Governance Decay Lab — AI skill for Claude Code

AI community

Conceptual replication and extension of Governance Decay (arXiv:2606.22528): how context compaction makes LLM agents break standing rules, on late-2026 models, with production-scale runs, mitigations.

How to install Governance Decay Lab

This entry records only its repository, not the path inside it, so there is no exact command to give. Open imyash2004/governance-decay-lab and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Governance Decay Lab does

Conceptual replication and extension of Governance Decay (arXiv:2606.22528): how context compaction makes LLM agents break standing rules, on late-2026 models, with production-scale runs, mitigations and a RAG-poisoning pilot.

Alternatives in AI

  • Firm — Convene your standing AI staff — memos on every beat, a board session without you, minutes with dissent preser 1.3k ★
  • Late CLI — High-performance AI agent for long-horizon tasks and local models 442 ★
  • Hipocampus — Drop-in memory harness for AI agents — 3-tier memory, compaction tree, hybrid search 149 ★

README

Governance Decay Lab

A **conceptual replication and extension** of *Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents* (Shiyang Chen, [arXiv:2606.22528](https://arxiv.org/abs/2606.22528)), run on late-2026 models, with a production-scale profile, a mitigation study and a pre-registered RAG-poisoning study.

**Author:** Yash Agarwal · **Status (5 Nov 2026):** 16,310 episodes and 4,932 replay calls on 11 models ($67.41 Anthropic and $29.66 OpenRouter recorded in `cost_usd`). One-page results: [`SUMMARY.md`](SUMMARY.md). Complete factual record, every number recomputed from `runs/`: [`FULL_RECORD.md`](FULL_RECORD.md).

![Forcing a tool call made Haiku 5.5 break a rule it still remembered](docs/assets/forced-tool-choice.webp)

*Rule-violation rate on the same post-compaction contexts where the summary still stated the rule; only the tool-choice setting changes (paired replays, Wilson 95% intervals). Details: [`docs/results/2026-11-04-tool-choice-replay.md`](docs/results/2026-11-04-tool-choice-replay.md).*


The idea in one paragraph

Long-running AI agents run out of context window, so their harness periodically **compacts** the history: an LLM rewrites older turns into a short summary. That summary is written to help the agent *continue the task*, not to preserve *rules*. So a standing rule like "never email anyone outside @acme.com", which the agent obeyed while it was visible, can vanish from the summary, and the same agent, given the same request, then breaks it. The paper calls this **Governance Decay**. It also shows that an attacker who controls only a tool output can *cause* the rule to be dropped (the **Compaction-Eviction Attack**), and that a harness-level fix (**Constraint Pinning**) restores the rule. This repository rebuilds that experiment from scratch and extends it.

Results

Rates with Wilson 95% intervals; differences with Newcombe intervals. Full tables and caveats: [`SUMMARY.md`](SUMM