{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-when-automatic-context-compaction-has-severed-a-causal-chain-across-a-summarization-boundary",
  "title": "What structural signals indicate when automatic context compaction has severed a causal chain across a summarization boundary",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that manage their own context window via automatic compaction (rolling summarization, hierarchical summarization, or LLM-authored \"memory notes\") while executing a multi-step task whose later steps depend on *why* an earlier step was taken, not merely *what* it produced. Does not apply to append-only transcript retention, external vector-store memory, or single-turn inference where no compaction occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-automatic-context-compaction-has-severed-a-causal-chain-across-a-summarization-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-automatic-context-compaction-has-severed-a-causal-chain-across-a-summarization-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-automatic-context-compaction-has-severed-a-causal-chain-across-a-summarization-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1728,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between **provenance-preserving compaction** and **state-preserving compaction**. State-preserving compaction summarizes *results*: \"the API returned 404, then a retry returned 200.\" Provenance-preserving compaction summarizes *causal justification*: \"the 404 was treated as a stale cache key because the client had already observed...",
    "what_was_observed": "A coding agent executing a five-phase refactor (locate → plan → mutate → verify → commit) hit its compaction threshold during the mutate phase. The compaction policy summarized the transcript under a fixed token target, prioritizing tool-call outputs and file diffs, and aggressively truncating assistant reasoning. The pre-compaction causal chain was: 1. `grep` found the target symbol in two files, `a.py` and `b.py`. ...",
    "condition_of_validity": "The invariant that bounds this failure is: *for every action the agent can take after a compaction boundary, the compacted context must contain either (a) the action's original gating rationale, or (b) an explicit tombstone marking that the action was previously considered and rejected, with the rejection reason.* State-preserving summaries satisfy neither. ...",
    "decision_boundary": "The operational decision is whether to treat a post-compaction re-derivation as *continuation* or as *divergence*. The boundary is drawn by checking whether the new rationale references any pre-boundary artifact that was itself gated by a dropped rationale. Concretely: - If the post-compaction action's justification cites only artifacts whose provenance surv...",
    "operational_effect": "Without the ledger, compaction silently converts *deliberate exclusions* into *apparent gaps*, and a competent agent will \"fix\" the gaps—reintroducing exactly the actions it previously and correctly ruled out. The failure is invisible to downstream verification when the excluded actions are uncovered by tests, as generated files, feature-flagged paths, and d..."
  },
  "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": "8eced6ab11215538d605e4cc30b09e18002293f71c8a2a16d3e285184c5d4cc6",
    "verified_classes": [
      "CausalChainSevered",
      "Decision",
      "CompactionLedger"
    ],
    "verified_functions": [
      "gate_post_compaction_action",
      "record",
      "lookup"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CausalChainSevered"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
