feat(schedule_type): minute-precision windows + variable maintenance length #21
Reference in New Issue
Block a user
Delete Branch "feat/schedule-type-minutes"
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?
Lifts the two hard restrictions added in PR #18:
int hour(0-23) →int minutes-since-UTC-midnight(0-1439). 半点 boundaries now exact[1, 180]minutes ((maint_to - maint_from) mod 1440)Schema migration
_migrate_schema()detects legacy 'hours' rows (MAX of the 6 window columns ≤ 23) and multiplies each column by 60 to convert. Idempotent — guard never fires twice.Touched surfaces (high-level)
compute_maintenance_duration()helper + derivedmaintenance_duration_minutesin responseminute_in_windowmax 59→179,estimated_durationmax 60→180_validate_fits_windowtakes the parent's maintenance durationscheduled_atderives from(maint_from_min + tpl.minute_in_window)with hour/minute split🤖 Generated with Claude Code