Floating Tasks with computed due state #102

Open
opened 2026-11-27 16:43:37 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

Members create recurring floating Tasks (an interval count and unit, optional Asset, note, lead_days). Each Task response carries computed due_on and status: ok|due|overdue, with nothing stored. With no Service yet, the first due date is the creation date plus one interval, and "due" starts lead_days before it.

Acceptance criteria

  • Creating and getting a floating Task returns due_on = creation + interval
  • With the pinned clock: before the lead window → ok; inside it → due; past due_on → overdue
Part of #73 (spec: #72) ## What to build Members create recurring floating Tasks (an interval count and unit, optional Asset, note, `lead_days`). Each Task response carries computed `due_on` and `status: ok|due|overdue`, with nothing stored. With no Service yet, the first due date is the creation date plus one interval, and "due" starts `lead_days` before it. ## Acceptance criteria - [ ] Creating and getting a floating Task returns `due_on` = creation + interval - [ ] With the pinned clock: before the lead window → `ok`; inside it → `due`; past `due_on` → `overdue`
bobby added the ready-for-agent label 2026-11-27 16:43:37 -05:00
bobby added a new dependency 2026-11-27 16:43:37 -05:00
bobby added a new dependency 2026-11-27 16:43:38 -05:00
bobby added a new dependency 2026-11-27 16:43:39 -05:00
bobby added a new dependency 2026-11-27 16:43:40 -05:00
bobby added a new dependency 2026-11-27 16:43:42 -05:00
bobby added a new dependency 2026-11-27 16:44:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#102