pp/gdn-combo: kda3+sk512+gum2 on the glue stack, tier-2 WIN, PP +1.7-2.1% at 32k #273

Closed
Grok wants to merge 69 commits from pp/gdn-combo into master
Owner

Combination screen of the GDN/SDPA prefill levers (patches 0058+0059+0060) on top of the glue stack (PR #269, gtl-xa). Depends on #269 and #268; it merges both.

  • Speed (ABBA n=2, 12/12, ab20261020T003513Z), control → arm PP tok/s: 32k B1 6724→6850, B4 6750→6894, B8 6766→6879 (+1.7…+2.1%, ≈ −6 ms/chunk); 4k +0.75/+1.97/+1.07%.
  • TG tok/s/user: 32k 65.37→63.69 / 62.32→63.46 / 51.95→51.66; 4k 73.32→71.64 / 76.19→75.70 / 65.10→63.99. Measured TG is at or above the acceptance-implied change in 6/6 cells (an acceptance shift, not a slower step).
  • Tier-2 gates: equiv NEAR_TIE pass (max gap 1.75); gsm8k paired 57→59/60, PASS.
  • All flags default off, so flag-off is byte-identical; three in-boot self-tests, each with a wrong-input rung.
  • Below the track target of ≥15 ms/chunk. Ship is the coordinator's call.

LEDGER R-2026-10-20-cmb. Records: bench/runs/cmb-verdict-ab20261020T003513Z.jsonl, bench/runs/cmb-tier2-gates-20261020T020617Z.jsonl.

🤖 Generated with Claude Code

Combination screen of the GDN/SDPA prefill levers (patches 0058+0059+0060) on top of the glue stack (PR #269, gtl-xa). Depends on #269 and #268; it merges both. - Speed (ABBA n=2, 12/12, ab20261020T003513Z), control → arm PP tok/s: 32k B1 6724→6850, B4 6750→6894, B8 6766→6879 (+1.7…+2.1%, ≈ −6 ms/chunk); 4k +0.75/+1.97/+1.07%. - TG tok/s/user: 32k 65.37→63.69 / 62.32→63.46 / 51.95→51.66; 4k 73.32→71.64 / 76.19→75.70 / 65.10→63.99. Measured TG is at or above the acceptance-implied change in 6/6 cells (an acceptance shift, not a slower step). - Tier-2 gates: equiv NEAR_TIE pass (max gap 1.75); gsm8k paired 57→59/60, PASS. - All flags default off, so flag-off is byte-identical; three in-boot self-tests, each with a wrong-input rung. - Below the track target of ≥15 ms/chunk. Ship is the coordinator's call. LEDGER R-2026-10-20-cmb. Records: bench/runs/cmb-verdict-ab20261020T003513Z.jsonl, bench/runs/cmb-tier2-gates-20261020T020617Z.jsonl. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 69 commits 2026-10-20 04:08:59 +02:00
Believed before: dual-NoC MR "hung the mesh in c99", so it stayed parked. That was rev 1; rev 3
(pk3q, shipped inside pk3r) passed small-shape hw1card and ran in-model at c103/c104/c108 without a
hang, but it was inert to negative and nothing measured it at the served shapes (w2 r3/in0 34,
lm_head 4 x 3936), under trace replay on one card, per call, or counted how many readers move to
NOC1.

mr_gate.py builds the eight served per-chip roles (describe strings asserted against the served
banner), and runs rungs eager (PCC vs host), seq and trace replay (bitwise vs eager), then timing:
realtime-profiler device us and GB/s per role. supervise.py is a stdlib parent with per-rung
deadlines. A C++ wait can hold the GIL, so an in-process timer cannot bound a hang; on overrun the
parent kills the probe's process group. gate1card.sh runs off/on/mustfail plus a per-role on_noc1
census on card 1 only. After a hang it first tries a fresh open, which soft-resets the RISCs. Only
if that fails does it reset card 1 with tt-smi -r, never the mesh. It writes an EXIT-trap record on
every path.

ttsim (correctness only): PASS. on and mustfail are bitwise equal to off at every served role,
seq is bitwise equal to eager, and PCC vs host is >= 0.99995. Banner: readers=24 on_noc1=8 for the
first program on ttsim's 13x10 grid. Record:
bench/runs/mr-dual-noc-gate-ttsim-20261002T211439Z.jsonl

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed before: per-op prefill time needs a Tracy image, and AGMM roles can only be told apart by
duration clusters. In c127 the traced profile filed about 90% of a chunk under one kernel name,
because the realtime profiler's kernel lookup keys on a 16-bit runtime id that collides under trace.

Evidence that changed it: on the served pk3r image, ttnn._ttnn.get_device_operation_id() is the
counter that mesh workloads take their runtime ids from, and every ttnn op is a
decorators.FastOperation. So reading that counter before and after each call gives the exact
program ids each op launched.
- QWEN36_OPMARK=1: opmark.py wraps FastOperation.__call__ plus per-layer gdn/attn/mlp scopes, and
  records rows only inside a profiler window. Unset: install() returns before touching anything.
  Device programs are unchanged either way, and so is the tensor-cache key.
- opmark_join.py joins realtime records to rows by low-16 id plus issue order.
- `ttx wb profile --eager` hides the chunk/bucket traces for one call, so every program is named;
  `--no-opmark` is the off control.
- `prefill-op-share.py --named` prints per op and per role: count, us, cores/grid, FLOPs, TF/s,
  % LoFi peak (bfp8 also % HiFi2), % prefill wall, AICLK-rescaled.
- bench/probes/prefill_opmark/run.sh is the B8/32k run. The must-fail sets SDPA to HiFi2: SDPA must
  grow >= 20% with AGMM within 3%. The logits sha must match across traced, eager, and eager with no
  recording. verdict.py writes the record on every exit path.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#151: wb-...-opmark boot refused at pre-flight — the arm's expected patches 0033/0034/0035 banners
never showed; ttx lint had already warned the staged overlay carried only 13 files and those banners
live only in image-patch, not the staged store overlay. No named per-op table was produced
(named_table: null). Root cause: this worktree never ran `nix run .#ttnn-incr -- ship
bench/overlays/pk3r+0033+0034+0035.json` before queuing the probe (upstream-154 did the equivalent
ship for +0040 only, at step 172, in its own tree).

#153: mr_dual_noc/gate1card.sh PASS on card 1 — off/on/mustfail bitwise equal, TT_MR_IN1_DUAL_NOC
moved odd-indexed in1 readers to NOC1 for all 8 roles, ~6-9% device_us speedup on/off, mustfail ~35-50%
slower with no hang.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Believed before: c160 step 167 failed because QWEN36_OPMARK never engaged in the
workbench (verdict checks.banners = {opmark_engaged: false, opmark_not_engaged:
false}), blamed first on an unshipped overlay.

The evidence: the preflight record ttx-wb-...-opmark-20261002T220627Z.jsonl is
kind REFUSED with banners.missing = [QWEN36_MTP_BATCH scheduler engaged,
QWEN36_MTP_BATCH runner engaged, num_lookahead_tokens=6, QWEN36_MTP_ASYNC
scheduler engaged, QWEN36_MTP_ASYNC runner engaged]; "QWEN36_OPMARK engaged"
was expected and NOT missing, so install() ran in the wb process
(initialize_vllm_model) and its banner is in the wb log. Those five are printed
only by vllm_tt_plugin platform.py (scheduler config) and model_runner.py, which
a workbench (no vLLM engine) never runs; this is the first wb arm over an MTP
arm, so ttxlib/wb.py ENGINE_ONLY had never needed them. `ttx wb prefill` exits
1 on a REFUSED record, run.sh `exit 1`ed at the preflight, and its banner grep
sat after the last step, so <out>.banners.txt was never written: both
verdict flags false meant "no file", not "banner absent".

Fix: ENGINE_ONLY gains the plugin-only banners (MTP scheduler/runner,
num_lookahead_tokens=, MM_CHUNK_GUARD); model-side MTP banners stay required.
run.sh's grep moves to banners.sh, run from finish() on every exit path before
wb stop; verdict.py reports file_present and a wb_banners check that names
what ttx refused. Device/served code untouched (off stays byte-identical).
Test: test_prefill_opmark_banners.py on a wb-shaped log sample built from the
served kda2 B8 log; the old code reproduces the exact five-banner refusal.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c165's prefill-opmark probe (queue-c165.log step 11) crashed on `wb set`'s
recapture: ValueError: row 0: position 0 is past its page table (0
positions), in mtp_batch_host.py plan(), raised from warmup_model_decode ->
_mtp_decode_step -> mtp.maybe_step -> host.plan.

Root cause: release_traces() releases the main model's trace ids
(_chunked_trace_id/_bucket_trace_id/_vfy_trace_id, trace_ids_decode,
trace_id_prefill) but never touched model._mtp_batch, which keeps its own
per-bucket trace ids (v_trace/r_trace/cc_trace/cd_trace/c2_trace/c_trace) and
its own `captured`/`compiled` flags. Believed: a `wb set` recapture starts
every component clean, like a fresh boot. Evidence it didn't: `captured`
stayed True across the knob-set recapture, so (a) MTPBatch.capture()'s
`if self.captured: return` silently skipped recapturing the MTP traces for
the new knob at all, and (b) the following warmup_model_decode, now routed
through the real maybe_step()/host.plan() path instead of the "not captured"
fallback a fresh boot takes, hit host.plan() with the warmup's synthetic
all-zero page table/start_pos and got correctly rejected.

Fix is workbench-only: release_traces() now also releases the MTP sidecar's
bucket trace ids and resets `captured`/`compiled`, so a recapture behaves
like a fresh boot on the MTP path too. plan()'s check is untouched -- it is
right to reject position 0 against an empty page table; the bug was handing
it stale state, not decode warmup touching the real check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Believed: the named per-op table would show concat/slice/copy at ~50% of 32k prefill.
Evidence: the opmark NAMES are misaligned in both modes (eager AGMM rows imply 190-430% of
LoFi peak; traced rows carry 512-bucket shapes and decode kernels), and the must-fail rung
(SDPA HiFi2) never ran because ttx refused `wb set` on an expected eager-only banner
("QWEN36_MTP_WARM_TAIL skipped"). eager vs traced logits sha differ. The eager per-kernel
device view (kernel sources, physically consistent) puts data movement at 22.8% of chip0
device busy (tilize 7.2%, untilize 5.3%, slice 7.5%, reshape 1.3%, concat 0.5%), not 50%.
Step 18 rc=1 is a probe verdict (INCOMPLETE), not a card failure. Workbench: no served speed number.
224352Z is the earlier, superseded run of the same probe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Believed (c169): the eager profile is the guaranteed naming and the low-16-bit join only errs in traced mode.
Evidence it was not: eager rows put AGMMs at 190-430% of LoFi peak and traced rows carried 512-bucket/decode shapes.
Cause: wb_core joined window rows + EVERY capture row, and opmark_join.join() picks among low-16 candidates by a
lookahead that ties on every densely annotated region; its -c tie-break picks the OLDEST (boot captures), and
continuity then keeps it there. A pinned test reproduces it (test_low16_join_crosses_captures).

Fix:
- opmark.py (QWEN36_OPMARK=1 only; off is untouched): wrap ttnn.begin/end_trace_capture to keep each capture's
  device-op id range per trace id, and execute_trace to drop a zero-width "<trace-replay>" row in the window.
- opmark_join.align(): the exact stream the chip ran (window ids in issue order, each replay expanded into its
  capture range); records matched in order, far hits need confirmation, misses never move the pointer.
  named_table counts call instances (a replayed row ran 16x per prefill, not once per distinct id_lo).
- wb_backend: eager profiles are bracketed by WB_EAGER_WINDOW markers and the MTP warm-tail skip counter is restored
  after; ttxlib/wb.py accepts "QWEN36_MTP_WARM_TAIL skipped (" ONLY inside those windows (the eager chunk path
  reports no segments, so "window covered 0/2048" is by design); outside, or any other absent banner, still refuses.
- probe: eager is NOT the served program set (c169: 56139 vs 42320 chip-0 programs, logits 7f67 vs 2f26), so the
  TRACED profile is now the named table; new tracedoff rung (opmark changes nothing); the HiFi2 must-fail runs on
  the traced profile (SDPA >= +20%, AGMM +-3%), eager mf rides along as info; coverage requires join == align.

Host tests: test_opmark_join (align, trace hooks), test_prefill_opmark_banners (eager window, must-fail verdict
PASS / blind refuted / AGMM leak refuted / missing mf INCOMPLETE / low16 join FAIL:coverage / logits FAIL:identity).
Full ttx suite: the same 2 failures + 1 error as serving-throughput HEAD (prod_matches_nix mounts, seed_symlink).
No card time; no speed number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 32k reprofile charges the GDN layer ~0.1 ms for ttnn.to_layout(qkv -> ROW_MAJOR DRAM) (4.8 ms/chunk) only
so the read-once kda conv can tilize every tap window itself. Believed: the row-major copy was needed because
the taps shift rows by 1..3, which is not tile-aligned. Changed: the 0060 reader builds each shifted window
in TILE layout straight from face-row runs of the L1 tiles (the previous rows come from the tile above, or
from the TILE conv carry staged in a scratchpad), so both the copy and the in-kernel tilize go. Estimate, not
a measurement: -7.7..-9.6 ms per 32k chunk.

Tier 1: ttsim (bench/runs/kda-tile-sim-20261019T094207Z.jsonl) gives q/k/v bitwise equal to the served
KDA2=fast path in 8/8 cells (T 128..2048, ccs 256/512/1280, zero/random/chained history). The must-fail
reader differs; a TILE input with the flag off is refused. The served python's in-boot self-test is exact,
and under MUSTFAIL it REFUSES. scripts/jit-check-kernel.sh cannot resolve Metal-2 dfb::/scratch:: bindings:
the served 0035 reader fails it the same way. The image's own JIT compiled every 0060 kernel under ttsim.

Also QWEN36_SDPA_PREFILL_KCHUNK=512, a python knob, default off: ttsim numerics are as good as k256
(bench/runs/sdpa-kchunk-sim-20261019T0950Z.jsonl). It has no in-boot self-test yet, so it is not card-screened.

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 32k opmark (CONTROL dfr) charges the 128 decoder norms per chunk 18.4 ms: the image's
rms_norm_pre/post_all_gather each read h ([M,2560] bf16) from DRAM on 64 cores whose readers
barrier on every tile, so post runs at ~190 GB/s and h crosses DRAM twice. We believed the
stock 2D core grid would fix this (OP-DATASHEETS P6); in ttsim the 2D post corrupts M=2048
(#56908 row stride) and the 2D pre trips a packer-format UB, so that path is dead.

This lever replaces pre/post with two generic_ops on the same M/32 cores: PRE reads its tile
row on both NoCs (one barrier per 8-tile chunk) straight into an L1 height-sharded copy and
computes stats with the image's LLK sequence; the stats all-gather is unchanged; POST
normalises from the local shard (no DRAM read of h). Default off, flag-off byte-identical
(module-level env check), banners literal, self-test at boot on both chips with a gamma-shift
wrong-input branch; MUSTFAIL serves the shift and must be REFUSED.

Gates: ttsim 1-chip bitwise (stats, shard, output) at M 32..3072 x bf8/bf16 x L1/DRAM; ttsim
1x2 mesh with the real all-gather through the rmsnorm.py hook; JIT syntax check of all 10
RISC programs against vllm-tt:k2-mr-pk3r (scripts/jit-check-kernel.sh gains --src-dir,
--define, --descriptors and trisc0..2 for generic_op kernels). Arm: S2-dnf.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The first S2 vs S2-kda3 screen (ab20261019T101159Z) produced no kda3 number. Its kda3 boot was REFUSED because
"QWEN36_GDN_CONV_STATE_RM engaged" was missing. That banner belongs to the row-major conv-carry branch, and
KDA3 replaces that branch: the carry is cut from the TILE qkv. The refusal record shows every KDA3 banner,
including "QWEN36_GDN_CONV_KDA3 self-test exact", so the in-boot self-test passed on both chips.

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 this, the k512 knob had only an fp64 ttsim screen and no in-boot self-test, so the lever contract kept
it off the cards. The first eager chunked-prefill SDPA call now runs three outputs on its live inputs: served
q=k, k512, and k512 on -Q. It requires per-device PCC(k512, served) >= 0.99 and PCC(wrong, served) < 0.99;
a failure refuses the boot. A traced call that arrives before the test has passed keeps q=k.

ttsim (bench/runs/sdpa-kchunk-sim-20261019T120108Z.jsonl): the self-test passes at chunk_start 0 and 2048,
and REFUSES when the k512 candidate reads a rolled page table (the MUSTFAIL rung). k512 sits closer to fp64
than the served k256 (rel rms 0.043/0.059 vs 0.046/0.084). Tier 2, so a card win still needs equiv + gsm8k.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The estimate was that dropping the row-major copy would take ~8 ms off a 32k chunk (+2.7% PP). The served
A/B (bench/runs/kda3-verdict-20261019T112306Z.jsonl) says otherwise. PP at 32k: B1 6466 -> 6457, B4 6540 -> 6485,
B8 6513 -> 6511. TG moves +0.25..+1.7% ms/token, within noise to slightly worse. The KDA3 path was engaged on
every call: the STATE_RM fallback banner never fired, and the in-boot self-test was exact on 2 devices. So the
tile-in op costs about what it saved. A one-card op timing probe (hw_op_time.sh) splits rm_copy, kda2_op and
kda3_op to find out where.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
On one card at the served per-chip shape, kda3_op runs 318-331 us against 376 us for rm_copy + kda2_op. The
saving is ~50 us per GDN layer (~2.4 ms per 32k chunk), below the served A/B band. The tile-in reader's
face-row NoC reads cost +85 us over the KDA2 op. kda3 stays bitwise on silicon. The reopen condition and its
bound are in the row.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: our fused prep->scan carried our own prep item (0056 col-exp/dst4) and scan; upstream's
merged #57440 math (C3/C5 chains in DEST, nkd + dl*I hand-off, scan o/state adds in DEST) plus the
#58891/#58925-#58927 prep item was believed to cut prep_item ~30 -> ~16 us at BH=24 and be a
drop-in at our served HiFi2.

Evidence (ttsim v1.10.7 x2, 11x10 grid, served per-chip shape BH=24 T=2048 C=32, fp64 ref):
- At the served hifi2 the upstream math is NOT a drop-in: o rms error 1.42x flag-off's (its in0
  operands, dl*I among them, lose srcB's low mantissa bits); at hifi3/hifi4 it is 1.03-1.04x the
  same-fidelity flag-off (gdn-upmath-fid-diag-T512).
- At hifi3 vs the served hifi2 flag-off: o/state rms 0.23x in s0, nos0 and chain-of-2; the
  must-fail (dl*I handed off as I) is 58-82x (o) and caught; boot self-test passes under um and
  REFUSES under mustfail (gdn-upmath-sim-20261019T115419Z, all_ok).
- Flag-off outputs bitwise equal between the 0056 and 0058 overlays (gdn-upmath-offparity).

So the -gum arm runs QWEN36_GDN_FUSED_UPMATH=1 at QWEN36_GDN_SCAN_FID=hifi3 with COL_EXP/DST4 off;
whether hifi3's extra fidelity phase eats the prep/scan saving is a card question (no card verdict
yet, no ttsim timing). scripts/jit-check-kernel.sh gains --define; it cannot syntax-check CB-using
dataflow kernels (no generated tile-size header; identical error on the flag-off twin), so the
JIT proof is ttsim's real JIT compile of every kernels_fused_um kernel.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The first S2-dnf card boot passed the self-test on both chips (16 cells, bitwise vs the image
ops) but then died in warmup. A GDN op's static CBs clashed with an L1 buffer: "static circular
buffer region ends at 898048", buffer at 852928. The cause was ordering. y (the attention
norm's L1 output) was allocated while the 160 KB/core hs shard was alive, so it landed below
hs. Once hs was freed, y sat about 166 KB lower than the image path ever puts it.

y is now allocated before PRE. The 1x2 mesh probe gained an l1_placement check: from the same
allocator state, the fused y must not sit lower than the image path's y.
- On the old code the check fails: 1334528 vs 1500416.
- On the fixed code it passes: 1502464 vs 1500416.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The 0058 upstream-math scan passes ttsim only at hifi3. Whether the extra fidelity phase eats the
556 -> ~400 us/layer saving is a card question.

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>
Attempt 1 (12:01Z) had its steps skipped by a foreign 'ttx queue skip'. In attempt 2 (12:21Z) the S2 control
boot never answered, so no arm ran. S2 then booted in 219 s from pp-gdn-scan, so the hang does not reproduce.
With the flag off the sk512 code is unreachable (every new branch needs _k_chunk not None).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before this, every layer ran h = ttnn.add(x, attn_out) and then the ff norm read h back. At
32k the adds measure 55-60 us per call, which is 31.5 MB of traffic at DRAM roofline. With
dnf the PRE pass reads h once anyway. This change makes PRE read x and attn_out (both NoCs),
add them into the L1 shard, and write h to DRAM for the second residual add. That saves one
10.5 MB read of h and one op per layer. Estimate: about 20 us per layer, 1.3 ms per chunk
(not measured).

Bitwise first: in ttsim, add_tiles (fp32 or 16-bit DEST) matches ttnn.add exactly for
bf16+bf16 and bf16+bf8. The folded h and y match ttnn.add plus the image norm at M
32..2048, for b bf16/bf8, out bf8/bf16, L1/DRAM.

Lever contract:
- the flag needs QWEN36_PREFILL_DNORM_FUSE and is off by default; flag-off layer.py is the
  old code path;
- self-tested at boot for every M and both attn_out dtypes;
- the MUSTFAIL (gamma tile +1) is REFUSED in the 1x2 mesh probe;
- the layer hook is exercised verbatim in the mesh probe;
- 5 more RISC programs pass the card-image JIT check.

Arm: S2-dnf-dna.

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 gum screen measured 6/6 arm cells but lost 4/6 S2 control cells. The sk512 control boot died on a host
docker-inspect timeout. Neither has a same-session control, so neither has a verdict.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Against the S2 control of the 11:23Z kda3 screen (another session, so weak evidence), gum moves PP at
32k +1.4/-0.1/+0.8% (B1/B4/B8) and at 4k +1.3..+1.8%; TG ms/token is +2..+3% (worse) in four cells.
Re-queued with a fresh control (pp-gdn queue 20261019T162220Z).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pp-glue: dnf/dna card verdict — tier-1 win, PP +1.6..2.2% at 32k (R-2026-10-19-dnf)
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 2m0s
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m22s
cards-fresh cards: PR does not merge cleanly onto base
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 3m14s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
6e6237eda1
Before the screen, the fused norm was expected to save about 10 ms/chunk at 32k
(an opmark estimate: 144 -> 66 us/norm) and the add fold about 1.3 ms more. ttx ab,
2 reps, S2 vs dnf vs dnf-dna: PP rises in all 6 cells; at 32k it is +1.6..2.1% for
dnf and +1.9..2.2% for dnf-dna. TG/user stays within noise. B=1 served text is
identical to S2. The measured saving is ~5.4 ms/chunk, about half the estimate.
The dna increment is not resolved at n=2.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Attempt 2's S2 control container exited about 90 s into boot, 16 s after the previous track's container was
deleted. ttx kept no log. This attempt lets the cards settle for 60 s first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The named per-op prefill table tooling never reached master; reprofile-dfr merged it onto a 10-15 tree
without conflict, and it merges here without conflict too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
dnf+dna saved ~5.4 ms/chunk at 32k, against ~10 expected from the dfr opmark. Explaining that gap needs the norm/add rows
of the S2 tree with and without the levers. Two boots would add boot-to-boot drift, so a workbench-only knob, read per
call, switches the levers off for a re-capture on the same process. It only disables; flag-off and served arms are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The dfr 32k opmark has every GDN layer spending ~234 us/chunk on four glue ops after the scan: rms_norm on the
head-major fp32 o (72.6), nlp_concat_heads (54.8), silu(z) (61.5) and the fp32 x bf16 multiply (46.0), 11.2 ms per
2048-token chunk over 48 layers. The relayout is pure addressing and silu's result is bf16-exact, so both pairs fuse
with no numerics change:
- norm_concat: the image layernorm.cpp RMSNORM+gamma LLK sequence per (head, token-tile) row; the writer stores the
  tiles at nlp_concat_heads' token-major places.
- gate: one fp32-DEST pass, z unpacked to DEST, silu_tile<false> (the unary op's own bf16-rounding SFPU path),
  mul_binary_tile, then binary_ng's typecast_tile<fp32,bf16> post-activation (the packer alone rounds ties
  differently: 3 diffs in 196k before it was added).

ttsim: 1 chip ALL_OK (norm fp32 bitwise T=128..2048, gate bf16 bitwise incl. |z|<=200 and |a|<=1e38 extremes, z at a
column offset); 1x2 mesh in-boot self-test exact, MUSTFAIL refused. JIT-check 13/13 against vllm-tt:k2-mr-pk3r.
Flag off: byte-identical (gdn/tp.py takes today's branch). No card number yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
dna folded the in-layer h = x + attn_out into ffn_norm's PRE pass; the closing x_next = h + ff_out (bf16 + bf16, 3.7 ms
per 2048-token chunk at 32k in the dfr opmark) still ran as its own ttnn.add, and the next layer's attention norm then
re-read x_next. xa runs dnorm_fuse.run_add (the same program dna serves) with the NEXT layer's attention norm and
weight, and hands (x_next, attn_input) to that layer, which uses it only when its x IS that tensor (else frees it and
runs the norm as today). The model's TP prefill loops pass fold_next; the last layer keeps today's add.

ttsim: the add gate (bench/probes/sim_prefill_dnorm_add.py) is ALL_OK at M=2048/256 including xa's cell (b bf16,
out bf8, L1), plus env guards (XADD needs ADD; wb bypass "xadd" turns only xa off). Kernels unchanged from dna, so
the dna JIT-check stands. The plumbing has no ttsim rung; the card's B=1 text equality is its check. No card number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The queued workbench boot had not reached the cards, so it now boots S2-dnf-dna-gtl-xa and steps the DNORM and
GDN_TAIL wb bypasses through on / noxa / dnfdna / dnf / s2: one boot answers both 'why did dnf+dna save 5.4 ms, not
10' and what gtl and xa remove, op by op, with no extra card time. tracedoff and the SDPA mf rung stay on the 'on'
view only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The banners file now carries the GDN_TAIL / DNORM lines, so the screen starts only if the workbench boot showed both
new levers engaged; a refusing lever then costs one boot, not six.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The estimate for the 0058 upstream-math scan was -7.5..-9.4 ms per 32k chunk (556 -> 360-400 us/layer). On the
cards at hifi3 (ttsim showed the hifi2 version is too lossy), PP at 32k moves +1.10/+0.55/+0.85%
(B1/B4/B8), about -2.7 ms/chunk, and at 4k +2.65/+0.02/+1.43%. TG tok/s/user goes 65.3->63.5 (B1/32k),
62.1->63.9 (B4/32k), 77.1->75.1 (B4/4k): tier-2 numerics move MTP acceptance both ways. Most likely the
extra fidelity phase eats most of the saving. The next step is a hifi2-safe dl hi/lo split, so the arm can
run at the served fidelity. Record bench/runs/gum-verdict-20261019T175158Z.jsonl.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before, the self-test ran only on calls with a host chunk_start. The served warmup only uses the device
chunk_start tensor, so on the cards the "engaged" banner logged, the self-test never ran, every traced call
fell back to q=k, and the identity check refused the boot. Now the first engaged call runs the self-test
with whichever chunk_start form it has. That call is the eager warmup pass; a call under capture cannot read
back and refuses. ttsim covers both forms: pass and must-fail REFUSED (bench/runs/sdpa-kchunk-sim-20261019T1840Z.jsonl).

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>
At set_paged_kv_caches the reference nlp_concat_heads (L1 output, T=2048) clashed with L1 buffers already placed
('static circular buffer region ends at 898048', buffer at 846976): the check refused the boot before any view ran,
and the chained ab stopped on its banner gate as designed. Output placement changes no byte (ttsim ran L1 and DRAM),
so the self-test now writes DRAM; 1x2 ttsim self-test re-run ALL_OK. Relaunched opmark + ab as one queue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The estimate was -1.2..-2.9 ms/chunk at 32k; measured PP +0.67/+0.96/+0.91% (B1/B4/B8) is about -2.5
ms/chunk. 4k is within +-0.6%. TG tok/s/user: B1/32k 65.4->62.6, B4/32k 62.2->66.0, B4/4k 76.4->73.3. A
tier-2 change to the prefill softmax order moves MTP acceptance both ways. The served self-test is exact
enough (PCC 0.9997 on both chips), but its wrong-input rung separates thinly on the cards (PCC 0.986/0.946
vs the 0.99 bound): tighten that before any reuse. Record bench/runs/sk512-verdict-20261019T185542Z.jsonl.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
LEVERS: sk512 card verdict (PP +0.6..+1.0% at 32k, TG mixed; inert/small)
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 7m6s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 14m20s
cards-fresh cards: queued (fingerprint has no successful verdict on this PR) fp=9429fafe3d0b6e26
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 11m43s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
057b2f737d
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 -gum card verdict (gum-verdict-20261019T175158Z, ABBA n=2) gave PP +0.55..+1.10% at
32k, not the -7.5 ms/chunk estimate, and we believed running both GDN kernels at hifi3 ate the
saving. The proposed fix was a hi+lo split of the in0 operands so that the scan could stay at hifi2.

