Archived
d0fd4aa1bb413bd75f5467daf6c8ae274c8a3d7d
5
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 |
||
|
|
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
|
||
|
|
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 |