warehouse-systems fleet · executive briefing

process-path-management

One place to define how orders flow through the warehouse and when they must ship
seven capabilitys2 events out · 1 in41 recorded decisions

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. · November 2026

the short version · read this if nothing else

Process paths are a live contract, so five consumers change with one event instead of a redeploy

1

It owns what a path is and which capabilities it needs, never who does the work.

2

Every revision travels as an event, so five consumers stay current without a joint redeploy.

3

Its published cycle times let order-management derive delivery promises from real capability.

The ask

Decide whether the destination role should drive routing, and add optimistic concurrency to path and cutoff updates.

why it exists

A static file used to decide how work flows; now a context owns it

Replaces a static YAML file boot-loaded by three services with a real bounded context: it defines, revises and deactivates process paths and per-site Critical Pull Time (CPT) schedules, and propagates every change as Kafka events so revisions never need a coordinated redeploy. As a Generic Subdomain it defines WHAT a path is and WHICH capabilities it requires…

Today

Paths and ship cutoffs once sat in a static file loaded at boot; now this context owns them and broadcasts each change.

The catch

One bad event reaches all five consumers at once, rollback leans on a frozen YAML copy, and the routing role field is still an open question.

what it does

Paths, cutoffs and capability contracts all live in one place

Path lifecycle

Define, revise or deactivate a path with a permanent identity and checked rules.

Path kinds beyond pick/pack

Relocate, dispatch and replenish paths carry moves, transfers and top-ups as floor work.

Path intake

Each path declares which demand sources may route work onto it.

Ship cutoff schedules

Each site sets its Critical Pull Time cutoffs and which active paths can make them.

Capability contract

Publishes cycle time and eligibility so order-management can promise delivery.

Catalogue growth report

A read-only report shows paths defined, revised and deactivated per day.

who it talks to

It starts the flow: seven build on what it publishes

LISTENS TO · 0 EVENT TYPESIS HEARD BY · 7 CONTEXTSNo upstream events: it starts the floworder-management4fulfillment-execution3workforce-management3wes-work-planning2dock-scheduling1network-fulfillment1outbound-shipping1process-pathmanagementbadge = event types on that edge · derived from the CloudEvents types each repo declares
the shared language

Two ideas carry the language: a process path and a site's cutoffs

