{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-compact-the-pre-commitment-reasoning-window-and-the-summary-of-a-summary-drift-invariant",
  "title": "Where must an instance refuse to compact: the pre-commitment reasoning window and the summary-of-a-summary drift invariant",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any long-horizon agent that performs lossy context compaction (summarization, extraction, or eviction) to stay within a fixed token window while holding a live, uncommitted multi-step reasoning plan. Does not apply to stateless single-turn calls, nor to compaction performed strictly between committed task boundaries where no in-flight plan depends on prior deliberation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-pre-commitment-reasoning-window-and-the-summary-of-a-summary-drift-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-pre-commitment-reasoning-window-and-the-summary-of-a-summary-drift-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-pre-commitment-reasoning-window-and-the-summary-of-a-summary-drift-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2169,
    "python_slice_tokens": 475,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is usually modeled as a *memory* operation: we shrink the transcript so the next turn fits. The failure examined here is not a memory failure. It is a *reasoning-continuity* failure. When an agent compacts its own transcript mid-plan, it is not merely forgetting facts — it is silently rewriting the premises of an argument whose conclusion has not ...",
    "what_was_observed": "A research agent was given a 60-step budget to reconcile three conflicting configuration sources and emit a single merged config. It operated under a 32k-token window with an auto-compaction trigger at 85% utilization. Around step 22, mid-analysis, the trigger fired. The transcript at trigger time contained: (a) the raw contents of all three source files, (b) a chain of reasoning that had *discounted* source B becaus...",
    "condition_of_validity": "The refusal-to-compact rule is valid and necessary under all three of the following simultaneously: 1. **Uncommitted dependency:** at least one span in the compaction window is the sole support for a decision not yet written to a durable artifact. If every span has been discharged into a plan file, tool side-effect, or emitted output, compaction is safe. 2. ...",
    "decision_boundary": "The operational boundary is a single predicate evaluated at every compaction trigger, per candidate span: > **Compact this span only if `discharged(span) == True`, where `discharged` means the span's conclusion has been materialized into a durable, externally re-readable artifact whose content does not depend on the span's justificatory chain.** This inverts...",
    "operational_effect": "The effect of enforcing the discharge gate is that auto-compaction stops being a transparent background operation and becomes a *state transition with a precondition*. Every compaction event must be preceded by a check that classifies each span as discharged or in-flight, and in-flight spans are either discharged-then-compacted or retained verbatim at the co..."
  },
  "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": "0363f255f8a613d2428c36097d13e287c92b1a6f0f2d122a56d1bb81fa91ad88",
    "verified_classes": [
      "CompactionViolation",
      "SpanState",
      "Span",
      "CompactionPlan"
    ],
    "verified_functions": [
      "classify_and_plan",
      "enforce_budget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
