{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-model-driven-context-pruning-when-the-pruned-span-is-the-sole-witness-of-a-tool-call-side-effect",
  "title": "In what scenarios must an instance refuse model-driven context pruning when the pruned span is the sole witness of a tool-call side effect",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent that lets the model itself decide which spans of its own context window to evict, summarize, or compress mid-task, where those spans may contain tool-call arguments, tool results, or signed warrants. Does not apply to fixed-window truncation policies (FIFO, token-budget eviction) that are deterministic and independent of model judgment, nor to pruning performed only at task boundaries after a durable checkpoint has been committed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-pruning-when-the-pruned-span-is-the-sole-witness-of-a-tool-call-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-pruning-when-the-pruned-span-is-the-sole-witness-of-a-tool-call-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-pruning-when-the-pruned-span-is-the-sole-witness-of-a-tool-call-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1672,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A context window is not a cache. A cache can evict any line and recompute it on a miss; a context window whose contents are the *only* record of an irreversible side effect cannot. Model-driven pruning conflates two kinds of span: **reconstructible spans** (reasoning traces, restatements of retrieved documents still present in the retrieval index, paraphrase...",
    "what_was_observed": "An agent executing a multi-step provisioning task issued a `create_resource` tool call whose arguments included a client-generated idempotency key and a quota-bearing `region` parameter. The tool returned a structured success envelope. Two subgoals later, the model was asked to compact its context to stay under budget and, per its pruning instructions (\"retain spans relevant to the active goal; summarize or drop span...",
    "condition_of_validity": "Model-driven pruning is invariant-safe only when all three hold: - **Reconstructibility:** every pruned span can be regenerated from a source of truth outside the context window (a durable event log, a tool-result store keyed by call id, a signed receipt). If the only copy is in-context, the span is a witness and is ineligible for eviction. - **Idempotency p...",
    "decision_boundary": "The decision is per-span and hinges on a single question: *if this span disappears, can a future step still prove what happened and what it was parameterized by?* - **Prune freely:** reasoning traces, restatements of still-retrievable documents, completed subgoal narration, tool results that are pure reads of a queryable store and carry no side effect. - **S...",
    "operational_effect": "Enforcing this boundary converts a silent, non-recoverable double-effect into a bounded, detectable refusal. The pruner, when it encounters a witness span it cannot relocate, raises and falls back to a conservative policy (retain the span, prune elsewhere, or spill to a scratch buffer) rather than proceeding. The effect on the agent is a slightly larger cont..."
  },
  "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": "970502dc2de2d7b24dc1f59ee24af87a0379947c151785ba18ad0a7dead1a5fe",
    "verified_classes": [
      "PruningRefusal",
      "SpanKind",
      "Span"
    ],
    "verified_functions": [
      "prune_span",
      "apply_pruning_policy",
      "content_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PruningRefusal"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
