Skip to main content

EventStorming

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.

Process-level boards in the ddd-crew EventStorming glossary & cheat sheet notation. Every sticky comes from model.yaml. Every hotspot is a gap or risk in the model, and the table at the end says where each comes from. The network-wide board is EventStorming big picture.

Legend​

StickyColourMeaning here
Commandblue #a5d8ffRecordObservation, Recompute
Aggregateyellow #ffec99NodeScorecard
Domain Eventorange #ffc078an event this context publishes or consumes
Policylilac #d0bfffa rule from policies or business_decisions (own or a neighbour's)
Read Modelgreen #b2f2bbdata read to decide or to answer a query
External Systempink #fcc2d7another bounded context
Hotspotred #ff8787an open question or risk in the model

1. Purchase-order facts become observations​

Derived from: model.yaml → contexts[node-performance].consumes, .aggregates[NodeScorecard].commands, .invariants (ErrDuplicateObservation), .ul[Late Ack Rate]; contexts[vendor-connectivity].publishes.

Omitted: the inbox write and the transaction. VendorShipmentConfirmed feeds no rate by itself; it links trackingNumbers to requiredShipBy.

2. Handover, promise and feed facts become observations​

Derived from: model.yaml → contexts[node-performance].consumes; contexts[shipping-and-tracking].policies[HandoverOnFirstScan], .publishes; contexts[delivery-promise].publishes; contexts[offer-availability].publishes.

Omitted: the poNumber join from a handover to its requiredShipBy, which happens at recompute time.

3. Facts the model gives no use​

Derived from: model.yaml → contexts[node-performance].consumes, .read_models (empty), .business_decisions; contexts[node-topology].publishes; contexts[vendor-connectivity].publishes.

4. Recompute and grade​

Derived from: model.yaml → contexts[node-performance].aggregates[NodeScorecard] (.commands, .transitions, .events, .throughput_estimate), .policies, .business_decisions.

5. Where the grade is used​

Derived from: model.yaml → contexts[delivery-promise].read_models[ScorecardView], .policies[ScorecardHandicap]; contexts[order-sourcing].read_models[ScorecardView], .policies[AssignmentCost]; contexts[vendor-connectivity].sync_calls; contexts[node-performance].rest.

Omitted: NodeThresholdBreached goes to analytics only. "Scorecard query" is not a declared read model: it reads the NodeScorecard table directly (read_models is empty).

Sticky inventory​

StickyKindModel evidence
RecordObservation, RecomputeCommandaggregates[NodeScorecard].commands
NodeScorecardAggregateaggregates[NodeScorecard]
NodeScorecardUpdated, NodeThresholdBreachedDomain Event (published)publishes
Thirteen consumed eventsDomain Event (consumed)consumes
Count each source event oncePolicyinvariant ErrDuplicateObservation
GradingPolicypolicies[Grading]
ThresholdAlertPolicypolicies[ThresholdAlert]
Below minimum stays PROVISIONALPolicybusiness_decisions[1], invariant ErrInsufficientObservations
Observed facts only, never the declarationPolicybusiness_decisions[0]
Recompute batched per minutePolicyaggregates[NodeScorecard].throughput_estimate
HandoverOnFirstScanPolicy (neighbour)contexts[shipping-and-tracking].policies
ScorecardHandicap, AssignmentCostPolicy (neighbour)contexts[delivery-promise].policies, contexts[order-sourcing].policies
ScorecardView (two)Read Model (neighbour)read_models of delivery-promise and order-sourcing
Scorecard queryRead Model (aggregate read)rest
Six neighbour contextsExternal Systeminbound, publishes[].consumers, sync_calls of vendor-connectivity

Hotspots and where they come from​

HotspotSource in the model
No issuedAt on PurchaseOrderIssuedcontexts[vendor-connectivity].publishes[PurchaseOrderIssued].data lacks it; Late Ack Rate needs the start of the ack window. These pages read the CloudEvents time.
"Last 10% of the window": which window?ul[Late Ack Rate]: "window" could be the ack window or the scorecard window.
Which PromiseBroken cause counts against the node?publishes[PromiseBroken].data has cause; no rule in node-performance uses it.
Feed freshness sampling undefinedMetrics.feedFreshnessP95Minutes has no definition; InventoryFeedApplied has appliedAt but no asOf.
Consumed, but no command, metric or read modelconsumes lists NodeRegistered, NodeOperationalProfileDeclared, VendorOnboarded, SubmissionProcessed; read_models: []; commands has only RecordObservation and Recompute.
No nodeId in the payloadpublishes[VendorOnboarded].data, publishes[SubmissionProcessed].data in vendor-connectivity.
minObservations (resolved: 50, ADR 0002 A5, gap G33)invariant ErrInsufficientObservations.
Thresholds and "downward" undefinedpolicies[ThresholdAlert]: no per-metric threshold; four metrics are worse when higher.
Which window drives the handicap?delivery-promise and order-sourcing read NodeScorecardUpdated for both windows; neither policy names one.
No PROVISIONAL rule in the handicapcontexts[delivery-promise].policies[ScorecardHandicap] covers A-D and "no scorecard yet".
No named caller of GET /scorecards?grade=rest lists it; no inbound row names a caller.