PH5.2 — Engine event mode: freeze window and triggers from failure, cancel/urgent job, shift cancel, manual window #34

Open
opened 2026-09-11 09:02:16 +00:00 by bart · 0 comments
Collaborator

Parent

Row PH5.2 in docs/12-implementation-plan.md (branch, owned paths and doc section are defined there).

What to build

When a technician reports a failure, a job is cancelled or marked urgent, a shift is cancelled, or a planner requests one, the system produces a validated event draft for the affected window within the freeze rules of docs/05 — S10, S11.

Acceptance criteria

  • Event-mode engine test: assignments inside the freeze window are untouched, the rest re-solved
  • Each trigger enqueues a solve_event task with the right scope; a draft_ready notification follows
  • Event drafts appear as a new version branched from the active published version
  • Timing target O4 measured on the medium fixture

Blocked by

  • #18 — Planning engine daily mode: opportunities, travel provider, OR-Tools VRP model, result mapping
  • #20 — Plan orchestration: snapshot builder, result writer, solver_run/plan_version lifecycle, publish/supersede
  • #29 — Today API: GET /me/today, start, feedback with on_behalf and late, shift close
## Parent Row **PH5.2** in `docs/12-implementation-plan.md` (branch, owned paths and doc section are defined there). ## What to build When a technician reports a failure, a job is cancelled or marked urgent, a shift is cancelled, or a planner requests one, the system produces a validated event draft for the affected window within the freeze rules of docs/05 — S10, S11. ## Acceptance criteria - [ ] Event-mode engine test: assignments inside the freeze window are untouched, the rest re-solved - [ ] Each trigger enqueues a `solve_event` task with the right scope; a `draft_ready` notification follows - [ ] Event drafts appear as a new version branched from the active published version - [ ] Timing target O4 measured on the medium fixture ## Blocked by - #18 — Planning engine daily mode: opportunities, travel provider, OR-Tools VRP model, result mapping - #20 — Plan orchestration: snapshot builder, result writer, solver_run/plan_version lifecycle, publish/supersede - #29 — Today API: GET /me/today, start, feedback with on_behalf and late, shift close
Sign in to join this conversation.
No labels
ready-for-agent
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
patrick/Polaris#34
No description provided.