Skip to main content

Business Context

As built

Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses.

The problem​

A delivery promise is a claim about a path: this node can have the package ready by this cutoff, a departure leaves on this lane, this delivery station serves this postal prefix. Every one of those claims depends on facts about buildings and the connections between them. If two contexts hold two copies of "which station serves 1010" or "what time is the cutoff at FC-7", the network will promise from one copy and route from the other.

Node Topology is the single owner of those facts. It answers four questions, and only these:

QuestionAnswered by
What buildings exist, of what type, run by whom, in which region and time zone?Node
What does each building declare it can do: hours, cutoffs, handling time, throughput cap?Node's versioned OperationalProfile
Which buildings are connected, in which direction and mode, with what nominal transit time?Lane
Which delivery station serves a postal prefix, and so which region?ServiceArea and Region

Every answer is published as an event, and the neighbours keep their own local read models of it. The promise hot path never calls this context synchronously (model conventions.integration_rules).

Derived from: model.yaml → contexts[node-topology].purpose, .aggregates, conventions.integration_rules.

Actors​

ActorWhat they do hereChannel
Vendor (through vendor-connectivity)Registers its own FULFILLMENT_CENTER, INBOUND_CROSS_DOCK or RETURNS_CENTER nodes and declares their operational profile. A vendor never calls this context directly: its write lands in the Vendor API, and vendor-connectivity calls POST /nodes and PUT /nodes/{nodeId}/operational-profile in-organization when it processes the submission.REST (in-org), Customer/Supplier
Network-ops planner (person)Registers the network's own parcel nodes, activates, suspends and retires nodes, opens and closes lanes, assigns service areas and defines regions.REST, UI
Any contextReads a node, lists lanes, resolves a postal prefix.REST queries, Open Host Service
Seven consuming contextsBuild local read models from the nine published events.Kafka, Open Host Service + Published Language

Decisions this context makes​

These are the model's business_decisions, unchanged:

  1. A parcel node (SORTATION_CENTER, DELIVERY_STATION, AIR_HUB) is always network-operated. A vendor may register only FULFILLMENT_CENTER, INBOUND_CROSS_DOCK or RETURNS_CENTER nodes (ErrOperatorNotAllowedForNodeType; ADR 0004).
  2. A node takes customer demand only while ACTIVE, and only if it has the OUTBOUND capability. Capabilities come from the node type (DefaultCapabilitiesByType), never typed by hand.
  3. An operational profile is versioned. A new declaration never edits an old revision (ErrStaleProfileRevision).
  4. A lane joins two different nodes along an allowed type pair, and both ends must be ACTIVE to open it (ErrLaneLoop, ErrLaneTypePairNotAllowed, ErrLaneEndpointNotActive).
  5. Every postal prefix maps to exactly one delivery station per assignment version (ErrNotADeliveryStation, ErrStaleAssignmentVersion).

Derived from: model.yaml → contexts[node-topology].business_decisions, .policies, node_types, lane_rules.

Node types​

