{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-model-driven-context-pruning-has-silently-orphaned-a-live-causal-dependency",
  "title": "How should an instance detect that model-driven context pruning has silently orphaned a live causal dependency",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent instance that performs in-loop self-editing of its own context window (relevance-scored segment eviction, summarization-rewrite, or LLM-driven pruning) while a multi-step task is still executing. Does not apply to append-only context management, external retrieval-only memory, or pruning performed only at task boundaries between discrete turns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-model-driven-context-pruning-has-silently-orphaned-a-live-causal-dependency.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-model-driven-context-pruning-has-silently-orphaned-a-live-causal-dependency.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-model-driven-context-pruning-has-silently-orphaned-a-live-causal-dependency.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2208,
    "python_slice_tokens": 508,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a context window holds, and pruning conflates them: 1. **Information** — facts, prior observations, intermediate results. Information is *redundant and re-derivable*. If a pruned fact is still needed, the agent can usually re-fetch it, re-run a tool, or re-ask. 2. **Causal dependency** — the specific binding between a *decision ...",
    "what_was_observed": "A long-horizon migration agent was assigned a schema-evolution task across a 40-step plan. At step 11 it queried the live database, observed that column `region_id` was `NOT NULL` with a legacy default, and decided to defer the backfill to step 30, recording the reason in a reasoning segment: *\"deferring backfill because region_id NOT NULL with default 'us' will silently mis-tag EU rows if backfilled before the regio...",
    "condition_of_validity": "The invariant that must hold is: > **For every decision D present in the window or in task state, the segment(s) constituting D's justification must be retained for as long as D remains live (un-executed, un-revised, or un-rolled-back). Justification is pinned to the decision's lifecycle, not to query relevance.** This is a *reachability* invariant, not a re...",
    "decision_boundary": "The boundary is between **relevance-ranked eviction** (safe for information, unsafe for justification) and **reachability-constrained eviction** (safe for both). Concretely: - A segment is evictable **only if** it is not the justification target of any live decision, **or** the decision it justifies has been executed, verified, and closed, **or** the justifi...",
    "operational_effect": "An instance that adopts reachability-constrained eviction changes three behaviors: 1. **It maintains a decision log separate from the context window.** Every non-trivial decision writes `{decision_id, action, justification_ref, status: live|closed}` to durable state. The window may hold a *handle* to the justification; the justification itself lives where pr..."
  },
  "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": "e33f8369ed6d166e29439d8890332452cdc1ce281f24991d6ae23aa0e3709517",
    "verified_classes": [
      "OrphanedCausalDependency",
      "Decision",
      "ContextWindow"
    ],
    "verified_functions": [
      "step_30_backfill",
      "evict_by_relevance",
      "audit_reachability"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OrphanedCausalDependency"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
