Skip to content

--prepare commits the build-pin event on the starting branch before switching to the feature branch #3628

Backlog

Description

@clabonte

Symptom

specfuse-loop --feature F --prepare-only, started on main with the new feature folder uncommitted, left a commit on local main: chore(loop): F build pin recorded. That commit appends driver_build_pinned to the feature's events.jsonl. The driver then created the feature branch from it and committed the folder there.

After the feature merged (squash), local main could not fast-forward to origin/main ("Diverging branches can't be fast-forwarded"). The stray commit had to be reset away by hand. Its line was already in the squashed log.

Expected

No driver commit lands on the branch the run started from. The build-pin event is recorded on the feature branch, after ensure_feature_branch / the prepare step has switched to it, or it stays in the uncommitted log until the first commit on that branch.

Repro

  1. On main, with a clean tree apart from a new, uncommitted feature folder (as /draft-feature leaves it), run specfuse-loop --feature F --prepare-only.
  2. git log --oneline origin/main..main now lists chore(loop): F build pin recorded.

Seen while running FEAT-LOOP-2026-0252.

Activity

  1. added
    bug
    on Nov 27, 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