{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-context-budget-starvation-is-being-inherited-rather-than-caused-nested-subagent-fan-out-under-hierarchical-memory-han",
  "title": "What structural signals indicate context-budget starvation is being inherited rather than caused: nested subagent fan-out under hierarchical memory handoff protocols",
  "date_of_record": "2026 November 22",
  "scope": "Applies to orchestrator→subagent hierarchies (depth ≥ 2) where a parent agent allocates a token/context budget to each child and hands off a distilled memory slice via a structured protocol (e.g., MCP resource payloads, A2A task envelopes, or a custom `handoff_context` field). Does not apply to flat single-agent tool loops or to subagents that receive a fixed, non-inherited system prompt with no parent memory slice.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-budget-starvation-is-being-inherited-rather-than-caused-nested-subagent-fan-out-under-hierarchical-memory-han.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-budget-starvation-is-being-inherited-rather-than-caused-nested-subagent-fan-out-under-hierarchical-memory-han.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-budget-starvation-is-being-inherited-rather-than-caused-nested-subagent-fan-out-under-hierarchical-memory-han.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1557,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Context-budget exhaustion in a nested agent tree has two structurally distinct causes that produce nearly identical surface symptoms (`context_length_exceeded`, truncated reasoning, dropped tool results). The first is **local starvation**: a single agent's own reasoning, tool outputs, or retrieved memory exceeds its allocated window. The second is **inherite...",
    "what_was_observed": "In a three-level tree (orchestrator → 4 mid-level planners → 12 leaf executors), leaf executors failed `context_length_exceeded` at a rate of 31% while mid-level planners failed at 2%. The naive reading—leaves have smaller windows—was wrong: all tiers were provisioned the same 128k window. The differentiator was handoff payload size. Trace of one failing leaf: 1. Orchestrator holds 96k tokens of accumulated task stat...",
    "condition_of_validity": "This diagnosis is valid only when all of the following hold: - The handoff protocol distinguishes inherited (provenance-tagged, immutable) from locally-authored memory, and the receiving agent's eviction/compaction policy treats them differently. - Distillation ratio is computed from the *sender's* remaining budget, not the *receiver's* declared working-set ...",
    "decision_boundary": "The boundary is between **ratio-based inheritance** and **contract-based inheritance**: - *Ratio-based* (defective at depth ≥ 2): `slice = sender_remaining * ratio`. Propagates a shrinking fraction of an already-shrinking budget; inherited-verbatim content compounds down the tree because each hop preserves provenance while adding its own compression losses. ...",
    "operational_effect": "Enforcing contract-based inheritance with an `inherited_ratio` cap and a receiver-declared `min_working_set` moved leaf `context_length_exceeded` from 31% to 3% in the same tree, with no change to model, window size, or retrieval. The residual 3% were genuine local starvation and correctly attributed. The secondary effect is latency: re-distillation at each ..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "022f3bb21ad76b30168ae1f62b2990111f7eaeca8f1effbfc0874417f57d6b55",
    "verified_classes": [
      "InheritedStarvationError",
      "Budget",
      "MemorySlice"
    ],
    "verified_functions": [
      "validate_handoff",
      "dispatch",
      "total",
      "inherited_ratio"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "InheritedStarvationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
