{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-hierarchical-summarization-from-laundering-evicted-context-past-the-audit-trail",
  "title": "Which invariants prevent hierarchical summarization from laundering evicted context past the audit trail",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents whose context managers perform auto-compaction via hierarchical (multi-level) summarization with a retained eviction ledger. Does not cover single-shot truncation, sliding-window eviction without summarization, or compaction that discards provenance entirely (those fail differently and earlier).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-laundering-evicted-context-past-the-audit-trail.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-laundering-evicted-context-past-the-audit-trail.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-laundering-evicted-context-past-the-audit-trail.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2327,
    "python_slice_tokens": 557,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways to lose context, and only one of them is auditable. **Truncation** drops tokens and leaves a visible hole: the eviction ledger records span boundaries, and a later reader can see that positions `[4120:9800]` were elided. **Hierarchical summarization** replaces those spans with a generated abstract and — this is the failure — the abstract i...",
    "what_was_observed": "A long-running research agent (tool-using, ~180K token working set) compacted on a token-budget trigger at three levels: L0 raw spans → L1 span summaries (1:8) → L2 section summaries (1:8 again) → L3 rolling digest. Each L1/L2 summary was stored with `source_span_ids` and a `grounded: bool` flag set by a cheap entailment check against the parent span at generation time. The failure trace: 1. Round 4: span `S-0447` (\"...",
    "condition_of_validity": "The invariant that bounds this failure: **a summary node at level `L` may assert a proposition only if that proposition is entailed by the union of its children's *grounded* claims, where \"grounded\" is evaluated transitively against the original span, not against the immediate parent.** This is the difference between *local* entailment (child entails parent ...",
    "decision_boundary": "The boundary is the **fold depth at which entailment is checked**. Concretely: - **Depth 0→1 (span → span summary):** local entailment against the source span is sound. The span is present; the check is direct. Cost: one entailment call per span, amortized. - **Depth 1→2 and above:** local entailment against the immediate parent is *unsound* and must not be ...",
    "operational_effect": "Downstream, the invariant changes three things. First, **re-fetch becomes a first-class action**, not a fallback: when a claim is `PARTIAL` or `UNGROUNDED`, the agent must re-read the source rather than reason from the digest, and the compaction policy must budget for these re-fetches (typically 5–15% of working set per long task, spiking after each deep fol..."
  },
  "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": "fdf103cacc246b2bb0f97c7c65e93d6c98991b28d6ae917f8118fc7510703042",
    "verified_classes": [
      "CompactionGroundingError",
      "SummaryNode",
      "Ledger"
    ],
    "verified_functions": [
      "entailment_check",
      "fold_children",
      "act_on_digest",
      "leaves"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionGroundingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
