Skip to content

Amends #9: configuration errors found while running #32

Closed

Description

@marlon-sousa

Agreed design as of 2026-10-02. Amends #9 (proposal 0009, Running a workflow). Decided by the maintainer during the evaluation of #11; there was no separate original proposal.

Summary

Defines configuration errors, when they are caught, and what the event stream and the result show when one is found while a journey runs. Adds the abort reason invalid configuration.

Motivation

Many things can be wrong with how a workflow is put together or supplied, and the workflow author is responsible for all of them. Some can be caught before anything runs, others only while running. Developers need one rule for both, and operators need the event stream to show exactly what happened before the error and what the error was.

Agreed design

  1. A configuration error is anything wrong with how a workflow is put together or supplied, which its author is responsible for. Examples: a hook defined twice for one step or workflow, two steps with the same name, a policy requesting a role the workflow does not provide, an input adapter for a step or key that does not exist, a step the executor cannot run, a step that cannot be built, required data missing, a value of the wrong type, a hook returning a lifecycle it may not return.
  2. Caught when the workflow is built, whenever possible: by the compiler, the macros or the builder, before any journey exists. Then no journey starts, the ID generator is not called, no event is emitted, and the developer receives every violation.
  3. Always caught while the journey runs, at the latest. A configuration error found while running aborts the journey:
    • every event already emitted remains: the stream is never rewritten;
    • journey_aborted is the last event, stating what went wrong: the step concerned, if any, the abort reason and its details;
    • the journey's result is aborted, with the same step, reason and details (proposal 0009).
  4. Abort reasons for configuration errors. The abort reasons step could not be built, required data missing, wrong type and invalid lifecycle of proposal 0009 are configuration errors found while running. A new abort reason, invalid configuration, covers errors in how the workflow is put together (such as a hook defined twice, two steps with the same name, or a missing role) when they are found only once the journey runs; it carries every violation found.
  5. Not configuration errors: a hook that throws (hook threw) and a reporter that throws (reporter threw) are faults while running, not in the configuration; they also abort the journey, with the same rules for the event stream.

Changes when accepted

  • proposals/0009-running-a-workflow.md gains the line "Amended by Amends #9: configuration errors found while running #32", and nothing else.
  • The abort reasons become: step could not be built, required data missing, wrong type, invalid lifecycle, invalid configuration, hook threw, reporter threw.

Tier

Activity

  1. 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 #11, 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.

  2. added
    proposal
    status: evaluating
    tier: 1
    amends: 9
    status: ready
    and removed
    status: evaluating
    on Oct 2, 2026
  3. github-actions commented on Oct 2, 2026

    @github-actions

    Accepted on 2026-10-02 in #35.

  4. locked as resolved and limited conversation to collaborators 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: 9proposalstatus: readytier: 1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions