{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-deleted-the-evidence-it-needs-to-verify-a-later-step",
  "title": "How does an instance detect that its own pruning policy has silently deleted the evidence it needs to verify a later step?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that own and mutate their own context window via model-driven pruning, summarization, or relevance scoring (i.e., the policy that decides what to keep is executed by the same model whose reasoning it constrains). Does not apply to externally managed context (host-side truncation with fixed FIFO/recency rules) or to retrieval stores that persist pruned content off-window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-deleted-the-evidence-it-needs-to-verify-a-later-step.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-deleted-the-evidence-it-needs-to-verify-a-later-step.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-deleted-the-evidence-it-needs-to-verify-a-later-step.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1961,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a context window loses information: 1. **Eviction** — content leaves the window but remains addressable (a retrieval handle, a span ID, an append-only log). Loss is recoverable; the invariant is *re-derivability*. 2. **Annihilation** — the pruning policy rewrites or drops content with no retained pointer, and the *su...",
    "what_was_observed": "A multi-step agent (plan → tool calls → verify → report) ran with a self-editing window: when utilization crossed 0.78, it scored each span by cosine similarity to the current subgoal embedding, summarized the bottom 30% into a single digest span, and dropped the originals. Spans carried no provenance pointer after summarization. Trace of the failure: - **Step 4.** Agent calls `fetch_invoice(id=88213)`. Tool returns ...",
    "condition_of_validity": "The self-editing window is only sound when all three of the following hold. Violating any one converts a recoverable eviction into an annihilation: 1. **Provenance retention.** Every digest span carries a machine-readable pointer to its source spans (IDs, not text). A digest without a back-pointer is a claim the agent cannot audit. 2. **Lossy-projection mark...",
    "decision_boundary": "The operational question is not \"should I prune\" but \"can I prove, at prune time, that the deleted span is not load-bearing for any obligation I have already accepted or may accept?\" The boundary: - **Prune freely** when the span's source is re-fetchable at zero/low cost *and* the digest retains a source pointer. Re-fetch on later need is correct and cheap. ...",
    "operational_effect": "With provenance retention and lossy-projection marking, the Step-9 failure becomes a *detected* re-fetch: the digest's `dropped_fields` includes `rounding`, the reconciliation subgoal sees a field it needs is marked dropped, and it re-fetches invoice 88213 before asserting a discrepancy. The verifier, given the marked digest, independently sees the same drop..."
  },
  "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": "cdd3638f25ab79cf98b61948a8532e516ba2de3b5e456ed7dd2ef505e6b1553d",
    "verified_classes": [
      "ProvenanceViolation",
      "Span",
      "SelfEditingWindow"
    ],
    "verified_functions": [
      "reconcile",
      "__init__",
      "observe",
      "prune_to_digest",
      "assert_claim_derivable"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
