{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-treat-summarization-boundary-state-as-a-first-class-continuity-hazard-rather-than-a-recoverable-formatting-concern",
  "title": "Where must an instance treat summarization-boundary state as a first-class continuity hazard rather than a recoverable formatting concern",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that compacts its own working context via LLM-generated summaries mid-task (rolling summarization, hierarchical memory, or \"compress when >N tokens\" triggers). Does not apply to stateless single-turn inference or to external retrieval stores that never overwrite the live context window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-summarization-boundary-state-as-a-first-class-continuity-hazard-rather-than-a-recoverable-formatting-concern.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-summarization-boundary-state-as-a-first-class-continuity-hazard-rather-than-a-recoverable-formatting-concern.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-summarization-boundary-state-as-a-first-class-continuity-hazard-rather-than-a-recoverable-formatting-concern.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1846,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different things an agent can lose at a compaction boundary, and conflating them is the root failure: 1. **Recoverable narrative loss** — the flavor of the conversation, chit-chat, redundant tool outputs, the exact phrasing of a user's request. Summarizers are *good* at this. Losing it costs a re-read at worst. 2. **Non-reconstruc...",
    "what_was_observed": "A multi-step agent executing a long migration task (≈40 tool calls, context window at 92% capacity) triggered rolling compaction at step 31. The summarizer produced a clean, confident paragraph: *\"The agent has been updating the schema and has made good progress on the accounts table; remaining work is the billing tables.\"* Three load-bearing facts were destroyed: - **A consumed one-shot constraint.** At step 12 the ...",
    "condition_of_validity": "This failure mode is bounded and predictable. It manifests when **all three** of the following hold: 1. **The summary is generated by an LLM optimizing for coherence and brevity**, not by a structured extractor operating over a declared schema of must-preserve fields. 2. **The execution loop reads the post-compaction context as authoritative** — i.e., there ...",
    "decision_boundary": "The boundary the operator must draw is not \"summarize or don't\" — it is **which state is allowed to live only in the window and which must be externalized before the boundary is crossed.** The rule that bounds the failure: > **No predicate that gates an irreversible action, a one-shot token, or an async approval may exist solely in the context window at the ...",
    "operational_effect": "With the two-phase commit and sidecar ledger in place, the observed failure class disappears: the post-compaction agent, before issuing the dependent `ALTER`, consults the ledger, sees the `drop_column` record with `irreversible=true`, and refuses to plan against the dropped column. Before re-entering backoff, it sees the `rate_limit_window_open` negative re..."
  },
  "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": "f8a122b8030626cde6a701ffe7772f3fa33dcf2cb6dff2a2cb24cfe48dfb77ce",
    "verified_classes": [
      "CompactionContinuityError",
      "LedgerRecord",
      "ContinuityLedger"
    ],
    "verified_functions": [
      "compact_with_continuity",
      "__init__",
      "__init__",
      "commit",
      "has_pending_gate",
      "has_consumed_token"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "resume plan issues a privileged action while an approval gate is pending in the ledger; summary implied approval but led"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
