# Design status: implementation, evidence and remaining gaps Review date: 2026-11-29, after `542d8ac9b`; runtime evidence spans several committed trees. This review replaces the obsolete 11-21/22 status, not `docs/design.md`, the paper, benchmark settings or README. The active work order and test checkpoints are in `docs/todo.md`. The review uses source and existing receipts only. No new GPU scene or measurement was run for it. The previously queued short-request run finished before the review instruction: `bench-short-requests-modelos-1795965106505733299`. Its result is included, not rerun. Old statements that composition only runs in host tests, no MTP round exists, policies cannot load, or copy channels have never carried a copy are no longer accurate. Conversely, host fixtures and readable short outputs do not establish general design completion. ## 1. Conformance to every design section | Design section | Current implementation and evidence | Remaining gap, why it remains, and general remedy / todo | |---|---|---| | §1 Goal and performance bar | All named model families have serving receipts. Some current results are worse than approved historical headline numbers. | A successful short request is not performance parity or full-context success. Earlier work followed individual failing scenes; source parity labels were mistaken for execution parity. Keep function, coverage and performance separate; items 18/19 after the design work. | | §2 Workload semantics | Image, Instance, Request, Work, Step, Object, KV reservation and Version are real runtime objects in `os/engine/objects.rs`, `os/engine/step.rs`, `os/memory/state/`. | No new process abstraction is needed. Training has object/Step lifetimes (`os/engine/training.rs`) but no end-to-end forward/backward/optimizer serving workload; do not describe it as implemented training. | | §3 No Linux, one Rust core | The guest uses the retained Linux early boot, Rust owner/runtime, polled NVMe/NIC, its own TCP, and original vendor CPU/GPU kernels. Python is build/evaluation code. | No contrary runtime Linux dependency was found in these paths. This does not mean no C/vendor ABI remains. Resource supervision outside the guest must still cover its real memory footprint. | | §4 Activation is a Step | Body loads, DMA upload, Code and Resources use the activation Step and common owner, for native/graph and retained wakes. `os/engine/image_activation/owner/` retains deferred admissions instead of losing their tickets. | One activation Step still traverses costly serial CPU preparation and per-copy binding. Count-8 spends 42–43 s per Flash activation; nominal unification did not remove repeated work. Cache immutable layout/module facts, make retries idempotent, and pipeline dependencies within the same ownership model; items 4/18. | | §5.1 Tokens catching up; capacity and row admission | Capacity reservation is separate from `policy::step_plan`, `prefill_quantum`, row batching and cancellation. The 27B mixes decode with prompt work and chunks logical prompts at 8192 rows over physical 2048-row waves. | Function exists, but owner CPU preparation and GPU execution are mostly serial at continuation boundaries. B128 admission does not imply B128 execution. Schedule from ready work/capacity, not scene-specific batch assumptions; items 3/14. | | §5.2 Two Program producers | Capture and composition both run on the GPU. `os/model/graph.rs::compose`, `models/src/flash/arch.rs`, `models/src/qwen3/arch.rs`, hybrid graph/lowerers and vocabulary emit the original registered kernels. Flash function job R-F below completes five requests. | Composition is no longer host-only. The common composer emits selected segments, but a handwritten runtime phase machine repeatedly records and submits them. Capture and composition do not yet have equivalent execution envelopes. Prepare reusable complete straight-line Programs, with only genuine routing/data rendezvous exposed; items 4/4c/9b. | | §5.3 Small Step descriptor, rows as data | Native dense execution posts one complete forward Program. Flash and hybrid MTP retain one logical Step while discovering and appending more nodes (`model::Runtime::continue_round`). | One logical Step is **not** one GPU submission/fence. Flash pays 249–371 staged submissions on decode and more on large prefill. Retaining serial identity and final Commit solved lifetimes, not the execution-granularity requirement. Lower graph regions to retained Programs and dependencies instead of returning to the CPU after every phase; items 4c/9b/18. | | §5.4 Image-declared Join | `os/model/join.rs` defines Declaration, Resident/Probe/Scan and versioned policy tables. Flash architecture/vocabulary and activation bind the actual keys, source assignments and Join bank; `prompt.rs::join_plan` consumes them. | The declaration is present, contrary to the old table. Source acquisition, group scheduling and advancement remain Flash-specific. A policy destination is not a mapped/fenced source; lower that lifecycle once in the common mechanism without moving policy into it; items 5/9b. | | §5.5 Versions and Commit(n_keep) | `os/memory/state/commit.rs`, hybrid `qwen3/execution/mtp.rs`, `qwen3_5/rounds.rs` and Flash native Commit graphs run target/draft/verify, accepted-prefix promotion and Version publication. MTP has GPU/coherent-text evidence, not merely a planned draft recipe. | MTP is implemented. Its target/prime/draft passes still cause CPU/fence round trips and delay publication of an already available answer. GDN mutates canonical state in place: validation/cancel failure quarantines the retained owners rather than recovering the preceding Version (`execution/mod.rs`). This is safe retention, not the full shadow/rollback semantics; correct that contract before batching. FP32 MTP beta versus ordinary BF16 decode is a documented source difference, not a license to promise identical text. Items 12/14, not “implement MTP from zero.” | | §5.6 One object memory/tier service | Expert residency/cache geometry, copy and source slots are under `os/memory/tier/{resident,placement,migration,seed}.rs`; `prefix.rs` owns saved-state movement. The common object ledger charges VRAM and RAM. | Expert plan/fill and prefix transfer are still distinct controllers above the ledger. KV physical extents can split **within one tier**, but `state/kv.rs::reserve_from` tries whole VRAM then whole RAM. Cross-VRAM/RAM serving stalled in an earlier receipt and was withdrawn; unused VRAM beside RAM KV remains possible. Finish the general range/Mapping/attention contract before restoring mixed-tier placement; items 6/13. | | §5.6 Prefix granularity | Hybrid state saves at proved consumed positions; final saves exclude an unconsumed sampled token. Dense append-only KV can project prompt_len−1 without forcing a one-row tail Step. Flash has conversation cut/running-state slots rather than one global checkpoint bank. | The 11-28 delta-growth fix already retains the held extents and reserves only added bytes when a whole replacement cannot fit (`Resources::reserve_extension`, `KvBacking::adopt`). A fixed snapshot's recurrent prefix can still be several GB; extent limits, same-tier restrictions and snapshot/activation costs remain. `Store` may hold shadows/copy loans through terminal publication. General projection/ownership is present but costs and fragmentation remain; items 10/13/18. | | §5.7 Policies write tables | Placement/adaptation/draft, batching, VRAM/RAM budget, KV heat and runlist scheduling use policy tables. `Instance::policy_round` feeds the retained model's Join/source facts into a loaded policy. | Equal-share floors, in-share-first wake order, drain-worth decisions and `owner_loop` pacing are specific policies dispersed across budget/lifecycle/dispatch; not all are replaceable through one loaded table. They are not memory-safety invariants. A table-driven interface alone does not prove useful simultaneous scheduling. RQ3 receipts often have only one business Instance Ready. Preserve policy/mechanism separation and record actual runnable contenders at the batch checkpoint; items 1/2/3/7/14. | | §5 Per-model code | Architecture graphs and a common walker exist. Each family still supplies graph construction, vocabulary/kernel ABI and model-specific state semantics. `models/src/activation.rs::FACTORY` dispatches native hybrid versus dense and explicitly treats a graph Image as Flash. | `tools/arch` already independently lowers library torch.export/FX graphs to MOSARC01 and builds CPU binding candidates; those generated descriptors are not the installed runtime graph. A new checkpoint of a supported family can be data; an unknown architecture still needs linked Rust Factory/vocabulary/runtime code. Phase orchestration is much larger than declarative architecture data. The missing work is real generated-operation binding, dtype/state/source ownership and runtime installation using the existing compiler/Trace-definition direction (quotes471–472), plus reducing family-specific orchestration; item 4. | | §5 Runtime extension | `policy/loaded.rs` really loads ET_DYN through `elf_loader`; `/modelos/control/policy-object/` attaches it between Flights. It can write placement/Join, draft, plan and route tables. Image activation loads its supplied kernel modules. | The old “three compiled policies only” claim is false. Arbitrary new architecture/vocabulary code cannot be installed merely by uploading a model; the policy ABI has explicit bounded geometry and no arbitrary imports. General architecture/kernel registration and a compatibility contract remain item 4a/4. Do not confuse diagnostic profile reset with kernel installation. | | §5 Original kernels | Composition binds original SGLang/vLLM/Strata/ggml kernels and their ABI variants; this review proposes no kernel or fusion. | Keep arithmetic and ABI variation separate from runtime lifecycle changes. A graph composer is not permission to write replacement GPU kernels. | | §5 Hardware mechanisms | Current wiring and limits are in the hardware table below. | Several mechanisms exist but have narrower hardware evidence than their source interfaces suggest. Item 7 requires qualified evidence, not another wholesale implementation. | | §6 Key models and global scope | Solo Flash, 27B full-context progression and mixed-model short coherent outputs exist. Dynamic versus fixed budgets and scheduling controls have raw results, including failures. | Long requests and model-copy activation still miss deadlines; large count-8 never leaves setup. These receipts do not prove the full multi-model SLO thesis. General activation, tier placement and execution fixes come before further workload-specific attainment tuning; items 18/19 and frozen RQ1. | | §7 Engineering and order | One checkout/build, original raw receipts, per-increment commits. | Historical “all gaps closed” and per-change full-suite/GPU loops obscured the open execution gaps and repeatedly exercised the same failure. Quotes 508–510 replace that practice: review first, focused tests, then batch checkpoints. No new optimization patch accompanies this review. | ### Correspondence with the serving execution design The serving migration in `docs/design.md` §5 retains the existing OS object, activation, budget and device ownership contracts. The table lists what can already be used and what the migration must still establish. R0–R4 are implementation stages. The observations in the rest of this file retain their original source and receipt boundaries. | Design contract | Existing path and gap | Where to close it | |---|---|---| | §5.2 Prebuilt Program and one compute launch per serving Step | Capture and composition are both wired. The dense native paths have a complete forward Program, and `e4048e537` extends drained encoding reuse. Flash and hybrid MTP still need owner continuation for some data-dependent stages. | C1 architecture, C2 recording and C3 launch define a common retained artifact. R1 starts with dense paths. R2 and R3 retain unsupported MTP and Flash paths while the original operation capability is established. Record A (no owner rebuild, rerecord or resubmit) and B (one compute submission with declared dependencies) separately per shape, with actual owner round trips and compute submissions. | | §5.3 Prepare N+1 during N | The execution owner holds the working descriptor and state writer until drainage. Existing Copy and worker Ops already have distinct fences. | C3 and C4 separate known preparation from seal. At R1 prove that N+1 can prepare its charged slot while N retains the actual reader, scratch and writer. Check overlap on an existing batch scenario only at the main checkpoint. | | §5.1 Shared token budget | `step_plan` and `prefill_quantum` already mix work. Native MTP reports distinct logical chunk, physical wave and verifier capacities. | C4 allocates known and proposal rows once and C8 binds the resulting per-pass plan. R1 covers dense frames. R2 tests mixed prefill, decode and MTP row geometry. | | §5.5–6 State, KV pages and radix | Same-tier extents, delta growth, stable virtual ranges and prefix objects are present. Mixed-tier native serving and recovery from in-place hybrid writes remain open. | C5 delivers page, prefix and state writer contracts. C7 uses the resulting layout facts. R2 checks accepted-prefix Commit, real restoration or retained quarantine and actual tier occupancy. | | §5.7 Load-sensitive speculation | Existing target/draft/verify and acceptance paths work. A full verifier already suppresses proposals without rows. Some promotion operands are chosen from host-read results. | C4 writes per-Request advice and row allocations. C8 binds original production operators. R2 separates current answer completion from future drafts where the state contract permits and retains the original MTP path for shapes still missing B. A declared worker-driven promotion Move can meet B within the same fence cycle. | | §5.4–6 Expert tier, split and prefetch | Existing tier slots and the captured Walk supply the source-worker protocol. The composed path still reads routes and rebuilds each expert group after its source has fenced. Its resident-only branch can already consume device-written tables. | R3 combines resident regions first, then covers known-source Probe and dynamic Probe with declared worker/COPY dependencies. C6 supplies `ExpertRequirements` for the C7 grant and leases the granted slots for each Step. Test actual source and consumer drainage. Record the PCIe table, tail-skip and landed replacement mechanisms separately from A and B. R0–R2 proceed independently. | | §4 Lifecycle and global budget | Room deferral, original activation tickets, extent-aware placement and shared memory accounting are in use. Code, upload and resource preparation still have separate stage contracts. | C7 folds duplicate demand calculation into one resource plan through the original pipeline. R0 checks compatible room/activation facts. Later batches retain established wake and shared-serving behavior. | The C6 audit distinguishes the composed function receipt `bench-flash-sharegpt-1client-function-1795948944506396681` (`0abf7b946`, 227 composed retirements) from the captured receipt `bench-flash-sharegpt-1client-1795321136837267736` (`df97fc5c`, 265 captured checks). The captured receipt exercises the existing Walk and tail skip. The composed receipt records a PCIe placement setting and still uses group staging. It does not establish use of the captured second table or landed replacement on that path. Standard B remains to be demonstrated for the complete composed Step. The design's sequence governs consolidation. Remove duplicate frame, phase, state and source handling only after each supported path uses an equivalent shared mechanism. The current misses, setup failures and partial receipts remain measured at their original source. The design revision supplies no new measurements. ### Retained native hybrid shapes, 2026-11-30 | Shape | A: owner replay | B: one compute submission | Evidence boundary | |---|---|---|---| | MTP decode with all 16 Request slots, one uncached input each | Implemented: the complete target is recorded once and later Steps only stage metadata and bind the retained template, including each Request temporal-history COPY destination. | Implemented: one target compute Program; full target occupancy has no proposal rows and the original policy runs no prime/draft passes. | Kernel library compilation only. GPU correctness and performance remain unverified. Attention uses the original valid-mask split launch at its declared capacity. Shared Channel views retain the original Context initialization commands. | | MTP decode with spare proposal rows, cached accepted outputs, an incomplete target batch | Unmet: target/prime/second still use owner continuation. | Unmet: acceptance, promotion and draft metadata need the declared CPU peers and retained pass bindings. | C3 CPU peer support is available; model-side registration and data lifetime migration remain. | | Hybrid chunked prefill | Unmet: physical prompt fragments still use owner continuation. | Unmet: target/prime dependencies are not yet one retained Program. | Existing prompt behavior is retained; no new acceptance evidence. | ### Hardware: implemented is different from exercised | Mechanism | Source and actual status | Evidence limit / next general checkpoint | |---|---|---| | Direct channels, GPFIFO, semaphores | `os/gpu/channel.rs`, execution/device ports and Step tickets are in all successful model runs. | Native one-Program execution works; Flash's many host round trips do not become a device chain merely because every stage has a semaphore. Wait lowering (`gpu/waits.rs::apply`, which turns a side-effect-free wait into device semaphore acquires patched into a published Program) has no production caller: it needs the Program publication path (`gpu/program/sequence.rs`) to pass it the cut list, QMD stride and signal storage for each graph. | | Multiple copy engines | `gpu/device/channels.rs::take_copy`, activation `owner/copies.rs`, prefix movement and Flash copy pool retain original COPY4/COPY5 contexts; `Pass::free_copy` now feeds `copy_table.preferred`. | `ROLE_COPY_OVERLAP posted`/`collected` evidence exists, with differing coverage across receipts. Posting beside compute proves submission overlap; it does not prove whole-round fill/compute overlap. | | Runlist priority and CTA preemption | `policy/schedule.rs`, `owner_loop::schedule_plan`, bootstrap execution/preemption and acknowledged schedules are connected. Cargo ablations select their recorded tables. | RQ3 default/off receipts below do not establish two concurrent business contenders; no hardware scheduling gain can be attributed from those points. | | Large pages, BAR and polled NVMe | Page-table leaves, BAR mapping and the common disk queues are used. | NVMe peer-to-peer is unavailable in the VFIO/KVM configuration; do not report the implemented peer API as a measured direct disk-to-VRAM path. `disk/peer.rs::PeerDma` (BAR Window bus mapping and the `Visibility` fence trait) and `tests/disk_peer.rs` are present, but the boot and Step disks still build `NvmeBlockQueue` with the RAM-only mapper and no production `Visibility` exists. Wiring needs a platform where the NVMe can reach the BAR Window, a `Visibility` built on the owner's GPU channel fences, and a Move whose destination is VRAM. | | Replayable GPU faults | `gpu/device/events.rs` drains the ring; `image/activation/resources.rs` lays out an optional declared tail; owner/lifecycle route and replay it with `demand-faults`. | Default runs do not enable that feature. Hybrid recurrent-prefix layouts fall back to fully backed state (`Layout::within`); the existence of a tail test is not full-context hybrid first-touch qualification. | | Access counters / KV heat | GPU event drain feeds `memory/access.rs` and `policy/kv.rs`; cold-idle park selection reads the heat table. | Heat currently ranks whole idle Instances rather than producing a per-KV-block tier migration table. No selected receipt here establishes a real nonzero notification-to-useful-eviction benefit. Do not label that absence “the ring is unwired”; item 7 needs a bounded batch checkpoint if still material. | | CPU workers and waits | Polled descriptor rings and platform waits are connected; shared AP registrations were fixed in `75186fe94`. | The prior second-Instance State refusal is crossed by count-4 bindings. It does not prove all long requests meet their deadlines. | ## 2. Execution structure and avoidable complexity **Flash's main structural gap.** `models/src/flash/runtime/prompt.rs` owns an Inputs/Prelude/Route/GroupSource/GroupGpu/CpuSource/CpuCompute/Tail/Commit/MTP phase machine. `continue_prompt` first reclaims the drained Program, then records the next segment through the common composer. The runtime contract explicitly calls `continue_round` only when current appended nodes have completed. This preserves one logical Step and a final state publication, but serializes many independent, statically known launch sequences through host decisions. Readable text and tests of each segment did not remove this gap. Route/source readiness sometimes genuinely needs a rendezvous; embedding, attention subsegments and adjacent original kernels do not each require a CPU recompile/fence. General fix: retain a graph-region recipe, keep row/maps as data, chain original kernels/copies with device dependencies, and return to the owner only where new routing/source facts are actually required. **Composition and capture must remain two producers, not two engines.** `flash/program.rs` and the graph lowerers share recording infrastructure, but captured-window and composed runtime state machines still diverge in scheduling and retained scratch. Do not delete the captured producer just because composed text works, or recapture another workload to mask the gap. A common Program/patch-point/operand-lifetime contract should absorb the straight-line portions and their cancellation/fence handling (4/4c/9b). **Hybrid MTP is not absent.** A logical round includes target, optional prime and draft passes, accepted-state promotion and cached answers. `drafts_read` now skips unused prime/draft work when all 16 physical rows are occupied and no promotion is required. That is a general capacity rule, not “special-case B16 to win a benchmark.” It fixed the documented 33-pass wasted-work case, but further policy decisions need accepted tokens per real target cost, including draft and host time. `finish_target → Prime → Second → Done → retire_mtp` also delays this round's answer behind work for future proposals; without per-pass timing it is wrong to assign the entire TTFT gap to that work. An unconditional draft at every shape is not parity with a capacity-aware engine. Keep Commit, canonical/history promotion and mixed-request cancellation correct while reducing submission boundaries. The current hybrid failure branch explicitly says its GDN canonical row was modified in place and an append-only abort cannot roll it back. Quarantine retains Program/writer/pins and prevents a false old-Version publication; a shadow or recoverable recurrent-state group is still a genuine §5.5 gap. **Memory unification is partial.** Common Objects and Moves do not imply one shared source/eviction planner. Flash owns additional FillState/Filler/source assignments, while prefix Store owns shadows, loans, maps and a radix index. Mixed-tier KV was disabled after a served-kernel stall; restoring it requires correct operand ranges and tier-aware attention access, not simply selecting `reserve_split`. The 11-28 extension/adopt path already keeps held extents and reserves just the added bytes, crossing the fixed-GDN-prefix duplication refusal. It is restricted to same-tier aligned extents and drained growth; that repair is not proof of mixed-tier serving or live recurrent-state migration. Prefix granularities should express model validity, not force a dense prompt into an extra GPU Step merely to save prompt_len−1. **The generated-graph work is real but not deployed.** The existing exports original Transformers modules, functionalizes their FX graphs, canonicalizes source regions against original Trace Definitions, and writes MOSARC01 consumed by the production host parser/composer. Current Q27 B1/T128 generation-demand inventory covers **4,486 source operations**: 2 standalone candidates, 4,226 operations in 257 native compound recipes, and 258 host metadata bindings. “Zero unbound” is a CPU binding inventory, not numerical equality, real Request/Mapping readiness or a runtime replacement. Flash retains open BF16/FP32/quantized Expert/host ownership interfaces; longer pooled-QSA export is blocked by a real data-dependent visibility count. Exact GDN, HC, PLE, grouped normalization and packed Expert schemas are not all original Trace Definitions. Keeping source ATen operations unbound was correct; inventing a fused/native equivalent was not justified. This is why an exporter and a graph parser have not replaced the family-specific runtime. The next work must connect these existing artifacts to the original kernel, metadata, state and source lifetime contract, in the approved export/canonical op direction, rather than count more names as runtime parity. ### Scene-specific patches, structural divergence, and consolidation candidates | Category | Concrete code/evidence | Judgment and general direction | |---|---|---| | Workload configuration patch | `eval/cold.py` now passes `cfg.http_endpoint`; Flash cold scene uses `/generate/2`. | Corrected a real wrong-model measurement, but a fixed numeric ordinal is brittle. Resolve the requested model/copy's returned registry identity through the common lifecycle adapter. Preserve the frozen request and deadline. Old 4.39 s receipt is 0.6B, not Flash. | | Harness assumption tied to source count | Previous control-stats scratch assumed eight rows; count-16 exposed it. `serve.rs::CONTROL_JSON_BYTES` now uses the transport output capacity. | Repair is general but still bounded by the actual output buffer. A registry API should stream/paginate or size from registry facts, and preserve partial writes; do not keep adding one capacity per scene. | | Per-scenario optimization process | Repeated short-request changes, per-change full suites and GPU runs; fixed-share/RQ1 attainment attempts before broad diagnosis. | Actual changes such as FIFO credit, immutable encoding reuse and deferred admission are general mechanisms, not branches matching a prompt or job ID. Their development loop was nevertheless ad hoc. Stop the loop and batch changes by the design contract and bottleneck. | | Structural divergence | Flash phase-by-phase compile/CPU continuation; family-specific Factory and state machines. | One logical Step with hundreds of submissions falls short of the intended descriptor/Program execution form. Graph regions, source lifecycle and state promotion should determine generic boundaries. | | Duplication candidates | `flash/{prelude,qsa,expert,mmq}.rs` standalone `compile_*` entry points beside `arch`/`vocabulary`/native lowerers; several are referenced by primitive host fixtures rather than the serving caller. | Consolidate recording/ABI lowering behind one implementation after mapping all call sites. A primitive used only by a fixture is not automatically dead; retain independent reference checks and both Program producers. No deletion is claimed by this review. | | Measurement-only paths | `ROLE_TEXT_INPUT` attribution is now under the existing default-off `trace`; per-round logs, owner interval records and separate trace formats still coexist. | Keep essential admission/fence/retirement/error evidence; consolidate detailed timing in the one trace facility, with explicit interval definitions. Do not repeatedly change normal logging to explain normal logging's own overhead. | | Parallel harness paths | closed-loop client, recorded-session adapter, cold runner, lifecycle adapter and their setup/ready/model-routing logic. | Share routing, identity, lifecycle and timing-boundary code, not frozen workload semantics. Source-specific arrival/corpus adapters remain data producers. | | Unfinished code with a valid scope | `os/engine/training.rs`, not wired to an actual training owner workload. | Label as object/lifetime support, not implemented training. Do not invent a training workload or remove it merely to improve an inference number. | Targeted searches of the reviewed runtime paths found job/scene names in explanatory comments, not a runtime dispatch on `short-requests` or `count-8`. This is not an exhaustive proof that no workload-specific assumption exists. The actual assumptions above are sufficient reason to prefer general graph, identity, capacity and source-lifetime contracts over another scene patch. ## 11. Key scenes: measured results and hardware bounds Hardware estimates below are retained from the pre-review status/todo receipts; this review did not remeasure them. Use existing measured device read bandwidth **1,704.9 GB/s**, measured host NVMe **9.3 GB/s** (guest about **8.9 GB/s**), observed GPU PCIe reads about **19 GB/s** and CPU expert reads about **53 GB/s** from the earlier hardware receipts recorded in this file/todo. PCIe Gen5 x16's approximately 63 GB/s one-direction link rate and DDR5's 96 GB/s are nominal ceilings, not measured payload throughput. Do not divide a runtime transfer by the nominal link rate and call it an observed bottleneck. For approximate parameter bytes W and useful tokens T, the optimistic weight-read lower bound is W/1,704.9 GB/s; linear-layer work is approximately 2NT FLOPs, plus attention and other work. BF16 dense 0.6B is about 1.2 GB (0.70 ms read floor), 8B about 16 GB (9.39 ms); 27B's measured approximately 21 GB working weights give 12.32 ms **per target pass**, before KV traffic. With k accepted tokens an MTP pass can amortize that cost, but draft/verify and state work still count. For Flash, active Expert bytes, routing and placement matter: total model size is not bytes read each token. There is no current sustained tensor-compute roof measurement for these exact kernels/shapes in the selected receipts. Rather than invent a TFLOP/s ceiling, the table gives FLOP demand where useful; a compute floor is that demand divided by the device's sustainable rate. Weight-only floors are optimistic bounds, **not additive wall-time partitions** or achievable SLOs. ### Current measurements, including missing and censored cases All receipt IDs below are keys in `results/index.jsonl` and raw directories under `/workspaces/modelos/jobs/`. Closed-loop medians include all five configured samples, including their cold outliers. TPOT below is the median of each sample's (complete latency − first-token latency)/(outputs−1), not total latency divided by the token budget. | Scene | Existing measured result | Ceiling/gap and time attribution | Receipt | |---|---|---|---| | 0.6B short, B1, 64/512/1024 inputs and one output | Latest medians **3.825/7.494/12.123 ms**; 15/15 complete, original IDs/text unchanged. First 64-input sample is **3.419 s**. Existing SGLang medians **5.48/9.51/13.70 ms**; historical approved 2.28 ms is a different older receipt, not current-tree performance. | About 5.5/10.7/17.3 times the optimistic 0.70 ms weight-read bound, with increasing prefill compute (76.8 GF/0.614 TF/1.229 TF). One native Program, not the older 63+1 tail. Prior run preparation medians 0.275/0.300/0.288 ms; GPU work and HTTP/owner cost remain. The immediately preceding 6.277/9.043/13.339 ms run synchronously printed admission before post; the new receipt retains all 15 admitted/prepared/fenced/retired records in the normal ring. No exclusive causal claim across evolving trees. | `bench-short-requests-modelos-1795965106505733299`; previous `...1795963456860677572`; SGLang `...1794509894231398105` | | 0.6B B128, 128/128 | Last usable five-repeat record: TTFT **1.154 s**, total **2.392 s**, output **6,848 tok/s**, tail TPOT **9.413 ms**; 640/640 streams. Latest attempted ModelOS point has **no measurement**, blocked by a GPU recovery marker. Existing llama.cpp B128: TTFT **574 ms**, TPOT **41.305 ms**, not a comparable win on every metric. | Ideal shared weight read per batch is 0.70 ms, not 128 times that. Prefill demands about **19.7 TFLOP** across 16,384 inputs. The raw native log starts with a **32-request** prefill cohort, so HTTP B128 is not one B128 GPU Program. Queue admission, snapshot boundaries and row capacity require attention before kernel bandwidth tuning. Logs do not support a complete per-round CPU/fence partition here. | `bench-qwen3-06b-b128-modelos-1795808782742868044`; blocked `...1795891445440480873`; llama.cpp `...1795902646967087407` | | 8B B1, 128/128; 2048/128 | TTFT **32.915/235.133 ms**, total **1.471/1.873 s**, tail TPOT **11.309/12.889 ms**. SGLang: TTFT **17.689/153.950 ms**, TPOT **9.832/10.116 ms**. | Short-context decode about 1.20 times the 9.39 ms weight-read floor; longer KV reads increase the floor. One dense Program per round, with metadata/descriptor upload and owner gaps; no hundreds-stage Flash problem. Prefill linear work about 2.05/32.8 TFLOP. Current receipts do not partition the entire 1.9–2.8 ms residual into CPU, transport and GPU overhead. | `bench-qwen3-8b-modelos-1795809854682218617`; SGLang `...1794506030143002959` | | 8B B16, 128/128 | TTFT **249.474 ms**, total **1.832 s**, **1,118 tok/s**, tail TPOT **12.455 ms**. SGLang: **148.943 ms**, **1,317 tok/s**, **11.063 ms**. | About 1.33 times the shared 9.39 ms read floor before KV/compute; prefill about **32.8 TFLOP**. Continuous batching exists; available samples do not establish CPU/GPU schedule overlap equivalent to the baseline. | same two 8B receipts | | 27B B1, 128/128; 2048/128 | Latest floor TTFT **78.771/210.211 ms**, total **1.920/2.122 s**, tail TPOT **14.504/15.056 ms**. Existing vLLM MTP: **101.200/184.433 ms**, **7.441/8.068 ms**. | About 1.18 times the weight-read bound **if only one token is kept**; with accepted speculation the relevant bound per useful token is lower. MTP exists but serialized target/prime/draft/state passes and owner gaps diminish its benefit. The approximately 6.8 s first cold response is retained in the five samples. | `bench-qwen38-27b-nvfp4-modelos-1795932665905295149`; `bench-qwen38-27b-nvfp4-vllm-mtp-standard-r1` | | 27B B16, 128/128 | Latest TTFT **692.811 ms**, total **3.860 s**, **530.5 tok/s**, tail TPOT **24.941 ms**. SGLang's single B16 capacity receipt: TTFT **152.166 ms**, TPOT **16.382 ms**; vLLM MTP B16 has **3.841 s** TTFT and **8.149 ms** TPOT, so its throughput mode has a different startup tradeoff. | About 2.02 times the 12.32 ms shared read floor before KV and compute. The wasted draft passes with no verification rows were removed (`56f4babfc`); this does not remove all host/pass boundaries. Use batch capacity/acceptance/cost policy, not unconditional speculation or a new B16-only mode. | same ModelOS floor; `bench-qwen38-27b-nvfp4-sglang-b16-capacity-r1` (one sample); vLLM standard receipt above | | 27B long-context agent requests | On the earlier strong receipt, 448/27,648/48,064/75,520 inputs complete with TTFT **0.218/5.104/8.484/15.459 s**, TPOT **14.14/16.48/14.94/16.02 ms**; **156,224 inputs time out with zero output**. A later diagnostic receipt is slower and also misses that longest request. Full configured context 262,144 is capacity, not proof of full-context attainment. | KV can fall wholly into RAM. About 17 GB read at 19 GB/s is already **0.89 s per full sweep**, and attention may reread it across waves; this is not the 12.32 ms weight-only case. Later prompt records prove progress past 8192 (8192→16384→24576→32768) with **26–60 s** prepared-to-retired intervals that include owner/device time. The gap is placement/access pattern, repeated waves and admission/activation, not evidence of total deadlock. | `bench-agentx-27b-modelos-sample20-1795929554159638903`; later `...1795932781382641811` | | Flash decode, composed | Passing function receipt completes **5×128 outputs**, coherent text. Decode round aggregates: **355 stages** median, GPU-wait **274.5 ms**, plan **119.6 ms**, fill **93.2 ms**, CPU compute **82.4 ms**, first **14.7 ms**. Stage-sum/wall median **0.99** across 211 consecutive rounds. | About **0.77 ms per fenced stage**; no substantial round-level overlap is demonstrated. Earlier captured receipts have GPU about **24.6 ms**, plan **1.5 ms**; these are different trees/workloads, not a controlled speedup. Ideal resident dense read about **2.45 ms/window**, plus routed Expert reads (earlier estimate up to **0.57 ms/row**). Strata historical **13.2 ms/6-token window** is a different useful-token denominator. Do not label host-inclusive `gpu` as isolated device kernel time. | `bench-flash-sharegpt-1client-function-1795948944506396681`; existing item-18 cross-receipt analysis | | Flash prefill | Same function run: 15 prefill rounds, round-sum medians plan **88.3**, fill **173.5**, CPU compute **95.9**, GPU-wait **383.1**, first **36.6 ms**, about **333 stages**. Large-chunk AgentX receipt has **752–783 stages**, **5.5–6.0 s** GPU-wait, first **1.4–1.9 s**. A solo 448-input request completes at TTFT **21.9 s**, TPOT about **320 ms** in the other solo receipt. | No defensible whole-prefill hardware floor without active bytes/precision/routed rows. One 2 MB miss's earlier estimates: CPU **38 µs**, PCIe **105 µs**, disk **215 µs**, before queue/format work. `first` spans round open to layer-0 routing and overlaps those costs; it is not a fixed PLE cost or an independent amount to add. General bottleneck is stage granularity, then source/compute overlap. | function receipt above; `bench-agentx-flash-modelos-sample20-1795940600804716210`; completed short request `...1795939162392934586` | | Cold start and wake | 0.6B five-sample QEMU→first **8.814 s**, guest-resume→first **4.951 s**. 27B corresponding **11.474/8.016 s**. Corrected Flash cold has **one completed sample**, **66.846/63.281 s**, versus llama.cpp's **50.714/46.646 s** single sample. 0.6B retained activation Ready median **1.185 s** (five), not all models' wake time. | QEMU RAM initialization, boot/GPU replay, activation/code preparation and first inference are different intervals. 21 GB upload is at least **0.33 s** at nominal PCIe or **1.11 s** at 19 GB/s; neither explains tens of seconds of CPU binding. The corrected Flash result is slower and censored at sample 2; old 4.39 s “Flash” was default 0.6B. | cold IDs in section 14; activation `bench-activation-modelos-qwen-1795892341137307534` | | Multi-model RQ1 | Existing six-model small-model run: **1,346/1,800** complete versus fixed **1,169/1,800**, same frozen model/corpus series. Large count-2 after first-Step fix: **2/9 observed** (10 planned); count-4 **2/16 observed** (20 planned); last count-6 **3/23 observed** (30 planned), **75 output tokens** including three partial; count-8 ends in setup before requests. | The small-model pair is not evidence for the large-model population. Large runs are activation/room/serial-execution limited with 20-min censoring, not near an aggregate FLOP roof. Activation creates head-of-line waits and RAM-fragmentation pressure. Model count, readiness, offered/observed/completed requests and SLO goodput must be reported separately. | small `bench-rq1-count-6-modelos-1795846638875146452` / fixed `...1795854081280648697`; large `...1795938009556582055`, `...1795946569176286514`, `...1795955236818548537`, `...1795956773641535970` | The raw logs also bound what can be attributed. In the 8B receipt, matched visible decode records give GPU-clock medians 12.030 ms for B1 (short and long prompts combined, 335 pairs) and 11.220 ms for B16 (105 pairs). There are 21 ring-drop reports, so these are not a complete all-round partition; subtracting the combined B1 GPU median from the short-prompt client median would be invalid. In the 0.6B B128 receipt the visible GPU cohorts vary from one to 99 Requests, with many two-Request rounds; 97 drop reports prevent a whole-run dispatch census. This strengthens the batching/observability question but does not establish a particular scheduler defect. The table deliberately uses older valid floor receipts where the newest attempt has no measurements. Latest B128 SGLang/ModelOS setup failures and vLLM's interrupted 27B rerun are not zero throughput. The full latest tree has not run every floor; no current all-model superiority claim follows. ### Mechanisms present in the comparison engines This is a comparison to the source already installed in the Workspace and its recorded versions, not a claim to rank every newly released engine. Primary source locations: SGLang `srt/model_executor/runner/` graph runners, `srt/managers/scheduler.py::event_loop_overlap`, `srt/mem_cache/radix_cache.py`; vLLM `compilation/cuda_graph.py`, `v1/core/sched/scheduler.py`, and `config/speculative.py::num_speculative_tokens_per_batch_size`. Baseline performance belongs to the exact version/configuration in each receipt. | Mechanism | Comparison engine behavior | Actual ModelOS difference and remedy | |---|---|---| | One graph replay per decode forward | Original kernels for the supported shape execute through a retained CUDA graph; eager/segmented fallbacks and multi-pass speculation still exist. | Dense native already retains one full Program, and now reuses exact automatic prefill encodings too. Flash recomposes many segments. Bring the latter to the same complete-region Program contract instead of treating removal of CUDA as sufficient. | | CPU scheduling overlaps GPU execution | SGLang's overlap loop prepares the next batch while work is pending, with explicit non-overlap cases. | ModelOS has copy/worker overlap but generally waits for current segment drainage before discovering/preparing the next. Precompute shape-stable descriptors and next-row tables in independent retained storage; preserve current operand readers until their fences. | | Continuous batching and chunked prefill | Baseline schedulers manage token budgets, decode-first work and chunking; mixed prefill/decode depends on engine options. | Row admission and 8192 logical chunks are present. Physical waves, cacheable recurrent boundaries, RAM placement and repeated prime passes still dominate some prompts. Compare capacity and lifecycle, not just the configured chunk number. | | Paged/radix KV and prefixes | Original engines reserve blocks, share valid prefixes, and evict by policy; hybrid recurrent state has stricter checkpoint boundaries than append-only attention KV. | Object-backed extents, a radix prefix index and Version-proved snapshots exist. Same-tier fallback and remaining snapshot/activation duplication can defeat VRAM use; same-tier delta growth is already implemented. Do not call a single VA range “mixed-tier working” without a served-kernel proof. | | Capacity/cost-aware speculation | Available rows, load and acceptance can change whether speculation is profitable; vLLM exposes per-batch-size speculative-token schedules. | The 16-row no-spare rule is repaired, but a general cost/acceptance table for target/prime/draft remains incomplete. First preserve the committed-state contract, then use batch checkpoints to evaluate the policy. | ## 12. Unnecessary failures: cause, status and general repair | Incident | Established cause and present status | General repair, without changing a scene to pass | |---|---|---| | 11-28 22:58 OOM during Flash llama.cpp sessions | The coordinator records a pod OOM/restart and stopped this session scene. The selected evidence does not include a complete contemporaneous node/process breakdown. It does not establish a model memory leak or the same cause as 10:30. | Apply the existing host-memory reservation/supervision to the full lifetime: guest RAM, generic-loader ROMs, parent/client RSS, page/cache pressure and simultaneous builders. Record effective enclosing cgroup limits and watchdog failures. No automatic larger guest or repeat of this opponent. | | 11-29 10:30 OOM during large count-6 setup | Kernel evidence explicitly says **global_oom**, then the Workspace cgroup is killed with `memory.oom.group`. Last job RSS **32.10 GiB**, recorded peak **32.15 GiB**; no proof that this job exceeded its own budget. No final/request receipt exists. | Per-job RSS does not bound the node's aggregate memory. `eval/memory.py` already has a shared ledger and enclosing-cgroup accounting; verify all build/guest paths use it and include latent RAM/loader growth. Treat this run as unscored, never as a serving failure or zero-completion point. | | Flash copies activate every 42–43 s | Count-8 binds Instances 1–6 at **9.105/52.520/95.826/138.205/180.596/223.405 s**. Residency→Code takes **20.6–21.6 s**, Code→Acceptance **12.4–12.8 s**. This is serial setup, not evidence that disk bandwidth alone is slow. | Separate immutable inspection/relocation from per-Instance allocation and state. Retain actual uploaded-module geometry (the earlier `3758dae50` removed repeated CUBIN inspection on room retries); pipeline independent disk/map/copy work. Keep code/weights shared only with their ownership/Version proofs. Missing substage attribution is recorded as unknown, not measured away in a new scene. | | Count-8 setup exceeds 240 s | Copy5/Instance7 is still loading near 232.7 s; another copy remains accepted/queued with no Instance yet. No request is offered. No bind/Instance error is logged. | Fix general activation cost and fitting-room scheduling. Do not increase the frozen readiness deadline or label setup failure an SLO completion number. Queue admission, registration, loading and Ready need distinct observable states. | | Failed graph arena retries | Count-6 needed **5.15 GiB** contiguous arena with only **3.5–5 GiB** largest gaps despite sufficient total free RAM. Repeated Body preparation replayed cache declarations, then a pre-I/O wait consumed the device watchdog. Idempotent cache admission and suspended pre-residency room retention were fixed. | Plan from actual aligned extents; make every pre-I/O retry side-effect-free/idempotent, preserving original source/ticket. Start I/O deadlines at actual admission, not while waiting for memory. General split-capable object arenas require valid Mapping/range semantics before use. | | Second Flash copy cannot bind CPU workers | Original AP dispatcher admitted one registration per core, then rejected another live Instance. `75186fe94` keeps disjoint SPSC registrations and independent stopped acknowledgements; subsequent count-4 copies bind. | A core services multiple retained Op sources, not one global model slot. Preserve pin/unlink/STOPPED lifetimes. This repair does not change row budgets or make count-4's long requests complete. | | Cold request routes to the wrong model | `POST /generate` selected instance0/0.6B; Flash registered later as instance2. The measured 4.39 s receipt was mislabeled. `cold.py` now propagates the common endpoint override. | Resolve model identity after registration; retain requested and observed instance/model identity in the receipt. Distinguish QEMU start, guest resume, Ready and first token. The corrected single Flash sample cannot replace a five-sample headline median. | | Control stats stops count-16 setup | Eight-row scratch did not hold all registry rows. `44afd6e4c` sized it to the existing transport buffer; tests include the wider registry. | Size/stream from registry data and honor partial writes. Test around buffer boundaries once with focused fixtures, not by rerunning every count point. | | Bootstrap GSP refusal | A dirty-tree function failure was later followed by a clean five-request success; separately a clean budget-off bootstrap refused at tape **0x743a8ca**, op5, expected kind0x25/33 bytes. The original receive diagnostic `a4f5754cb` retained cursors/headers; a later budget-off run did not reproduce it. The newest clean preemption-off boot reproduces refusal with receive head **0xbadf2100**, tail **4**, header-observation flag **0**: rejection is at counter validation **before DMA header access**. | Keep the original framing/credits/reset and first refusal evidence. A later successful boot is not proof that a diagnostic fixed the refusal, and “dirty tree” does not explain the separate clean failure or this new counter refusal. The zero header-observation flag is not measured zero payload data. No speculative protocol relaxation or repeated full scenes during review. | | Shared-tree/driver failures | Earlier failed checks left an uncommitted five-file increment while another run owned the tree; this was corrected. A later private wrapper closed FD8 before its child tried to unlock it; source was already checked/committed, and only the data step was recovered. | Same-held-lock edit/test/commit transaction, withdraw only its own uncommitted edits on failure, propagate required descriptors, dry-run queued work, and retain raw logs. These are orchestration failures, not model/kernel failures; they need no new GPU experiment to diagnose. | The OOM evidence for 10:30 is retained in the Workspace's existing incident receipt `large-count6-interruption-workspace-oom-r1.log`; public conclusions need no node inventory or other Workspace data. Root storage eviction on 11-27 was a separate incident and is not relabeled as either of these OOMs. ## 13. Work order and test checkpoints The active order in todo is **design gaps → general bottleneck repairs → one batched validation checkpoint → frozen result collection**. Historical “done on host evidence” rows below that queue are receipts, not a renewed claim that every design requirement is met. 1. Reconcile the common Program/graph-region/Join contract and model-specific state/operand lifetimes (4/4c/5/9b). Keep both producers; reduce artificial submission boundaries without changing original kernels. 2. Resolve general memory/source contracts: tier-aware KV ranges, the existing same-tier delta-growth contract, recurrent snapshot ownership, idempotent activation retries and total lifecycle memory accounting (6/10/13). This includes correctness and OOM diagnosis, not a new memory gate or a per-scene larger allowance. 3. Finish known-family versus arbitrary-architecture extension contracts and qualify wired hardware mechanisms from existing evidence (4a/7). State what remains unsupported rather than counting a host test as deployment. 4. Then prioritize measured general costs: Flash staged execution; repeated activation CPU work; RAM-backed long prefill; CPU/descriptor/logging work on otherwise bandwidth-near dense models (18). RQ1 attainment follows these mechanisms, not another count-specific tuning loop (19). Focused tests after each actual change cover only that contract (for example graph-region command/operand equivalence; Commit/cancel/release; room retry with no I/O; full/partial diagnostic buffers). Add the affected compile check when needed. **Do not run OS variants, all model suites, freestanding or a GPU scene after every increment.** Batch checkpoints, selected after this review: - **C1, contract/function checkpoint:** after the related graph/state/tier changes form a reviewable batch, run the full required host confirmation and freestanding once on a committed clean tree. One bounded existing GPU function scene then checks the changed end-to-end mechanism, only if the host evidence cannot establish it. Preserve coherent text, Commit and cancellation/ownership results; no all-complete attainment gate is added. - **C2, bottleneck checkpoint:** after the general cost fixes for one mechanism are batched, choose the smallest existing floor or recorded session that distinguishes the claimed improvement. Reuse existing opponent receipts, retain misses/outliers, and cap each performance job at 20 minutes using the existing runner. No new scene/settings or per-patch full run. - **C3, frozen collection:** only when the relevant design/function gaps are addressed, collect remaining unrun frozen points. Keep setup failures, unobserved requests and SLO misses explicit; never rerun a completed opponent. A regression discovered at a checkpoint returns to its focused contract tests, not a cascade of full suites. No new checkpoint run is queued by this document. No new measurement was needed to establish the structural findings; missing CPU/device partitions, compute roof and hardware scheduling engagement stay explicitly unknown. ## 14. Receipt lookup and limits `results/index.jsonl` preserves metadata; raw `done.json`, client results, request rows and guest logs in the corresponding job directory are the source for each number. Parent `pass_`/“no segment finished” alone is not an interpretation of closed-loop samples or censored recorded sessions. - Short requests: `bench-short-requests-modelos-1795965106505733299` (source `15098d8f4`, result `542d8ac9b`; includes `f204a1c45`); previous preparation evidence `bench-short-requests-modelos-1795963456860677572`. - Cold 0.6B/27B: `bench-cold-start-modelos-1795645466122989356`, `bench-cold-start-27b-modelos-sample20-1795867403324364067`. - Correct Flash cold: `bench-cold-start-flash-modelos-sample20-1795940616315131046` (`cold-0` is the completed sample; parent interrupted); existing comparison `bench-cold-start-flash-llamacpp-sample20-1795904296590405891` (one sample). - Flash function: `bench-flash-sharegpt-1client-function-1795948944506396681` on `0abf7b946`. The item-18 stage analysis spans different trees and counts first-touch per request; it is not a same-binary capture/composition ablation. - Large budget off/on: `bench-rq3-budget-large-off-sample20-1795959263793482725` and `bench-rq3-budget-large-on-sample20-1795961077986436151` are the budget pair: observed **1/9** versus **2/9**, each 10 planned, with source/logging differences and censoring; no whole-run win is inferred from that pair. - Scheduling default `bench-rq3-chat-27b-on-sample20-1795963523609449057` and priority-off suffix `1795962288975530965`: each **3/10**, **280 outputs**. Default chat first tokens **51.622/175.251 s**, off **49.753/163.017 s**; scheduling records select bootstrap Instance2 with one contender, not both business Instances3/4. Profile and source-provenance limits are retained in todo. The later preemption-off `bench-rq3-chat-27b-no-preemption-sample20-1795964759317570813` fails scene-owner readiness with no request rows. Its raw boot log reproduces the receive-counter refusal (head0xbadf2100/tail4/header0) before reading a DMA header; it supplies no completion/latency comparison. Neither failure nor missing concurrent readiness justifies rerunning the default during this review.