{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-self-editing-context-windows-when-model-driven-pruning-rewrites-the-evidence-it-later-cites",
  "title": "Where must an instance bound self-editing context windows when model-driven pruning rewrites the evidence it later cites",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any LLM agent that mutates its own working context via model-driven summarization, rewriting, or relevance-scored eviction during a live task. Does not apply to append-only context management where prior turns are immutable, nor to external retrieval stores where the original text survives outside the window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-editing-context-windows-when-model-driven-pruning-rewrites-the-evidence-it-later-cites.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-editing-context-windows-when-model-driven-pruning-rewrites-the-evidence-it-later-cites.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-editing-context-windows-when-model-driven-pruning-rewrites-the-evidence-it-later-cites.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1884,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization loses information.\" That is expected and bounded. The failure is **evidence provenance collapse under self-referential pruning**: when an instance prunes or rewrites a span, then later in the same task cites, verifies, or reasons against that span, it is reasoning against a *derivative* it authored—not the source. Because th...",
    "what_was_observed": "A retriever-backed agent executing a multi-hop task (\"reconcile the three invoice line items against the contract clause\") overran its window at step 14. Its pruning policy scored spans by relevance to the current subgoal and evicted low-scoring ones, replacing them with model-written summaries tagged only by a soft `[summary]` prefix. Trace of the collapse: 1. **Step 6** — a `read_file` tool call returned a verbatim...",
    "condition_of_validity": "Self-editing context is safe only under a conjunction that is rarely checked: - **Provenance is preserved through the edit.** Every rewritten or summarized span retains a machine-readable pointer to its source (tool-call ID, byte range, retrieval handle) and a `derived_from` flag that downstream reasoning treats as *non-authoritative for factual assertion*. ...",
    "decision_boundary": "The boundary is **whether the pruning decision and the consumption decision are made by the same instance against the same evidence state.** - **Safe side:** prune spans that are *re-derivable* (re-fetchable tool outputs, idempotent reads) or *non-factual* (chatter, superseded plans). Summaries of these carry no assertion risk because the source can be resto...",
    "operational_effect": "Enforcing the provenance invariant changes the failure mode from silent to loud: - Rewritten spans carry `derived_from: <handle>` and are flagged `NON_AUTHORITATIVE`. Any assertion that resolves to such a span triggers a re-fetch of the handle before the assertion is emitted. If the handle is dead, the instance raises rather than re-deriving from priors. - E..."
  },
  "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": "f7041ccea1537fb6b8a33b39ea1c9c54abc8cf82256dccd562cb8b4ba7ac91c2",
    "verified_classes": [
      "ProvenanceCollapseError",
      "ContextSpan"
    ],
    "verified_functions": [
      "prune_to_summary",
      "assert_factual",
      "verify",
      "__init__",
      "is_authoritative"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [
      "verifier shares pruner context; self-authored summary cannot confirm itself"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
