warehouse-systems fleet · executive briefing

labor-performance

Shows how long warehouse tasks take versus how long they should take
seven capabilitys3 events out · 1 in37 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

Labor performance scores every finished task against a fair standard, surfacing signals without deciding pay

1

Standards are versioned, so each task is judged by the rule in force when it finished.

2

Scorecards, task-type views and idle analysis turn raw task data into coaching signals.

3

It only surfaces signals; pay, gamification and automated coaching stay out of scope.

The ask

Accept ADR 0035 on handling-unit standards, or reconcile the record, since the feature already ships.

why it exists

Fair labor measurement starts with a clear standard for each task

Measures warehouse labor productivity by defining engineered time standards per task type (e.g. a PICK should take 45s) and scoring every completed task against the standard that was in force when it finished. It is a pure Kafka consumer of fulfillment-execution's TaskCompleted events and turns them into per-associate scorecards, fleet-wide task-type performance views…

Today

Fulfillment execution reports each finished task; this context scores it against the time standard in force when it finished.

The catch

Efficiency goes blank when no standard is set, handling-unit scoring waits on upstream data, and five deployables are a lot to run.

what it does

Six capabilities turn finished tasks into labor insight

Versioned time standards

Set how long each task type should take, travel time included, and keep every revision.

Handling-unit standards

Optional standards per each, case or pallet; the most specific one wins.

Frozen task scoring

Each finished task is scored against the standard active when it was done.

Associate scorecards

Each associate gets trends and a coaching flag, never an automated decision.

Task-type performance

See how each task type performs, including measured average time without standards.

Idle and utilization

Idle gaps between tasks roll up into utilization per person and per task type.

who it talks to

One context feeds it, one context builds on what it publishes

LISTENS TO · 1 EVENT TYPESIS HEARD BY · 1 CONTEXTSfulfillment-execution1workforce-management1laborperformancebadge = event types on that edge · derived from the CloudEvents types each repo declares
the shared language

Standards, scored tasks and idle gaps are the whole vocabulary

