Skip to main content

Context map

Synced from exception-management

This page is a copy of docs/docs/ddd/context-map.md on develop, derived from that repository's code. Edit it there, then re-sync.

Upstream edges (all Conformist, us downstream)​

The pattern is uniform on purpose: exception-management replicates no producer state, keeps only per-case frozen payloads, and restates each producer's payload in its own apis/asyncapi.yaml (ADR 0003). There is no live REST or MCP call to a sibling at request time, ever.

ProducerTopicTypes consumedConsumer group envStatus
fulfillment-executionwarehouse.fulfillment.eventstask.TaskCPTMissed, package.PackageDiverted, package.WeightDiscrepancyDetectedFULFILLMENT_EXCEPTIONS_CONSUMER_GROUPLive: TaskCPTMissed verified on the producer's contract; the two package types were promoted to the integration topic by the producer's PR #234 (merged 2026-10-21)
work-planningwarehouse.work-planning.eventsworkpool.BacklogThresholdBreachedWORK_PLANNING_EXCEPTIONS_CONSUMER_GROUPLive (verified)
network-fulfillmentwarehouse.network-fulfillment.eventsnetworkorder.AcknowledgementDeadlineAtRisk, networkorder.OrphanedHoldCancelledNETWORK_FULFILLMENT_EXCEPTIONS_CONSUMER_GROUPLive (verified)
order-managementwarehouse.order-management.eventsorder.OrderRepromised — correlation only, never a case sourceORDER_CORRELATION_CONSUMER_GROUPLive (verified)
returns-processingwarehouse.returns-processing.eventsreturnreceipt.UnexpectedReturnReceivedRETURNS_EXCEPTIONS_CONSUMER_GROUPLive: the producer shipped (its develop publishes the type)
inbound-receivingwarehouse.inbound-receiving.eventsreceipt.CartonDiscrepancyRaisedCARTON_DISCREPANCY_CONSUMER_GROUPLive: routed by kind (ADR 0006)
inventory-storagewarehouse.inventory.eventsbin.DiscrepancyDetected, stock.ItemUnlocatedINVENTORY_EXCEPTIONS_CONSUMER_GROUPLive: promoted by the producer's PR #239 (merged 2026-10-21)
yard-managementwarehouse.yard-management.eventsyardvisit.VisitRejected, trailer.SealExceptionRaised, trailer.TrailerDwellExceeded, yardcheck.YardCheckClosedYARD_MANAGEMENT_EXCEPTIONS_CONSUMER_GROUPPinned consumer-first from the producer's contract (ADR 0010); one case per discrepancy of a yard check
dock-schedulingwarehouse.dock-scheduling.eventsdockappointment.DockAppointmentNoShowDOCK_SCHEDULING_EXCEPTIONS_CONSUMER_GROUPPinned consumer-first from the producer's contract (ADR 0010)
outbound-shippingwarehouse.outbound-shipping.eventsshippingpackage.PackageMissedLoadOUTBOUND_SHIPPING_EXCEPTIONS_CONSUMER_GROUPLive: one problem-solve case per missed package (ADR 0011)

ADR 0003/0004 still describe the inventory and package types as "pending the producer's promotion PR"; those promotions have since merged — the ADR bodies are immutable, this table is the current truth.

Downstream edges (us upstream)​

ConsumerChannelRelationshipStatus
warehouse-ops-agentread-only MCP (cmd/mcp, :8090)Open Host ServiceBuilt
Console / operatorsREST reads (GET /exceptions*, GET /exception-policies)Open Host ServiceBuilt
Any fleet consumerwarehouse.exception-management.eventsPublished Language (CloudEvents catalogue, ADR 0004)Built; no known external consumer yet
This service's own projectorwarehouse.exception-management.analyticsInternalRoadmap (declared in ADR 0004, not built)

Planned, not built​

  • workforce-management PathUnderstaffed and network-inventory-planning TransferStuckDetected: analytics-topic-only today; a promotion PR on the producer side is the precondition (dashed edges above).
  • Manual case creation, associate paging, labor-cost correlation: excluded from v1 by ADR 0001.

Team relationships​

One team owns the whole context (single repo, single deployable pair cmd/api + cmd/mcp). Upstream contracts are verified per producer against the producer's own apis/asyncapi.yaml; changes arrive as fleet PRs, not negotiation.