Someone edited the transitions dict "temporarily, for the benefits
deadline" and gave draft a direct edge to published. The state
machine now happily walks a draft straight past legal review — run
the broken version and watch the trail.
Fix the topology so the only way out of draft is legal_review,
and the walk below has to earn its way to published.
Expected output:
draft -> draft -> legal_review -> approved -> published
The break is on lines 2, 3 — but read the whole snippet first.