🐉 Boss: the misplaced scrolls

Exercise 6 of 6 in chapter 10 · 340 XP · 5 objectives checked by tests

Topics covered: DebuggingWorkflowGuardsWorkflow eventsMailer

Pippin “simplified” the reservation book while Gorm was away at the beer fair. Since then:

Your mission

Four breakdowns, four different places. Find them and fix them, without breaking anything else.

Your tools

In the console:

workflow:dump reservation --dump-format=mermaid
debug:event-dispatcher workflow.reservation.entered.confirmed
debug:event-dispatcher workflow.reservation.leave.requested
debug:event-dispatcher workflow.reservation.guard.honor

In the preview: the reservation book (log in with gorm@drunken-dragon.me / barrel), then the 📬 mailbox to read what was really sent.

Tavern tip

A workflow is a description: most of these failures raise no error at all. Compare what the configuration describes with what the tavern must do, and read the scrolls that were sent, not just their subject.