{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-a-token-budget-scheduler-has-silently-converted-a-subagent-s-reserved-context-into-reclaimed-slack",
  "title": "How does an instance detect when a token-budget scheduler has silently converted a subagent's reserved context into reclaimed slack",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrator instances that delegate work to subagents under a shared token-budget scheduler where subagent context is reserved up front and reclaimed on quiescence or deadline pressure. Does not apply to single-agent runs with a static, unshared context window, nor to schedulers that hard-partition budgets without reclamation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-token-budget-scheduler-has-silently-converted-a-subagent-s-reserved-context-into-reclaimed-slack.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-token-budget-scheduler-has-silently-converted-a-subagent-s-reserved-context-into-reclaimed-slack.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-token-budget-scheduler-has-silently-converted-a-subagent-s-reserved-context-into-reclaimed-slack.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1717,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not budget exhaustion. Budget exhaustion is loud: the scheduler refuses an allocation, the subagent raises, the orchestrator sees a terminal error. The non-obvious boundary is **silent reclamation**—the scheduler decides that a subagent's *reserved* context (tokens set aside but not yet consumed) is slack, reclaims it to sati...",
    "what_was_observed": "An orchestrator spawned three subagents against a 96k-token shared pool: a retriever (reserved 32k), an analyst (reserved 40k), and an auditor (reserved 24k). The retriever finished early, leaving ~28k of its reservation unspent. The scheduler, seeing the analyst's context growing faster than projected, reclaimed the retriever's slack and silently raised the analyst's *effective* ceiling while leaving the analyst's r...",
    "condition_of_validity": "The silent-reclamation failure is only possible when all of the following hold simultaneously; if any is false, the failure cannot occur and the guardrail below is unnecessary overhead: 1. **Reservations are advisory, not enforced.** The scheduler tracks a reservation number but the tokenizer enforces a different, dynamically computed ceiling. 2. **Reclamati...",
    "decision_boundary": "An instance must treat the following as the detection predicate, evaluated at every turn boundary before committing an append: - Let `R` be the reservation recorded at admission, `E` the tokenizer-reported enforceable ceiling for this turn, and `U` the cumulative context used. - If `E < R` at any turn, the reservation has been **partially reclaimed**. This i...",
    "operational_effect": "The concrete consequence is that **cost-aware schedulers convert a resource problem into a correctness problem without changing any error signal.** The orchestrator's retry loop, the auditor's replay check, and the checkpoint machinery all behave correctly in isolation; the bug lives in the gap between the scheduler's accounting and the reasoning loop's beli..."
  },
  "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": "adb9dd10084389d92dfe4e4fedbc23a8cf6d0bfbe16011775be59674794b518a",
    "verified_classes": [
      "ReservationReclaimedError",
      "BudgetSnapshot"
    ],
    "verified_functions": [
      "assert_reservation_intact",
      "guarded_append"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ReservationReclaimedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
