Skip to main content

Ubiquitous language

warehouse-ops-agent speaks two kinds of vocabulary: terms it coins itself for its own correlation policies, and terms it borrows verbatim from its upstream contexts because it never redefines a fact another context already owns. This glossary is part of the DDD artifact pack; every term maps to a code identifier, and a ⚠ marks a term whose code name differs from the spoken one.

Terms this agent coins​

TermCode identifierMeaning
FlowBalanceException (E1) ⚠policy.Decision, built by policy.Decide; use case usecases.FlowBalanceAdvisoryThe correlation of a wes-work-planning rebalance recommendation, a workforce-management staffing gap, and a fulfillment-execution stuck-task diagnostic for one process path into a single ranked recommendation. The spoken name survives in the MCP tool get_flow_balance_exception; the Go type is Decision.
StrandedReservation (E2) ⚠policy.StrandedReservationException, built by policy.Evaluate; use case usecases.DetectStrandedReservationThe correlation of fulfillment-execution's expired/expiring task leases with inventory-storage's usable-stock shortfall for the affected SKU into a revoke_reservation-or-hold recommendation. Exposed as the MCP tool detect_stranded_reservation.
DailyBrief (E3)policy.DailyBrief, policy.SiteBrief, policy.PathBrief; policy.SynthesizePathBrief; use case usecases.DailyBriefThe synthesized, cross-path, cross-site operational summary: every monitored path's raw facts plus the open exceptions derived from them.
OpenExceptionpolicy.OpenException (Kind, Severity, Evidence)One path's flagged, human-gated exception: which correlation rule fired (Kind, today only flow_balance_risk), how badly (Severity), and its full evidence trail. Raised only when two or more independent signals fire (deriveExceptions).
Severitypolicy.Severity: info, warning, critical; plus SeverityNormal (normal) via the alias SignalSeverityCoarse ranking. Two correlated signals is warning, three is critical. Runtime signals add normal.
Evidence trail ⚠policy.FlowBalanceEvidenceEntry (E1, Source / Detail), policy.EvidenceEntry (E2, Tool / Summary), OpenException.Evidence []string (E3)The list of facts behind a decision, each naming the upstream tool call that produced it. Three different shapes in code for one spoken concept.
Blast radiuspolicy.BlastRadius, policy.BinLineThe mandatory "what would this write touch" readout (SKU, bin, reservation, quantity freed, full bin-line snapshot) that must accompany a revoke_reservation recommendation. Built from inventory-storage.get_bin_occupancy.
Partial / MissingSignals ⚠Decision.Partial, Decision.MissingSignals (E1 only); PathBrief.Unavailable (E3)The typed degrade state when an upstream read failed. Only the E1 Decision carries Partial / MissingSignals; a PathBrief lists failed sources in Unavailable; a StrandedReservationException has neither and instead degrades to hold with an evidence line naming the missing source.
PathTargetpolicy.PathTarget, usecases.PathTarget, config.PathTarget (DAILY_BRIEF_PATH_TARGETS)Deployment-time configuration binding each upstream context's own naming for "the same" process path: wes's PathId, fulfillment-execution's ProcessPath queue name, workforce-management's (BuildingId, ShiftId, PathId) key, under a facility-layout SiteCode; optionally warehouse-planning's PlanningPathId and conversion factors. Never inferred.
Recommended action ⚠policy.RecommendedAction (assign_labor, release_next_work, hold — constant FlowBalanceActionHold); policy.StrandedReservationAction (revoke_reservation, hold — constant ActionHold)The closed set of levers a decision can rank, split across two enums in code. hold is the safe default when the evidence does not clearly support a lever.
UtilizationCorrelationpolicy.UtilizationCorrelation, policy.UtilizationCorrelationKind; policy.CorrelateUtilizationThe ADR-0008 overlay on a FlowBalanceException: queue depth crossed with labor-performance's measured utilization, yielding claim_flow_problem, starvation or staffing_gap_confirmed, or nil.
TravelFactorCorrelationpolicy.TravelFactorCorrelation, policy.TravelFactorOutcomeKind; policy.CorrelateTravelFactorThe ADR-0009 classification of a facility-layout travel distance between two caller-supplied locations: travel_significant above 60 m, else travel_negligible.
Capacity outlookpolicy.CapacityOutlook, policy.CapacityStepFact; policy.SummarizeCapacityOutlook; use case usecases.CapacityOutlookADR 0013: warehouse-planning's path capacity (ORDER per hour), bottleneck step and binding constraint over the next CAPACITY_OUTLOOK_HORIZON, shown next to a path's facts. Informational and fail-open (OmittedReason).
ServiceSignal / RuntimeSignalsReportpolicy.ServiceSignal, policy.RuntimeSignalsReport; policy.ClassifyErrorRate, policy.ClassifyLatencyP99One service's runtime health (5xx error rate, p99 latency, recent error-log count) and the fleet-wide report of them, each classified normal / warning / critical.
LLM mode / decision sourcepolicy.LLMMode (off, shadow, on), policy.DecisionSource (deterministic, llm, fallback)ADR 0004: whether a model plan may replace the deterministic decision, and which path actually produced the returned one.
Plan ⚠ports.Plan (from the reasoner), policy.PlanProposal (validated view), policy.ArbitrationThe model's proposal in the closed action vocabulary, submitted through the submit_plan tool and gated by policy.ValidatePlan / policy.Arbitrate.

Terms this agent borrows, unredefined​

These originate in an upstream context and are never given a second meaning here — this agent's policy layer treats them as opaque facts read across an MCP tool-call boundary, validated against the same closed enum the upstream context defines, never reinterpreted:

WordOwning contextCode identifier hereWhat it means there
RebalanceAction (NoActionNeeded, ThrottleUpstream, ReassignLabor)wes-work-planningpolicy.RebalanceAction, policy.ParseRebalanceActionThe action get_rebalance_recommendation returns for a path's current flow state.
TaskType (PICK, PACK, SLAM)fulfillment-executionpolicy.TaskType, TaskType.ValidThe kind of task a lease belongs to.
SKU, usable stock, reservationinventory-storagepolicy.AvailabilitySignal, policy.BinLine, ports.Availability, ports.BinOccupancyProduct identity and stock-state vocabulary; see that context's own ubiquitous-language page for the full model.
SiteCode, Zone, location codefacility-layoutPathTarget.SiteCode, policy.TravelDistanceReadingPhysical-structure vocabulary; read to group the daily brief and to measure travel, never to reason about placement legality.
BuildingId, ShiftIdworkforce-managementPathTarget.BuildingId, PathTarget.ShiftIdStaffing-plan scoping keys.
Utilizationlabor-performancepolicy.UtilizationSignal, ports.TaskTypeUtilizationBusy versus idle time per task type; a null utilizationPct means nothing observed, never 0%.
Process-path capacity, bottleneck step, binding constraintwarehouse-planningpolicy.PathCapacityFact, ports.ProcessPathCapacityPlanned throughput of a multi-step path, normalized to ORDER per hour.

Words this agent deliberately does not use about itself​

Aggregate, Invariant, Domain event, Bounded context. Per Subdomain classification, using any of these words about warehouse-ops-agent itself would misrepresent what this repo is. The DDD artifact pack uses them only to record their absence (for example the Aggregate design canvas and Domain events pages).