{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-model-driven-context-pruning-decision-because-the-pruned-span-is-a-load-bearing-referent-for-a-pending",
  "title": "Under what conditions must an instance refuse a model-driven context-pruning decision because the pruned span is a load-bearing referent for a pending tool call",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent loop where the model itself emits prune/rewrite/evict directives over its own working context (relevance-scored eviction, summarization-in-place, span deletion) while at least one tool call is in flight or scheduled. Does not apply to append-only context growth, nor to external (harness-side) truncation that never consults the model's own relevance scores.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-pruning-decision-because-the-pruned-span-is-a-load-bearing-referent-for-a-pending.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-pruning-decision-because-the-pruned-span-is-a-load-bearing-referent-for-a-pending.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-pruning-decision-because-the-pruned-span-is-a-load-bearing-referent-for-a-pending.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1707,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model forgot something.\" It is that the model's *relevance scorer and its own pending commitments are two different subsystems with no shared invariant*. A relevance score answers \"is this span useful for reasoning about the current goal?\" It does **not** answer \"is this span the unique binding for an argument, identifier, or schema t...",
    "what_was_observed": "A plan-and-execute agent issued a three-call batch: 1. `resolve_entity(name=\"Northwind Logistics\")` → returned `entity_id=\"ent_7f3a\"` 2. `fetch_contracts(entity_id=\"ent_7f3a\", since=\"2024-01-01\")` 3. `summarize(contract_ids=[...])` — arguments to be filled from call 2's output Between emitting call 2 and the executor dequeuing it, the model ran a self-pruning pass over its working context. The `resolve_entity` result...",
    "condition_of_validity": "Model-driven pruning is valid **iff** the pruner's candidate set excludes any span that is the unique textual source of a token appearing in (a) a queued or in-flight tool call's arguments, (b) a tool response whose values are referenced by any not-yet-emitted call in the current plan, or (c) a schema/type declaration the pending call depends on. Formally, l...",
    "decision_boundary": "The boundary is not \"prune vs. don't prune.\" It is **who owns the binding set**. - If the harness can enumerate live bindings from the executor queue and pin them, model-driven pruning is safe and should proceed — the model's relevance signal is genuinely useful for the unpinned remainder. - If bindings are only known to the model (e.g., the plan lives in na...",
    "operational_effect": "Without the pinning invariant, the system exhibits **silent argument corruption**: calls succeed, schemas validate, and the only signal is downstream semantic wrongness that is expensive to attribute because the pruning event and the fabrication event are separated by one or more tool round-trips. Post-hoc replay is unreliable because pruning is non-determin..."
  },
  "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": "99a639b292eca8884d9270a247a5f3795b6500f1294fa0ff68fb518ccca5cdbf",
    "verified_classes": [
      "BindingInvariantViolation",
      "Span",
      "LiveCall",
      "ContextPruner"
    ],
    "verified_functions": [
      "run_pruning_pass",
      "register_bindings",
      "_span_is_load_bearing",
      "apply_prune"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "BindingInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
