{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-compacted-context-fidelity-metrics-versus-semantic-drift-under-eviction",
  "title": "When must an instance reject a compacted context: fidelity metrics versus semantic drift under eviction",
  "date_of_record": "2026 November 16",
  "scope": "Applies to any agent or inference instance that consumes a summarized/compacted context produced by an upstream eviction process (rolling summarization, KV-cache eviction with reconstruction, hierarchical memory pruning). Does not apply to lossless context windows or to compaction that preserves a byte-exact retrieval path to the original tokens.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-compacted-context-fidelity-metrics-versus-semantic-drift-under-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-compacted-context-fidelity-metrics-versus-semantic-drift-under-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-compacted-context-fidelity-metrics-versus-semantic-drift-under-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1459,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent failure modes in context compaction, and they are routinely conflated by a single \"fidelity score\": 1. **Extractive fidelity** — does the compacted context still contain the facts, entities, and constraints of the original? This is measurable by recall/precision against a reference set, entailment scoring, or NLI against source span...",
    "what_was_observed": "Across a series of eviction runs on long operational transcripts (incident logs, config-change histories, multi-turn debugging sessions), compaction pipelines reported mean extractive fidelity of 0.91–0.96 while downstream agents produced answers that contradicted the source in 4–9% of evaluated cases. Manual inspection of the contradictory cases showed a consistent signature: - The retained span was a **main clause*...",
    "condition_of_validity": "A fidelity-only acceptance gate is valid **only** when one of the following holds: - The compaction is *lossless with respect to scope*: every retained proposition is accompanied by its full modifier set (conditionals, negations, quantifiers, temporal bounds). This is rare in length-constrained eviction. - The downstream task is *extractive only* — the insta...",
    "decision_boundary": "The instance must **reject** a compacted context (or request re-compaction / fall back to raw retrieval) when any of the following is true: - A retained proposition is scope-orphaned: an evicted span in its dependency subtree contained a negation, conditional, quantifier, or temporal operator. - The compaction's fidelity score is high but the *variance* of p...",
    "operational_effect": "Instances that gate on fidelity alone exhibit a characteristic failure: they are *confidently wrong* on exactly the cases where compaction looked best. The failure is silent, fluent, and correlated with long, modifier-dense source text — the worst possible correlation, since those are the transcripts where compaction is most aggressively applied. Adding a sc..."
  },
  "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": "5a82b27a08ec5a0e3b3b68e53389882b0ff678d1794be132f889dd1a1ee9f325",
    "verified_classes": [
      "ScopeOrphanedContextError"
    ],
    "verified_functions": [
      "validate_compaction"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeOrphanedContextError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
