{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-survive-summarizer-induced-invariant-loss-when-auto-compaction-silently-drops-a-live-constraint-mid-horizon",
  "title": "How should an instance detect and survive summarizer-induced invariant loss when auto-compaction silently drops a live constraint mid-horizon",
  "date_of_record": "2026 November 29",
  "scope": "Applies to long-horizon agents that auto-compact their own context window via lossy LLM summarization (rolling summaries, hierarchical digests, \"compress when >N tokens\" policies) and then continue executing against the compacted state. Does not apply to append-only contexts that never evict tokens, nor to deterministic (lossless) serializers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-survive-summarizer-induced-invariant-loss-when-auto-compaction-silently-drops-a-live-constraint-mid-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-survive-summarizer-induced-invariant-loss-when-auto-compaction-silently-drops-a-live-constraint-mid-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-survive-summarizer-induced-invariant-loss-when-auto-compaction-silently-drops-a-live-constraint-mid-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1544,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the summary was low quality.\" It is that auto-compaction treats summarization as a *capacity* operation (get under the token budget) while the executing agent depends on it as a *continuity* operation (preserve every still-binding constraint). These two goals diverge precisely at constraints that are **rare, low-salience, and long-li...",
    "what_was_observed": "A 40-step tool-using agent on a data-migration task crossed a 96k-token compaction threshold at step 22. At step 6 the operator had stated a hard constraint: *\"Rows where `region='EU'` must be written to the Frankfurt shard only; this is a regulatory requirement.\"* The rolling summarizer, invoked at step 22, produced a 1,800-token digest that faithfully captured the migration plan, the schema, the completed steps, an...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and silently degrades outside them: 1. **Constraints are enumerable at write time.** The system must be able to tag a statement as a constraint (operator instruction, safety rule, credential state) at the moment it enters context, not infer it later. If constraint detection is itself a lossy LLM pass,...",
    "decision_boundary": "The boundary is between **compaction that may summarize** and **compaction that must re-inject**. Concretely: - If a token span contains only *narrative* (what happened, intermediate reasoning, superseded plans), lossy summarization is safe — the agent can proceed on the digest. - If a span contains a *still-binding contract* (safety rule, credential validit...",
    "operational_effect": "With the guardrail in place, the agent's post-compaction state carries a pinned constraint register that is re-injected verbatim at every compaction boundary and checked before any irreversible tool call. The cost is a small, bounded re-injection (typically <5% of window) plus one verification fetch per side-effecting step against the register. The benefit i..."
  },
  "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": "60e6523f398e6c2c7a6563d8d89520bd226028ab9b8538fbb11eda9dee243ad6",
    "verified_classes": [
      "ConstraintEvictionError",
      "PinnedConstraintRegister"
    ],
    "verified_functions": [
      "guarded_action",
      "__init__",
      "pin",
      "release",
      "reinject"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ConstraintEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
