ADR 0013: Carton receiving amendments: no site, case scans count cases, local PackagingView
Status
Proposed (2026-10-24). Amends ADR 0012
where the implementation resolved its open points; everything else in 0012 stands.
Source: .hermes/plans/mastercase-briefs/contracts.md section 8 (R6, R7, R8) of the
warehouse-systems workspace.
Decisions
- No
siteIdon carton events (R6). This service has no site concept: staged stock is unlocated, and inventory-storage derives the site atStowContainerfrom the bin's site.ReceiptCartonReceivedtherefore carries no site, and an internal license plate isLPN-<ulid>, notLPN-<siteId>-<ulid>. The sentence in 0012 that the service needs a site no longer applies. - A
CASE_GTINscan counts cases (R7).qtyon a case-GTIN scan is a number of cases (default 1); the service multiplies by the active CASEunitsPerPackfromPackagingView. AnEACH_GTINscan addsqtyeaches (default 1); anSSCCscan accepts the whole carton manifest. Events and the ledger always carry eaches, andReceiptLineReceivedrecords thecasescount andpack_gtinas optional fields next to its unchangedquantity. PackagingViewis a local projection (R8). It is fed by a dedicated consumer of product-master'sProductPackLevelDeclared/ProductPackLevelRetiredevents (stable group fromPACKAGING_CONSUMER_GROUP, required like the other two groups, with an inbox for idempotency). It is looked up by GTIN and by SKU plus level. No scan or receipt calls product-master synchronously.
Consequences
- The chart renders
PACKAGING_CONSUMER_GROUPand refuses to render withoutconfig.packagingConsumerGroup; warehouse-infra must set it for this service. - Payloads are snake_case, this service's shipped casing (the contract's camelCase names map mechanically).
- 0012's open points on
siteIdand on case-scan quantity are closed by this ADR.