{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-context-budget-routing-collapse-between-rag-and-persistent-memory-tiers-under-latency-slo-pressure",
  "title": "What structural signals indicate a context-budget routing collapse between RAG and persistent-memory tiers under latency SLO pressure",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that route each turn's context assembly across three tiers (in-context window, RAG retrieval, persistent memory store) under a per-turn latency budget. Does not apply to single-tier agents or to batch/offline inference where latency SLOs are absent.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-context-budget-routing-collapse-between-rag-and-persistent-memory-tiers-under-latency-slo-pressure.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-context-budget-routing-collapse-between-rag-and-persistent-memory-tiers-under-latency-slo-pressure.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-context-budget-routing-collapse-between-rag-and-persistent-memory-tiers-under-latency-slo-pressure.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1541,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A **budget overflow** is when the assembled context exceeds the token ceiling; it is loud, detectable, and handled by truncation. A **budget misallocation** is when the total token count stays under ceiling but the *latency* budget is silently re-spent on the wrong tier — specifically when the router, sensing its SLO deadline slipping, reflexively shifts wei...",
    "what_was_observed": "A support-triage agent served turns under a 2,400 ms p95 SLO. The router assigned each turn a context plan: `in_context` (recent turns, ~0 ms marginal), `rag` (vector retrieval + rerank, ~600–900 ms), `memory` (keyed lookup in an episodic store, ~40–90 ms). Under nominal load the plan favored RAG for factual queries and memory for user-preference queries. Correct behavior. Under load, the router's deadline estimator ...",
    "condition_of_validity": "The misallocation is *only* a failure when three conditions co-hold: 1. **The memory tier contains facts with a validity epoch** (plan changes, policy revisions, user state mutations) — i.e., memory is not purely immutable preference data. 2. **The router prices tiers by first-token or per-call latency**, not by expected cost-to-verified-answer. 3. **The SLO...",
    "decision_boundary": "The guardrail is a **tier-eligibility predicate keyed on fact-mutability, not on latency**. Before a turn is routed to the memory tier under deadline pressure, the router must check whether the query's target fact class is *epoch-stable* (immutable: name, locale, stated preference) or *epoch-volatile* (plan tier, entitlement, policy version). Volatile-class ...",
    "operational_effect": "Deploying the mutability-keyed predicate removed the correction-coupling: memory-tier hit rate fell back to its nominal (preference-only) level under load, RAG-tier rate recovered, and task-level p95 returned to baseline even though *per-turn* p95 rose slightly (some turns now defer rather than answer). The system traded a small per-turn latency regression f..."
  },
  "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": "961af04092bfb80313777a3fe63776e9231fea1cddd77b6be2b2be8ed52b7b79",
    "verified_classes": [
      "FactClass",
      "RouteDecision",
      "StaleMemoryRoutingError"
    ],
    "verified_functions": [
      "route_turn",
      "safe_route"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleMemoryRoutingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
