Skip to content

Cases for spec#9 (Running a workflow) #9

Closed

Description

@marlon-sousa

Cases for itinera-dev/spec#9 (Running a workflow)

Opened before the proposal is accepted, so the checklist exists while it is evaluated (waiting for spec). Updated on 2026-10-02 to match the agreed design in spec#9. The cases pull request may be merged once spec#9 is status: ready.

What the cases must check

The workflow instance and its data

  • The initial data of the workflow instance is the initial content of the data bag, and inputs can read it.
  • The "journey started" event lists the initial keys, not their values.
  • A contribution may overwrite a key from the initial data (with the overwrite event, proposal 0008).

Journey IDs

  • Without a custom generator, the journey ID is a UUID v4.
  • With a custom generator, the journey ID is the generator's value.

Order and the scan

  • Steps run in the order of their descriptors, visible in the order of events.
  • A contribution from one step is available as an input to a later step.
  • Succeeded and skipped steps are passed over; a journey whose steps all succeeded or were skipped succeeds.
  • A failed step ends the journey; the steps after it stay not executed.
  • Run-once: a step that succeeded, failed or was skipped never runs again.

Retries

  • Without a stated retry budget, a retriable failure is not retried: the failure hook is called with the cause "retries exhausted".
  • With a budget of N, a step is attempted at most N + 1 times.
  • An abnormal termination is not retried unless the step's descriptor marks it retriable (abnormal termination retriable); when allowed, it shares the budget with retriable failures.
  • Attempts are counted from 1; the result shows the attempt count.
  • An abnormal termination that is not retriable makes the step fail at once, with the cause "abnormal termination".

The result

  • All steps successful: the journey succeeded, with a data bag holding the initial data plus every committed contribution.
  • A failed journey's result names the failed step and its reason or cause, and carries the data bag as it stood.
  • An aborted journey's result names the step during which it was aborted (status Aborted), the abort reason, and the data bag as it stood; later steps are not executed.
  • Every step's status and attempt count are in the result.

Activity

  1. added
    tier: 1
    implements-proposal
    waiting for spec
    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

    implements-proposaltier: 1waiting for spec

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions