Skip to main content

Subdomain classification

Classification: Core​

Fulfillment Execution is a Core subdomain of the warehouse-systems platform, sitting in the WES tier.

The justification, from the reference model​

DDD splits a domain into Core, Supporting and Generic subdomains by competitive differentiation — not by size, difficulty, or how interesting the code is. The platform's reference documents give two independent lines of reasoning that land on Core for this context.

Line 1 — the WES tier is Core when operational efficiency is your differentiator​

warehouse-systems-ddd.md classifies the WES tier conditionally:

WES — Core Domain if operational efficiency is your differentiator (you build/tune your own DC); Supporting/Generic if you consume a vendor WES and integrate at arm's length.

This platform builds and tunes its own execution layer — there is no vendor WES behind an anti-corruption layer here. The same document is explicit about what follows from that: "This is genuinely the Core Domain if your differentiator is operational efficiency; treat it as Supporting/Generic if you're consuming a vendor WES." Choosing Core is also what justifies the investment in a bespoke dispatch policy at all — under a Supporting classification the correct move would have been to integrate a product, not to design claimNext.

Line 2 — Picking is classified Core outright​

fulfillment-reference-ddd.md's subdomain table classifies the pieces:

SubdomainTypeWhy
Fulfillment Orchestration & OptimizationCoreContinuous re-planning to the fastest/cheapest path is the differentiator.
Picking (task generation, pick-to-light, robot-to-picker)Core"Directly drives throughput and accuracy at scale."
Packing & CartonizationSupporting"Optimization matters but is a well-understood problem."
Shipping & Manifest (SLAM, sortation)Supporting"Critical path, mostly standardized MHE + carrier integration."
Labor & Workforce ManagementSupportingImportant, industry-common.
Equipment / Automation Control (WCS)Supporting / GenericDevice-agnostic control is a largely solved integration category.

This context spans Picking (Core) plus the execution slices of Packing and Shipping/SLAM (both Supporting). It is classified by its most valuable part — the task lifecycle and dispatch that drive throughput — which is Core.

The Supporting pieces it touches are held deliberately thin, which is exactly what the classification predicts should happen:

  • Cartonization is absent. Box-size selection is called out in the reference as a Generic Subdomain to be extracted rather than duplicated across WMS and WES. This service does not implement it.
  • SLAM is reduced to its invariant. No carrier integration, no manifest generation, no chute assignment — only the weigh-check, because that is the part with a rule worth enforcing here.

What being Core buys, and what it obliges​

Buys: the licence to build rather than buy, and to invest in the dispatch model itself. claimNext with lease semantics, at-most-once claiming, and CPT-ordered candidate selection are all bespoke design in an area where a Supporting classification would have said "integrate a product."

Obliges: the quality bar this repo actually holds itself to —

DisciplineWhere
Every invariant has a failing-path unit testinternal/domain/**/*_test.go
The dependency rule is executableinternal/architecture/ (arch-go: 9 dependency subtests, plus fleet fitness tests), arch-test CI job
Business rules are readable by non-developersfeatures/*.feature (10 files), run by godog
Both published contracts are linted in CIapis/openapi.yaml + apis/asyncapi.yaml via Spectral
Mutation testing on the domaingremlins: blocking mutation-fast subset (./internal/domain/task) on every push and PR, full mutation run on schedule/dispatch

The same classification is plotted on the ddd-crew Core Domain Chart.

Where the neighbours sit​

ContextTierClassificationRelationship to this context
inventory-storageWMSCore — chaotic stow + bin-accurate tracking is a real operational innovationNo call from this side; it can consume this context's TaskCompleted (order_ref) to confirm picks (off by default there). Stock reaches this context indirectly via Work Planning
product-masterWMSSupporting (per product-master's own ADR 0001) — SKU product master dataUpstream: its ProductClassified feeds this context's local classification copy (ADR-0039)
wes-work-planningWESCore — "the conductor," continuous waveless releaseUpstream supplier of released work; downstream consumer of completions
workforce-management—Supporting — "allocates workforce to workload; important, industry-common"No technical edge; a deliberate boundary at the process path
fulfillment-executionWESCore—
facility-layout—Generic — "same bucket as Cartonization and WCS… well-understood, not a competitive differentiator"No edge today
WCS / equipmentWCSGeneric — "Buy, don't build — device orchestration is rarely a competitive advantage"Strategically downstream; not wired

The full relationship analysis, with the context-mapping patterns, is in Context relationships, and the diagram is on the Context map.