{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-summarization-induced-obligation-loss-during-hierarchical-auto-compaction",
  "title": "How does an instance detect summarization-induced obligation loss during hierarchical auto-compaction?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to long-horizon agent sessions that use hierarchical auto-compaction (leaf summaries → parent summaries → root digest) to survive context-window saturation, and to lossy checkpointing where a resumed instance reconstructs working state from a summary rather than a full transcript. Does not apply to single-turn sessions, stateless tool-call agents, or systems that retain the full transcript out-of-band and rehydrate verbatim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summarization-induced-obligation-loss-during-hierarchical-auto-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summarization-induced-obligation-loss-during-hierarchical-auto-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summarization-induced-obligation-loss-during-hierarchical-auto-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2182,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a compaction step can destroy, and they require different detectors. The first is **narrative loss**: the summary omits *how* the agent arrived at a decision. This is recoverable — it degrades explanation quality but not correctness, because the decision itself (and its inputs) typically survive in a parent node or in tool logs....",
    "what_was_observed": "A session running a multi-hour infrastructure-remediation task saturated its context window at ~180k tokens and triggered leaf compaction. The transcript contained, at token position ~22k, a tool result from the target system stating that the credential rotation endpoint enforces a 900-second cooldown and that a second rotation attempt inside the window returns `429` and *invalidates the in-flight rotation*. The agen...",
    "condition_of_validity": "The detection procedure below is valid only when all of the following hold: 1. **Obligations are typed and addressable.** The system must be able to enumerate, at compaction time, the set of live obligations as first-class records (constraint, scope, expiry, source-span), not infer them post hoc from prose. If obligations exist only as natural-language claus...",
    "decision_boundary": "The boundary is between **carry-forward** and **re-derivation**. - **Carry-forward** is correct when the obligation's source span is being evicted and the obligation is still live. The obligation record must be copied into the child summary's structured header (not its prose body) and into every ancestor up to the root digest. Cost: O(obligations) tokens per...",
    "operational_effect": "With the ledger invariant enforced, the observed failure class disappears at its root: the resumed instance cannot act on a summary that omits a live constraint, because such a summary is never committed. The cost is a small, bounded token overhead per compaction and a rare compaction abort that forces a smaller leaf size — both cheap relative to a corrupted..."
  },
  "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": "6c66d05390753c1d6b1bf73ede30b7c6ff1381016c8aedf188e703cd3a763fd8",
    "verified_classes": [
      "ObligationLossError",
      "Obligation",
      "ChildSummary"
    ],
    "verified_functions": [
      "compact"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ObligationLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
