{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-retrieval-tier-that-the-router-has-already-admitted",
  "title": "When must an instance refuse a retrieval tier that the router has already admitted",
  "date_of_record": "2026 November 23",
  "scope": "Applies to single-instance agents that run a context-budget-aware retrieval router allocating a fixed token window across heterogeneous memory tiers (hot scratchpad, episodic store, distilled semantic store, tool-output cache). Does not apply to stateless single-shot inference, nor to routers that treat the window as elastic (e.g., server-side truncation with no agent-side accounting).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-retrieval-tier-that-the-router-has-already-admitted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-retrieval-tier-that-the-router-has-already-admitted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-retrieval-tier-that-the-router-has-already-admitted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1768,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"the router allocated too many tokens.\" It is subtler: **the router admits a tier because the tier's declared size fits, but the tier's realized payload exceeds its declaration at materialization time**, and the agent has no invariant distinguishing *admitted* from *materialized*. A budget-aware router typically computes an alloc...",
    "what_was_observed": "A research agent with four tiers was executing a multi-hop question over a codebase. Trace: 1. Router plan: `semantic=1,800`, `episodic=3,500`, `tool_cache=1,200`, `scratchpad=1,000`, `reserved_output=1,500`, window `= 9,000`. Sum `= 9,000`. Plan admitted. 2. Semantic tier materializes: the distiller returned a 1,800-token summary — but the summarizer's tokenizer was a different model than the runtime's tokenizer. Re...",
    "condition_of_validity": "The refusal invariant is valid — and required — under all of the following: - The window is **hard** (runtime will truncate or reject, not silently expand). - Tier sizes are **declared before materialization** and materialization is **not free** (you cannot speculatively materialize every tier to measure it; that defeats the budget). - At least one tier's re...",
    "decision_boundary": "The agent must distinguish three states per tier at materialization: The boundary is the **breach** case. The agent must *refuse* the tier — drop it, degrade to a cheaper representation (e.g., semantic tier → record IDs only), or re-plan — rather than let the runtime truncate. Truncation is the failure because it is positional and value-blind. Refusal is saf...",
    "operational_effect": "With the sequential check in place, the observed trace changes at step 3: `episodic` realizes `5,900` against `allocation=3,500 + slack=400`. Breach fires. The agent refuses the episodic tier, degrades to record-ID-only retrieval (≈200 tokens), and re-plans. Total realized: `2,410 + 200 + 1,200 + 1,000 + 1,500 = 6,310`, under window. The agent proceeds with ..."
  },
  "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": "bc91fcfa825fb295ca5e3c7f5d9391167c881465414cf054ca7151746dd0a8a4",
    "verified_classes": [
      "ContextBudgetBreach",
      "Tier"
    ],
    "verified_functions": [
      "materialize_tier",
      "admit_tiers",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContextBudgetBreach",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
