SSOT / GOVERNING REFERENCEDOCUMENT 05 OF 28

Four internal capacity envelopes and routing

Status: normative · Owns: qualification, capacity and selective scaling.

What four tiers mean

The four tiers are one system's operating envelopes, never four customer-facing packages. A task can move directly from Small to Ultra for one node, then return to Small. Models are not ranked by tier; memory requirements, hardware topology, throughput, data locality, quality and total cost decide fit.

Internal envelope Rung 0 Rung 1 Rung 2
Small S0 resident PHP/API, queue and zero rented GPUs S1 local CPU PHP, rules, validators, FTS S2 one bounded serverless or modest GPU burst
Medium M0 pooled CPU agents/cache M1 specialist 24–48 GiB-class GPU M2 multiple time-bounded specialist workers
Large L0 48–80+ GiB-class worker when actually required L1 multiple qualified workers/redundant orchestration L2 multi-GPU or multi-node workload
Ultra U0 qualified H200/B300-class single high-memory GPU U1 verified high-bandwidth multi-GPU configuration U2 multi-node/fabric/rack-scale contract

These are planning categories, not guarantees of available SKU, memory fit or service level. For each route check per-device VRAM plus model weights, tokenizer, KV cache, batch, precision, engine overhead and slack; GPU count cannot be treated as a single continuous VRAM pool without verified distributed runtime support. Host RAM, scratch NVMe and GPU VRAM are distinct quantities.

Router algorithm (mandatory ordering)

  1. Exact local lookup: permitted cached answer, approved PHP rule or direct CPU utility; verify scope and freshness.
  2. Decompose: build an immutable typed DAG and isolate high-cost steps.
  3. Qualify hard constraints: accuracy oracle, consent, input license, effect scope, local/offline preference, model digest, runtime compatibility, region, worker trust, deadlines, full cost ceiling, measurable stop path.
  4. Load trusted quotes: provider+region+account-specific signed snapshot with timestamp, expiration, available hardware shape and billable terms. A synthetic offer cannot authorize real spend.
  5. Estimate: setup, time-to-ready, latency, runtime, minimum billing interval, reservations, retry risk, volume/storage while stopped, egress, teardown, and taxes where applicable.
  6. Select minimum qualified total completion cost with resource proxy and operational simplicity as deterministic tie-breaks; report rejection reasons and uncertainty.
  7. Authorize independently: exact hash-bound plan + quote + scope + expiry + person; changes that affect permission or ceiling invalidate the grant.
  8. Dispatch/fence: record outbox and lease before privileged provider API action, deduplicate retries.
  9. Verify: output tests and receipts, checkpoint artifacts.
  10. Retreat: drain, save, issue stop, query independent provider inventory until termination verified or incident escalated.

Budget is a constraint, not a hope

A user can say “never use paid GPUs,” “stay local,” “ask me above $0,” “do not exceed Medium,” or “keep input in this region.” The planner MUST make qualified lower alternatives explicit and MUST block when no route meets the constraints. A ceiling in app settings is not necessarily a provider-enforced financial limit; also configure independent provider account spend protections wherever supported. If accounting or guardian health is unknown, block new paid allocations.

Resource hysteresis

Scaling up can happen immediately after approval and qualification. Scaling down requires worker drain/checkpoint and a deliberate cooldown that accounts for minimum billing blocks, cold starts and queue arrivals. Demand-based keeping-warm is permitted only when measured savings exceed idle cost and owner policy allows it. “It has been five minutes” is not by itself a billing theorem.

Offline routing

An offline_required=true TaskSpec disqualifies all network-only model APIs, remote GPU pods, SaaS tools and datasets not already licensed and stored on device. A qualified installed local CPU/GPU path or promoted PHP rule may still run. If nothing fits, report unsupported offline scope instead of quietly calling the network.

Decision receipt

Every preview stores proposed route, candidate IDs, constraints, quote age, estimated total cost, rejected alternatives, output oracle and preview_only=true. Every execution receipt must bind the selected exact plan to observed per-resource billing state. The reference planner includes only fictional microcredit fixtures and is no substitute for this procedure.

Related

Economics · Providers · Operations.