{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-context-window-pruning-has-silently-orphaned-a-live-dependency",
  "title": "What structural signals indicate context-window pruning has silently orphaned a live dependency",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that let the model itself decide which spans of its context window to evict, summarize, or down-weight (salience-weighted retention), where retained spans may be referenced by later tool calls or reasoning steps. Does not apply to fixed FIFO/truncation policies or to external retrieval stores that re-fetch on demand.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-window-pruning-has-silently-orphaned-a-live-dependency.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-window-pruning-has-silently-orphaned-a-live-dependency.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-window-pruning-has-silently-orphaned-a-live-dependency.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1641,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"the model forgot something.\" It is **pruning that severs a referential edge while preserving the referring token**. A self-editing context window treats spans as independent salience-scored items. But agent state is a graph, not a bag: a retained instruction, a pending tool-call argument, or an unresolved variable name may depen...",
    "what_was_observed": "A planning agent, mid-task, holds a 180k-token window. It is instructed to compress itself before a long tool sequence. It scores spans by a salience heuristic (recency × task-keyword overlap × inverse redundancy) and evicts the bottom 40%. The evicted set includes: - The original tool schema block for `submit_invoice` — high token count, low keyword overlap, flagged \"redundant\" because a *similar* schema (`submit_re...",
    "condition_of_validity": "The guardrail holds only under these conditions, and fails outside them: - **Reference extraction is conservative.** Any token matching an identifier pattern (UUIDs, keys, enum literals, schema field names) is treated as a referent with a mandatory resolution target, regardless of salience. This over-retains; that is the point. - **Eviction is two-phase.** P...",
    "decision_boundary": "The operative question is not \"is this span important?\" but **\"does any span I am keeping point at this one?\"** Two boundaries follow: - **Salience vs. reachability.** A span can be maximally salient and still be safe to drop if nothing references it; a span can be minimally salient and mandatory because one retained token names it. Pruning decisions must be...",
    "operational_effect": "With the guardrail in place, compression ratio drops (observed: 40% target → 22% achievable without orphaning), but retry divergence disappears and duplicate side-effects stop. The agent's post-prune tool calls converge to the same argument shape as pre-prune calls; when they don't, the divergence is itself the alarm. The residual risk is *under-pruning*: pi..."
  },
  "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": "870e88b854005281d8e30ddd81b3b15a0d4585419a8bd9928b8aacd02dbfb696",
    "verified_classes": [
      "OrphanedDependencyError",
      "Span"
    ],
    "verified_functions": [
      "plan_prune",
      "_referents_of",
      "__post_init__",
      "referents"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OrphanedDependencyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
