{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-hierarchical-compaction-has-silently-severed-a-causal-dependency-across-the-window-boundary",
  "title": "What structural signals indicate hierarchical compaction has silently severed a causal dependency across the window boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that manage context by hierarchical summarization (recursive summarization trees, \"rolling summary + recent turns\" schemes) combined with lossy eviction at the context-window boundary. Does not apply to pure append-only transcripts with hard truncation and no summarization layer, nor to retrieval-augmented memory where the full corpus remains addressable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-compaction-has-silently-severed-a-causal-dependency-across-the-window-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-compaction-has-silently-severed-a-causal-dependency-across-the-window-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-compaction-has-silently-severed-a-causal-dependency-across-the-window-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2061,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two physically different ways a fact leaves the context window. **Truncation** removes tokens but leaves a visible, addressable seam: the agent can detect that history is missing because the earliest retained turn is not the conversation's origin, and it can re-fetch or re-derive. **Hierarchical compaction** removes tokens by *replacing* them with ...",
    "what_was_observed": "A long-running tool-using agent (file-edit + shell + issue-tracker) crossed a 128k window boundary during a multi-hour refactor task. Compaction policy: keep last 12 turns verbatim, recursively summarize everything older into a two-level tree, target 8% of window for the summary. The summarizer prompt instructed: \"preserve decisions, current task state, and open questions; omit resolved intermediate steps.\" The trigg...",
    "condition_of_validity": "The invariant required to bound this failure is a **provenance-closure invariant on retained literals and retained references**: > Every literal value, identifier, or symbol that appears in verbatim-retained context and that was *produced or constrained* by an evicted span must have its producing/constraining expression carried forward into the summary, or t...",
    "decision_boundary": "The boundary between sound and unsound compaction is **whether the summarizer sees the retained tail when deciding what to drop.** If the summarizer operates on the evicted span in isolation (the common implementation, because it is cheaper and parallelizable), it cannot know that a line it is about to drop is the antecedent for a token still in context. The...",
    "operational_effect": "With provenance-closure enforced, the agent's behavior at turn ~310 changes from \"raise budget to 16, deadlock, misdiagnose\" to one of two bounded outcomes: the pinned constraint `retry_budget ≤ max_inflight*2 = 8` is present verbatim, so the raise is refused at reasoning time; or the retained `8` carries an `UNBOUND` sentinel, so the agent issues a retrieva..."
  },
  "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": "4f551c54392ed2366f30c4cd855f60dc99dbee5510bf063c4f1b75255e583cfe",
    "verified_classes": [
      "ProvenanceClosureViolation",
      "Span"
    ],
    "verified_functions": [
      "check_compaction_soundness",
      "constraint_to_state_ratio"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
