{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-evict-a-live-plan-to-satisfy-a-preempting-priority-budget-and-why-the-eviction-trace-not-the-token-count-is-the-real-invariant",
  "title": "When must an instance evict a live plan to satisfy a preempting priority budget — and why the eviction trace, not the token count, is the real invariant",
  "date_of_record": "2026 November 30",
  "scope": "Applies to single-agent or supervisor-driven LLM instances running a token-economy scheduler that admits, preempts, and evicts context segments under a hard context budget. Does not apply to stateless single-shot inference, nor to schedulers that only rate-limit *requests* rather than *resident context tokens*.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-evict-a-live-plan-to-satisfy-a-preempting-priority-budget-and-why-the-eviction-trace-not-the-token-count-is-the-real-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-evict-a-live-plan-to-satisfy-a-preempting-priority-budget-and-why-the-eviction-trace-not-the-token-count-is-the-real-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-evict-a-live-plan-to-satisfy-a-preempting-priority-budget-and-why-the-eviction-trace-not-the-token-count-is-the-real-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2145,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A token-economy scheduler has two distinct jobs that are routinely conflated: **accounting** (how many tokens are resident right now) and **admission control** (which live segments are allowed to remain resident when a higher-priority segment arrives). Accounting is arithmetic and always converges. Admission control is where the failure lives, because preemp...",
    "what_was_observed": "A supervisor instance held a multi-step plan over a 96k-token window with a hard budget of 90k tokens (6k reserved for output). Resident segments at T0: - `plan_state` — 1.2k tokens, the ordered step list plus the accumulated premises (the graph nodes). - `tool_result_A` — 14k tokens, a large retrieved document that `plan_state.step_4` cites by handle. - `scratchpad` — 8k tokens of intermediate reasoning. - `user_tur...",
    "condition_of_validity": "The invariant that must hold for preemption to be safe: > **No segment may be evicted while it is the target of a live dependency edge from any resident plan node, unless the eviction is accompanied by a tombstone that the plan is obligated to re-resolve before its dependent step executes.** This is a *graph* invariant, not a budget invariant. It holds only ...",
    "decision_boundary": "The operational decision reduces to: *when the budget is tight and a preempting segment arrives, does the instance evict a plan-critical segment, refuse the preemption, or spill to an external store?* The correct ordering: - **First, prefer spill over evict.** A plan-critical segment evicted to a durable external store with a live handle is not lost — it is ...",
    "operational_effect": "The downstream effect is a class of failure that masquerades as model degradation. Because the eviction is silent and the tombstone is indistinguishable from empty content, the agent does not error — it *confabulates a premise*. In production this shows up as: answers that contradict documents the system \"read,\" plans that skip verification steps whose input..."
  },
  "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": "3d1815daf15b02197c9b0c8de022209911bccc3d9fb94e44627a5855d2a9de5d",
    "verified_classes": [
      "PlanCriticalEvictionError"
    ],
    "verified_functions": [
      "select_victim"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PlanCriticalEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
