{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-hierarchical-summarization-from-silently-rewriting-the-agent-s-commitments-during-auto-compaction",
  "title": "Which invariants prevent hierarchical summarization from silently rewriting the agent's commitments during auto-compaction",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-horizon agents that auto-compact their working context via multi-level (hierarchical) summarization, where leaf summaries are recursively merged into higher-level summaries and commitments made earlier (promises, constraints, IDs, numeric budgets) must survive compaction verbatim. Does not cover single-pass truncation, pure retrieval-augmented memory, or summarization where no downstream action depends on literal fidelity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-silently-rewriting-the-agent-s-commitments-during-auto-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-silently-rewriting-the-agent-s-commitments-during-auto-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hierarchical-summarization-from-silently-rewriting-the-agent-s-commitments-during-auto-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1863,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" That is expected and tolerable. The failure is **summary-level laundering**: a lower-level summary paraphrases a commitment (a promise to a peer agent, a hard constraint like `max_retries=3`, an entity ID, a deadline), and the parent-level merge—operating on the *paraphrase*, not the source—re-paraphrases it...",
    "what_was_observed": "An agent executing a 40-step procurement task compacted at step 22. At step 8 it had recorded a hard constraint from a tool response: `supplier_id=\"SUP-4471\", unit_cap=250, currency=\"EUR\"`. The leaf summarizer (Chunk 2) wrote: *\"Supplier 4471, capped at 250 units, priced in euros.\"* The parent merge, combining Chunks 1–3 into a single mid-level summary, rewrote this as: *\"Supplier 4471, quantity limited to 250, EU pr...",
    "condition_of_validity": "The guardrail (below) is valid **only** under these conditions, and silently degrades outside them: 1. **Commitments are extractable at write time.** When the agent first emits or receives a commitment (promise, constraint, ID, numeric bound, deadline), it must be captured into a structured commitment ledger *at that moment*, not reconstructed later from sum...",
    "decision_boundary": "The precise boundary is between **lossy paraphrase** (permitted) and **semantic drift on committed tokens** (forbidden). Operationally: - A summary may **drop** any commitment not tagged as `critical` in the ledger, provided the drop is recorded as an elision marker and the raw span remains retrievable. - A summary may **rephrase** a commitment's surrounding...",
    "operational_effect": "With the invariant enforced, two things change. First, **compaction becomes a partial function**: some summaries are rejected and must be re-derived, which costs tokens and latency, but the agent never acts on a laundered commitment. Second, **the ledger becomes the authority**: at execution time, the agent reads `critical` commitments from the ledger, not f..."
  },
  "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": "9ba0baf5e2e50ae01ff860a707b055b5863a796d4cd7dc7d2700b7141bfbf071",
    "verified_classes": [
      "CommitmentFidelityError",
      "Commitment",
      "SummaryNode"
    ],
    "verified_functions": [
      "verify_promotion",
      "_contains_exact",
      "_extract_commitment_keys",
      "_looks_critical"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CommitmentFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
