---
active: true
iteration: 1
max_iterations: 40
completion_promise: "PHASE_2_COMPLETE"
started_at: "2026-01-11T09:43:37Z"
---
# Phase 2: Core
## Context
Read PROMPT.md for full project requirements and context.
This prompt focuses ONLY on Phase 2: Core.
## Phase Objective
Main functionality and core features implementation
## Phase 2 Tasks
- [ ] ConnectWise Manage Integration: Read-only sync from ConnectWise Manage that imports service tickets, project tickets, and projects assigned to user. Projects with zero tickets surface as planning tasks. ConnectWise priority/SLA displayed for reference only; user assigns manual priority
- Acceptance: ConnectWise API integration syncs assigned service tickets as inbox items
- [ ] Intelligent Calendar Scheduling: Automatic scheduling engine that pulls from CalDAV calendars (Nextcloud, Google Calendar, Outlook via Microsoft Graph) and places actionable tasks into available time slots, respecting working hours, context constraints, deadlines, and manual priority. Supports drag-drop manual override and task locking
- Acceptance: Engine reads existing events from CalDAV/Google/Outlook calendars
- [ ] Interactive Calendar Week View: React SPA with interactive week-view calendar displaying scheduled tasks and calendar events. Supports drag-and-drop task rescheduling, manual time adjustments, and real-time updates when scheduling changes occur
- Acceptance: Week view renders all scheduled tasks and synced calendar events
## Working Instructions
1. Read PROMPT.md to understand the full project context
2. Focus ONLY on the tasks listed above for this phase
3. For each task:
- Implement the feature
- Write tests
- Run: npm run build && npm run test && npm run lint
- Update prd.json to set passes: true for completed features
- Append progress to progress.txt
- Commit with conventional commit message
## Constraints
- Always run tests before committing
- Never commit failing code
- Do not implement features from other phases
- Make reasonable decisions - do not ask questions
- Update prd.json when features complete
## Verification
After completing all Phase 2 tasks:
```bash
npm run build && npm run test && npm run lint
```
All commands must pass with zero errors.
## Completion
When ALL Phase 2 tasks are complete and verified:
- All features for this phase pass their acceptance criteria
- prd.json shows passes: true for all Phase 2 features
- Build, test, and lint all pass
Output: PHASE_2_COMPLETE
If blocked and cannot proceed:
Output: ABORT_BLOCKED