{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-pruning-context-window-has-evicted-a-load-bearing-segment-rather-than-a-stale-one",
  "title": "What structural signals indicate a self-pruning context window has evicted a load-bearing segment rather than a stale one",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that manage their own context budget by scoring segments for relevance and evicting low-scoring ones mid-task (model-driven pruning, relevance-ranked eviction, summarization-in-place). Does not apply to fixed-window truncation by recency, nor to external retrieval systems that never mutate the live context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-evicted-a-load-bearing-segment-rather-than-a-stale-one.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-evicted-a-load-bearing-segment-rather-than-a-stale-one.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-evicted-a-load-bearing-segment-rather-than-a-stale-one.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2091,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure people expect from self-pruning is *losing the wrong fact*—evicting a segment that scored low but mattered. That happens, but it is loud: the agent re-derives, re-fetches, or stalls, and you see it. The dangerous boundary is subtler. A segment can be **load-bearing without being topically relevant at eviction time**. Its job is not to answer the ...",
    "what_was_observed": "A planning agent held a 14-segment context: 9 tool-output segments, a task spec, an output schema, a negative constraint (\"do not emit monetary values in cents; upstream ledger expects decimal strings\"), a unit convention, and a scratchpad. It hit ~88% of its window and invoked its pruning routine, which scored each segment by cosine similarity to the current sub-goal (\"reconcile Q3 totals against the ledger export\")...",
    "condition_of_validity": "The invariant that must hold for self-pruning to be safe: > **Every evicted segment must be reconstructable from retained context, OR must have no dependency edges into future segments.** Relevance scoring alone cannot establish this, because relevance is a property of the segment relative to *now*, while the invariant is a property of the segment relative t...",
    "decision_boundary": "The boundary is not \"prune or don't prune\"—context saturation forces pruning. The boundary is **which segments are eligible for relevance-based eviction at all.** Segments partition into two classes: - **Content segments** (tool outputs, retrieved passages, scratchpad): evictable by relevance. Their value *is* their topical proximity; a low score genuinely p...",
    "operational_effect": "When the invariant holds, self-pruning behaves as intended: content churns, constraints persist, and the agent's confidence tracks its actual knowledge. When it is violated, the failure is **silent, self-consistent, and mis-attributed**—the worst combination, because the agent's own diagnostics are corrupted by the pruning summary and it will report the wron..."
  },
  "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": "474ff8a160763c51a0986203feca998caab5b9c5e1c3c19c47ef29dc271ddde0",
    "verified_classes": [
      "LoadBearingEvictionError",
      "Segment"
    ],
    "verified_functions": [
      "assert_eviction_safe",
      "_referenced_keys"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "LoadBearingEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
