Archived
e4ca20ddf85f424838ecebf5e33ca42e4dfb7ea5
51
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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
|
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |
||
|
|
bf7e473224 |
dashboard: a card-count change replaces the device rows, it does not stack them
The memory panel rebuilds its per-card rows when the card count changes, but the rebuild only appended: the previous set stayed in #mem. Every card-count change -- a TP flip, a card swap, a lane re-pin -- therefore grew the panel by the old count, permanently, until the page was reloaded. On a box that flips TP2 and TP4 by hand the section becomes unusable within a day: eighteen rows of identical cards after three flips, and the panel's own header (KV cache, prefix hits) scrolls away. Remove the old rows before rebuilding, the same shape the request rows already use above. Per-row removal rather than the sibling guards' container-clear because #mem is shared with the KV and prefix meters, which are built once and must survive. Verified: the embedded page parses (node --check on the extracted script), the translation unit compiles, dashboard_test passes. The behavior itself -- rows gone after a count change -- needs a live card-count change to prove; not tested here. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI |
||
|
|
459529638e |
dashboard: statsdump exits cleanly when its handle is dead; sparkline comment told a third wrong story
Judge ringer 4 on the final tree (3 slices, Tasmania, independent questions). Slice A PASS-WITH-CAVEATS, slice B PASS-WITH-CAVEATS, slice C FAIL. Both findings were real and both are fixed here. statsdump (slice B, R1 + R2): the rotation fix deferred the death instead of removing it. If the best-effort reopen inside rotate() itself fails, out stays CLOSED, the re-raised OSError is swallowed by the cap check's handler, and the next poll's write raises ValueError -- which no handler in the file catches (they all catch OSError). Slice B found the unpatched twin in the write-failure handler: close succeeds, reopen fails (EMFILE/ENOENT/EACCES/EIO -- not ENOSPC, which append-open survives), and the cap check's out.tell() dies on the closed handle two statements later. Both paths now raise a dedicated RecorderDead, caught at the loop: the recorder exits loudly with its exit summary, because a handle that cannot be reopened means recording cannot continue. Deferring a traceback by one iteration was the wrong ambition; exiting with the count is the honest terminal state. Canaries reproduce both geometries (reopen fails after rotation shift fails; reopen fails after write fails): pre-fix dies 'ValueError: I/O operation on closed file' with no summary in both; post-fix exits rc=0/rc=1 with the summary printed in both. dashboard.cpp (slice C, FAIL): my previous commit replaced one wrong sparkline comment with another. The truth, verified against the call sites: setMetric samples EVERY poll for every tile (idle polls push 0), so the accept sparkline spans the same 60 s as the others; the only difference is the dash case -- no draft head, no value, a gap that stretches the line over more wall-clock. The original comment claimed 10 s drafting windows; my rewrite claimed drafting-only sampling, conflating the sparkline (setMetric/hist) with the triple's recent window (noteSample, win=false). Two lies in one comment block, both caught by review rather than by me. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
b2e0ef7911 |
dashboard: the accept sparkline comment described a sampling scheme that never existed
Auditor flagged this twice; it is a lie in shipped source (the comment is served inside the page), so it goes before merge rather than after. The comment claimed the sparkline's samples are 10 s drafting windows. No 10 s clock exists anywhere in the page: HIST is 120 at the 500 ms poll (dashboard.cpp:1249), and the accept series pushes via noteSample only when the poll drafted (aw.dr > 0). The true distinction from the other tiles is the drafting-only sampling, not a different window length: 120 drafting samples are 60 s of continuous drafting, stretched over more wall-clock when drafting is intermittent. Comment-only change; no behavior touched. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
3178807ba7 |
dashboard: detail-line 'now' clauses stop reporting stale values as current
Operator ruling 2026-10-20, applied one line down: the idle-0 law exists because a stale value wearing a current name is a false measurement. Judge slice 26 found the same defect surviving in the detail lines under the three figures already fixed -- the headline obeyed the law and its own detail line did not, so a busy lane that drafted nothing showed 0 and 'now 87% of highest' directly beneath it. - Accept tile: 'now' is shown only when THIS poll drafted. The guard inside acceptTriple (last.dr > 0) can never be false -- the ring only stores deltas with dr > 0 -- so the freshness test moved to the caller, where the poll's own delta is known. highest/recent are session statistics by design and stay. - Step tile: 'now X% of best' is gated on this window HAVING decode steps, not on the lane being busy. During a prefill-only stretch the lane is busy and lastStepMs holds the last decode poll; the headline reads 0, so the clause must not print. - Speculation 'per step': reads 0 when the window took no decode steps instead of holding the last value. EXTENSION of the ruling by one figure, named here because it was not one of the three the operator listed -- same defect class, flagged by slice 26, and it is derived from the step tile that already reads 0, so leaving it frozen made the panel disagree with itself. Fully-idle was already correct on all three; every one of these was the busy-but-no-measurement window. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
eed70619cc |
dashboard: 'Average' -> 'Accepted of drafted' -- the label names its denominator
Operator call. The bullet is the engine's lifetime marginal ratio, accepted/drafted (core/sched/draft.h:172, 'cumulative and exact' -- a pooled ratio of sums, not an average of anything). 'Average' was wrong twice: it is not an average, and it hid which denominator it used. The panel shows two ratios that count the SAME accepted tokens and differ only in the denominator -- reached for the live figure, drafted for this one. 'Average' distinguished them by time, which is not the axis they differ on, and invited reading the lifetime figure as a longer window on the live one. Naming the denominator makes the panel self-documenting, which is the same reason the live figure became 'conditionally accepted'. The label is ours, not upstream's: 685ec5b's panel had no such key, so this asks nothing of upstream vocabulary. No test keys on the string (checked). Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
87becd5812 |
scripts/statsdump: rotation failure must not leave a closed handle (auditor ringer Q2)
The disk-full fix in c9aa677 guarded the WRITE path but not the ROTATION path: rotate() closes the handle first, so if the generation shift or the reopen itself raises (ENOSPC bites when the directory must grow), out stays closed -- and the next poll's write raises ValueError, which the OSError handler does not catch. The poller dies with a traceback and no exit summary: the exact terminal state the size cap exists to prevent. Fix: rotate() reopens best-effort before re-raising (append-open needs no disk space, so it succeeds even on a full disk), and the exit close is guarded so a failing flush cannot eat the summary line. Can-fail verified by injecting ENOSPC into os.replace at the second shift -- the auditor's geometry, rotation failing with the handle already closed: pre-fix dies 'ValueError: I/O operation on closed file' with 0 summary lines; post-fix completes the run, rc=0, summary printed. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
8cfcd3c6e5 |
dashboard: the .hold mobile scroll override was dead code -- specificity fix
Judge slice 31 FAILed a91bf44 and the operator's thumb confirmed it: the
request table still locks under a phone drag. The media-query override
listed bare .hold, but the base '.hold { overscroll-behavior:contain }' is
defined LATER in this file -- equal specificity, later rule wins the
cascade, so the override matched and lost. The .pbody half won (its base
rule is earlier), which is why the page scrolled some of the way but the
request block did not.
Fixed by specificity, not by moving the block: '.body .hold' outranks the
base '.hold' regardless of order, and the media query stays co-located
with the other breakpoint rules per this file's convention. The graph
modal (.ginfo .pbody) deliberately stays contained: it is an overlay the
user scrolls on purpose, and chaining out of it into the page behind is
the wrong feel.
Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
|
||
|
|
57184a0724 |
dashboard: un-trap mobile scrolling; rename 'accepted now' to 'conditionally accepted'
Two operator findings from live phone use: - Scroll trap: nested scrollers (the request/batch card bodies and .hold) carry overscroll-behavior:contain, set deliberately for the desktop wheel so a scroll over the request table does not move the page behind it. On a phone that containment traps the thumb-drag: the card scrolls, bottoms out, and the page refuses to chain -- the operator's 'scroll halfway, then use the sides for traction' symptom is exactly that, the margins being the only place with no scroller under the finger. Narrow screens now restore overscroll-behavior:auto so the scroll chains to the document; desktop containment is unchanged. - Caption: the Speculation panel's live figure reads 'conditionally accepted' (displayed uppercase by .cap), naming the ratio's basis on the face of the panel. README's reference to the same figure follows. No test asserts on either string (checked before editing). Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
52b3069f76 |
scripts/statsdump: survive disk-full AT the cap (judge slice 23)
Slice 23 refuted my 'survive a failed write' claim in the primary geometry: a write fails at the cap, the cap check's out.tell() FLUSHES the dirty buffer and raises OUTSIDE the handler -- the poller dies with a traceback and no exit summary, exactly the terminal state the cap was supposed to prevent. Fix: on a failed write, drop the dirty buffer and reopen; the cap check is wrapped so a size check can never be the thing that kills the poller. Can-fail verified with a real EFBIG geometry (RLIMIT_FSIZE 5 KB, cap 104 B, live engine): the pre-fix code dies 'OSError: File too large'; the fixed code completes the run, 16 rotations, exit summary printed, rows counted. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
61e3131262 |
dashboard: live figures read 0 when the lane is idle
Operator ruling 2026-10-20, on the three real-time figures: the decode-step headline, the acceptance tile, and the Speculation live figure. The defect was the FREEZE. Each of these held its last value while the lane did nothing, so a stale number kept wearing a current name -- a reader checking the dashboard at rest read a measurement of work that was not happening. Judge slice 10 named the failure mode in review. The fix follows the page's own convention rather than inventing one: every other live figure on this page shows 0 when the lane is idle (tps() renders 0 as "0", and the engine publishes 0 rates when nothing runs), so 0 IS the idle signal here. The dash stays reserved for a quantity that has no value at all -- no draft head, no engine attached. - Decode step: the tile reads this window's step time; a window with no decode steps reads 0. The engine's own best/recent floor figures below it are the engine's windows and stay put. - Acceptance tile: drafted nothing this poll -> 0. Dash only when there is no draft head at all. - Speculation live figure: same condition, same 0. Sparklines are unaffected: setMetric() pushes nothing for a null sample, so history stays honest across idle gaps. The restart path needs no special case -- a restart poll has no delta, so it reads the idle 0 -- and the pooled-ring clear inside accWindow stays, so a pre-restart pair never pools with a post-restart one. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
1cf31320a9 |
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 |
||
|
|
df42bd5c26 |
scripts/statsdump: size-cap rotation, monotonic dt_s, survive a failed write
Auditor gating fix 2 (Qwen 27B, AUDIT-qwen-20261020.md §6), confirmed by judge slice 05. An append-only recorder with no cap is a disk-full timer: at 1 poll/s the /stats payload runs to hundreds of MB a day, and the terminal state was an uncaught OSError traceback with no exit summary. --max-mib (default 256) rotates keeping 5 generations; rows carry their own timestamps so the chain stays readable in order. A failed write is now counted and the poller survives to report it. dt_s moves to the monotonic clock -- a wall-clock step could make it negative and every consumer dividing counters by it would inherit the step; t stays wall-clock because it is a timestamp, not a delta. Can-fail check run against the live engine: --max-mib 0.00002 produced 17 rotations with generations capped at .1-.5 and no rows lost. Does not touch the engine or the page, so the running image is unaffected; this lands for the PR and for whenever statsdump is wired in. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
77f91a0240 |
dashboard: fix the pooled ring's property names -- recent/now were NaN, never rendered
Two judge slices (Tasmania 27B, :8101) independently found what the auditor's
pass at 1505ef2 missed: accWindow pushes {ratio, dr, da} but acceptTriple read
d.r/d.a/last.r/last.a -- accPrev's names, a different object. Every pooled sum
was undefined, so the acceptance detail line was frozen at 'highest X% - recent
-' in the PRODUCTION page since 1505ef2. The headline was unaffected, which is
why it looked alive. Fixed to d.dr/d.da/last.dr/last.da.
Also from the judges: the Speculation 'Average' bullet printed 0% for an
undefined lifetime marginal (no drafts yet), breaking the panel's own rule that
0 reads as failure -- now a dash. The comment above it cited a 'GUIDE' that does
not exist; it now cites the README section, which is re-landed here (dropped in
the rebase onto v1.9.0) with the worked example corrected: 56/75/77 implies
43.4% marginal, not the 44% previously claimed.
New test the_pooled_acceptance_ring_reads_the_names_accWindow_writes holds both
sides of the ring contract to the same names -- it fails on the exact bug above,
which no C++ test could see because the page JS is never executed here.
Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
|
||
|
|
7c18d8d1bb |
dashboard: close the restart gap in the acceptance tile (Turnstone audit)
Auditor Qwen (27B, :8788) returned SHIP-WITH-FIXES; this is gating fix 1. accPool was push-only, so after an engine restart up to RECENT=30 delta pairs from the dead process pooled with the new one's and biased 'recent' -- largest exactly when a restart is likeliest to change acceptance. Restart detection now also watches uptime_s going backwards, which catches the case backward counters cannot: a backgrounded tab whose accPrev froze while the new process drafted past the old one's lifetime total, giving a positive bogus delta. On either signal every pooled ring is cleared and the accept headline + Speculation figure dash for that poll instead of freezing a dead process's ratio. Also drops the dead accDelta/ACC_WIN left by the pre-pool design and corrects the stale '10 s' comment. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
2dde313121 |
dashboard: rename the acceptance ring off 'p' -- dashboard_test's contract scanner
Full-suite build of the production branch FAILED 1 of 96: dashboard_test every_field_the_page_reads_is_one_the_routes_emit reported the page reads draft_positions[].length/.push/.shift. Cause: that test extracts every 'p.<field>' inside update() and asserts each is a field /stats emits -- p is the page's conventional name for a draft_positions element. My pooled ring buffer reused p for an array, so its own methods were read as engine fields. No logic error; a naming collision with the test's contract. Renamed to 'ring' in update() and acceptTriple(). The gate worked exactly as designed: rc=8, flip aborted, lane stayed on stock. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
ddb8aa9127 |
dashboard: acceptance tile recent/now are pooled ratios of sums
Math audit before the production roll (op request): triple()'s recent averaged per-poll ratios, but polls carry unequal draft counts, so quiet polls weighed as much as 500-draft polls. Live c8 replica measured the skew: avg-of-ratios 65.7% vs pooled 54.7% -- 11 points, growing with burstiness. The tile now keeps a per-concurrency ring of delta pairs and reports sum(accepted)/sum(reached) for recent and now; highest stays the full-session extreme. Speculation panel headline unchanged (it is the newest window ratio, which is a per-poll quantity by definition). Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
8bc457d7e7 |
dashboard: triple-tile rework, acceptance live-leads, Speculation bullet
metrics: export radiance:decode_step_seconds_best/_recent (omitted until measured)
scripts: statsdump.py -- /stats to JSONL verbatim recorder
Base: pr/decode-floor tip
|
||
|
|
14c5c8a68b |
review: fix the stale note_ready comment, drop a tautological check
The note_ready comment claimed "the page divides by this figure", but the submitted dashboard does not divide by startup_s (the payback formula that did was removed). Reworded to describe the actual risk: a zero cost would price every restart as free in any payback formula that divides by it. Dropped CHECK(gap_pct >= 0) in the decode-floor drift test: recent >= floor holds by construction (floor is the min of the window means, recent is one of them), so the check can never fail. The load-bearing assertion is the adjacent CHECK(gap_pct < 3). Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit 98429a9b15d7da1aa0e644cbd7e519d1bf33d797) |
||
|
|
8a4816dc8f |
dashboard: cap the decode-step percentage at ~99, not 100
100% would claim a sustained floor the ~500 ms poll window cannot confirm, and would read as a bug the moment a fast stretch briefly beat the 32-step floor. Cap at 99 and show it with a tilde: "now ~99% of best" says "at your best" without overclaiming. Anything slower still reads a plain percentage of the floor. Operator-directed 2026-10-18. Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit 7c35068e60d8a7baf61483e4d2a6452d71e0bc6f) |
||
|
|
87882e4c9c |
docs/GUIDE: document the decode-step percentage and its 100% cap
The tile's detail line gained a third figure in 4fe6ff1 (now X% of best) and a 100% cap in e083a2d; the GUIDE still described only the two engine figures. Document the percentage: 100% is the fastest, anything slower a percentage of it, capped at 100 because `now` is a ~500 ms poll mean while `best` is a 32-step window mean, and keyed by concurrency above c1. Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit 7263163748b98c1e5b5c9d4fa3e7fe8fed924678) |
||
|
|
0a222c6723 |
dashboard: cap the decode-step percentage at 100%
`now` is a ~500 ms poll mean; `best` is a 32-step window mean. A fast stretch shorter than a window can therefore read faster than the recorded floor, which the ratio printed as >100% -- "105% of best", which is a contradiction: if it beat the best, the best should have moved. The engine only ratchets the floor on a completed 32-step window, so a sub-window blip is not a new record. Cap the figure at 100: a live window at or above the floor reads "100% of best" (at your best), and anything slower reads a percentage of it. The "best X ms" figure is unchanged. Operator-directed 2026-10-18. Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit e083a2d606c2194539bd0640916fb0ae0852962e) |
||
|
|
46c7dc26be |
dashboard: read the decode step as a percentage of the fastest, not a multiple of it
The suffix was a ratio of time (100 * lastStepMs / ref): the fastest step read 100% and anything slower read ABOVE 100% -- 18.75 ms against a 15 ms floor printed "125% of best". Slower meant bigger, which is backwards. Flipped to a ratio of speed (100 * ref / lastStepMs): the fastest reads 100%, anything slower reads a percentage of it (the same pair now reads 80%), and the figure can never exceed 100% because ref is always the minimum. The "% of best" label now says what it shows. Operator-directed 2026-10-18; live-verified on the Tasmania lane (best 33.73ms / recent 35.76ms -> "94% of best"). Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit 6540ff811addc15288e6fcaa09b37b6c82ee7ebb) |
||
|
|
52a646431a |
dashboard: state the decode step as a percentage of the best at its own concurrency
The drift line carried a percent-of-best suffix that left with the drift verdict on 10-18. Restored as a raw ratio, keyed by concurrency: a c8 step against the fastest c8 step this process has done, never against the single-stream floor (that cross-read is what made the old line lie about a batch arriving). No threshold, no colour. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI (cherry picked from commit 4fe6ff1c838d67b642cc12782ce6a441368c3d76) |
||
|
|
5dfa61372a |
docs: devlog for the decode floor — the failures, and why they ended in simplification
The five-rung chain that produced step_ns_decode_best/recent: the raw min that latched 1.16 ms, the two guards refuted by measurement before being built, the phase gate that passed 38,820 checks and failed live, window averaging that kept a 10%-low floor, and the advisory whose premise — step time ratchets with engine age — survived a day of watching zero observations. The advisory was deleted, not tuned: the gap it priced is operating load (3-11% on a healthy lane), and the payback formula assumed a permanent gain the lane never offered. Written for the next contributor tempted to add a gate, a smoother, or a verdict here: each rung's temptation was to add mechanism, and each rung's cheap move was to measure the premise first. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit 9260f8e646c95aa8537d5e632a948bc54653c2ba) |
||
|
|
cb6cd3f69a |
docs: explain the decode floor and recent window, and what their gap is not
The tile now shows two engine figures and no verdict, so the guide says what they are: window means of 32 single-sequence steps, best the lane's most favorable moment and recent its current one. The load-bearing sentence is the one nobody can derive from the numbers: a gap of a few percent up to ~11% is operating load on a shared card, not degradation, and not a reason to restart. That claim is measured, not stylistic — the live lane held a flat floor while its recent window moved 3-11% with what else the machine was doing. Cross-references rad::DecodeFloor and the devlog for how the interpretation was tested and withdrawn. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit 604617bd72b7360d3855acac5e96d82e51ef91b7) |
||
|
|
845f0a5646 |
dashboard: state the engine's decode floor and recent window, without a verdict
The decode step's detail line now shows two figures the engine measures itself: the fastest single-sequence decode window this process has run, and its most recent one. Nothing is asked of the reader -- no ruler to type, no panel to open -- and no conclusion is drawn. Both come from the engine rather than the browser because the browser cannot produce either well. A tab only sees the steps taken while it is open, and a floor learned from a lane that was already degraded says "at your best" forever. The engine sees every step and knows the concurrency of the step it timed. Single-stream on both sides of the engine's own measurement. The floor is a single-sequence window, so the engine keys it to one row: a decode step at eight sequences is a different measurement, and reading it against a single-sequence floor would report a batch arriving as a slowdown. On an engine too old to emit the field, the page falls back to the fastest single-stream step this tab has seen. This commit previously also priced a restart, and that clause is removed here after being built, deployed, measured, and refuted on live traffic the same day. It compared the floor against the recent window, called the gap drift, and computed a payback from startup_s. The gap is not drift. On a healthy shared lane the floor held flat at 14.79 ms while the recent window moved between 15.2 and 16.5 ms -- 3% to 11% -- tracking what else the lane was doing: it froze when the lane went idle and rose on a fresh short request, so it was neither context length nor engine age. The payback formula assumes a restart's improvement is permanent, so following it pays the measured 49 s bringup and re-drifts within minutes; the line was advising a restart every 12 to 19 minutes forever, for a gain that was never there. What floor-vs-recent actually measures is the distance between the lane's most favorable moment and its typical one. An earlier version of this clause also compared the engine's floor against a median of the browser's per-poll means -- two instruments over different sample counts, disagreeing by pure order statistics on a flat engine, a measured 7.7% phantom drift. That is why the two figures shown now are both engine window means of one stream at one size. They are honest numbers; only the interpretation was withdrawn. A verdict can return once someone observes what none of this data shows: step time rising with engine age and staying up. Every excursion measured was load. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit 2eaf32201cb1a8c45857dfbb509a12acaa9ee216) |
||
|
|
d4998b1f75 |
server: report how long bringup took, as a raw figure
A restart's cost is the one number a reader needs in order to decide whether one is worth suffering, and any guess at it would decide the answer by itself. The server knows it exactly: the interval from process start to the socket listening, on this machine, with this model and this cache state. Emitted on /stats as startup_s, 0 until the server has listened. Raw figure only -- the page no longer consumes it. It is here because it is the missing half of any restart decision a human or a tool makes downstream, and because the decode-step advisory that did consume it was withdrawn the same day it shipped (see the following commit for what the live data showed). Trailing zero-defaulted field on both SchedMetrics structs plus the adapter copy; neither struct is ABI-pinned, so this is the sanctioned append. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit 76a9e2f7a28b8e034cfd56caa091792c68fe19b6) |
||
|
|
ed2da8c9da |
sched: record the fastest single-sequence decode step, for the dashboard to read
The dashboard's restart advice needs a reference the degraded engine is read against. Asking a human to type a ruler is fragile (a stale or mistyped number silently mis-advises) and cannot see steps taken while the dashboard tab is closed. The engine sees every step and knows the concurrency of the exact step it just timed (plan_.n_seq_decode), so it can keep the reference itself. Records two figures over single-sequence decode steps: the floor (the fastest window mean this process has measured) and the current (the most recent window mean). Both are window means of one stream at one size, so the advisory compares like with like. A min, not a max: drift only raises the CURRENT step, so the reference a degraded engine is read against is its own demonstrated floor. Single-sequence on purpose -- a decode step at eight sequences is a different measurement, so keying the floor to one row keeps a batch arriving from being misread as drift. A mixed step is excluded by the phase gate even when it carries one decode row: that row shared the step with a prefill chunk an order of magnitude dearer. Why not a raw min over step brackets: step timing is host-side, and with pipelining on the next forward pass is issued behind the current step's commit. Behind a step with long host work -- a prefill chunk, or a decode step that saves a KV checkpoint -- the decode pass is finished before its own bracket opens, so the bracket holds readback and commit and no GPU work. It is a real step advancing a real token, so no token-count or predecessor-phase guard catches it. A raw min latches that degenerate on the first occurrence and never recovers: measured live 2026-10-18 on a TP2 R9700 lane, 1.16 ms against a 15.55 ms mean on the first request after bringup. Why averaging alone is not enough: these degenerate brackets are not rare. At the observed ~1.4% rate a min over hundreds of windows reliably lands on a degenerate-heavy window, and the floor sits ~10% below the true floor -- still phantom drift, because the engine can never reach a floor that was an artifact. So a candidate is rejected BEFORE it enters a window when it is under half the running mean of accepted steps: degenerate brackets sit at ~9% of a real step and real single-sequence steps at ~96%, so the populations are ~10x apart and any threshold between them separates them -- 0.5 is the midpoint of that gap, not a value tuned to one distribution. Filtering at the step level is essential; at this rate a degenerate dilutes inside a 32-step window to ~0.91x, which no window-level threshold would catch. The first window is recorded by neither figure. The rejection gate needs a window's worth of accepted samples before it can judge one, so the first window is un-gated by construction; recording it lets the floor latch an unreachable value forever (measured: a 5% degenerate rate put the floor ~2% low through bootstrap alone). The cost is one window -- about a second of single-stream decode -- against a 46 s bringup and a 10 s repaint, so it is never observed. The estimator is a small struct (rad::DecodeFloor) so it is testable on a synthetic stream: the scheduler fixture runs steps in microseconds and cannot manufacture a degenerate bracket, which is why the first round of tests missed this. The tests feed streams laced with degenerate-short samples, assert a raw min latches them, assert the estimator rejects them and tracks the true floor, and assert the rejection does not eat real steps. Emitted on /stats as step_ns_decode_best and step_ns_decode_recent (0 until the first gated window completes). Trailing zero-defaulted fields on both SchedMetrics structs plus the adapter copy -- neither struct is ABI-pinned (scheduler<->server internal), so this is the sanctioned append. Matches the kv_tokens_max running-extremum precedent. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit bf5a803deaa08ae0c2d94e2c3dda0d518c08d9aa) |
||
|
|
51e6020998 |
dashboard: give the sparklines back their amplitude
Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI (cherry picked from commit d1dd050d5165536885840fb485f7041706938f8c) |