fix(#4138): begin-phase without --phase exits non-zero and writes nothing (#4380)

* test(#4138): failing-first regression — begin-phase without --phase must fail closed

* fix(#4138): begin-phase without --phase exits non-zero and writes nothing

* chore(#4138): changeset fragment for begin-phase arg validation

* chore(#4138): backfill PR number in changeset

---------

Co-authored-by: sim <sim@local>
This commit is contained in:
Tom Boucher
2026-09-06 07:03:39 -04:00
committed by GitHub
parent 03738824de
commit 66e4034fe4
3 changed files with 374 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
pr: 4380
---
**`gsd-tools state begin-phase` without `--phase` now exits non-zero and writes nothing** — previously a missing, empty, or flag-shaped phase argument was silently accepted and wrote a null-phase STATE.md (removing `current_phase`/`current_phase_name` from frontmatter and serialising the literal `Phase null` into three body locations), and took a milestone claim for the phase "null". (#4138)