Skip to main content

Ubiquitous Language

Every term below maps to a code identifier. The Code name differs? column flags terms whose identifier in code is not the business word, so a reader grepping for the business word knows what to search for instead.

Core terms​

TermMeaningCode identifierCode name differs?
LaborStandardThe engineered expected duration for one task type, with an effective range.standard.LaborStandard (internal/domain/standard)no
Expected secondsHow long a task of that type should take.LaborStandard.ExpectedSeconds(); JSON expectedSeconds; column expected_secondsno
Travel componentOptional part of the expected seconds attributable to travel, supplied by the caller (ADR 0015).LaborStandard.TravelComponentSeconds(); travelComponentSecondsno
Handling unitThe packaging level a standard is declared for and a completed task handled: EACH, CASE or PALLET; empty means the task type alone (ADR 0035).shared.HandlingUnit; LaborStandard.HandlingUnit(); handlingUnit; column handling_unitno
Most specific winsA completion carrying a handling unit is scored against the standard for exactly (task type, unit), else the task-type-only one, else unscored.RecordTaskPerformance.standardSecondsAtCompletion; GetStandard.ExecuteResolvedno
Team liftThe declared heavy-case rule of a CASE standard: a case strictly heavier than thresholdG grams needs two operators and is scored against the team-lift seconds.standard.TeamLift, LaborStandard.SecondsFor; teamLiftno
Site codeThe facility a standard is optionally scoped to (a facility-layout site code, 1-32 characters, no whitespace); empty means the site-less standard that applies to every site. Declarative, never looked up. Scoring ignores site standards (ADR 0038).shared.SiteCode, shared.NewSiteCode; LaborStandard.SiteCode(); siteCode; column and event field site_codeno
Scope (of a standard)What a standard is about: (task type, handling unit, site). At most one standard is open per scope, and a revision closes only the same scope.standard.Scope, LaborStandard.Supersede, standard.ErrScopeMismatchno
Effective range[effectiveFrom, effectiveTo) during which a standard is in force; open while effectiveTo is null.EffectiveFrom(), EffectiveTo(), IsActiveAt(t)no
RevisionReplacing the open standard of the same scope: close the old one, open a new one at the same instant.LaborStandard.Supersede(prior) (which calls Close(at)) inside usecases.DefineStandard; event LaborStandardRevisedyes — no Revise method; the use case is DefineStandard for both first definition and revision
TaskTypeThe kind of task a standard applies to: PICK, PACK, SLAM (mirrors fulfillment-execution's task.Type).shared.TaskType, constants shared.Pick, shared.Pack, shared.Slamno
UnclassifiedA completion whose task type is absent or not one of the three. Recorded, never scored."" from shared.ParseTaskTypeLenient; UNCLASSIFIED in the analytics rollup (report.NormalizeTaskType)yes — empty string in OLTP, UNCLASSIFIED label in analytics
TaskPerformanceOne completed task, scored and frozen.performance.TaskPerformance (internal/domain/performance); table task_performancesno
Actual secondsHow long the task actually took (claim → completion).TaskPerformance.ActualSeconds(); wire field duration_seconds on TaskCompletedyes — upstream calls it duration_seconds
StandardSecondsAtCompletionThe expected seconds of the standard active as of completion, copied onto the row and never recomputed (ADR 0004).TaskPerformance.StandardSecondsAtCompletion(); column standard_seconds_at_completionno
EfficiencyPct100 × StandardSecondsAtCompletion ÷ ActualSeconds; null when either is not positive.TaskPerformance.EfficiencyPct() (*float64), computeEfficiencyPctno
Scored / UnscoredWhether a task has an EfficiencyPct.EfficiencyPct() != nil; tasks_scored / TasksUnscored() in analyticsyes — no named type; a nil check
MeasuredA task whose actual seconds is positive (counts towards mean actual seconds).tasks_measured; ActualSeconds > 0 filter in TaskTypePerformanceForyes — only named in analytics
AssociateThe person who completed a task; empty for a station with no checked-in occupant (e.g. a robot).shared.AssociateIdno
Kafka event idThe CloudEvents id of the consumed TaskCompleted; the dedupe key.RecordTaskPerformanceRequest.KafkaEventId, TaskPerformance.EventId(), processed_events.event_idyes — called KafkaEventId/eventId, it is the CloudEvents id
Idle GapOne associate's wait from finishing a task to claiming the next.idleness.IdlePeriod; table idle_periodsyes — IdlePeriod
Claim instantWhen the next task was claimed, derived as completion time − actual seconds.claimedAt in RecordTaskPerformance.recordIdleGapno
CappedThe idle gap exceeded IDLE_GAP_CAP_SECONDS and was clipped.IdlePeriod.Capped(); column cappedno
Open GapIdle time still running right now; computed at read time, never stored. Per associate only: the task-type utilization result always reports 0. Decided 2026-10-06: kept per associate; at task-type scope openGapSeconds is always 0 by design (an open gap is an Associate-level concept, ADR 0014; attributing it to a task type would invent semantics).openGapSeconds in usecases/get_utilization.go; JSON openGapSecondsno
UtilizationTask time ÷ (task time + idle time) over a trailing window, as a percent; null when nothing was observed.idleness.UtilizationPct, usecases.GetUtilization, UtilizationResult.UtilizationPctno
WindowThe trailing period utilization is measured over (default 1 h).REST query window (Go duration), MCP windowSeconds; defaultUtilizationWindowno
Idle seconds beforeThe idle gap preceding a task, carried on the published event.TaskPerformanceRecorded.IdleSecondsBefore; wire idle_seconds_beforeno

Read-model terms​

TermMeaningCode identifierCode name differs?
ScorecardPer-associate summary: task count, mean efficiency, per-task-type breakdown, trend, coaching flag.ports.Scorecard, ports.TaskTypeBreakdown, usecases.GetAssociateScorecardno
TrendIMPROVING, DECLINING, STABLE or INSUFFICIENT_DATA: recent mean vs all-time mean, 5-point threshold, at least 3 scored recent tasks (ADR 0005).performance.TrendDirection, performance.ClassifyTrendno
Coaching flagThe last 3 scored tasks were all under 85 % efficiency — a conversation prompt, never an action (ADR 0005).Scorecard.CoachingFlag, performance.DetectCoachingFlagno
Task-type performanceFleet-wide task count, mean efficiency and mean actual seconds for one task type.ports.TaskTypePerformance, usecases.GetTaskTypePerformanceno
Mean actual secondsReal measured pace, independent of any standard (ADR 0006).TaskTypePerformance.MeanActualSecondsno
Labor Performance ReportHourly analytical rollup per task type, with totals.report.LaborPerformanceReport, report.Row, report.TaskTypeBar, report.Totalsno
Hour bucketThe UTC hour a fact is folded into.report.HourBucket; column hour_bucketno
Freshness lagHow far the analytical projection trails the newest applied event.ReportStore.FreshnessLag; JSON lagSecondsno

Event names​

Event (business)Code typeCloudEvents type
Labor standard definedshared.LaborStandardDefinedcom.warehouse.wes.labor-performance.standard.LaborStandardDefined
Labor standard revisedshared.LaborStandardRevisedcom.warehouse.wes.labor-performance.standard.LaborStandardRevised
Task performance recordedshared.TaskPerformanceRecordedcom.warehouse.wes.labor-performance.performance.TaskPerformanceRecorded
Task completed (consumed)cloudevents.TypeFulfillmentTaskCompleted (decoded into taskCompletedData)com.warehouse.wes.fulfillment-execution.task.TaskCompleted

Full payloads: Domain events.

Words this context deliberately does not use​

  • Shift — shifts belong to workforce-management; the idle-gap cap stands in for a shift boundary (ADR 0014).
  • Assignment / labor allocation — workforce-management's language.
  • Task claim / lease — fulfillment-execution owns the task lifecycle; this context only reads the completion.