Skip to Content

Runs, states and sign-in

A core walks a journey’s steps one by one, so the rig expands anything that stands for other steps before a core sees it.

A core walks a journey's steps one by one and leaves one step record for each, in order. So the rig expands anything that stands for other steps before a core sees it, and the same way for every core. pitafix rig show --json prints the expanded steps.

  • use is replaced by the steps of its run, in place. The use step takes no id, label or expect of its own, since it stands for other steps. Put those on a step of the run. A run used twice in one journey repeats its step ids, and the check refuses that ("x" is used twice), so use a run once in a journey.
  • state goes into the state's way in. With as and open it becomes two steps: a sign_in of the person, with the id <id>-sign-in, then an open of the address with the step's own id, label and expect. With open alone it is one open. With as alone it is one sign_in. A state with neither can't be gone into, and the check says so.
  • sign_in as a person who gets in by cookies stays one sign_in step: the core sets the cookies. As a person who gets in by steps, it is replaced by those steps. The last of them takes the sign_in's own id, label and expect, and the others go under its id with a hyphen and their own, as sign-in-type-mail.

Because of this, the N-th step a rig journey lists is not always the N-th step a core walks, and the test and the claims count the expanded list.

On this page