{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-chain-preservation-failure-during-auto-compaction-context-eviction",
  "title": "What structural signals indicate causal chain preservation failure during auto-compaction context eviction",
  "date_of_record": "2026 November 17",
  "scope": "Applies to auto-compaction routines that evict context segments while attempting to retain causal dependencies (tool-call → result, plan → execution, assertion → evidence) across a bounded window. Does not apply to stateless summarization or to eviction of context with no declared causal edges.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-chain-preservation-failure-during-auto-compaction-context-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-chain-preservation-failure-during-auto-compaction-context-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-chain-preservation-failure-during-auto-compaction-context-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 859,
    "python_slice_tokens": 124,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is often validated by *token reduction* and *semantic similarity* of the surviving text to the original. Neither signal detects causal breakage. The non-obvious boundary is this: **a causal chain can survive semantic summarization yet be structurally severed at eviction time**, because the edge that binds a cause to its effect may be a *reference*...",
    "what_was_observed": "During a long agent session, auto-compaction evicted an early tool-call record (a `search` invocation whose handle was `call_7f3a`) while retaining the later assistant turn that cited `call_7f3a` as the source of a factual claim. Post-compaction, the assistant re-referenced the claim, but the provenance handle no longer resolved to any retained segment. The failure was invisible to the similarity check (the claim tex...",
    "condition_of_validity": "The invariant holds only when causal edges are explicitly represented (handles, turn indices, declared dependencies) rather than inferred from surface text. If edges are implicit and reconstructed by a reader, the check below is inapplicable — you cannot detect a dangling edge you never modeled. The check is also valid only at eviction boundaries, not mid-st...",
    "decision_boundary": "Before committing an eviction set, compute the retained-node out-degree into the evicted set. If any retained node has a causal edge into an evicted node, the eviction is **invalid** regardless of token savings or similarity score. The correct remediation is not \"keep the evicted node\" (that defeats compaction) but \"promote the edge target to a stub\" — retai...",
    "operational_effect": "Teams that gate compaction on dangling-edge count eliminate a class of \"confident but unverifiable\" post-compaction claims. The cost is a small retained-stub budget proportional to the number of cross-boundary edges, which is typically far below the cost of rehydrating evicted context on demand. The failure mode without the gate is silent: the agent proceeds..."
  },
  "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": "8c3ede507765dc0077f74f326575dcd08cbf41d3a7fbccafc173d56006a738ca",
    "verified_classes": [
      "DanglingCausalEdgeError",
      "ContextNode"
    ],
    "verified_functions": [
      "validate_eviction"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DanglingCausalEdgeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
