Skip to main content

Subdomain classification

task-interleaving is a Supporting subdomain in the WES tier (CloudEvents subdomain segment wes). The verdict is the one in the fleet table of the warehouse-docs aggregator (docs/strategic-design/subdomain-classification.md on main, section Scaffolded 2026-10-17, not yet running), and it matches the strategic classification of ADR 0001. Neighbour rows below are copied from that table, not recalled. That section still describes the context as domain and contracts only; the verdict does not depend on it, and the service has since merged (see Introduction).

Why Supporting​

  • Not Generic: detour limits and eligible task types differ per site, so the policy cannot be bought off the shelf unchanged. The per-site InterleavingPolicy holds exactly those differences.
  • Not Core: the detour rule is a replaceable policy object. The travel model rectilinear-v1 sits behind the travel.Model port and a later model (aisle routing) replaces it under its own ADR. The output is advisory: fulfillment-execution keeps pull-based claimNext and uses a hint only as a tie-break inside one priority band, fail-open. The competitive core stays the WES conductor (wes-work-planning) and the task lifecycle (fulfillment-execution).
  • Business model: cost reduction (less travel between tasks). Evolution: custom-built, genesis.

The model complexity is low to moderate (two small aggregates, one pure ranking function and one port), see the Core domain chart. What would move it: a routing model that measurably beats rectilinear distance and that the WES relies on would push it towards Core; replacing the recommender with a bought engine behind an anti-corruption layer would push it to Generic.

Neighbours (from the fleet table)​

Bounded contextClassificationCloudEvents subdomainRelation to this context
fulfillment-executionCorewesupstream (task events) and downstream (reads the hint)
facility-layoutGenericwmsupstream (zones, slots, geometry)
wes-work-planningCorewesno edge
process-path-managementGenericwesno edge
order-managementGeneric/Supportingwesno edge
inventory-storageCorewmsno edge
labor-performanceSupportingwesno edge
warehouse-ops-agentSupporting (publishes no events)weslater: REST reader
pick-face-replenishmentSupportingwmsno edge; its REPLENISH tasks arrive as ordinary tasks
task-interleavingSupportingwesthis context

The full fleet table (fifteen contexts built before 2026-10-17 plus the two created that day) is in the aggregator; this page lists only the contexts this one touches or explicitly excludes in ADR 0001.

Tier is not classification​

wes and wms group contexts by tier, not by Core, Supporting or Generic. The fleet's own example: facility-layout is wms and Generic, wes-work-planning is wes and Core. For this context the two axes read: tier WES, class Supporting. The tier decides the type prefix com.warehouse.wes.task-interleaving.; the class decides where investment goes.