feat(FN-938): add feature triage, mission pause/stop/resume, and scheduler blocked check

- Add mission store methods for pausing, stopping, and resuming missions with proper state transitions
- Implement feature triage flow that evaluates and classifies mission features
- Add scheduler blocked-task check to prevent scheduling when dependencies are unmet
- Create dashboard mission management UI with pause/stop/resume controls
- Add mission API routes for triage, pause, stop, and resume operations
- Add e2e tests for mission routes and unit tests for mission store and scheduler
This commit is contained in:
gsxdsm
2026-04-04 18:03:03 -07:00
parent a67bd31f3c
commit 950c78c797
10 changed files with 1080 additions and 20 deletions

View File

@@ -0,0 +1,11 @@
---
"@gsxdsm/fusion": minor
---
Add feature triage and mission pause/stop controls for mission execution.
- **Feature Triage**: When a slice is activated, features can now be triaged into actual kb tasks via the API (`POST /api/missions/features/:featureId/triage`) and UI ("Triage" button on features, "Triage All" on slices).
- **Mission Pause**: Pause a mission (sets status to "blocked") to stop scheduling new tasks while allowing in-flight tasks to complete (`POST /api/missions/:missionId/pause`).
- **Mission Resume**: Resume a paused mission back to active status (`POST /api/missions/:missionId/resume`).
- **Mission Stop**: Stop a mission completely — sets status to "blocked" and pauses all linked tasks (`POST /api/missions/:missionId/stop`).
- **Scheduler Integration**: The scheduler now checks mission status and skips tasks belonging to blocked missions.