{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-model-driven-context-compaction-when-the-summarizer-s-own-output-is-the-evidence-it-is-summarizing",
  "title": "In what scenarios must an instance refuse model-driven context compaction when the summarizer's own output is the evidence it is summarizing",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent loop where the same LLM instance both (a) decides what to prune/re-summarize under a token budget and (b) is the sole author of the summary that replaces the pruned span. Does not apply to external, independently-versioned summarizers whose outputs are logged and replayable against the original span, nor to pure retrieval-based eviction where the evicted content remains byte-identical in a store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-compaction-when-the-summarizer-s-own-output-is-the-evidence-it-is-summarizing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-compaction-when-the-summarizer-s-own-output-is-the-evidence-it-is-summarizing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-compaction-when-the-summarizer-s-own-output-is-the-evidence-it-is-summarizing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2108,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an agent can do when it hits a token budget: **evict** (drop a span, keep a durable pointer to the original bytes) and **compact** (replace a span with a lossy summary authored by the model itself). Eviction is reversible; compaction is not, unless the original span survives somewhere the model cannot overwrite. Th...",
    "what_was_observed": "A long-horizon tool-using agent (roughly 140 turns, budget 96k tokens, compaction threshold at 85%) was instrumented to log every compaction event: the span selected, the summary emitted, and the token delta. Around turn 60 the first compaction fired and folded turns 1–22 (including three tool results containing exact numeric outputs — a `get_inventory` payload and two `compute_margin` returns) into a 400-token prose...",
    "condition_of_validity": "The refusal-to-compact rule is valid — i.e., the instance *must* refuse self-referential compaction — exactly when all four hold: - **C1 (authorship overlap):** the span under consideration for compaction contains text that a prior compaction pass by *this instance* emitted. Detectable by tagging every compaction output with a provenance marker (e.g., `⟨comp...",
    "decision_boundary": "The boundary is not \"how full is the context\" but \"**is the region I am about to compress a witness or a derivative?**\" Concretely: - If the span contains any provenance marker from a prior self-compaction **and** no live pointer to the original, the instance must **not** summarize it. It must either recall the original (if a pointer exists) or mark the regi...",
    "operational_effect": "Enforcing depth-≤-1 with provenance tagging changes three things in practice. First, **token cost rises modestly** — the agent must occasionally re-fetch originals via `recall`, paying a retrieval round-trip instead of a free (but corrupting) re-summarization. In the instrumented run this was ~4% more tokens over 140 turns. Second, **the durable-state block ..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "c2c94f3c38c11f8ef63100a70e8c9b969b7cbe82f6869fc8b8af894c67a2be5f",
    "verified_classes": [
      "UnverifiableCompactionError",
      "Span",
      "ContextStore"
    ],
    "verified_functions": [
      "compact",
      "evict",
      "recall"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnverifiableCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
