[loop-generated] [refactor] Split dispatcher.py — 917 lines, largest remaining module #1450

Closed
opened 2026-03-24 18:56:27 +00:00 by Timmy · 0 comments
Owner

Problem

src/timmy/dispatcher.py is 917 lines — now the largest module in the codebase after cascade.py and world.py splits.

Proposed Split

  1. Extract task routing logic into src/timmy/dispatch/routing.py
  2. Extract queue management into src/timmy/dispatch/queue.py
  3. Extract agent assignment into src/timmy/dispatch/assignment.py
  4. Keep dispatcher.py as thin orchestrator

Acceptance Criteria

  • No single module > 350 lines
  • All existing tests pass
  • No functional changes
  • Clean backward-compatible imports
## Problem `src/timmy/dispatcher.py` is 917 lines — now the largest module in the codebase after cascade.py and world.py splits. ## Proposed Split 1. Extract task routing logic into `src/timmy/dispatch/routing.py` 2. Extract queue management into `src/timmy/dispatch/queue.py` 3. Extract agent assignment into `src/timmy/dispatch/assignment.py` 4. Keep `dispatcher.py` as thin orchestrator ## Acceptance Criteria - No single module > 350 lines - All existing tests pass - No functional changes - Clean backward-compatible imports
Timmy closed this issue 2026-03-24 21:16:24 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1450