Forecast does not project recurrence series (REQUIREMENTS §7.4 unmet) #14

Closed
opened 2026-06-05 10:26:26 +00:00 by victor · 0 comments
Owner

REQUIREMENTS §7.4 requires next forecast to 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 stored due <= cutoff; it never calls next_occurrence to 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_occurrence within forecast_horizon_days and include the projected dates in the forecast output (clearly marked as projected). Add tests. This is a feature-sized change.

Found in review.

REQUIREMENTS §7.4 requires `next forecast` to 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 stored `due <= cutoff`; it never calls `next_occurrence` to 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_occurrence` within `forecast_horizon_days` and include the projected dates in the forecast output (clearly marked as projected). Add tests. This is a feature-sized change. Found in review.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
victor/task-manager#14
No description provided.