Warehouse execution (WES) · Supporting domain · EventStorming board
labor-performance
Scores every finished warehouse task against the engineered time allowed for it, and reports how each associate and task type is performing.
- events published
- 3
- commands
- 2
- policies
- 4
- read models
- 3
- hot spots
- 4
The story in 3 key events
The pivotal events: the few that matter most, in the order they happen.
- Pivotal eventLabor
Standard Defined - Pivotal eventTask
Performance Recorded - Pivotal eventLabor
Standard Revised
Listens to (1): contexts whose events this one reacts to
Tells (2): contexts that react to its events
The board, row by row
5 rows, in the order the business story happens: the main path first, then how this context reacts to the others, then the clock. Rows are small stories; read each one left to right.
- Event
- Command
- Actor
- Aggregate
- Policy
- Read model
- External system
- Hot spot
- Opportunity
-
Set the time allowed for a task type
An industrial engineer sets how many seconds a task type (pick, pack, slam) should take. A task type with no open standard gets its first one.
ActorIndustrial engineerRead modelCurrent standardCommandDefineStandard POST /standardsAggregateLaborStandard EventLaborStandard Defined Source: application/usecases/define_standard.go · domain/standard/standard.go · apis/openapi.yaml
-
Set a time for a handling unit, with a team lift
The engineer can set a separate time for handling each, case or pallet units. A case standard may also say that a heavy case is a team lift with its own time.
ActorIndustrial engineerCommandDefineStandard POST /standardsAggregateLaborStandard EventLaborStandard Defined Source: application/usecases/define_standard.go · domain/standard/standard.go · adr/0035-handling-unit-standards-and-team-lift.md
-
Tighten or loosen a standard
When a standard is already open, the new one closes it at the same instant. History is never overwritten, so old tasks keep the yardstick they were scored with.
ActorIndustrial engineerPolicyWhenever a standard is already open for the task type and unit, close it as the new one startsRead modelCurrent standardCommandDefineStandard POST /standardsAggregateLaborStandard EventLaborStandard Revised Source: application/usecases/define_standard.go · domain/standard/standard.go · adr/0004-standard-frozen-at-completion-time-not-recomputed.md
-
Score a finished task
When fulfillment-execution reports a task as completed, it is scored against the standard that was in force at that moment, and the associate's idle time since the previous task is worked out.
Systemfulfillment-execution EventTaskCompleted PolicyWhenever a task completes, record its performance exactly onceRead modelStandard in force at completionCommandRecordTask started by the policyPerformance AggregateTaskPerformance EventTaskPerformance Recorded Systemworkforce-management PolicyKeeps a running average task time and idle share per task type, for planningSource: adapters/inbound/kafka/consumer.go · application/usecases/record_task_performance.go · domain/performance/performance.go · domain/idleness/idleness.go
-
Keep the performance report up to date
Each score and each standard change is counted into an hourly report per task type, which supervisors read together with a freshness check. The report has no command of its own.
Event · earlierTaskPerformance Recorded PolicyWhenever a performance or standard event is published, count it once into its task type and hourRead model · kept up to dateLabor performance reportSource: adapters/inbound/kafka/analytics_consumer.go · adapters/inbound/http/reports_handler.go · adr/0007-analytical-data-product.md
Hot spots and opportunities
Open questions and known gaps, each taken from a decision record or a document in the repository, never invented. Opportunities are improvements the documentation already names.
- Hot spotThe default idle-gap cap of one hour is a judgment call, not a measured shift length. Operators with other shifts must override it.
- Hot spotfulfillment-execution does not yet send the handling unit or case weight, so unit standards and team lifts never apply to live tasks.
Source: docs/adr/0035-handling-unit-standards-and-team-lift.md
- Hot spotTask types this context does not model (for example REBIN) arrive unclassified: they are counted but never scored.
- Hot spotNo access control inside the service: the standards and scorecard routes are open to anyone who can reach it.
Opportunities
- Opportunityfulfillment-execution could add the handling unit and case weight to TaskCompleted, which would switch the unit standards on.
Source: docs/adr/0035-handling-unit-standards-and-team-lift.md
- OpportunityStandard changes could be published for other contexts to read; today only the scoring facts are shared.
Source: docs/adr/0013-labor-performance-integration-events.md
This board is a reconstruction from the code and documentation of labor-performance at origin/develop, not a workshop output. Roles are the ones the documentation names. How the boards were made.