EventStorming (design level)
Notation from the ddd-crew EventStorming glossary and cheat sheet. Hotspots are gaps visible in the code or ADRs, not invented ones.
Legend
Source: ddd-crew cheat-sheet colours.
1. Sibling facts become a fail-closed snapshot
Source: internal/adapters/inbound/kafka/consumers.go, internal/adapters/outbound/postgres/planning_repositories.go, internal/domain/planning/snapshot.go, internal/application/usecases/simulate_transfer_options.go
2. Approve, reserve, release the pick, cancel
Source: internal/application/usecases/approve_transfer.go, transfer_facts.go, cancel_transfer.go, apply_transfer_released.go, internal/domain/transfer/saga.go, approval.go, workflow.go, internal/adapters/inbound/kafka/transfer_reply_consumer.go, transfer_reply_released.go
3. Floor and destination facts close the transfer
Source: internal/application/usecases/transfer_facts.go, analytics_hook.go, saga_health.go, internal/domain/transfer/workflow.go, cmd/network-inventory-planning/wire_sagas.go, main.go
Every transition emits TransferStateAdvanced, including IN_TRANSIT, ARRIVED,
RECEIVED (and UNFULFILLABLE and CANCELLED in diagram 2): each use case
calls publishStateAdvanced and wire_sagas.go wires the outbox publisher
into all of them.
Sticky inventory
- Read models:
site_capability,site_sku_demand,published_capacity_plan,processed_events,inter_warehouse_transferwithtransfer_audit,rebalance_runs, and the analytical fact tables (see Entity relationship). - Not on the board because not built: forecasting, auto-approval, route optimisation, dynamic order-site assignment.