Critical flow
What evidence remains for a forecast run after a response is lost, and what may happen next?
The architecture is now tested at its critical failure point. Accept a new measurement revision durably, then start a new comparison calculation. A late job using an older measurement revision may update the current comparison reference only after a version check; otherwise its result remains historical.
Starting point Computation jobs use frozen manifests.
Assumptions for the example case
A fictional example design for a generation facility using fixed 15-minute intervals and separate forecast and measurement versions. Each interval spans 900 seconds, inclusive at the start and exclusive at the end; a measurement at exactly 900 seconds belongs to the next interval. All figures and test targets are illustrative assumptions.
Critical flow with commit and failure point
Critical flow with commit
Each comparison binds forecast version, measurement revision and the same interval.
Ordering and failure outcomes
- Required order
- Accept a new measurement revision durably, then start a new comparison calculation. A late job using an older measurement revision may update the current comparison reference only after a version check; otherwise its result remains historical.
- Crash before commit
- No new durable evidence exists yet for forecast run P-33. The same command may be checked again; unconfirmed intermediate work provides no business 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
- A missing response from the measurement source leaves the outcome unknown. Confirmed acceptance, definite rejection and missing evidence receive distinct states; the responsible role investigates using the same reference.
Older jobs must not overwrite current measurement revisions
Older jobs must not overwrite current measurement revisions.
Accept a new measurement revision durably, then start a new comparison calculation. A late job using an older measurement revision may update the current comparison reference only after a version check; otherwise its result remains historical.
Each comparison identifies the forecast version, measurement revision and matching time interval; later actual measurements do not change historical forecasts. 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
- Missing evidence from the measurement source requires a worklist.
- 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
- Accept a new measurement revision durably, then start a new comparison calculation. A late job using an older measurement revision may update the current comparison reference only after a version check; otherwise its result remains historical.
- Commit and replay
- The business change and command result are stored together before the response. If the response is lost after commit, read this result. Forecast run P-33 receives no second effect.
Apply to your project
What feedback could be missing even though the underlying action has already taken place?