fix(#3354): preserve stored total_phases when milestone is unbounded (#3480)

* fix(#3354): preserve stored total_phases when milestone is unbounded

* chore(#3354): backfill PR number in changeset fragment

---------

Co-authored-by: sim <sim@local>
This commit is contained in:
Tom Boucher
2026-08-14 11:28:40 -04:00
committed by GitHub
parent 26f8015cc2
commit 70b5c1a1bf
3 changed files with 197 additions and 16 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
pr: 3480
---
A genuinely milestone-sectioned ROADMAP whose STATE.md asserts a milestone token matching no heading no longer has progress.total_phases clobbered to the on-disk phase-directory count (e.g. 25 -> 4) on every state-mutating command. The stored total is preserved (or the key omitted when nothing is stored), a stderr warning names the unbounded milestone token, and progress.percent stays withheld as before.