Skip to content

Cases for proposal 0010 (Hooks, lifecycles and workflow roles) - #19

Merged
marlon-sousa merged 1 commit into
mainfrom
cases/0010-hooks-lifecycles-and-roles
Oct 2, 2026
Merged

marlon-sousa merged 1 commit into
mainfrom
cases/0010-hooks-lifecycles-and-roles

Conversation

@marlon-sousa

Copy link
Copy Markdown
Contributor

Closes #10

Refs itinera-dev/spec#10, status: ready. Merged before the proposal pull request.

Scenarios (19)

  • order-and-lifecycles.feature (6): the retry hook runs only while a retry is possible; the abnormal termination hook runs before the failure hook; FinishWorkflow from a success hook; FailWorkflow from a success hook (step stays succeeded, contributions committed, reason named in the result); FailWorkflow from a retry hook skips the failure hook; an invalid lifecycle aborts.
  • workflow-hooks.feature (5): success and failure hooks run once; neither runs on abort; workflow hooks receive data from the workflow (required, optional, wrong type).
  • reading-and-writing.feature (5): a hook that throws aborts, and no hook runs afterwards; the attempt number and journey ID; a step hook's data resolved through its step's adapter; a failure hook's contribution is committed and recorded as the hook's; a workflow hook's contribution is in the output.
  • roles.feature (3, one an outline over two workflows): calling a role's operation; a missing role refused at admission; the same policy in two workflows.

Catalogue

A new section, Hooks, lifecycles and roles, with every sentence these cases use; the violation role not provided. Written to merge cleanly with #18 in either order.

🤖 Generated with Claude Code

Order of hooks and lifecycles, workflow hooks, reading and writing,
hooks that throw, and workflow roles, with their catalogue sentences.

Closes #10

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@marlon-sousa
marlon-sousa merged commit 27728cc into main Oct 2, 2026
2 checks passed
@marlon-sousa
marlon-sousa deleted the cases/0010-hooks-lifecycles-and-roles branch October 2, 2026 19:49
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#10 (Hooks, lifecycles and workflow roles)

1 participant