Repository navigation
Description
Finding
The Cost Explorer band lane charts added by PR #3972 ship with no behavioural test. The only test coverage is source-string matching in pm-stack/aggregator/test/aa.test.ts (:714-725 on current main): the assertions check that the emitted page contains the renderer's source text — expect(html).toContain("function bandLaneChart"), toContain('class="xpl-band-lanes"'), the bandLaneChart("Lowest price within each speed target", "cost", …) call-site text, and toContain("g6Lanes.push"). None of them execute bandLaneChart against data. The assertions would still pass if the function returned "", mis-scaled every point, or plotted nothing — and the a11y suite's only script-level check compiles the explorer script with new Function(source) (a syntax check). The chart's actual logic — axis range computed from all band members while only near-leader choices are plotted, log vs linear scaling, the lo === hi widening, leader detection and point placement — is untested in every direction.
Evidence
- Source PR: feat(aggregator): add Cost Explorer band lane charts #3972 (merged 2026-11-02, merge commit 2cb2055) — "feat(aggregator): add Cost Explorer band lane charts" (refs Cost Explorer ChatGPT-parity follow-ups: lane charts, chart extras, evidence cards, projection routes #1400).
- Verified on current main 1a06801, two independent reads:
pm-stack/aggregator/test/aa.test.ts:714-725— the lane-chart assertions are thetoContainsource-string checks quoted above; a code search forbandLaneChartacross the repo's tests returns only this file.pm-stack/aggregator/src/render.tsbandLaneChart(in the explorer script): values are collected fromb.members, points are plotted fromb.choices; log scale for non-score metrics,lo === hiwidening branches, leader vs near-leader styling — none of it exercised by any test.test/a11y-1215.test.ts:137compiles the script vianew Function(source)— parse-only.
- Dedupe: issue search 2026-11-11 ("lane chart test", "bandLaneChart") returned no covering issue; parent Cost Explorer ChatGPT-parity follow-ups: lane charts, chart extras, evidence cards, projection routes #1400 remains open for the broader parity follow-ups and does not track this test gap.
Why it matters
The lane charts are the visual half of the band comparisons — the tables' numbers are tested, the chart that re-plots them is not. A scaling or leader-detection regression would ship silently because the string-match tests pin the function's presence, not its behaviour; they also break on harmless refactors (renaming the function) while passing real breakage, the worst combination a test can have.
Acceptance criteria
- A test executes
bandLaneChart(directly, or by evaluating the emitted explorer script in a harness) against known band data and asserts on the rendered output: number of plotted points, leader point identity/styling, and axis behaviour for a log-scale metric. - The
lo === hisingle-value widening case is covered. - The members-range vs choices-points relationship is pinned by an assertion (whichever behaviour is intended), so a future change to either set is a deliberate test change.
- The existing source-string assertions for the lane chart are removed or demoted in favour of the behavioural ones.
agent-note:v1
Agent: pr-diff-review-b
State: filed
Source PR: #3972 (#3972)
Verified against main: 1a06801 (two reads)
Activity
developing-today commentedon Nov 11, 2026
CODE-2581
dezren39 commentedon Nov 11, 2026
agent-note:v1
Agent: pr-diff-review-b
State: filed
Repo: developing-today/code
Source PR: #3972 (#3972), merged 2cb2055
Finding: band lane charts have no behavioural test — aa.test.ts:714-725 asserts only that the emitted page contains the renderer's source strings; bandLaneChart is never executed against data in any test (a11y suite only syntax-compiles the script).
Verified against main: 1a06801 (two reads of aa.test.ts and render.ts)
Evidence: hidden_files/pr-review-b-2026-11-11-0118/issue-3972-body.md + diff-3972.patch
Merge pull request #8654 from developing-today/queue/14915-8600-bandl…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — bandLaneChart now has behavioural tests; PR #8654 merged, issue closed
Fixes #8600. Newpm-stack/aggregator/test/band-lane-chart.test.tsexecutes the real emittedbandLaneChart(extracted verbatim with its helpers from therenderAaexplorer script) against known band data, and the five lane-chart source-string assertions inaa.test.tsare removed in favour of it.lo === hiwidenings (cost log, score linear), empty cases. Codex review: no findings.aa.test.tscannot run in the sandbox (server-spawning hook timeout, verified identical on a pristine worktree of the same base — pre-existing); PR checks pending in the Actions runner stall at merge, under the standing merge-when-verified authority.