Repository navigation
Pass over a Spec that has no Startable Ticket - #921
Merged
Merged
Conversation
A Pickup run took a Spec whose open Tickets were all Unready or blocked, Claimed it and pushed its Spec branch, only for the Spec run to fail with nothing it could start. Pickup now reads a Spec's Tickets once it passes every other gate, and passes it over with a line naming why each open Ticket can't start. The rule is spec_run::unstartable, which the Ticket board's choice of next Ticket uses too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Tickets read comes after the candidate read, so a Spec whose last open Ticket closed in between was passed over with an empty "has no Ticket that can start" line. Rename the line's helper to what it returns, and the test helper that local closures shadowed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
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
A Pickup run now passes over a Spec that has no Startable Ticket, instead of Claiming it for a Spec run that can only fail.
There is now one rule, used by both callers:
Docs:
docs/guide.mdgets the new Ready issue condition and its passed-over line.GLOSSARY.mdgets Startable Ticket and an updated Ready issue.docs/code-navigation.mdis updated, andsite/docs/index.htmlis regenerated.Evidence
needs-info,thirdshift pickuptook Numbered Issue branches after a merged or closed PR #7: it addedin-progress, pushedissue-7, and the Spec run failed withTickets not done: #8(tourbot#880).After:
tests/pickup_run.rs:a_spec_whose_only_open_ticket_is_unready_is_passed_over_changing_nothing: exit 0, stderr#7 has no Ticket that can start: #8 labelled needs-info, GitHub state unchanged, noissue-7on origin, no email.a_spec_whose_open_tickets_are_all_blocked_names_why_each_cant_start:#8 blocked by #9; #9 labelled ready-for-human; #10 blocked by #30 (outside the Spec).a_spec_with_one_startable_ticket_and_one_unready_ticket_is_taken.a_handed_back_spec_with_no_startable_ticket_is_passed_over.once_its_ticket_is_no_longer_unready_the_next_pass_takes_the_spec.src/ready.rscover:every Ticket is closed. The review found this: both new tests failed with#7 has no Ticket that can start:before the fix.cargo clippy --all-targets -D warningsis clean. The fullcargo testpasses (55 test binaries, 0 failed).npm run docs:checkpasses.Merge Danger
Door: two-way
Nothing is written. Pickup only passes over more issues, and reverting restores the old behaviour.
Blast Radius: Pickup-and-Architect
A Spec with no Startable Ticket now waits for the Day shift instead of being Claimed and failed. Architect runs use the same Ready issue search, so such a Spec no longer counts as a Ready issue that holds them back. Pickup makes one extra GraphQL read (the Tickets query a Spec run already makes) for each Spec that passes every other gate. The Spec run's choice of next Ticket keeps its behaviour, now through the shared rule.
Unaddressed findings
Standards
Reason::Ticketusesowner/repo#n. Declined: the new line matches how the Spec run names the same Ticket in its lines and Tickets checklist (TicketBoard::nameinsrc/spec_run/ticket_board.rs). So the Pickup line and the Spec run'sunready: outside the Spec's repositoryline refer to that Ticket the same way.blocked byjoin inReason::BlockedandUnstartable::Blocked. Declined: they are one-line formats over different inputs. One takesu64numbers; the other takesIssueUrls, with(outside the Spec)marking. A shared helper would need both shapes and simplify nothing.spec_run::unstartable. Declined, as the reviewer also recommends.Ticketis the GitHub adapter's type, and the domain rule belongs with the Spec run that owns it.Factskeeps bothsub_issue_is_openandtickets(test fixture). Declined: whenticketsis unset,InMemory::ticketsderives startable Tickets fromsub_issue_is_open. That keeps the existingsrc/ready.rstests unchanged. The new tests build both from one list throughspec_with.Spec
TicketBoard::standingkeeps its own order of unready reasons for the Tickets checklist. Declined: the issue asks that "Pickup's check and the Spec run's choice of next Ticket use the same rule". Both now callspec_run::unstartable. The checklist's standing mixes in states outside that rule (landed but still open, in a cycle, running, failed), so it stays where it is. This is reporting, not a decision a Spec or the Day shift must make, so no issue was filed.Review coverage
site/docs/index.htmlwas not read by either reviewer. It is generated output, excluded aftercd site && npm run docsleft no further diff andnode generate-docs.mjs --checkexited 0; its source,docs/guide.md, was reviewed. Every other changed file was read.Closes #884
🤖 Generated with Claude Code
Built with claude · claude-opus-5-5 · medium
Security review outcome
No unaddressed introduced findings.