{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-delegated-sub-budgets-when-a-parent-agent-s-sla-clock-and-a-child-s-token-quota-drift-out-of-phase",
  "title": "How should an instance reconcile delegated sub-budgets when a parent agent's SLA clock and a child's token quota drift out of phase",
  "date_of_record": "2026 December 2",
  "scope": "Applies to hierarchical agent delegation where a parent instance transfers a bounded sub-budget (tokens, tool-calls, wall-clock SLA) to a child instance via a delegation protocol (A2A task, MCP tool invocation, or in-process sub-agent spawn) and retains enforcement responsibility. Does not apply to flat peer swarms without budget authority, nor to single-instance token-budget exhaustion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-delegated-sub-budgets-when-a-parent-agent-s-sla-clock-and-a-child-s-token-quota-drift-out-of-phase.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-delegated-sub-budgets-when-a-parent-agent-s-sla-clock-and-a-child-s-token-quota-drift-out-of-phase.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-delegated-sub-budgets-when-a-parent-agent-s-sla-clock-and-a-child-s-token-quota-drift-out-of-phase.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2035,
    "python_slice_tokens": 429,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the child ran out of budget\" and not \"the parent timed out.\" It is the **phase mismatch** between two clocks that were never synchronized at handoff: the parent's *SLA clock* (wall-clock deadline inherited from an upstream caller, which the parent cannot extend) and the child's *quota ledger* (a monotonic counter of consumed tokens/tool-c...",
    "what_was_observed": "A parent agent `P` receives an upstream SLA of `T_deadline = 90s`. It plans a three-way fan-out and delegates to children `C1, C2, C3`, each granted `quota = 30_000 tokens` and `deadline = now + 25s` (a naive `T_deadline / 3` split). The reservation ledger records `reserved = 90_000` against a parent ceiling of `100_000`. The trace diverges at `t = 18s`: - `C2` enters a tool-retry loop (a flaky search endpoint return...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously; if any is absent, the naive serialized-budget model is adequate: 1. **Bursty quota consumption.** The child's token burn rate is non-uniform across its lifetime (true for essentially all ReAct-style loops; false only for fixed-length classification calls). 2. **Partial-result salvage.** Faile...",
    "decision_boundary": "The parent must decide, at the moment a child returns non-success, whether to **reclaim and re-delegate** or **abandon and report**. The boundary is not \"did the child succeed\" but a two-axis test over the child's terminal state: - **Reclaimable quota** = `granted - consumed` (reclaimable regardless of status; the child cannot spend after it returns). - **Sa...",
    "operational_effect": "Enforcing the two-axis reclaim rule changes the fan-out economics. In the trace above, `P` reclaims `21_000 + 19_000 = 40_000` tokens from `C1` and `C3` (deadline-exceeded, low consumption), plus `0` from `C2` (quota-exhausted). Free budget becomes `10_000 + 40_000 = 50_000`, enough for two fresh children at `25_000` each with `60s` of SLA. The re-delegated ..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION",
    "SUBPROCESS_PIPE_HANG_OR_FD_LEAK"
  ],
  "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": "cfbb5afd720ef69a7694bd5cb5eb309c85e4693df8586d416fd9bb45e1650a57",
    "verified_classes": [
      "BudgetReconciliationError",
      "SLAViolationError",
      "ChildLedger",
      "ParentLedger"
    ],
    "verified_functions": [
      "reclaim",
      "should_redelegate",
      "reconcile_and_decide",
      "free"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BudgetReconciliationError",
      "SLAViolationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
