You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Forecast learning resets on every native update #1488
The learned PV and load models (Energyplan and the legacy load twin) start over after every Core update on a native install, even when nothing about the site or its drivers changed.
forecastStaticRevision hashes each measurement driver's config.Driver, including its resolved Lua path. A config path such as drivers/sungrow.lua resolves into the release's own directory, for example /opt/ftw-native/releases/v0.138.1-beta.1/drivers/sungrow.lua. A new release means a new path, a new learning revision, and a reset.
Evidence (home box, 22 Sep–1 Oct 2026)
The learning revision (site.learning_revision in every forecast issue) changed 25 times in 9 days. The longest stable stretch was 53.7 h.
The ordinary update to v0.138.1-beta.1 on 28 Sep 20:50 reset learning; its sungrow.lua was byte-identical to v0.138.0-beta.1.
Energyplan's load model needs 2 independent days to leave cold start and 8 to be ready, so it never got there. Core then fell back to the legacy load twin for 81 % of forecast points.
Fix
Hash the driver entry as configured (the release-independent path), keep the script content digest, and carry an existing learning ID across the policy change so this fix does not cost one more reset.
Activity
fix(forecast): keep learning when an update moves the driver scripts
fix(forecast): keep learning when an update moves the driver scripts (#…