Propagate cancellation and preserve resumable state

This commit is contained in:
2026-11-20 05:53:49 +00:00
parent a6c6f1e4ab
commit c7a5ff316d
21 changed files with 356 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
package app
import (
"context"
"errors"
"fmt"
"sort"
@@ -34,7 +35,7 @@ func finalizeInvocation(runtime *invocationRuntime, operationErr error) (*RunSum
// Read durable authority after a failure: checkpoint saves can succeed
// even when terminal persistence fails.
var err error
evidence, err = runtime.manifestStore.Load(runtime.ctx, runtime.manifestPath)
evidence, err = runtime.manifestStore.Load(context.WithoutCancel(runtime.ctx), runtime.manifestPath)
if err != nil {
resultErr = errors.Join(resultErr, fmt.Errorf("read durable run evidence: %w", err))
evidence = nil