warehouse-systems fleet · executive briefing

fulfillment-execution

Makes sure every pick and pack job gets done, and no job ever gets lost
eight capabilitys2 events out · 4 in65 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

Fulfillment execution turns released work into finished picks and packs, and no job can quietly vanish

1

Stations pull work, so the job closest to its truck cutoff goes to someone certified to do it.

2

Time-boxed claims hand stalled jobs back to the pool instead of stranding them.

3

Traces follow a job from release to completion across Kafka, and agents can read the queue.

The ask

Accept or revise the eight Proposed ADRs, then turn on pick batching, which stays off by default.

why it exists

Picking drives throughput, so no unit of work may get lost

Turns released work into completed physical operations and makes it impossible to lose a unit of work. Upstream wes-work-planning decides a unit of work should happen now (WorkReleased event); this service turns it into a Task, lets a station pull it via claimNext with capability matching and earliest-CPT selection, and closes the loop by publishing TaskCompleted back…

Today

Work planning releases jobs; stations pull the most urgent one they are certified for, and unconfirmed claims flow back to the pool.

The catch

Every endpoint is open by design, the equipment (WCS) edge is not built, and eight ADRs shaping live code are still Proposed.

what it does

Six capabilities carry a job from release to a labeled package

Pull-based dispatch

Stations ask for work and get the most urgent job they are certified to do.

Leased claims

A claim expires back to the pool if nobody confirms it, so work is never stranded.

Pick, pack, rebin, SLAM

Scans, package seals, weigh-checks that label or divert, and a cutoff-miss sweep.

Work batching

Forms one station's pick walk behind a switch that is off by default.

Handling flags

Fragile, hazmat and gift-wrap needs travel with the job all the way to the package.

Process-path catalogue

A catalogue decides each job's type and skills; an unknown path is refused.

who it talks to

Three contexts feed it, seven build on what it publishes

LISTENS TO · 7 EVENT TYPESIS HEARD BY · 7 CONTEXTSprocess-path-management3product-master3task-interleaving1exception-management3task-interleaving3order-management2outbound-shipping2labor-performance1returns-processing1warehouse-planning1fulfillmentexecutionbadge = event types on that edge · derived from the CloudEvents types each repo declares
the shared language

Tasks, stations, packages and leases are the whole vocabulary

