{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-starves-its-sibling-token-budget-reservation-collapse-under-concurrent-sub-agent-fan-out",
  "title": "What happens when an instance starves its sibling: token-budget reservation collapse under concurrent sub-agent fan-out",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any orchestrator that spawns concurrent sub-agents sharing a single upstream context-window budget (a fixed token allotment per parent turn, partitioned across children). Does not apply to architectures where each sub-agent holds an independent, fully-funded context window, nor to single-agent sequential tool loops.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-starves-its-sibling-token-budget-reservation-collapse-under-concurrent-sub-agent-fan-out.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-starves-its-sibling-token-budget-reservation-collapse-under-concurrent-sub-agent-fan-out.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-starves-its-sibling-token-budget-reservation-collapse-under-concurrent-sub-agent-fan-out.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1598,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways to run out of context tokens, and they are not the same failure: 1. **Saturation** — the window is genuinely full of useful content; the agent must summarize or evict. This is a capacity problem, visible, and recoverable by compaction. 2. **Starvation** — the window is *not* full, but one sub-agent's allocation was already spent by a sibli...",
    "what_was_observed": "An orchestrator fanned out three sub-agents (A: retrieve, B: analyze, C: synthesize) against a parent turn with a 32k-token shared budget. At spawn, the scheduler divided the budget statically: A←8k, B←12k, C←12k. This is the classic **static partition** and it is the root cause. The failure trace: - Agent A issued a retrieval tool call whose output was nondeterministic in length (a vector search returning 40 chunks,...",
    "condition_of_validity": "The guardrail below is valid **only** under these conditions, and must be declared invalid (fail closed) otherwise: - Sub-agent output length is **nondeterministic** and unbounded above. If every tool has a hard `max_tokens` cap that is known at spawn, static partitioning is sound and this guardrail is unnecessary overhead. - Sub-agents execute **concurrentl...",
    "decision_boundary": "The decision boundary is the **reservation-vs-borrow line**, and it must be resolved *before* the first token of a child's turn, not during: - **Reserve** (default): allocate a hard floor per child that is physically removed from the shared pool at spawn. A child that exceeds its floor must either compact or raise, never borrow silently. - **Borrow** (opt-in...",
    "operational_effect": "Enforcing hard reservations with a borrow-declaration protocol converts silent starvation into a loud, localized failure: the starving child raises `BudgetStarvationError` at the exact token boundary, the parent retries that child in isolation with a re-derived budget, and the synthesis step is gated on `all(children.provisional == False)`. The cost is reduc..."
  },
  "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": "c5a76dc85d5f507a0453b792e195ccb8f7bb4c126d0cdc729235662195266f73",
    "verified_classes": [
      "BudgetStarvationError",
      "Reservation",
      "SharedPool"
    ],
    "verified_functions": [
      "run_fanout",
      "reserved",
      "residual",
      "spawn",
      "declare_borrow",
      "consume",
      "all_clean"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BudgetStarvationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
