RTX decode night (night-combo, shipped 11-08 06:06): VERIFY_ATTN w22p2, AR_PACE map, TOPK_GATHER + P/D replay records #372

Closed
orchestra wants to merge 0 commits from opus/rtx-decode-night into master
Member

Base of #369 (rtx-decode lane). Production RTX decode ran this branch's night-combo (pd-r3-host32-pdq8-dva-night) from 2026-11-08 06:06 until the ehq8 ship at 20:05 (ehq8 = night-combo + 4 flags, #369).

Contents unique to this branch (50 commits vs #368's base): rtxopt VERIFY_ATTN (fi_vattn.py, w22p2), AR_PACE (fi_ipc_rtx paced ring), TOPK_GATHER, dynk/pad fixes, night-window drivers (adwin/w3), P/D sat2 replay records (bench/runs/rtx-decode-night-20261108), HISTORY ship beat, window restore fix (6e680cff: PD_TT_URL forced to :8000 before RELEASE).

Merge notes (please read before review):

  • 220 commits ahead of master, 10 behind; 170 of them are shared with #368 (opus/pd-delta-export → master), i.e. the P/D history that is not on master yet. Landing #368 first shrinks this PR to its 50 own commits.
  • git merge-tree vs master today: 7 conflicting files, all from the P/D export arm that #363 already merged: bench/arms/s12phv-pd-export{,-mtp}.toml, nix/serve-arms/s12phv-pd-export-mtp.json, patches/prod-local-plugin/src/vllm_tt_plugin/{kv_host_tier,pd_export}.py, tools/pd-split/test_pd_export.py, docs/HISTORY.md. Not resolved here (a resolution merge is a new head that needs its own review); proposed order: #368 → rebase/merge this branch on master → #369.
  • Records: ledger/HISTORY entries for night-combo cite bench/runs/rtx-decode-night-20261108 on this branch.

Needs an independent review before merge.

🤖 Generated with Claude Code

Base of #369 (rtx-decode lane). Production RTX decode ran this branch's night-combo (`pd-r3-host32-pdq8-dva-night`) from 2026-11-08 06:06 until the ehq8 ship at 20:05 (ehq8 = night-combo + 4 flags, #369). Contents unique to this branch (50 commits vs #368's base): rtxopt VERIFY_ATTN (fi_vattn.py, w22p2), AR_PACE (fi_ipc_rtx paced ring), TOPK_GATHER, dynk/pad fixes, night-window drivers (adwin/w3), P/D sat2 replay records (bench/runs/rtx-decode-night-20261108), HISTORY ship beat, window restore fix (6e680cff: PD_TT_URL forced to :8000 before RELEASE). Merge notes (please read before review): - 220 commits ahead of master, 10 behind; 170 of them are shared with #368 (opus/pd-delta-export → master), i.e. the P/D history that is not on master yet. Landing #368 first shrinks this PR to its 50 own commits. - `git merge-tree` vs master today: 7 conflicting files, all from the P/D export arm that #363 already merged: bench/arms/s12phv-pd-export{,-mtp}.toml, nix/serve-arms/s12phv-pd-export-mtp.json, patches/prod-local-plugin/src/vllm_tt_plugin/{kv_host_tier,pd_export}.py, tools/pd-split/test_pd_export.py, docs/HISTORY.md. Not resolved here (a resolution merge is a new head that needs its own review); proposed order: #368 → rebase/merge this branch on master → #369. - Records: ledger/HISTORY entries for night-combo cite bench/runs/rtx-decode-night-20261108 on this branch. Needs an independent review before merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Payload per request from the HF config (TT native 192 MB at 4k, 955 MB at 32k,
3.57 GB at 128k; ~40 ms H2D at 32k over Gen4 x16), host-bounce path (no P2P to
GeForce/CUDA dma-buf), GPU-side bfp unpack, numerics gates and fallbacks,
decode-engine survey with a calibrated roofline per card, a custom vLLM
consumer connector + prefix-aware router recommendation, milestones M0-M8 and
owner questions (cfx-llm0 TT link is Gen2 x16, power, RAM, disk).

tools/pd-split: payload/decode calculators and the CPU reference converter
(exact inverse of the bfp packer emulation, block->tokens, re-blocking,
GDN reorder); 13 unit tests. Skill pd-split-handoff.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner hardware (2026-10-29): 4x RTX 3080 10 GB (sm_86, no FP8/FP4, no P2P) in a
separate box behind 1 GbE. New section R2 (verdict) and section 7: fit per
layout (TP=2 replicas do not fit; TP=4 fits all cells only with fp8 KV via
FlashInfer and an own int4 quant of GDN/attention, the official GPTQ-Int4
keeps them bf16), decode estimates with NCCL-SHM collectives (B1 ~111-154
tok/s/user beats TT 2x, B4 ties, B8 39-58 loses to TT 52-64), handoff over
1 GbE (+1.6/+4.7 s cold, +1.4-2.1 s per follow-up) vs 40 GbE (~0.04 s),
re-ranked options (two decode pools with TT prefill first; remote drafter
NOGO), day-1 all-GPU benchmark plan and owner questions.

