From 08fa89255cce1aa4f61c1136c9e9dba044c6e037 Mon Sep 17 00:00:00 2001 From: "Memoria (Noblistic)" Date: Mon, 2 Nov 2026 21:45:03 +0000 Subject: [PATCH] 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 --- core/server/dashboard.cpp | 3 ++- docs/GUIDE.md | 22 ++++++++++++++-------- tests/js/README.md | 2 +- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/core/server/dashboard.cpp b/core/server/dashboard.cpp index 4b5d7187..c132cf0f 100644 --- a/core/server/dashboard.cpp +++ b/core/server/dashboard.cpp @@ -1707,7 +1707,8 @@ function setMetric(key, value, text) { * publishes a floor and a recent window only for the decode step; for these it publishes one * figure per poll, so the three figures are the page's own: * best / highest - the extreme this page has seen at the current concurrency; it resets on - * reload, not on a server restart. "highest" where more is not better. + * reload AND on a server restart (a new started_at runs newEngineRun()). + * "highest" where more is not better. * recent - the mean of the last RECENT_S seconds at that concurrency. * now - the current value as a percentage of that extreme. * Figures are kept per concurrency ("@cN" past one), because a batched rate read against the diff --git a/docs/GUIDE.md b/docs/GUIDE.md index 99129c1a..cbb4171e 100644 --- a/docs/GUIDE.md +++ b/docs/GUIDE.md @@ -3668,7 +3668,7 @@ The KV cache meter splits what it holds into two segments: ``` KV cache 3.3 / 4.5 GiB · 75.5% ▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ -20.8k tok read by running requests · 369.3k kept for reuse +20.8k tok read by running requests | 369.3k kept for reuse ``` The full-strength segment is context running requests are reading; the dim segment is prefix cache, @@ -3723,7 +3723,7 @@ The decode, prefill, requests-in-flight and draft-acceptance tiles carry a line which the page computes from its own polls: ``` -best 58 | recent 54 | now 93% of best@c4 +best 58.0 | recent 54.0 | now 93% of best@c4 ``` `best` (`highest` on requests in flight and acceptance) is the extreme this page has seen at the @@ -3731,7 +3731,9 @@ current concurrency, `recent` the mean of the last 15 s there (5 s for prefill), current value as a share of the extreme. The windows are kept by elapsed time rather than sample count, so a span means the same span whatever rate is set on Advanced. Past one sequence the line names its concurrency (`@c4`); requests in flight keeps a single set. Reloading the page resets these -figures, a server restart does not. While nothing runs, the big figure reads 0 and the line keeps its +figures, and so does a server restart: the page notices the engine's new start time and +inherits nothing from the run before it. While nothing runs, the big figure reads 0 and the line +keeps its last figures without `now`. Draft acceptance is reported as two ratios with different denominators. A draft position is @@ -3760,10 +3762,12 @@ a grey row so the total still adds up. **clear** empties it, and the marker it l timestamp every tab honours, so a clear in one window is a clear in all of them. The line above the table summarises those rows: how many are done, then decode rate, prefill rate -and time to first token. Each of the three carries its mean over all the rows and, where enough -rows exist, the same mean over the last 20 and the last 5. A window appears only once enough rows +and time to first token. The first two carry their mean over all the rows and, where enough +rows exist, the same mean over the last 20 and the last 5; time to first token is a median +over all the rows, with no windows. A window appears only once enough rows exist for it to be a different question: with 12 rows stored, the mean over the last 20 would just -be the mean over all 12, so only *last 5* shows; both appear from 20 rows up. +be the mean over all 12, so only *last 5* shows. At exactly 20 rows *last 20* repeats the overall +mean; from 21 up the three figures are three different questions. These are means of per-request rates, not the pooled rate the tiles above show: one long request does not get to decide the headline. A dot separates one category from the next; a pipe separates the windows within a category. @@ -3783,9 +3787,11 @@ scheduler clamps reuse to the last linear checkpoint. That verdict is the tab's **Advanced**: two editable poll intervals -- *Idle interval* while nothing runs and *Busy interval* while a request is in flight, each clamped to 100-5000 ms. Set them equal for one fixed rate; the -line under the fields names what is set. The values live in the browser, not on the server, so they +summary beside the panel title names what is set. The values live in the browser, not on the +server, so they survive a restart and apply to this browser only. Polling pauses on every view but Dashboard, so -the figures hold while you are reading another page. +the figures hold while you are reading another page -- for about a minute. Past 60 s the +next poll drops the windows, since there is nothing left to compare them against. ### 6.2 The JSON behind it diff --git a/tests/js/README.md b/tests/js/README.md index 42ace861..500fcda1 100644 --- a/tests/js/README.md +++ b/tests/js/README.md @@ -16,7 +16,7 @@ which has already happened once here. | file | the shipped code it drives | | --- | --- | -| `poll_spark.test.js` | `poll()`'s restart decision, the cadence fields, the sparkline | +| `poll_spark.test.js` | the cadence fields, the sparkline | | `extremes.test.js` | `noteSample`, `triple`, `acceptTriple`, `resetWindows`, `newEngineRun` | | `history.test.js` | the history summary line: how it groups, and how it wraps | | `download.test.js` | the Requests-header JSON export: its markup and its handler |