Skip to content

fix(dashboard): stop reporting unmeasured values as measurements on Overview, Components, Keep-alive and Benchmarks - #173

Merged
OsherElhadad merged 6 commits into
mainfrom
fix/tab-verdicts-and-denominators-0901
Sep 1, 2026
Merged

OsherElhadad merged 6 commits into
mainfrom
fix/tab-verdicts-and-denominators-0901

Conversation

@OsherElhadad

@OsherElhadad OsherElhadad commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

Four tabs reported numbers that were not measurements. Eleven display fixes plus two real contrast failures, on the seed v2 corpus (15,900 requests, 200 sessions, 4 bench runs). Every claim below is rendered text, not a screenshot description.

The one fix that prevents a class rather than an instance

usdOrNA(v, known, reason) -> Node (dash/ui/app.js, beside usd()). known and reason are required arguments, and it throws on a missing reason. Every other fix here prevents one instance of a defect; this signature makes the honest path the only path — a new dollar cell cannot silently omit its coverage, because there is no argument-shape in which it can.

This is DESIGN §3.4 rule 1's shape applied to coverage rather than to a denominator — "make the denominator a required argument of the render function, so an omitted denominator is a crash, not a confident number." The throw is that rule enforced, not defensive coding.

It exists because usd(0) returns '$0' and a $0 is a claim. searchfold removed 1.76M tokens over 488 acted rows, every one on a model with no price, and three cells read $0 with a tooltip saying "recorded per request".

Keep-alive gave three incompatible verdicts on one window

All three reachable without touching a filter, none labelled as the decision:

ka-net tile +$99.79, green, "Winner"
K ladder, rung marked current −$83.33, all four rungs negative
"What should I set?" "this would COST you money … entirely below zero"

