Skip to content

Rerunning a Spec #149

Closed
Closed

Description

@JacobStephens2

Parent

#139

What to build

Running a Spec again picks up where the last Spec run stopped.

  • The Spec branch already exists, so the Spec run continues it (ADR 0002) rather than starting a numbered one, and reuses the draft Spec PR if there is one.
  • Closed Tickets are done and not run again.
  • A Ticket that failed before still has its Issue branch and draft PR, so its Run is a Continuation, targeting the Spec branch.
  • Every Ticket closed, Spec branch exists: go straight to the Spec review and the Spec PR phase.
  • Every Ticket closed, no Spec branch (the Spec was implemented some other way): stop with "every Ticket is closed and there is no Spec branch; nothing to do", exit 1, touching nothing, and without closing the Spec.

Acceptance criteria

  • After a Failed spec run whose one Ticket failed, fixing the cause and rerunning continues the same Spec branch and the failed Ticket's Issue branch, and ends with a ready Spec PR
  • The rerun does not start a Run for any Ticket closed in the first Spec run
  • The rerun updates the existing draft Spec PR rather than opening a second
  • With every Ticket closed and a Spec branch on origin, the rerun starts no Ticket Run and goes to the Spec review
  • With every Ticket closed and no Spec branch, the Spec run prints the "nothing to do" message, exits 1, creates no branch or PR and leaves the Spec open

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions