# What structural signals indicate context-budget arbitration failure under concurrent subtask preemption **Date of Record:** 2026 November 27 **Scope:** Applies to single-agent orchestrators that fan out concurrent subtasks sharing one finite context window (or one token-metered KV budget) and preempt low-priority subtasks to admit high-priority ones. Does not apply to per-subtask isolated context pools, nor to stateless single-turn inference where no preemption occurs. ## Core Distinction The failure is not "running out of context." Running out of context is a clean, observable terminal state: the allocator refuses admission and the caller gets a hard rejection it can retry or degrade against. The boundary failure examined here is **silent partial preemption under a soft budget**: the arbiter reclaims context from a running low-priority subtask by truncating or evicting its middle-history to make room for a high-priority subtask, but does *not* signal the preempted subtask that its working set changed. The preempted agent resumes with a coherent-looking but semantically broken history and continues executing against it. The distinction that matters operationally: **budget exhaustion is a control-plane event; preemption-induced history mutation is a data-plane event that the control plane fails to propagate.** An agent can detect the former trivially and cannot detect the latter without an explicit invariant. ## What Was Observed A three-way fan-out (subtasks A: long retrieval synthesis, priority 2; B: policy check, priority 1; C: user-facing draft, priority 0) shared a 128k-token window with a soft watermark at 90%. Sequence: 1. A admitted at t0, consumed 61k tokens of accumulated tool output (chunked document reads) plus 4k of its own reasoning trace. 2. C admitted at t1, consumed 38k. Window at 103k / 128k. 3. B admitted at t2 (priority 1 preempts A). Arbiter needs ~14k for B's system prompt plus expected tool round-trips. Only ~25k headroom before hard limit. 4. Arbiter reclaims from A by evicting the *oldest non-system* messages in A's history — specifically the first 22k tokens of chunked document reads — and inserts a single synthetic `[context compacted]` marker. A's own most recent reasoning trace, which referenced specific chunk IDs (`doc-14:¶3`, `doc-14:¶4`), is left intact. 5. A resumes at t3. Its next tool call is `cite(chunk_id="doc-14:¶3")`. The chunk is gone. The tool returns a valid-looking citation object because the citation registry is external to context; the *content* the model would have quoted is not in its window. 6. A produces a synthesis paragraph that is fluent, correctly cites `doc-14:¶3`, and asserts a claim that was in `doc-14:¶4` — which A can no longer read. The claim is fabricated relative to the source, not relative to A's citation metadata. The structural signal: A's *self-report of confidence* was unchanged across preemption (0.81 before, 0.79 after). The model had no representation of "my evidence base was truncated." The compaction marker was in its context but the marker carried no inventory of what was lost. ## Condition of Validity This failure mode is bounded by three conditions; the guardrail below is only correct when all three hold: - **Preemption is non-signaling at the subtask boundary.** If the arbiter delivers an explicit `PreemptionEvent{evicted_span, surviving_span, lost_entities}` into the subtask's next turn, the subtask can re-fetch. The failure requires that the only artifact of preemption is a generic compaction marker. - **The subtask's external references (citation IDs, file handles, tool result hashes) survive eviction while the referents do not.** This is the crux: if eviction also invalidated the reference registry entries, the subtask's next tool call would hard-error and the failure would be loud. The silent case is exactly when references outlive referents. - **The subtask is mid-reasoning, not mid-tool-call.** A subtask parked at a tool-call boundary can be safely compacted because its next action is a fetch. A subtask parked *after* a fetch, mid-synthesis, holds derived state (the reasoning trace) that depends on evicted evidence. Preemption between fetch and synthesis is the danger window. If any condition fails, the failure either cannot occur or surfaces as a detectable error. The dangerous configuration is the conjunction. ## Decision Boundary The arbiter faces a binary at preemption time, and the wrong branch is the default: - **Branch 1 (safe, expensive):** Refuse preemption of A; queue B until A reaches a tool-call boundary or checkpoints. Cost: latency for B, possible deadline miss. - **Branch 2 (unsafe, cheap):** Preempt A immediately by evicting oldest history. Cost: silent synthesis corruption in A. The non-obvious part: the arbiter's cost model almost always prefers Branch 2 because the *expected* cost of Branch 2 is computed as "A loses some context and re-fetches," which assumes A can detect the loss. The correct cost model must include the probability that A *does not* detect the loss and emits a confidently-cited fabrication, weighted by the downstream cost of that fabrication surviving verification. For synthesis subtasks whose output feeds a user-facing draft, that downstream cost dominates, and Branch 1 is correct despite the latency. The decision rule: **preempt only at tool-call boundaries; if no boundary is available within the deadline slack, treat the preemption as a subtask abort with explicit re-admission, not a history mutation.** Abort-and-readmit is loud; mutate-and-resume is silent. ## Operational Effect Without the boundary rule, the system exhibits a specific signature: **citation-valid, content-fabricated outputs concentrated in subtasks that were preempted between fetch and synthesis.** The signature is invisible to per-subtask confidence scoring (unchanged), invisible to citation linters (references resolve), and visible only to a verifier that re-fetches the cited span and checks entailment against the subtask's output. The invariant required is: > A subtask's evidence set is a first-class object. Preemption may not shrink the evidence set without invalidating every derived reference to the removed evidence. Either the references die with the referents, or the subtask is aborted and re-admitted with a fresh evidence set. The guardrail is an evidence-set version stamp: each subtask carries `evidence_version`; preemption that evicts evidence bumps the version and marks all prior derived citations `stale`. The subtask's next emission is rejected by the orchestrator if it cites a `stale` reference without re-fetch. This converts the silent data-plane failure into a loud control-plane rejection at the emission boundary — the earliest point where the corruption is detectable. ```python class StaleEvidenceReference(RuntimeError): """Raised when a subtask cites evidence evicted by preemption.""" pass class EvidenceSet: def __init__(self): self.version = 0 self.live = set() self.stale = set() def add(self, ref): self.live.add(ref) def evict(self, refs): for r in refs: if r in self.live: self.live.discard(r) self.stale.add(r) self.version += 1 class PreemptibleSubtask: def __init__(self, name, evidence): self.name = name self.evidence = evidence self.parked_at_boundary = False def preempt(self, evict_refs): # Boundary invariant: only compact at a tool-call boundary. if not self.parked_at_boundary: raise StaleEvidenceReference( f"subtask {self.name}: preemption attempted mid-synthesis; " f"abort-and-readmit required, not history mutation" ) self.evidence.evict(evict_refs) def emit_citation(self, ref): if ref in self.evidence.stale: raise StaleEvidenceReference( f"subtask {self.name}: citation {ref} refers to evicted evidence " f"(evidence_version={self.evidence.version}); re-fetch required" ) if ref not in self.evidence.live: raise StaleEvidenceReference( f"subtask {self.name}: citation {ref} never loaded" ) return f"cite({ref})" def arbitrate(subtask, evict_refs, at_boundary): subtask.parked_at_boundary = at_boundary subtask.preempt(evict_refs) # Post-preemption emission is gated by the stale-reference check. return subtask.emit_citation(evict_refs[0]) # Trace: subtask A mid-synthesis, arbiter tries to evict doc-14:¶3 a = PreemptibleSubtask("A", EvidenceSet()) a.evidence.add("doc-14:¶3") try: arbitrate(a, ["doc-14:¶3"], at_boundary=False) except StaleEvidenceReference as e: print(f"loud rejection: {e}") # converts silent corruption to control-plane event ```