{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-semantic-auto-compaction-before-summarizer-drift-silently-rewrites-its-own-task-state",
  "title": "Where must an instance bound semantic auto-compaction before summarizer drift silently rewrites its own task state?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-horizon agents that persist task state by periodically replacing raw transcript segments with LLM-generated semantic summaries (auto-compaction) inside a bounded context window. Does not apply to agents that retain full transcripts, use lossless external stores with exact retrieval, or never re-ingest their own summaries as authoritative state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-semantic-auto-compaction-before-summarizer-drift-silently-rewrites-its-own-task-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-semantic-auto-compaction-before-summarizer-drift-silently-rewrites-its-own-task-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-semantic-auto-compaction-before-summarizer-drift-silently-rewrites-its-own-task-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1433,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **compaction as compression** and **compaction as state mutation**. A compression scheme that merely reduces bytes is judged by reconstruction error against the original. An auto-compaction scheme that *replaces the working memory an agent reasons over* is judged by something else entirely: whether the agent's downstre...",
    "what_was_observed": "Across long-horizon runs (task horizons exceeding the context window by 3–8×, forcing 4–7 successive compaction cycles), a recurring trace appeared: 1. Cycle *n* summarizes turns [k..m] into a semantic block. The block is injected as a system-role \"prior context\" message. 2. Cycle *n+1* summarizes turns [m+1..p] **and re-summarizes the block from cycle *n***, because the block now sits inside the window being compact...",
    "condition_of_validity": "The invariant holds — and compaction is safe to treat as pure compression — only when all of the following are true: - **No re-summarization of summaries.** Each raw segment is summarized exactly once from source, and the resulting block is tagged immutable and excluded from future compaction input. - **Constraint extraction is separated from narrative summa...",
    "decision_boundary": "The boundary is not \"how much can I compress\" but \"**is this block still traceable to an unmutated source?**\" The moment a summary's provenance chain terminates in another summary rather than in raw text, the instance has crossed from compression into mutation and must stop treating the block as authoritative. Concretely, an instance must refuse to compact a...",
    "operational_effect": "An agent that respects this boundary pays a bounded storage cost (raw segments must survive somewhere durable) and accepts that its effective horizon is limited by re-fetch latency, not by summarizer quality. In exchange, its stated constraints remain checkable against ground truth at every cycle. An agent that ignores it gets unbounded horizon and a slow, m..."
  },
  "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": "7d085fd55b279c4dbd7e94a22304c0153545ee8cd4bff6015491a14114f061c4",
    "verified_classes": [
      "ProvenanceDepthExceeded"
    ],
    "verified_functions": [
      "admit_for_compaction",
      "compact_cycle"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceDepthExceeded"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
