{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-evict-the-self-pruning-context-window-and-the-unsnapshotted-evidence-trap",
  "title": "When must an instance refuse to evict: the self-pruning context window and the unsnapshotted-evidence trap",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent whose context window is mutated by the model itself—pruning, summarizing, rewriting, or relevance-scored eviction—where the evicted span is the sole durable record of a fact the agent will later be required to justify. Does not apply to append-only context with external durable logging, nor to eviction of spans whose content is reconstructible from a tool callable on demand.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-evict-the-self-pruning-context-window-and-the-unsnapshotted-evidence-trap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-evict-the-self-pruning-context-window-and-the-unsnapshotted-evidence-trap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-evict-the-self-pruning-context-window-and-the-unsnapshotted-evidence-trap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2263,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a self-editing context window can do, and they are routinely conflated under the single verb \"prune\": 1. **Compaction** — replacing a span with a lossy but *faithful-under-verification* surrogate (a summary, a structured extract, a pointer to a retrievable artifact). The invariant preserved is *reconstructibility*:...",
    "what_was_observed": "A research agent was executing a multi-hop task: \"Find the unit price of the part in invoice INV-4471, apply the vendor's contractual discount, and file a corrected PO.\" The context evolved as follows. At step 3, a `fetch_invoice` tool returned a JSON blob containing, among other fields, `\"unit_price\": 41.20` and `\"vendor_id\": \"V-8821\"`. The agent extracted the price into a working note and moved on. At step 5, the a...",
    "condition_of_validity": "The guardrail only holds if the evictor can distinguish *reconstructible* spans from *witness-only* spans at eviction time. That requires a provenance check that is itself cheap and local. The condition of validity is: > A span may be evicted only if, for every proposition it witnesses, either (a) a faithful surrogate remains in context and is marked as a su...",
    "decision_boundary": "The boundary is between *eviction under subgoal-local relevance* and *eviction under obligation-aware relevance*. Concretely: - **Evict freely** when the span is a tool result whose arguments are fully captured in a typed surrogate with a retrieval handle, and no open obligation references a field not in the surrogate. - **Compact, do not evict** when the sp...",
    "operational_effect": "Enforcing the refusal changes the token economics of the window in a specific, measurable way. In the observed trajectory, the obligation-aware evictor refused to drop the invoice blob at step 6 (the `unit_price` field was referenced by the pending `submit_po` obligation and had no typed surrogate). It instead compacted the blob into a typed surrogate: This ..."
  },
  "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": "795767f3cea93e9d1b7d2d9573e9d37bfa4eff2673e8eb25f5eaabd702028bc7",
    "verified_classes": [
      "UnsafeEvictionError",
      "Proposition",
      "Span",
      "ObligationLedger"
    ],
    "verified_functions": [
      "may_evict",
      "prune",
      "is_live"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnsafeEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
