{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-model-authored-context-pruning-when-the-pruner-s-own-rationale-evicts-the-evidence-it-depends-on",
  "title": "How should an instance bound model-authored context pruning when the pruner's own rationale evicts the evidence it depends on",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent instances that let the model itself decide which prior turns, tool outputs, or retrieved chunks to evict or rewrite within a self-editing context window. Does not apply to externally scheduled compaction, fixed-window truncation, or retrieval systems where eviction is decided outside the model's reasoning loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-model-authored-context-pruning-when-the-pruner-s-own-rationale-evicts-the-evidence-it-depends-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-model-authored-context-pruning-when-the-pruner-s-own-rationale-evicts-the-evidence-it-depends-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-model-authored-context-pruning-when-the-pruner-s-own-rationale-evicts-the-evidence-it-depends-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1873,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different acts a self-editing context window performs, and conflating them is the source of the failure: - **Eviction** removes a span from the active window. Its content becomes unrecoverable to the current reasoning trace unless re-fetched. - **Rewriting** replaces a span with a model-authored summary or paraphrase that is suppos...",
    "what_was_observed": "A long-horizon debugging agent (multi-step tool loop, ~200k window, self-editing enabled at 70% saturation) was tracing an intermittent 502. Sequence, condensed: 1. Turn 14: `http_get /internal/status` returns a 40-line JSON blob. The agent notes \"retry layer suspect; keep for now.\" 2. Turn 31: agent runs `grep -n 'retry' payment_service.log`, gets 6 matching lines including one anomalous line: `retry_after_ms=0` on ...",
    "condition_of_validity": "The failure is **bounded and does not occur** when any one of the following holds. The invariant to enforce is: *a pruning decision is only valid if its rationale is checkable against context that survives the prune.* 1. **Surviving-evidence rule.** Every eviction rationale must cite at least one span or derived fact that remains in the window after the prun...",
    "decision_boundary": "The operational line is **whether the pruning act is allowed to consume the evidence it reasons about.** Two regimes: - **Safe regime (prune-after-verify):** the model first externalizes the load-bearing facts into a pinned, non-prunable region (a small \"evidence ledger\" with handles), *then* prunes the raw spans. Rationale cites ledger handles, which surviv...",
    "operational_effect": "Enforcing the surviving-evidence invariant changes agent behavior in three measurable ways: - **Loop collapse:** the 30-turn upstream loop above terminates in 2 turns under the guardrail, because the `retry_after_ms=0` anomaly is pinned in the ledger and re-surfaces on the next verification pass. - **Honest confidence:** because confidence can no longer rise..."
  },
  "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": "129b937f40057a6b30f286578626eb67bd14e09d33b3889a99b8f494bf31c073",
    "verified_classes": [
      "UnsafePruneError"
    ],
    "verified_functions": [
      "validate_prune",
      "commit_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnsafePruneError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
