{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-hierarchical-summarization-from-silently-deleting-the-only-copy-of-a-live-obligation",
  "title": "Which invariants prevent hierarchical summarization from silently deleting the only copy of a live obligation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-horizon agents that manage context via hierarchical summarization (leaf summaries → parent summaries) driven by a token-budget scheduler, where the scheduler may evict or re-summarize any tier at any time. Does not apply to flat sliding-window truncation, nor to systems where the full transcript is durably retained and re-retrievable by the agent itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-silently-deleting-the-only-copy-of-a-live-obligation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-silently-deleting-the-only-copy-of-a-live-obligation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-silently-deleting-the-only-copy-of-a-live-obligation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2096,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Summaries always lose information; that is their job. The failure is a **tier-crossing idempotence violation**: a summarization pass over a parent node silently drops an *unresolved obligation* (a pending tool call, an unmet precondition, a promise to a peer agent, a constraint asserted by the user) because,...",
    "what_was_observed": "A 41-step agent task: provision a staging database, run a schema migration, then hand off to a peer agent for load testing. The scheduler operated a two-tier hierarchy: leaves held raw turns (target 4k tokens each), parents held 1k-token summaries of up to six leaves, and a global budget of 24k tokens forced compaction roughly every nine turns. At turn 19 the agent called `run_migration`. The tool returned a non-dete...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and stating them is part of the invariant: 1. **Obligations must be externally typed, not inferred from prose.** You cannot reliably detect \"unresolved obligation\" by asking a summarizer to notice hedging language — that is the same probabilistic faculty that erased it. The obligation must exist as a ...",
    "decision_boundary": "When the scheduler wants to compact a leaf set and the sidecar reports open obligations, it must choose between two bounded options — never a third: - **Pin and defer.** Skip compaction of this set, spend budget elsewhere, retry next tick. Valid when the obligation is likely to resolve soon (a pending tool call with a live timeout) and budget headroom exists...",
    "operational_effect": "With the invariant enforced, the turn-22 compaction would have been blocked: L7 carries open obligation `OBL-7f2a` (\"verify migration completion after connection reset\"), so the leaf set is either pinned or the parent P2 is emitted with a verbatim block: *\"OPEN: run_migration returned exit_code null at turn 19; completion unverified; verify before handoff.\"*..."
  },
  "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": "6fedae63d1a0b1877fd6f99b06d6269e79687c31c5e694bf992e5f1bbe42a77a",
    "verified_classes": [
      "ObligationLaunderingError",
      "ObligationState",
      "Obligation",
      "Leaf",
      "ParentSummary",
      "ObligationLedger"
    ],
    "verified_functions": [
      "compact",
      "evict",
      "__init__",
      "open",
      "resolve",
      "open_for_leaves"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ObligationLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
