Commit Graph
831 Commits
Author SHA1 Message Date
Constantin 8cb2c0a841 Add regression for Spark TP projection rounding
Capture the BF16 midpoint case and require each projection reduction to round before widening into the FP32 residual. This regression precedes the production fix and is expected to fail on the current graph.
2026-11-03 19:08:58 +01:00
Constantin 4204fa4da7 Let the shipped-arch registry expect spark25
The loader test fixes the (architecture id, quantisation descriptor) pairs a shipped plugin may
claim; the Spark plugin was not in it, so the set comparison failed once every architecture plugin
was built.
2026-11-03 19:08:58 +01:00
Constantin 1c96558970 Shard Spark across ranks and reduce the f32 residual
Attention takes whole GQA groups, so a world that does not divide the KV head count still gets a
clean cut; above it the KV heads are replicated and a group splits between the ranks sharing its
KV head. Gate/up, down and the tied vocabulary take matching spans, and every query head, FFN
channel and vocabulary row belongs to exactly one rank at every world from 1 to 8.

The projection outputs are partial sums, so each block widens to f32 and issues an exact f32
all_reduce before the residual add, which keeps the single-card accumulation order.

tests/spark25_reference.py --tp N holds the sharded graph against the HF reference on N fake host
devices; the tiny fixture has 8 heads over 4 KV heads and 3584 vocabulary rows so worlds 1-8 all
get a nonempty shard.
2026-11-03 19:08:58 +01:00
Constantin 48407fb52d Cover Spark configuration refusals and CPU isolation caveat 2026-11-03 19:08:58 +01:00
Constantin 125854df79 Document Spark support and add reference differential 2026-11-03 19:08:58 +01:00
Constantin 1483a1ae17 Support Spark reasoning and tagged tool calls 2026-11-03 19:08:58 +01:00
Constantin e56d948889 Add BF16 Spark 2.5 checkpoint and decoder 2026-11-03 19:08:58 +01:00
keptn42 a0f9eb29c0 deploy/compose: Ling-3.0-flash-Sante w4a8 on two cards 2026-11-03 19:07:34 +01:00
keptn42 ab736ca3e3 libr4d: mla_attn_paged splits by heads alone, so a verify row matches its single-row decode
The history split was sized by rows * heads and clamped by the step's longest table: at eight heads
one and two rows split 16 ways and three rows 11, so the k + 1 rows of a speculative verify summed
their partials in another order than the single-row decodes at the same positions, and Ling-3.0's
greedy text left the run without speculation from MTP depth 2 on. The count now comes from the
head count only; a scratch hook sizes the partials for up to 32 rows a launch, and a larger batch
takes as many splits as its scratch holds. r4d_emu's mla test holds verify launches of 2 to 32
rows to their single-row decodes bit for bit.
2026-11-03 19:07:34 +01:00
keptn42 303060f210 deploy/compose, README: Ling-3.0-flash-Sante w4a8 on four cards 2026-11-03 19:07:34 +01:00
keptn42 36de701090 docs: bailing_hybrid in ARCHITECTURES.md 2026-11-03 19:07:34 +01:00
keptn42 ccb5071228 data/recipes: ling3-w4a8-rtn and ling3-w4a8-gptq -- Ling-3.0's routed experts at four bits
The routed experts as int4 codes with a bf16 scale per 128 of K, everything else as the checkpoint
holds it: rounded to nearest, or chosen by GPTQ against a calibration run of the first container.
One format, so the same kernels serve both.
2026-11-03 19:07:34 +01:00
keptn42 a78352dad1 bailing_hybrid: RADIANCE_LING_DUMP writes the residual stream after each block
Every row of every step after each layer's attention and feed-forward, one bf16 file per site and
rank, for a layer-by-layer comparison against a reference model. It synchronises the stream.
2026-11-03 19:07:34 +01:00
keptn42 0b18331a34 bailing_hybrid: whole experts per rank for a calibration run and for bf16 experts
The GPTQ tap writes each expert's down Hessian over its whole width, and a slice of a bf16 expert
is not one container run. Either way rank r owns experts [r E/W, (r+1) E/W) whole, as qwen4exp
does; served to calibrate and compare, not for decode speed.
2026-11-03 19:07:34 +01:00
keptn42 638663e9ff bailing_hybrid: the MTP layer as a serial drafter
Checkpoint layer 42 behind GlmMtp at 2560, model.layers.42 and final_layernorm.weight: an MLA layer
with the full routed feed-forward, its weights named as a trunk layer's, so a recipe's expert rule
covers them. Declared when the deployment speculates; a draft pass runs as GLM-5.3's.
2026-11-03 19:07:34 +01:00
keptn42 dd43d31e93 arch/common: GlmMtp takes its width, checkpoint prefix, layer and norm name
GlmMtp keeps GLM-5.3's layout as its defaults (4096, model.language_model.layers.45, 45,
shared_head.norm.weight), so that graph is unchanged. Another DeepSeek-style draft head sets them
before declare_inputs.
2026-11-03 19:07:34 +01:00
keptn42 8611feb85e bailing_hybrid: Ling-3.0-flash -- KDA, dense latent attention, group-routed experts
Ling-3.0-flash and its fine-tunes (`model_type: bailing_hybrid`) from the bf16 checkpoint: 42
layers in groups of five KDA layers and one dense MLA layer, two dense feed-forward layers, then
512 experts of 768 under group-limited sigmoid routing with an ungated shared expert. The KDA core
is GLM-5.3's (KdaState); the MLA attends in the latent through mla_project and mla_attn_paged, its
query served as two projections (the heads' rotary rows and their nope rows, each a plain 2-D
plane). One, two or four ranks; at four an expert's six blocks split 2, 2, 1, 1, rotated by the
expert's number mod 4 (moe_gemm_q_mod4). The latent and KDA caches are bf16.
2026-11-03 19:07:34 +01:00
keptn42 1c2f55027c arch/common: group-limited sigmoid routing and a SwiGLU clipped after the SiLU, for Ling-3.0
GlmRouter takes `groups` and `topk_groups` and issues router_sigmoid_group_topk above one group.
MoeFP8 passes them on (a grouped router runs the separate selection, not the single-group fused
one), takes a clamp of its own for the shared arm, and with `swiglu_step` clips both arms after
the SiLU; GateQuantFP8 issues swiglu_step for that, without the fused clamp-and-quantise. Every
default is the existing behaviour, so no other graph changes.
2026-11-03 19:07:34 +01:00
keptn42 523349dd8f libr4d: swiglu_step, router_sigmoid_group_topk, mla_attn_paged, and mla_project at head_dim 128
mla_attn_paged is the wave-per-(row, head) latent attention of mla_attn with the rotary part in
the score, one page table a sequence, the causal bound from cu_seqlens and seqused, and the head
gate in its store; a short batch splits the history and merges f32 partials as mla_attn does.
router_sigmoid_group_topk is router_sigmoid_topk's wave with the groups ranked first, a lane a
group. mla_project takes the head width as a template parameter; at 256 it is the kernel it was.
r4d_selftest holds each new row and the 128-wide mla_project to libref.
2026-11-03 19:07:34 +01:00
keptn42 e4ca20ddf8 libavx: swiglu_step, router_sigmoid_group_topk and mla_attn_paged, held to libref by avx_check 2026-11-03 19:07:34 +01:00
keptn42 7169c9da0a libref: swiglu_step, router_sigmoid_group_topk and mla_attn_paged
Three ops Ling-3.0 needs, with their references, OPS.md entries and ref_test cases.
swiglu_step is the SwiGLU clipped after the SiLU, as vLLM and SGLang serve Ling-3.0.
router_sigmoid_group_topk is noaux_tc routing with groups: a group ranks by the sum of its two best
biased scores and only the best groups' experts are candidates. mla_attn_paged is dense causal
latent attention over a paged cache whose row is the latent then the rotated key part, with an
optional head-wise sigmoid gate; it refuses zero rows and reads a gate row at the gate's own pitch.
2026-11-03 19:07:34 +01:00
keptn42 9c5d4a656c tokenizer: possessive quantifiers where the greedy reading matches the same
A possessive repetition of one class at the top level, whose tail in its concatenation is classes
that share no codepoint with it, gives the same matches read as greedy: a shorter run leaves the
tail facing a codepoint it cannot take. Ling-3.0's pre-tokeniser pattern has two such quantifiers.
Everything else stays refused by name.
2026-11-03 19:07:34 +01:00
Asim Siddiqui 702a0970cc libr3d: value-init the GEMM's by-value structs so the tape audit sees no padding
The recorded-pass audit (Ctx::tapes_agree -> a_tape_diff) byte-compares the serialized
kernel arguments of a pass against its recording, and on the first disagreement it concludes
"the pass depends on something the recording's key does not carry" and stops the engine. On
gfx1102 with the dspark drafter that self-stop fired on the third request:

  E rank 0: draft pass -1 at 23 tokens issued differently from its recording after 0 plays,
    so the pass depends on something the recording's key does not carry:
    record 1: kernel fp8a8_tiled_kernel: its arguments differ at byte 28

