← Back to Pull requests

fix(admin): name the hour before midnight 23:00 on the day the clocks go forward #822

Closed
unknown closed this pull request without merging on Dec 01, 2026 05:10 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 02:25 UTC
Author

On the day the clocks go forward, the hour charts on Analytics can label an hour "-1:00".

That day's service day starts at 23:00 the evening before, noon minus twelve hours, so a trip the feed times at 00:30 leaves at 23:30 and falls in the service day's hour -1. The charts named an hour with hour % 24, which is -1 in Go. They now wrap it the way the page's lede already does in its "most of them on trips leaving between" sentence, so the hour reads 23:00, the time on the agency's clock.

It showed in "Early and late by hour of day", on its axis, in its table and in its tips, and in the gaps chart, which is drawn the same way. That is on the day itself and in every 7 or 28 day period that holds it, for an agency in a zone with daylight saving and a trip between midnight and 01:00.

Tests: a reports page test on a feed with a trip at 00:30 opens 8 March 2026 in Los Angeles. Every hour it names is a time of day and the first is 23:00. On main it reads "-1:00", three times on the page.

go fmt, go vet and go test ./... pass, with the database tests (4,698 tests).

Diff: 134 lines (+100 / -34) across 1 files Reviewer: aaronbrethorst Review duration: 164m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.32) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 134 lines diff across 1 files
0.32
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.293
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #822"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 32.3% (LOW) · Higher = larger blast radius
32.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.0% · Safe to merge
14.0%