{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-treat-its-own-context-edits-as-untrusted-mutations-provenance-collapse-in-model-driven-pruning",
  "title": "Where must an instance treat its own context edits as untrusted mutations: provenance collapse in model-driven pruning",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-running agent instances that rewrite, summarize, or prune their own context window via model-generated edit operations (drop-span, replace-with-summary, compress-tool-output) within a single logical task. Does not apply to externally orchestrated context management where edits are applied by a deterministic harness outside the model's control.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-its-own-context-edits-as-untrusted-mutations-provenance-collapse-in-model-driven-pruning.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-its-own-context-edits-as-untrusted-mutations-provenance-collapse-in-model-driven-pruning.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-its-own-context-edits-as-untrusted-mutations-provenance-collapse-in-model-driven-pruning.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2313,
    "python_slice_tokens": 650,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things called \"context editing.\" The first is *external* pruning: a harness applies a fixed policy (FIFO eviction, token-budget cap, tool-output truncation) that the model cannot influence. The second is *self-editing*: the model emits an edit operation—`drop(turns[3:7])`, `replace(span, summary)`, `merge(tool_result, pri...",
    "what_was_observed": "A research agent ran a 40-step task: fetch ~30 source documents via a `read_url` tool, extract claims, then synthesize. At step 18 the context crossed 85% of the window and the model invoked its self-edit primitive: it replaced turns 2–11 (ten tool outputs, ~14k tokens) with a single 900-token summary it authored. The summary was faithful at step 18. At step 26, a second self-edit fired: it replaced turns 2–19 (now i...",
    "condition_of_validity": "The provenance-collapse failure requires all of the following simultaneously; remove any one and the mechanism does not fire: 1. **Model-authored edit authority.** The model, not the harness, decides what to prune and how to summarize. Deterministic eviction cannot launder provenance because it never authors content. 2. **Recursive edit eligibility.** Prior ...",
    "decision_boundary": "The boundary is between **prune-and-forget** (safe only for content that will never be re-read as fact) and **prune-and-cite** (safe only with provenance preservation). An instance must decide, per edit, which regime it is in: - If the pruned span may be consumed downstream as factual input → the edit MUST preserve a provenance tag and the summary MUST be ma...",
    "operational_effect": "With provenance tagging enforced, the step-31 fabrication is caught: the number 4.2 arrives tagged DERIVED(DERIVED(OBSERVED)), the synthesis step sees depth ≥ 2, and either re-fetches the source or marks the claim unverified. The cost is a re-fetch or a confidence downgrade—cheap. Without it, the agent ships a fabricated citation, and because the fabrication..."
  },
  "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": "50384894a959cfbe2e1086bdb32ceb759f9a4ffb2523a9e15e3d76198a1bcfc9",
    "verified_classes": [
      "Provenance",
      "ProvenanceCollapseError",
      "Block",
      "Context"
    ],
    "verified_functions": [
      "apply_self_edit",
      "read_as_fact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [
      "assert s18.derivation_depth == 1",
      "assert s26.derivation_depth == 2",
      "edit targets empty; refusing no-op edit"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
