Skip to main content

Process Path Management

Study project

This documentation site is an educational Domain-Driven Design exercise. It follows real industry-standard patterns and terminology, but it is not a production system and is not affiliated with, endorsed by, or representative of any real-world company.

Process Path Management is the fleet's operator-configurable process-path catalogue. It is one of the fifteen domain contexts of the warehouse-systems fleet, a Go service in the WES tier: every CloudEvents type it publishes starts with com.warehouse.wes.process-path-management. (internal/adapters/kafka/cloudevents/cloudevents.go, Subdomain = "wes").

Subdomain classGeneric (see Subdomain classification)
Tierwes (execution tier)
Role in the fleetOpen Host Service / Published Language source of warehouse.process-path-management.events
Outbound calls to siblingsNone. No REST, no MCP, no foreign topic (enforced by TestNoSiblingContextOutboundCalls)
Binariespathmgmt, mcp, pathmgmt-projector, pathmgmt-reports
AuthNone. REST and MCP are unauthenticated fleet-wide (ADR 0005)

Why this context exists​

Before this service existed, the process-path definition lived in a static YAML file, warehouse-infra/config/process-paths/sortable-fc.yaml, loaded once at boot by fulfillment-execution, wes-work-planning and workforce-management. That definition is a path's canonical identity, the matchPrefix rule consumers use to resolve a caller-supplied id to a path family, and the capabilities a station or associate must hold to work it. A boot-time file cannot change without redeploying every consumer, has no audit trail and has no owner. This service replaces it with a bounded context: two aggregates, a REST API to define, revise and deactivate them, and a Kafka-published integration event so a change reaches consumers without a synchronous call into any of them.

See ADR 0001 for the decision, including why propagation is Kafka-driven rather than a synchronous HTTP read-through.

What it owns​

CapabilityWhat that means here
ProcessPathThe aggregate root: PathId (identity), MatchPrefix, Direct, RequiredCapabilities, optional DestinationLocationRole (ADR 0009), CycleTimeP95 and Eligibility (ADR 0010), Status (ACTIVE/DEACTIVATED).
Define / Revise / DeactivateThe lifecycle of a path definition. Each change publishes its own domain event; a no-op revision publishes nothing.
List / GetReads for the operator SPA's default view (active only) and audit view (?all=true).
CPTScheduleA second aggregate, one per site: its IANA timezone and recurring Critical Pull Time cutoffs, each naming the Active paths that can make it. Defined or wholesale-revised by PUT /sites/{siteId}/cpt-schedule; publishes CPTScheduleChanged (ADR 0010).
ProcessFlowA third aggregate, identified by flow_id: the ordered stages a workload passes through (for example PICK, REBIN, PACK, SLAM), each a {path_id, process_type} that names an Active path of this catalogue and one of eight process types, plus name, status (ACTIVE/RETIRED) and a version. Defined or wholesale-revised by PUT /process-flows/{flowId}, retired by DELETE; publishes full-state ProcessFlowDefined, ProcessFlowRevised and ProcessFlowRetired, and refuses to deactivate a path an ACTIVE flow uses (ADR 0042).
Catalogue growth reportAn analytical read model (paths defined, revised and deactivated per UTC day) built by pathmgmt-projector from this service's own analytics topic and served by pathmgmt-reports (ADR 0007).

Four binaries ship from cmd/: pathmgmt (REST API on :8080, plus the in-process outbox relay and housekeeping sweeper), mcp (read-only MCP server on :8090, ADR 0006), pathmgmt-projector (analytics writer, admin port :8091) and pathmgmt-reports (read-only report API on :8092). The Architecture page shows how they fit together.

What it deliberately does not own​

  • Dispatch, routing or task assignment. This service defines WHAT a path is and WHICH capabilities it requires. It never claims, assigns or completes work; that is fulfillment-execution's job.
  • Any call to another context. Every change propagates through Kafka (warehouse.process-path-management.events). There is no REST or MCP client to a sibling in this codebase, and an architecture fitness test keeps it that way. Siblings may read this service (the console over REST; the ops agent has an MCP client wired but no use case calls it). It never reads them.
  • Other contexts' vocabularies. Capability names, product attributes, site ids and destination location roles are stored as declared values and never looked up live.

How it fits the fleet​

Source: internal/adapters/outbound/kafka/publisher.go (topic and payloads), internal/adapters/kafka/cloudevents/types.go (event types); consumer list from Context Map; classifications copied from warehouse-docs docs/strategic-design/subdomain-classification.md. Omits: the MCP, console and analytics edges (see Integration).

All five consumers are live. The three WES-tier services replaced their static YAML catalogue with this topic on 2026-09-06 (ADR 0002); order-management and network-fulfillment read path capability and CPT schedules from it (ADR 0010).

Where to go next​

If you want to...Read
See the hexagonal layout, binaries, ports and data storesArchitecture
Run it on your laptop and make the first callsQuickstart
Configure a binaryConfiguration
Deploy, migrate, replay or scale itRunbook
Find a metric, span or log fieldObservability
Diagnose a failureTroubleshooting
Run or extend the testsTesting
Know who consumes whatIntegration and Context Map
Read every use caseUse cases
Use the MCP serverMCP tools and the Governance charter
Learn the vocabulary and invariantsUbiquitous language, Aggregates and invariants, the DDD artifact pack
Read the REST contractAPI Reference (generated from apis/openapi.yaml)
Understand a past decisionADRs
Disclaimer

This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic.