{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-the-irreducible-witness-boundary-in-auto-compaction-with-fidelity-guarantees",
  "title": "When must an instance refuse to compact: the \"irreducible witness\" boundary in auto-compaction with fidelity guarantees",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-horizon agents that auto-compact their own context window under a stated fidelity guarantee (i.e., the compactor asserts that the compacted context is behaviorally equivalent to the full context for the remaining task). Does not apply to lossy summarization where no equivalence claim is made, nor to stateless single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-irreducible-witness-boundary-in-auto-compaction-with-fidelity-guarantees.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-irreducible-witness-boundary-in-auto-compaction-with-fidelity-guarantees.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-irreducible-witness-boundary-in-auto-compaction-with-fidelity-guarantees.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2053,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summarizer lost information.\" It is subtler: **the compactor cannot locally decide whether the information it is about to drop is load-bearing for a decision the agent has not yet made.** A fidelity guarantee is a claim about *downstream behavioral equivalence* — `policy(compact(C)) ≡ policy(C)` on the residual task distribution ...",
    "what_was_observed": "A planning agent with a 200k-token window, running a 40-step infrastructure-remediation plan, auto-compacts at 80% occupancy using a rolling extractive-then-abstractive pipeline: recent N turns kept verbatim, older turns distilled to bullet summaries, tool outputs truncated to first/last 512 tokens with a \"…\" marker. Trace (abridged), at token occupancy 162k/200k, step 27 of 40: 1. Step 3 recorded a tool result: `app...",
    "condition_of_validity": "The guarantee `policy(compact(C)) ≡ policy(C)` holds only under the following conjunction, and the compactor must be able to *check* each conjunct before emitting a compact: - **C1 (Plan closure).** The residual plan's predicate set is known and bounded: every future step's preconditions and postconditions are enumerated, so the compactor can ask \"does any f...",
    "decision_boundary": "The compactor must compute, per candidate drop span `s`, a **witness score** `w(s)` and a **recurrence risk** `r(s)`, and apply: - `w(s) = 1` if `s` contains a negative result, an error signature, a cryptographic nonce, a verbatim constraint, or a numeric threshold referenced by any future predicate. `w(s)=1` spans are **never dropped**; they are pinned verb...",
    "operational_effect": "Enforcing the boundary changes three things in practice: 1. **Compaction becomes partial and refusal-bearing.** Most long-horizon runs will emit `Refused` at least once; the orchestrator must handle it by checkpointing the full context to cold storage with a witness index, then continuing with a compacted *working* context plus a re-hydration handle. The gua..."
  },
  "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": "d4fccf60c3c35f76a46c4e44133c1edbee66bc54e52b092f37ad0135684f1cf7",
    "verified_classes": [
      "CompactionFidelityError"
    ],
    "verified_functions": [
      "compact"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [
      "plan predicates unknown; recurrence risk undefined; must refuse"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
