Lay 2 to 5 capacity plan scenarios of one site and window side by side
GET/capacity-plans/comparisons
docs/adr/0024 decision 4. ids names 2 to 5 distinct stored plans, all of one site_id and one window (same window_start and window_end); their paths, locations and statuses may differ. Per plan, in the order of ids, it returns the scenario, status, assigned demand and its source, path capacity, capacity over the window, shortage, bottleneck step and constraint and the ADR 0022 labour requirement exactly as stored when the plan was created: nothing is recomputed, so a comparison is reproducible. Read-only; REST only (no MCP tool).
Request
Responses
- 200
- 400
- 404
- 422
- 500
The plans side by side.
A query parameter other than ids (unknown-query-parameter).
One of the ids names no CapacityPlan (capacity-plan-not-found).
ids does not name 2 to 5 distinct, non-blank plans (invalid-comparison-ids), or the plans are not all of one site (comparison-site-mismatch) or of one window (comparison-window-mismatch).
An unexpected failure (a store or outbox error). Answered as problem+json (internal-error). A 5xx answer is never stored under an Idempotency-Key and rolls back the aggregate change and its outbox rows, so the retry re-executes.