One entry per sizing engine version. The version moves only when the numbers for the same input move.
main has no version constant yet: responses carry engine.engine_revision (the Cloud Run revision). SIZING_ENGINE_VERSION and engine.version arrive with SAVINGS-CURVE, which rebases on top of these entries and renumbers to 1.12 (ruling R2, 2026-10-28). The git tag engine-vX.Y is cut on the SHA that ships.
1.11 — Tariff-aware fixed timer (November 2026)
Card f-0132. Tag engine-v1.11 on 1cdde161.
What was wrong
Every sizing reports two savings figures: the fixed timer (savings_static) and WattChop Drive (savings_optimized). The timer used the same hard-coded windows on every tariff: discharge in hours 16–20 and charge from the grid in hours 0–5. On a tariff whose expensive or cheap hours fall elsewhere, the timer was scored on windows a real time-of-use timer would not use.
What changed
From commit 1cdde161:
- TT-PA, windows from the tariff. The timer takes its windows from the bill's own cost spine (energy rate, hour, weekday or weekend, month), so it runs on one clock with the bill. For each month and day type it discharges in the highest-rate hours and charges from the grid in the lowest-rate hours. A flat-rate month and day type gets no window.
- TT-PB, the dispatch floor. The timer's call site in the optimizer, which also feeds the dispatch floor, carries the version marker.
- TT-PC, which windows ran. Both
naive_reference_scenarioresults carrytimer_windows_source, which says whether the windows came from the tariff or from the legacy fallback (null when there is no battery). - TT-PD, solar first (ruling 2026-11-05). An hour whose median net load in that month and day type is negative leaves the grid-charge window, so the timer does not charge from the grid while the site exports solar.
What it does to the numbers
Timer savings move. Drive savings do not (see below), so the uplift of Drive over the timer moves by the timer's change.
Goldens, engine-v1.10 → 1.11 (fixed hardware, run locally, nothing stored), annual timer savings:
- Hampton: unchanged.
- SCE-D: 90,122 → 95,617.
- Alameda: 1,018,875 → 1,011,786.
Release check on the live app, 2026-11-21: tools/partner_release_check.py on the sandbox key against revision wattchop-app-01717-rwp, which was deployed from main at d6d862b1 and so contains 1cdde161. The three flat-load cases are the test a partner reported in 1.10, here battery only (pv_kw 0). The fourth is a sweep on a synthesized Daytime Office load. The synchronous sizing response carries no run_id, so those rows read n/a. Money columns are annual USD.
| case | run_id | engine_revision | pv_kw | battery_kwh | timer savings (savings_static) | Drive savings (savings_optimized) | uplift | peak kW without → with Drive |
|---|---|---|---|---|---|---|---|---|
| flat 100 kW +15 kW 1 h on the 15th (B-10-S, 180 kWh / 2 h, pv 0) | n/a | wattchop-app-01717-rwp | 0 | 180 | 3,389.45 | 3,794.66 | 405.21 | 115.00 → 103.50 |
| flat 100 kW +30 kW 1 h on the 15th (B-10-S, 180 kWh / 2 h, pv 0) | n/a | wattchop-app-01717-rwp | 0 | 180 | 5,045.87 | 7,485.65 | 2,439.78 | 130.00 → 104.00 |
| flat 100 kW +60 kW 1 h on the 15th (B-10-S, 180 kWh / 2 h, pv 0) | n/a | wattchop-app-01717-rwp | 0 | 180 | 6,117.24 | 14,776.62 | 8,659.38 | 160.00 → 104.00 |
| Daytime Office sweep (40,000 kWh/month, B-10-S) | 44356ddc-01ce-4b7c-9323-703271d56fcd | wattchop-app-01717-rwp | 300 | 500 | 91,335.23 | 110,601.50 | 19,266.27 | 166.32 → 130.60 |
What did not move
- Drive
annual_savingsis identical on Hampton, SCE-D and Alameda, and so are the dispatch floor's winners.
Known limits
- Alameda keeps a residual: the timer now charges from the grid in the cheapest pre-dawn hours, which a real time-of-use timer also does.
- When the cost spine lacks the rate columns (energy rate, hour, weekday or weekend, month), the timer falls back to the legacy 16–20 / 0–5 windows.
timer_windows_sourcesays which one ran.
1.10 — Single-window fine target (October 2026)
Charter: CHARTER_SINGLE_WINDOW_FINE_TARGET.md. Reported by a partner (2026-10-23).
What was wrong
On tariffs where demand is billed over all hours (PG&E B-10 and every 24-hour-only demand schedule), the engine picked each month's demand target from a ladder in 5 %-of-peak steps. When the base load sat between two rungs, the target stopped at the rung above it. A flat 100 kW load with a 15 kW spike was shaved to 103.5 kW, not 100 kW. Tariffs with more than one billed window already had a 1 % polish (engine-v1.9, M4); single-window tariffs never got one.
What changed
- Fine target. Each single-window month with a demand charge now also gets a target in 1 %-of-peak steps below the ladder rung, never below 30 % of the month's peak. It is searched month by month with the battery's state of charge carried from the previous month, the way dispatch will run it.
- It is a candidate, not a replacement. The engine dispatches the year as engine-v1.9 does, then tries the fine targets and keeps them only where:
- the year bills no more than engine-v1.9's,
- no month that runs a fine target bills more than it did under engine-v1.9,
- and every month engine-v1.9 held on a target stays on a target.
- Exact to dispatch. The fine target reaches dispatch unrounded. A target at the base load has almost no headroom to recharge from the grid, and rounding it from 100.05 to 100.0 kW drained a 180 kWh battery to its floor by May in testing. All engine-v1.9 values (peak, ladder and window targets) keep their 0.1 kW rounding, so engine-v1.9's own dispatch is unchanged. Display still rounds to 0.1 kW.
- Log. Each run with fine targets logs one
SWF_FINEline: the months on the fine target, the largest change in any other month (state-of-charge carry-over or look-ahead), and the change in the year.
What it does to the numbers
The residue is closed in months where shaving to the base lowers the bill. In B-10 summer the engine keeps today's target, because the arbitrage it would give up is worth more than the demand gain.
A partner's own runs (B-10 S, 180 kWh / 2 h, flat 100 kW load with a one-hour spike on the 15th), replayed from their stored loads with the same arguments as the API:
| Run | Spike | Peak cut per month, 1.9 | Peak cut per month, 1.10 | Annual savings, 1.9 | Annual savings, 1.10 |
|---|---|---|---|---|---|
b201c34f | +15 kW | 12.000 kW | 13.720 kW | $3,881.68 | $4,156.01 |
cd0ec22a | +30 kW | 26.442 kW | 28.378 kW | $7,521.51 | $7,830.85 |
6edfe2aa | +60 kW | 56.350 kW | 58.478 kW | $14,872.35 | $15,206.16 |
These runs sent pv_kw: 1.0 with no site, so 1 kW of solar was modelled at the default test site (Ventura) and adds ~0.56 kW to every cut above. engine-v1.9 reproduces a partner's reported 12.000 / 26.442 / 56.350 exactly. Battery only (pv_kw: 0): 11.5 → 13.8, 26.0 → 28.6, 56.0 → 58.1 kW.
Month by month (battery only, +15 kW): January–May and October–December go from 103.5 to 100.05 kW. June–September stay at 103.5 kW.
Flat-load grid, B-10 S, 2 h (annual bill, engine-v1.9 → 1.10):
| Base / battery | +15 kW | +30 kW | +60 kW |
|---|---|---|---|
| 100 kW / 180 kWh | −$360.88 | −$407.85 | −$334.74 |
| 50 kW / 180 kWh | −$203.92 | −$167.38 | −$460.27 |
| 200 kW / 180 kWh | −$350.81 | −$721.90 | −$816.01 |
| 100 kW / 90 kWh | −$360.95 | −$408.00 | −$785.10 |
| 100 kW / 360 kWh | −$360.88 | −$407.86 | −$334.74 |
- No month runs above its engine-v1.9 peak.
- The largest move in a month off the fine target is +$17.47 (200 kW / 180 kWh / +15, September, which ends charged higher to set up October). Every other case is ≤ $7.15.
- 100 kW / 90 kWh / +60 is limited by battery power: it holds the fine target all year (128.0 → 124.8 kW).
What did not move
- Dispatch goldens Bolsa
1c5adaf9, Jensene0210e58, Alameda8ece17d4and SCE-Df7896c6b: monthly dispatch fingerprints byte-identical, savings identical. Hamptonfea69b30cannot be replayed (stored battery 0 kWh), before and after. - Months that carry M4 window targets (tariffs with more than one billed demand window: B-19, B-20, TOU-GS-2-E, SDG&E AL-TOU) get no fine target and are unchanged. San Jose office, B-19 S: $378,846.85 both.
- Run time: San Jose office sizing 85.1 s → 72.0 s (under the 3-minute bound).
Known limits
- B-10 summer (June–September) keeps the ladder target wherever the arbitrage it protects is worth more than the demand gain.
- The 1 % step is 1 % of the month's peak. On a 215 kW peak that is 2.15 kW, so a month whose next step does not hold stays up to 2.15 kW above the base (200 kW / 180 kWh / +15: February, May and November at 202.1 kW).