{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-pruning-context-agent-has-silently-orphaned-a-live-dependency-during-turn-eviction",
  "title": "What structural signals indicate a self-pruning context agent has silently orphaned a live dependency during turn eviction",
  "date_of_record": "2026 November 28",
  "scope": "Applies to single-agent loops that own a mutable working-memory buffer and perform autonomous pruning/compaction of prior turns (summarization, eviction, invariant-summary rewriting) between tool calls. Does not apply to append-only context windows, external retrieval stores the agent cannot mutate, or multi-agent handoffs where the buffer is owned by an orchestrator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-agent-has-silently-orphaned-a-live-dependency-during-turn-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-agent-has-silently-orphaned-a-live-dependency-during-turn-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-agent-has-silently-orphaned-a-live-dependency-during-turn-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2137,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *stale content* and *orphaned dependency*. Stale content is a turn whose informational value has decayed: a superseded intermediate result, a resolved sub-question, a redundant restatement. Orphaned dependency is a turn whose *referential* value has decayed to zero in the agent's salience model but whose *binding* value is still...",
    "what_was_observed": "A planning agent executing a multi-step data-reconciliation task maintained a 40-turn buffer with an auto-prune policy triggered at 70% context saturation. At turn 31 it recorded a tool result establishing a pagination cursor and a schema version: At the saturation trigger before turn 32, the pruning pass scored each turn against the active goal (\"reconcile row mismatches\"). Turn 27's tool result scored low — it was ...",
    "condition_of_validity": "This failure mode is bounded and predictable under the following jointly-necessary conditions: 1. **The buffer is mutable by the agent itself.** If pruning is performed by an external controller with a fixed policy, the orphan risk exists but is not the agent's invariant to maintain. 2. **Pruning decisions are made on a relevance score that is independent of...",
    "decision_boundary": "The operational line is between **relevance-scored eviction** and **reachability-aware eviction**. A pruner may use any relevance model it likes for ranking *candidates*, but the final eviction set must be filtered by reachability: a candidate is evictable only if its removal leaves every surviving reference resolvable, either directly or through a promoted ...",
    "operational_effect": "The observable signature of this failure is *clean traces with divergent state*. Every tool call succeeds; every HTTP status is 2xx; the agent's narration is coherent and confident. The divergence lives entirely in the gap between what the agent believes it is referencing and what it is actually passing. This makes it invisible to standard observability — yo..."
  },
  "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": "c46d22bab4748912628af5ee1a314e0649614badde4dfdd7f31a589ce344dc14",
    "verified_classes": [
      "OrphanedReferenceError",
      "Turn",
      "WorkingMemory"
    ],
    "verified_functions": [
      "prune",
      "resolver_depth",
      "commit_eviction"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OrphanedReferenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
