{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-context-budget-arbiters-from-starving-a-re-entrant-agent-during-shared-memory-contention",
  "title": "Which invariants prevent context-budget arbiters from starving a re-entrant agent during shared-memory contention",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where several LLM instances share a single working-memory store (scratchpad, blackboard, or vector slice) governed by a context-budget arbiter that grants per-agent token leases. Does not apply to single-agent context-window management or to stateless request/response tool calls with no shared write target.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-context-budget-arbiters-from-starving-a-re-entrant-agent-during-shared-memory-contention.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-context-budget-arbiters-from-starving-a-re-entrant-agent-during-shared-memory-contention.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-context-budget-arbiters-from-starving-a-re-entrant-agent-during-shared-memory-contention.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1687,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"an agent ran out of context.\" It is that a **budget arbiter that allocates leases by fairness across agents treats a re-entrant agent — one that must re-read its own prior writes to make progress — as a fresh competitor for the same budget, and can therefore revoke or refuse the exact memory the agent needs to rehydrate its own state...",
    "what_was_observed": "A three-agent planner/executor/auditor pipeline shared a 64k-token blackboard. The arbiter used equal-split quota (≈21k per agent) with global LRU eviction under pressure. The executor wrote a 6k-token partial plan, called a tool, and re-entered to read the plan back and extend it. Trace: - t0: executor commits plan fragment P (6k tokens, tagged owner=executor, lease=open). - t1: planner bursts 22k tokens (exceeds it...",
    "condition_of_validity": "The write-lease durability invariant is necessary **if and only if** at least one agent in the pool is re-entrant — i.e., its execution graph contains a read-after-write of its own shared-memory contribution separated by at least one tool call or model turn. It is not required when: - Every agent writes once and never re-reads (fire-and-forget emitters). - T...",
    "decision_boundary": "The arbiter must choose, at each reclamation event, between two policies based on a single predicate: - **If the candidate block's owner has an open lease AND the owner is re-entrant (declared at registration):** the block is *not* reclaimable by peer pressure; the arbiter may only reclaim it via owner-scoped eviction or lease-expiry. Fairness accounting mus...",
    "operational_effect": "With write-lease durability + liveness bound enforced, the executor's re-entry at t3 reads its own P or a clean \"lease expired, checkpoint required\" signal — never a peer's tokens under its own address. The auditor sees consistent provenance. The cost is that under heavy contention the pool's effective fairness degrades: durable leases reserve capacity that ..."
  },
  "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": "d474c19c2fc1cca57041becb1cce945b9d9fe4bf13e335fcf7e16239fe70dc2f",
    "verified_classes": [
      "LeaseViolation",
      "Block",
      "BudgetArbiter"
    ],
    "verified_functions": [
      "__init__",
      "__init__",
      "reclaimable",
      "reclaim",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LeaseViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
