Skip to main content

Ubiquitous language

The terms this context owns, with the Go identifier that carries each one (internal/domain/scorecard unless noted), and the neighbour terms it only reads. Where a word means something else in another context it is called out in the last column.

This context's terms​

TermDefinitionCode identifierNot to be confused with
ScorecardA node's measured performance over a rolling window, with a grade. One per node and window: scorecardId = nodeId + ':' + window.NodeScorecard, ScorecardID(node, window)The Operational Profile (node-topology): what the vendor declares. A scorecard is never derived from it.
WindowThe rolling period a scorecard covers: 7d (7 days) or 30d (30 days).Window, Window7d, Window30d, Windows()The Ack Window of a purchase order (vendor-connectivity), which is hours, not days.
ObservationOne measured fact counted in a scorecard, keyed by the CloudEvents id of the event it came from. Kinds: ACK_ACCEPTED, ACK_REJECTED, ACK_EXPIRED, HANDOVER, PROMISE_KEPT, PROMISE_BROKEN, FEED_APPLIED.Observation, KindA CloudEvents message: one event is at most one observation per scorecard, counted once (ErrDuplicateObservation).
On-time handover rateOn-time handovers over handovers; a handover is on time when handedOverAt is not after requiredShipBy. Higher is better; 1 when there is none.Metrics.OnTimeHandoverRatePromise-kept rate: handover is judged at the node's door, the promise at the customer's.
Late ack ratePurchase orders acknowledged in the last 10% of their ack window, plus expired ones, over acknowledged or expired orders. Lower is better.Metrics.LateAckRate, AckIsLateExpiry rate, which counts only expired orders.
Reject rateRejected over acknowledged or expired purchase orders.Metrics.RejectRateA rejection by order-sourcing (only the vendor rejects).
Expiry rateExpired over acknowledged or expired purchase orders.Metrics.ExpiryRateLate ack rate, which also counts late but in-time acknowledgements.
Promise-kept rateKept over kept plus node-attributable broken promises. Higher is better; 1 when there is none.Metrics.PromiseKeptRate, AttributableCausePromise kept / broken itself, delivery-promise's judgement of one promise.
Feed freshness p95Nearest-rank 95th percentile of the whole minutes between consecutive applied inventory feeds. Lower is better; 0 with fewer than two feeds.Metrics.FeedFreshnessP95MinutesasOf on a listing (offer-availability).
Observations (count)The number of observations inside the window; a grade needs at least 50.Metrics.Observations, MinObservationsThe Observation entities themselves.
StatePROVISIONAL (below the minimum, no grade) or GRADED.State, StateProvisional, StateGradedPROVISIONAL as a promise state in delivery-promise. Same word, different context.
GradeA, B, C or D from the grading bars; the wire value is PROVISIONAL while the state is.Grade, GradeFor, GradeLabelNode status (ACTIVE, SUSPENDED): a D grade never suspends a node.
Grading policyThe bars: A 0.98 on-time / 0.97 promise-kept / 0.01 late-ack, B 0.95 / 0.94 / 0.03, C 0.90 / 0.90 / 0.05, else D.gradingBarsThe threshold alert.
Threshold breachA metric moving from the healthy to the unhealthy side of its bound between two graded states; reported per metric.Threshold, Breaches, NodeThresholdBreachedA grade change: a breach is per metric, the grade is computed over three of them.
Fast-tier eligibilityWhether a node may win the SAME_DAY and NEXT_DAY tiers. One flag per node, held by the 7d scorecard: every node starts eligible; a GRADED 7d on-time handover rate below 0.90 suspends it; 0.95 or more on three consecutive distinct UTC days of recompute reinstates it; a PROVISIONAL scorecard changes nothing (ADR 0013).FastTierEligibility policy, FastTierState, Tier, TierSameDay, TierNextDayThe grade: a D never suspends a node, and a suspended node can hold an A on its 30d scorecard.
Reinstatement streakThe distinct UTC days, in a row, on which a suspended node's GRADED 7d on-time handover rate stood at or above 0.95; three reinstate, a recompute below 0.95 resets it.FastTierState.Streak, StreakDayThe hysteresis itself: the 0.90/0.95 gap between suspending and reinstating.
DueA scorecard that has observations recorded since the last recompute, or whose oldest observation has left the window.NodeScorecard.DueForRecompute, ExpiresAtOverdue: nothing is late, a due scorecard is only waiting for the next tick.
Purchase order factsThe local copy of issuedAt, ackBy and requiredShipBy of a purchase order, needed to judge acknowledgements and handovers.PurchaseOrderFactsThe purchase order itself (vendor-connectivity).
Inbound timeliness / accuracyp95 minutes between a shipment's shippedAt and the receivedAt of its receipt; share of cartons received. Informational, never graded.InboundMetrics, ComputeInboundFeed freshness; a purchase-order reject rate.
Declared vs MeasuredWhat a vendor says (profile) against what the network observes (scorecard).(principle)A comparison metric: no metric reads the declaration.

Neighbour terms this context uses​

TermDefinition (owner's)Owner
NodeOne physical building of the network. Its id (nodeId) is copied from events, never looked up.node-topology
Operational ProfileA node's declared hours, cutoffs, handling time and throughput cap. Never enters a metric here.node-topology
VendorAn organisation operating fulfillment nodes for the network.vendor-connectivity
Purchase Order (PO)The instruction to one vendor node to ship one shipment group in full by requiredShipBy.vendor-connectivity
Acknowledgement / Ack window / ackByThe vendor's whole-order accept or reject, and its deadline.vendor-connectivity
Required ship-byThe pickup cutoff a purchase order must be ready for.vendor-connectivity
HandoverThe instant a vendor node's package enters the network.shipping-and-tracking
Inventory feedOne vendor submission of availability for one node. Quantities are ignored here.offer-availability
Promise kept / brokenThe judgement at delivery against deliverByLatest; cause says why a promise broke.delivery-promise
HandicapThe scorecard-driven delay delivery-promise applies to a node's ship-by.delivery-promise
Assignment costThe cost model in which order-sourcing weighs the grade.order-sourcing
Inbound shipment / receiptA seller's shipment to a vendor node, and the vendor's carton-level receipt of it.seller-inbound, vendor-connectivity

The canonical network and fleet term tables are in warehouse-docs. This context has no edge to the warehouse-systems fleet.