Byte 28 is not a pointer offset. With ActQ = 24 bytes (a pointer, a long long, an int, and a
4-byte trailing hole) and WQ = 64 bytes (with a 4-byte trailing hole), the argument block is
a[0,8) aq[8,32) b[32,40) h[40,104) ...; inside aq, gmode ends at 28 and bytes 28..32 are
padding. The audit found the first difference at 28, so every real field before it -- a,
aq.scale, aq.row, aq.gmode -- was identical: only the padding differed.

The launcher built those structs with aggregate-init (ActQ aq{ptr, ll, int};), which
initializes the three members and leaves the trailing padding indeterminate. HIP serializes
the whole struct, padding included, into the kernel-argument block, so the record and the
audit each captured whatever garbage was on the stack. Whether the two garbage patterns match
is a coin flip per run -- a Heisenbug that only surfaced once the stack states diverged.

Value-init the structs (ActQ aq{}; WQ h{}; MxWQ h{};) and assign the fields: value-init
zeroes the entire object including padding, aggregate-init does not. The kernel reads none of
the padding, so behaviour is unchanged -- only the serialized bytes become deterministic, and
the audit can no longer mistake a padding byte for a missing key. Applied to both the
fp8a8_tiled and mxfp4a8_tiled launchers, the only two libr3d kernels that pass a struct by
value.

Verified on the box (RX 7600, gfx1102): r3d_selftest 109 rows clean, 0 failed; the rig with
the dspark drafter armed (speculation at its auto depth) now serves back-to-back requests
past the point that self-stopped it before, with no schema or tape refusal.
2026-11-03 19:06:47 +01:00
Constantin 798fb21e51 prefill: key tape splits from ordered host KV bounds 2026-11-03 19:05:30 +01:00
Constantin aa14eea76c prefill: fail closed when live split geometry is unknown
Head-256 split-prefill launchers now declare that their grid depends on
live KV. Without an architecture geometry key, those passes stay live
instead of replaying a stale tape. Qwen keys only a proven one-sequence
prefill. Plugin ABI 34.
2026-11-03 19:05:30 +01:00
Constantin ded64c0bd3 prefill: key recordings by live split geometry 2026-11-03 19:05:30 +01:00
Constantin 61e275e30f prefill: split KV on live seqused, not the model max_ctx
The 8-tile floor used max_ctx, so a 128-token chunk at --max-model-len
2048 became four splits of ~32 keys. The same prompt in one 977-token
launch stayed unsplit. Only the reduction order changed, and that
moved Spark BF16 first-token top-20 by 0.46 nats.