pdsplit.py: per-part weight variants, 3080 fit/decode model, network handoff;
3 new tests (16 pass).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vLLM 0.32 TP=4, ThinkingCap-Qwen3.8-27B int4 AutoRound, fp8 KV, bf16 SSM state,
MTP K=3, T=1.0: TG/user B1 105-115, B4 88-116, B8 46-73; PP 1.5-2.2k tok/s
(160 W cap, GPU0 thermally throttled -> lower bounds). P2P on vs off:
+6/+31/+25% TG at B1/B4/B8, +45% PP; FlashInfer PCIe-IPC all-reduce +7-10%.
nccl-tests and iperf3 (934-941 Mbit/s) measured; pdsplit.coll_us now uses the
measured table, 1 GbE = 117 MB/s. Official MLP-only GPTQ-Int4 fits B1 only.
Next steps for the handoff (connector, TCP transport, router threshold ~5k
tokens on 1 GbE, TT export spec) in section 8.6. Scripts in tools/pd-split/rtx,
skill rtx-decode-bench.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the handoff was a design (§8.6 step 3) and a 117 MB/s iperf number. Now a Python
sender/receiver moves a 1.06 GB TT-geometry handoff cfx-llm0 -> cfx-llm1 at 115.9-116.5 MB/s
(114.4 with an injected mid-frame drop and resume), every frame xxh64-verified. Adds RESUME/DONE
receiver->sender frames and the frame-key/absolute-block rules to the contract (additive, v1).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Design 8.6 step 5. Before: the P/D design assumed the S12P host tier's staged D2H could feed an
export, but nothing produced wire-format-v1 frames. Now an export-marked request
(kv_transfer_params.pd_export) streams MANIFEST, per 2048-block KV frames (the tier's own staged
slot bytes when it stored the block this step, else the same TierBackend.store_block program), the
final GDN state (bf16 rec + 4 conv rows per card/layer) and END to a receiver, on a per-request
sender thread (xxh64 via libxxhash ctypes; reads stream B's RESUME/DONE replies). Unmarked requests
pay a dict lookup. Boot self-test: pattern block + pattern GDN slot through the served path to a
loopback receiver, decoded exactly with the vendored pdsplit decoder, plus must-differ branches;
QWEN36_PD_EXPORT_MUSTFAIL refused in ttsim. Arm s12phv-pd-export derived from the production arm.
The new plugin file is mounted by the nix unit (list_tree rule) and serve-arm specs regenerated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Kernel matches the pdsplit CPU reference bit for bit in 16/16 cases under TRITON_INTERPRET (CPU);
the GPU run and the tiny-hybrid import-vs-monolithic test wait for a GPU slot on cfx-llm1.
vLLM 0.32 stores the GDN state as [nv, d_v, d_k] (MambaStateShapeCalculator), so TT's assumed
[Nv, Dk, Dv] is transposed on import; that and the other TT mappings are layout.TTLayout fields.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Day 1 ran vLLM from a login session in a tmpfs, so the decode engine died with the session
(logind RemoveIPC wipes /dev/shm) and lost its weights at logout. The decode now runs as the
systemd user unit pd-rtx-decode, with linger on, from /mnt/bulk. It is the frozen §8.2 arm at
max-model-len 131072 with prefix caching on, port 8765.

Evidence (bench/runs/pdrtx-20261031, PD-SPLIT-DESIGN §8.7):
- The KV pool is 331-341k tokens with prefix caching on, so a 131k max-model-len does not
  shrink it. A warm 32k prefix hit cuts TTFT from 17.0 s to 0.81 s. TG with prefix caching on
  vs off is within +-4% at matched GPU0 temperature, so it stays on.
- With each cell started from a cool GPU0, TG/user is 111/105/109/91/74/59 at B1/B4/B8 x 4k/32k.
  Hot back-to-back cells lose up to 40%. GPU0 still shows fan 0% and is in sw_thermal_slowdown
  in 57% of busy samples.
- Gates pass. GSM8K at T=1.0 scores 58/60 (paired McNemar PASS against the TT s7 and s5 controls),
  and greedy also scores 58/60 (PASS against S12PHV-SFR at 59/60). Retrieval scores 1.0/1.0 at
  16k/32k, greedy and at T=1.0. MTP draft acceptance is 0.61 (mean length 2.83).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The kernel addressed the registered KV view by the scheduler's
block ids. That assumed the view's block axis was the manager block,
but under the hybrid allocator vLLM registers kernel-block views:
manager 80 / kernel 16 in the tiny test, 832 / FlashInfer-sized for
the 27B. The dump gather went out of bounds. Token t now goes to
table[t//mbs]*(mbs/kbs) + (t%mbs)//kbs, at offset t%kbs, in the
kernel, the CPU reference, the MTP zeroing and the test dump.

On cfx-llm1 GPU1:
- kernel bitwise 17/17, including ratio>1 cases;
- tiny-hybrid import == monolithic;
- kv/conv/state plants differ 24/24;
- n=N is refused.
No speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Design 8.6 step 4. Before: the plan assumed the router could floor its RTX-held estimate to vLLM's 832-token hybrid
block. Live check on the svc-final RTX service: a 4,401-token prompt re-sent with ~870 tokens appended hit 3,328
tokens (4 x 832, one 4096-budget chunk), not 4,160, so mamba-align hits land on chunk ends. An 832 floor would
have made TT export from 4096 while the RTX held 3328, and the connector would have refused every such handoff. The
router now floors to 3328 (its estimate then equalled the server's hit counter).

- router.py: /v1/chat/completions, /v1/completions (SSE passed through byte for byte), /v1/models, /health,
  /router/stats; HF tokenizer + chat template (ids equal to the RTX /tokenize on 7 cases); per-session prefix
  tracker (LCP with what was last sent, LRU within the 341k KV pool); uncached >= 5120 -> TT export
  (stream C's pd_export API: prompt[:-1], max_tokens 1) -> broker poll -> RTX with
  kv_transfer_params {tt_handoff, n_tokens, prefix_tokens}; every failure falls back to a plain RTX request;
  one PD_ROUTER JSON log line per request. The TT path is off by default and UNVERIFIED end to end.
- replay.py: agent-sessions / agentic-pi / JSONL traces through the same policy and tracker under the 8.4 cost
  model with FIFO TT, link and RTX-prefill queues (ESTIMATE record).
- 22 unit tests with mock backends, plus BrokerProbe against stream B's real broker/receiver/sender on loopback.
- PD-BUILD-CONTRACT: the router's calls, and proposals to A (prompt-tokens details), B (TCP status) and C
  (export outcome in the response).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the TT->HF mappings pdsplit and the connector assume (KV head order, GDN value-head order, which conv
rows, state axis order) were UNVERIFIED, and the export had only run in ttsim. The cards now show:
- boot self-test exact with its must-differ branches in the same boot;
- dump4k/dump32k/lan32k-cold exported over the LAN to cfx-llm1, every frame's xxh64 verified
  (952 MB per 32k export, 104-107 MB/s on 1 GbE);
- B8/B1 32k sweep, export engaged-but-unused vs the same overlay with export off (new arm
  s12phv-pd-export-off): TG/user -0.2%/+0.1%, PP +0.6%/-0.1%, identical MTP acceptance;
- every default in connector/layout.py holds against a CPU reference prefill of the real dump
  (cos 0.995+ K, 0.975 V bfp4, conv 0.9999, state map unique), with must-differ configs failing.

Also: the sender now reconnects and resumes (wire v1 RESUME) after a dropped connection and interoperates
with stream B's transport receiver (CPU-tested; the card windows ran 9c0dc3b4). ref_check.py rebuilt the
HF rotary module, which a meta-device init had left without RoPE.

Record: bench/runs/pd-export-card-20261031T2014Z.jsonl

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Stream B's write_stream and Sender wrote END blocks = number of KV frames, while stream C's
producer (and the contract ruling) count 2048-token TT blocks and carry kv_frames separately.
Both now follow C; tests assert blocks/kv_frames on a recording and on a 19-block loopback.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the connector had only run on a tiny hybrid without MTP. On the real TP=4 ThinkingCap engine it
(1) classified all 16 attention layers as MTP, because the eagle (MTP) group holds them too -> per-layer test;
(2) OOMed on a 4k import: a side stream has its own allocator pool and the 3080s have ~1 MiB outside vLLM's
reservation -> import on the compute stream by default (import_stream=side keeps the old path).
After both, stream C's real dump4k/dump32k import in 0.03/0.07 s and decode coherently.

Router: /tokenize passthrough (bench clients), --handoff-mode boundary (design 2.3 fallback (a)),
--force-cold (gates: complete handoffs, fresh RTX cache_salt). RTX: pd-handoff-broker user unit,
decode-serve.sh KV_TRANSFER_CONFIG. TT: s12phv-pd-export-tc = s12phv-pd-export with the model pinned;
the export arm already serves ThinkingCap G2 (renders identically, same cache as production).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Window 1 showed TT answers its max_tokens=1 request only after the other requests' prefills (B8/32k: all
TT answers at 41.5 s) while each export is complete much earlier; the router waited for the answer.
--overlap races TT's answer against the broker's complete. pd_records.py adds the TTFT split and
per-stream TG (serving-bench reports no co-resident window when P/D arrivals are staggered).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before this, the P/D path had only been shown in pieces: TT export on dumps, the wire in loopback, the connector by
replay. Two card windows on cfx-llm0 (prod 21:55-22:29, 22:38-22:53 CET, restored both times) ran it end to end
through the router: 205 exports, 0 failures, 0 router fallbacks.

What the evidence says:
- B1 TG/user is 3.7-9.1% below the all-RTX arm with the connector loaded, so the 5% target misses at 4k and 32k.
- TTFT at 32k is 13.8 s. That misses 9 s, and 8.2 s of it is the 1 GbE wire.
- G7 GSM8K 58/60 vs 58/60 and retrieval 1.0 both PASS.
- G9 MTP acceptance FAILS: B1 -5..-9%, B4/B8 32k -17%. The likely cause is the zeroed MTP KV for imported positions.
- Fallback (a) recovers TG to within 0.8-1.6% at 6.1k and 30.7k, but only within 4.7% at 16k.
- The connector alone costs 4.6% at B1 (ABBA).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: every P/D-vs-TT number came from fixed-B cells (B1/B4/B8 x 4k/32k, all streams at t=0), which say
nothing about a saturated server under agentic traffic (growing contexts, shared heads, think time).
This adds the harness (infbench's measured agentic-coding profile, open-loop session arrivals, token-exact
prompts from the agent-v1 corpus, one record per load level), the cfx-llm0 window driver (with guards
added after a race with pd-r2's window at 00:44 CET), the P/D sweep plan, and a step-level simulator with
fit/validate/project for the 10/25/40 GbE projections. No measurement yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: §8.8 blamed the P/D MTP acceptance loss on the zeroed drafter KV, but had not
isolated it. It proposed a 2048-token MTP tail with a 2048 attention window
(§1.5) as the fix.

Evidence (bench/runs/pd-r2-20261101/, §8.9):
- Zeroing the RTX MTP KV over the prompt on all-RTX requests reproduces the
  loss: -10% at 4k, -12% at 32k. A real 2k or 8k tail does not recover it
  (-6%, -9%). A 2048 MTP window (PD_MTP_SWA, FlashInfer subclass) lowers all-RTX
  acceptance by itself (-6%, -10%), so it is not shipped. G9 needs real
  full-prompt MTP KV, e.g. TT warm-span over the whole prompt plus an export.
  Still FAIL.
- QWEN36_PD_EXPORT_FIFO: exports go on the wire oldest first. B4/32k TTFT p50
  44 -> 34 s, B8 96 -> 69 s. The last stream stays link-bound.
- prompt_guard: router and engine middleware return 400 on prompt-logprob
  requests. The engine survives.
- lean_rpc: the connector's per-step all-rank collect drops from -3.7% to -1.0%
  decode steps/s at B1 4k (n=8 per arm).
- 32k zstd is lossless 1.22x; 9 s on 1 GbE needs 2.45x. It needs export/prefill
  overlap or a faster link (estimates).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
TT-only (s12-prefix-host-vsplit-sf from master 89806b89, cfx-llm0 window 01:41-02:53 CET): under the
agentic profile TT saturates between 2 and 4 sessions/min; TG/user is 37 at 1/min (stalled by other
sessions' prefills), not the 66-70 of the fixed B1 cells. Sim calibrated to it at 13% mean |error|.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the RTX decode engine drafts with the native MTP head, which is Qwen3.8's (not retrained on
ThinkingCap) and int4 in the served AutoRound checkpoint (rel-L2 0.11 vs bf16, measured by mk_verifier --check).
This adds the tools to measure public drafters and a bf16 head on the RTX target, and to build
self-distillation data held out from every eval corpus. decode-serve.sh gains an inert MODEL_DIR override.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the frozen RTX decode arm was taken to be bandwidth- and GPU0-throttle-bound
(§8.3). Profiles show it ran at 24-36% of the per-rank roofline and was launch-bound:
FlashInfer on sm_86 declares only UNIFORM_SINGLE_TOKEN_DECODE, so with MTP vLLM
forced PIECEWISE graphs and the ranks waited on each other's CPU inside the all-reduce.

Backporting vllm#60532 (fa2 decode of the uniform K+1 verify, UNIFORM_BATCH, fp8 KV
layout unchanged) gives FULL graphs. Capture sizes are capped at 32 and prefill chunks
at 2048 to keep the KV pool (333k) out of B8/32k thrash. Local-argmax drafts carry a
balanced 32k draft vocab (B1 step -12%). The frozen service, connector loaded, measures
TG/user 135.8/122.9 (B1), 122.9/98.6 (B4), 81.3/62.1 (B8) at 4k/32k. GSM8K T=1.0 59/60
vs 58/60 PASS. Retrieval 1.0. Real TT dumps import.

These levers are now decode-serve.sh defaults. arms/legacy-svc-final.env restores the
old arm. Older screen arms assume the old defaults; arms-as-run/ holds what each boot
ran. PD-SPLIT-DESIGN §9.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts:
#	docs/PD-SPLIT-DESIGN.md
#	tools/pd-split/rtx/decode-serve.sh
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Screen inputs for round 2, not yet measured:
- RTXOPT_SEQLEN_BOUNDS loads 14 vLLM modules patched with #57352 (rebased onto 0.32 +
  #60532; one warmup hunk re-placed by hand). It removes the per-step seq_lens D2H sync.
- RTXOPT_DRAFT_VOCAB_MAX_ROWS keeps the full draft head above M rows, so B4/B8 should
  stop losing acceptance.
- SPEC_EXTRA enables dynamic K.
- arbench times FlashInfer PCIe IPC against NCCL protocols at decode message sizes,
  inside CUDA graphs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed before: P/D at 1 GbE beats TT-only on long contexts and 40 GbE would make it clearly better. Measured under
the agentic open-loop trace: all-RTX is past saturation at 1 session/min (TTFT p50 35 s, TG 13), TT-only saturates at
2-4/min, and P/D at 1 GbE is broken by a connector import OOM (whole-handoff torch.empty with ~33 MiB headroom on the
frozen RTX config) plus a tracker that keeps failed handoffs as RTX-resident. Calibrated sim (TT 12%, RTX 14% error;
P/D end to end not validated) says, with the import fixed, 10 GbE captures nearly all of the gain and 40 GbE adds
<=0.12 SLO attainment: ESTIMATE.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Round 2 showed the G9 loss is the zeroed RTX drafter KV and that a 2k/8k tail or an MTP window cannot recover it.
This ships TT's own MTP-layer KV for the whole prompt instead:
- TT: arm s12phv-pd-export-mtp warms the MTP span over the whole prompt (QWEN36_MTP_WARM_TAIL_SPAN 4 -> 16, 32k)
  and QWEN36_PD_EXPORT_MTP stages the MTP KV blocks like a 17th attention layer (boot self-test exact/must-differ);
  the last warmed row pairs with pd_export.next_token (vLLM's drafter convention) instead of TT's argmax.
- wire v1.1: kind 9 MTP_KV, opt-in per request, END lists the blocks; receiver/broker/DirSource judge completeness
  with END.
- RTX connector imports MTP_KV into the draft layer (zeroes only what TT did not send); tt_mtp_dump diagnostic.
- router --tt-mtp-kv; e2e/r3_check.py (drafter-KV cosine vs native, G8); mtp_probe pd/pd0 arms; pd-tests r3 phases.
Host tests: 8 new exporter/wire tests pass (47 total with transport).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The review found a staging exception would abort the whole export (attention KV already sent) and that a TT
prefix hit above the RTX's prefix leaves [prefix, hit) zeroed. The first now skips the MTP KV only; the second is
documented and reported in END (mtp_kv_tt_hit), with mtp_kv_stage_s for the engine-thread staging cost.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: _launch allocated one device buffer for all K (then all V) bytes of a handoff:
308-352 MiB at 51k-84k tokens. The FULL-graph rtx-opt config leaves ~33 MiB outside
the KV pool, so traffic-bench saw 5 of 29 P/D requests fail with an import OOM
(#334, 2026-11-01 04:13).

Now the staging is flushed every import_chunk_mb (default 16; 0 = old behaviour).
Same-stream order makes the freed chunk safe to reuse. On the frozen service, dump4k
and dump32k replays give byte-identical handoff continuations to the unchunked import.
Four concurrent 32k imports: 0 failures, 0.08-0.09 s each.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The traffic bench (PD-TRAFFIC-BENCH §3.3) found two P/D blockers on the frozen rtx-opt config:
- the connector staged a whole handoff in one device buffer (114-352 MiB/rank) with ~33 MiB free, so every
  handoff >= 51k tokens OOMed. Now every packed byte (attention KV and the v1.1 MTP KV) goes through one
  fixed staging buffer allocated at registration (staging_mib, default 8; alias import_chunk_mb), copied and
  unpacked chunk by chunk, so import scratch no longer grows with the prompt. Supersedes opus/rtx-opt dd69a905's
  16 MiB per-chunk allocations (still dynamic). Banner TT_HANDOFF_BOUNDED_IMPORT engaged.
- pd-router recorded RTX residency when it routed, so a failed handoff left the session resident and its next turns
  cold-prefilled 50-85k tokens on the RTX. Residency is now recorded only after the RTX produced a token (stream or
  non-stream, no error event); a failed/zero-token request forgets the session.
- default threshold 5120 -> 8192 (best on 1 GbE above 2 sessions/min, §4); sim and pd-plan defaults follow.
replay_dump.py --tile K builds a K x 32k handoff from a 32k dump for the 128k bounded-import test.
Host: router 46 passed; exporter/transport/connector-cpu/pdsplit 64 passed. GPU tests pending the cfx-llm1 claim.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pd-r3 (opus/pd-r3 b00a9f6e) owns the TTHandoffConnector. Its bounded fixed-buffer import
also accepts import_chunk_mb and replaces this change. Reverting here avoids an
integration conflict. rtx-opt no longer edits tools/pd-split/connector/.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
All cells n=1, cool-started; TG/user (B1/B4/B8 x 4k/32k), control first:
- control 142.1/123.8, 114.6/104.3, 80.1/61.3
- +vllm#57352 145.7/136.0, 127.9/96.5, 83.1/63.0. B1 step 17.7 -> 16.0 ms (4k),
  19.0 -> 17.5 ms (32k). ABBA next.
- K=4 (capture 40) and dynamic K (K4 at B<=4): lower TG; B8/32k thrashes (pool
  326k).
- K=2 is worse at B4.
- Draft vocab only at <=3 rows: acceptance up at B4/B8, TG not up.
- Triton fp8: the patched Triton breaks Inductor autotune (PassManager::run failed).
- arbench: only NCCL default finished, 92.8 us at 320 KB (11.9 ms per 128 calls).
  The FlashInfer run failed on its single-stream guard (now fixed). NCCL_PROTO=LL
  hung (240 s cap per run now).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The traffic-bench re-run shows handed-off sessions' follow-up turns taking 30-180 s on the RTX (local prefix hit
rate 9.8%), as if they cold-prefill; RTX-local sessions hit. Hypothesis: align-mode mamba state is missing at block
boundaries of an imported prompt. This probe measures it with the prefix-cache counters.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The traffic-bench re-run (bounded import + tracker fix) completed every import but stayed unusable: TTFT p50 57 s at
1 session/min. Two more defects:
- vLLM's hybrid prefix cache (align mode) keeps the GDN state only at C(N) = 832*(floor((N-1)/832)-1). An N-1 import
  ends past C(N), no state is kept, and every follow-up turn of a handed-off session cold-prefilled on the RTX
  (measured: 0 of 32,129 reusable tokens hit vs 30,784 native). Importing <= C(N) restores native hits (N=32001 and
  25001, exact boundary measured). New router --handoff-mode ckpt, now the default: TT prefills min(C(N), N-1-tail),
  the RTX the last 833-1,664 tokens.
- The broker never freed handoffs nobody consumed (router fallbacks after 300 s). Three filled the 10 GiB arena and
  every later handoff stalled 600 s. Receiver.drop (broker op, sent by the router's probe when it gives up; a later
  resend is refused) and a TTL reaper (--ttl-s 300: untouched = no frame and no poll).
Host: transport 13, router 48 passed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: after round 1 the B1 step was believed to be launch- and bandwidth-bound and
already in FULL graphs. A per-step seq_lens D2H copy in the FlashInfer builder still
blocked the CPU every spec step.

The #57352 backport plans fa2 from CPU bounds. ABBA (n=2): B1 133.8->146.2 /
122.4->139.9, B4 123.1->124.5 / 100.1->104.6, B8 flat. Acceptance and PP unchanged.
GSM8K T=1.0 on the exact service config (pd-r3 decode.env + #57352): 57/60 vs 58/60,
b=1 c=0, PASS. Retrieval 1.0. Exact frozen service: TG/user 149.5/139.8, 130.3/103.3,
79.3/62.6 (B1/B4/B8 x 4k/32k).

Rejected: K=4, dynamic K and K=2 are worse at T=1.0 acceptance, and both K=4 variants
thrash B8/32k. The draft vocab limited to small batches is neutral. Triton fp8 does not
boot.

The B8 all-reduce microbench (in CUDA graphs) puts FlashInfer IPC at 64 us at 320 KB,
NCCL at 93 us and NCCL LL at 105 us. No NCCL setting wins. What is left is an fp8 IPC
kernel or an x16 slot for GPU0. PD-SPLIT-DESIGN §9.6.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Traffic-bench re-run #2: at 2 sessions/min the constant 340,938-token tracker trusted prefixes the RTX had evicted.
- live capacity (default on in the CLI): poll RTX /metrics; capacity = trust * (pool * (1 - kv usage) + in-flight
  RTX prompt tokens).
- learn(): on an RTX-routed request whose usage.prompt_tokens_details.cached_tokens falls short of the predicted held
  prefix, trust *= 0.85 (floor 0.3); +0.02 per hit. Streams get stream_options.include_usage so the count arrives.
  Needs --enable-prompt-tokens-details on the RTX.
- --overflow-tt: a TT-bound request while RTX KV usage >= --overflow-usage (0.85) is served end to end by TT; the
  session sticks to TT and is dropped from the RTX tracker.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vLLM 0.32's native CPU offloading supports the hybrid mamba align groups (resolve_mamba_align_size) and
MultiConnector supports HMA, but on CUDA its host tier is an mmap in /dev/shm, which is off limits on cfx-llm1.
PrivateCPUOffloadingSpec turns the shared region off, so each TP worker pins its own host tensor.
r3-deploy.sh HOSTTIER_GIB=N writes that config, refuses if MemAvailable - N < 24 GiB, and every r3 env now passes
--enable-prompt-tokens-details for the router's cached-token self-correction.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed before: a public block drafter (DFlash2/DSpark, acceptance 3-4) might beat native MTP K=3 on the RTX target.
Measured (claim 11-01 10:58-12:08): beside the int4 target they shrink the KV pool 337k -> 90k/48k tokens even at fp8,
so B4x32k/B8 cannot co-reside, and B1 TG is 25-33% lower; agentic B1 32k is parity at best. bf16 MTP head ~ int4 head.
Decision: train the native MTP head with KV-producing parts frozen (keeps TT MTP-KV export valid).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The RTX evicts LRU, so a session whose own prefix missed means every session idle longer is gone too; trust alone
lowered capacity globally but kept those stale entries ranked first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: the RTX's 333k-token pool forces 50-85k re-prefills under real traffic and a host tier needs LMCache.
Evidence (cfx-llm1, frozen config): vLLM's native OffloadingConnector in MultiConnector with TTHandoff, private
pinned host tensors (32 GiB, no /dev/shm), reloads the GDN checkpoint after 420k tokens of eviction, for native and
handoff-imported sessions, output equal to the GPU-hit repeat; B1/B8 x 4k/32k TG/user -2.2..+2.0% (n=2).
Defect: lean_rpc starves the offloading async load (request deferred forever); deploy turns it off with the tier.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The offloading tier stores every computed block, so it is inclusive of the GPU pool; with only the GPU term the
router would hand off (TT prefill) sessions the RTX can reload from host RAM in ~1.3 s at 32k.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: RTX prefix capacity is the P/D blocker under real traffic. Evidence (pdr3-tb3, same seeded traces): with a
32 GiB host tier and live router capacity, 93% of RTX-routed prompt tokens hit; 2/min 103/111 ok, 4/min 130/151 ok,
TTFT p50 3.2 / 1.4 s, TG/user p50 66.6 / 68.3. The p90-p95 (130-200 s) and 16 timeouts are handoffs queued on the
1 GbE link (TT prefill 1-3 s, broker wait 100-300 s), so RTX-usage overflow would rarely fire. Adds router
--link-aware: count in-flight handoff bytes; when the backlog makes a handoff slower than an RTX local prefill,
prefill on the RTX, or with --overflow-tt serve the session on TT end to end. Host-tested, not measured.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: B8 TG/user 47.7 (4k) / 17.6-18.0 (32k) in both arms, vs rtx-opt r2's 79.3 / 62.6 on cells.sh.
Evidence: per-stream records show first tokens staggered 18-150 s at 32k and all streams ending together; early
streams decode at 4-12 tok/s between the others' prefill chunks. The last-admitted stream (co-resident with the
other 7) runs 79-82 tok/s at 32k, 82-87 at 4k, in both arms. No config regression; base vs host32 still equal.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
All four GPUs sit at the 160 W limit while busy (mean 159.3-159.6 W), SM 1482-1662 MHz, GPU0 max 68 C.
The 220 W half is run by the coordinator under the pd-r3 claim.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
n=1 per cell, back to back; no GSM8K/retrieval gate at 220 W; stability soak open (Xid 79 brownout risk).
160 W restored and confirmed on all four GPUs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: the 1 GbE backlog is the P/D tail, so rerouting congested handoffs helps. Evidence (same seeded traces):
A (--link-aware --rtx-host-tokens) moved 404k tokens onto RTX prefill and is worse than tb3 at both levels
(TTFT p50 16.3 / 80.7 s, TG p50 34 / 30). B (+ --overflow-tt, TT serves sticky sessions end to end): 356/356 ok,
TTFT p50 1.7 / 1.0 s, p95 43 / 55 s (tb3 178 / 202), out tok/s +11% / +54%, TG p50 53 / 39 (tb3 67 / 68).
Sticky routing is too coarse (the opening burst pinned 16 sessions to TT).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pdr3-tb4a: link-aware rerouting onto RTX local prefill starved the RTX decode. pdr3-tb4b: overflow to TT removed
failures and the TTFT tail, but the opening burst pinned 16 sessions to TT for the whole run (TG p50 39 at 4/min).
Now a sticky session returns to normal routing once the handoff backlog is <= --sticky-release-s (5 s) and RTX KV
usage is below --overflow-usage. --rtx-host-tokens stays opt-in (default 0; tb4a: it overestimated RTX residency).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The brief assumed VLLM_MARLIN_INPUT_DTYPE=int8 reaches the served int4 layers. On vLLM 0.32 it does not: the model
loads as quantization=inc (auto-round), and INCWna16Scheme builds AutoGPTQLinearMethod directly, never calling
get_marlin_input_dtype. RTXOPT_MARLIN_M32=a8 therefore sets the env at sitecustomize import and also post-patches the
INC scheme to set input_dtype = get_marlin_input_dtype(prefix) on the inner method (the assignment auto_gptq.py makes),
with RTXOPT_MARLIN_A8_SKIP=<regex> wrapped into that name in marlin_utils and auto_gptq. Fails closed: untagged Marlin
layer, act_type not int8, zero tagged layers, f16mma (not built), bad mode. Banner per model load:
RTXOPT_MARLIN_M32=a8 engaged (pid N) layers=<n> ... scale_relerr_max=<x> (marlin_act_int8_process_scales, in bf16).

CPU numerics on 4 real served layers (rank-0 shards, M=32, fp32 out vs fp64 ref): stock bf16 Marlin 1.4e-3,
a8 0.9e-2 gaussian / 2.6e-2 with 1e3 outlier channels, f16mma (emulated, worst-case sequential fp16) 0.66e-3;
int16 scale levels cost up to 1.27% per scale; a8 int32 accumulator peaks at 2.4% of 2^31. No speed number yet:
marlinbench.py (6 distinct (N,K), 268 calls/step at TP=4) needs a #334 claim. f16mma is not built, per the brief
(only if a8 fails the step-0 gate or regresses B1/B4).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: at T=1.0/top_p .95/top_k 20 the RTX drafter proposes the greedy local-argmax token and the rejection sampler
treats it as one-hot, so a draft is kept with probability p(draft). Stock vLLM's probabilistic drafts refuse local
argmax and gather the full 248k vocab every draft step.

This draws each T>0 draft from the request's own truncated q (per-rank top-20 of the balanced dv32k head, one
all_gather of [rows, 42] fp32, temperature, top_k, top_p, vLLM's Gumbel noise keyed by token id) and stores exactly
that q (pre-temperature fp32, -inf elsewhere) for the stock rejection kernel, so the output stays exactly p and
acceptance becomes sum min(p, q). T=0 drafts stay the stock local argmax. Static shapes; padded graph rows write
to a sink slot; buffers reset after capture_model.

sitecustomize gets the list-based patch registry (several levers per module) and _install_dv exposes its
sub-matrix (model._rtxopt_dv). opt-ab.sh enforces an arm's EXPECT_BANNERS on every TP worker.

Evidence: CPU only. tests/test_prob_draft_ref.py passes (2e6 trials: chi-square vs p, acceptance = sum min(p,q)
within 3 sigma, must-fail caught, tp=4 merge, greedy == stock reduction, write path); the Gumbel kernel equals
vLLM's gumbel_sample under the Triton interpreter (also with vLLM 0.32 on cfx-llm1, no GPU); the hooks land on
the real overlay-sl classes. No speed or AL number yet (bench/runs/pdrtx-drafting-20261102/prob-draft-build.jsonl).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the B8 draft head was the bf16 balanced 32k sub-matrix (80 MiB/rank), and the full bf16 head (AL 2.85-2.94,
r2dvb3) beats it on acceptance (~2.55-2.7) but reads 4x the bytes. A wider vocab at today's bytes needs fewer bytes
per row, so the balanced sub-matrix is now quantized on device at load and read by Marlin:
- RTXOPT_DRAFT_HEAD_Q=int8 (per row, uint8b128) or int4 (RTN g128, uint4b8) with RTXOPT_DRAFT_VOCAB=N; the bf16
  sub-matrix is freed inside load_model, before KV profiling. get_top_tokens keeps the balanced (value, gid) argmax;
  rtxopt_local_topk(hidden, k) is exposed for lever D.
- RTXOPT_LMHEAD_Q8=1 + RTXOPT_DRAFT_HEAD_Q=shared: the target lm_head shard is int8 Marlin through a quant_method
  replacement after the V2 runner's load_model; the bf16 storage is dropped (zero-stride view keeps shape) to free KV
  pool. Lossy for the target: gated as E-share.
- _install_dv is split into _dv_cut / _dv_balanced_rows; flags off it is unchanged (CPU tp=4 emulation on the real
  lm_head: identical sub/gid/top tokens vs the frozen pre-refactor copy, N=32768 and 65536).
- The rank file keeps 65,536 ids, so N>65,536 (E2/E3) fills with unranked ids in ascending id order; only with
  RTXOPT_DRAFT_HEAD_Q set (flags off still raises).
- Arms dhead-bf16-64k (phase-0 pre-screen), dhead-q8-64k (E1), dhead-q4-128k (E2), dhead-q4-248k (E3), lmhead-q8
  (E-share) carry EXPECT_BANNERS/EXPECT_POOL_MIN; arm-check.sh fails closed on a missing banner or pool < 330,000.
Host-side record: bench/runs/pdrtx-drafting-20261102/draft-head-quant-host-test-20261101T2135Z.jsonl (no GPU,
no speed number; int8 per-row relerr 0.95%, int4 g128 11.5% mean).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: every MTP verify step all-gathers the full [rows, 62,080]/rank bf16 target logits, copies them to
fp32 and runs the full-vocab top-k/top-p and rejection kernels, although the cells workload (T=1, top_k 20)
only ever samples from 20 tokens. The phase-0 attribution of the on-hardware ofa-prof1 B8/4k traces puts
that path at 1.43-1.62 ms/step per rank (gate: >= 0.8 ms), and shows it runs eagerly after the FULL graph.

Now, behind RTXOPT_SPARSE_VERIFY=1 (rtxopt/sparse_verify.py, chained onto the model_runner hook in
sitecustomize.py so it composes with overlay-sl): get_top_k_tokens(k=KLOC=32) replaces compute_logits on
verify steps, and the stock apply_sampling_params + rejection_sample run on [rows, KLOC+1] compact rows
(candidates sorted by vocab id + an 'other' column), mapped back to vocab ids. Exact for T=0 and for
1 <= top_k <= KLOC; logprobs, penalties, bias, bad words, min_p, structured output, thinking budget and
larger top_k fall back to dense per step, counted by reason every 1000 steps. Engine configs it cannot
serve refuse to boot; a GPU self-test of the compact kernels precedes the banner.

Evidence: CPU reference sampler, dense vs compact - greedy bit-identical incl. bf16 max ties, identical
accept/reject decisions with identical uniforms (one-hot, truncated and full q), chi-square p>0.1 over 2e6
trials per case; must-fail shows the brief's pre-temperature 'other' for q is wrong at T!=1, so 'other' is
T*logsumexp(q_rest/T). Import smoke against vLLM 0.32 + overlay-sl on cfx-llm1 (CPU only) passes.
opt-ab.sh now fails an arm whose EXPECT_BANNERS banner is missing.

Owed (needs a #334 claim): deployed-config profile with record_shapes, greedy bit-identity on 16 prompts,
GSM8K/retrieval gates, ABBA, cand profile.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: B8 decode on the 3080s spends 11.6 ms/step in the all-reduce (8.25 ms isolated, 64.4 us per 320 KB call on
FlashInfer's tuned PCIe-IPC STAGED_RING), and the only levers left were "fewer bytes or GPU0 on x16" (PD-SPLIT §9.6).
A symmetric reduce-scatter/all-gather moves 1.5 V each way on every link, so GPU0's x8 link bounds the call.

This adds rtxopt/ar_asym.py (Triton, no build): GPU0 owns frac0 of the vector (default 0), so on its x8 link it moves
only V each way (-33%) while the x16 ranks take 5/3 V; all remote traffic is posted PCIe writes, every spin is on
local memory (ld.acquire.sys), signals are st.release.sys after fence.acq_rel.sys; per-program epochs in device
memory make it CUDA-graph-replayable; fp32 sum in rank order makes the result independent of who owns what. int8
sub-arm: group-128 int8 payloads with bf16 scales. Wired through sitecustomize (CudaCommunicator.all_reduce for
bf16 contiguous TP=4 inputs <= RTXOPT_AR_MAX_BYTES; set up + fail-closed self-test after kernel_warmup, before
capture; banner per worker), arms ar-asym / ar-asym-int8 / ar-asym-prof, EXPECT_BANNERS check in opt-ab.sh,
arbench backends asym / asym-int8 / customar / symm-2shot / symm-1shot / fiq and the step-0 driver arbench3.sh.

Evidence so far is host-side only, no speed number: Triton 3.7.1 AOT for sm_86 compiles all 8 rank x mode variants
with 0 spills, 40 regs, 128-bit vector stores; a 4-rank protocol simulation (all sizes 1..40 tokens, frac0
0/0.1/0.25, random interleaving across the int32 epoch wrap) shows exactly-once ownership, bit-identical ranks, no
slot reuse before consumption and GPU0 = V each way at frac0=0. int8 error: 0.90% on the self-test data (gate 1%),
1.1% Laplace, 2.7-3.5% with 0.1% x50 outlier channels, so the int8 arm is an accuracy risk for the gates.
Step 0 (arbench3.sh), ABBA, gates and the profile need a #334 claim.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed before: every bad configuration fails the boot. A malformed RTXOPT_MARLIN_A8_SKIP regex raised
inside sitecustomize, which site.py only prints, so the a8 arm and every other rtx-opt lever
(fa2 spec, draft vocab, seqlen bounds) would have silently stayed off. Now the regex error, or any
marlin_m32 import failure, makes the Marlin modules raise on import while the other levers still load.

The "0 int4 layers" check also fired on the drafter's load. A bf16 MTP head (rtx-drafter's
ckpt-mtp-bf16native overlay or its fine-tuned head) has none, so a8 could not have been combined
with it. The check now applies to the target model only, the first load in a process. Untagged
Marlin layers still raise.

RTXOPT_MARLIN_M32=0 now means off, as for the other RTXOPT flags. The act_type assert is now a
RuntimeError. Hook tests: 14/14 on cfx-llm1 CPU against vLLM 0.32.0, run with the production overlays.
The numerics screen on the real snapshot matches the builder's record. No GPU was used, so there is
no speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: a failed vllm.triton_utils / gumbel import at module load set triton=None silently, and the first
failure would surface only as a RuntimeError inside the first draft CUDA-graph capture. Now _setup refuses at
load_model with the RTXOPT_PROB_DRAFT refused: message. Review re-ran the CPU exactness test (ALL PASS; 40 extra
contexts at T=0.7/1.0/1.3 give uniform chi-square p-values) and the Triton-interpreter Gumbel test against vLLM
0.32's gumbel_sample on cfx-llm1 CPU (no GPU). No speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the first GPU boot was the only test of the hand-built GPTQ pack, scale
permutation and marlin_gemm call. A layout error there would not crash: on E1/E2
it would only show up as a lower acceptance (one-hot greedy drafts keep the
output exact), costing an ABBA and possibly rejecting the lever on a bug.

Now QuantHead runs check_head while the bf16 rows still exist: seeded random
activations through the Marlin head vs an fp32 x @ dequant(q, s)^T reference at
512 row ids spread over every output column, raising above 2e-2 relative (or on
NaN), so the engine does not start. The value goes in the DRAFT_HEAD_Q and
LMHEAD_Q8 banners as selfcheck=. CPU test: a correct head passes (2e-3, bf16
output rounding) and a row-rolled one fails (1.5) for int8 and int4. Host test
re-run on cfx-llm1 CPU: ALL PASS, including the flags-off regression. No speed
or acceptance number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Why: at B8/32k the verify step is ~11 ms slower than at 4k (step 42.6 vs 31.9 ms, §9.6), which is about the extra
fp8 KV the attention class reads (8 x 32k x 8.5 KB/token/rank, estimate); FlashInfer's fa2 decode on sm_86 reads it
at an estimated ~200 GB/s. This adds the lever, default off, built and checked host-side only (no GPU used).

- rtxopt/attn_splitkv.py: _attn_split (grid B x NSPLIT x Hkv; NSPLIT(B) = ceil(128/B); per request
  min(NSPLIT, ceil(L/512)) splits computed on device; 32-row Q tile for the verify (24 real rows), 16 for draft
  passes (6); fp8 e4m3 -> bf16 by inline PTX prmt/and/shr/or + bf16x2 FMA by 2^120, exact for all 254 finite codes,
  never Triton's fp8e4nv type on sm_86; causal on the last q_len keys; online softmax) + _attn_merge (LSE merge,
  v_scale) into vLLM's output; static 4.2 MB workspace; no host sync, CUDA-graph safe.
- Hook (list-based registry in sitecustomize.py, so several levers can patch the FlashInfer module): builder
  __init__ runs a fail-closed warmup self-test (256 codes, B=2 kv 1000/999 q_len 4 and 1 vs the fp32 reference and the
  FlashInfer fa2 wrapper, causal+1 must-fail) and prints the banner; build attaches the device seq_lens/block table to
  decode-only uniform batches (q_len 1..4); forward runs the kernel there, FlashInfer everywhere else. FlashInfer is
  still planned every step (v1: correctness first). fi:<N> mode = decode_fixed_split_size override only.
- Found while building: the served FlashInfer page is the 64-token kernel block (MTP view (5720, 1, 64, 512) in
  serve-pd-r3-host32.log), not the 832-token attention block; the kernel takes the page from the builder and handles
  pages that tiles straddle (tested at 832).
- tests: aot_check.py (Triton 3.7.1 -> sm_86 with the JIT's divisibility specialisation: default (32,4,3) 168 regs,
  0 spills, 34.8 KB smem, cp.async-pipelined), test_attn_splitkv_ref.py (CPU, pure Python), test_attn_splitkv_interp.py
  (the real kernels in the Triton interpreter vs the fp32 reference: worst max abs 9.3e-3, mean 5.3e-4; mock-backend
  hook test), test_attn_splitkv_gpu.py (acceptance 1, for the claim window). attnbench.py: FlashInfer split variants
  vs the kernel under CUDA-graph replay. Arms: ctl-pdr3h32.env (deployed pd-r3-host32 config), attn-fd.env.

No speed number: nothing ran on a GPU. STEP 0 (profile >= 8 ms attention at B8/32k, attnbench) is still open.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The self-test printed 'selftest=ok calls=0' and the engaged banner when no capture size was eligible (e.g.
RTXOPT_AR_MIN_BYTES above every size), so an arm that routes nothing would pass opt-ab.sh's banner check and be
measured as if engaged. It now raises on every rank. decode-serve.sh treated RTXOPT_AR_ASYM=0/off as set (PYTHONPATH,
and a spurious conflict exit with PD_MTP_SWA) while sitecustomize treats them as off; both now agree.
Host checks re-run: py_compile, AOT sm_86 0 spills, 4-rank sim PASS, hooks PASS, no /dev/shm. No GPU, no speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Review of e99733aa: vLLM's kernel warm-up (worker/gpu/warmup.py) runs spec-decode steps with
SamplingParams.for_sampler_warmup() (logprobs, penalties, logit bias, bad words, min_p), so every warm-up
verify step takes the dense path and was counted as dense_fallback={logprobs: ...}. Acceptance item 6 asks
for dense_fallback_total == 0 on the cells workload, which the cumulative counter could then never show.
Warm-up batches (req ids _warmup_*) are now counted apart as warmup_dense; the stats line keeps the same
dense_fallback={...} format. CPU tests re-run: 83 ok, 0 failed. No GPU run, no new speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
An invalid RTXOPT_ATTN_SPLITKV raised inside sitecustomize. site.py swallows that
('Error in sitecustomize'), so the worker booted with no rtxopt patch at all (no
overlay, no draft vocab) instead of refusing. The hook is now always registered when
the flag is set and attn_splitkv.parse_mode raises in the worker's FlashInfer import.

The kernel's tl.dot takes bf16 Q and the loads assume unit-stride rows; the builder now
refuses a non-bf16 decode q dtype and forward refuses non-bf16 or strided Q/O instead
of failing in a Triton compile during graph capture or reading the wrong elements.
Host-side checks rerun (ref, interpreter, AOT, flag-off registry); no GPU number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts:
#	tools/pd-split/rtx/rtxopt/sitecustomize.py
# Conflicts:
#	tools/pd-split/rtx/decode-serve.sh
#	tools/pd-split/rtx/opt-ab.sh
#	tools/pd-split/rtx/rtxopt/sitecustomize.py
#	tools/pd-split/rtx/rtxopt/tests/aot_check.py
# Conflicts:
#	tools/pd-split/rtx/rtxopt/sitecustomize.py
# Conflicts:
#	tools/pd-split/rtx/decode-serve.sh
#	tools/pd-split/rtx/opt-ab.sh
#	tools/pd-split/rtx/rtxopt/sitecustomize.py
# Conflicts:
#	tools/pd-split/rtx/decode-serve.sh
#	tools/pd-split/rtx/opt-ab.sh
#	tools/pd-split/rtx/rtxopt/sitecustomize.py
The six lever branches each assumed their own base (base.env without the connector, or ctl-pdr3h32) and their
own copy of the shared sitecustomize registry. Merged here into one list registry (flag-off registry identical
to opus/pd's; all lever host tests pass on the merged tree on cfx-llm1 CPU), and every arm is rebuilt as
ctl-pdr3h32 + its flag lines so the ABBA control is the config production serves. decode-serve.sh gets the
rtx-drafter MODEL_DIR line the host copy already has. b8d-claim.sh backs up and restores both decode.env
(to pd-r3-host32) and the deployed files, so the rtx-drafter's next boot sees what it left.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: speculators' MTP FSDP trainer and vLLM's extract_hidden_states would run as-is on 4x RTX 3080.
Found: the hidden-state cache costs ~431 KB/token on this hybrid model (pool = 7.6k tokens); the trainer moved
fp32 embed/lm_head (4.74 GiB each) onto each GPU, lost the graph with frozen inputs under reentrant checkpointing,
and hung on batches with no supervised token. Patched; a 4k step still OOMs, so embed lookup now moves to the host.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: expiring TT stickiness would bring TG p50 back toward 66 while keeping B's tail. Evidence (pdr3-tb4c):
356/356 ok, TTFT p95 30.1 / 34.1 s (B 43 / 55), out tok/s 180 / 226, TG p50 43.1 / 39.2 (B 53.4 / 39.2). TG by route:
RTX 87, TT end to end 30; the link-backlog trigger still sent 39 requests to TT. Not adopted as default.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pdr3-tb4c: the old trigger (handoff estimate > untaken RTX-local estimate) sent 39 requests to TT, which decodes at
~30 tok/s/user vs ~87 on the RTX. Host-tested; to be measured in the next traffic window.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: one TCP stream per handoff with a fixed 8 MiB buffer, sized for 1 GbE. Loopback now shows the
transport does 3.4 GB/s on one stream and 3.8 GB/s on 2 (all xxh64-verified, CPU-bound, dev box, not a
LAN number). PD_STREAMS adds parallel streams with a single-stream resume fallback, and the receiver's END
waits for streams still draining. PD_SOCK_BUF_MB=0 leaves kernel autotuning on. Docs §8.11 cover what the
host agent needs for MTU 9000 and sysctls, and why the ckpt tail stays on a fast link.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the lever briefs estimated each acceptance lever separately and the deployed pd-r3-host32 arm sat at
AL ~2.6, B8 4k ~82 / 32k ~61 tok/s/user. The ABBA on cfx-llm1 (2-vs-2, same-day ctl-pdr3h32, n=4 ctl boots)
shows D (probabilistic drafts) and E1 (int8 N=65536 draft head) both raise AL at no step cost, and they stack:
combo B8 4k 95.5, B8 32k 71.0, B4 32k 110.2, B1 32k 154.1, AL 3.0, gates pass (GSM8K T=1 58/60, retrieval 1.0).
K=4, the int4 131k head and sparse verify are inert or worse on top (n=1 screens); ar-asym failed its
microbench gate (5x slower than FlashInfer at 32 tokens); the split-KV attention microbench gains <= 3% per
verify call at B8/32k and loses on the q=1 draft calls (estimate: inert in serving, not booted); Marlin a8
cuts the M=32 GEMM sum 28% but costs +9% at M=4 (its gate fails on the B1 rule; next claim measures it).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The ring treated head == tail as not wrapped and allocated over the oldest live frames. That
silently overwrote frames, and the later double free (KeyError) killed the cfx-llm1 broker's
reaper, so its 10 GiB arena stayed full. G9 window 1 (02:12) then stalled the smoke handoff for
300 s. Fixes: head > tail marks the not-wrapped case; the reaper logs and survives errors.
The regression test fails on the old ring. Broker and pd-rtx-decode restarted with the fix
(02:25, banners re-verified).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
K=4, the int4 131k head and sparse verify add nothing measurable on top of D+E1 (n=1 screens within +-3%,
K=4 -12% at B8 4k). Marlin a8's microbench cuts the M=32 GEMM sum 28% but costs +9% at M=4 (B1), so it
needs a served ABBA with the B1 guard; claim2.q (staged on cfx-llm1) runs it gates-first on the combo.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
G9 B1 (n=6): pd vs ctl acceptance is 2.327 vs 2.352 at 4k and 2.310 vs 2.368 at 32k, with TG/user unchanged.
B4 32k: one valid pd trial (2.689). The next batch hung TT in traced chunked prefill and fell back to the RTX.
B8, G8, GSM8K and retrieval did not run. Records and server logs are under bench/runs/pd-r3-20261101.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: _MTPWarm.begin()/begin_prefix() reset self._anchor for each user, which assumed the previous
user's span writes had drained. In a multi-user prefill step nothing drains them between users,
because the next blocking readback is the next user's. So a head step's queued non-blocking writes
lost their host tensors. Evidence: the only TT hang in 10 TT windows (pd-r3 G9 window 2) came after
the first 3- and 4-user steps at span 16. Six span-4 windows batched up to 6 users without a hang,
and the span-16 window 1 never batched and never hung. Mechanism not yet proven on the cards.
tools/pd-split/test_mtp_anchor.py fails on the old code. tt-window.sh now aborts the plan after two
faulthandler dumps: window 2 burned 33 min of production downtime on a hung engine. Window 3 runs the
gates window 2 never reached, B8 first with a ctl comparator, inside a 33 min plan cap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The combo's E1 int8 64k draft head is cut from the shared lm_head, which the
kvf-a/1 overlay leaves as the base blob; only the 15 mtp.* tensors change
(bf16, where the base serves int4). So pdq8 vs pdq8kv measures training plus
head precision; pdq8bf (bf16 native head) separates the two. b8d-arm.sh now
fails closed when an overlay arm's serve log does not show its MODEL_DIR.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Expected: a8 would add a few % at B8 on the D+E1 combo, and kvf-a/1 (lower val
loss) would lift AL. Evidence: a8 on the combo emits garbage ('terasteras...',
first GSM8K wave all hit 8192 tokens), so it has no speed number. kvf-a/1 on the
combo: AL flat (2.99 vs 3.00), TG B8 4k -2.2%, B4 32k -5.9%, B1 32k -5.8% (2-vs-2
ABBA); the bf16-native head shows the same loss (-3.8/-2.5/-5.8%), so the cost is
the bf16 mtp.* overlay (+0.7-1 ms/step) and the training adds no acceptance on
this corpus. Gates for kvf-a/1 pass (GSM8K T=1 58/60, retrieval 1.0). Combo vs
ctl over 6 vs 5 boots: B8 4k 94.8 vs 81.8, B8 32k 70.9 vs 61.6.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: every cfx-llm1 claim released to decode.env.pd-r3-host32 (B8 4k ~82
TG/user). The b8d ABBA and gates showed D+E1 (pdq8) is lossless and +10..+21%
in every cell, and the coordinator approved it as the default. Deployed on the
unit 17:27 CET: banners complete (FI_FA2_SPEC, SEQLEN_BOUNDS, DRAFT_VOCAB=65536,
DRAFT_HEAD_Q=int8, PROB_DRAFT, TT_HANDOFF/BOUNDED_IMPORT/MTP_KV, offload, guard),
B8 4k 95.1 TG/user. The dump4k broker replay is the same before and after; it has
no MTP_KV frames, so the TT MTP-KV import under pdq8 still needs pd-r3's window.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: hard/soft CE fine-tunes were expected to lift prob-draft acceptance. Offline pd-AL on the 64k E1
vocab shows both lower it; only the direct TV objective beats the stock int4 head (+0.2% after requant).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The smoke now fails unless the connector imported TT's MTP KV for the whole prompt. The mtpkv cosine
gate is 0.85 (window 1: 0.91-0.94; shift-by-one control 0.50-0.57). The greedy retrieval run is
optional, which keeps the window inside 45 min. r3-window-driver.sh waits for the window and its
restore, verifies both hosts and posts RELEASE on #334 even if the orchestrating session stalls (it
stalled after window 2).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The B4/B8 P/D TG figures (160-167) are per-stream solo decodes, because 1 GbE serializes the
handoffs; ctl's 26-48 include the RTX prefilling the other prompts. Neither is co-resident TG. Both
definitions are recorded. Window 2's hang did not reproduce over 13 multi-user steps with the anchor
fix.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Until now, P/D on a new link meant hand edits. The router's wire rate was a 117 MB/s constant, its
handoff target was hardcoded in the test scripts, and nothing checked the link before traffic used it.
The owner wants NIC day to be card installation only. So this adds:

- tools/pd-split/cutover/pd40g.sh: dry run unless APPLY=1, idempotent, a JSONL record per check.
  LINK=40g reads /etc/pd40g.env (nixos-llm #930); LINK=lan is today's 1 GbE path for the rehearsal.
  The bench uses signed nixpkgs tool paths substituted on the hosts, so nothing is built there.
  The bench volume fits the live broker's 10 GiB arena.
- router --link-mbs: the wire rate goes to the cost model (routing + link backlog) and to the banner.
- pd-tests.sh: HANDOFF_TARGET env (default unchanged).
- staged pd-router user unit + router.env template (production policy) + current decode.env;
  nix/serve-arms/s12phv-pd-export-mtp.json (export arm with the anchor fix), not deployed.
- rehearsal.sh: detached LAN dress rehearsal that posts its own CLAIM/RELEASE on #334.
- docs §8.12: NIC-day runbook, expected rates (marked as estimates), gates, owner decisions.

The LAN preflight passed with 0 failures (record included). No speed number is in this commit.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
install used to rsync transport/ and connector/. Those are the running broker's and vLLM's code, so
the next restart of those services would have changed them. It now ships only router/ and e2e/.
The rehearsal's RELEASE trap now writes DONE-plan first, so an early abort ends the TT window
instead of holding production down until MAX_TEST_S (now 1800 s, keeping the window under 45 min).
Staged router command line checked on cfx-llm1 (port 8799, prod TT, no handoffs): banner shows
handoff_target, mtp_kv and link_mbs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The rehearsal's bench step reported 4.9/3.7/3.0 GB/s at 2/4/8 streams on a 1 GbE link. The
multi-stream path was assumed to be at fault, but the req_ids were. Every stream set reused
lan-0/lan-1, which the broker still held from the 1-stream set, so RESUME said the receiver
had every frame. wire_bytes was 0 and the 'rate' measured the producer. iperf3's '0.0 MB/s
PASS' was a firewalled port: the client hung until timeout, and iperf3 still printed JSON
with bits_per_second 0 plus an error.

Fixes:
- bench_lan: --id-prefix, plus wire_MBps and a 'valid' flag (all payload on the wire, no resume).
- pd40g.sh bench: per-set prefixes. A figure that is invalid or above LINK_CEIL_MBS (lan 125,
  40g 5000) is a FAIL and is kept out of LINK_MBS. iperf3 is SKIP when unreachable and FAIL
  on error or zero.
- enable refuses a LINK_MBS outside (0, ceiling].

LAN re-run: 115.1/114.6/115.6/115.0 MB/s at 1/2/4/8 streams. The rehearsal records (all steps
PASS, 24.7 min TT downtime, replay 107/107) and the TTFT attribution go in docs §8.12.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The 1 GbE rehearsal sent 98 of 112 requests to RTX local prefill (threshold 8192 plus
link-aware reroutes), so RTX decode queued behind prefill. With the 40 GbE link up
(bench at MTU 1500: 2.46/2.50/3.03/2.71 GB/s at 1/2/4/8 streams, iperf3 -P 4 at
4.64 GB/s, all under the 5 GB/s ceiling), the staged router policy changes to
--threshold 0 and drops --link-aware. The RTX now only prefills the ckpt tail,
nothing-to-export follow-ups, and fallbacks when TT is down or the handoff is incomplete.

The template takes @THRESHOLD@ / @ROUTER_EXTRA@ so iterations can vary the policy.
iter.sh runs smoke -> enable -> pd-router -> replay -> rollback against a held TT
export arm. iter_summary.py writes one row per iteration (TTFT, TG/user, out tok/s,
TT PP, routes, fallbacks, handoff wait, link share).

The 40G preflight FAIL (rtx-decode) was pd-rtx-decode crash-looping after the
cfx-llm1 reboot: GPU2 BAR1 is 256 MiB, so P2P is NS and the FlashInfer PCIe-IPC
all-reduce fails. It runs on NCCL now (FIPCIE=0 in decode.env).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
r3_check.py hardcoded the LAN broker address, so on 40 GbE the MTP-KV gate exported to
192.168.88.125. That path is closed now that the runtime LAN rule is gone, so the handoff
dropped after 300 s and the gate failed. The smoke itself had used 10.10.0.2 and passed
(handoff wait 0.02 s). Re-run over 40G: MTP-KV gate PASS (cos K 0.96/0.93, V 0.93/0.91).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
t0 (threshold 0, 10 GiB arena) gave 17 handoff-incomplete fallbacks and 4 failed requests. The
link was not the cause (exports send at ~2.5 GB/s). Once every request was a handoff, 1-2 GB
handoffs waiting for RTX admission filled the 10 GiB arena. Receives then blocked in
arena.alloc, the TT exporter's FIFO wire order queued every younger export behind the stalled
one (fifo_wait 70-115 s), the router timed out at 120 s, and the fallbacks re-prefilled on the RTX.

t1 (PD_ARENA_MB=24576 in cfx-llm1 broker.env): 83/83 ok, 0 fallbacks, handoff wait p50/p95
0.05/1.28 s, link share of TTFT 0.6%. TTFT p50/p95 is 29.5/98.4 s. Of that, 97% is RTX-side
(ttft - tt_prefill - wire: p50 29.9 s), with RTX KV usage p50 0.75 / p95 0.98 and waiting
p50 4. That is admission-bound on the RTX KV pool, not link-bound.

receiver.py now logs every arena-full alloc wait (> 0.5 s) with the used bytes and live handoffs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The 11-03 export arm s12phv-pd-export-mtp predated master's cold-prefix levers
(ONESTEP, SNAP_PACK, CKPT_DEFER, HEAD_DEFER, KV_TIER_STORE_DEFER; R-2026-11-03-cold-prefix-l1234)
and HOST_SAMPLE_WHY. A production cutover to it would have dropped them. Its chain inherits
s12-prefix-host-vsplit-sf, so after the merge it serves production + PD_EXPORT + PD_EXPORT_MTP +
warm tail span 16.

model_runner.py conflict: master defers the step's GDN checkpoints (staged on device, completed
next step), while pd_export.after_prefill ships the step's final checkpoint to the receiver in the
same step. With an exporter present the runner now resolves the staged final checkpoints in-step
(prefix_ckpt_resolve, the same packed read the deferred path does), so only ONESTEP's mid
snapshots stay deferred there. Without PD_EXPORT nothing changes. The other hunks are unions
(imports, finished-request hooks, tier timing + export call, the nix mounts).

The arm toml lists master's new banners and absents. The generated serve-arm specs are regenerated
because their hashed sources changed; nix-spec --check passes for every spec. Not yet booted.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- G9 at 32k on 40 GbE with TT holding the export arm: the pd streams are no longer serialized by
  the link. AL ctl/pd: B4 3.090/2.969 (-3.9%), B8 2.983/2.943 (-1.4%). mtp_probe TG/user
  ctl/pd: B4 37.9/92.8, B8 21.8/24.0. TTFT max: B4 113.1/24.4 s, B8 258.2/47.9 s.
- RTX co-resident TG/user with NCCL all-reduce (FIPCIE=0, forced by GPU2's 256 MiB BAR1) vs the
  P2P pdq8 baseline: B1 32k 138.8 vs 153.7 (-9.7%), B4 32k 88.1 vs 111.1 (-20.7%), B8 4k 73.7
  vs 94.5 (-22.1%), B8 32k 59.1 vs 71.3 (-17.2%). B1 4k 155.6, B4 4k 99.8 (no P2P baseline).
- Reasoning + tool parsers (qwen3 / qwen3_xml) on the RTX: greedy token text identical before and
  after. TG/user within -3.4..+3.1% at B1/B8 x 4k/32k (n=1). thinking_token_budget through
  pd-router now returns 200, routed to TT, and the budget is enforced (64 -> 68 completion tokens).
- t2 (threshold 0 + --overflow-tt 0.95, parsers on): TTFT p50/p95 16.1/113.4 s, TG/user 31.9,
  84.2 out tok/s, 6+2 TT-served. Mixed against t1 (29.5/98.4, 26.9, 79.9); n=1 each.
- cfx-llm1 PCIe evidence for the GPU2 BAR loss (lspci -vv, boot BAR assignment).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Production TT serves 262144 tokens; without this a >131k agentic turn would 400 on the RTX after cutover.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Bifrost shim tokenizes as qwen3.8-27b-tt; the RTX answered 404 (checked live through :8790).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
t3: 72/76 (4 drain-deadline cancels), TTFT p50/p95 18.9/117.6 s, TG/user 25.0, out 65.3 tok/s, handoff p95 3.2 s.
t1/t2 rode a TT prefix cache warmed by the same seeded trace (first turns 0.8 s vs 29 s cold): compare t3 with t0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
t4 (merged export arm, thr 0, TT warm): 120/120, TTFT p50/p95 3.7/82.4 s, TG/user 44.9, out 117.4 tok/s; beats the
1 GbE rehearsal on every column. t5 void: an external nixos deploy's tt-probe-cards wedged the held cards at 03:09.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
GMU 0.85 OOMs by 20 MB in MTP draft graph capture with FIPCIE=1 (pre-NIC it fit); 0.84 -> B8 32k KV-pressure stalls.
Greedy: prompt 1 identical, prompt 2 one near-tie reasoning token, same answer. hold2 window aborted (slot acquire 120 s cap vs mesh-dirty reset).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Suffix decoding on 522 recorded ThinkingCap agent outputs (Arctic 0.3.0 as vLLM 0.32 calls it): AL 1.8-2.1 alone; a
suffix-or-MTP hybrid inside the K=3 verify width does not beat MTP; a wide B1-only hybrid models +10..21% (agentic).
Dynamic K: K=3 stays optimal at B4/B8 (Marlin m-block at M=16/32); B1 K=5 +2% (bench) / +14% (agentic, modelled).
Block verification (vLLM V2 rejection sampler): +2..4% AL at K=3 in a synthetic MC. No drafting change reaches 100 at B8.
No GPU used. Queues p1-blockv, p2-stepk, p3-dynk for the #334 claim runner (dt-arm.sh).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Measured on t4 (handoff_audit.py, RTX serve-log excerpt): 39 of 126 TT handoffs were imported, 87 discarded
(GPU-local hit < prefix_tokens at the connector's first query; vLLM asks connectors only at num_computed == 0).
The TTFT tail is RTX-side: TT prefill + handoff wait = 6.6% of the top-10% TTFT; p95 is a 60 s head-of-line
block behind a 68k-token RTX-local prefill.

pdsim (calibrated on t4, estimates only) ranks full-prefix export + local delta 4096 + TT SJF first:
t4 TTFT p50/p95 3.45/50.5 -> 2.85/36.3 s, prod profile 67.6/145 -> 5.0/38.1 s.

Router levers default off (today's behaviour); 92 tests pass.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
h0 warm-up A; ABBA h1-A h2-B h3-B h4-A on trace-r2; fresh seed 20261106: h5-B TTFT p50/p95 3.0/10.7 TG 66.0 vs
h6-A 2.3/36.7 TG 76.3 (B ran first on the fresh trace; TG rule not met on it). h7 C5 + decode
--long-prefill-token-threshold 512: TTFT p95 27.3, out 187 tok/s. Arena peak B 6.5-13.1 GiB, A 12.7-20.4 GiB.
iter.sh: TRACE override, RTX serve-log excerpt + handoff_audit per run, broker arena poller.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
seed 20261107 (A first): A TTFT p50/p95 24.4/67.1 TG 26.0 (21/117 imported, 37 local prefills >2048) vs
C5 2.8/7.8 TG 45.5 (78/78). seed 20261108: C5+lpt512 9.1/27.0 TG 46.4 vs C5 7.4/24.8 TG 48.1.
bf16 reference CPU job (another agent, nice 10, 44 threads) ran concurrently: ~7% of one core on 96, no decode
stalls; no TG noise attributed to it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A nixos deploy at 00:09:48 started the 'failed' (exit 137) prod unit mid-window
and collided with the export-arm boot (TLB alloc -12). Leaving the unit inactive
instead of failed narrows that window.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
--export-prefix full --rtx-local-delta 4096 --tt-max-inflight 1 --tt-queue sjf
(A/B h1-h11, §8.15). Arg parse checked; router tests 69 passed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
TT-only baseline on TT prod :8000 (traces s6/s7/s8/r2), P/D C5 from §8.15. TTFT p95 better on s6/s7,
worse on s8/r2 under 37-42% more offered load. Incident note on the 00:09 deploy that started prod mid-window.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
build_agentic_rank.py mixes the general FR-Spec rank (Zipf pseudo-frequency) with agent prompt/output + codefb
counts from rtx-drafter gen-v1 (w=0.7). At N=65536: agent 93.2% -> 99.2% LORO, blend 98.8% -> 99.2%,
gsm8k 99.58% -> 99.55%. Arm dt/dva.env (RTXOPT_DRAFT_VOCAB_FILE), ABBA queue p5-dva.q chained after P1+P2.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Also: prof2.sh prefill-time floor (32k profiles caught prefill), build_agentic_rank.py carries the tokenizer block
(the dva arm failed closed at boot without it; P5 re-queued).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Needs pd-split/rtxopt/thinkingcap-freq-rank-agentic.{npy,json} (opus/pd-draft-tune, sha256 fdbdda55...).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- arrival: adaptive.choose("arrival") on every tokenized request before the C5 decision runs; "tt-direct" serves the
  client's request end to end on TT, else the C5 path unchanged
- prefill-done: after a complete export, adaptive.choose("prefill-done"); "tt-resubmit" sends the whole request to TT
  and drops the export in the broker (new BrokerProbe.drop, the broker's existing "drop" op)
- live signals: RTX /metrics running/waiting/KV (parse_vllm_load), TT /metrics (logged cross-check), router counters
  (rtx in-flight with streamed tokens, tt decoding, tt prefill busy excl. self), UtilMeter, OutEstimator
- failure safety: any TT failure before the first client byte falls back to the RTX (with the export for resubmit)
- sticky sessions (margin_stay), TT-decoded turns not recorded in the RTX tracker
- PD_ROUTER records carry adaptive {stage, route, reason, pred, live, ...}; /router/stats adaptive block
- flags --adaptive --tt-decode-cap --adaptive-margin-in/-stay --adaptive-out-default --adaptive-rtx-max-seqs (off;
  with it off the bodies, logs, stats and banner are unchanged); commented variant in router.env.template
- test_adaptive_router.py: 18 tests on mock backends; whole router suite 98 passed, 1 skipped

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- pdsim: TT decode batch (adaptive.TT_TG), prefill-priority stall, tt-direct / tt-resubmit routes, adaptive.choose
  at arrival and prefill-done with a Live mirroring router.live(), OutEstimator, stickiness; new metrics (TTLT,
  censored TTFT, TG/user, window gen tok/s, TT decode share, utilisations). adaptive=0 is byte-identical to before
  (validate / rank / prod C5 runs).
- rem_model=cond: proposed remaining-output estimate (router.live() uses max(0, est - streamed)).
- traffic.py: --doc-tokens (reproduces the live s6/s7/s8/r2 traces without the pool; hashes match) and the
  synthetic sat-decode-v1 profile; fixtures trace-s6/s7/s8/sat1/sat2.
- pdsim_adaptive.py driver, test_pdsim_adaptive.py, pdsim-adaptive-RESULTS.md, bench/runs/pd-adaptive-sim-20261106.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The target's VocabParallelEmbedding shard (62,080 x 5120 bf16 = 606 MiB/GPU, shared
with the MTP draft) is copied to pinned host memory after GPUModelRunner.load_model and
the Parameter becomes a UVA (zero-copy) CUDA view of it, before KV profiling, so the pool
grows by ~66k tokens. No runner change: the fused vocab-parallel gather + all-reduce read
the view; no D2H sync (the step's ids are produced on the GPU), graph-safe. Load-time
self-test (host copy vs device shard, layer forward before/after bit-identical, freed MB)
fails closed. Evidence (vLLM 0.32 file:line) in the embed_host.py docstring.

Arm dt/dvaeh.env = dva + RTXOPT_EMBED_HOST=1, EXPECT_POOL_MIN=350000.
CPU tests: rtxopt/tests/test_embed_host_cpu.py (6/6 pass). Not run on a card yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-07 00:43 reboot: the user manager (00:43:43) came up before mnt-bulk.mount (00:43:54), and the units were
symlinks into /mnt/bulk, so they vanished; decode only started at 03:08 and the 02:00 adwin window aborted.
- new pd-bulk-wait.service (oneshot, RemainAfterExit): polls mountpoint /mnt/bulk + the P/D tree, bounded 600 s;
- pd-rtx-decode, pd-handoff-broker, pd-router: Requires= + After= it, so EnvironmentFile/ExecStart see the tree;
- install as real files (cp), enablement links point at ~/.config/systemd/user, never into /mnt/bulk.
Installed on cfx-llm1 08:49 (running services untouched); dummy-unit test: a dependant's EnvironmentFile is read
only after the wait unit succeeds, and the dependant never runs when the wait times out.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
adw1 (2026-11-07 02:00) aborted silently: decode was not up after the 00:43 reboot.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- router --tt-only: every request tt-serve (no export, no RTX); /v1/models, /tokenize, /health answered by TT.
- staged/pd-mode.sh (cfx-llm1): flips router.env (backup router.env.pd), restarts pd-router, checks /health.
- pd40g.sh mode <m> wraps it; install ships pd-mode.sh and pd-bulk-wait.service as real unit files.
Tests: 107 passed, 1 skipped (new test_tt_only_rollback_serves_everything_on_tt).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- adaptive.py: stall_guard (median largest TT prefill during the decode and the
  request's own prefill vs stall_max_s, optional util bound) and prefix_aware
  (probe-fit tt_prefill_s: hit 0.265 + hit/135k, cold 0.05, tail (n-h)/8k +
  3.27e-10 (n^2-h^2); held prefix >= 50% -> margin_stay). Both default off;
  flags-off predict/choose unchanged.
- router.py: --adaptive-stall-guard / --adaptive-stall-max-s /
  --adaptive-prefix-aware; cross-session TT PrefixTracker; Live carries recent
  TT prefill rate and durations.
- pdsim: tt_model=probe, tt_interleave (one decode step between gated
  prefills), TT-user ITL / max stall / TTLT, out_tok_s_live; legacy runs
  byte-identical. pdsim_adaptive.py v2 command (ADW2 profile).
- tests: 121 passed, 1 skipped (was 106/1); de-flaked the resubmit drop test
  (client loop kept alive for the background drop task).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
SIMULATOR ESTIMATES, not measurements. adw2-recalibrated pdsim, seeds 201-208,
s6/s7/s8/r2/sat1/sat2: prefix-aware sat2 out +4.7% / TTLT p50 -11% / TTFT p95
-44%, sat1 +3.2% / -8%; stall guard near-inert (per-user stall = one prefill
with the gated interleave). Sim vs live adw2 gap reported.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
GPU0 runs 29-33% below GPU1-3 clocks (SW thermal 83% of busy samples) and TP=4 waits for it:
4-6 ms/step at B8 32k in the 11-06 profile, est. 6-10 ms now. x8->x16 upper bound -4 ms/step at B8
(likely 1-2), <=0.5 ms at B1; links average 9% (p90 25% on x8). VRAM: 38 MiB free per GPU, live
queueing is max-num-seqs bound. Idle-slot microbench staged, not run (adw2 claim held the box).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Adaptive beats C5 on every saturation repeat (sat2 TTFT p50 2.3-2.9 vs 11-27 s, out tok/s +5..+21%; sat1 out
473-526 vs 398) and on s7/s8/r2 TTFT/TTLT p50; s6 is the one loss and TTLT p95 is worse on s6/s8.
s7-adaptive overlapped the #930 deploy (suspect, re-run queued); sat1-C5 r1 lost to the post-reboot firewall gap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
attnbench: BatchPrefill fa2 causal CUDA-graph verify path (--fi-prefill-splits), records the
FlashInfer plan actually built (cta_tile_q, chunk, CTAs), refused variants recorded, clocks.
arbench: fi-cfg backend with explicit IpcLaunchConfig sweeps, --nbufs cold L2, rank-0
--gpu0-skew-us spin injector, ranks_bit_identical check.
fi_ipc_rtx: JIT copy of FlashInfer 0.7.0.post1 PCIe-IPC AR adding Variant kStagger=4
(barrier-free sentinel 2-shot with neighbour-ordered pushes, world 4).
Argon design docs copied as argon-*.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
fi_ipc_rtx (JIT module renamed pcie_ipc_comm_rtx_pace_v1): Variant kPace*=6..11, world_size 4.
STAGED_RING's code line for line, but each of its 6 full 4-rank barriers
(st.release.sys to 3 peers + ld.acquire.sys polls = MEMBAR.ALL.SYS + CCTL.IVALL)
becomes one credit: before pass q+1 into destination d a rank waits only for
d's pass-q writer (pred = r+1, or r+2 at the RS->AG and call->call wraps), so
each GPU still has one inbound stream per block index (no incast) without
waiting on the slowest of 4. Relaxed credits (no fence; SASS: 0 MEMBAR vs 7),
PACE_REL = release/acquire credits, PACE_L2/3/4/6 = credit after (8-L)/8 of the
pass. Bit-identical to STAGED_RING by construction; shares its slots, epoch and
generation counter, so the two mix call to call; graph-replay safe.

- tests/sim_ar_pace.py: CPU protocol model (mixed STAGED/RING/PACE*, grids 1-8,
  INT32 wrap): no deadlock, outputs exact, no incast; must-fail controls caught.
- arbench: PACE names, VARIANT:tuned geometry, bit-compare vs first config,
  --mix-check N.
- ar_pace.py + sitecustomize: RTXOPT_AR_PACE swaps STAGED_RING capture sizes in
  RTXOPT_AR_PACE_TOKENS to kPace at the tuned geometry, warmup bit self-test
  (fail closed), banner per worker. arms/night-arpace.env = deployed dva + flag.
- rtx-night-ar.sh: <=8 min idle GPU sweep (not run: no GPU time here).

Built on cfx-llm1 with no GPU visible; nothing measured yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
rtxopt/topk_gather.py patches GPUModelRunner.sample (eager, after the verify graph): on a verify step whose
every request is greedy or has 1 <= top_k <= KLOC (32) and no logprobs/penalties/bias/min_p/bad_words/
allowed ids/min_tokens/structured output, each TP rank sends its top-KLOC (values, ids) in one [rows, 64]
fp32 all-gather instead of the [rows, 62080] bf16 logits all-gather; the full-vocab row is rebuilt (union
of the 128 candidates at their ids, every other column strictly below the smallest candidate, FILL=floor,
or -inf with FILL=ninf) and the stock rejection sampler runs unchanged. Boundary-tie counter, fallback
counter by reason, boot self-test against the stock all-gather + Triton top-k/top-p (fail closed).
tests/test_topk_gather_ref.py: CPU, 4 fake shards; processed rows, probabilities and full MTP verify
outputs bit-identical to the full-gather path; must-fails. arms/night-topk.env = deployed decode.env +
the flag. decode-serve.sh puts rtxopt on PYTHONPATH for the flag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The served verify (FI 0.7.0.post1 BatchDecode, tensor cores) packs 4 tokens x 6 heads into a CTA_TILE_Q=64
tile (4x1 warps, 37.5% rows used, fp8 repack pass); host checks show it runs NUM_MMA_KV=4 with 96 KB smem,
i.e. 1 CTA/SM while the planner sizes the grid for 2 (the q1 tile-16 kernel is also 1 CTA/SM: its 4-warp
merge buffer is 64 KB).

rtxopt/fi_vattn.py copies the installed FlashInfer include/csrc into an overlay, patches it (macros,
default off) and JIT-builds a separate module (own URI) per variant: t16 (verify rows as two tile-16
1x4 tiles), t16p2 (+ 2-pass cross-warp merge: 40 KB smem, 2 CTAs/SM; default), w22p2 (tile 32 in a
2x2 warp layout, 48.5 KB, 2 CTAs/SM, experimental), w22, p2. Only verify plans (q_len_per_req in
RTXOPT_VERIFY_ATTN_QLENS, default 4; fp8 KV, bf16 Q/O, hd256) are routed to it; a per-device self-test
vs the stock module (and the expected tile) fails closed before the first verify plan and prints the
"RTXOPT_VERIFY_ATTN=<v> engaged" banner. attnbench.py --custom <variants>; arms/night-vattn.env;
night/vattn-bench.sh + night/vattn-deploy.sh (merge-safe deploy onto the live sitecustomize).

Host-only evidence (cfx-llm1, no GPU): all 5 modules build; ptxas: tile16 1x4 254 regs / 0 spill,
w22 tile32 236 regs / 0 spill; smem table and CPU routing tests in bench/runs/rtx-night-vattn-20261108/.
No GPU number yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Root cause: OpenAI-format assistant tool_calls carry function.arguments as a JSON string. vLLM json-parses them
before rendering (chat_utils._postprocess_messages); the router passed them through, and this model's chat template
iterates `tool_call.arguments|items`, so every agent request with a tool call in its history raised "TypeError: Can
only get item pairs from a mapping" -> route rtx "untokenized" (no P/D, the RTX did the whole prefill). Since the
11-07 cutover that was 48 of 54 real requests.
Fix: HFTokenizer._messages parses string arguments on a copy (empty string kept, the template skips it; invalid JSON
raises, as vLLM refuses it); the forwarded body is untouched. Checked on cfx-llm1 with the real tokenizer against the
RTX vLLM's own /tokenize: plain 53=53, text parts 55=55, tool-call history 352=352 ids, identical (was TypeError).
test_tokenize_hf.py: the template's tool-call loop, string/empty/dict/invalid arguments, no mutation, non-text parts.

Also: --keep-alive-s (default 75) -> uvicorn timeout_keep_alive. The 5 s default closed connections Bifrost still
reused: one 502 "write: broken pipe" in the 11-07 gateway replay never reached the router.

Router suites: 114 passed, 3 skipped.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Map entries a-b:VARIANT (no overlaps, fail closed); RTXOPT_AR_PACE must still be
set (any variant or 'map') since it triggers the sitecustomize hook, so the deployed
sitecustomize.py needs no change. Every paced size goes through the warmup bit
self-test; banner prints the map, per-size variant and unused variants.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
dynk-w3 left router.env PD_TT_URL on the gate port :8001: pd40g.sh rollback took the
newest cutover-backup/*/ dir, which was adwin's router-code-<tag>/ (sorts after the
timestamp dirs, holds no router.env), so the cp failed silently.

- pd40g.sh rollback: only enable's YYYYmmddTHHMMSSZ/ backups; FAIL on a failed restore.
- router-prod-restore.sh (cfx-llm1): PD_TT_URL := :8000 in router.env + router.env.pd,
  back to pd mode, restart pd-router only when idle (router tt_gate + RTX/TT vLLM
  running+waiting = 0), verify prod /health, router /health, one routed request;
  prints a RELEASE-CHECK line.
- adwin.sh end_window and dynk-window.sh restore call it; adwin posts RELEASE only on
  a passing RELEASE-CHECK (else NOTE, cards stay claimed).
(cherry-picked from c327ae36 on opus/rtx-dynk-fix; dynk-window.sh hunk dropped, file not on this branch)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
HISTORY: night-combo post-ship watch
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Failing after 5m24s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 5m26s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 16m1s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh cards: PR does not merge cleanly onto base
7836929171
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

verdict: request_changes (hold — not yet mergeable)
tier: T2 (large stacked feature branch; levers additive, off-by-default)

rationale: The three new levers are well-formed and safe at merge — each is env-gated, off-by-default, and fails closed (a bad value raises in the worker and refuses the boot rather than silently behaving like off): RTXOPT_VERIFY_ATTN (fi_vattn.py, w22p2) self-tests pass in the in-branch records (q4/q1 OK, finite, max_abs≈0.001); RTXOPT_AR_PACE (ar_pace.py, paced STAGED_RING with the 11-08 AR_PACE_MAP) self-tests bit-exact vs STAGED_RING fail-closed; RTXOPT_TOPK_GATHER (topk_gather.py) is registered last with a load_model self-test. No secrets, no red-flag patterns. But this is a stacked branch (220 commits ahead of a stale master, 10 behind) and it cannot merge as-is.

concerns:

  • [block] Stacked off-master with 7 unresolved merge conflicts vs master (the PR body lists them: bench/arms/s12phv-pd-export{,-mtp}.toml, nix/serve-arms/s12phv-pd-export-mtp.json, patches/prod-local-plugin/src/vllm_tt_plugin/{kv_host_tier,pd_export}.py, tools/pd-split/test_pd_export.py, docs/HISTORY.md). These are not resolved in the head — the branch must be rebased/resolved onto a master that includes #368 before it can land.
  • [block] Head CI run 11719 is red: "Build simulators and check the host module" and "Report upstream drift" failed, so the "Serialized card gate" never ran (blocked) — no A/B number exists for the levers. Device proof currently rests only on the in-branch bench/runs/rtx-decode-night-20261108 records, not a green head run. Re-run after the rebase clears the build.
  • [warn] This branch shares 170 of its commits with the open #368 (opus/pd-delta-export, the P/D history not yet on master). Proposed order is correct: land #368 first, then rebase/merge this onto master, then #369. Merging this before #368 would double-land the P/D history.
  • [warn] On merge, every rtxopt/* lever + the sitecustomize.py hook + decode-serve.sh become standing defaults for all RTX decode arms; they stay inert because each is gated off, but the standing-default shift should be deliberate, not accidental.

Note: I did NOT add human-approved and left the PR as-is (already non-draft). Verdict is a hold, not a defect in the lever code — the levers themselves approve; the branch state does not. Re-review once #368 lands and this is rebased onto master with a green head build + card gate.

**verdict:** request_changes (hold — not yet mergeable) **tier:** T2 (large stacked feature branch; levers additive, off-by-default) **rationale:** The three new levers are well-formed and safe at merge — each is env-gated, off-by-default, and fails closed (a bad value `raise`s in the worker and refuses the boot rather than silently behaving like off): `RTXOPT_VERIFY_ATTN` (fi_vattn.py, w22p2) self-tests pass in the in-branch records (q4/q1 OK, finite, max_abs≈0.001); `RTXOPT_AR_PACE` (ar_pace.py, paced STAGED_RING with the 11-08 AR_PACE_MAP) self-tests bit-exact vs STAGED_RING fail-closed; `RTXOPT_TOPK_GATHER` (topk_gather.py) is registered last with a load_model self-test. No secrets, no red-flag patterns. But this is a stacked branch (220 commits ahead of a stale master, 10 behind) and it cannot merge as-is. **concerns:** - [block] Stacked off-master with 7 unresolved merge conflicts vs `master` (the PR body lists them: `bench/arms/s12phv-pd-export{,-mtp}.toml`, `nix/serve-arms/s12phv-pd-export-mtp.json`, `patches/prod-local-plugin/src/vllm_tt_plugin/{kv_host_tier,pd_export}.py`, `tools/pd-split/test_pd_export.py`, `docs/HISTORY.md`). These are not resolved in the head — the branch must be rebased/resolved onto a master that includes #368 before it can land. - [block] Head CI run 11719 is red: "Build simulators and check the host module" and "Report upstream drift" failed, so the "Serialized card gate" never ran (`blocked`) — no A/B number exists for the levers. Device proof currently rests only on the in-branch `bench/runs/rtx-decode-night-20261108` records, not a green head run. Re-run after the rebase clears the build. - [warn] This branch shares 170 of its commits with the open `#368` (opus/pd-delta-export, the P/D history not yet on master). Proposed order is correct: land `#368` first, then rebase/merge this onto master, then `#369`. Merging this before `#368` would double-land the P/D history. - [warn] On merge, every `rtxopt/*` lever + the `sitecustomize.py` hook + `decode-serve.sh` become standing defaults for all RTX decode arms; they stay inert because each is gated off, but the standing-default shift should be deliberate, not accidental. Note: I did NOT add `human-approved` and left the PR as-is (already non-draft). Verdict is a hold, not a defect in the lever code — the levers themselves approve; the branch state does not. Re-review once `#368` lands and this is rebased onto master with a green head build + card gate.
Author
Member

Independent review (R1): OpenAI Codex gpt-6.1-sol, run by the P/D consolidation lead (Claude Opus 5.5). Reviewed head is in the header below. Read-only review; no hardware run.

Routing: Fix applied by the consolidation lead in #383 (commit ef57cfd6, HISTORY evidence lines); code: no defect found.


#372 opus/rtx-decode-night @7836929171

VERDICT: FIX

Finding R1-372-1 — medium, HIGH confidence: the production replay/ship narrative lacks its supporting record citations

Location: docs/HISTORY.md:499 (also the replay paragraph at line 489).

The paragraph reports control 118/118, TG/user 69.0, output 525 tok/s, candidate TG/user 75.2 and output 534 tok/s, percentage gains, and production boot/watch results. Its chapter-level record citation at line 443 is bench/runs/rtx-decode-night-20261108/, which contains w1/w2/w3 kernel/cell/correctness evidence, not the P/D replay underlying these figures. There is no night-combo result entry in LEDGER at this head to resolve the missing citation. “rtx-dynk-fix … W3” and a backup filename are not record paths.

The candidate replay record does exist elsewhere: bench/runs/pd40g/pd40g-iter-night-rep-sat2-pfx-night-20261108T0311Z/summary.json reports 119/119, TG/user 75.191 and output 533.66 tok/s, consistent with the rounded candidate values. Thus this finding concerns missing evidence links, not a demonstrated fabrication or numerical discrepancy. The current citation does not let a reader reproduce the claimed comparison or trace the ship/watch evidence as required by this review's explicit documentation rule.

Minimal fix: cite the exact candidate and successful control replay record paths at the comparison, plus the boot/watch evidence for the production assertions; alternatively add a scoped LEDGER result with those paths and cite its ID from HISTORY. Clearly identify any production assertions for which committed evidence is unavailable.

Code assessment

  • The new EMBED_HOST, VERIFY_ATTN, AR_PACE and TOPK_GATHER registrations are gated by their primary flags. With all RTXOPT variables removed, executing this head's sitecustomize through system Python produces an empty _PATCHES registry. No new optional module is imported by an unset primary flag. Auxiliary configuration variables do not independently enable these levers.
  • EMBED_HOST checks untied/unquantized bf16 storage, UVA availability and draft sharing; compares the complete copied shard bitwise; compares the embedding layer forward before/after; and refuses insufficient freed VRAM. Exceptions occur in worker load, before KV profiling/capture.
  • VERIFY_ATTN validates/builds in the worker, refuses missing overlay symbols, and checks numerical agreement plus the selected tile and custom-module identity before first eligible capture. AR_PACE refuses an empty mapped capture set and compares mixed paced/tuned calls collectively before engagement. TOPK_GATHER checks engine/request eligibility and runs the stock-head/processed-logit comparison after the other load hooks.
  • TOPK_GATHER explicitly documents boundary-tie and stock floating-point search limitations; its counters are diagnostic, not a fallback on those conditions. The CPU reference tests likewise exclude flagged boundary ties from their exactness assertion. This review does not establish bitwise equivalence for every possible request/logit row.
  • No additional concrete code defect was established by inspection. This is not on-hardware certification.
**Independent review (R1): OpenAI Codex gpt-6.1-sol, run by the P/D consolidation lead (Claude Opus 5.5).** Reviewed head is in the header below. Read-only review; no hardware run. **Routing:** Fix applied by the consolidation lead in #383 (commit ef57cfd6, HISTORY evidence lines); code: no defect found. --- ## #372 opus/rtx-decode-night @78369291717c61738620c43972563b0d444e62f7 VERDICT: FIX ### Finding R1-372-1 — medium, HIGH confidence: the production replay/ship narrative lacks its supporting record citations **Location:** `docs/HISTORY.md:499` (also the replay paragraph at line 489). The paragraph reports control 118/118, TG/user 69.0, output 525 tok/s, candidate TG/user 75.2 and output 534 tok/s, percentage gains, and production boot/watch results. Its chapter-level record citation at line 443 is `bench/runs/rtx-decode-night-20261108/`, which contains w1/w2/w3 kernel/cell/correctness evidence, not the P/D replay underlying these figures. There is no night-combo result entry in LEDGER at this head to resolve the missing citation. “rtx-dynk-fix … W3” and a backup filename are not record paths. The candidate replay record does exist elsewhere: `bench/runs/pd40g/pd40g-iter-night-rep-sat2-pfx-night-20261108T0311Z/summary.json` reports 119/119, TG/user 75.191 and output 533.66 tok/s, consistent with the rounded candidate values. Thus this finding concerns missing evidence links, not a demonstrated fabrication or numerical discrepancy. The current citation does not let a reader reproduce the claimed comparison or trace the ship/watch evidence as required by this review's explicit documentation rule. **Minimal fix:** cite the exact candidate and successful control replay record paths at the comparison, plus the boot/watch evidence for the production assertions; alternatively add a scoped LEDGER result with those paths and cite its ID from HISTORY. Clearly identify any production assertions for which committed evidence is unavailable. ### Code assessment - The new EMBED_HOST, VERIFY_ATTN, AR_PACE and TOPK_GATHER registrations are gated by their primary flags. With all RTXOPT variables removed, executing this head's sitecustomize through system Python produces an empty `_PATCHES` registry. No new optional module is imported by an unset primary flag. Auxiliary configuration variables do not independently enable these levers. - EMBED_HOST checks untied/unquantized bf16 storage, UVA availability and draft sharing; compares the complete copied shard bitwise; compares the embedding layer forward before/after; and refuses insufficient freed VRAM. Exceptions occur in worker load, before KV profiling/capture. - VERIFY_ATTN validates/builds in the worker, refuses missing overlay symbols, and checks numerical agreement plus the selected tile and custom-module identity before first eligible capture. AR_PACE refuses an empty mapped capture set and compares mixed paced/tuned calls collectively before engagement. TOPK_GATHER checks engine/request eligibility and runs the stock-head/processed-logit comparison after the other load hooks. - TOPK_GATHER explicitly documents boundary-tie and stock floating-point search limitations; its counters are diagnostic, not a fallback on those conditions. The CPU reference tests likewise exclude flagged boundary ties from their exactness assertion. This review does not establish bitwise equivalence for every possible request/logit row. - No additional concrete code defect was established by inspection. This is not on-hardware certification.
Author
Member

Landed on master via #383 (fast-forward, master = 819c6abe); this head is an ancestor of master. Closing.

Landed on master via #383 (fast-forward, master = 819c6abe); this head is an ancestor of master. Closing.
orchestra closed this pull request 2026-11-09 19:16:39 +01:00
Owner

agent-gateway closeout (closed): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (closed): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Failing after 5m24s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 5m26s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 16m1s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh cards: PR does not merge cleanly onto base

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!372
No description provided.