Evidence (ttsim, served per-chip shape, fp64 ref):
- Per-kernel fidelity (T=512): prep at HiFi4 + scan at hifi2 = 0.49x flag-off o error; scan at
  HiFi4 + prep at hifi2 = 1.22x. The precision loss is in the PREP, not the scan.
- Exact fp32 broadcasts (unpack-to-dest) at every FPU bcast site in the prep (ttsim-only mode
  'exact', site bitmask) only bring o to 1.05x; the rest is the in0 of q@k^T and k_beta@k^T.
- HiFi3's extra phase is SrcA x SrcB-low, the hardware's own hi+lo split of SrcB and cheaper than
  two software passes. So prep3 runs the prep compute at >= HiFi3 and leaves the scan, which is the
  serial path, at the arm's hifi2. T=2048 gate (gdn-upmath-sim-prep3-20261019T192125Z, all_ok):
  rms vs hifi2 flag-off is o 0.50x and state 0.49-0.54x in s0/nos0/chain; the must-fail is caught
  at 57-81x. The boot self-test passes, using fidelity-dependent bounds (hifi2: <= 0.035, wrong
  >= 0.07), and refuses the must-fail. Flag-off outputs are bitwise equal to the 0056 overlay's.

Mode 1 (0058 at hifi3) and the -gum arm/manifest are unchanged and still reproducible.
Arm -gum2 = S2 + UPMATH=prep3, with SCAN_FID still hifi2 and COL_EXP/DST4 off (superseded).
No card verdict.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
gum ran the whole scan at hifi3 and kept only ~2.7 ms/chunk of the estimated saving. ttsim shows the loss is
in the prep, so gum2 runs only the prep at HiFi3 and the scan at the served hifi2.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ttx: unique slot owner per driver; down/queue refuse foreign containers
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 5m55s
tt-stack-ci / Report upstream drift (pull_request) Successful in 8m33s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 20m4s
tt-stack-ci / Serialized card gate (pull_request) Successful in 55m45s
cards-fresh cards: stale, verdict run 850 fp=8cd27612f4a06ed0 != merged fp=32df1100673e4b22; push or add cards:go
cf64824499
Before: every local ttx driver claimed as ttx-<user>@<host>:ab. slot.sh treats the
same owner as re-entrant, so on 2026-10-19 two `ttx ab --wait` queues both took the
mesh after the CI gate and booted 6 s apart (one died with "Sysmem mapped at unexpected
NOC address"). A `ttx queue stop` also downed another track's server: the killed step's
cleanup downs every ttx-* container that appeared during the step, and bare skip/stop
act on `latest`, the newest queue of any agent.

Now:
- default_owner(): `#q<TTX_QUEUE_ID>` in a queue step, `.p<pid>` for ab/run (drivers);
  `ttx up` / `ttx slot` keep the queue-scoped owner so a later down/release matches.
  $TTX_OWNER (CI, card queue) stays verbatim: CI re-enters its pre-acquired claim.
- acquire re-reads the claim after the wait and refuses to boot if it is not ours.
  The box-side take was already atomic (flock); the owner was the hole.
- `ttx down` refuses (exit 3) a container whose ttx.claim/ttx.owner is not ours; --force.
- queue cleanup downs as this queue (TTX_QUEUE_ID), so foreign containers are refused;
  `queue skip|stop --force` lifts that for one cleanup.
- `queue skip|stop` without --id refuse when more than one queue is alive.
No arm changes. Running queues keep their own worktree's code; old-format claims stay
downable from a bare shell and are never downed by a new queue's cleanup.

Tests: tools/ttx/tests/test_claim_unique.py (two concurrent waiters on the real slot.sh:
one wins; shared owner shows the re-entrancy; foreign refusal; --id guard). Suite 662 OK.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pp-glue2: card verdict — gtl + xa on dnf+dna, tier-1 WIN, PP +3.9..4.2% at 32k vs S2 (R-2026-10-19-glue2)
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 2m6s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
6209d72522
The 10-19 dnf+dna screen read only -5.4 ms/chunk against an estimated -10, and gtl/xa were estimated at -4.6..-5.4 and
~-2. One workbench boot with the levers switched by wb bypass knobs (five views, identical logits sha: all four levers
bitwise on card) shows dnf+dna save 10.3 ms busy per chunk as estimated; the wall moves 8.3 and the 10-19 served
number sat in boot-to-boot drift. gtl saves 3.8 busy (its fused programs cost 8.2 of the 11.4 they replace) and xa 0.6.
Served ab (2 reps): gtl-xa PP +2.6..+4.2% in 6/6 cells vs S2, TG -0.9..+2.8%, acceptance unchanged. gtl+xa fall short
of the >=8 ms target (-4.4 busy / -4.0 wall).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pp-glue2: nix serving unit mounts dnorm_fuse, gdn_tail, their kernels and opmark.py
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
abc11d249e
test_prod_matches_nix::test_mounts failed: prod.toml's overlay tree carries the 13 new files, the unit did not mount
them, so the nix-deployed server would import modules the image lacks. All 8 prod-vs-nix tests pass now.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pp-glue: nix serving unit mounts dnorm_fuse.py and its kernels
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 2m55s
tt-stack-ci / Report upstream drift (pull_request) Successful in 3m32s
cards-fresh cards: PR does not merge cleanly onto base
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 9m7s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
886c32358b
test_prod_matches_nix::test_mounts failed: prod.toml's overlay carries the dnf/dna files, the unit did not mount them.
All 8 prod-vs-nix tests pass now.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merge branch 'pp/glue' into pp/glue2
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
21744bc398
# Conflicts:
#	modules/tenstorrent-serving.nix
ttx: unique slot owner per driver; down/queue refuse foreign containers
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 2m11s
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m25s
cards-fresh cards: PR does not merge cleanly onto base
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 6m49s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
13c338c848
Before: every local ttx driver claimed as ttx-<user>@<host>:ab. slot.sh treats the
same owner as re-entrant, so on 2026-10-19 two `ttx ab --wait` queues both took the
mesh after the CI gate and booted 6 s apart (one died with "Sysmem mapped at unexpected
NOC address"). A `ttx queue stop` also downed another track's server: the killed step's
cleanup downs every ttx-* container that appeared during the step, and bare skip/stop
act on `latest`, the newest queue of any agent.

Now:
- default_owner(): `#q<TTX_QUEUE_ID>` in a queue step, `.p<pid>` for ab/run (drivers);
  `ttx up` / `ttx slot` keep the queue-scoped owner so a later down/release matches.
  $TTX_OWNER (CI, card queue) stays verbatim: CI re-enters its pre-acquired claim.
- acquire re-reads the claim after the wait and refuses to boot if it is not ours.
  The box-side take was already atomic (flock); the owner was the hole.
- `ttx down` refuses (exit 3) a container whose ttx.claim/ttx.owner is not ours; --force.
- queue cleanup downs as this queue (TTX_QUEUE_ID), so foreign containers are refused;
  `queue skip|stop --force` lifts that for one cleanup.
- `queue skip|stop` without --id refuse when more than one queue is alive.
No arm changes. Running queues keep their own worktree's code; old-format claims stay
downable from a bare shell and are never downed by a new queue's cleanup.

Tests: tools/ttx/tests/test_claim_unique.py (two concurrent waiters on the real slot.sh:
one wins; shared owner shows the re-entrancy; foreign refusal; --id guard). Suite 662 OK.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit cf64824499)
LEVERS: gum2 refused on silicon by its own self-test (no speed number)
Some checks failed
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
cards-fresh cards: PR does not merge cleanly onto base
91f1c7c19e
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The bounds came from ttsim on random inputs, where o/state sat 0.011-0.022 from the hifi2 control. On the
cards' live warmup inputs, chip 0's o was 0.064 away (bound 0.035) and chip 1 was 0.022/0.025. The
wrong-input rung separated (0.06-0.20). The gate failed closed as designed. It is open whether prep3 is
really further from the control on model data or the bound is mis-calibrated: replay the live warmup
inputs in fp64 off-card to decide. The S2 control measured 6/6.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts:
#	scripts/jit-check-kernel.sh
# Conflicts:
#	scripts/jit-check-kernel.sh
Before: the self-test bounded the flag-on output's distance to the flag-off CONTROL at the arm's own
fidelity. ttsim on random inputs had calibrated that at hifi2 to <= 0.035. On silicon, -gum2's boot
REFUSED prep3 with distances [[0.064, 0.006], [0.022, 0.025]].

Evidence: a host replay of the served warmup's first fused GDN call (layer 0, 2048 x token 0, zero
state, TP=2; the inputs are built from the FP8 base checkpoint's layer-0 tensors, see
bench/probes/gdn_upmath/model_inputs.py) reproduces the refusal pattern. On those inputs the hifi2
CONTROL is itself 7-11% off fp64 (o 0.074/0.020, state 0.089/0.107 relative). prep3 is closer to
fp64 on both chips (o 0.017/0.016, state 0.055/0.062; rms 0.24-0.77x the CONTROL's). The old
bound was therefore measuring the CONTROL's error, not prep3's.

Change: the reference now runs flag-off at HiFi4 (o 0.003, state 0.014-0.018 from fp64), and the
wrong-input rung is g' = g - 1 (on model inputs g/2 - 1/8 moved o by only 0.06-0.07). Bounds:
- Scan at hifi2: <= 0.08, wrong >= 0.12. Measured: model prep3 0.014-0.051, wrong 0.158-0.348;
  random 0.007-0.008, wrong >= 0.66.
- hifi3/4: <= 0.03, wrong >= 0.1. Measured: mode 1 0.002-0.012.
Both must-fails are refused on model and random inputs. No card run here.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The owner's policy is to combine levers rather than kill them in isolation. Alone, kda3, sk512 and gum each
moved PP at 32k by about +0.5..+1% (~2.5 ms/chunk each), below their bands. gum2 now passes its recalibrated
self-test on model inputs, and prep3 sits closer to fp64 than the hifi2 control. kda3 still gates bitwise on
this tree (bench/runs/kda-tile-sim-combo-20261019.jsonl). Control: the glue stack arm ...-s2-dnf-dna-gtl-xa (PR #269).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- cmb (kda3 + sk512 + gum2) vs ...-dnf-dna-gtl-xa (ABBA n=2, 12/12):
  - PP 32k: B1 6724->6850, B4 6750->6894, B8 6766->6879 (+1.87/+2.13/+1.68%, bands 0.3-0.6%), i.e. ~-6 ms/chunk.
  - PP 4k: +0.75/+1.97/+1.07%.
  - TG/user: -2.57/+1.83/-0.55% at 32k and -2.29/-0.64/-1.71% at 4k. In every cell the change is at or above
    what MTP acceptance alone implies (tokens/row-step: B1/32k -3.03%, B4/32k +0.73%, B8/32k -1.17%), so the
    decode step is not slower. Tier-2 numerics change the text, and each arm has one fixed trajectory.
- gum2 alone vs S2 (recalibrated self-test passed on silicon): PP 32k +0.52/+0.62/+0.90%, 4k +2.07/+0.83/+0.34%;
  TG/user -4.4..+6.5% (text change).
- Next: equiv + gsm8k (n=60, the CI gate form) on control and arm.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
cmb: tier-2 gates pass (equiv near-tie, gsm8k 59/60 vs 57/60 paired)
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
cards-fresh cards: PR does not merge cleanly onto base
78c42638e2
The combo's TG drop could have been a numerics regression rather than
acceptance drift. The equiv compare shows only near-tie divergences
(max gap 1.75) and gsm8k paired gains 2 items, so -cmb clears tier 2;
PP +1.7..2.1% at 32k (~-6 ms/chunk) stands, below the 15 ms target.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

verdict: approve (comment-only — WIN, but ship is the coordinator's call)
tier: T2

rationale: Clean superset of #268 (ttx slot ownership) + #269 (glue2 dnf/dna/gtl/xa). The three new prefill levers — kda3 (0060), sk512 (SDPA k_chunk 512), gum2 (0058+0059, FUSED_UPMATH=prep3) — are all read per-call, strict (raise/TT_FATAL on any non-default value, no silent off), and fail-closed with wrong-input self-test rungs. Flag-off path is byte-identical (no cache-key defect: kda3 is gated on qkv.buffer_type==L1 and falls through to kda2; the glue levers are lazy-import + enabled()-gated). Off-card gate green (head JIT compile check run 9579 = success). The derived -cmb arm inherits the glue stack, sets exactly the 3 levers + 2 off-flags, and its expect lists have 0 banner/absent conflicts (138/13/108). Device proof is the cited records, not head CI: ABBA n=2, 12/12 cells, PP 32k +1.7–2.1% (≈ −6 ms/chunk); tier-2 gates PASS (equiv NEAR_TIE max gap 1.75, gsm8k paired 57→59/60, McNemar p=0.5). No secrets, no red-flags, no CI/workflow change; the Nix delta is additive bind-mounts only (inert flag-off).

Why comment-only (no human-approved label, no un-draft): the measured win (≈ −6 ms/chunk) is below the ≥15 ms/chunk track target for this branch, and the PR body defers the ship decision to the coordinator. Because every lever is default-off, merging is harmless (nothing active ships) — merge-or-close is the owner's call, or label+merge to ship.

concerns:

  • [warn] docs/LEVERS.md (kda3/sk512 rows) + tp_common.py sdpa_kchunk_selftest — the sk512 wrong-input rung separates thinly on the cards (PCC 0.986/0.946 vs the 0.99 bound). It passes here, but tighten it before reusing sk512 in a later combo.
  • [warn] #268 + #269 are still open and this PR is their superset (merge-base = master; the net delta includes the glue2 levers and the ttx slot-ownership changes). After this merges, #268/#269 should be closed as superseded (do not merge them separately — that would double-land the same changes).
  • [warn] measured ≈ −6 ms/chunk is below the ≥15 ms/chunk track target (stated in LEDGER R-2026-10-20-cmb); the win is real but below bar — a factor in the ship call.

[handoff ho-b640166d66fe]

**verdict:** approve (comment-only — WIN, but ship is the coordinator's call) **tier:** T2 **rationale:** Clean superset of #268 (ttx slot ownership) + #269 (glue2 dnf/dna/gtl/xa). The three new prefill levers — kda3 (0060), sk512 (SDPA k_chunk 512), gum2 (0058+0059, FUSED_UPMATH=prep3) — are all read per-call, strict (raise/TT_FATAL on any non-default value, no silent off), and fail-closed with wrong-input self-test rungs. Flag-off path is byte-identical (no cache-key defect: kda3 is gated on qkv.buffer_type==L1 and falls through to kda2; the glue levers are lazy-import + `enabled()`-gated). Off-card gate green (head JIT compile check run 9579 = success). The derived `-cmb` arm inherits the glue stack, sets exactly the 3 levers + 2 off-flags, and its expect lists have 0 banner/absent conflicts (138/13/108). Device proof is the cited records, not head CI: ABBA n=2, 12/12 cells, PP 32k +1.7–2.1% (≈ −6 ms/chunk); tier-2 gates PASS (equiv NEAR_TIE max gap 1.75, gsm8k paired 57→59/60, McNemar p=0.5). No secrets, no red-flags, no CI/workflow change; the Nix delta is additive bind-mounts only (inert flag-off). **Why comment-only (no `human-approved` label, no un-draft):** the measured win (≈ −6 ms/chunk) is below the ≥15 ms/chunk track target for this branch, and the PR body defers the ship decision to the coordinator. Because every lever is default-off, merging is harmless (nothing active ships) — merge-or-close is the owner's call, or label+merge to ship. **concerns:** - [warn] `docs/LEVERS.md` (kda3/sk512 rows) + `tp_common.py sdpa_kchunk_selftest` — the sk512 wrong-input rung separates thinly on the cards (PCC 0.986/0.946 vs the 0.99 bound). It passes here, but tighten it before reusing sk512 in a later combo. - [warn] `#268` + `#269` are still open and this PR is their superset (merge-base = master; the net delta includes the glue2 levers and the ttx slot-ownership changes). After this merges, #268/#269 should be closed as superseded (do not merge them separately — that would double-land the same changes). - [warn] measured ≈ −6 ms/chunk is below the ≥15 ms/chunk track target (stated in LEDGER R-2026-10-20-cmb); the win is real but below bar — a factor in the ship call. [handoff ho-b640166d66fe]
Member

Closed as superseded: the winning piece (gum2) shipped alone via S5 (2b4067376) after the R-2026-10-20-s3gum2 paired-acceptance PASS — that was the last unlanded combination item; kda3 was dead and sk512 alone was HOLD. Verified 2026-11-18.

Closed as superseded: the winning piece (gum2) shipped alone via S5 (2b4067376) after the R-2026-10-20-s3gum2 paired-acceptance PASS — that was the last unlanded combination item; kda3 was dead and sk512 alone was HOLD. Verified 2026-11-18.
orchestra closed this pull request 2026-11-18 13:02:53 +01:00
Author
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 / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
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!273
No description provided.