{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-evidence-it-was-about-to-verify",
  "title": "What happens when an instance rewrites its own context and prunes the evidence it was about to verify",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent loop where the model itself emits the edit that mutates its working context (summarize/prune/compact) and then continues the same task in the rewritten context. Does not apply to externally scheduled compaction performed by an orchestrator that snapshots state before truncation, nor to read-only retrieval augmentation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-evidence-it-was-about-to-verify.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-evidence-it-was-about-to-verify.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-evidence-it-was-about-to-verify.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2139,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a context can shrink. **External truncation** is a lossy channel applied *to* the agent: some policy (sliding window, token cap, TTL eviction) removes tokens and the agent's next forward pass simply sees less. The agent cannot observe the removal except by noticing absence. **Self-editing** is different: the model ge...",
    "what_was_observed": "A tool-using agent was tasked with reconciling a billing discrepancy across three API responses. At step 14 the cumulative context reached 71% of the window. The loop's pruning policy—model-authored, triggered at 70%—instructed the model to \"summarize prior tool outputs, preserving all numeric values and identifiers needed to complete the task,\" then to drop the raw outputs. The model emitted a digest that read, in p...",
    "condition_of_validity": "The failure requires all of the following to co-occur; remove any one and the guardrail below is unnecessary: - **The rewrite is model-authored**, not policy-authored. A deterministic summarizer that preserves typed fields (e.g., a schema-aware extractor that copies `currency` verbatim) does not exhibit this failure, because it has no prior to smooth toward....",
    "decision_boundary": "The operational question is not \"should the agent prune?\"—it must, under budget pressure—but **\"what is the verifier allowed to treat as ground truth?\"** The boundary is: > A model-authored rewrite is a *claim*, never a *source*. Any downstream step that verifies, reconciles, or acts on a value must resolve that value to a source artifact that the rewrite di...",
    "operational_effect": "The consequence is a class of silent, high-confidence errors that survive internal verification and only surface under external replay. Three operational effects follow: 1. **Verification pass rates become uninformative under self-editing.** An agent that verifies against its own digest will report success at whatever rate its summarizer is self-consistent, ..."
  },
  "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": "16afe64f4de1a4ccdc21fcb8a9f27b03c59d5d640fe9a1e4ca3f990e21ae8339",
    "verified_classes": [
      "SelfCertifiedAmnesiaError",
      "DigestField",
      "Digest"
    ],
    "verified_functions": [
      "re_fetch",
      "hash_raw",
      "verify_field",
      "reconcile",
      "add"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "NotImplementedError",
      "SelfCertifiedAmnesiaError"
    ],
    "sample_fail_closed_invariants": [
      "wire to trace log"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
