From aa182fc15663ceb89781dd52c94df10b638a6fc9 Mon Sep 17 00:00:00 2001 From: "Memoria (Noblistic)" Date: Tue, 3 Nov 2026 15:04:51 +0000 Subject: [PATCH] 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 --- docs/GUIDE.md | 3 +-- tests/js/history.test.js | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/GUIDE.md b/docs/GUIDE.md index 6b909e51..d87bc5b5 100644 --- a/docs/GUIDE.md +++ b/docs/GUIDE.md @@ -3770,8 +3770,7 @@ be the mean over all 12, so only *last 5* shows. At exactly 20 rows *last 20* re 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. On this line a dot separates one category from the next and a -pipe separates the windows within a category; other panels use both glyphs as plain field -separators, so neither glyph carries a page-wide meaning. +pipe separates the windows within a category. The download icon beside the **Requests** heading saves those stored rows as `radiance-history.json`, indented, from the browser -- it is the same data **clear** would discard, diff --git a/tests/js/history.test.js b/tests/js/history.test.js index 1b7ed53a..aa9bc457 100644 --- a/tests/js/history.test.js +++ b/tests/js/history.test.js @@ -167,6 +167,7 @@ console.log("== the shipped formatters render these exact strings =="); eq(tpsF(58), "58.0", "tps keeps one decimal through the middle band"); eq(tpsF(54), "54.0", "tps: the GUIDE's F1 example figure"); eq(tpsF(9.995), "10.0", "tps lower band boundary is inclusive"); +eq(tpsF(9.994), "9.99", "tps just under the lower boundary keeps two decimals (kills sig3 9.995->9.994)"); eq(tpsF(99.949), "99.9", "tps just under the upper boundary keeps a decimal"); eq(tpsF(99.95), "100", "tps upper band boundary is exclusive"); eq(tpsF(120), "120", "tps above the band is an integer"); @@ -185,8 +186,8 @@ console.log("== the median is falsifiable: an ODD row count =="); const box25 = mk("span", "hsum"); const r25 = mkRows(25); const s25 = r25.map((r) => r.ttft).sort((a, b) => a - b); -ok(s25[Math.floor(25 / 2)] !== s25[Math.ceil(25 / 2)], - "n=25 makes floor and ceil pick different rows, so the guard can tell them apart"); +if (s25[Math.floor(25 / 2)] === s25[Math.ceil(25 / 2)]) throw new Error( + "fixture broken: n=25 must make floor and ceil pick different rows"); new Function("el", "document", "$", "hRows", "tps", "cnt3", "dur", BLOCK)( el, doc, () => box25, r25, tpsF, cnt3F, durF); const ttft25 = box25.kids.filter((k) => k.cls === "hgrp")[3].kids