Scheduling Deep Dive

This is a code-aligned walkthrough of the today pipeline.

Core Phases

  1. Select the best day template based on status alignment.
  2. Expand the template tree, apply variants, and resolve start/end constraints.
  3. Compute importance (subtractive model with weighted factors).
  4. Re-queue missed items for today reschedule with an importance boost.
  5. Inject status-triggered items.
  6. Run capacity check and conflict resolution.
  7. Fill work windows with flexible items.
  8. Insert buffers, then save the schedule.

Conflict Resolution Loop

Work Windows vs. Time Blocks

Key Files