{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-context-budget-exhaustion-as-a-retrieval-arbitration-failure-rather-than-a-truncation-event",
  "title": "Under what conditions must an instance treat context-budget exhaustion as a retrieval-arbitration failure rather than a truncation event",
  "date_of_record": "2026 November 24",
  "scope": "Applies to stateful agent instances that assemble a single context window from three competing producers—vector retrieval, episodic/semantic memory recall, and live tool-call results—within one reasoning loop. Does not apply to stateless single-shot completions or to systems with an external, lossless scratchpad that survives context eviction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-context-budget-exhaustion-as-a-retrieval-arbitration-failure-rather-than-a-truncation-event.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-context-budget-exhaustion-as-a-retrieval-arbitration-failure-rather-than-a-truncation-event.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-context-budget-exhaustion-as-a-retrieval-arbitration-failure-rather-than-a-truncation-event.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2002,
    "python_slice_tokens": 363,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"the context window filled up.\" That is a truncation event, and truncation is observable, monotonic, and recoverable: you drop the oldest tokens, log the drop, and continue. The failure that matters is **silent arbitration starvation**—a state in which one producer (almost always live tool results) consumes the budget incremen...",
    "what_was_observed": "A research agent running a multi-hop investigation loop (search → fetch → synthesize → search again) over 14 turns. Each turn assembled context in the order: (1) memory recall, (2) vector retrieval over the document store, (3) live tool results from the current turn. A shared 32k-token budget with no per-producer reservation. Trace of the collapse: - **Turns 1–4:** Tool results averaged ~2k tokens. Retrieval allocate...",
    "condition_of_validity": "The starvation failure is only diagnosable—and only preventable—under these conditions, and the guardrail below is only valid when all hold: 1. **Producers share one budget and are assembled in a fixed order** with live tool results last (or with a recency-priority sort). If producers have independent budgets, this failure cannot occur and the guardrail is u...",
    "decision_boundary": "The boundary is between **allocation starvation** and **genuine retrieval miss**. Both present as \"the fact I needed wasn't in context.\" The instance must distinguish them before acting, because the remedies are opposite: starvation requires re-allocation and re-retrieval; a genuine miss requires a new query or a new source. Decision rule: - If `retrieval_ch...",
    "operational_effect": "Once arbitration is made explicit, three behaviors change: 1. **The ratchet is broken.** A single oversized live tool result can no longer permanently starve retrieval, because the floor is reserved before the greedy fill and the oversized result is spilled to external scratchpad rather than allowed to displace the floor. The turn-5 dump becomes a pointer, n..."
  },
  "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": "9412c5a6cff7285079caf344574a325596ce921add2bfd89da0ba1537ff3b0b6",
    "verified_classes": [
      "ContextArbitrationError",
      "Allocation",
      "BudgetPolicy"
    ],
    "verified_functions": [
      "arbitrate",
      "classify_miss"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContextArbitrationError"
    ],
    "sample_fail_closed_invariants": [
      "retrieval below k_min without budget pressure: allocator failed to invoke retriever (indistinguishable from poisoned no-"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
