Add the mission-tick Payload bin (external cron): sweeps missions whose status is Scheduled/Active and whose scheduled calendar day (classification.startDateTime, server-local) has fully passed and sets them to Completed, emitting a mission:auto-complete event per mission. Draft and terminal statuses are never touched; idempotent. Notifies clients via the game-tick SSE path. Logic lives in src/lib/intelligence/missionLifecycle.ts with an integration test in tests/int/mission-lifecycle.int.spec.ts. |
||
|---|---|---|
| .. | ||
| e2e | ||
| int | ||