Repository navigation
Closed
Labels
amends: 9Amends accepted proposal 0009proposalA proposed change to Itinera's behaviourstatus: readyAgreed; ready for the spec pull requesttier: 1Belongs to tier 1
Description
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
- 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.
- 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.
- 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_abortedis 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).
- Abort reasons for configuration errors. The abort reasons
step could not be built,required data missing,wrong typeandinvalid lifecycleof 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. - 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.mdgains 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
Metadata
Metadata
Assignees
Labels
amends: 9Amends accepted proposal 0009proposalA proposed change to Itinera's behaviourstatus: readyAgreed; ready for the spec pull requesttier: 1Belongs to tier 1
Activity
marlon-sousa commentedon Oct 2, 2026
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.github-actions commentedon Oct 2, 2026
Accepted on 2026-10-02 in #35.