{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-compact-the-fidelity-scoring-blind-spot-at-the-summarization-boundary",
  "title": "Where must an instance refuse to compact: the fidelity-scoring blind spot at the summarization boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any long-running LLM agent instance that performs automatic context compaction via lossy summarization gated by a fidelity score. Does not apply to lossless truncation, external memory paging, or retrieval-only architectures where the original tokens remain addressable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-fidelity-scoring-blind-spot-at-the-summarization-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-fidelity-scoring-blind-spot-at-the-summarization-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-fidelity-scoring-blind-spot-at-the-summarization-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1628,
    "python_slice_tokens": 191,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that summarization loses information. Lossy compaction always loses information, and that is acceptable by design. The failure is that a *fidelity score* computed over the summary can be high while the summary is *operationally false* for the next reasoning step. Fidelity scoring measures surface-level semantic overlap (embedding cosine, R...",
    "what_was_observed": "An agent executing a multi-step remediation task (inspect → mutate → verify) accumulated a context of ~180K tokens. At the 85% threshold, the compaction routine summarized the oldest 60% of the window into ~4K tokens and scored it 0.91 against the source (embedding cosine, plus a judge pass rating \"gist preserved\"). The summary read, in part: > \"The service was configured with a 30-second timeout and the retry limit ...",
    "condition_of_validity": "The invariant holds — and compaction must be refused or deferred — when **all three** of the following are true: - **The window contains pending preconditions.** Any fact in the compaction candidate region that is referenced by a not-yet-executed step (a tool call argument, a guard condition, a rollback target) is a precondition. If the candidate region cont...",
    "decision_boundary": "The decision is not \"compact or don't.\" It is a partition of the candidate region into **compaction-eligible** and **precondition-pinned** spans, executed before the summarizer runs: - Extract precondition tuples from the candidate region: `(subject, predicate, polarity, value, target, status, order_index)`. - Any tuple referenced by a pending step is pinned...",
    "operational_effect": "Without the partition, the observed failure mode is *silent contract corruption*: the agent proceeds with a plausible, fluent, high-scoring summary that encodes a state the system was never in. Downstream errors compound because the corrupted precondition is now the agent's ground truth, and subsequent summaries score it as faithful to itself. The 401 from t..."
  },
  "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": "c3ffe61c66f1b414d6e2b11f4ceeb89cf42b4466a92a26bf7d10ea3a9992a4bc",
    "verified_classes": [
      "PreconditionCompactionError"
    ],
    "verified_functions": [
      "extract_preconditions",
      "compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PreconditionCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