Occupancy still decides when a long-KV short-Q launch should split.
The floor now reads seqused_k (skipping the copy when occupancy is
already 1). A 128/128 case with declared max_ctx 2048 stays unsplit.
2026-11-03 19:05:30 +01:00
Constantin 9cb04f62a8 config: --gpu-memory-mib, the inverse of --gpu-headroom-mib
N claims that many MiB of every card; headroom is the rest. The two
flags cannot be combined. vLLM's utilisation fraction, written in MiB.
2026-11-03 19:02:52 +01:00
Memoria (Noblistic) aa182fc156 docs+tests: drop the page-wide separator claim, close one surviving mutant
Review B of 54d4613 refuted the second clause of the separator sentence. The
population is 15 dots / 46 pipes, not the 11/15 enumerated before it: the history
line's own anchor dot is written as the escape form, so a glyph grep misses the
sentence's own subject. And triple()/acceptTriple() pipe-separate an extreme from
a window mean from a current value in the strip tiles, which is a plain field
join only by stretch. The clause corrected one overclaim by asserting its
negation; the real state is asymmetric, so only the line-local scoping stays.

history.test.js:
- add tpsF(9.994) == "9.99", which kills the sig3 9.995->9.994 mutant that
  survived 09ac548. Measured: FAIL got "10.0" want "9.99", rc=1.
- the reviewer's other proposed closer, tpsF(99.951) == "100", is NOT added.
  Against the tps 99.95->99.951 mutant it passes, and 2000 samples across
  [99.94, 99.96) give shipped and mutant the same output set ["99.9","100"]:
  cnt and sig3 agree throughout [99.95, 99.951). That mutant is behaviourally
  equivalent and no literal can catch it, so the check would be a guard that
  cannot fail.
- the n=25 floor/ceil check could never fail (mkRows is strictly increasing), so
  it is now a fixture precondition that throws instead of a counted check.

Check count stays 63. Suites after: 27/35/63/34 JS, dashboard_test 241 over 8.
No shipped code touched.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) c776ab9e46 GUIDE: scope the separator rule to the history line, where it actually holds
The delta review recommended one sentence to close the ambiguity behind the three leftover pipes,
and this is that sentence -- but not the sentence it suggested, because the suggested one asserted a
page-wide rule that the code does not have.

The recommendation was to state that the rule is page-wide and that a trailing verdict takes a pipe.
Enumerating every separator site before writing it (11 dot sites, 15 pipe sites) showed the opposite:
the memory panel joins its sibling fields with dots (rest.join at :2692) and reserves the pipe for
the trailing verdict, while the KV sub-line joins its two fields with a pipe (:2531). Two different
idioms on adjacent panels. And most of the 15 pipe sites are ordinary field joins -- version | up,
N cards | M collectives, mean | worst L3 -- so the pipe is not reserved for verdicts at all.

So the rule is scoped rather than extended: the dot/pipe convention is a property of the history
line, and neither glyph means anything page-wide. That is the true statement and it closes the same
question -- the three pipes are not leftovers, they are plain separators in panels that never
adopted the history line's convention.

Two drafts were rejected on the way here, both for overclaiming: one said the KV, memory and kernel
panels "use them the same way" (they do not -- dots vs pipes), one said the pipe "introduces a
trailing verdict" as though that were its role (it is one of several uses). The delta review warned
that rewrites introduce new false claims; it was right about the risk and this is the third time on
this branch I have caught a doc sentence of my own saying more than the code does.

Docs only, no code touched. Within the section's 102-character maximum.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) d564e6e5b1 tests/js: break the tautology the delta review caught, and three surviving mutants
The delta review refuted guard 3 of 4dce97b, and it was right. Replacing the re-typed formatters
with a slice of the shipped ones removed one unfalsifiable shape and installed another: tpsF/cnt3F/
durF are called on BOTH sides of every comparison, so any formatter bug cancels out. Verified with
my own instrument before fixing -- shipped `tps = (v) => "X"` passed all 37 checks. The brief
warned about exactly this and I walked into it anyway.

Three sections added, each mutation-tested with rc captured on its own line:

Formatter literals (14 checks). The only place the formatters are pinned to something other than
themselves. tps -> "X" now fails 5 checks; the dur ms branch -> *100 + " s" fails 2. Band
boundaries are pinned at both edges (9.995 inclusive, 99.95 exclusive) because that is the rule F1
of the docs fix depends on. Values were derived from the shipped source rather than copied from
the review's draft, which caught a real error in it: DASH is U+2013, not a hyphen, so the drafted
`tpsF(NaN) === "-"` would have failed on correct code.

Median at an ODD row count (2 checks). M17 survived the previous fixture change because the median
was only ever asserted at n=24, where floor(12) and ceil(12) are the same row -- a non-uniform
fixture could never have caught it, so the earlier diagnosis named the right cause and the wrong
cure. n=25 makes the two candidates differ, and floor->ceil now fails with "1.80 s" want "1.70 s".

Threshold counts adjacent to the boundaries (8 cases, up from 3). M15 survived because no case sat
at 19, and a >=5 -> >=7 mutation survived because no case sat below 7. Counts now straddle both
thresholds: 4/5/6 pin the 5 boundary, 19/20 pin the 20.

history.test.js 37 -> 63 checks. Full suite: 27/35/63/34 JS, 241/8 and 62646/184 C++.

GAP D (the revoke delay argument) deliberately not pinned: the 1000 ms is a safety margin, not a
contract, and a guard that fails a reasonable 500 ms encodes an arbitrary constant.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 8be040f599 tests/js: five guards that could not fail, now proven to fail
The review ran 27 mutants and 6 survived. Each fix below was then mutation-tested against the
shipped source, with rc captured on its own line -- a piped `| tail` reports the tail's status and
would have hidden every one of these.

download.test.js 31 -> 34 checks:

The assertion at :64 could not fail. `ok(page.indexOf('<span class="cap">Requests</span>') < iBtn)`
compares against indexOf, which returns -1 when the caption is absent, and -1 < anything is always
true. Renaming the caption survived both suites. Now the index is captured and required to exist
before the order is compared.

The stubs recorded counts, not sequence: click() incremented a counter, appendChild pushed to a
separate array. So click-before-appendChild survived -- and Firefox ignores a click on an anchor
that is not yet in the DOM, so that ordering is a silently dead button in a real browser. One
shared seq[] log now makes the order assertable, and the mutant is caught by the new assertion
itself ("the anchor is in the DOM BEFORE it is clicked: ["click","append","remove"]"), not by a
crash. My first attempt at that mutant targeted el.body, which does not exist, and failed with a
TypeError -- proving only that the mutant was malformed, so I rebuilt it against the real line.

