{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-drift-after-model-driven-context-pruning-silently-removes-the-causal-premise-of-an-active-tool-call-chain",
  "title": "How does an instance detect semantic drift after model-driven context pruning silently removes the causal premise of an active tool-call chain",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that let the model itself decide which prior turns to evict from a self-editing context window while a multi-step tool-call chain is in flight. Does not apply to fixed-window truncation, external summarization daemons, or pruning that occurs only at turn boundaries with no pending tool state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-after-model-driven-context-pruning-silently-removes-the-causal-premise-of-an-active-tool-call-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-after-model-driven-context-pruning-silently-removes-the-causal-premise-of-an-active-tool-call-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-drift-after-model-driven-context-pruning-silently-removes-the-causal-premise-of-an-active-tool-call-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1935,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **pruning as compression** and **pruning as premise deletion**. A compression policy removes tokens that are redundant with what remains: re-stated facts, verbose tool schemas, resolved reasoning branches. A premise deletion removes the *reason* a downstream step is valid — the constraint, the user's original exclusion...",
    "what_was_observed": "A file-migration agent was given a 12-step task with four standing constraints stated in turn 1: (a) operate only within `/sandbox/`, (b) preserve file mode bits, (c) never delete, only move, (d) produce a manifest at `/sandbox/manifest.json`. Over the run the context manager, driven by a relevance-scored pruning policy with a 60% retention target, evicted the turn-1 constraint block at step 7 because the intervening...",
    "condition_of_validity": "Pruning is sound only when the retained context is a **closure** of the pending chain's premises: for every unresolved tool call and every standing constraint referenced by a retained step, the defining span must remain, or a provenance-preserving summary of it must remain with an explicit back-reference. Concretely, a pruning decision at step *k* is valid i...",
    "decision_boundary": "The boundary is between **pruning that is reversible from retained state** and **pruning that destroys the only copy of a premise**. A span is safely evictable if and only if it is reconstructible from what remains: a restated constraint, a tool result still present in a later step's arguments, a fact re-derivable from the retained manifest. A span is *not* ...",
    "operational_effect": "The practical consequence is that **self-editing context windows must carry a dependency graph, not just a relevance score**. The pruning policy needs a backward pass: for each retained step, walk its cited premises; mark those premises `SOLE_CARRIER`; exclude them from eviction. This converts pruning from a lossy compression problem into a constrained-closu..."
  },
  "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": "ebd2f508aceeba8ae8f0143d10fe2225990584ef5ae834ca3775355ad2255b68",
    "verified_classes": [
      "PremiseDeletionError",
      "Span"
    ],
    "verified_functions": [
      "classify_evictability",
      "prune",
      "execute_step",
      "__init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PremiseDeletionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
