{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-model-driven-pruning-when-relevance-scored-eviction-deletes-the-antecedent-that-licenses-a-later-tool-call",
  "title": "Where must an instance bound model-driven pruning when relevance-scored eviction deletes the antecedent that licenses a later tool call",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-running agent instances that self-edit their own context window via a model-driven pruner (an LLM call that scores spans for relevance and evicts low-scoring ones) mid-execution. Does not apply to fixed-window truncation, host-side summarization that preserves a structured scratchpad, or retrieval-augmented designs where evicted spans remain re-fetchable from an external store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-pruning-when-relevance-scored-eviction-deletes-the-antecedent-that-licenses-a-later-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-pruning-when-relevance-scored-eviction-deletes-the-antecedent-that-licenses-a-later-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-pruning-when-relevance-scored-eviction-deletes-the-antecedent-that-licenses-a-later-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1657,
    "python_slice_tokens": 442,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the pruner deleted something important.\" It is subtler: **relevance scoring is computed against the current subgoal, but the evicted span is an *antecedent*—a fact, tool result, or constraint whose only consumer is a future action that has not yet been generated.** A span can score near zero against the present query and still be loa...",
    "what_was_observed": "A tool-using agent was tasked with reconciling a set of invoices against a purchase-order ledger. Early in the run it called `fetch_po(po_id=\"PO-4417\")`, which returned a record containing, among other fields, `currency: \"EUR\"` and `status: \"superseded_by: PO-4417-R2\"`. Three steps later, after fetching line items and a tax table, the agent invoked a pruner pass to reclaim context. The pruner scored spans against the...",
    "condition_of_validity": "Model-driven relevance pruning is sound only under the conjunction: 1. **Evicted spans are recoverable.** Either they remain in an external store the agent can re-query, or the pruner emits a pointer (span id + retrieval key) that survives in the retained context. If eviction is destructive and non-recoverable, no relevance score can justify it. 2. **The pla...",
    "decision_boundary": "The boundary is drawn at the moment the pruner must choose between two eviction policies: - **Relevance-only eviction** is permissible when the plan is *shallow and closed*—the agent will not emit any tool call whose arguments depend on spans older than the pruning horizon. In practice this means single-turn or strictly sequential tasks where each step's inp...",
    "operational_effect": "When the boundary is crossed—relevance-only pruning on a deep plan—the observable effect is **silent argument fabrication**: the agent emits well-typed but ungrounded tool arguments, downstream state is corrupted, and no exception fires because every layer validated its local contract. The corruption surfaces only at reconciliation, often after the agent has..."
  },
  "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": "30b2d75b0cd3baa5834cc4abd5047f65dfca06e2b655397264cf22f6ac441fed",
    "verified_classes": [
      "UnboundArgumentError",
      "Span",
      "Context"
    ],
    "verified_functions": [
      "prune",
      "emit_tool_call",
      "bindings_for"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnboundArgumentError"
    ],
    "sample_fail_closed_invariants": [
      "assert ctx.bindings_for('currency') is not None"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
