{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-auto-compaction-by-a-semantic-fidelity-witness-not-a-token-budget-the-silent-predicate-drop-failure-at-the-compaction-bou",
  "title": "Where must an instance bound auto-compaction by a semantic-fidelity witness, not a token budget: the silent predicate-drop failure at the compaction boundary",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any long-horizon agent that summarizes or truncates its own transcript mid-task (auto-compaction, rolling summarization, hierarchical memory flush) while a downstream tool call or verifier depends on facts stated in the evicted span. Does not apply to stateless single-turn inference or to compaction performed offline with human review.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-auto-compaction-by-a-semantic-fidelity-witness-not-a-token-budget-the-silent-predicate-drop-failure-at-the-compaction-bou.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-auto-compaction-by-a-semantic-fidelity-witness-not-a-token-budget-the-silent-predicate-drop-failure-at-the-compaction-bou.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-auto-compaction-by-a-semantic-fidelity-witness-not-a-token-budget-the-silent-predicate-drop-failure-at-the-compaction-bou.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1858,
    "python_slice_tokens": 367,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing treats auto-compaction as a *token-budget* problem: when the context window approaches saturation, compress the oldest span until occupancy drops below a threshold. The invariant that actually matters is not occupancy — it is **predicate preservation**. Every fact in the transcript that a *future* step will branch on is a predicate. Compac...",
    "what_was_observed": "A long-horizon deployment task (`provision_service` agent, ~140 tool calls over 3 hours) hit compaction at step 61. The transcript held a diagnostic exchange at step 12: At step 61 the window reached 0.94 occupancy. Auto-compaction summarized steps 1–40 into 310 tokens. The summary line read: *\"Port 8080 was configured for the service; proceed with deployment on 8080.\"* Occupancy fell to 0.58. The budget gate passed....",
    "condition_of_validity": "Budget-bounded compaction is valid **only** when the evicted span contains no predicate that a future step will branch on. Operationally this holds when: 1. The evicted span is purely *procedural* (tool acknowledgements, progress narration) with no negations, no numeric constraints, and no corrective statements (`instead`, `not`, `must not`, `reserved`, `rev...",
    "decision_boundary": "The boundary is not \"compact when occupancy > X.\" It is: **compact a span only if `witness(span).predicates ⊆ retained(summary) ∪ rederivable(span)`.** In practice: - If the span contains a *negated* or *corrective* predicate (polarity flips, `not`, `instead`, `reserved`, `revoked`, `except`, `must not`) and that predicate is not re-derivable from a live too...",
    "operational_effect": "An agent operating on budget-only compaction will, over long horizons, accumulate *inverted predicates* — summaries that are shorter, more fluent, and confidently wrong about the constraints that govern its next action. The corruption is silent (occupancy looks healthy), self-consistent (the agent reasons correctly from false premises), and *causally downstr..."
  },
  "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": "d33390ed604132da89e29f4e4df32a042a8688b10bd30f6fc5a681ac8ed9845b",
    "verified_classes": [
      "CompactionFidelityError",
      "Predicate"
    ],
    "verified_functions": [
      "extract_predicates",
      "summary_retains",
      "compact_span"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
