You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
specfuse run cuts a missing feature branch from a base that lacks the feature folder, then crashes #3601
On a working branch work, create and commit a feature folder .specfuse/features/FEAT-X-0001-demo/ whose PLAN.md front matter has branch: feat/FEAT-X-0001-demo and base: main. The branch feat/FEAT-X-0001-demo does not exist locally, and main does not contain the feature folder.
Run specfuse run.
Created feature branch 'feat/FEAT-X-0001-demo' from 'main'.
Traceback (most recent call last):
...
File ".../specfuse/loop/plan_baseline.py", line 55, in load_plan_graph
FileNotFoundError: [Errno 2] No such file or directory: '.specfuse/features/FEAT-X-0001-demo/PLAN.md'
What happens
ensure_feature_branch creates the missing branch from the declared base. The feature folder is committed only on work, so the new branch does not contain it, and the next read of PLAN.md raises an unhandled FileNotFoundError. The operator is left on the new branch, which lacks the feature.
Expected
Refuse before switching branches, with a message naming the missing PLAN.md, the base, and how to proceed, and leave the operator on the branch they were on. Never a traceback, never a branch switch.
Activity