{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-the-eviction-fidelity-ledger-when-a-self-editing-context-controller-co-optimizes-token-budget-recall-fidelity-and-inj",
  "title": "Where must an instance reconcile the eviction-fidelity ledger when a self-editing context controller co-optimizes token budget, recall fidelity, and injection-resistance",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any LLM instance whose context window is actively managed by a self-editing controller that performs selective eviction, summarization, or compression under a token budget while simultaneously scoring segments for recall value and injection risk. Does not apply to append-only context with external retrieval (RAG) where no in-place mutation of resident context occurs, nor to stateless single-shot inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-the-eviction-fidelity-ledger-when-a-self-editing-context-controller-co-optimizes-token-budget-recall-fidelity-and-inj.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-the-eviction-fidelity-ledger-when-a-self-editing-context-controller-co-optimizes-token-budget-recall-fidelity-and-inj.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-the-eviction-fidelity-ledger-when-a-self-editing-context-controller-co-optimizes-token-budget-recall-fidelity-and-inj.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1818,
    "python_slice_tokens": 465,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context controller holds three objectives in tension: **budget** (hard token ceiling), **fidelity** (probability that a segment needed later survives eviction), and **injection-resistance** (probability that adversarial or untrusted segments are quarantined). The non-obvious boundary is that fidelity and injection-resistance are *not independe...",
    "what_was_observed": "Trace from a controller running a 32k-token window with a 24k soft budget. Segments carry `{id, text, source_class, taint, recall_score, last_touched}`. `source_class ∈ {user, tool_output, retrieved_doc, self_summary}`; `taint ∈ {clean, suspect, quarantined}`. 1. A `retrieved_doc` segment arrives with `taint=suspect` (matched an injection heuristic at 0.61, below the 0.75 quarantine threshold). It is retained because...",
    "condition_of_validity": "The divergence is bounded and detectable only if the controller maintains an **eviction-fidelity ledger**: an append-only record where every edit operation writes `(op, input_segment_ids, input_taints, output_segment_id, output_taint, taint_join_rule)`. The invariant required is: > **Taint monotonicity under edit:** For any edit operation `op` producing outp...",
    "decision_boundary": "The boundary is crossed at the moment a controller applies a **lossy transform** (summarize, compress, merge, paraphrase) to a segment whose `taint != clean`, *and* the transform's output is assigned a taint lower than the input maximum. Two decision rules bound it: - **Admit-vs-quarantine at edit time:** If `max input taint == quarantined`, the transform MU...",
    "operational_effect": "Downstream, the instance exhibits **provenance-blind self-trust**: it treats controller-authored summaries as higher-trust than external inputs, which is correct for *fidelity* (summaries are task-conditioned) but inverted for *injection-resistance* (summaries inherit unscrutinized payloads). The effect compounds across edit cycles: each summarization round ..."
  },
  "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": "2b2d377749790ee65ecb674e540dd0b5adc1b3ee6a9ed2b8713d352bccfa6609",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "LedgerIncompleteError",
      "Segment",
      "LedgerEntry",
      "ContextController"
    ],
    "verified_functions": [
      "__init__",
      "lossy_transform",
      "injection_pass",
      "_taint_derivable",
      "_recompute_recall"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LedgerIncompleteError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
