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
Dashboard page tests
The dashboard is one C++ string: core/server/dashboard.cpp embeds the whole page,
so its JavaScript has no file of its own to test. These harnesses extract the page
from the translation unit (page.js) and execute the shipped functions, sliced
by line range, against mocked DOM. A retyped copy would test the copy, not the bytes
that ship — and a sliced function that is defined but never called proves nothing,
which has already happened once here.
node tests/js/poll_spark.test.js
node tests/js/extremes.test.js
node tests/js/history.test.js
node tests/js/download.test.js
What each one covers
| file | the shipped code it drives |
|---|---|
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 |
Each asserts structure, not just text. history.test.js inspects the DOM the page builds and the
CSS it ships, because the rules it guards -- a category wraps whole, the category break is a dot
and the break within one is a pipe -- are not properties of any string the code builds.
download.test.js invokes the click handler against stubs and checks it really builds a file,
names it, clicks it and releases the blob URL: a button that looks clickable and does nothing is
the failure it exists to catch.
The render check (manual, needs Chrome)
render_align.js is not a unit test and cannot be: it answers whether the download glyph is
level with the caption by loading the page in headless Chrome, screenshotting the header at 4x,
and comparing the lowest inked pixel row of each. It needs puppeteer and a Chrome binary, which
are deliberately not repo dependencies:
npm i puppeteer && npx puppeteer browsers install chrome
node tests/js/render_align.js http://127.0.0.1:8800/
Exits nonzero when the two bottoms land on different device rows. Run it after touching glyph or header geometry. Three claims about alignment and spacing went through this branch on the strength of reading the CSS and the SVG viewBox, and all three were wrong -- collapsed whitespace made a "wide" separator zero pixels wide, and an SVG whose box is flush with the baseline still floats, because the baseline sits above the box bottom. None of that is visible in the source. Measure the rendered page.
Why these are not in ctest
They need node, which is not a build dependency of this project and will not be
present on a contributor's box or in the ROCm build image. Wiring them into ctest
would turn a missing optional tool into a red build, so they stay opt-in and are run
by hand when the page changes. dashboard_test covers the C++ side only.
History
Both files came out of the 2026-11-01 dashboard review. Commit 9cc237f claimed
"18 checks execute the shipped noteSample, triple, acceptTriple, resetWindows and
newEngineRun" while the harness lived only in /tmp — true when written, not
reproducible by anyone else, which an independent review correctly rejected. They are
in the tree so that claim can be re-run. history.test.js and download.test.js came from the
dashboard work that followed, on the same rule: a check that lives in /tmp is a claim about the
author's machine.