Skip to content

Amends #8: abnormal terminations are retried only when the step allows it #24

Closed

Description

@marlon-sousa

Agreed design as of 2026-10-02. Amends #8 (proposal 0008, Steps). Decided by the maintainer during the evaluation of #9; there was no separate original proposal.

Summary

An abnormal termination is retried only when the step's descriptor allows it. Proposal 0008 treated it like a retriable failure by default.

Motivation

An abnormal termination is an error the step did not anticipate. Its side effects may already have happened, for example a payment sent before the error, so retrying it by default is unsafe. A step author who knows that retrying an unexpected error is safe says so explicitly.

Agreed design

  1. abnormal termination retriable is a setting of each step's descriptor (Running a workflow #9), false unless the descriptor says so, with no workflow-wide default. It uses the same word as a failure's retriable flag.
  2. When it is false, an abnormal termination makes the step Failed at once, and its failure hook is called with the cause "abnormal termination". By default, the journey fails.
  3. When it is true, an abnormal termination is retried like a retriable failure, within the same retry budget; when the budget is exhausted, the failure hook is called with the cause "retries exhausted".
  4. This replaces item 6 of proposal 0008, "By default it is treated like a retriable failure, since nobody knows whether trying again would help", and adds "abnormal termination" to the causes the failure hook may receive (item 10 of proposal 0008).
  5. The setting replaces "abort on abnormal termination", which earlier drafts of Running a workflow #9 had; an abnormal termination never aborts the journey. It always ends as a failure, at once or after its retries.

Changes when accepted

Tier

Activity

  1. added
    proposal
    status: evaluating
    tier: 1
    on Oct 2, 2026
  2. marlon-sousa commented on Oct 2, 2026

    @marlon-sousa
    ContributorAuthor

    Claude summary

    Posted by Claude (Claude Code) from a maintainer's account, as described in PROCESS.md.

    Decided by the maintainer during the evaluation of #9, outside the thread, on 2026-10-02. The issue body holds the agreed design. Nothing is open. This proposal is ready for a maintainer to set status: ready; its cases and its proposal file will then be written together, as for #8.

  3. added
    status: ready
    and removed
    status: evaluating
    on Oct 2, 2026
  4. github-actions commented on Oct 2, 2026

    @github-actions

    Accepted on 2026-10-02 in #25.

  5. locked as resolved and limited conversation to collaborators on Oct 2, 2026
  6. added
    amends: 8
    on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    amends: 8proposalstatus: readytier: 1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions