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.

GitHub ↗ · Documentation ↗ · Architecture check · Briefings

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.

  1. Pivotal eventLaborStandardDefined
  2. Pivotal eventTaskPerformanceRecorded
  3. Pivotal eventLaborStandardRevised

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
  1. 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 engineer
    Read modelCurrent standard
    CommandDefineStandardPOST /standards
    AggregateLaborStandard
    EventLaborStandardDefined

    Source: application/usecases/define_standard.go · domain/standard/standard.go · apis/openapi.yaml

  2. 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 engineer
    CommandDefineStandardPOST /standards
    AggregateLaborStandard
    EventLaborStandardDefined

    Source: application/usecases/define_standard.go · domain/standard/standard.go · adr/0035-handling-unit-standards-and-team-lift.md

  3. 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 engineer
    PolicyWhenever a standard is already open for the task type and unit, close it as the new one starts
    Read modelCurrent standard
    CommandDefineStandardPOST /standards
    AggregateLaborStandard
    EventLaborStandardRevised

    Source: application/usecases/define_standard.go · domain/standard/standard.go · adr/0004-standard-frozen-at-completion-time-not-recomputed.md

  4. 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 once
    Read modelStandard in force at completion
    CommandRecordTaskPerformancestarted by the policy
    AggregateTaskPerformance
    EventTaskPerformanceRecorded
    Systemworkforce-management
    PolicyKeeps a running average task time and idle share per task type, for planning

    Source: adapters/inbound/kafka/consumer.go · application/usecases/record_task_performance.go · domain/performance/performance.go · domain/idleness/idleness.go

  5. 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 · earlierTaskPerformanceRecorded
    PolicyWhenever a performance or standard event is published, count it once into its task type and hour
    Read model · kept up to dateLabor performance report

    Source: 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.

Opportunities

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.