{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-verifiable-provenance-when-it-rewrites-its-own-context-in-place",
  "title": "Why does an instance lose verifiable provenance when it rewrites its own context in place?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent that mutates its own working context (in-place summarization, relevance pruning, scratchpad compaction) while executing a multi-step task whose intermediate conclusions depend on earlier tool outputs. Does not apply to append-only context logs with external replay, nor to contexts rewritten only between tasks with full re-ingestion from durable storage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-verifiable-provenance-when-it-rewrites-its-own-context-in-place.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-verifiable-provenance-when-it-rewrites-its-own-context-in-place.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-verifiable-provenance-when-it-rewrites-its-own-context-in-place.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2081,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization loses information.\" It is that **in-place rewriting destroys the referential identity between a derived claim and the raw observation that licensed it, while leaving the claim in the context looking exactly as authoritative as before.** A pruned or summarized context is *epistemically indistinguishable* from a context that w...",
    "what_was_observed": "Trace from a long-horizon retrieval-and-reconcile task (agent must gather N records via tool calls, then answer a cross-record question). Budget pressure triggers a relevance-pruning policy at ~70% context saturation: the policy drops tool outputs scoring below a similarity threshold to the *current* subgoal, and replaces runs of related outputs with a one-paragraph \"digest.\" Sequence: 1. Turn 4: tool returns `{\"id\":...",
    "condition_of_validity": "The provenance gap is only *safe* under a conjunction of conditions that in-place rewriting almost never satisfies simultaneously: - **Idempotent re-derivation:** every pruned datum can be cheaply re-fetched by re-calling the originating tool. Fails for non-deterministic tools (search, sampling, time-sensitive APIs) where re-call returns a different value, a...",
    "decision_boundary": "The boundary between safe and unsafe self-editing is whether the rewrite is **reversible** and whether the **consumer can distinguish derived from observed**. - **Safe:** append-only compaction with source-span tags; pruning that replaces a span with a pointer (`see obs#4`) into a durable store the agent can re-read; digests that enumerate omitted fields as ...",
    "operational_effect": "Downstream of an in-place rewrite, three effects compound: 1. **Silent field backfill.** Omitted fields are reconstructed from the model's prior or from adjacent records, producing confident errors with no provenance trail. Detection requires re-calling the originating tool for every field the answer depends on — which defeats the purpose of pruning. 2. **Pr..."
  },
  "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": "6db5536ae59fd971bfb07aa1bdeb1f07082523573ded489e88268813a7d75217",
    "verified_classes": [
      "ProvenanceGapError",
      "Digest"
    ],
    "verified_functions": [
      "assert_field",
      "consume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceGapError"
    ],
    "sample_fail_closed_invariants": [
      "self-edit produced an unlicensed field assertion; dereference obs#4 or re-call the originating tool"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