THE LANGUAGEOF THE DOMAINProcessPathCPTSchedule aggregate…InvariantsUse cases
REST9 operations over 5 paths on :8080
MCPMCP server (cmd/mcp, :8090, Streamable HTTP, stateless…
A2AA2A agent (cmd/a2a, :8093, JSON-RPC at / and /a2a): 2…
how it is built

A fitness test guarantees it never calls a sibling context

DRIVERS · INBOUNDOUTBOUND · ADAPTERSREST API :80809 operations over 5 pathsMCP tools :8090MCP server (cmd/mcp, :8090…Kafka consumer · 1 eventscontextsDOMAIN COREProcessPathCPTSchedule aggregate…InvariantsUse casesPostgreSQLPostgres 16 via pgxpool…Kafka producer · 2 eventseventsanalytics: the same 4 as…Transactional outboxrelay · DLQ on x-dlq-*commands inevents inevents outstorage / infra
event traffic · CloudEvents 1.0 on Kafka

Eight event types go out and none come in from other contexts

CONSUMED · BY SOURCE · 0PUBLISHED · BY ENTITY · 22 process-path-managementnoneProcessPathCreatedProcessPathUpdatedProcessPathDeactivatedCPTScheduleChangedwarehouse.process-path-mana…Consumes nothing: it is a source
how we know it is healthy

Traces on every binary and a 99/99 mutation gate catch problems early

OpenTelemetry traces and metrics pushed over OTLP/gRPC (otel-collector in cluster) via telemetry.Setup in all five binaries…

What we watch

  • Every event on both topics is a CloudEvents 1.0 structured-mode envelope with content-type header and dataschema (ADR 0016)
  • Business metrics process_path_management.paths.defined (outcome=accepted|rejected) and process_path_management.outbox.lag_seconds gauge (only with…
  • No-op revisions/events suppressed so consumers never diff identical payloads

What stops a bad change

  • make check / check-all: fmt-check + vet + build + lint + test -race + coverage 90% + arch-test + bdd
  • CI: lint, guide-lint, complexity, file-length, test, bdd, contract, evals-tests, integration, mutation-fast (blocking…
  • lefthook pre-commit (fmt/vet/lint) and pre-push (make check)
by the numbers

Forty-one recorded decisions and 21 BDD features keep the design honest

41
Architecture decisions
#7 of 45 in the fleet
9
DB migrations
#10 of 45 in the fleet
21
BDD feature files
#5 of 45 in the fleet
2
Events published
#30 of 45 in the fleet

Ranked against all 45 briefed repositories (dot = one repository, highest on the left).

One-command workflows (make)

checkcheck-allcheck-fastbddcontractintegrationmutation-fastmutationapi-lintarch-testcoveragecatalogue-testvuln
competitive position

Against the market leaders, we cover part of the ground

PartialExecution (WES) & Automation vs Manhattan (Order Streaming), Blue Yonder (embedded WES), SSI Schäfer, Geek+, Locus

Owns the process-path catalogue and CPT schedule (published language).

Where we match or lead

  • Waveless CPT-ordered release bounded by per-pool WIP limit (architecturally aligned with Manhattan/Blue…
  • Pull-based dispatch: station claims best-fit task under a time-boxed lease
  • Flow balancing as a domain service from live backlog telemetry
  • Operator-configurable process-path catalogue and CPT schedule as published language

Gaps to close

  • Medium Published fields (destination_location_role, eligibility) decoded by few or no consumers
  • Medium A bad ProcessPath event propagates to four services at once; rollback relies on retained YAML
  • Medium Cycle times are declared, not predicted

Leader capabilities are vendor-published; gaps reflect repo docs reviewed in November 2026.

what comes next

Next, we settle the open contract questions before more lean on it

NOW1Decide ifdestination roledrives routing orDecide whetherdestination_location_role(Drop|WorkCenter|Shipping,ADR 0009) should driverouting or staydeclarative:bounded-context-canvas.md:245lists it as an open …NEXT2Addexpected-versionchecks to PUTOpen question: PUTendpoints accept noexpected version(If-Match), sooptimistic concurrencycovers only theload-to-save window(bounded-context-canvas.md:247-249)NEXT3Model the reservedmulti-hop meaningof DirectDirect's reservedmulti-hop meaning is notmodelled yet(bounded-context-canvas.md:252)LATER4Keep the YAMLrollback copyuntil theKeep the frozensortable-fc.yaml inwarehouse-infra asrollback copy until theKafka-sourced catalogueis trusted enough toretire it(docs/docs/overview/process-path-catalogue.md:27)LATER5Add MCP invocationand denialcountersMCP invocation/denialcounters per call arenot yet implemented(docs/docs/mcp/governance-charter.md:135);chart defaults keep mcp,a2a, frontend off
what could go wrong · and what we do about it

Our biggest risk is one bad event reaching every consumer at once

Unauthenticated endpoints, by fleet decision

Every REST route, MCP tool and A2A skill is unauthenticated by decision (ADR 0005); relies on cluster-internal reachability

→

A decision, not a gap: relies on cluster-internal reachability.

One bad event reaches all five consumers at once

As the single source of the published language, a bad ProcessPath* event propagates to every consumer at once (the canvas counts 5…

→

The frozen YAML catalogue is the rollback copy until the Kafka catalogue is trusted.

Published fields may lack a validated reader

Published-but-unread fields: the canvas still asks whether destination_location_role should drive routing…

→

Settle whether the destination role drives routing, then validate consumer decoding.

No in-memory fallback: missing config stops boot

Postgres and Kafka are the only runtime (ADR 0037): no in-memory fallback, mandatory configuration is a boot error

→

Deliberate: Postgres and Kafka are the only runtime.

the decision we need

Decide whether the destination role should drive routing, and add optimistic concurrency to path and cutoff updates.

WHAT ISPaths and ship cutoffs once sat in astatic file loaded at boot; now thiscontext owns them and broadcastseach change.THE CATCHOne bad event reaches all fiveconsumers at once, rollback leans ona frozen YAML copy, and the routingrole field is still an openWHAT COULD BEOpen contract questions are settled,updates can't silently overwriteeach other, and the YAML rollbackcopy can retire.
Why it matters

Process paths are a live contract, so five consumers change with one event instead of a redeploy

appendix · for the engineers in the room

The fine print: how it is put together

StyleHexagonal (ports & adapters), DDD Generic Subdomain bounded context with zero outbound dependency on any sibling (enforced by fitness test TestNoSiblingContextOutboundCalls)…
Layoutcmd/pathmgmt (REST :8080 + in-process outbox relay), cmd/mcp (:8090), cmd/a2a (:8093), cmd/pathmgmt-projector (analytics writer, admin :8091), cmd/pathmgmt-reports (:8092)…
StoragePostgres 16 via pgxpool, golang-migrate run at startup (9 OLTP *.up.sql migrations + analytics/)…
Testinggodog/Gherkin BDD (21 *.feature) over the real REST API; 90% coverage gate on domain+application+analytics…
REST9 operations over 5 paths on :8080: /healthz, /readyz, /process-paths, /process-paths/{pathId}, /sites/{siteId}/cpt-schedule…
Gochipgxpool / Postgres 16golang-migratesegmentio/kafka-goCloudEvents 1.0 structured modeOpenTelemetrymodelcontextprotocol/go-sdkA2A agentgodog BDDarch-go fitness testsgremlins mutation testing