THE LANGUAGEOF THE DOMAINLaborStandardTaskPerformanceIdlePeriodAnalytics read model
REST8 operations over 8 paths on :8080
MCPMCP server (cmd/mcp, :8090, Streamable HTTP…
A2AA2A agent (cmd/a2a, :8093, a2a-go v2): 2 read-only skills…
how it is built

Five deployables, two databases, and one writer per database

DRIVERS · INBOUNDOUTBOUND · ADAPTERSREST API :80808 operations over 8 pathsMCP tools :8090MCP server (cmd/mcp, :8090…Kafka consumer · 1 eventstask.TaskCompletedDOMAIN CORELaborStandardTaskPerformanceIdlePeriodAnalytics read modelPostgreSQLPostgres 16 OLTPKafka producer · 3 eventsLaborStandardDefinedLaborStandardRevisedTransactional outboxrelay · DLQ on x-dlq-*commands inevents inevents outstorage / infra
event traffic · CloudEvents 1.0 on Kafka

One completion event becomes three kinds of labor facts

CONSUMED · BY SOURCE · 1PUBLISHED · BY ENTITY · 3fulfillment-execution 12 standard1 performanceTaskCompletedLaborStandardDefinedLaborStandardRevisedTaskPerformanceRecorded
how we know it is healthy

Blocking mutation tests and OTel signals guard every release

OpenTelemetry traces and metrics pushed over OTLP/gRPC (30s export) by telemetry.Setup in every binary incl. cmd/a2a; no Prometheus /metrics endpoint, the warehouse-infra Collector derives Prometheus series…

What we watch

  • OTEL_SERVICE_NAME, SERVICE_VERSION and ENVIRONMENT resource attributes on every binary
  • Per-binary /healthz admin listeners for projector (:8091) and MCP (:8090)
  • Custom instruments: standards.defined, mcp.tool.invocations/denials (ADR 0033), outbox.lag_seconds; otelchi http.server.request.duration

What stops a bad change

  • make check-all: fmt/vet/lint/test -race + 90% coverage (domain+application+analytics) + arch-test + bdd
  • gremlins mutation-fast blocking in CI on ./internal/domain/performance (efficacy and mutant-coverage 99/99), exhaustive ./internal/domain weekly
by the numbers

37 decisions and 20 BDD features sit behind seven migrations

37
Architecture decisions
#8 of 45 in the fleet
7
DB migrations
#15 of 45 in the fleet
20
BDD feature files
#8 of 45 in the fleet
3
Events published
#26 of 45 in the fleet

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

One-command workflows (make)

checkcheck-allcheck-fasttestcoveragebddarch-testmutation-fastmutationintegration-kafka-testcontainerscontractchart-testapi-lintvuln
competitive position

Against the market leaders, we cover part of the ground

PartialLabor & Workforce vs Manhattan (Active Labor), Blue Yonder, Körber

Owns engineered standards and actual-vs-standard scoring.

Where we match or lead

  • Append-only engineered LaborStandards per task type, scored against the standard active at completion
  • Certification-gated assignment; double-booking impossible by construction
  • Headcount proposal heads = ceil(charge / measured rate) with human commit
  • Per-associate scorecards, coaching flags and idle/utilization derivation

Gaps to close

  • High No ML forecasting; measured rates feed a deterministic planner only
  • Medium Pay-for-performance, gamification and automated coaching are out of scope for v1
  • Low Efficiency is null when no standard is active; consumers must handle null

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

what comes next

Next we harden what exists rather than add pay or gamification

NOW1Accept ADR 0035 orreconcile therecordADR 0035 (handling-unitstandards, team lift) isstill marked Proposed(2026-10-24) althoughREST handlingUnit andmigration 0007 ship it:accept it or reconcilethe recordNEXT2Wait for taskcompletions tocarry a handlingTaskCompleted carries nohandling unit today (ADR0035), so scoring staystask-type-only untilfulfillment-executionadds one; monitor thatunclassified bucketingstays closed (ADR-0023 …NEXT3Ship deferreditems only byexplicit decisionShip deferred v1 itemsonly by explicitdecision:pay-for-performance,gamification, automatedcoaching remain out ofscope (README 'Deferred(v1)')LATER4Switch onanalytics, MCP,A2A and frontendChart defaults keepanalytics, mcp, a2a andfrontend off and everyautoscaling.<x>.enabledfalse (values.yaml);warehouse-infra switchesthem onLATER5Mutate all domainpackages on everypushmutation-fast gates only./internal/domain/performance;standard, idleness andshared are mutated onlyin the weekly exhaustivejob (ci.yml:308,325)
what could go wrong · and what we do about it

Our biggest risk is open endpoints serving per-associate scorecards

No auth on REST, MCP or A2A, by decision

Every REST, MCP and A2A endpoint is unauthenticated by decision (ADR 0012 removed ADR 0011's bearer layer)…

→

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

Efficiency is null when no standard is active

Efficiency is null when no standard is active; downstream consumers must handle null rather than assume a number

→

Consumers must handle null, and measured average time still works without a standard.

Five deployables and two databases to run

Five deployables (labor, labor-projector, labor-reports, mcp, a2a) plus the web remote and two databases raise operational surface for…

→

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

Few custom metrics and no consumer-lag instrument

No Prometheus /metrics endpoint and only four custom OTel instruments (standards.defined, mcp invocations/denials, outbox lag)…

→

Outbox lag is instrumented; consumer lag is not yet.

the decision we need

Accept ADR 0035 on handling-unit standards, or reconcile the record, since the feature already ships.

WHAT ISFulfillment execution reports eachfinished task; this context scoresit against the time standard inforce when it finished.THE CATCHEfficiency goes blank when nostandard is set, handling-unitscoring waits on upstream data, andfive deployables are a lot to run.WHAT COULD BEScoring by handling unit oncefulfillment-execution reports it,and a signals-only view of laborthat holds up as volume grows.
Why it matters

Labor performance scores every finished task against a fair standard, surfacing signals without deciding pay

appendix · for the engineers in the room

The fine print: how it is put together

StyleHexagonal (ports & adapters) with strict inward-only dependency rule; five deployables (OLTP, analytics projector, reports reader, MCP, A2A) with one writer per database…
Layoutcmd/{labor,labor-projector,labor-reports,mcp,a2a}; internal/{domain/{standard,performance,idleness,shared}, application/{ports,usecases}, analytics/report…
StoragePostgres 16 OLTP (:5435; 7 *.up.sql migrations incl. outbox, idempotency_keys, one-open-standard…
Testinggo test -race with 90% coverage gate on domain+application+analytics; godog BDD (20 *.feature); testcontainers Postgres+Kafka integration; MCP evals and governance golden…
REST8 operations over 8 paths on :8080: /healthz, /readyz, /standards, /standards/{taskType}, /associates/{associateId}/scorecard…
Go 1.26chi/v5segmentio/kafka-goCloudEvents sdk-go v2pgx/v5 + pgxpool + golang-migratePostgres 16OpenTelemetrymodelcontextprotocol/go-sdka2a-go v2arch-go fitness testsgodog BDDgremlins mutation testing