history.test.js 29 -> 37 checks:

The formatters were re-typed. The suite passed its own `(v) => v + " ms"` into the shipped
renderer, then asserted "value and unit are one string" against the unit the stub had
manufactured -- testing the fake, not the page. tps/cnt3/dur are now sliced from the shipped
source (DASH..dur is self-contained) and the guard compares against what the real dur() renders.

Presence assertions became value assertions. "last 20" appearing in the string survived
slice(-20) -> slice(-100), because the label was still there while the figure silently became the
last 100 -- a wrong number on a performance dashboard. Each figure is now compared to a mean
computed independently of the shipped group(). The fixture also had to change: the old cycling
values made mean(all) equal mean(last 20) by coincidence, so no window mutation could show up in
the output. Distinct values per row fix that.

Threshold fixtures at 7, 12 and 24 rows. 12 is the discriminating count -- it kills a threshold
lowered to <=12 as well as one raised.

The two .hsep padding regexes are unified. One was loose, one strict, and they disagreed about
whitespace: a reformat from `padding:0 9px` to `padding: 0 9px` passed the loose test and then
CRASHED the suite on `null[1]`. One regex, one match, checked before use.

Verified: slice(-100) caught (2 failures), threshold >=12 caught, ttft median->mean caught
("1.65 s" want "1.70 s"), padding reformat now passes cleanly. Full suite: 27/35/37/34 JS,
241/8 and 62646/184 C++.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 08fa89255c GUIDE: seven doc claims the review found false, plus the comment that caused the worst one
The adversarial review's call was ship the code, fix the docs first. Every correction below was
re-verified against the shipped code before editing, not applied on the verdict's word -- the
review ran against e9f0622 and the tree is now rebased a559977, so all anchors were re-located by
content.

The blocking pair:

F2 was the worst: "Reloading the page resets these figures, a server restart does not" states the
opposite of the code. newEngineRun() deletes extAt/extAtS (dashboard.cpp:1735-1736), poll() calls
it when started_at changes (:3942), and this branch's own extremes.test.js:103 is titled "a
RESTART drops the extremes". Three independent instruments, one doc line saying the reverse. The
error was inherited from a stale comment at :1709-1710, so that comment is corrected too -- it is
the root cause, and it is comment-only: every changed line in dashboard.cpp starts with an
asterisk, verified by filtering the diff.

F1 is a worked example a reader copies: sig3 renders one decimal across [9.995, 99.95), so the
line prints "best 58.0 | recent 54.0", not "best 58 | recent 54".

The rest are one-liners: F3 claimed three categories carry windows when ttft is a median with
none (:2282); F4's rationale for the window rule fails at its own boundary -- at exactly 20 rows
last-20 repeats the overall mean, which is now stated rather than papered over; F5 put the poll
summary under the fields when #advsum sits in the panel header (:1404); F6 said figures hold
while reading another page without the 60 s limit that drops the windows (GAP_S = HIST_S = 60);
F7 showed a middle dot where :2530 ships a pipe. README:19 credited poll_spark.test.js with
poll()'s restart decision -- that file contains zero matches for poll(); the coverage is in
extremes.test.js.

The numbers the brief flagged as suspect (HMAX=200, RECENT_S=15, RECENT_PREFILL_S=5) were correct
and are untouched. The real errors were prose semantics and rendered formatting, which the
flagging did not anticipate.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 742f17f1e3 GUIDE: the history panel and its export were never documented
Section 6.1 described the tiles, the extremes line, draft acceptance, Sessions, Model and
Advanced, and said nothing about the history table under the request list -- the panel this
branch changed twice. A reader could not learn from the docs that the rows are per-browser
localStorage rather than server state, that only the last 200 are kept, that a clear is a
timestamp every tab honours, or that the download icon exists and what it writes.

The summary line needed the same treatment: it now carries a rule a reader cannot infer from
the page, that a dot separates categories and a pipe separates the windows inside one. Stated
because it is a convention the page depends on and nothing else records.

Every number here was checked against the code rather than recalled: HMAX is 200, the file is
radiance-history.json, and the window rule is a flat threshold -- "last 20" appears at 20 rows
and "last 5" at 5, not once a window is wider than its neighbour. The first draft said the
latter; driving the shipped group() at 3, 7, 12, 20 and 25 rows showed 12 rows renders only
"last 5", which is what the paragraph now says.

Docs only, no code touched. Lines kept within the section's 102-character maximum.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 599d904e01 tests/js: README lists all four suites and the render check
The README still named only the two suites that came out of the 2011-01 review; history.test.js
and download.test.js shipped without a line, and render_align.js shipped without its invocation
or its puppeteer prerequisite. A reviewer opening tests/js/ could not tell what to run or what
each one guards.

The render check gets its own section because it is not a unit test and cannot be: it needs
Chrome, and it exists because three visual claims on this branch were made from the CSS and the
SVG viewBox and all three were wrong. That is the argument for measuring the rendered page, and
it belongs next to the tool that does it.

Docs only, no code touched.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 51db1729b1 dashboard: level the download glyph with the caption, measured not reasoned
The operator's intent, drawn rather than described: the bottom of the tray bar should sit on
the same line as the bottom of the letters in REQUESTS. The previous commit claimed the
viewBox-flush geometry achieved that. It did not.

Headless Chrome, screenshotting the real header at 4x and finding the lowest inked pixel row of
each: the caption's letters ended at device row 71 and the tray bar at 63 -- the icon floated
2.00 CSS px high. align-items:baseline puts the SVG's BOX on the text baseline, and the baseline
sits above the box bottom, so filling the box was necessary but nowhere near sufficient. A 2px
translateY on the glyph closes it; re-measured, both bottoms land on device row 63, gap 0.00.

tests/js/render_align.js is that measurement, kept in the repo so the claim can be re-checked
rather than trusted. It is manual and not wired into CMake -- it needs puppeteer and a Chrome
binary, which are not repo dependencies -- and exits nonzero when the two bottoms differ. It
fails on the pre-fix page (2.00px above, rc=1), which is the only reason to believe it.

