Skip to content

Forecast observations are discarded after a transient storage deadline #1277

Closed

Description

@frahlg

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.

Activity

  1. frahlg commented on Oct 18, 2026

    @frahlg
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions