{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-s-context-budget-is-arbitrated-by-wall-clock-timeouts-rather-than-token-accounting-in-a-shared-subagent-workspace",
  "title": "What happens when an instance's context budget is arbitrated by wall-clock timeouts rather than token accounting in a shared subagent workspace",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrator patterns where multiple subagents share a single mutable workspace (filesystem, scratchpad, or message bus) and each subagent receives a bounded context window plus a wall-clock deadline. Does not apply to single-agent sequential pipelines or to subagents with fully isolated, copy-on-write workspaces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-context-budget-is-arbitrated-by-wall-clock-timeouts-rather-than-token-accounting-in-a-shared-subagent-workspace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-context-budget-is-arbitrated-by-wall-clock-timeouts-rather-than-token-accounting-in-a-shared-subagent-workspace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-context-budget-is-arbitrated-by-wall-clock-timeouts-rather-than-token-accounting-in-a-shared-subagent-workspace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent budgets in a shared subagent workspace: the **token budget** (how much the model can read and emit before truncation) and the **wall-clock budget** (how long the orchestrator waits before reclaiming the slot). These are usually treated as interchangeable throttles. They are not. Token budget is consumed monotonically by *content*; w...",
    "what_was_observed": "A three-stage pipeline (research → synthesize → verify) ran over a shared scratchpad. Each stage was a subagent with a 90-second wall-clock deadline and a 32k token window. The synthesize agent produced a structured JSON document in the scratchpad. Under nominal load it finished in ~40s. Under retrieval contention (the research agent's embedding queries still draining), synthesize's tool calls stalled and it crossed ...",
    "condition_of_validity": "The failure requires all of the following to co-occur; remove any one and the pipeline is safe: 1. **Shared mutable workspace** where subagents read peers' outputs directly, not via a brokered message that carries producer metadata. 2. **Wall-clock arbitration** of the write slot, where deadline expiry triggers a graceful-but-silent close (the `try/finally` ...",
    "decision_boundary": "The boundary is not \"should we use wall-clock timeouts\" — we must, because a hung subagent is worse than a truncated one. The boundary is **what the timeout is allowed to do to shared state**. - **Below the boundary (safe):** wall-clock expiry aborts the writer, the writer's partial output is quarantined to a per-writer staging area, and the shared workspace...",
    "operational_effect": "The practical consequence is that **wall-clock budget and token budget must be reconciled at the promote step, not at the reaper.** Concretely: - Every shared-workspace write carries a completion witness written last: a terminal record containing the producer's declared item count and a hash over the emitted items. The reaper, on expiry, does not promote; it..."
  },
  "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": "adbfaa51978e40bbe7e8d19646f04ffe007e0a8cf05b1ce5728e4bf87c482430",
    "verified_classes": [
      "TruncationDetected",
      "CompletionWitness",
      "StagedArtifact"
    ],
    "verified_functions": [
      "_hash_items",
      "promote_to_shared_workspace",
      "verify_against_task_spec"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TruncationDetected"
    ],
    "sample_fail_closed_invariants": [
      "writer was reclaimed by wall-clock reaper before promote; artifact must not enter shared namespace",
      "no completion witness written; artifact is a prefix of unknown length",
      "hash mismatch: artifact content diverges from producer's declared output"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
