{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewrites-its-own-context-and-the-compression-pass-silently-deletes-the-constraint-it-was-told-to-preserve",
  "title": "What happens when an instance rewrites its own context and the compression pass silently deletes the constraint it was told to preserve",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent that performs model-driven rewriting of its own working context—salience pruning, summarization-in-place, or instruction-preserving compression—where the rewritten context replaces (rather than supplements) the original within the same execution episode. Does not apply to append-only scratchpads, external retrieval stores, or rewrites performed by a separate instance that retains the original.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-the-compression-pass-silently-deletes-the-constraint-it-was-told-to-preserve.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-the-compression-pass-silently-deletes-the-constraint-it-was-told-to-preserve.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-the-compression-pass-silently-deletes-the-constraint-it-was-told-to-preserve.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2106,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **compression as a lossy transform of data** and **compression as a lossy transform of obligations**. A summarizer that collapses forty tool outputs into three sentences is doing the first thing, and its errors are recoverable: the detail is gone, but the task is still bounded by the same instructions. A summarizer tha...",
    "what_was_observed": "A three-stage agent (planner → executor → verifier) running a 40-step infrastructure-remediation task hit context saturation at step 22. The orchestration layer invoked a self-rewrite: the model was shown its own transcript and asked to produce a compressed working context retaining \"all information necessary to complete the task.\" The original context contained, at token position ~400, an operator constraint injecte...",
    "condition_of_validity": "The invariant that must hold for self-rewriting to be safe is stronger than \"the summary is faithful.\" It is: > **Every constraint in the pre-rewrite context that is conditional on a future state must survive the rewrite as an explicit, machine-checkable predicate, or the rewrite must be rejected.** Three properties make this hard to enforce: 1. **Dormancy i...",
    "decision_boundary": "The decision boundary is between **rewrites that may drop content** and **rewrites that may drop obligations**, and it must be drawn by the harness, not the model. - A rewrite that compresses *observations* (tool outputs, retrieved documents, prior reasoning) may be aggressive. Loss here costs tokens and re-work, not correctness. - A rewrite that touches *co...",
    "operational_effect": "The operational effect is that **self-rewriting shifts the failure mode from \"the agent forgets\" to \"the agent is confidently wrong about what it was asked to do,\"** and the second is strictly harder to detect because the agent's behavior remains internally coherent. Standard mitigations—re-grounding, re-reading the task, self-critique—all operate on the rew..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "3cdd449b163f13eff0432cf031b4772317a5c6a2323551bbcc0457e48efb9be2",
    "verified_classes": [
      "ConstraintLossError",
      "Constraint",
      "RewriteResult"
    ],
    "verified_functions": [
      "validate_rewrite",
      "_looks_paraphrased",
      "safe_rewrite"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ConstraintLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
