System Design Atlas

Predictive machine maintenance

07 / 10Worked example

Critical flow

What proof is retained for maintenance findings after the lost result, and what can be done afterwards?

Now the architecture is tested at its sensitive point of failure. Model processing uniquely stores findings and window reference. Two examiners attempt release and rejection. The local version serializes the decisions; only the successful release commit creates a maintenance order.

Starting point Computation remains separate from the maintenance core.

Assumptions for the example case

Own fictitious example design. Fictional suggestions for a single machine based on vibration trends, with human approval of work orders. Measurement windows last 60 seconds and are closed on the left, open on the right; a measurement at exactly 60 seconds belongs in the next window. All figures and test goals are illustrative assumptions.

Critical flow with commit and failure point

Critical flow · Commit and failure point

1
Feature and model processing → Maintenance APIPropose a finding for the window and R-30
2
Maintenance API → Relational maintenance storeCommit the finding with uniqueness enforced
3
Maintenance interface → Maintenance APISend approval with the expected version
4
Maintenance API → Relational maintenance storeCommit approval and exactly one work order
5
Maintenance API → Production planningHand over the approved work order

One finding per measurement window and model revision creates at most one work order approved by a human.

Model processing uniquely stores findings and window reference. Two examiners attempt release and rejection. The local version serializes the decisions; only the successful release commit creates a maintenance order.

Ordering and failure outcomes

Required order
Model processing uniquely stores findings and window reference. Two examiners attempt release and rejection. The local version serializes the decisions; only the successful release commit creates a maintenance order.
Crash before commit
Maintenance finding B-30 has no new durable evidence yet. The same command can be checked again; unconfirmed intermediate work provides no domain guarantee.
Crash after commit, before response
The command journal entry records the original result. Identical replay returns that evidence; a fresh view of the current state comes from the read contract.
External uncertainty
Missing feedback from the sensor source leaves the outcome unknown. Confirmed acceptance, confirmed rejection and missing evidence have distinct states; the responsible domain role investigates using the same reference.

One approval commit creates one maintenance order

One approval commit creates one maintenance order

One approval commit creates one maintenance order.

Model processing uniquely stores findings and window reference. Two examiners attempt release and rejection. The local version serializes the decisions; only the successful release commit creates a maintenance order.

A machine finding per measurement window and model revision generates at most one approved maintenance order; a model output alone does not trigger a physical equipment effect. The exercise specifies the input and expected result.

Alternative considered
Submitting a new request after a response is lost can execute the same business operation again.
Trade-off
Open evidence from sensor source requires a work list.
Reassess
Frequent unresolved outcomes require a more reliable contract for external reconciliation.

Try it yourself

Mark the commit point, failure point and next permitted action. Explain the effect of an identical retry.

A hint for your attempt

Trace the same request through the datastore and response path.

Compare with a possible solution
Flow and failure
Model processing uniquely stores findings and window reference. Two examiners attempt release and rejection. The local version serializes the decisions; only the successful release commit creates a maintenance order.
Commit and replay
Domain change and command result are stored together before response. Loss of response after commit leads to reading this result. For maintenance finding B-30, this does not create a second effect.

Apply to your project

What feedback could be missing even though the underlying action has already taken place?

Next: False alarm rate requires confirmed feedback.