- Added GET /main/verify?count=N to spot-check auto estimations against
temp history — recomputes expected gallons from HDD since last fill and
reports drift per customer; warnings flagged when drift > 15 gal
- estimated_gallons_left and estimated_gallons_left_prev_day altered from
INTEGER to NUMERIC(6,2) in both dev and prod DBs to eliminate ~0.3 gal/day
rounding drift that accumulated from integer truncation on each daily update
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace simple exponential smoothing with a rolling-average K-factor
system backed by a new auto_kfactor_history table. Budget fills are
detected and excluded from calculations, outliers beyond 2-sigma are
flagged, and confidence scores track data quality per customer.
Adds backfill endpoint, auto-create for missing estimation records,
and manual house_factor PUT endpoints for both auto and regular customers.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>