[infrastructure] task_scheduler.py at 2174 lines massively exceeds AGENTS.md ~400 line limit #774
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#774
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
src/task_scheduler.pyis 2174 lines with a singleTaskSchedulerclass containing 40+ methods spanning:Plus ~15 standalone helper functions.
AGENTS.md violation
This is the largest single file in the codebase and contains at least 8 distinct concerns.
Suggested split
scheduler/cache.py— shared TTL cachescheduler/timing.py— schedule computation, timezone resolutionscheduler/executor.py— core task execution loopscheduler/notifications.py— notification managementscheduler/delivery.py— email, MCP, session deliveryscheduler/actions/— individual action handlers (LLM, check-in, research, agent loop)scheduler/defaults.py— default task resolutionscheduler/README.md