Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-26 21:07:53 UTC · snapshot created 2026-11-26 21:08:36 UTC · last check 2026-11-29 22:35:20 UTC

SYSE.38:4.7 - Develop diagnosis from the task path and build recoverable operations

Use the task’s causal path to choose observations. An accepted request may wait before dispatch, execute on a worker, call a dependency, commit an effect and return a result. A missing result can arise at any of those boundaries. Find the last boundary at which the particular attempt is known to have progressed and the next boundary for which evidence is missing or adverse.

Build competing explanations at that boundary. If a worker has started but no dependency response arrives, consider a call that was never sent, an unavailable route, refused access, slow execution and lost response. Choose an observation that separates consequential alternatives. A local successful ping cannot establish that the application identity can perform the required database operation. A diagnostic call through the application’s actual route can be more informative, but its side effects and added load must be acceptable. Keep suggestive evidence distinguishable from an observation that rules out an explanation.

Use reduction when the path is large. Compare a known working and failing population for one consequential difference, or inspect a boundary dividing the path into two regions. A successful response from the middle can eliminate some upstream explanations only for the work the response establishes for that attempt. A failing response from a substitute environment may expose a defect while leaving the production incident unexplained. Preserve a bounded repeatable case when one exists, so invasive experiments can move to a suitable environment under SYSE.33.

Choose mitigation by what it can restore, not by the elegance of its diagnosis. Restricting a costly optional feature may restore the core task while its cause remains uncertain. Adding workers helps a worker bottleneck only if the dependency can accept the added demand. Restarting can remove transient state and erase the best failure evidence at the same time; obtain the inexpensive decisive observations first when user harm permits that delay. When urgent action must come first, record that limitation and do not manufacture a stronger causal claim afterward.

A repeated failure is also a design input for the operation itself. Give important state-changing operations a stable way to recover their result after a lost response. Where the implementation supports it, a retained operation identity can link the request, effects and result, allowing a caller to resume observation instead of creating another attempt. This mechanism needs a defined retention interval and qualified behavior under duplicate requests and concurrent consumers. Merely attaching a request ID to a log does not supply deduplication or recoverability.

Build recovery procedures from observed states and allowed transitions. For each relevant partial state, determine what can be inspected, which continuation is safe, which prior state remains usable and what evidence completes the user’s task. Use applicable exercises of interruption states, including loss of the controller while the target continues, and exercise any consequential state they leave uncovered. Keep access, dependency availability and recovery capacity within the supported operating arrangement. A dormant script with expired credentials cannot provide a return. Use the exercise results to improve the procedure and the observations it needs.

In ParcelWorks, the missing deployment result can require different continuations. Before dispatch, restoring capacity lets the original request proceed. After h2 has started with c1, the continuation first establishes that partial runtime and corrects its effective configuration. A third history can contain a completed deployment whose reply was lost: recover and return the existing result instead of redeploying. These histories require different actions even though the user sees the same timeout. An unrelated payment service applies the same reasoning to a possibly committed payment, but needs its own transaction and reconciliation contract; the deployment correction is not a transferable payment-retry recipe.