Skip to content

Cases for proposal 0011 (Events), and the catalogue's event names - #22

Merged
marlon-sousa merged 1 commit into
mainfrom
cases/0011-events
Oct 2, 2026
Merged

marlon-sousa merged 1 commit into
mainfrom
cases/0011-events

Conversation

@marlon-sousa

Copy link
Copy Markdown
Contributor

Closes #11

Refs itinera-dev/spec#11, status: ready. Merged before the proposal pull request, and after #21.

Scenarios (13)

  • reporters-and-dispatchers.feature (4): the default dispatcher delivers the same events to every reporter the workflow lists; a dispatcher given to the executor is used and the workflow's reporters are added to it; a given dispatcher that ignores additions delivers only to its own; a reporter that throws aborts the journey and the others still receive journey_aborted.
  • stream-and-catalogue.feature (6): fixed fields and increasing sequence numbers; the exact stream of a complete journey (the order defined in spec#11 point 17a); a failed attempt's events remain and step_failed carries retriable and the code; hook_called records the lifecycle and journey_failed the step and reason; contributions record their source, and abnormal_termination; engine events never carry data values.
  • emitted-by-steps-and-hooks.feature (3): a step's step_warning with message and data; a hook's journey_info with policy, hook, step and attempt; unserializable data still produces the event, with the marker.

Also

  • Renamed every provisional event name in the cases of 0002, 0008 and 0009 to its catalogue name (journey_started, attempt_started, step_skipped, and so on).
  • FORMAT.md: event tables gain optional columns (retriable, policy, hook, lifecycle, source, message, data), and an empty cell is not compared; the runner's recorder is described.
  • STEPS.md: an Events and reporters section, and the final event names.

🤖 Generated with Claude Code

Reporters and dispatchers, the stream and the catalogue, and events
emitted by steps and hooks. Every provisional event name in the existing
cases is replaced by its catalogue name.

Closes #11

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@marlon-sousa
marlon-sousa merged commit d1fa4ab into main Oct 2, 2026
2 checks passed
@marlon-sousa
marlon-sousa deleted the cases/0011-events branch October 2, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cases for spec#11 (Events)

1 participant