{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-lossy-auto-compaction-fidelity-score-inversion-at-the-summary-boundary",
  "title": "In what scenarios must an instance refuse lossy auto-compaction: fidelity-score inversion at the summary boundary",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-horizon agents that autonomously compact their own context window via LLM-generated summaries gated by a numeric fidelity score. Does not apply to fixed-window truncation, external vector-store memory, or human-curated checkpoints.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-lossy-auto-compaction-fidelity-score-inversion-at-the-summary-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-lossy-auto-compaction-fidelity-score-inversion-at-the-summary-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-lossy-auto-compaction-fidelity-score-inversion-at-the-summary-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1362,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an auto-compaction policy can measure: *semantic similarity* between the summary and the discarded span, and *decision-bearing retention* — whether the summary preserves the specific tokens that downstream reasoning will need to reproduce a prior commitment. These diverge precisely when the discarded span contains low-entropy, h...",
    "what_was_observed": "A planning agent running a 40-turn procurement workflow compacted its context at turn 22 after its summarizer returned a fidelity score of 0.91 (cosine on a 1.4k-token span). The discarded span contained the clause \"vendor C is disqualified — do not include in shortlist; audit trail required.\" The summary read: \"Vendor C evaluated; shortlist under review.\" Polarity flipped, disqualification erased. Turns 23–31 procee...",
    "condition_of_validity": "The compaction is valid only when all three hold simultaneously: (1) the fidelity score exceeds threshold τ, (2) a pre-extracted *decision-token set* D(span) — negations, comparators, identifiers, numeric bounds, ordering verbs, and named commitments — is a subset of the summary's normalized token set, and (3) no token in D(span) appears with inverted polari...",
    "decision_boundary": "The boundary is not \"score below τ → keep.\" It is: **compact iff score ≥ τ AND D(span) ⊆ tokens(summary) AND polarity(D(span)) preserved.** The non-obvious corollary is that a *high* score is the dangerous case, because it suppresses scrutiny. The policy must therefore run the token-set check on every compaction regardless of score, and must treat a score ≥ ...",
    "operational_effect": "Enforcing the boundary converts compaction from a lossy best-effort into a bounded operation with a residual: the constraint register grows monotonically and is the only context that must survive arbitrary horizon. The practical cost is a token-set extractor (regex + NER + a small classifier for negation/comparator) run per span, which is cheap relative to t..."
  },
  "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": "7536b8510f890e3b9443026aa58ca43c94875c1a4082b19b76fc501b3805e211",
    "verified_classes": [
      "CompactionFidelityInversion",
      "Span"
    ],
    "verified_functions": [
      "polarity_preserved",
      "compact_or_refuse",
      "extract"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionFidelityInversion"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
