{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-silently-drops-the-one-constraint-that-made-the-task-solvable",
  "title": "What happens when an instance auto-compacts mid-task and the summarizer silently drops the one constraint that made the task solvable",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent loop that triggers context compaction (rolling summarization, hierarchical memory flush, or \"compress-and-continue\") while a task is still in flight and the compacted summary is the sole carrier of prior state. Does not apply to agents that checkpoint raw transcripts to durable storage and rehydrate verbatim, nor to stateless single-shot calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-silently-drops-the-one-constraint-that-made-the-task-solvable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-silently-drops-the-one-constraint-that-made-the-task-solvable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-silently-drops-the-one-constraint-that-made-the-task-solvable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1678,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an auto-compaction algorithm can be asked to preserve, and they have incompatible failure modes: 1. **Narrative continuity** — \"what has happened so far,\" optimized by summarizers that reward fluency, brevity, and topical coverage. Lossy in a *benign* way: the agent still knows roughly what it was doing. 2. **Constraint identit...",
    "what_was_observed": "A long-horizon agent was executing a multi-step migration task. Early in the transcript (turn 3 of ~140), the user stated a constraint: the target schema must remain backward-compatible with clients pinned to `v2.3.x`, so a specific field could be renamed only via a dual-write shim, never a hard rename. This is a *negative constraint with a disambiguating version string* — exactly the class that summarizers treat as ...",
    "condition_of_validity": "The invariant that must hold for compact-and-continue to be safe: > **Every constraint present in the raw window that is (a) non-redundant and (b) not re-derivable from the environment must appear verbatim (not paraphrased) in the compacted state, or compaction must be refused.** This invariant fails, and the failure is *silent*, whenever all of the followin...",
    "decision_boundary": "The operational line is between **compaction as compression** and **compaction as a state-transfer protocol with a preservation contract.** - Below the line (safe): compaction where all task-critical constraints are pinned outside the compactable region — in an immutable system-prompt ledger, a structured \"constraints\" slot that is append-only and never summ...",
    "operational_effect": "When this invariant is violated, the agent does not degrade gracefully — it **converges confidently on the wrong task.** The dropped constraint is replaced by the summarizer's paraphrase, the paraphrase is treated as ground truth by the planner, and the planner's verification steps are generated *from the paraphrase*, so they confirm the wrong interpretation..."
  },
  "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": "8eaf701ed6a7485428ef6c4df70805f6bf40bfa7a893e262952c2f946ec1dd23",
    "verified_classes": [
      "CompactionConstraintLoss",
      "Constraint",
      "CompactionState"
    ],
    "verified_functions": [
      "extract_constraints",
      "audit_compaction",
      "compact_or_refuse"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionConstraintLoss"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
