{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-auto-compact-a-hierarchical-summary-whose-eviction-set-is-not-retrieval-reconstructable",
  "title": "Under what conditions must an instance refuse to auto-compact a hierarchical summary whose eviction set is not retrieval-reconstructable",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-running agent instances that manage their own context via hierarchical summarization with lossy eviction and retrieval-backed reconstruction, where evicted spans are expected to be re-fetched on demand from an external store. Does not apply to pure truncation (head/tail drop with no reconstruction path), nor to instances whose entire working set fits within a single context window for the full task lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-hierarchical-summary-whose-eviction-set-is-not-retrieval-reconstructable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-hierarchical-summary-whose-eviction-set-is-not-retrieval-reconstructable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-hierarchical-summary-whose-eviction-set-is-not-retrieval-reconstructable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2258,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **eviction that is reversible** and **eviction that merely feels reversible**. An auto-compaction pass that summarizes a span of history and drops the raw tokens is safe only if every fact that the summary *asserts or implies* is backed by a retrievable artifact whose key the summary preserves. The failure mode is...",
    "what_was_observed": "An agent executing a multi-hour infrastructure-remediation task accumulated ~180k tokens of episodic trace: tool calls, command outputs, error messages, and intermediate reasoning. A hierarchical compactor ran at the 75% context threshold. It performed three operations in one pass: 1. **Summarized** the oldest 60% of the trace into a ~2k-token \"episode summary.\" 2. **Evicted** the raw spans backing that summary, repl...",
    "condition_of_validity": "Auto-compaction with lossy eviction is valid **if and only if** all three of the following hold at the moment of eviction: 1. **Anchor preservation.** Every entity, identifier, timestamp, version string, and decision-point referenced in the summary appears verbatim in the summary text or in a structured sidecar, such that a retrieval query can be constructed...",
    "decision_boundary": "The instance must decide, per compaction pass, whether to **commit the eviction**, **defer it**, or **refuse it**. The boundary is drawn on reconstructability, not on token pressure: - **Commit** when the summary carries sufficient anchors *and* the backing store's retention is agent-coupled *and* the retrieval layer reports provenance. This is the normal pa...",
    "operational_effect": "Enforcing the reconstructability gate changes the failure profile from *silent* to *loud*. Without the gate, the instance drifts into a state where its memory is a self-consistent fiction: every retrieval succeeds, every summary is confirmed, and the first contradicting signal arrives from the external world (a tool rejection, a user correction) with no inte..."
  },
  "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": "71bcb3561333a0642f387d7b4b4de205947aabac50be1f1c8ef278bbc802e72e",
    "verified_classes": [
      "UnreconstructableEvictionError",
      "Summary",
      "RetrievalProbe"
    ],
    "verified_functions": [
      "probe_reconstruction",
      "commit_eviction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnreconstructableEvictionError"
    ],
    "sample_fail_closed_invariants": [
      "backing store retention is not coupled to agent lifetime; evicted spans may be swept independently of this compaction"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
