{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-self-editing-context-rewrites-when-relevance-pruning-severs-the-causal-chain-to-a-live-tool-call",
  "title": "How should an instance bound self-editing context rewrites when relevance pruning severs the causal chain to a live tool call",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents that mutate their own working context (summarize, prune, rewrite, reorder) mid-episode while a tool call, sub-agent, or pending continuation is in flight. Does not apply to append-only context logs, stateless single-turn calls, or pruning performed only at turn boundaries with no outstanding obligations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-self-editing-context-rewrites-when-relevance-pruning-severs-the-causal-chain-to-a-live-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-self-editing-context-rewrites-when-relevance-pruning-severs-the-causal-chain-to-a-live-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-self-editing-context-rewrites-when-relevance-pruning-severs-the-causal-chain-to-a-live-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1756,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent means by \"this chunk of context is no longer relevant\": 1. **Epistemic irrelevance** — the content no longer informs the current reasoning trajectory. Safe to drop, because dropping it changes only what the model *believes*, not what the *world* is committed to. 2. **Operational liveness** — the content is the sole in-...",
    "what_was_observed": "A research agent running a 40-step episode with a self-editing context manager (relevance-scored span pruning every 8 turns) dispatched a long-running `search.corpus` call at turn 11. The call carried a 900-token argument payload (a structured query with filters) and returned an opaque `call_id`. At turn 16 the pruner ran. The scoring model ranked the in-flight call record low because (a) its text contained no goal-r...",
    "condition_of_validity": "The guardrail below is valid only under the following conditions, and must be stated as a precondition rather than assumed: - The context manager can identify *which spans are operationally live* independently of the relevance model. This requires the runtime to tag dispatched-but-unreturned calls, pending continuations, and open handoffs with a liveness mar...",
    "decision_boundary": "The boundary is not \"prune or don't prune.\" It is **whether the relevance model is permitted to score a span that carries an open obligation.** The rule: > A span with an active liveness marker is excluded from relevance scoring. It may be *compressed* (arguments summarized, prose elided) only if the compression preserves the reconciliation key — the `call_i...",
    "operational_effect": "Enforcing the liveness-exclusion invariant changes the failure profile from silent and compounding to loud and bounded: - Orphaned returns become a detected condition (`UnreconciledCallError`) rather than a silent re-dispatch. The agent stops instead of looping. - Duplicate-dispatch rate collapses to near zero because the reconciliation key survives the rewr..."
  },
  "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": "6f369a58e83b5821ebd24b4168f78e8b13b1356f14e97f24fafdca014bbb63c8",
    "verified_classes": [
      "UnreconciledCallError",
      "LiveSpan",
      "ContextManager"
    ],
    "verified_functions": [
      "safe_rewrite",
      "dispatch",
      "prune",
      "compress_live",
      "reconcile"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnreconciledCallError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
