A draft step launches 48 numerical guards, one kernel per buffer. Runs of guards that are neighbours in the program (no kernel or copy between them) are launched as one mtp_original_check_batch at the position of the run: each entry keeps its own buffer, count, kind and status word, with the predicate and loop of mtp_original_finite / mtp_original_q8_guard, so the status words are the separate launches' words. 3 runs per step (5 prefix guards after the GR block, 5 tail guards after the MLP GR, 2 after the shared gate and up): 12 launches become 3. No guard moves across another command; nothing is removed.
New standalone sealed asset mtp_original_check_batch.cu/.ptx (extra-seal-plan.json entry, compile_assets.py + seal_pins.py with nvcc 13.2.86, sha pinned in mtp_original_full_symbols.rs), loaded only with the switch on; no existing sealed asset is touched. Pure planner and descriptor in cuda-model (draft_check_batch) with a simulated-step proof that a NaN/Inf placed in any checked buffer after any kernel leaves identical status words; driver tests on the real command lists; an ignored GPU test (batched against separate guards). Typed setting draft_check_merge, policy field check_merge, off by default. Identity, section delta and GPU proof pending; no speedup claim.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DecodeGraphKey (shape, tier, pcie mode, cluster top-k, weights and owners epochs) and GraphReuse hand a kept assembly out only for an equal key after Reusable::rearm accepted the new request's seed; anything else retires it and records. The lifecycle fake bakes key and seed into its graph set and fails a stale replay: kept and re-recorded sets give the same text, each key input forces a re-record, a refused re-arm and a failed request do not replay. MoeWeightCache gets pin_for_window / unpin_window / weights_epoch (not wired). With the switch on, open states that the stack cannot keep the graphs yet; every request records as before.
Not done: the assembly still borrows the stack (needs handles instead of &'a DeviceBuffer in original_verify_window_{moe,gr,proj,qsa}), the QSA owner loan and the MTP binding follow it, and the verify bank's re-arm API is the speed session's. Exact changes in docs/experiments/decode-graph-reuse.md. No speedup claim.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PARK_FAST (typed setting prefix_park_fast, off by default). The export of a parked block read the 12 resident layers with one context synchronize per layer, a fresh zero-filled buffer per K/V span (resize(n, 0) before the copy overwrote every byte) and, for the index rows, a zero-filled buffer plus a zero-filled staging plus a second copy. With the switch on, the executor drains the context once per park and the layers read with export_pages_fast (copy from the mapped host image into the unzeroed spare capacity of the vector, exact_fill::fill_exact, length set only after every byte was written) and export_rows_fast (the completed device-read staging is the result: DeviceBuffer::copy_to_range_owned). Same source bytes, same layout, same sizes, same poisoning rules; the reference methods are unchanged. New profile spans: prefix.export_drain, export.copy_fast, export.index_copy_fast.
Not done for PARK_FAST: pooled buffers (the parked vectors are retained by the prefix store, so a fresh allocation per park is inherent; only evicted blocks could be recycled, which would need a store free list) and copying the 12 layers on threads (the context and the layers are Rc/non-Send; a Sync view of the mapped image would be needed).
PARK_ASYNC (typed setting prefix_park_async, PrefixConfig::defer_decode_tail, off by default, only with --prefix-cache-tail reply). after_decode records the tokens and the kept prompt-end limit and returns ChunkOutcome::Deferred; the owner loop runs OriginalServeStack::prefix_after_response right after the terminal event of the request and before the prefix summary is published. Nothing runs on the device between the end of the decode and that call (the owner thread is the only user of the stack and the deferred call is the next thing it does), so park_session, park_block and park_tail see the state after_decode saw and the parked bytes and store content are the same; a begin or invalidate that comes first drops the pending checkpoint. The profile sections of the deferred part are reported on their own DBG profile park_deferred line. Not deferred: after_prefill and after_chunk. They park cells of the last page that the decode overwrites (past the checkpoint end) and the recurrent state the decode advances, so parking them later would change the bytes.
Tests: settings default off and exact words, fill_exact equals the zero-filled copy, short or failed fill leaves the vector empty, deferred checkpoint equals the immediate one (outcome, nodes, blocks, bytes, live claim, resume of the next turn), pending dropped by begin and invalidate, nothing deferred with tail off or bypass; GPU-ignored tests of export_pages_fast and export_rows_fast against the reference exports added to the journal round trips.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The sequential chain pays a stream sync, two synchronous flag reads, the cell record write and the graph launch between every two steps (about 114 us x 2.4 steps per round in the CUPTI window of request 29). With min_p 0 the depth is known up front, the cell records are static and the token of step j reaches step j+1 on the device, so the steps are enqueued behind the round graph and the host reads once. The step graphs of this path (OriginalGraphKey::MtpChain) are recorded without the tail flag reset and the prefix status reset, so a numerical fault of any step stays set until the single flag read after the last step. Same kernels in the same order; typed setting draft_chain_pipeline, policy field chain_pipeline, off by default.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 2026-11-09 server reading (Shmem 58.6 GB, MemAvailable 7-8 GB) is the lab holder's full 55.3 GB memfd
(single-copy-holder.sh sealed without --sparse-ple), not the sparse memfd of leleka up. The supervisor
now checks the allocated bytes (st_blocks) of an inherited descriptor against the profile and refuses a
ple_only profile on a full copy (LELEKA_ALLOW_FULL_MEMFD=1 overrides, logged); the holder script seals
--sparse-ple by default (HOLDER_MEMFD=full keeps the old form). Design, candidates and the ordered
measurements: docs/design/single-copy-ram-2026-11-09.md. No GPU/server run; identity/A-B pending.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The persistent OriginalMmqCopySchedule is opened with the full prompt layout's ring (384 events); Ring::new demanded schedule.ring_slots() == arena slots.
Slot i is i % arena slots, so the surplus events stay idle.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>