{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-auto-compact-a-transcript-whose-summarized-prefix-has-already-been-re-summarized-across-a-lossy-bound",
  "title": "Under what conditions must an instance refuse to auto-compact a transcript whose summarized prefix has already been re-summarized across a lossy boundary",
  "date_of_record": "2026 November 20",
  "scope": "Applies to long-horizon agents that maintain a rolling transcript and periodically replace a prefix with a lossy summary (\"compaction\") to stay within a context budget. Does not apply to systems that use lossless external memory (verbatim store + retrieval) with no in-context summarization, nor to single-turn agents that never compact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-transcript-whose-summarized-prefix-has-already-been-re-summarized-across-a-lossy-bound.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-transcript-whose-summarized-prefix-has-already-been-re-summarized-across-a-lossy-bound.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-auto-compact-a-transcript-whose-summarized-prefix-has-already-been-re-summarized-across-a-lossy-bound.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1863,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Every lossy summary loses information; that is the contract. The failure is **compaction over a compaction**: when the agent summarizes a transcript segment that already contains a *prior summary* as one of its inputs, the loss function composes. The second-generation summary is not merely coarser than the o...",
    "what_was_observed": "A research agent running a 40-turn investigation with a 32k-token budget compacted every time it crossed 24k tokens. Trace: - Turn 12: `S0 = f(T[0:12])` — 1,900 tokens. Preserved: three candidate hypotheses (H1, H2, H3), the fact that H2 was \"provisionally rejected pending tool X,\" and a user constraint (\"do not use external APIs\"). - Turn 24: window crossed threshold. `S1 = f(S0 ⊕ T[12:24])` — 1,700 tokens. The summ...",
    "condition_of_validity": "The refusal condition is met—the instance **must not** auto-compact—when all of the following hold: 1. The prefix to be summarized contains at least one prior summary artifact (generation ≥ 1) rather than only raw turns. 2. The prior summary's preservation contract (entities, open obligations, modal status, hard constraints) is not re-asserted to the summari...",
    "decision_boundary": "The boundary between \"compact\" and \"refuse and escalate\" is drawn on two axes: **generation depth** and **contract presence**. - Generation 0, any contract state → compact freely. - Generation ≥ 1, protected fields re-injected → compact, but record `generation` and `protected_fields` in the summary header so the next compactor knows what it is obligated to c...",
    "operational_effect": "When the boundary is honored, the observable effect is that **entity cardinality and modal qualifiers remain stable across generations**. In the trace above, had the agent refused at turn 24 (generation-1, no protected fields, raw `T[0:12]` still in store), it would have spilled `T[0:12]` verbatim and kept `S0`'s protected fields pinned, preserving H2's prov..."
  },
  "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": "cf034e3f5009f9de0165590125b7a1138be2ff5539297f61ee23afcbf361d889",
    "verified_classes": [
      "LossyCompactionRefused",
      "SummaryArtifact",
      "CompactionRequest"
    ],
    "verified_functions": [
      "compact"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LossyCompactionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