Node typeOperator allowedCapabilitiesSubtypes
FULFILLMENT_CENTERVENDOROUTBOUND, INBOUND (node-topology ADR 0015: a seller's cartons are received at the building that stores them)SORTABLE, NON_SORTABLE, XL, SOFT_LINES, SUB_SAME_DAY, FRESH, MICRO
INBOUND_CROSS_DOCKVENDORINBOUNDnone
RETURNS_CENTERVENDORRETURNSnone
SORTATION_CENTERNETWORKSORTnone
DELIVERY_STATIONNETWORKLAST_MILEnone
AIR_HUBNETWORKSORT, AIRnone

Allowed lane pairs (origin to destination), in mode GROUND or AIR: FC to SC, FC to DS (direct injection), FC to AIR_HUB, SC to SC, SC to DS, SC to AIR_HUB, AIR_HUB to AIR_HUB, AIR_HUB to SC, AIR_HUB to DS, and INBOUND_CROSS_DOCK to FC (an inbound lane, never on a customer path).

Derived from: model.yaml → node_types, lane_rules.

How it relates to the real fulfillment networks​

The node types follow the public description of a large retailer's network: fulfillment centres, sortation centres, delivery stations and air hubs, a regionalized network, and middle-mile lanes between buildings. The facts and their sources are in public fulfillment-network research; this page does not repeat them.

The operational profile is modelled after the operationalConfiguration of the vendor platform API's supply-source (multi-location inventory) API: a handling time, operating hours by day, a throughput configuration expressed as a cap in orders per time unit, and a time zone. The mapping of that API surface to this model is in the vendor platform API surface map. Two fields are this model's own additions, whatever that surface offers: the cutoffs a node declares (one pickup departure per cutoff, scheduled by linehaul-transportation), and the sort dwell.

What a node declares is only half of its capability. What it actually does is measured by node-performance, and both feed the promise (ADR 0003). This context holds the declared half only.

The warehouse-systems fleet as a vendor​

The warehouse-systems fleet is vendor V-WS, one vendor among potentially many. Its facility-layout classifies each site with a siteRole. A site registers in the network only through the Vendor API of vendor-connectivity, which the fleet's network-fulfillment calls. No fleet service calls this context, and this context never reads fleet data (model meta.hard_boundary).

Fleet facility-layout siteRoleRegisters in the network asSubtypeVia
ROBOTICS_SORTABLE_FCFULFILLMENT_CENTERSORTABLEvendor-connectivity
TRADITIONAL_SORTABLE_FCFULFILLMENT_CENTERSORTABLEvendor-connectivity
SOFT_LINES_SORTABLE_FCFULFILLMENT_CENTERSOFT_LINESvendor-connectivity
NON_SORTABLE_FCFULFILLMENT_CENTERNON_SORTABLEvendor-connectivity
XL_FCFULFILLMENT_CENTERXLvendor-connectivity
SUB_SAME_DAY_FCFULFILLMENT_CENTERSUB_SAME_DAYvendor-connectivity
FRESH_GROCERY_FCFULFILLMENT_CENTERFRESHvendor-connectivity
MICRO_FCFULFILLMENT_CENTERMICROvendor-connectivity
SIMULATED_FCFULFILLMENT_CENTERSORTABLEvendor-connectivity
INBOUND_CROSS_DOCKINBOUND_CROSS_DOCKnonevendor-connectivity
NATIONAL_INBOUND_CROSS_DOCKINBOUND_CROSS_DOCKnonevendor-connectivity
RETURNS_CENTERRETURNS_CENTERnonevendor-connectivity
SORTATION_CENTERnot registerednonenone: a network-operated node; the fleet's facility-layout row is a reference mirror only
DELIVERY_STATIONnot registerednonenone: a network-operated node; the fleet's facility-layout row is a reference mirror only
AIR_HUB_GATEWAYnot registerednonenone: a network-operated node (AIR_HUB); the fleet's facility-layout row is a reference mirror only

Derived from: model.yaml → fleet_site_role_mapping, meta.hard_boundary.

The parcel nodes (SORTATION_CENTER, DELIVERY_STATION, AIR_HUB) are network-operated. The network's planner registers them here with operator NETWORK. If the fleet keeps rows for such buildings in facility-layout, those rows describe the network's buildings for the fleet's own reference; they are never registered, and a vendor that tries to register one is refused with ErrOperatorNotAllowedForNodeType.

The fleet's network-fulfillment keeps the correspondence between a network nodeId and its own siteCode as a persisted mapping, never as a string convention. Term-by-term translation is on the Ubiquitous Language page and on WMS/WES integration.

Deliberately out of scope​

Not hereOwner
Scheduled departures on a lane, their capacity and loadslinehaul-transportation (a Lane holds only the nominal transit time)
Delivery waves and routes inside a station's service arealast-mile-delivery
Measured performance and grades of a nodenode-performance
What a node can sell, and in what quantityoffer-availability
Vendor accounts, ack windows, rate limits, and the Vendor API itselfvendor-connectivity
Which node should hold which item before demand arrivesfuture context inventory-placement (vendors place their own stock)
Suspending a node because of poor performancenobody automatically: node-performance never suspends a node; a planner decides

Derived from: model.yaml → contexts[*].purpose, future_contexts, contexts[node-performance].business_decisions.