54. Case and each pick scans; BREAK_CASE task
Status
Proposed (2026-10-24). Additive. Part of the mastercase / GTIN adoption
(.hermes/plans/mastercase-briefs/contracts.md sections 0, 1, 3, 6, 8 of the warehouse-systems
workspace). Reverses the note in ADR-0052
that INVENTORY_STORAGE_BASE_URL is no longer read: it is read again, for the case break only.
Decision
- A local
PackView(migration 0022) is fed by a consumer of product-master'sProductPackLevelDeclared/ProductPackLevelRetiredevents, under its own stable groupPACK_VIEW_CONSUMER_GROUP(it must differ fromPRODUCT_CLASSIFICATION_CONSUMER_GROUP; both readwarehouse.product-master.events). No scan calls product-master. - A PICK task may carry a pick plan (SKU, quantity in eaches, pick unit
EACHorCASE).POST /tasks/{id}/scanstakes{stationId, gtin, count}: the GTIN is validated with the sharedgs1package, resolved in thePackView, and must identify the task's SKU (scan-sku-mismatchotherwise, which is the guard against the each barcode printed on a case of something else) at the task's pick unit (scan-level-mismatch). An EACH scan addscounteaches; a CASE scan addscountxunits_per_packeaches. A rejected scan changes nothing. - Quantities are eaches everywhere:
POST /tasks/{id}/completions,TaskCompletedand the confirm-pick call to inventory-storage are unchanged. - A BREAK_CASE task is released when an each pick finds only a sealed case at the source. Completing it
with
POST /tasks/{id}/case-breakscalls inventory-storagePOST /containers/{lpn}/case-breakswithIdempotency-Key: break-case:<taskId>behind a retry and circuit breaker, and only on success completes the task and publishesTaskCompleted. An unreachable inventory-storage leaves the task claimed (503); a retry does not break twice.POST /tasks/{id}/completionson a BREAK_CASE task is refused (case-break-completion-required).
Consequences
- The chart renders
PACK_VIEW_CONSUMER_GROUPandINVENTORY_STORAGE_BASE_URL; warehouse-infra must set both. - The pick plan and case break travel on
WorkReleasedas optional fields (pick,case_break).