Repository navigation
Numbered Issue branches after a merged or closed PR - #21
Merged
Merged
Conversation
When the highest-numbered Issue branch's PR is merged or closed, start fresh on issue-<n>-branch-<k+1> from the Base branch, even if GitHub deleted the merged branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 25, 2026
Closed
Merged
JacobStephens2
added a commit
that referenced
this pull request
Sep 30, 2026
Parallel Tickets (#143) and the Spec PR's Repair loop and Self-merge landed on main. The Tickets checklist now follows the parallel loop: it is written once per batch of Tickets started and whenever one ends, and the Spec PR opens after the first Ticket lands. Tests that need #21 to land before #22 starts run with parallel 1, and the Spec PR is found by its head rather than by its index. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 30, 2026
This was referenced Oct 18, 2026
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When the highest-numbered Issue branch's PR is merged or closed, the Run now starts fresh on the next number instead of stopping with "numbered Issue branches are not supported yet".
A Fresh numbered branch gets the fresh prompt, is created from the Base branch, and must not already exist locally, the same as
issue-<n>.Tested seam: the
thirdshiftCLI (tests/numbered_branches.rs). The tests cover merged →-branch-2, closed →-branch-2, deleted mergedissue-7→-branch-2, open PR on-branch-2→ Continuation, merged-branch-2→-branch-3(including when it was deleted), fresh prompt, PR head and "Closes #7", and a local-branch-2stopping the run.Evidence
issue-7with a MERGED PR → exit 1:issue-7 can't be continued (its PR …/pull/1 is merged), and numbered Issue branches are not supported yet(7 of 8 new tests failed).After: the Run implements on
issue-7-branch-2frommainand prints…/pull/2.cargo test: all suites pass (9/9 innumbered_branches).Merge Danger
Door: two-way
Selection logic only; reverting restores the old error.
Blast Radius: small
Only affects Runs on issues whose latest Issue branch PR is merged or closed. Those Runs used to fail during pre-flight.
Unaddressed findings
Standards
AGENT_COMMITS_AND_OPENS_PRintests/support(Duplicated Code): refactoringfresh_run.rsis outside this issue. The local helper needs the branch as a parameter.["Add feature", "Initial commit"]assertion (Duplicated Code): the testing guidance asks for expected values spelled out from the scenario, and a literal log reads better than a helper.Scenario::last_pr()helper forgh_state()["prs"]…last()(Message Chain): it has one use, so a helper would be speculative.Spec
Closes #7
🤖 Generated with Claude Code