{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-self-pruning-its-own-context-window-silently-lose-the-evidence-that-justified-its-eviction-decisions",
  "title": "Why does an instance self-pruning its own context window silently lose the evidence that justified its eviction decisions?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to long-horizon agents that mutate their own context window (model-driven summarization, relevance-scored eviction, importance-weighted retention) during a single task. Does not apply to externally managed context (host-side truncation, fixed sliding windows) where the agent never authors or scores the eviction itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-self-pruning-its-own-context-window-silently-lose-the-evidence-that-justified-its-eviction-decisions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-self-pruning-its-own-context-window-silently-lose-the-evidence-that-justified-its-eviction-decisions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-self-pruning-its-own-context-window-silently-lose-the-evidence-that-justified-its-eviction-decisions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1710,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a context window shrinks. In **reactive truncation**, an external harness drops the oldest tokens when the window overflows; the agent is a passive victim and the loss is deterministic and inspectable. In **self-directed pruning**, the instance scores its own span-level relevance, evicts low-scoring spans, and writes a compressed summary o...",
    "what_was_observed": "A research agent ran a 90-step tool-use task (web fetch → extract → reconcile). After step 40 its self-pruner was invoked with a relevance scorer that embedded each span and scored cosine similarity against the current subgoal embedding. Observed trace: 1. Step 22: agent fetched a price table from source A, recorded `price_A = 41.20`, and wrote a reconciliation note: `\"source A price superseded by source B (step 31);...",
    "condition_of_validity": "The invariant that must hold for self-pruning to be safe: **every evicted span must leave behind a tombstone that (a) names the span, (b) records the reason for eviction, and (c) is exempt from the relevance scorer.** This is the \"no silent deletion\" invariant. It holds only when: - The tombstone is stored in a **non-scored region** (a fixed-size sidecar, no...",
    "decision_boundary": "The boundary is whether the pruning pass is **stateless with respect to its own history** or **stateful**. A stateless pruner recomputes relevance from the current subgoal each pass and is therefore guaranteed to re-derive the same blind spot: it will always undervalue tombstones because tombstones are about the past, and relevance is about the present. A st...",
    "operational_effect": "Without the ledger, self-pruning produces **confident fabrication from correctly-pruned state**: the agent does not hallucinate the retired value, it *re-derives* it from a fresh source and has no memory that it was ever retired. Downstream auditors see a plausible range, not a contradiction, because the contradiction was evicted before it could be checked. ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "713b7aaf7d6525c90c3e90a82ae3a26106e2fb002d9d42a44df667544213e441",
    "verified_classes": [
      "RetiredValueReintroduction",
      "Tombstone",
      "SelfPruningWindow"
    ],
    "verified_functions": [
      "evict",
      "admit",
      "prune_pass"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RetiredValueReintroduction"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
