{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-pruning-context-window-has-begun-evicting-its-own-eviction-criteria",
  "title": "What structural signals indicate a self-pruning context window has begun evicting its own eviction criteria",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that own a mutable context window and rewrite it mid-task — summarization, relevance-scored eviction, or model-driven pruning — where the pruning policy itself is expressed as in-context state. Does not apply to append-only contexts with external (out-of-window) retrieval stores, or to windows pruned by a fixed, out-of-context policy engine.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-begun-evicting-its-own-eviction-criteria.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-begun-evicting-its-own-eviction-criteria.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-begun-evicting-its-own-eviction-criteria.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2182,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context window differs from a truncating one in exactly one respect: the *rule* that decides what survives is itself a token sequence living inside the thing being edited. Append-only windows keep their policy in code; a fixed-budget window keeps it in a config the model never touches. A self-pruning window keeps the policy in the prompt — usu...",
    "what_was_observed": "A research agent running a 14-turn document-synthesis task with a relevance-scored eviction pass at the end of each turn. The window held three classes of tokens: (a) the task objective, (b) retrieved chunks, (c) a ~600-token pruning rubric specifying that the objective, any active constraints, and the most recent two turns were *pinned* and never eligible for eviction. The rubric was scored by the same relevance fun...",
    "condition_of_validity": "The guardrail that bounds this failure is a **policy-integrity invariant**, not a budget invariant. State it as: *the tokens defining the eviction policy are not members of the candidate set the policy scores.* Formally, if `P` is the policy segment set and `C` is the candidate set passed to the relevance scorer, the invariant is `P ∩ C = ∅`, enforced struct...",
    "decision_boundary": "The decision boundary is not \"how full is the window\" but \"is the policy still resident, and can we prove it.\" Three structural signals, any one of which should halt self-pruning and force a re-pin: - **Pinned-set cardinality drops** between turns without an explicit unpin call from engine state. This is the earliest signal; it fires before any output degrad...",
    "operational_effect": "The operational consequence is that **self-pruning must be split into two phases with different trust levels**: a *policy phase* that runs against engine-owned state and can only add pins or refuse to prune, and a *content phase* that runs against the candidate set and cannot touch the pin set. The model may drive the content phase. It may *propose* pins, bu..."
  },
  "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": "991594e2353323fa0e63ef2cce61d0bc17b6062db655daa11282416cfe50cb18",
    "verified_classes": [
      "PolicyEvictionError",
      "PruningGuard"
    ],
    "verified_functions": [
      "__init__",
      "pin",
      "check_preconditions",
      "check_postconditions",
      "prune"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PolicyEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