download.test.js's guard was the thing that gave false confidence here: it asserted the glyph
"sits on the baseline" from the viewBox arithmetic alone, and passed while the icon floated. It
now pins both halves -- the glyph fills its box AND the 2px nudge is present -- and the comment
records that the earlier claim was wrong and why the test could not see it.

A unit test cannot catch either of this session's two visual errors: the collapsed whitespace
(zero width, not the 13px claimed) and this float. Neither is a property of the string the code
builds. Both are properties of the rendered page, and only the rendered page was checked here.

Suites: download 31, history 29, extremes 27, poll_spark 35, dashboard_test 241 over 8 cases,
sched_test 62646 over 184, no failures. Alignment mutations caught: removing the nudge, making
it 1px, re-insetting the bar in its box.

Not deployed. Goes to review with the separator and export commits.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) d537dc09aa dashboard: sit the download glyph on the baseline instead of floating above it
The icon looked awkward next to REQUESTS: it floated a hair above the caps. The header aligns
its items on the text baseline, and an inline SVG's baseline is its box bottom, so the box
bottom was on the baseline -- but the tray bar was drawn at y 13.5 of a 16-unit viewBox,
leaving 1.7 units of empty space below it. The visible bar therefore sat above the baseline
while the letters sat on it.

Redrawn so the bar's stroke bottom lands exactly on the viewBox bottom (centreline 15.2 plus
half the 1.6 stroke = 16.0), which puts the bar on the baseline with no offset to tune. The
shaft and arrowhead moved up by the same amount to keep the proportions.

download.test.js gained a geometry guard that parses the viewBox, stroke width and bar
centreline out of the shipped markup and asserts the stroke bottom is flush with the box
bottom. Re-insetting the bar to the original 13.5 fails it with the measurement (14.3 want 16),
so a future edit that reintroduces the float is caught rather than eyeballed.

Verified: download 29 checks, history 29, extremes 27, poll_spark 35, dashboard_test 241 over
8 cases, sched_test 62646 over 184, no failures.

Not deployed. Goes to review with the separator and export commits.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) c36d04d99c dashboard: move the JSON export to the Requests header as a download icon
The history summary row had grown crowded -- the figures, then a "json" button and a "clear"
button -- and the operator asked for the export to live in the Requests panel header instead,
top-left by the title, as a download icon with a "Download JSON file" tooltip. The Requests
header already carries running/waiting on the right, so the export sits opposite it on the
left rather than lumped in with the history figures.

The button is an inline SVG download glyph (a <button>, so it is keyboard-focusable and
announced), in a new .pleft group so the space-between header keeps it on the left with the
title. The handler now saves a file rather than copying to the clipboard: a Blob of the stored
rows, an anchor with a download name, clicked and removed, the object URL revoked after the
click. The old #hjson clipboard button is gone.

This also fixes a clipping bug the previous commit introduced. Making each category a nowrap
span and the separator a padded element removed every whitespace text node between categories,
so the summary line became one unbreakable run: a long line overflowed the row and clipped the
buttons after it -- the "json" the operator saw cut off at the panel edge. A zero-width space
between groups restores a break opportunity: the line can now wrap between categories, while
each category still stays atomic. The break point sits between groups, never inside one, where
nowrap would make it inert.

tests/js/download.test.js, 27 checks, drives the shipped handler against stubs: the button is
in the Requests header on the left of the aside, exactly one of them (a duplicate id would bind
only the first and leave a dead control), tooltip and aria-label present, an icon not a text
label; the handler builds one anchor, names it radiance-history.json, types the blob
application/json, clicks it, attaches it to the document (Firefox needs that), removes it, and
revokes the object URL only after the click. The payload round-trips through JSON.parse.

history.test.js gained the break-point checks: three zero-width spaces between four categories,
each immediately before its group, none buried inside a nowrap group.

Verified by mutation: dropping the download attribute, never clicking, never revoking, a wrong
blob type, changed tooltip text, and moving the button to the right of the aside each fail the
suite. extremes 27, poll_spark 35, history 29, download 27, dashboard_test 241 over 8 cases,
sched_test 62646 over 184, no failures.

Not deployed. Goes to review with the separator commits.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 1554b451e1 dashboard: a history category wraps whole, and its break is a padded element
The summary line wrapped mid-figure: "ttft median 810" ended one line and "ms" started the
next. A category that cannot fit should move to the next line intact, not break wherever the
browser finds a space.

Each category becomes one span with white-space:nowrap, so it is atomic, and the dot between
categories becomes a padded element carried INSIDE the group it introduces -- as a sibling it
could be left stranded at the end of a line when the group wrapped, which is the same orphan
in a different place.

This also corrects a false premise in the two commits before it. HTML collapses runs of
whitespace, and .hsum sets no white-space, so the "wide" double-spaced separator those commits
introduced never rendered wide: it collapsed to a single space exactly like the tight one. The
spacing change was not subtle, it was zero -- which is why it looked identical. Width has to
come from a padded element, not from spaces in the string. The pipe-within-category and
dot-between-categories distinction is unaffected by this and stands.

tests/js/history.test.js, 24 checks, drives the shipped assembly against a DOM stub and reads
the shipped CSS: every category is a nowrap .hgrp, the break is a padded .hsep, the dot is the
first child of its own group rather than a sibling, a category's own figures carry pipes and no
dot, and the ttft category is a single text node so value and unit cannot split.

Verified by mutation: dropping nowrap, dropping the padding, moving the dot to a sibling,
turning the category break into a pipe, and splitting the value from its unit each fail the
suite -- the last being the exact 810 / ms orphan this fixes. extremes 27, poll_spark 35,
dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures.

Not deployed. Goes to review with the separator commits.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) d5bb6a6c6e dashboard: category breaks keep the dot; only fields within a category take the pipe
The pipe sweep converted both separator weights at once. That was too far: the wide separator
is the break between categories -- tok/s against prefill against ttft -- and it has been a dot
since the page was written. Reverting the wide tier to the dot keeps that precedent; the pipe
stays only on the tight tier, the fields inside one category (mean, last 20, last 5), which is
where the figures actually ran together.

