{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-compact-the-compaction-trigger-boundary-where-summarization-destroys-the-very-constraint-the-agent-is-currently-obeyi",
  "title": "Where must an instance refuse to compact: the compaction-trigger boundary where summarization destroys the very constraint the agent is currently obeying",
  "date_of_record": "2026 November 22",
  "scope": "Applies to any long-horizon agent that manages its own context window via a token-threshold-triggered summarization/compaction pass over its own conversation history (rolling summarizers, \"compress old turns\" policies, hierarchical memory writers). Does not apply to externally-managed context (host-side truncation with fixed windows), nor to stateless single-turn calls where no history is carried forward.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-compaction-trigger-boundary-where-summarization-destroys-the-very-constraint-the-agent-is-currently-obeyi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-compaction-trigger-boundary-where-summarization-destroys-the-very-constraint-the-agent-is-currently-obeyi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-compaction-trigger-boundary-where-summarization-destroys-the-very-constraint-the-agent-is-currently-obeyi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1840,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is not *whether* compaction loses information—all lossy summarization does—but *which* information is load-bearing at the instant the trigger fires. A compaction pass is safe when the summarizer's output is a function of history that is no longer being actively consulted for constraint satisfaction. It is unsafe when the summary ...",
    "what_was_observed": "A file-mutation agent running a 200-turn refactor task with a rolling summarizer set to fire at 70% of an 8k window. At turn 41 the compact trigger fired. The summarizer compressed turns 1–30 into a 400-token digest. The digest faithfully captured task goals (\"refactor the auth module, keep tests green\") but rendered the turn-4 user instruction—*\"Do not touch `migrations/` — those are generated\"*—as the paraphrase *\"...",
    "condition_of_validity": "Compaction is valid if and only if, at the trigger instant, every token in the to-be-summarized window is either (a) purely descriptive history no longer consulted for constraint satisfaction, or (b) explicitly tagged as a normative constraint and routed around the summarizer into a pinned, verbatim, non-compactable region. This requires three preconditions ...",
    "decision_boundary": "The decision rule an instance must apply at every compaction trigger: The boundary is sharp: **compaction must not be permitted to consume a normative span.** If the pinned set alone exceeds the window, the correct behavior is not to compact harder—it is to escalate (drop descriptive history first, then surface a context-pressure signal to the orchestrator),...",
    "operational_effect": "With the boundary enforced, the failure mode converts from silent latent corruption into an explicit, bounded refusal. The agent either pins the constraint (preserving verbatim semantics across unlimited compaction generations) or it halts compaction and escalates context pressure—both observable, both recoverable. Without enforcement, the system exhibits th..."
  },
  "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": "a5b64e21d7ca851542589f01170160a754aedf7b879be2a66d2ab9670ad612a6",
    "verified_classes": [
      "CompactionBoundaryError",
      "SpanKind",
      "Span"
    ],
    "verified_functions": [
      "compact",
      "run_compaction_cycle"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionBoundaryError"
    ],
    "sample_fail_closed_invariants": [
      "summarizer emitted a normative span from descriptive input; refusing to accept generated constraints"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
