Skip to content

[BUG] bmad-loop resume requests rollback of already-committed work when orchestrator dies after successful dev session #100

Description

@guilherme-argentino

Description

bmad-loop resume requests rollback of already-committed work when orchestrator dies after successful dev session

Steps to reproduce

  1. Run bmad-loop — let it drive a dev story to completion
  2. Dev session finishes: commit pushed, sprint-status.yaml updated to done
  3. Orchestrator process is killed before it processes the Stop event (crash, OOM, or
    signal)
  4. Run bmad-loop resume
  5. Resume emits rollback instruction and treats the session as a failed attempt

Expected behavior

Resume should check sprint-status.yaml before issuing any rollback. If the story status is
done, treat the session as complete and advance — skip rollback entirely.

Actual behavior

Resume reads only state.json (stale — reflects pre-crash state), ignores
sprint-status.yaml, and instructs git reset --hard <baseline>, which would undo
already-pushed commits.

Screenshots

No response

Which area is this for?

Orchestrator / control loop

bmad-loop Version

0.8.1

Which coding CLI are you using?

Claude (claude)

Operating System

Linux

Relevant log output

Diagnostic dump (bmad-loop diagnose)

No response

Confirm

  • I've searched for existing issues
  • If I attached a diagnose dump, I reviewed it and confirmed it contains no PII, secrets, or project-specific information
  • I'm using the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions