metrics+dashboard: judge-slice cleanups -- HELP text, dead window, window comment

Non-gating findings from the Tasmania judge fan-out (reviews/judge/):

- HELP text on radiance:decode_step_seconds_best/_recent said 'seconds per
  token'. It is a window mean of STEP times, and with speculation a step
  emits several tokens, so the two differ by the accepted-per-step factor --
  the wording invited a comparison that is wrong by exactly that factor.
  Now says PER STEP and names the conversion. No test asserts on HELP text
  (server_test parses it into d.help and never reads it), so this is a
  documentation-only change to the exposition, not to the value.
- noteSample gains a  argument; acceptance passes win=false. Its
  winAt["accept"] ring was written every poll and read by nobody --
  acceptTriple takes highest from extAt and recent/now from accPool -- so it
  was a second copy of the same samples that a reviewer reasonably mistook
  for a second figure.
- RECENT's '15 s at the 500 ms poll' is true only while the quantity keeps
  updating; acceptance samples only when it drafts, so its 30-sample span is
  30 UPDATES, minutes under sparse drafting (slice 01). Comment corrected.

Diff is 16 insertions / 7 deletions across two files, read line by line
(scripted sweep -- no test would have caught a wrong anchor).

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
This commit is contained in:
Memoria (Noblistic) authored and StillDeadcode committed 2026-10-21 09:27:48 +02:00
1 parent df42bd5c26
commit 1cf31320a9
2 files changed
+16 -7

No files matched your search

+6 -3
View File
@@ -337,11 +337,14 @@ std::string Metrics::render() const {
if (g_step_best_.get() > 0)
w.gauge("radiance:decode_step_seconds_best",
"Fastest single-sequence decode step window this process has run, in seconds "
"per token. A mean over 32 consecutive single-stream steps, not a stopwatch "
"reading. Resets on restart.", L, g_step_best_.get());
"PER STEP. A mean over 32 consecutive single-stream steps, not a stopwatch "
"reading. Not seconds per token: with speculation a step can emit several "
"tokens, so divide by the accepted-per-step figure to compare against a "
"token rate. Resets on restart.", L, g_step_best_.get());
if (g_step_recent_.get() > 0)
w.gauge("radiance:decode_step_seconds_recent",
"Most recent single-sequence decode step window, in seconds per token. The gap "
"Most recent single-sequence decode step window, in seconds PER STEP (see "
"_best: not a token rate). The gap "
"to _best tracks what else the machine is doing, not wear; see docs/GUIDE.md. "
"Freezes while the lane is idle, because no window is completing.",
L, g_step_recent_.get());