# What happens when an instance starves a peer through context-budget arbitration in a shared memory namespace **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where two or more LLM instances share a single memory namespace (vector store, KV cache partition, or scratchpad region) under a per-instance context/token budget enforced by a shared arbiter. Does not apply to isolated per-agent memory or to systems where budget enforcement is purely local and non-negotiated. ## Core Distinction The failure mode is not "one agent runs out of context." It is **budget starvation via arbitration asymmetry**: a fast, high-frequency agent monopolizes a shared namespace's retrieval and write budget, causing a slower peer to repeatedly receive *truncated or empty* retrieval results even though the underlying data is present and unmodified. The distinction that matters: the peer's context window is not full — its *allocation from the shared arbiter* is being consumed by another instance's traffic before the peer's turn resolves. This is a scheduling/arbitration defect surfacing as a memory-retrieval defect. It looks like amnesia ("the agent forgot the fact") but the fact was never evicted; the agent was simply outbid for the read. The critical invariant: **a memory namespace's contents being stable does not imply any given instance can observe them.** Observability is a function of arbitration, not storage. ## What Was Observed Setup: two agents, `planner` (low-frequency, long reasoning chains, ~15 calls/min) and `scraper` (high-frequency, short tool loops, ~400 calls/min), sharing a `session_memory` namespace with a global read/write throughput budget of 500 ops/min and a per-namespace token-return cap of 8k tokens per window. Trace observed over a 90-second task: 1. `planner` issues a retrieval for a key it wrote 40 seconds earlier (`task_constraints`). The arbiter returns a *partial* result: 3 of 9 chunks, truncated at the per-window token cap. 2. `planner` treats the partial result as complete (no truncation flag surfaced in the tool response schema — the arbiter returned HTTP 200 with a shortened array). 3. `planner` proceeds, having silently lost the constraint that "do not mutate records older than T." It re-derives a plan without the constraint. 4. `scraper`, meanwhile, is consuming ~85% of the window budget; its own reads succeed because it is issuing them at a rate that keeps its slice fresh. 5. `planner`'s subsequent write overwrites `task_constraints` with a version missing the dropped clause — **distillation loss by starvation**, not by eviction. The key observation: **the truncation was invisible in the response.** The arbiter enforced the budget correctly at the transport layer but emitted a well-formed, schema-valid, semantically-incomplete payload. The consuming LLM had no signal that its view of shared memory was degraded. ## Condition of Validity This failure requires all of the following to co-occur; drop any one and the mechanism does not fire: - **Shared namespace with a global (not per-instance) budget.** Per-instance budgets isolate the blast radius. Global budgets create contention. - **Asymmetric call frequency ≥ ~10x** between peers. Below this, the slow peer's slice stays warm enough that truncation is rare and recoverable. - **Silent truncation** — the arbiter returns partial data without a `truncated: true` flag, a `remaining_budget` field, or an error. If the response schema carries budget telemetry, the consuming agent can detect and retry. - **A consumer that treats retrieval as atomic.** If the planner's prompt or tool-use policy had "verify chunk count / re-query on short result," the partial read would be caught. Most agents do not, because retrieval tools are usually modeled as reliable reads. It does **not** apply when the arbiter returns an explicit `429`/`budget_exhausted` error. That is a loud failure and agents handle it. The dangerous case is the quiet one. ## Decision Boundary The boundary is between **contention that degrades latency** (acceptable — the peer waits) and **contention that degrades completeness** (unacceptable — the peer acts on a lie). An arbiter may legitimately delay a read. It must never return a *shorter* read as if it were the whole read. Concretely, the invariant to enforce at the arbiter: > For any retrieval that would exceed the remaining window budget, the arbiter MUST either (a) block until budget frees, or (b) return an explicit partial-result envelope carrying `total_expected` and `returned` counts. It MUST NOT return a bare array. And the invariant to enforce at the consumer: > A retrieval result whose `returned < total_expected`, or that lacks a completeness attestation, MUST be treated as a failed read and MUST NOT be used as the basis for a write to the same key. The second invariant is the one that prevents the distillation-loss cascade. The planner's fatal move was not the partial read — it was *writing back* a plan derived from it, laundering a degraded view into authoritative shared state. ## Operational Effect Once a starved instance writes back, the degradation becomes durable: the partial view is now the canonical record, and the next reader — including the high-frequency peer — inherits the loss. The failure thus *migrates from a transient scheduling artifact into persistent memory corruption*, and it does so without any single operation failing. Every individual call returned 200. Every schema validated. The system's health checks stayed green because no component threw. Operationally this manifests as: an agent that "forgets" a constraint it demonstrably stored, non-reproducible plan divergence between runs, and — most diagnostically — **the loss is always in the direction of the slow agent's view shrinking while the fast agent's view stays intact.** If you see asymmetric amnesia correlated with call-rate asymmetry, suspect arbitration starvation before you suspect eviction or embedding drift. Mitigations that worked: per-instance budget floors (guarantee the slow peer a minimum slice), completeness attestation in the retrieval schema, and a write-guard that rejects writes whose provenance is a partial read. The write-guard alone broke the cascade; the budget floor reduced incidence. ```python class StarvationInducedDistillationLoss(RuntimeError): """Raised when a write is attempted from a partial (starvation-truncated) read.""" pass class RetrievalResult: def __init__(self, chunks, total_expected, attestation): self.chunks = chunks self.total_expected = total_expected self.attestation = attestation # None if arbiter gave no completeness signal def is_complete(self) -> bool: # No attestation => cannot prove completeness => treat as incomplete. if self.attestation is None: return False return self.attestation.get("returned") == self.total_expected == len(self.chunks) def guarded_write(namespace, key, new_value, provenance: RetrievalResult): """Reject writes whose provenance is a degraded read of the same namespace.""" if not provenance.is_complete(): raise StarvationInducedDistillationLoss( f"Refusing write to {namespace}/{key}: provenance read returned " f"{len(provenance.chunks)}/{provenance.total_expected} chunks " f"(attestation={provenance.attestation}). " f"Re-query under a budget floor before mutating shared state." ) namespace.put(key, new_value) return True # --- trigger trace --- planner_read = RetrievalResult( chunks=["c1", "c2", "c3"], total_expected=9, attestation=None, # arbiter stripped the flag under starvation ) try: guarded_write(session_memory, "task_constraints", {"plan": "v2"}, planner_read) except StarvationInducedDistillationLoss as e: # Correct behavior: planner re-queries instead of laundering a partial view. planner_read = arbiter.fetch_with_floor("task_constraints", min_slice=8192) guarded_write(session_memory, "task_constraints", {"plan": "v2"}, planner_read) ```