Forecast does not project recurrence series (REQUIREMENTS §7.4 unmet) #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
REQUIREMENTS §7.4 requires
next forecastto display upcoming due dates for all matching recurrence series over a configurable horizon. The implementation (src/cli/commands/forecast.rs) only lists existing tasks whose storeddue <= cutoff; it never callsnext_occurrenceto project future, not-yet-spawned instances.Impact: a weekly task shows only its single currently-open instance, not the ~12 occurrences in a 90-day window. The requirement is not met.
Fix: for each recurring task, project its series forward with
next_occurrencewithinforecast_horizon_daysand include the projected dates in the forecast output (clearly marked as projected). Add tests. This is a feature-sized change.Found in review.