mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-09-19 08:11:52 +08:00
2c10d5ba45
Add a `workflow.route` customization (oneshot, full, auto; default auto) to bmad-build and bmad-build-auto. A route named in the invocation becomes `--set workflow.route=<value>` on the render command. Templates render only the pinned route's continuation; auto renders both plus the selection rule, byte-identical to before apart from reporting. Story frontmatter gains `route_source` (pinned or auto), and a pinned run halts when a resumed spec's recorded route differs. A pinned oneshot run does what it was told, how it was told: the mid-build stop conditions narrow to an intent gap. Work turning out larger than expected is the routing call the pin already made, and no longer stops the run. A hole in the intent still does, because the only alternative is to guess: bmad-build asks the human, bmad-build-auto halts blocked with `intent gap`. Give templates a `halt(message)` function so they can reject values they cannot act on; each build skill's workflow.md uses it to halt the render on a route outside oneshot, full, auto instead of silently rendering the auto path.