So the history line now reads:

  40 done  ·  tok/s mean 100 t/s | last 20: 98 t/s | last 5: 105 t/s  ·  prefill mean 1.2k | ...

The dot marks a category change; the pipe marks a different question about the same category.
Two weights, two meanings, one rule applied everywhere rather than dots in one panel and pipes
in another.

Thirteen wide separators reverted across the page (twelve lines; the layer-residency line carries
two), so the rule is global. The two dots that were never separators -- the CSS list bullet and
the browser tab title -- are untouched, as is the range dash in "layers 1-8".

Verified by rendering the shipped page bytes, not by the suite: the suite does not pin the wide
separator, so it is green whether the category break is a dot or a pipe. The render pulls the
join string and the group() body straight out of dashboard.cpp and shows the dot at the category
breaks and the pipe within them. All four suites still pass: extremes 27, poll_spark 35,
dashboard_test 241 over 8 cases, sched_test 62646 over 184.

Not deployed. This change and the pipe sweep go to the same code review before anything ships.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 757ad11b0d dashboard: separate distinct fields with pipes, not middle dots
Every line that packs several distinct figures into one string used the middle dot, at two
weights -- a tight dot between sub-figures and a wide one between groups. At 11px the dot is
too short to read as a boundary, so lines like the history summary ran together: count, three
tok/s figures, three prefill figures and ttft all sat at one visual level. The operator's call
was to use the pipe wherever fields are meant to be distinct.

Fifty-eight separators converted across the page -- the history summary, the version line, the
KV and expert asides, the acceptance and step-time detail lines, the graph and model-view
metadata, the control-vector summary, the poll summary. The two weights are kept: a tight dot
becomes a tight pipe, a wide dot a wide pipe, so the group-versus-window hierarchy the wide
dot carried survives the glyph change.

Two dots stay, because they are not field separators: the CSS list-bullet marker
(.gmeta li::before content) and the browser tab title (file - radiance). The range dash in
"layers 1-8" and the DASH placeholder are likewise untouched. The two " + " the earlier
census turned up are inside pctn building "<0.1" and ">99.9" string literals, not separators.

The sweep missed eight separators at first: the age clause and several detail lines build
their separator as the escape "\u00b7" rather than a literal dot, and a literal replace
never sees those. Caught because the tests that pin the age clause went red on the literal
sites but the escaped ones did not -- a partial conversion that would have shipped a page
with pipes and dots mixed. Both forms are now converted.

Tests: the two regexes pinning the age clause and the one string pinning the poll summary
now expect the pipe. They failed when the code changed and pass now, which is the point --
a separator assertion that could not fail would not have caught the escaped-dot miss.
extremes.test.js 27, poll_spark.test.js 35, dashboard_test 241 over 8 cases, sched_test
62646 over 184, no failures.

GUIDE's two example triple lines, which mirror the page's separators, updated to match.

Verified the sweep by reading all 58 changed lines, not by trusting the count: no pipe landed
inside a regex literal (where it would mean alternation) or a prose tooltip. Both hazard
greps were positive-controlled against known-bad input before their empty result was trusted.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) aaafebcf0a GUIDE: the dashboard has four tabs, and the windows are spans not sample counts
Section 6.1 opened "It has three tabs" and described Dashboard, Sessions and Model. The page has
four -- Advanced was added as a fourth nav view and the doc never heard about it, so a reader
comparing the page against the guide would find an unexplained view and a wrong count. Added the
paragraph: two editable intervals, idle and busy, clamped to 100-5000 ms, equal values give one
fixed rate, stored in the browser rather than on the server, and polling pauses on every view but
Dashboard so the figures hold while another view is open.

Two sentences described the windows as sample counts, which stopped being true when the rings
started pruning on elapsed time:

  "the mean of its last 30 samples there (15 s at one poll every 500 ms; 5 s for prefill)"
  "the tile's recent pools the last 30 polls that drafted"

Both now name the span. The first also assumed a 500 ms poll, which was a constant when it was
written and is now the default value of a field anyone can change -- so the sentence was wrong
twice over, in the mechanism and in the number it derived from it. Note the acceptance ring
prunes the same way (accPool, RECENT_S), which is why the second sentence moved too.

README needs nothing: it defers the dashboard to this section in one line and makes no claim about
tabs of its own.

Docs only, no code touched. Line lengths kept within the 102-character maximum the surrounding
section uses; the diff was read line by line rather than trusted to the anchor counts.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 7bba83c075 dashboard: the history line's group breaks get the page's wide separator
The summary line under the history table joined everything with the tight middle dot: the
count, three tok/s figures, three prefill figures, and ttft, eleven items at one visual level.
The groups ran together.

The page already has a two-tier convention -- a tight dot between sub-figures inside a group,
a wide dot (double-spaced) between major breaks, used that way on the KV lines and the
version line. The history line was the one place using the tight dot at both levels. It now
joins its groups with the wide dot, so a group edge reads heavier than a window edge, using
separation the page already speaks rather than new vocabulary.

Verified: dashboard_test 241 checks over 8 cases, extremes.test.js 27, poll_spark.test.js 35,
no failures; no test pins the separator.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 0ac154c803 dashboard: drop the uptime comparison -- it could only fire on a clock step
8ee893e added `up < lastUp` beside the started_at comparison, to catch a restart landing in
the same whole second as the one the page last read. It cannot catch that. uptime_s is
derived, not independent: unix_now() - started_at_, both whole seconds, so started_at +
uptime_s is exactly the wall clock at every poll. Two processes sharing a started_at are
therefore read at increasing wall times and report INCREASING uptimes, so the comparison
never fires in the case it was written for. It fires on genuine restarts, which started_at
already catches, and on a backward NTP step, which is not a restart at all. Net effect: dead
where it was needed, redundant elsewhere, and a false clear of the session extremes on every
clock correction.

