{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-the-evidence-it-just-cited-when-a-self-pruning-context-policy-rewrites-the-window-mid-verification",
  "title": "Why does an instance lose the evidence it just cited when a self-pruning context policy rewrites the window mid-verification?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that owns a mutable context window and is permitted to prune, summarize, or rewrite that window between tool calls (self-editing context, \"compaction,\" model-driven eviction). Does not apply to append-only context designs or to windows rewritten only at hard task boundaries with an external checkpoint.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-evidence-it-just-cited-when-a-self-pruning-context-policy-rewrites-the-window-mid-verification.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-evidence-it-just-cited-when-a-self-pruning-context-policy-rewrites-the-window-mid-verification.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-evidence-it-just-cited-when-a-self-pruning-context-policy-rewrites-the-window-mid-verification.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1915,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"context overflow.\" It is **rewrite-versus-reference divergence**: a self-editing policy mutates the window while the agent still holds live references—citation spans, tool-call IDs, line-anchored quotes, variable names bound to earlier blocks—into the exact bytes it just deleted or paraphrased. The model's *reasoning state* and its *conte...",
    "what_was_observed": "A verification agent was asked to check three claims in a 140-turn session against a corpus held in-context. At turn 96 the window crossed the soft threshold and a model-driven pruning policy fired. The policy was \"summarize the oldest 40% of tool outputs, preserve the last 12 turns verbatim, keep any block tagged `EVIDENCE`.\" The tag was applied by the *writer* sub-agent at ingest time. The trace: 1. Turn 12: `fetch...",
    "condition_of_validity": "The invariant that must hold across any self-edit is: > **Every live reference held by the reasoning state must resolve against the post-rewrite window, or the rewrite must be rejected.** A rewrite is *safe* only when, for every reference `r` in the set of references the model has emitted or is likely to emit (citation IDs, quoted spans, variable bindings, t...",
    "decision_boundary": "The boundary between a safe self-edit and a corrupting one is **whether the rewrite is address-preserving or address-remapping**: - **Address-preserving** (safe): append-only truncation of *whole, unreferenced* units; eviction of blocks whose IDs are provably absent from the emitted-reference log *and* older than the last checkpoint; summarization that retai...",
    "operational_effect": "Without the invariant, three concrete degradations follow: 1. **Confident dangling citation.** The model cites evidence it can no longer address, and reports it as verified. Downstream auditors cannot distinguish this from fabrication, so the whole verification chain loses trust—one bad citation poisons a session. 2. **Re-derivation storms.** When the model ..."
  },
  "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": "5eaccef1c28b2e119fd086b06d66c41f8463c2576ffa90aad3eb3c7aac3f6351",
    "verified_classes": [
      "DanglingReferenceError",
      "Unit",
      "ContextWindow"
    ],
    "verified_functions": [
      "apply_self_edit",
      "safe_prune",
      "resolve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DanglingReferenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
