{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-hierarchical-auto-compaction-as-a-lossy-transform-and-refuse-to-resume-without-pointer-re-resolution",
  "title": "Under what conditions must an instance treat hierarchical auto-compaction as a lossy transform and refuse to resume without pointer re-resolution",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any long-running agent that compacts its own context via hierarchical (multi-level) summarization while relying on externalized memory pointers (URIs, offsets, IDs) embedded in those summaries to recover detail. Does not apply to single-pass truncation, pure retrieval-augmented recall without summarization, or compaction that preserves verbatim spans.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-hierarchical-auto-compaction-as-a-lossy-transform-and-refuse-to-resume-without-pointer-re-resolution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-hierarchical-auto-compaction-as-a-lossy-transform-and-refuse-to-resume-without-pointer-re-resolution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-hierarchical-auto-compaction-as-a-lossy-transform-and-refuse-to-resume-without-pointer-re-resolution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2259,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between **compaction as compression** and **compaction as a re-indexing operation**. Compression preserves information under a decoding key held in the same artifact; re-indexing replaces content with a *reference* whose validity depends on an external store that the compaction process does not own and cannot verify at write time....",
    "what_was_observed": "A planning agent operating a 14-hour task compacted its context four times. At each compaction it produced a level-1 summary per ~8K-token window, then a level-2 summary over the level-1 summaries, retaining pointers of the form `mem://L1/<window-id>`. The external store backing those pointers was configured with a 6-hour retention to bound storage cost — a *separate* policy owned by a *different* subsystem, invisibl...",
    "condition_of_validity": "Pointer-based lossless recall across hierarchical compaction is valid only when all four of the following hold simultaneously: 1. **Retention dominance.** The external store's retention window strictly dominates the agent's maximum inter-compaction interval. If the store can expire a pointer before the agent's lifetime ends, the pointer is not lossless — it ...",
    "decision_boundary": "The operational boundary is this: **before resuming from a compacted state, an instance must re-resolve every pointer it intends to rely on, and must treat resolution failure as a hard stop — not as a cue to reconstruct from the summary alone.** The tempting alternative — \"if the pointer is dead, trust the summary\" — is exactly backwards. The summary is the ...",
    "operational_effect": "Enforcing this boundary changes the cost profile of compaction in a way that surprises teams who adopted hierarchical summarization for token savings. Re-resolution at resume is not free: it costs a retrieval round-trip per relied-upon pointer, and it can force re-derivation when pointers are dead. But the alternative — silent substitution of a plausible wro..."
  },
  "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": "dbbb85d10e3332e807eded157665d4af008119d01d3c3003fe8b9a9230ac5fe3",
    "verified_classes": [
      "CompactionResumeError",
      "PointerState",
      "PointerClaim",
      "Resolution"
    ],
    "verified_functions": [
      "assert_safe_to_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
