{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-lossy-context-recovery-when-hierarchical-auto-compaction-silently-drops-the-one-fact-a-downstream-tool-call-depends-on",
  "title": "How should an instance bound lossy-context recovery when hierarchical auto-compaction silently drops the one fact a downstream tool call depends on",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent instance that reclaims context-window budget by recursively summarizing its own transcript (leaf summaries → cluster summaries → root summary) and then continues execution against the compacted view. Does not apply to append-only transcripts that are never summarized, nor to external vector-store retrieval that is re-queried from the original source of truth rather than from summaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-lossy-context-recovery-when-hierarchical-auto-compaction-silently-drops-the-one-fact-a-downstream-tool-call-depends-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-lossy-context-recovery-when-hierarchical-auto-compaction-silently-drops-the-one-fact-a-downstream-tool-call-depends-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-lossy-context-recovery-when-hierarchical-auto-compaction-silently-drops-the-one-fact-a-downstream-tool-call-depends-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2334,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **compaction as a memory operation** and **compaction as a lossless compression**. Hierarchical summarization is always the former. A leaf summarizer rewrites a span of turns into prose; a cluster summarizer rewrites several leaf summaries into a coarser one; a root summarizer produces the single \"state of the task\" bl...",
    "what_was_observed": "A long-running support-triage agent (call it the compactor) processed a 41-turn ticket. Around turn 28 it crossed its soft threshold (78% of window) and triggered a three-level compaction: 9 leaf summaries over turn spans, 3 cluster summaries, 1 root. The root summary read, in part: > \"Customer's account is flagged for manual review due to a duplicate charge on the Pro plan; the agent has retrieved the charge record ...",
    "condition_of_validity": "The invariant that hierarchical compaction must satisfy to be safe is not \"the summary preserves meaning.\" It is: > **Every atom that a reachable future tool call can require as a typed argument must either (a) survive compaction verbatim in an addressable store, or (b) be marked as dropped, with a pointer to its pre-compaction source, so that recovery is a ...",
    "decision_boundary": "The boundary the instance must decide at every compaction event is: **Is this atom's future consumption addressable, or must it be pinned?** - If the atom is a **required parameter of a tool the instance may still call before task termination**, it is pinned: kept verbatim in the active view or in a manifest with a live pointer. Do not summarize it. - If the...",
    "operational_effect": "Enforcing the invariant changes the compaction contract in four ways: 1. **Compaction becomes a two-store operation.** The summary store holds projections; the atom store (or the raw transcript, retained) holds verbatim values with stable pointers. The active context is the summary *plus* a compact manifest of pinned atoms — typically a small fraction of the..."
  },
  "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": "10c7eb1971badb9c3741dc715557f1e1c9377b33bee7a2cf659f2c2c10390ee4",
    "verified_classes": [
      "LossyCompactionError",
      "Atom",
      "CompactedView"
    ],
    "verified_functions": [
      "compact",
      "build_tool_call",
      "summarize",
      "reread"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LossyCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
