Skip to content

specfuse run cuts a missing feature branch from a base that lacks the feature folder, then crashes #3601

Done

Description

@clabonte

Reproduce

  1. 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.
  2. 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

  1. added
    bug
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions