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 observations are discarded after a transient storage deadline #1277
On v3.5.3-beta.1 (8650c58), forecastTracker.observe advances the telemetry accumulator, then makes a single two-second SaveForecastObservation attempt. A transient SQLite busy error or deadline logs forecast archive: observation not saved and discards that completed interval. The next tick cannot reconstruct its exact measured evidence. The same path also skips the candidate model update for that interval.
Keep completed immutable observations pending across transient failures in a bounded queue. Retry the exact interval, availability timestamp, quality and config revision. Do not reset model identity, substitute later measurements or make the control loop wait. A persistent failure or queue overflow must remain visible; a successful retry must clear the current failure without claiming lost evidence was recovered. Drain pending observations under a bounded shutdown context.
Required tests: a real SQLite writer held beyond the first deadline, unchanged retry after ambiguous commit, revision change while pending, cancellation/shutdown, queue limit and recovery status. Related contention fix: #1149. Fix before promoting this beta line to stable.
The retained-observation queue landed in #1283 and remains in current Core. Current regression tests cover a real SQLite deadline, frozen archive/model retry, cancellation and shutdown, old revisions, queue limits, draining before accepting new evidence, and clearing overflow health after recovery. Those observation and archive-retry tests passed three times with the race detector during this review. This closes the lost-interval retry defect; it does not clear #1554's separate field-validation blocker.
Activity
frahlg commentedon Oct 18, 2026
The retained-observation queue landed in #1283 and remains in current Core. Current regression tests cover a real SQLite deadline, frozen archive/model retry, cancellation and shutdown, old revisions, queue limits, draining before accepting new evidence, and clearing overflow health after recovery. Those observation and archive-retry tests passed three times with the race detector during this review. This closes the lost-interval retry defect; it does not clear #1554's separate field-validation blocker.