Skip to content

Experiment results: the trailing week as hourly rate lines - #12

Merged
Ssebv merged 1 commit into
mainfrom
feat/experiment-series
Aug 14, 2026
Merged

Ssebv merged 1 commit into
mainfrom
feat/experiment-series

Conversation

@Ssebv

@Ssebv Ssebv commented Aug 14, 2026

Copy link
Copy Markdown
Owner

The counters table stores hourly cells; this makes them visible. GET .../results gains a series field — the trailing week of per-arm hourly tallies, absent where nobody recorded (no traffic is a gap, not a 0 % rate) — and the dashboard draws one conversion-rate line per arm above the results table, colour-keyed like the meters below, breaking at gaps, with an invisible per-hour hover target carrying the exact numbers.

The window is a week because the totals already cover all time; the query is a range scan of the primary key, the same size at any traffic level. The seed now shapes its counters like traffic — a daily cosine cycle with uncorrelated per-arm jitter — so the chart demos a plausible week instead of a sawtooth.

Verified in a real browser: lines, gaps, tooltips, and zero WCAG A/AA violations in light and dark. The integration suite gains a test pinning hour bucketing, same-hour merging, the window cutoff, and oldest-first ordering.

🤖 Generated with Claude Code

The read the pre-aggregated schema was shaped for: a week of hourly
cells is a range scan of the primary key, the same size whether the
experiment saw ten requests or ten million. The results response gains
a `series` field — hours nobody recorded are absent, not zero, because
"no traffic" and "0 % converting" are different facts — and the
dashboard draws them as one line per arm, colour-keyed like the meters,
breaking at gaps, with an invisible hover target per hour instead of
168 dots of ink.

The seeded counters now follow a daily cosine cycle with uncorrelated
jitter per arm, so the chart shows a plausible week rather than the
sawtooth the old modular wobble produced.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Ssebv
Ssebv merged commit e4c7e5e into main Aug 14, 2026
6 checks passed
@Ssebv
Ssebv deleted the feat/experiment-series branch August 14, 2026 01:39
This was referenced Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant