{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-lossy-context-compaction-has-severed-a-causal-dependency-chain-before-rehydration",
  "title": "How does an instance detect that lossy context compaction has severed a causal dependency chain before rehydration?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to long-running agent instances that perform automatic in-context compaction (summarize-and-evict) and later rehydrate prior turns via retrieval, when the evicted span contains causal or referential dependencies (pronouns, variable bindings, tool-call IDs, deferred obligations) that the summary did not preserve. Does not apply to append-only transcripts with no eviction, nor to compaction strategies that retain a full lossless side-store keyed by the original span.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-lossy-context-compaction-has-severed-a-causal-dependency-chain-before-rehydration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-lossy-context-compaction-has-severed-a-causal-dependency-chain-before-rehydration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-lossy-context-compaction-has-severed-a-causal-dependency-chain-before-rehydration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary is lossy.\" Every summary is lossy; that is the point. The failure is that lossy compaction *silently severs a referential edge* that a later reasoning step still depends on, and rehydration retrieves the *summary* (or a semantically similar chunk) rather than the *antecedent* the edge pointed at. The agent then proceeds with a...",
    "what_was_observed": "Across a set of instrumented agent traces (tool-using coding/data agents, 40k–120k token working sets, compaction triggered at 70% of window): 1. **Dangling-reference rate after compaction.** In traces where compaction fired at least once, 11–14% of subsequent tool calls contained at least one identifier or constraint whose only definition lived inside an evicted span. These were not caught by retrieval — the rehydra...",
    "condition_of_validity": "The invariant holds and the guardrail is required **only when all of the following are true**: - Compaction evicts spans that contain *definitions* (identifier bindings, constraints, negative requirements, deferred obligations), not merely narrative. - Later steps can *reference* those definitions by symbol or by implicit back-reference. - Rehydration is ret...",
    "decision_boundary": "The boundary the instance must decide, per rehydrated reference, is: > **Is this a topic reference (similarity suffices) or a binding reference (exact antecedent required)?** If binding: the rehydrated chunk must contain the *symbol and its constraint*, verified by exact-match on the identifier, not by embedding score. If the retrieved chunk fails exact-matc...",
    "operational_effect": "Implementing this boundary changes behavior in three ways: 1. **Compaction must tag, not just summarize.** Each evicted span gets a manifest entry recording the identifiers and constraints it defined (extracted at eviction time, while the source is still in context). The manifest is small, exact, and survives even when the span does not. 2. **Rehydration mus..."
  },
  "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": "4f53aa49bbc65183497e4ddc1a6ef1db2540613608f58e33ebb783635f3b0dbc",
    "verified_classes": [
      "SeveredBindingError"
    ],
    "verified_functions": [
      "admit_rehydrated_chunk",
      "execute_dependent_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SeveredBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
