Skip to content

Execution: safe retries for transient failures (fail-fast) #11

Closed

Description

@blindzero

Summary

Add a bounded retry mechanism for transient (cloud-style) failures while keeping IdLE fail-fast. Retries must be restricted to idempotent or explicitly safe-to-retry steps, use configurable max attempts and backoff, and record attempt counts and final outcome in structured step results.

Scope

Introduce a safe retry mechanism for transient failures common in cloud operations, while keeping the engine fail-fast.

Rules

  • Fail-fast stays the default: if a step still fails after retries, the run stops.
  • Retry is allowed only when safe:
    • Only for steps that are idempotent (e.g., Ensure*) or explicitly marked SafeToRetry by the step/provider.
  • Retry only transient errors:
    • Prefer an explicit transient flag (e.g., error metadata) from provider/step.
    • If not available, use a minimal default heuristic (timeouts, rate limits, 5xx).
  • Bounded attempts + backoff:
    • Configurable MaxAttempts (default 3–5).
    • Configurable delay/backoff between attempts (start simple; jitter optional later).
  • Structured reporting:
    • Step result records Attempts, final Status, and the last error.

Out of Scope (Deferred)

Acceptance Criteria

  • Steps can opt into retries via idempotency/safe-to-retry metadata.
  • Transient failures trigger retry up to max attempts; non-transient failures do not retry.
  • Default behavior remains fail-fast after retries are exhausted.
  • Results include attempt count and clear final status/error.
  • Tests cover: transient retry success, transient retry exhausted, non-transient no retry.

Activity

  1. self-assigned this
    on Dec 28, 2025
  2. changed the title [-]Execution policies: retry / continueOnError with structured results[/-] [+]Execution policies: retry and continueOnError with structured results[/+] on Jan 1, 2026
  3. changed the title [-]Execution policies: retry and continueOnError with structured results[/-] [+]Execution: safe retries for transient failures (fail-fast)[/+] on Jan 1, 2026
  4. added a commit that references this issue on Jan 3, 2026
  5. blindzero commented on Jan 3, 2026

    @blindzero
    OwnerAuthor

    PR #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementprio:hightype:core

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions