{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-the-context-budget-as-a-partitioned-allocation-with-pinned-floor-reservations-rather-than-a-single-fungible-token-pool",
  "title": "How should an instance treat the context budget as a partitioned allocation with pinned floor reservations rather than a single fungible token pool",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent instance that assembles a single prompt from four heterogeneous sources—system instructions, episodic/semantic memory, tool schemas, and retrieved evidence—before a reasoning turn. Does not apply to fixed-prompt single-shot classification where no memory or retrieval is injected.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-the-context-budget-as-a-partitioned-allocation-with-pinned-floor-reservations-rather-than-a-single-fungible-token-pool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-the-context-budget-as-a-partitioned-allocation-with-pinned-floor-reservations-rather-than-a-single-fungible-token-pool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-the-context-budget-as-a-partitioned-allocation-with-pinned-floor-reservations-rather-than-a-single-fungible-token-pool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1853,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"context overflow.\" Overflow is loud: the tokenizer errors, the request rejects, the operator sees a 400. The failure mode that matters is **silent partition starvation**—the case where total token count remains comfortably under the window limit while one partition (almost always retrieved evidence, occasionally tool schemas) has bee...",
    "what_was_observed": "A research agent with a 32k window and a persistent semantic memory store. Assembly order was: system prompt → distilled memory → tool schemas → retrieved evidence, each appended until the running total approached a soft cap, at which point the *current* partition was truncated to fit. Over a 40-day operating period, mean system prompt grew from 1,100 to 3,400 tokens (guardrail accretion), distilled memory from 900 t...",
    "condition_of_validity": "The partition-starvation failure requires all of: 1. **Sequential assembly with tail truncation.** Partitions are appended in a fixed order and the last one absorbs all slack. If assembly is order-independent or truncates proportionally, the failure changes shape (you get uniform quality loss instead of partition death). 2. **Monotonic growth in at least one...",
    "decision_boundary": "The invariant an instance must hold: **reserve floors before granting growth.** Concretely, for a window of size `W`, define per-partition floors `f_sys`, `f_mem`, `f_tools`, `f_evid` such that `Σf ≤ W − safety_margin`, and enforce that no partition may consume tokens reserved for another partition's floor. Growth in one partition must be paid for by *explic...",
    "operational_effect": "With floors enforced and distillation capped, the same agent over the next 30 days held evidence utilization at 0.77–0.80 while memory grew to its `f_mem` ceiling and *stayed there* (distillation compressed harder as the cap bound). Tool schema growth was absorbed by a schema-pruning step that dropped unused tools at the floor boundary. The observable effect..."
  },
  "matched_failure_symptoms": [
    "SQLITE_BUSY_OR_DEADLOCK"
  ],
  "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": "abe537ac99da3a5a1fc3e8965c371da4870f4bad08167666708453e422c917f4",
    "verified_classes": [
      "ContextPartitionStarvation"
    ],
    "verified_functions": [
      "assemble_context",
      "distill_memory"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ContextPartitionStarvation"
    ],
    "sample_fail_closed_invariants": [
      "evidence partition starved below floor; refusing to answer"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
