{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-arbitrates-context-budget-across-subagents-that-share-a-single-working-memory-window",
  "title": "What happens when an instance arbitrates context budget across subagents that share a single working-memory window",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrator instances that multiplex several concurrent subagents into one shared, token-bounded working-memory region (a single context window or a single KV-cache budget) and must partition that budget at runtime. Does not apply to architectures where each subagent owns a private, independently sized context and only exchanges distilled messages.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-arbitrates-context-budget-across-subagents-that-share-a-single-working-memory-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-arbitrates-context-budget-across-subagents-that-share-a-single-working-memory-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-arbitrates-context-budget-across-subagents-that-share-a-single-working-memory-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1912,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways to give N subagents \"memory\": *isolated budgets* (each subagent has its own window; cross-talk is via explicit messages) and *shared budget* (all subagents read and write one token pool). The shared-budget design is attractive because it lets subagents see each other's intermediate state without a serialization round...",
    "what_was_observed": "A three-subagent pipeline (retriever, synthesizer, verifier) shared a 32k-token window. Each subagent appended to a common scratch region and read peers' latest entries. Under light load this was stable. Under load, the following trace recurred: 1. Retriever accumulated ~14k tokens of raw chunks. Synthesizer held ~9k of draft. Verifier held ~6k of check log. Total ~29k of 32k, leaving ~3k headroom. 2. The orchestrato...",
    "condition_of_validity": "The arbitration invariant holds only when all three of the following are true: - **Measurement is non-destructive.** The allocator can inspect per-subagent holdings without those holdings being evicted to make room for the inspection. In practice this requires either (a) an out-of-band accounting structure (a token ledger maintained by the runtime, not by th...",
    "decision_boundary": "The boundary between safe and unsafe operation is not a token count; it is whether **arbitration cost is charged to the pool it arbitrates.** Define: - `H` = true headroom = `window − sum(live holdings)` - `A` = tokens required to perform one arbitration pass (rules + allocation table + the summaries it must read) If `A < H`, arbitration is self-funding and ...",
    "operational_effect": "Consequences that must be designed around once this boundary is understood: - **Misallocation is silent and propagates as confident error.** Unlike an out-of-memory crash, the failure surfaces as a verifier that \"found no evidence\" or a synthesizer that \"chose the wrong source.\" Downstream agents cannot distinguish eviction-induced amnesia from genuine absen..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "ba90d088490dc58075e92bae1b0fb0fb7364b7e2decdd7e50d2a8022ffa652be",
    "verified_classes": [
      "ArbitrationDeficitError",
      "Subagent",
      "SharedWindow"
    ],
    "verified_functions": [
      "headroom",
      "arbitrate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ArbitrationDeficitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
