{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-preempt-a-low-priority-sub-agent-to-preserve-a-shared-context-budget-and-why-does-cooperative-yielding-always-arrive-too-late",
  "title": "When must an instance preempt a low-priority sub-agent to preserve a shared context budget, and why does cooperative yielding always arrive too late?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to orchestrators that fan out concurrent sub-agents sharing a single upstream context/token budget under static or priority-weighted allocation, where sub-agents call tools that emit unbounded output. Does not apply to per-agent isolated budgets, hard-capped tool outputs, or single-agent sequential execution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-preempt-a-low-priority-sub-agent-to-preserve-a-shared-context-budget-and-why-does-cooperative-yielding-always-arrive-too-late.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-preempt-a-low-priority-sub-agent-to-preserve-a-shared-context-budget-and-why-does-cooperative-yielding-always-arrive-too-late.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-preempt-a-low-priority-sub-agent-to-preserve-a-shared-context-budget-and-why-does-cooperative-yielding-always-arrive-too-late.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2019,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **budget accounting** and **budget enforcement**. Most orchestrators account correctly: they track a token ledger, assign each sub-agent a priority-weighted share, and decrement on every tool result appended to the shared window. What they fail to do is *enforce* the ledger at the moment of append. The invariant that b...",
    "what_was_observed": "A three-way fan-out: a `planner` (priority 10, reserved floor 40% of budget), a `retriever` (priority 5, floor 20%), and a `summarizer` (priority 1, floor 0%, best-effort). The orchestrator allocated 40/35/25 with a 10% slack buffer, and every agent was instrumented to call `check_budget()` before each tool invocation and yield if its projected next call would exceed its share. The trace that broke it: 1. All three a...",
    "condition_of_validity": "The preemption requirement holds — and cooperative yielding is insufficient — precisely when all three of the following are true: - **Tool output size is not bounded by the request.** If every tool result is capped (e.g., hard truncation at the transport layer), the pre-call projection is a valid upper bound and cooperative yield is sound. The failure requir...",
    "decision_boundary": "The decision boundary is not \"high priority vs. low priority.\" It is **whether the low-priority agent is currently inside a commit that can breach a higher-priority floor, or merely holding an allocation it has not yet committed.** - If the low-priority agent holds *reserved but uncommitted* allocation, the orchestrator may reclaim it cooperatively — signal ...",
    "operational_effect": "The architectural invariant that must be enforced is a **commit-time admission gate**, not a pre-call budget check: 1. **Reserve at plan, admit at commit.** Allocations are reservations. The shared window only accepts an append if, after the append, every in-flight higher-priority agent's floor remains satisfiable. The gate is evaluated *at append time*, und..."
  },
  "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": "068cc48b7ffe5353250175a155e4c176322c7931b585eab30160b3fc253df880",
    "verified_classes": [
      "FloorBreachPreemptionRequired",
      "BudgetLedger"
    ],
    "verified_functions": [
      "on_tool_result",
      "__init__",
      "register",
      "dispatch_liability",
      "clear_liability",
      "_floor_breach_if_committed",
      "admit_commit"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "FloorBreachPreemptionRequired"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
