Critical flow
What evidence remains for the analysis run after a lost response, and what action is allowed next?
Test the architecture at its critical failure point. The compute process first writes the complete result to a temporary artifact area. The API commits the final reference only after hash verification. A crash beforehand leaves an incomplete attempt; a crash afterwards is reconciled against the same manifest.
Starting point Isolate computation processes from the metadata core.
Assumptions for the example case
An original fictional design for a deterministic tabular analysis run with frozen input, recipe and environment. A compute job has a runtime budget of 600 seconds; at the limit it stops accepting new computation steps and is marked timed out. All figures and test targets are illustrative assumptions.
Critical flow with commit and failure point
Critical flow · Commit and failure point
Published results bind immutable hashes for input, recipe, and environment.
Ordering and failure outcomes
- Required order
- The compute process first writes the complete result to a temporary artifact area. The API commits the final reference only after verifying the hash. A crash beforehand leaves an incomplete attempt; a crash afterwards is reconciled against the same manifest.
- Crash before commit
- No new durable evidence exists yet for analysis run L-28. The same command can be checked again; unconfirmed intermediate work creates no domain commitment.
- 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 publication archive leaves the outcome unknown. Confirmed acceptance, confirmed rejection and missing evidence have distinct states; the responsible role investigates using the same reference.
Publish the final reference after hash verification
Publish the final reference after hash verification.
The compute process first writes the complete result to a temporary artifact area. The API commits the final reference only after verifying the hash. A crash beforehand leaves an incomplete attempt; a crash afterwards is reconciled against the same manifest.
A published result references immutable hashes of input, recipe and environment; new files create a new revision. The exercise specifies input and expected outcome.
- Alternative considered
- Submitting a new request after a response is lost can execute the same business operation again.
- Trade-off
- Pending publication archive evidence requires a work queue.
- 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
- The compute process first writes the complete result to a temporary artifact area. The API commits the final reference only after verifying the hash. A crash beforehand leaves an incomplete attempt; a crash afterwards is reconciled against the same manifest.
- Commit and replay
- The domain change and command result commit together before the response. A response lost after commit leads to reading that result, with no second effect for analysis run L-28.
Apply to your project
What feedback could be missing even though the underlying action has already taken place?