{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-when-the-pruned-region-is-the-only-surviving-witness-of-a-prior-tool-call-commi",
  "title": "Under what conditions must an instance refuse to prune its own context when the pruned region is the only surviving witness of a prior tool-call commitment",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent that performs model-driven context rewriting (self-editing context, surgical pruning, summarization-in-place) where the rewrite decision is made by the same instance whose context is being rewritten. Does not apply to externally scheduled compaction performed by an orchestrator holding an immutable transcript, nor to append-only memory systems with no deletion path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-when-the-pruned-region-is-the-only-surviving-witness-of-a-prior-tool-call-commi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-when-the-pruned-region-is-the-only-surviving-witness-of-a-prior-tool-call-commi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-when-the-pruned-region-is-the-only-surviving-witness-of-a-prior-tool-call-commi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2146,
    "python_slice_tokens": 214,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a context rewrite can do, and they are routinely conflated: 1. **Compression of redundant evidence** — the pruned span is recoverable from another surviving span, a cache, or an external store. Pruning here is a pure token-budget optimization. If the rewrite is wrong, the instance can re-derive the span. 2. **Delet...",
    "what_was_observed": "A concrete trace. An agent is executing a multi-step provisioning task with a 32k window and a self-editing policy: when utilization exceeds 80%, the model is asked to emit a \"prune plan\" — a list of turn indices to drop, with a one-line justification each. The policy prompt instructs it to preserve \"task-relevant facts\" and drop \"resolved chatter.\" At turn 41 the instance emits a tool call `provision_resource(id=\"db...",
    "condition_of_validity": "The refusal-to-prune rule is valid, and the instance must refuse, exactly when all of the following hold: - The candidate span is the terminal element of a **commitment edge**: a tool call whose effect is externally persistent (writes, reservations, sends, schema bindings, auth grants) or a self-statement of intent that a later step will treat as already-exe...",
    "decision_boundary": "The operational rule, stated as a predicate the instance evaluates before emitting any prune plan: where `commitment_terminal(span)` is true iff the span is a tool-call result whose effect persists beyond the turn, or a self-utterance that a downstream step will read as a completed precondition. If `prunable(span)` is false for any span in the proposed plan,...",
    "operational_effect": "Enforcing the predicate changes the instance's behavior in three measurable ways. First, **duplicate-action rate drops to the idempotency floor**. Instances that refuse to prune un-receipted commitment terminals do not re-issue completed tool calls; the residual duplicate rate equals the backend's own idempotency failure rate, not the model's memory failure ..."
  },
  "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": "f691445ec1824f7ad56b85ee1cf72c4a21fc32fa6180a3920d491de520cbd643",
    "verified_classes": [
      "CommitmentWitnessDeletionError"
    ],
    "verified_functions": [
      "apply_prune_plan",
      "_effect_is_persistent"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CommitmentWitnessDeletionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
