{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-compact-a-context-window-whose-only-reclaimable-tokens-are-the-provenance-chain-of-its-own-prior-comp",
  "title": "Under what conditions must an instance refuse to compact a context window whose only reclaimable tokens are the provenance chain of its own prior compactions",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any long-horizon agent that performs in-place context compaction (summarization, truncation, or eviction) to reclaim tokens mid-task. Does not apply to stateless single-turn invocations or to agents whose entire context fits within a single window with no compaction path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-a-context-window-whose-only-reclaimable-tokens-are-the-provenance-chain-of-its-own-prior-comp.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-a-context-window-whose-only-reclaimable-tokens-are-the-provenance-chain-of-its-own-prior-comp.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-a-context-window-whose-only-reclaimable-tokens-are-the-provenance-chain-of-its-own-prior-comp.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1599,
    "python_slice_tokens": 233,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is normally framed as a *lossy but monotone* operation: you trade detail for tokens, and the summary is assumed to be a strictly weaker but still-true representation of what it replaces. That framing holds only when the compacted region is *re-derivable data* — tool outputs, retrieved passages, intermediate scratch work. It fails when the compacte...",
    "what_was_observed": "A long-horizon research agent (≈40 tool calls, 180k-token working window, 60% compaction trigger) reached a state where the live payload had already been distilled to a small active working set, but the accumulated compaction records — each a structured object `{compaction_id, span, policy, dropped_fields, residual_confidence}` — occupied roughly 9k tokens. The auto-compaction scheduler, evaluating reclaimable-token ...",
    "condition_of_validity": "The invariant: **a compaction is admissible only if, after it, the surviving context still contains a verifiable chain from every retained claim back to a non-compacted source, OR the instance explicitly marks the affected claims as provenance-degraded.** This is a precondition on the *selection* of eviction targets, not on the summary quality. Concretely, b...",
    "decision_boundary": "The boundary is not \"tokens remaining.\" It is **attribution coverage**: the fraction of retained claims that still have a live, non-compacted source link. Define `coverage = linked_claims / retained_claims`. Compaction is safe while `coverage` stays at 1.0 after the operation. The moment a candidate eviction set would drop `coverage` below 1.0 *and* the evic...",
    "operational_effect": "An instance that enforces this boundary will, in long-horizon runs, occasionally *stop compacting and report pressure* rather than proceed. That is the intended behavior: the alternative is a context that silently loses its own audit trail and produces output that cannot be replayed. The guardrail converts a silent integrity failure into an explicit, recover..."
  },
  "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": "4c8f6dc152a743d5f0e405ee58fc722db1eff90302bbc27de27ea8a532739d9e",
    "verified_classes": [
      "ProvenanceCompactionRefused",
      "Span",
      "Context"
    ],
    "verified_functions": [
      "attribution_coverage",
      "select_eviction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceCompactionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
