Repository navigation
Closed
Labels
implements-proposalAdds conformance cases for an accepted proposal from itinera-dev/spectier: 1Belongs to tier 1waiting for specOpened early for design discussion; no pull request until the proposal is accepted
Description
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_abortedis 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 stepattempt_started,step_succeeded,hook_called(when a hook exists) andcontribution_committedper key, thenjourney_succeeded. -
step_failedcarries the retriable flag and the reason;step_skippedits reason;abnormal_terminationthe error message. -
hook_calledcarries the policy, hook, step, attempt and the lifecycle returned (or none). -
contribution_committedanddata_overwrittencarry the key and the source (step, or policy and hook). -
journey_failedandjourney_abortedcarry the step and the reason. - Engine events never carry data values;
journey_startedcarries the initial keys only.
What steps and hooks emit
- A step's
step_info,step_warningandstep_errorcarry the step, the attempt, the message and the data. - A hook's
journey_info,journey_warningandjourney_errorcarry 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.
Metadata
Metadata
Assignees
Labels
implements-proposalAdds conformance cases for an accepted proposal from itinera-dev/spectier: 1Belongs to tier 1waiting for specOpened early for design discussion; no pull request until the proposal is accepted
Activity