debugArtifactsWrite property
The final diagnostic sidecars are written once per attempt. Keeping the in-flight operation here lets success and failure cleanup converge on a single write when both paths observe the same attempt outcome.
Implementation
Future<void>? debugArtifactsWrite;