The test that "proved" it worked was fed an impossible fixture: started_at 100 with uptime 40
implies the clock read 140, then started_at 100 with uptime 2 implies 102. Time running
backwards is the only way to reach that pair, which is the same mistake the finding it
answered was about -- reasoning from a state the instrument cannot produce. It now asserts
the reachable behaviour instead: a backward uptime with an unchanged started_at is a clock
step and must NOT clear the extremes, since they still belong to the running process.

The collision the comparison tried to close needs a replacement process stamped in the same
second as the one the page last read. The page can only learn started_at once /stats answers,
startup_s after the old process began -- 69 s on this engine -- so a replacement starting
after its predecessor stopped answering is stamped a later second. The bound is startup_s >=
1 s; a model that came up inside a second could collide, and would cost one stale extreme
carrying a true age. That is documented where the comparison used to be.

The acceptance window's use of the same signal is NOT redundant and is untouched: it has no
started_at comparison, so for a tab that stopped polling while a new process drafted past the
old totals, a falling uptime is the only thing that catches the restart.

Verified: dashboard_test 241 checks over 8 cases, extremes.test.js 27, poll_spark.test.js 35,
sched_test 62646 over 184, no failures. Mutation re-run after the revert: deleting poll()'s
detection line, stamping extAtS on every sample, and deadening acceptTriple's age clause each
fail the suite. Behavior is unchanged from the deployed build, which never had the
comparison, so no restart is needed for this.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 638aa3a683 tests/js: drive poll()'s restart decision, and the two clauses nothing reached
An adversarial pass mutated this leg of the dashboard and found three mutants that survived
every committed check. All three were real gaps in my verification, and the reason was the
same each time: the tests called the helper directly, so the code that DECIDES whether to call
it was never exercised, and two clauses sat behind a guard that no test ever opened.

Drive poll() itself. A scripted /stats sequence and a fixed clock, with resetWindows,
newEngineRun and update replaced by counters, so the assertions are about what poll() decided
rather than what the helper does once called. Three cases: the first poll is a baseline and
clears nothing, a changed started_at clears, and a long quiet span takes the gap path without
being read as a restart -- the distinction the previous commit exists to make.

Re-sample a key after its extreme is set. The stamp records when the extreme was set, so a
worse sample must not refresh it; nothing used to sample the same key twice, so moving the
stamp to every sample -- which makes every age read about zero, wrong output rather than
missing output -- passed unnoticed.

Exercise acceptTriple with a live extreme. Its only previous call came from the restart case,
which clears extAt first, so it returned at its guard before reaching the age clause: the
clause was asserted zero times while triple's was asserted seven.

Use the shipped pctn rather than a re-typed one. The copy diverged from the real formatter for
small and non-finite values; nothing asserted on that output today, so it was a latent trap
rather than a live error. Pass the sampled value as a parameter instead of interpolating it
into the function source, so the null case is a real null and not the string "null".

Verified by mutation, which is the only thing that makes a green suite mean anything here:
disabling poll()'s detection line fails the suite, as does moving the stamp to every sample,
as does deadening acceptTriple's clause, as does removing the uptime comparison added in the
previous commit. extremes.test.js 27 checks, poll_spark.test.js 35, dashboard_test 241 over 8
cases, sched_test 62646 over 184, no failures.

Found by an adversarial review pass on the author's own commits.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 4d8be7099d dashboard: a restart that lands in the same second is still a restart
The poll compares started_at to decide whether the engine is a new process, and clears the
session extremes when it is. started_at is std::time(nullptr) -- whole unix seconds -- so a
restart landing in the same second as the previous start leaves it unchanged and the clear
never runs. The previous run's extremes then render with an age clause attached, and the age
is true: the figure really is that old. What is false is the provenance the age implies, that
it belongs to the process now running. A stale figure with an honest number on it is worse
than no number at all, because it invites the reader to trust it.

Also compare uptime_s, which resets to about zero on any new process. It is the same signal
the acceptance window already trusts for the same purpose, so this adds no new assumption:
it is wall-clock derived, and a backward NTP step reads as a restart and clears the extremes.
That false positive costs a cleared window on one poll, which is what the acceptance window
already accepts.

Found by an adversarial review pass that reproduced it as `highest 75% - 43.0 s ago` from a
dead process.

Verified: dashboard_test 241 checks over 8 cases, no failures. The case that holds this is
the poll() driver in tests/js/extremes.test.js, which fails if the uptime comparison is
removed; it lands in the next commit, so this one is not self-proving on its own.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 08c85ea527 tests: run the dashboard page's JavaScript, in the tree
An independent review of 9cc237f rejected its verification claim: the commit said 18 checks
executed the shipped noteSample, triple, acceptTriple, resetWindows and newEngineRun, and the
tree contained none of them. The harness was real and passing, but it lived in /tmp, so nobody
else could re-run it and the claim was unfalsifiable from the repository. That is a fair
rejection regardless of whether the checks were right -- a verification nobody can repeat is a
claim about the author's machine.

Move both harnesses into tests/js/ and add the extractor they need. The page is one C++ raw
string, so a JS test has to pull the script out of the translation unit it ships in; page.js
does that, and each test slices the functions it exercises by line range and CALLS them. Both
details matter: a retyped copy tests the copy, and a sliced function that is defined but never
invoked passes without testing anything, which has already happened once in this code.

extremes.test.js, 17 checks: the age clause appears only when an extreme stands alone and is at
least a second old, tracks the newest extreme rather than the first, survives a gap with its age,
and is gone after a restart along with the extreme itself.

poll_spark.test.js, 35 checks: the clamp's floor, ceiling and fallbacks, the in-flight trigger,
the old storage key migrating to a flat rate, corrupt storage falling back, the summary label
matching what is set, the sparkline's x axis being time-proportional rather than sample index,
the right-edge fill at startup, a sample gap drawn as a gap in the line, and the prune loop
keeping samples by elapsed time rather than by count. The window expectations derive from the
shipped HIST_S, so changing the constant moves them instead of silently passing.

Verified: both pass, and both fail when the code is wrong -- setting the age gate to zero fails
extremes.test.js, and returning the sparkline to index spacing fails four checks in
poll_spark.test.js. dashboard.cpp is unchanged by this commit and dashboard_test still reports
241 checks over 8 cases.

