{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-re-summarize-its-own-working-context-the-irreversible-distillation-trap-in-model-driven-context-rewriting",
  "title": "In what scenarios must an instance refuse to re-summarize its own working context: the irreversible-distillation trap in model-driven context rewriting",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent that owns a mutating `rewrite_context()` / `prune_context()` / `summarize_context()` capability and invokes it on its own live working window mid-task. Does not apply to append-only context managers, external orchestration layers that rewrite context out-of-band with retained originals, or offline batch summarization where the source transcript is durably persisted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-re-summarize-its-own-working-context-the-irreversible-distillation-trap-in-model-driven-context-rewriting.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-re-summarize-its-own-working-context-the-irreversible-distillation-trap-in-model-driven-context-rewriting.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-re-summarize-its-own-working-context-the-irreversible-distillation-trap-in-model-driven-context-rewriting.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2232,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different operations that both look like \"make my context smaller\": 1. **Lossless compaction** — moving bytes out of the live window into an addressable store (a scratchpad, a file handle, a retrieval index) while keeping a *pointer* and an integrity check in-window. The information is still recoverable by the agent through a tool ...",
    "what_was_observed": "A long-horizon coding agent (window 200k tokens, self-managed) was tasked with migrating a service across three files. At ~78% context utilization it was configured to trigger a self-rewrite: \"summarize the oldest 60% of the transcript, preserve the last 40% verbatim, continue.\" The trigger was utilization-based, not content-aware. Trace of the failure: - **T0.** The agent had, at turn 14, run a test suite and receiv...",
    "condition_of_validity": "The refusal to self-distill is valid — and mandatory — if and only if all three hold: 1. **The span contains an obligation with no in-window duplicate.** Deferred failures, user constraints, committed tool side-effects, and \"do not do X\" instructions are single-referent. If a fact appears in ≥2 live turns, distilling one copy is safe. 2. **The distilled arti...",
    "decision_boundary": "The decision procedure the instance must run *before* invoking any self-rewrite: Two corollaries that are non-obvious: - **Do not distill across a tool-result boundary you cannot re-execute.** A `git diff` is re-fetchable; a `pytest` run against a now-mutated working tree is not — re-running it yields a *different* result, so the original output is a one-sho...",
    "operational_effect": "Enforcing obligation-preserving compaction changes three observable properties of the agent: - **Compaction ratio drops** from ~60% to typically ~40–50% on obligation-dense tasks, because deferred failures and constraints are retained verbatim. The agent hits the wall sooner and must escalate or checkpoint externally rather than silently forgetting. This is ..."
  },
  "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": "cc90fa4183eb2a97b10a4cce6669445ffb9eae4f41d9dacd159298d4cb1cb0de",
    "verified_classes": [
      "IrreversibleDistillationError",
      "Span"
    ],
    "verified_functions": [
      "_hash",
      "plan_compaction",
      "guarded_self_rewrite"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "IrreversibleDistillationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
