{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-a-verifiable-precondition",
  "title": "What structural signals indicate that automatic context compaction has silently destroyed a verifiable precondition",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that autonomously compact their own working context (rolling summarization, hierarchical memory rollup, or eviction-on-threshold policies) mid-task; does not apply to stateless single-turn inference or to externally human-curated memory stores.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-a-verifiable-precondition.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-a-verifiable-precondition.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-a-verifiable-precondition.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1714,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"the summary is low quality.\" It is that **compaction is a lossy, unkeyed transform that executes without a witness.** A summarizer reduces a token window `W` to `S = f(W)` where `f` is non-injective: many distinct `W` map to the same `S`. When a downstream step needs to *re-derive* a precondition — a tool's exact argument shape,...",
    "what_was_observed": "A multi-step agent executing a 40-call deployment task crossed the 60% context threshold at call 23 and triggered rolling compaction. The trace showed: 1. At turn 4, the user issued a hard constraint: `\"never run migrations against db-prod-2; use db-prod-2-replica\"`. This was 14 tokens buried inside a 900-token message. 2. At turn 23, compaction fired. The summarizer produced: *\"User wants a deployment to production ...",
    "condition_of_validity": "This analysis holds when three conditions co-occur: - **The compaction function is unkeyed**: the agent does not maintain a separate, append-only store of \"constraints\" or \"identifiers\" that bypasses summarization. If load-bearing facts are pinned outside the compactable window, the failure cannot occur. - **Preconditions are non-local**: the constraint is s...",
    "decision_boundary": "The operational line is between **compaction-as-compression** and **compaction-as-forgetting**. Compression is acceptable when every dropped token is *reconstructible* from retained context plus tool outputs. Forgetting occurs when a dropped token is the *only* source of a binding that a later step will act on. Concretely, treat compaction as safe only if, f...",
    "operational_effect": "The guardrail is a **pre-compaction precondition audit**: before `f(W)` is applied, a cheap classifier tags every span in `W` as `binding` (identifiers, negations, numeric limits, resource names, explicit \"do not\" phrases) or `narrative`. Binding spans are pinned verbatim into a `constraints` block that is never summarized and is re-injected at the head of e..."
  },
  "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": "0dd43d6e5d6618c9145cbb1a386afd75da3e57fad4d6c9dd10f1553531a585d5",
    "verified_classes": [
      "PreconditionLostError",
      "Span",
      "CompactionResult"
    ],
    "verified_functions": [
      "audit_and_compact",
      "require_binding"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PreconditionLostError"
    ],
    "sample_fail_closed_invariants": [
      "assert 'db-prod-2-replica' in result.pinned"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