Not resolved by picking one. They differ because they answer different questions: the ledger is retrospective and selected — what the shipped policy did on the 36 of 200 sessions it fired on, with a saving half that is explicitly a ceiling (the provider's cache is content-keyed) — while the ladder and recommendation are counterfactual over all 173 sessions with an expiry, 3,323 pings at K=2 against the 544 actually sent.

The decision "should this stay on across my traffic" is the counterfactual one. So it is named as the decision, in a row above the tiles rather than 2,900 px below them (DESIGN §3.7: cost beside its benefit; a negative net is never demoted), and the measured tile is relabelled as an upper bound:

Which number is the decision?
DECISION — expected across all your traffic | below zero | …the 90% interval is
  $-88.37 to $-75.61, entirely below zero…
Measured on the sessions it already fired on | $99.79 | 36 of the sessions in this
  window · the saving half is a CEILING, so this is an upper bound and it is not the decision

Your position | Winner            →  Where it stands so far   | Ahead
Keep-alive net | $99.79           →  Keep-alive net, measured | $99.79 | …an upper bound, not the decision

The row paints from whichever half has arrived and repaints when the other lands, so the ledger still never waits on the slow window function. The honesty costs nothing in latency.

Components: the verdict the code's own comment was written to produce was unreachable

if (c.errors > 0) gated the column with no rate threshold, above every economic test — and fail-open logs an error per reverted run, so every component in a real window has some. Worst rate in the corpus is 0.39% (toolschema, 9 of 2,314), and 14 of 14 rows rendered the red pill missing. On a window saving $351, no component could read "earning its place".

extract_llm  verdict  errors            → underwater -$2.15
cachesplit   verdict  costly and inert  → 8,906 structural mutations
cachesplit   Saved $  $0                → n/a
searchfold   Saved $ / Net $  $0 / $0   → n/a / n/a
dedup        verdict  errors            → earning its place
dedup        Errors   31                → 31 (0.22%)

Distribution over the 14 components: 13 errors + 1 costly and inert → 5 earning its place, 6 expensive for its yield, 1 underwater, 1 structural, 0 errors.

underwater -$2.15 is what verdict()'s own docstring said it existed to produce. The errors gate one line above defeated it. Showing the cell as 31 (0.22%) rather than 31 is what stops the bug recurring: a bare count invites a threshold-free gate, a rate does not.

cachesplit was the inverse shape — 8,906 structural mutations, Saved $ $0, red pill, while /api/stats credits it $60.33 on the same window. A reader acting on that row switches off the third-largest saving on the deployment.

The unpriced note separates two things that get conflated

Conflating them is what produced the green $0 in the first place. Partly unpriced means the figure shown is a lower bound and must still be shown; no priceable row at all means there is no figure and the cells read n/a:

2,959 acted rows across 4 components could not be priced … Partly unpriced, so the dollar figure shown is a lower bound: format (1,196 of 11,391 acted rows), toon (486 of 4,171), textclean (789 of 6,527). No priceable row at all, so the dollar cells read n/a rather than $0: searchfold (488 of 488).

One explanation above the table rather than forty tooltips (DESIGN §3.6 rule 5).

Benchmarks: 59.6% of 57 is the whole fix

Four arms printed rates off four different denominators in one column with no flag. Scored = tasks − exceptions was in BenchArm without being a column; Tasks, which looks like the denominator, is not; the only clue was Exceptions, eleven columns right and off-screen below 1100 px.

before  Arm       Tasks Solved Solve rate  Total cost  … Exceptions
        codesmart 60    40     66.7%       $27.59        0     ← 40/60
        rtk       60    38     66.7%       $26.26        3     ← 38/57

after   off [baseline] 60 57 3 34 59.6% of 57  —          $29.59  $29.59  —
        codesmart      60 60 0 40 66.7% of 60  +7.0 pt ▲  $27.59  $27.59  −6.77% ▼
        headroom       60 59 1 39 66.1% of 59  +6.5 pt ▲  $19.10  $19.10  −35.45% ▼
        rtk            60 57 3 38 66.7% of 57  +7.0 pt ▲  $26.26  $26.26  −11.24% ▼

Baseline pinned first with a pill (was third of four, alphabetically); signed deltas with arrows, never colour alone; both cost bases rendered and named (bench.go computed TotalNormCostUSD and grep -n norm_cost dash/ui/app.js was zero hits).

Plus: the empty state named --dash-bench-dirs, which does not exist — an unknown flag makes the proxy exit, so the tab's only instruction killed the process of anyone who followed it. Real flag is --dashboard-bench-dirs. And Re-scan discarded the response body, so a wrong path and a correct scan of an empty directory rendered identically; it now reports all three outcomes, and ?refresh=1 returns the directories it looked in.

An arm whose rows file names cost differently ingested as $0 and sorted as the cheapest. benchArms now counts rows that priced, and the UI refuses to render a cost it could not parse. Verified against a run whose rows file uses bob_cost: $0/$0/$0/$0/0.00% → n/a throughout.

Overview

Both server sums were individually correct; the ratio was invented in the browser. billed_input_tokens / tokens_before divided a numerator contributed only by rows reporting provider usage by a denominator summed over all of them. Now tokens_before_billed + billed_input_rows, same population, and the tile names it. And costKnown = complete > 0 let one priced request unlock five tiles presented as totals; each now states its coverage (priced on 14,259 of 15,900 requests (89.7%)).

Two contrast failures, the first real ones found on this product

Measured with the bundled validate_palette.js contrast(), not eyeballed:

unfilled star .star-read .off      BEFORE var(--border)      AFTER var(--fg-muted)
  light  --bg / raised / sunken / hover   1.34 1.43 1.23 1.29   5.92 6.34 5.46 5.71
  dark   --bg / raised / sunken / hover   1.44 1.32 1.39 1.22   7.50 6.87 7.21 6.35
<option> text                      BEFORE UA #808080         AFTER --fg on --bg-raised
  light on --bg #f6f7f9                    3.68  FAIL          18.13  PASS
  dark  on --bg #0d1117                    4.79  PASS          14.49  PASS

At 1.32:1 an unfilled star is invisible, so a 3-of-5 rating read as a 3-star rating with no sign that 5 was possible, across 84 rendered rows. Gate chosen: 4.5:1, not the 3:1 non-text gate — these are text glyphs in a <span>, so SC 1.4.3 applies on its own terms and the stricter gate needs no argument about whether a star is a graphic.

The more serious half was §2.5: both states were the same filled glyph separated only by colour, which fails 1.4.1 for a colour-blind reader even at passing contrast. The empty half is now U+2606 ☆, so they differ in shape: ★★★★★ / ★★★☆☆ / ★★☆☆☆.

Paired runs, dc29f22 vs this branch, same corpus and cookie:

tab contrastFail/pairs/nodes
feedback 1/11/408 → 0/10/408 1.32 dark, 1.43 light
strategies 1/7/122 → 0/6/122 3.68 light

The pair count drops with the failure count, so the failing pair is gone rather than merely passing. Zero contrast failures across all 32 combinations after.

Known limitation of the evidence in this PR

shots.mjs could not authenticate to a hosted proxy when this work started, so every manager-gated tab screenshotted as Could not load — sign in at /dashboard/, and the audit passed that empty table as clean (0/4/50). Several fixes here are on gated surfaces. The earlier screenshots in before-local/ were therefore taken in single-tenant local mode, where requireManager short-circuits.

infra-harness has since added --cookie-file, and the before-auth/ and after-auth/ sets are behind a real session.

A second instrument caveat, and why the contrast claim survives it. shots.mjs has no per-tab ready selector — it waits for [data-view] (the nav, present immediately) then a fixed delay, so it can audit a loading skeleton and manufacture an improvement out of a tab that simply had not rendered yet (impl-nav saw exactly that: a bodyScrollsX 8 → 5 "win" off kvcache dropping from 2038 visible text nodes to 43). The text-node denominator is the tell, so both my runs were checked against each other before any claim was made:

tab·theme·vw textNodes before/after pairs fail
feedback (all 4) 408 / 408 11 → 10 1 → 0
strategies (all 4) 122 / 122 7 → 6 1 → 0

Both contrast fixes are measured on an identical denominator, so they are not a render-state artefact, and the pair count falls by exactly one alongside the failure — the failing pair vanished from a scan of the same size. Across all 32 combinations, 0 showed a denominator shift outside 0.85–1.25×; every movement that did occur is content this PR adds (benchmarks +3 columns 88→103, components +note 360→371, keep-alive +decision row 309→319, sessions +2 n/a spans 376→396). This matters beyond this PR: the two contrast failures above were only findable once the harness could carry a session, and anything still unreachable is unaudited rather than clean. tenants, strategies and campaigns have no data-local-ok, so they were invisible to every prior audit on this product.

Not fixed, deliberately

  • The Verdict column sits 1,116 px off-screen at 1440 px. Table width 2,732 px, Verdict header left edge 2,556 px, 21 columns against DESIGN §3.1's 7-plus-a-picker. The fix is correct and needs horizontal scrolling to see. Wants a column picker; nobody on this sweep owns that.
  • keepalive scrolls the body sideways at 390 px (+843 px behind auth, culprit #ka-sessions-body). Identical on dc29f22 — pre-existing.
  • strategies +183 px and tenants textClip=4 — pre-existing, Admin group, and this branch does not contain perf(dash): fix four page-overflow defects and serve the UI assets gzipped #169, so it cannot say whether impl-perf's fix holds.
  • The Sessions † coverage-mark path is undrawn by the seed corpus: no session has both a non-zero baseline cost and an incomplete row (0 of 200), so any audit walking only this corpus reports it clean without rendering it. Verified by impl-traffic against a stubbed row instead.
  • searchfold reads earning its place while its dollars are n/a. The non-LLM verdict path has always been token-based, not dollar-based; the level-1 note names the gap. Worth a separate decision on whether an economic word may rest on token evidence alone.

Three filed findings that were wrong in detail

Corrected rather than quietly worked around:

  1. bob_cost exists nowhere in the repo at dc29f22. grep -rn 'bob_cost' returns zero hits and all four harness scripts write agent_cost. The defect class is real and is fixed; the cited artifact is not. Proven with a synthetic rows file instead.
  2. The two-population ratio is unobservable on seed v2. Every one of the 16,444 rows reports provider usage, so both populations are identical and the ratio is 0.958 either way. The filed 0.6× vs 2.77× is not reproducible here. The code defect is real; no screenshot can show a number change.
  3. norm_cost == agent_cost on every seeded row, so −11.8% vs −13.17% cannot be demonstrated, and docs/RESULTS.md is a 50-task study while the seeded run is 60 tasks — "reproduces RESULTS.md to the penny" is not checkable on this data.

Verification

CGO_ENABLED=1 go build ./...   OK
go vet ./...                   OK
CGO_ENABLED=1 go test ./dash/  ok  github.com/rossoctl/context-guru/dash  81.597s

5 commits. dash/ui/app.js, dash/ui/index.html, dash/ui/style.css, dash/overview.go, dash/bench.go, dash/api.go.

Osher-Elhadad added 5 commits September 1, 2026 14:18
…able dollar read n/a

Three defects on the Components tab, all of which made an unmeasured value look
like a measurement.

1. The Verdict column said `errors` for every component that saved money.
   `if (c.errors > 0)` gated the column with no rate threshold, ahead of every
   economic test — and fail-open logs an error per reverted run, so every
   component in a real window has some. Worst rate in the 15,900-request seed
   corpus is 0.39% (toolschema, 9 of 2,314), and 14 of 14 rows rendered the red
   `pill missing`. On a window saving $351 no component could read "earning its
   place", and extract_llm's net -$2.15 was indistinguishable from dedup's
   +$66.23. The errors gate is now a RATE with a 5% threshold, stated with its
   rate, and the sub-threshold case moves into the Errors column where it is
   shown as `41 (0.29%)` rather than a bare `41` over an unstated denominator.

2. cachesplit read `costly and inert` while /api/stats credits it $60.33 on the
   same window. The `saved_unique === 0 && duration_ms_total > 1000` test ran
   before the structural branch, so `acted_structural` never reached a verdict:
   the row showed 8,906 structural mutations, Saved $ $0, Net $ $0 and a red
   pill. That is a reader's cue to switch off the third-largest saving on the
   deployment. The structural branch is consulted first now.

3. A dollar cell rendered `$0` for a figure nobody could compute. searchfold
   removed 1.76M tokens over 488 acted rows, every one of them on a model with
   no price, and three cells read `$0` with a tooltip claiming "recorded per
   request". Worse, the unpriced disclosure was NESTED inside the
   `saved_usd_estimated` branch, which is 0 across the whole corpus, so it was
   unreachable. Every dollar cell now routes through one `usdOrNA(v, known,
   reason)` helper that renders `n/a` with its reason in both `title` and
   `aria-label`; `known` and `reason` are required arguments so a new cell cannot
   inherit the lie by omission. One explanation sits above the table rather than
   forty tooltips, and it separates partly-unpriced (a lower bound, figure shown)
   from wholly-unpriced (n/a).

Rendered before → after, seed corpus v2, 15,900 requests, all tenants, all time:

  extract_llm  verdict  errors            → underwater -$2.15
  cachesplit   verdict  costly and inert  → 8,906 structural mutations
  cachesplit   Saved $  $0                → n/a
  searchfold   Saved $  $0                → n/a
  searchfold   Net $    $0                → n/a
  dedup        verdict  errors            → earning its place
  dedup        Errors   31                → 31 (0.22%)

Verdict distribution over the 14 components: 13 `errors` + 1 `costly and inert`
becomes 5 `earning its place`, 6 `expensive for its yield`, 1 `underwater`,
1 `structural`, 0 `errors`.

Refs DESIGN §3.3, §3.4, §3.6.

Signed-off-by: Osher-Elhadad <[email protected]>
…every dollar total on its coverage

Two Overview defects. Both are "the number is right, the thing it is divided by
is not".

1. The "Provider-billed input" tile printed the relationship backwards.
   `billed_input_tokens / tokens_before` looks like a ratio and is not one:
   the numerator is `fresh_input + cache_read + cache_write`, identically 0 on a
   row where the provider reported no usage, while `tokens_before` is our own
   tokenizer and non-zero on every row. So it divided a sum contributed by one
   population by a sum over all of them, understating the ratio by exactly the
   share of unmeasured rows — printing "0.6x our count", i.e. "the provider bills
   LESS than we count", zero pixels above its own tooltip saying the figure is
   "about three times larger". Both server sums were individually correct; the
   ratio was invented in the browser.

   Overview now carries `tokens_before_billed` and `billed_input_rows` — the same
   sum and a row count restricted to rows that reported usage — computed in the
   same query, and the tile names the population it used.

2. One priced request unlocked five tiles presented as totals. `costKnown` was
   `(o.accounting && o.accounting.complete) > 0`, gating `total-saved-usd`,
   `saved-usd`, `cost-baseline`, `cost-actual` and `cachesplit-saved`, while the
   underlying sums are unrestricted by `token_accounting`. On a 40-row window
   with 8 complete rows, 32 rows contribute $0 to a figure labelled "Total".
   Hiding the number would be its own dishonesty — a partial total is still the
   best figure available — so instead it never renders without saying what share
   of the window it covers. The Cost group states it once in the group note
   rather than five times.

Rendered before → after, seed corpus v2, 15,900 requests, all tenants, all time:

  Provider-billed input   sub  "1.0x our count"
                             → "0.96x our count, on the 15,900 requests reporting provider usage"
  Total dollars avoided   sub  "compaction + prefix cache + keep-alive + declarations dropped"
                             → "... dropped · priced on 14,259 of 15,900 requests (89.7%)"
  Net dollars saved       sub  "baseline − actual − our spend"
                             → "baseline − actual − our spend · priced on 14,259 of 15,900 requests (89.7%)"
  Cost group note              "billed, and the counterfactual"
                             → "billed, and the counterfactual · priced on 14,259 of 15,900 requests (89.7%)"

Note on (1): every row in the seed corpus reports provider usage, so the ratio
is unchanged there (0.958 both ways) and the fix is not observable on this data.
It is still the correct denominator, and the tile stating its population is
required regardless.

Refs DESIGN §3.4.

Signed-off-by: Osher-Elhadad <[email protected]>
…verdicts

The tab gave three incompatible verdicts on one window, all reachable without
touching a filter, and nothing said which one to act on:

  ka-net tile        +$99.79, green, "Winner"
  K ladder, K=2      -$83.33, and all four rungs negative
  "What should I set" "this would COST you money ... entirely below zero"

They are not contradictory measurements. They answer three different questions
and the tab never said so. The LEDGER is retrospective and SELECTED: what the
shipped policy did on the 36 sessions it actually fired on, with a saving half
that is explicitly a ceiling because the provider's cache is content-keyed. The
LADDER and the RECOMMENDATION are counterfactual over the whole window — every
ping the gated policy would have sent across all 173 sessions with an expiry,
3,323 of them at K=2 against the 544 really sent.

The decision "should this stay on across my traffic" is the counterfactual one.
So that is now the decision number, it is named as such, and the ledger is
subordinate to it and immediately beside it — in the Verdict panel, above the
tiles, not 2,900 px below (DESIGN §3.7: cost belongs beside its benefit, and a
negative net is never demoted to a footnote).

The ledger figure keeps its full size and its own line. "Winner"/"Losing", which
was decided by the ledger's sign alone, becomes "Ahead"/"Behind" with the
population it describes, and the --good/--bad judgement moves to the decision
row, which is the half that has the counterfactual.

The decision row paints with whichever half has arrived and repaints when the
other lands, so the ledger still never waits on the slow window function
(loadKeepAlive's existing constraint) and the two halves cannot flash in a
different order between loads. Its table sits in a `.tblwrap` because the third
column is a sentence.

Rendered before → after, seed corpus v2, 15,900 requests, all tenants, all time:

  before, in the Verdict panel, and nothing else:
    Your position    | Winner  | 36 sessions touched
    Keep-alive net   | $99.79  | avoided − spent
  ... with -$83.33 and the refusal ~2,900 px further down.

  after, above the tiles:
    Which number is the decision?
    DECISION — expected across all your traffic | below zero | your own history says
      this would COST you money: over 640 cache expiries in 173 sessions the 90%
      interval is $-88.37 to $-75.61, entirely below zero. Your idle gaps are mostly
      too long for any setting worth having to reach
    Measured on the sessions it already fired on | $99.79 | 36 of the sessions in this
      window · the saving half is a CEILING, so this is an upper bound and it is not
      the decision
    Where it stands so far     | Ahead   | 36 sessions touched — see the decision row above
    Keep-alive net, measured   | $99.79  | avoided − spent, on the sessions it fired on
                                           — an upper bound, not the decision

Refs DESIGN §3.7.

Signed-off-by: Osher-Elhadad <[email protected]>
… on Benchmarks

Five defects, all of which let a reader take away a number that is not the one
they think it is.

1. Four arms printed solve rates off four different denominators in one column
   with no flag. `benchArms` divides Solved / Scored where Scored = tasks −
   exceptions, and `Scored` was in BenchArm without ever being a column. The
   `Tasks` column, which looks like the denominator, is not. On the seeded
   SWE-bench run, `codesmart` (40/60) and `rtk` (38/57) both printed 66.7% and
   are not the same measurement. `Scored` and `Exceptions` are now columns 3 and
   4, beside the rate rather than eleven columns right and off-screen below
   1100 px, and the rate carries its own denominator in the cell.

2. The baseline sorted into the middle and there was no delta anywhere.
   `benchArms` orders by arm name, so `off` landed third of four alphabetically
   and a reader computed the one number this tab exists to produce in their head
   across four rows. The baseline is pinned first with a `baseline` pill, and
   there are two signed `vs baseline` columns — solve rate in percentage points,
   cost as a percentage — each with a sign AND an arrow, never colour alone.
   Matches docs/RESULTS.md's own in-cell shape.

3. The tab rendered a different cost basis from the published claim, unlabelled.
   `bench.go` computes `TotalNormCostUSD`; `grep -n norm_cost dash/ui/app.js`
   returned zero hits. Both bases now render, and both headers say which is which
   ("agent" = as the harness reported it, "normalised" = re-priced from token
   counts at one rate card, the basis docs/RESULTS.md quotes). The cost delta is
   taken on the normalised basis.

4. The empty state's only instruction named a flag that does not exist. It said
   `--dash-bench-dirs`; the real flag is `--dashboard-bench-dirs`, and an unknown
   flag makes the proxy EXIT — so the tab's own advice killed the process of
   anyone who followed it. `grep -rn 'dash-bench-dirs'` over the repo returned
   that one string. This empty state is the tab's primary surface: bench_runs is
   0 on a 133k-request production deployment.

   Relatedly, the Re-scan handler fired the endpoint and discarded the response,
   so a mistyped path and a correct scan of an empty directory rendered
   identically while the server returned real counts. It now reports them, and
   the endpoint returns the directories it looked in, because "nothing was
   configured" and "scanned two and found no runs" are different problems and
   only one is fixed by editing a path. The handler body moved out of `init()`
   into `rescanBenchmarks` so `init()` keeps a one-line call site.

5. An arm whose rows file names cost differently ingested as $0 and rendered as
   the cheapest arm. `harborRow.AgentCost` binds to `agent_cost`; a file naming
   it otherwise unmarshals to the zero value silently. A float64 cannot express
   absence, so `benchArms` now also counts the tasks that carry a non-zero cost
   (`cost_rows`) and the UI refuses to render a cost it could not parse. The same
   shape in the Cache hit column is fixed the same way, using token sums already
   on the wire.

Rendered before → after, run `swebench-verified-2026-07-14`, seed corpus v2:

  before (server order, no denominator, no delta, one unnamed cost basis):
    Arm        Tasks Solved Solve rate  Total cost  ... Exceptions
    codesmart  60    40     66.7%       $27.59          0
    headroom   60    39     66.1%       $19.10          1
    off        60    34     59.6%       $29.59          3
    rtk        60    38     66.7%       $26.26          3

  after:
    Arm            Tasks Scored Exceptions Solved Solve rate    vs baseline  Total cost (agent) Total cost (normalised) vs baseline
    off [baseline] 60    57     3          34     59.6% of 57   —            $29.59             $29.59                  —
    codesmart      60    60     0          40     66.7% of 60   +7.0 pt ▲    $27.59             $27.59                  −6.77% ▼
    headroom       60    59     1          39     66.1% of 59   +6.5 pt ▲    $19.10             $19.10                  −35.45% ▼
    rtk            60    57     3          38     66.7% of 57   +7.0 pt ▲    $26.26             $26.26                  −11.24% ▼

  empty state:  "Point --dash-bench-dirs at a harness jobs root ... and re-scan."
              → "Point --dashboard-bench-dirs at a harness jobs root (a directory of runs,
                 each with summary.json and rows-*.json), restart, and press Re-scan.
                 Re-scan reports what it found, including the directories it looked in."

  re-scan, three outcomes, all previously silent:
    "Scanned 1 directory: ingested 4 runs, 504 task rows."
    "Nothing was scanned: no --dashboard-bench-dirs is configured on this proxy, so
     Re-scan has no directory to look in. Restart with the flag pointing at a jobs root."
    "Scanned /tmp/... and found no run directory (a run needs summary.json and at least
     one rows-*.json). 0 runs, 0 tasks ingested."

  unparseable cost, verified against a run whose rows file uses `bob_cost`:
    before  $0 / $0 / $0 / $0 / 0.00%   and it sorts as the cheapest arm
    after   n/a / n/a / n/a / n/a / n/a, plus a note naming the `agent_cost` key

Note: in the seed corpus `norm_cost` equals `agent_cost` on every row, so the two
cost columns are identical there and the delta cannot be shown to differ between
bases on this data.

Refs DESIGN §3.4, §3.6, §3.8.

Signed-off-by: Osher-Elhadad <[email protected]>
…nd give n/a its own type

Two real contrast failures, both reachable only behind a session — which is why
every previous audit reported zero across 68 combinations and was telling the
truth about the eight tabs it could see.

1. `.star-read .off` painted the unfilled stars with `--border`, the hairline.
   Measured against every surface it can land on, in both themes, it is
   1.22-1.44:1: an unfilled star is invisible, so a 3-of-5 rating read as a
   3-star rating with no indication that 5 was possible. 84 rendered star rows on
   Feedback. Now `--fg-muted`.

   Gate chosen: 4.5:1, not the 3:1 non-text gate. These are text glyphs in a
   `<span>`, so SC 1.4.3 applies on its own terms and picking the stricter gate
   needs no argument about whether a star is a graphic.

   The empty glyph also changes from a recoloured U+2605 BLACK STAR to U+2606
   WHITE STAR. Both halves were the same filled glyph separated only by colour,
   which fails WCAG 1.4.1 / DESIGN §2.5 for a colour-blind reader even at passing
   contrast. They now differ in shape as well as hue, and the row survives
   greyscale. Rendered: "★★★★★" / "★★★☆☆" / "★★☆☆☆".

2. An `<option>` in a popup list does not inherit its select's `color`: the UA
   paints it with its own default, measured 3.68:1 (#808080 on `--bg`) on the
   tenant picker in light mode. Interestingly it PASSES in dark (4.79:1), so this
   is a light-theme-only failure. Fixed on bare `option` rather than per-select,
   so every dropdown in the app is covered by one rule.

Measured with the bundled validator (`validate_palette.js` `contrast()`), not
eyeballed:

  unfilled star, BEFORE — var(--border)          gate 4.5:1
    light on --bg 1.34  --bg-raised 1.43  --bg-sunken 1.23  --bg-hover 1.29   FAIL
    dark  on --bg 1.44  --bg-raised 1.32  --bg-sunken 1.39  --bg-hover 1.22   FAIL
  unfilled star, AFTER — var(--fg-muted)
    light on --bg 5.92  --bg-raised 6.34  --bg-sunken 5.46  --bg-hover 5.71   PASS
    dark  on --bg 7.50  --bg-raised 6.87  --bg-sunken 7.21  --bg-hover 6.35   PASS
  filled star (unchanged) — var(--accent)
    light on --bg 5.88  --bg-raised 6.30 · dark on --bg 6.33  --bg-raised 5.79 PASS

  <option>, BEFORE — UA #808080
    on light --bg #f6f7f9  3.68  FAIL · on dark --bg #0d1117  4.79  PASS
  <option>, AFTER — var(--fg) on var(--bg-raised)
    light 18.13 · dark 14.49  PASS

Paired harness runs, same corpus, same cookie, dc29f22 vs this branch
(`shots.mjs --cookie-file`, 8 tabs × 2 themes × 2 viewports):

  feedback     contrastFail/pairs/nodes  1/11/408 (1.32 dark, 1.43 light) → 0/10/408
  strategies   contrastFail/pairs/nodes  1/7/122  (3.68 light)            → 0/6/122

The pair COUNT drops with the failure count, so the failing pair is gone rather
than merely passing. Zero contrast failures across all 32 combinations after.

Three more changes in the same pass, all small and all the same defect class:

- `.na` is now `--fg-muted`, upright, with a dotted underline and a help cursor
  (DESIGN §3.6 rules 1-2). This is NOT a contrast fix — `--fg-faint` already
  measured 4.64-6.00:1 and was legal — but faint italic reads as a rendering
  failure rather than as a deliberate refusal to guess, and the underline is what
  tells a reader a reason exists in the title.
- Sessions' `Net saved $` and `Keep-alive net` rendered `—` for an uncomputable
  value with the reason only in a `title`. DESIGN §3.6 rule 3 rules out `—` the
  same way it rules out `$0`. Both now route through `usdOrNA` with a reason in
  `title` and `aria-label`. (Cells are in impl-traffic's range; they handed them
  over so the fix lands in one place rather than split across two branches.)
- Three tables in views I own appended bare, with no scroll wrapper:
  `toggleBenchTasks`, `loadKAArmed`, `loadKABehaviour`. Wrapped in the existing
  `.tblwrap` idiom with `tabindex="0"` — a scroll region a keyboard user cannot
  focus is axe `scrollable-region-focusable`. The other six bare tables are all
  Admin-group and belong to impl-nav.

Refs DESIGN §2.5, §3.6, §0.6.

Signed-off-by: Osher-Elhadad <[email protected]>
The dotted rule added in the previous commit works because "n/a" is a WORD wide
enough to carry one. On the `†` coverage mark in the Sessions table
(`class: 'na small'`, roughly 10px including its leading space) it renders as a
four-dot fragment offset left under the space, and at 1× it reads as dirt on the
screen rather than as "a reason exists here". Measured at deviceScaleFactor 6 by
impl-traffic, who owns that cell.

Scoped to `.na.small`, since `small` is already the modifier marking the glyph
case. The upright weight, `--fg-muted` and `cursor: help` all stay — the dagger
was previously `cursor: pointer`, which implied it was clickable, and it is not.

Computed, served:
  .na        color rgb(86,96,114)  normal  border dotted/1px  cursor help
  .na small  color rgb(86,96,114)  normal  border none/0px    cursor help

Worth recording for anyone auditing this path: no session in the seed corpus has
both a non-zero baseline cost and an incomplete row, so the `†` never renders
there — 0 of 200 sessions. An audit that walks only the seeded corpus will report
this path clean because it never draws it.

Signed-off-by: Osher-Elhadad <[email protected]>
@OsherElhadad
OsherElhadad merged commit 3a2b6f9 into main Sep 1, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant