Skip to main content

Context Map

Generated from the model

This page is generated from model/model.yaml by scripts/gen_pages.py. Edit the model, then regenerate; CI fails when the page and the model disagree.

Map​

Solid arrows are event flows (upstream to downstream). The label is the relationship pattern and the number of event types.

Edges​

UpstreamDownstreamPatternEvents
dock-schedulingyard-managementCustomer/SupplierDockAppointmentBooked, DockAppointmentRescheduled, DockAppointmentCancelled, DockAppointmentNoShow, DoorClosureScheduled, DoorClosureLifted
dock-schedulingwarehouse-planningCustomer/SupplierDockAppointmentBooked, DockAppointmentRescheduled, DockAppointmentCancelled, DockAppointmentNoShow
dock-schedulinginbound-receivingCustomer/SupplierDockAppointmentBooked, DockAppointmentRescheduled, DockAppointmentCancelled, DockAppointmentDoorReassigned
dock-schedulingoutbound-shippingCustomer/SupplierDockAppointmentBooked
dock-schedulingexception-managementCustomer/SupplierDockAppointmentNoShow
yard-managementdock-schedulingCustomer/SupplierVisitCheckedIn, VisitRejected, TrailerDocked, TrailerUndocked
yard-managementinbound-receivingCustomer/SupplierVisitCheckedIn
yard-managementexception-managementCustomer/SupplierVisitRejected, InspectionFailed, SealExceptionRaised, TrailerDwellExceeded, YardCheckClosed
yard-managementoutbound-shippingCustomer/SupplierTrailerDocked, DoorWorkCompleted, TrailerDeparted
facility-layoutdock-schedulingConformistLocationSlotRegistered, LocationSlotDecommissioned, ZoneRegistered
inbound-receivingdock-schedulingConformistASNRegistered, ASNCancelled
process-path-managementdock-schedulingConformistCPTScheduleChanged
facility-layoutyard-managementConformistLocationSlotRegistered, LocationSlotDecommissioned, ZoneRegistered
inbound-receivingyard-managementConformistASNRegistered, ASNCancelled, ReceiptOpened, ReceiptClosed

Changes in existing contexts​

ContextKindSummary
inbound-receivingownership-transferDockAppointment moves to dock-scheduling (strangler A-E). BUILT on develop (its ADR 0019), and stage E is done on develop for the migration code (2026-11-10): dock-scheduling removed the stage A importer (its ADR 0011) and inbound-receiving the republish-appointments backfill, the legacy dockappointment encoders and Replay (its ADR 0022), which no longer publishes the four dockappointment types; its deprecated appointment reads and 410 write routes stay pending a decision. As built (its ADR 0019): the appointment write routes are retired, an appointments local copy fed by dock-scheduling DockAppointmentBooked, Cancelled, Rescheduled and DoorReassigned validates Receipt.Open(appointment_id) and stamps the door; closing a receipt no longer completes the appointment (yard door release does). The optional TrailerDocked consumer was not built. Infra: helm-values/inbound-receiving.yaml sets dockAppointmentConsumerGroup inbound-receiving-dock-appointments, so the edge is registered in infra and applied: dock-scheduling runs at v0.1.2 and inbound-receiving at 484490f (v2.0.6) on k3s, whose ConfigMap carries DOCK_APPOINTMENT_CONSUMER_GROUP (read-only, 2026-11-10).
inbound-receivingnew-consumerBUILT on develop (its ADR 0021, commit 484490f): a visit-arrival consumer stores the earliest arrived_at of yard-management VisitCheckedIn (when it names an appointment_id; walk-ins are ignored) into a visit_arrivals local copy, to compute the dock-to-stock KPI; every other type on warehouse.yard-management.events is committed past, and nothing is published back to yard-management. Producer: yard-management publishes VisitCheckedIn on its integration topic. Infra: helm-values/inbound-receiving.yaml sets visitArrivalConsumerGroup inbound-receiving-visit-arrivals, and both ends are applied on k3s (yard-management at v0.1.2, inbound-receiving at 484490f whose ConfigMap carries VISIT_ARRIVAL_CONSUMER_GROUP; read-only, 2026-11-10), so the edge is registered and applied. Consumer lag was not checked.
warehouse-planningconsumer-source-switchBUILT on develop (its ADR 0020), the helm values read dock-scheduling. ADR 0017 inbound demand switches from inbound-receiving DockAppointmentBooked/Cancelled to dock-scheduling DockAppointmentBooked/Rescheduled/Cancelled/NoShow; it gains site_id and direction, closing ADR 0017's no-site limitation. Infra: helm-values/warehouse-planning.yaml sets dockAppointments.consumerGroup warehouse-planning-dock-appointments, so the edge is registered in infra and applied: dock-scheduling runs at v0.1.2 and warehouse-planning at ef8b946 on k3s, whose deployment carries DOCK_APPOINTMENT_CONSUMER_GROUP warehouse-planning-dock-appointments (read-only, 2026-11-10).
exception-managementnew-consumerBUILT on develop (its yard and dock-scheduling consumers). Open problem cases from VisitRejected, SealExceptionRaised, TrailerDwellExceeded, YardCheckClosed (one per discrepancy) and DockAppointmentNoShow; routing per source type. Infra: helm-values/exception-management.yaml pins yardManagementExceptionsConsumerGroup (exception-management-yard-management) and dockSchedulingExceptionsConsumerGroup (exception-management-dock-scheduling) (warehouse-infra PR 195; the chart defaults supplied the same ids before), and both producers run on k3s (v0.1.2) next to exception-management at 35bb7d9, whose ConfigMap carries both groups (read-only, 2026-11-10), so the edges are registered and applied.
facility-layoutadditive-askYard slot attribute spotKind on LocationSlotRegistered. BUILT on develop (facility-layout ADR 0045): PARKING, HOLDING, REEFER_PLUG, HAZMAT, STAGING_LANE, plus an optional gln. yard-management stores spotKind (its ADR 0014) and uses it for the placement rules; holding spots still live in its YardPolicy.
warehouse-ops-agentread-only-clientMCP tools of both contexts, plus one human-gated write delegated over A2A. AS BUILT each service ships its own MCP server (cmd/mcp): dock-scheduling 18 tools (8 L1 reads, 2 L2 proposals propose_reschedule_plan and propose_late_arrival_actions, 8 L3 writes), yard-management 25 tools (11 L1, 3 L2 recommend_next_door, propose_pickup_plan and list_gate_record_gaps, 11 L3); every L3 call needs a human approval and initiated_by. Arrival and door release (physical facts) and the calendar changes and sweeps are not exposed. WIRED ON DEVELOP (checked 2026-12-02, ADR 0035 of warehouse-ops-agent): the yard-and-dock slice reads through DOCK_SCHEDULING_MCP_ENDPOINT and YARD_MANAGEMENT_MCP_ENDPOINT and, when DOCK_SCHEDULING_A2A_URL is set, delegates the approved reschedule to dock-scheduling's A2A skill book_or_reschedule_appointment; each variable unset means that part is off. NOT DEPLOYED: warehouse-infra develop has mcp.enabled false for dock-scheduling and yard-management, no a2a block for either, and no upstreams entry for them in helm-values/warehouse-ops-agent.yaml.
outbound-shippingnew-consumerBUILT on develop (IQVO/outbound-shipping), released as v0.1.0 (2026-11-11) and applied to k3s on 2026-11-12 (one api replica at 857edfd, Argo CD Synced/Healthy, re-read read-only 2026-11-13): the edges from yard-management and dock-scheduling (both running at v0.1.2) are live — both ends run and warehouse-infra helm values set the consumer groups (PR 205: yardConsumerGroup outbound-shipping-yard, dockConsumerGroup outbound-shipping-dock). Ship-confirm follows the physical departure: consumes yard-management TrailerDocked, DoorWorkCompleted and TrailerDeparted (the last two reached the integration topic with yard-management ADR 0010) and dock-scheduling DockAppointmentBooked.
warehouse-consolenew-remoteYard Board MFE (spot and door map, arrivals, at-risk appointments) and Dock Calendar MFE.
warehouse-floor-clientnew-screensGate clerk check-in/out, hostler claim/complete move, dock operator door work.

Boundary rules​

  • dock-scheduling owns the FUTURE of a door (booked time); yard-management owns the PRESENT of the yard (who and what is physically where). Neither records the other's facts; each keeps an event-fed local copy of what it needs.
  • No yard context consumes a retailnetwork.* topic or calls a retail-network service; the only channel to the network stays network-fulfillment and the Vendor API. Outbound carrier pickups are known from the fleet's own CPT schedule (process-path-management CPTScheduleChanged), which the network integration page defines as the network's pickup cutoff.
  • Every context owns its database; no shared tables.
  • Every published event leaves through a transactional outbox (attempt cap, DLQ).
  • Every consumer is idempotent on the CloudEvents id (inbox table) and dispatches on the full type string.
  • Sibling data used in a decision is a local, event-fed read model; no synchronous sibling call at request time, in either direction.
  • Postgres and Kafka are the only runtime (no in-memory mode, real-wiring rule).
  • Every state-changing POST/PUT takes an Idempotency-Key; mutable aggregates carry an optimistic-concurrency version (ETag / If-Match). An Idempotency-Key, where a route takes one, is 1 to 128 printable ASCII characters (400 idempotency-key-invalid otherwise); the same key with another request is 409 idempotency-key-reused.
  • REST follows the fleet guideline (sub-resource nouns for actions, problem+json errors).