Skip to content

Cases for spec#11 (Events) #11

Closed

Description

@marlon-sousa

Cases for itinera-dev/spec#11 (Events)

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#11. The cases pull request may be merged once spec#11 is status: ready.

What the cases must check

Reporters and delivery

  • With the default dispatcher, every reporter the workflow lists receives the same events, in sequence order, in the order added.
  • A dispatcher given to the executor is used instead of the default, and the workflow's reporters are added to it.
  • A given dispatcher that ignores additions delivers only to its own reporters; the workflow's reporters receive nothing.
  • A reporter that throws aborts the journey with the reason "reporter threw", and the other reporters still receive journey_aborted.

The stream

  • Sequence numbers increase within the journey, and every event carries the journey ID and workflow name.
  • Events of a failed attempt remain after its contributions are discarded.
  • journey_aborted is the last event of an aborted journey, after the events that already happened.

The catalogue

  • A complete successful journey produces exactly: journey_started, then for each step attempt_started, step_succeeded, hook_called (when a hook exists) and contribution_committed per key, then journey_succeeded.
  • step_failed carries the retriable flag and the reason; step_skipped its reason; abnormal_termination the error message.
  • hook_called carries the policy, hook, step, attempt and the lifecycle returned (or none).
  • contribution_committed and data_overwritten carry the key and the source (step, or policy and hook).
  • journey_failed and journey_aborted carry the step and the reason.
  • Engine events never carry data values; journey_started carries the initial keys only.

What steps and hooks emit

  • A step's step_info, step_warning and step_error carry the step, the attempt, the message and the data.
  • A hook's journey_info, journey_warning and journey_error carry the policy and hook, and for a step hook the step and attempt.
  • Data that cannot be serialized still produces the event, with the marker.

Provisional names

  • Every provisional event name in the existing cases is replaced by its catalogue name.

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