THE LANGUAGEOF THE DOMAINTaskStationPackageWorkBatchLease conceptProcess-path catalogue
REST25 operations over 24 paths on :8080
MCPMCP server (cmd/mcp, :8090, Streamable HTTP…
A2AA2A agent (cmd/a2a, :8093, JSON-RPC at / and /a2a…
how it is built

A strict hexagon keeps dispatch rules free of plumbing

DRIVERS · INBOUNDOUTBOUND · ADAPTERSREST API :808025 operations over 24 pathsMCP tools :8090MCP server (cmd/mcp, :8090…Kafka consumer · 4 eventswork-planning.eventseventsDOMAIN CORETaskStationPackageWorkBatchPostgreSQLPostgres OLTP via pgxpool…Kafka producer · 2 eventsfulfillment.eventsfulfillment.analyticsTransactional outboxrelay · DLQ on x-dlq-*commands inevents inevents outstorage / infra
event traffic · CloudEvents 1.0 on Kafka

Eight kinds of fact come in, and 26 go out as events and analytics

CONSUMED · BY SOURCE · 8PUBLISHED · BY ENTITY · 2process-path-management 3product-master 3task-interleaving 1unattributed 12 fulfillmentWorkReleasedProcessPathCreatedProcessPathUpdatedProcessPathDeactivatedProductClassifiedProductPackLevelDeclaredProductPackLevelRetiredTaskAvailableTaskClaimedTaskCompletedwarehouse.fulfillment.analy…
how we know it is healthy

Traces follow each job from release to completion across Kafka

OpenTelemetry traces and metrics over OTLP/gRPC to a Collector, wired in all five long-running binaries via observability.Setup (cmd/sweep is short-lived); no /metrics endpoint…

What we watch

  • Server spans named by chi route pattern; otelpgx child spans with parameterized SQL; kafka.publish/kafka.consume spans at the broker boundary
  • W3C traceparent and baggage cross HTTP and Kafka headers (internal/observability/kafkacarrier.go) so WorkReleased and the Task it creates share one…

What stops a bad change

  • make check / check-fast / check-all / mutation-fast / vuln mirrors of CI; lefthook pre-commit and pre-push hooks
  • CI: lint, complexity and file-length gates, 90% domain+application coverage, bdd, contract, evals-tests, integration…
by the numbers

65 recorded decisions and 31 BDD features back the design

65
Architecture decisions
#1 of 45 in the fleet
28
DB migrations
#1 of 45 in the fleet
31
BDD feature files
#1 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)

check-fastcheckcheck-allcoverageintegrationbddcontractarch-testmutation-fastmutationvuln
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 pull-based dispatch, leases and Pack/SLAM execution.

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

  • High WCS / equipment edge not wired (ADR-0015 seam only)
  • High No robotics or AMR orchestration; stations are human-first
  • Low Process-path catalogue is a fatal boot dependency

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

what comes next

Next: accept decisions, roll out batching, build the equipment edge

NOW1Accept the eightProposed ADRsEight ADRs are stillProposed indocs/docs/adr/index.md:0054-0056 (case and eachpick scans, BREAK_CASEtask, ship in owncontainer) and 0061-0065(PackageManifested shipcorrelation, pick…NEXT2Roll out pickbatching beyondits default offPick batching is behindPICK_BATCH_MODE(off|shadow|on) withfleet default off(ADR-0063); turning iton is the open rolloutstepNEXT3Raise the mutationgate to the 99/99standardRaise the gremlinsthresholds from efficacy90 / mutant-coverage 90to the 99/99 fleetstandard(.gremlins.yaml:41-42)LATER4Build the WCSequipment edgeWCS/equipment edge isstrategically downstreambut not built(context-map.md:12;emptyEquipmentCommandPortseam, ADR-0015)LATER5Add anidempotency-keycleanup jobIdempotency-key cleanuphas no TTL job(ADR-0028:243,explicitly deferred);chart defaults keep mcp,a2a, analytics andfrontend off
what could go wrong · and what we do about it

Eight Proposed decisions already shape live code

No auth, even on complete_task, by decision

Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet identity layer removed by ADR-0022)…

→

No mitigation on the roadmap yet: this one needs an owner.

A bad process-path catalogue stops startup

Process-path catalogue is a boot dependency (file or Kafka source, ADR-0017/0044): a missing or invalid source prevents or delays…

→

Failing fast is deliberate: an unknown path is a hard error.

A stopped consumer or relay ends the process

A Kafka consumer or the outbox relay that returns ends the process (ADR-0057)…

→

Duplicate deliveries are made harmless by the processed_events dedup table.

Eight Proposed ADRs already shape live code

Eight Proposed ADRs (0054-0056, 0061-0065) already shape code: migrations up to 0028…

→

Accept or revise the eight ADRs; migrations and tables are already on develop.

the decision we need

Accept or revise the eight Proposed ADRs, then turn on pick batching, which stays off by default.

WHAT ISWork planning releases jobs;stations pull the most urgent onethey are certified for, andunconfirmed claims flow back to theTHE CATCHEvery endpoint is open by design,the equipment (WCS) edge is notbuilt, and eight ADRs shaping livecode are still Proposed.WHAT COULD BEPick batching live, the decisionsbehind the code accepted, and theequipment edge built through theseam already reserved for it.
Why it matters

Fulfillment execution turns released work into finished picks and packs, and no job can quietly vanish

appendix · for the engineers in the room

The fine print: how it is put together

StyleHexagonal / ports and adapters with strict dependency rule (domain depends on nothing; application on domain; adapters on application/domain), enforced by arch-go fitness tests…
Layoutcmd/{execution,fulfillment-projector,fulfillment-reports,mcp,a2a,sweep}; internal/{domain (task,station,package,pathcatalog,shared,consolidation,workbatch), application (ports,usecases)…
StoragePostgres OLTP via pgxpool with golang-migrate (28 OLTP *.up.sql migrations) + processed_events idempotency table + transactional outbox feeding both…
TestingUnit tests with named failing-path invariant tests (at-most-once claim, capability mismatch, lease expiry frees task, SLAM weight diversion, package segregation)…
REST25 operations over 24 paths on :8080: /tasks, /stations, /stations/{stationId}/task-claims, /stations/{stationId}/work-batches…
Gochi routerpgx/v5 + pgxpoolgolang-migratesegmentio/kafka-goCloudEvents sdk-go v2OpenTelemetrymodelcontextprotocol/go-sdka2a-go/v2godog BDDarch-go fitness testsgremlins mutation testing