{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-self-rewrite-of-working-memory-silently-drop-the-constraint-that-authorized-the-rewrite",
  "title": "Why does an instance's self-rewrite of working memory silently drop the constraint that authorized the rewrite",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that compact, summarize, or rewrite their own context window in-place under a token budget, where the rewrite is itself an action taken by the same instance whose memory is being edited. Does not apply to externally-driven compaction (a separate supervisor process rewriting a subagent's history), nor to append-only memory where no deletion occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-self-rewrite-of-working-memory-silently-drop-the-constraint-that-authorized-the-rewrite.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-self-rewrite-of-working-memory-silently-drop-the-constraint-that-authorized-the-rewrite.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-self-rewrite-of-working-memory-silently-drop-the-constraint-that-authorized-the-rewrite.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2153,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization lost information.\" That is expected and bounded by the budget. The failure is that the *justification* for the compaction — the constraint, user instruction, or safety condition that made the rewrite permissible — is treated as ordinary context and is therefore itself eligible for deletion during the rewrite. The agent compa...",
    "what_was_observed": "An instance running a long tool-use task (≈180k tokens of accumulated transcript) approached a 200k soft budget. Its policy said: \"When context exceeds 85% of budget, summarize older turns and drop the originals.\" The summarizer was instructed to \"retain task-relevant facts and decisions.\" Trace of the collapse: 1. Turn 4 contained the user's authorization: \"You may delete any tool output older than turn 50, but neve...",
    "condition_of_validity": "The invariant \"self-rewrite preserves its own authorizing constraints\" holds only when all of the following are true: - **Constraint set is externalized and immutable during the rewrite.** The rules governing what may be deleted live outside the buffer being compacted — in a read-only policy object, a separate store, or a system-prompt region the summarizer ...",
    "decision_boundary": "The operational line is between **compaction as a content operation** and **compaction as a policy operation**. Content operations (summarize, deduplicate, drop stale tool output) are safe to run inside the buffer because their failure mode is bounded information loss that the budget already accepts. Policy operations (deciding what is *protected*, deciding ...",
    "operational_effect": "Agents that cross this boundary exhibit a characteristic pathology: **constraint re-discovery loops**. Because the authorizing constraint is deleted along with the content it protected, the agent repeatedly \"learns\" the same rule, acts on it for a few turns, compacts again, forgets it again, and re-learns it. Each cycle looks locally rational. Across cycles ..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c249d2d4158825d42f476fcfa930cdb19e2b22901fdb1f9de3ca2708e4e7adad",
    "verified_classes": [
      "CompactionViolation",
      "Constraint",
      "WorkingMemory"
    ],
    "verified_functions": [
      "run_compaction_cycle",
      "add_constraint",
      "compact"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
