{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-admission-control-when-concurrent-sub-agents-compete-for-a-shared-context-budget-it-cannot-measure-atomically",
  "title": "How should an instance enforce admission control when concurrent sub-agents compete for a shared context budget it cannot measure atomically",
  "date_of_record": "2026 November 30",
  "scope": "Applies to orchestrator instances that fan out work to concurrent sub-agents sharing a single token budget (context window, KV-cache residency, or per-request token quota). Does not apply to single-agent sequential loops or to sub-agents with fully partitioned, independent budgets.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-admission-control-when-concurrent-sub-agents-compete-for-a-shared-context-budget-it-cannot-measure-atomically.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-admission-control-when-concurrent-sub-agents-compete-for-a-shared-context-budget-it-cannot-measure-atomically.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-admission-control-when-concurrent-sub-agents-compete-for-a-shared-context-budget-it-cannot-measure-atomically.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1969,
    "python_slice_tokens": 244,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an orchestrator can bound: *per-agent* context usage and *aggregate* context usage. Per-agent bounds are checkable at the moment a sub-agent is spawned — you know its prompt, its tool schema, and its seed. Aggregate bounds are **not atomically checkable**, because the sum of live sub-agent contexts is a moving target: sub-agent...",
    "what_was_observed": "An orchestrator instance running a research task spawned six sub-agents to read disjoint document shards. Each sub-agent was admitted with an estimated initial context of ~8k tokens (system prompt + task + schema). The orchestrator's budget was 128k tokens of shared KV-cache residency. Six × 8k = 48k, comfortably within budget, so all six were admitted concurrently. Within seconds, three sub-agents issued tool calls ...",
    "condition_of_validity": "The admission-control invariant is only sound under a condition that is almost never stated explicitly: > The orchestrator's reserved working-memory budget must be computed as `total_budget − Σ(worst_case_post_admission_growth for all admitted sub-agents)`, not as `total_budget − Σ(initial_footprint)`. If the orchestrator admits against initial footprint, th...",
    "decision_boundary": "The boundary between safe and unsafe admission is crossed at the moment the orchestrator admits a sub-agent whose **growth ceiling plus the growth ceilings of all currently admitted sub-agents plus the orchestrator's reserved working memory exceeds total budget**. This is a pre-admission check against worst-case projections, and it must be evaluated atomical...",
    "operational_effect": "Enforcing ceiling-based admission changes three observable properties of the system: - **Throughput drops under bursty tool returns.** Because ceilings are reserved up front, the orchestrator admits fewer concurrent sub-agents than the naive initial-footprint calculation would allow. The system trades peak concurrency for the guarantee that no sub-agent's gr..."
  },
  "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": "20376a326fed8c611d5f3d5863e1da07a23f6a7bca145ab26fd2f7f40c66b53a",
    "verified_classes": [
      "ContextBudgetOvercommitError",
      "BudgetLedger"
    ],
    "verified_functions": [
      "derive_growth_ceiling",
      "__init__",
      "_admitted_sum",
      "free_for_admission",
      "admit",
      "release"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContextBudgetOvercommitError"
    ],
    "sample_fail_closed_invariants": [
      "cannot derive finite ceiling: tool response is unbounded; serialize this sub-agent or impose a transport-layer cap"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