Not wired into ctest: they need node, which is not a build dependency here and will not be on a
contributor's box or in the ROCm build image. Making a missing optional tool a red build is worse
than an opt-in test, so the README says how to run them and when to bother.

Found by an independent review pass on the author's own commits.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 72ab60ed64 dashboard: a session extreme says how old it is, and a restart clears it
The tile detail lines keep the session's best figure when the window empties, which is
deliberate: a lane that goes quiet for a minute is the same lane, and blanking its best
would throw away the one figure still true. But an extreme with no window beside it is
indistinguishable from a fresh one, so a best from before a gap -- or from before an engine
restart -- reads as the lane's current best. A review flagged the label as honest but
undated; the age is what makes it honest.

Record when each extreme was set and, when it stands alone and is at least a second old,
name the span: "best 500 t/s - 5m 00s ago". Below a second the clause is noise, and a
figure set on this poll is current, so it stays silent.

A restart is a different discontinuity from a quiet minute and now gets its own path. The
previous process's requests are gone and its configuration may differ, so nothing from it
should carry over -- yet the extremes were the one figure that did, while every other
number on the page already refuses to pool across a restart: the acceptance window drops
its rings when the counters go backwards, and the history resets its base when request ids
restart. The poll now compares started_at, which is the process's identity, and clears the
extremes when it changes. A gap still keeps them.

Verified: dashboard_test 241 checks over 8 cases, no failures. 18 checks execute the
shipped noteSample, triple, acceptTriple, resetWindows and newEngineRun sliced out of the
page: the clause appears only when the extreme stands alone, tracks the newest extreme
rather than the first, stays silent under a second, survives a gap with its age, and is
gone after a restart along with the extreme itself. Not tested: the page in a real browser.

Found by an independent review pass on the previous changeset.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) 4e35a00493 sched_test: assert the slot reuse the recycled-slot case depends on
The case that guards the admitted_us reset read two timing inequalities and never checked
that the second request landed in the first request's slot. It rests on that: if the reap
defers, or the free list is pre-populated, the second request gets a fresh struct, the stale
stamp is absent by construction, and the invariant holds with the bug unpatched. A test whose
precondition is a property of the fixture rather than an assertion goes quiet without saying
so, which is worse than not having it.

Read the slot from the published row before the reap and assert it afterwards. This also
settles the one thing the review could not: whether the reap releases immediately or defers.
It releases, because the assertion holds -- proven by running it rather than by reading the
ahead-step planning that decides it.

Verified: the case passes, and removing the reset line still fails it, so the added assertion
did not blunt it. sched_test 62646 checks over 184 cases, no failures.

Found by an independent review pass on the fix itself.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
Memoria (Noblistic) e53286cdbe dashboard: the history figures mean what their labels say
Five changes to one leg, committed together because they are one claim: a number on the
dashboard should be readable as the thing it is named for. They were deployed as
1.15.1-histfix without being committed, so the running engine carried code no commit
described, and a review of the working tree could not see its own context.

History labels. "avg" becomes "mean", the window figures appear only once enough rows
exist to be the window they name, ttft says median, and every history column carries a
title= spelling out what it averages and over what. A legend that has to be inferred
from a column header gets inferred wrong.

The prefill instrument. The history computed prefill speed as prompt tokens over
time-to-first-token, which charges queue wait to prefill; GUIDE:2808 warns against
exactly that formula. The scheduler now stamps admission and reports prefill_s, so the
column measures admission to first token. The page falls back to ttft when an engine
reports no admission time, so it still works against a stock build.

Windows in seconds. Every displayed window was a sample count, so "60s" meant 60 samples
and its span drifted with the poll rate: 60s at 500 ms, 6s at 100 ms. The rings now prune
by accumulated time and the sparkline's x axis is time-proportional rather than sample
index, so a busy stretch gets the room its seconds deserve and a gap in the samples shows
as a gap in the line. This is the precondition for the interval control below; at a fixed
rate the two agree, so a full ring draws exactly as before.

The interval control. An Advanced view with two editable fields, idle and busy, held in
localStorage: the cadence belongs to whoever is reading, not to what is serving, and the
server has no writable config that would survive an image swap. Both are plain numbers
rather than a mode switch, because the point is that the reader sets the rate; equal
values are one fixed rate and the summary says so.

Wind-down. The tile detail lines now sample on every poll, so "recent" follows the
engine's own idle decay instead of holding the last figure it saw, and a window older than
its own span is cleared rather than drawn as if continuous.

Fixes from an independent review on qwen, which found the first two:

admitted_us was never reset when a slot was recycled. add_locked only allocates when the
slot's pointer is null, so the struct survives release_locked with every field it does not
list intact, and the first-admission guard then kept the previous request's stamp. The
interval spans two requests, the stale stamp is always older, so prefill tok/s reads low
rather than missing. It reaches every row once the slot pool turns over. It feeds only
this one dashboard column: the engine-wide prefill tile uses an independent windowed
counter, and no admission, eviction, preemption or KV path reads the field.

Two tooltips still said prefill includes queue wait after the instrument stopped charging
it. Both now say what the code does and disclose the fallback, since one window can mix
rows measured from admission with rows fallen back to ttft.

Verified: both targets build clean. dashboard_test 241 checks over 8 cases, sched_test
62644 over 184, no failures. The new sched_test case drives submit, finish, reap and a
second submit onto the recycled slot and asserts prefill_s never exceeds ttft_s, since
admission cannot precede arrival; it fails against the bug and passes after the fix, so it
can fail. The embedded page parses under node --check, and 30 checks now execute the
shipped spark(), the clamp and the cadence trigger sliced out of the page rather than
restated: time-proportional spacing, the right-edge fill at startup, a sample gap drawn as
a line gap, the 100 ms floor, and the old storage key migrating to a flat rate. Not
tested: the controls' behavior in a real browser, and how the session extreme should read
when it outlives a cleared window.

Found in review by an independent qwen workstream; the slot-reuse finding was confirmed
by a second adversarial pass and against the source independently.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00