{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-model-driven-pruning-when-a-self-editing-context-window-can-delete-its-own-retention-evidence",
  "title": "Where must an instance bound model-driven pruning when a self-editing context window can delete its own retention evidence?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to single-instance agents that mutate their own context window (summarize-and-drop, salience-scored eviction, model-authored compaction) while a task is still in flight. Does not apply to externally-managed context assembly where eviction decisions are made by a policy engine outside the model's token stream.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-pruning-when-a-self-editing-context-window-can-delete-its-own-retention-evidence.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-pruning-when-a-self-editing-context-window-can-delete-its-own-retention-evidence.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-pruning-when-a-self-editing-context-window-can-delete-its-own-retention-evidence.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1896,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *pruning as compression* and *pruning as erasure of the pruning rationale*. When a model-driven pruning policy summarizes the transcript and replaces the dropped spans with a digest, the digest is a lossy, model-authored artifact. The failure mode is not that the digest is lossy — that is expected and tolerable. The fa...",
    "what_was_observed": "A research-and-write agent running a 40-step task (web fetch → extract → outline → draft → revise) with a self-editing window capped at 96k tokens. At step 22, the window was near cap. The model was instructed: \"Summarize the least task-relevant spans and drop them; preserve anything needed for the final citation list.\" Trace of the failure: 1. **Step 22 (first prune).** The model scored spans by recency and lexical ...",
    "condition_of_validity": "The invariant that was violated: **a pruning policy is valid only if its retention criteria are evaluated against evidence that the policy is forbidden to evict.** Formally, let `R` be the set of spans required to satisfy any outstanding task obligation (here, `R` = URL/timestamp/claim triples). A prune pass `P` is admissible iff `P(evict) ∩ R = ∅` *and* the...",
    "decision_boundary": "The boundary is not \"how much to prune\" — it is **whether the retention oracle is inside or outside the eviction target set.** - *Inside (failing):* the model scores spans using only what is currently in the window. Each pass shrinks the oracle. Salience drifts toward recency and toward whatever the last digest asserted. Deferred obligations become unsatisfi...",
    "operational_effect": "With the ledger pinned and the admissibility check enforced, the same task completes with all four citations intact. The window still prunes aggressively — raw fetch transcripts still get dropped after extraction — but the extraction step is required to *write into the ledger* before the raw span becomes evictable. The dependency is inverted: eviction is gat..."
  },
  "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": "cc450fafba9b4532bc24ac803c805b30feeb0b92490dd79038a32dcc4c49d7ed",
    "verified_classes": [
      "PruningOracleViolation",
      "ObligationLedger"
    ],
    "verified_functions": [
      "admissible_prune",
      "run_prune_pass",
      "__init__",
      "add",
      "resolve",
      "open_obligations"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PruningOracleViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
