Repository navigation
Closed
Labels
bugSomething isn't working
Description
This was generated by AI during triage.
Agent Brief
Category: bug
Summary: Pickup finds candidates only through GitHub's label-filtered issue listing. When GitHub's label index omits an issue, Pickup never sees it and logs "no Ready issue", so the issue sits idle indefinitely with nothing in Needs you.
Current behavior:
GitHub::issues_labelled (src/github.rs) lists candidates with REST repos/{repo}/issues?state=open&labels=ready-for-agent. Its doc comment already notes that gh issue list --label (search) can lag, but the REST label filter can be wrong too.
Evidence, 2026-11-19, thirdshift 0.38.0:
- Educational-Travel-Adventures/tourbot#2814 (
bug,ready-for-agent) was labelled at 2026-11-18 19:39 UTC−5. It met every Ready rule in the guide: no Claim or other blocking labels, not a sub-issue, no blockers, no Issue branch or PR, and long settled. - For about 12 hours, every tourbot Pickup on dev, factory, preview and Lima logged
no Ready issue on Educational-Travel-Adventures/tourbot, with no per-issue skip reason. - At 07:45 the label search (
search/issues … label:ready-for-agent, as used bygh issue list --label) returned 795, 797, 2845 and 2855, but not 2814. GraphQLrepository.issues(labels:["ready-for-agent"], states:OPEN)returned 2814 as well. - Removing and re-adding
ready-for-agentput #2814 back in search within 15 seconds, and REST?labels=then listed it too. (REST wasn't queried before the relabel. That it omitted #2814 is inferred from the Pickups finding nothing while #2814 met every Ready rule.)
Desired behavior:
- Pickup also finds
ready-for-agentissues that the REST label filter misses. One option is to list candidates with GraphQLissues(labels:…, states: OPEN). Another is to cross-check REST against GraphQL and take the union. Pick whichever keeps the Pass's GitHub Quota cost about the same. - When the two sources disagree, Pickup logs one line naming the missing issues, so the gap shows up in the Activity log rather than only as "no Ready issue".
Key interfaces:
GitHub::open_issues_labelled/issues_labelledinsrc/github.rs, and their callers in the Pickup Pass (src/pass.rs).- Triage Passes list candidates the same way. Check whether they should share the fix.
Acceptance criteria:
- A fake-gh test: the REST label listing omits an issue that GraphQL returns, and the issue is otherwise Ready. Pickup takes it.
- The disagreement is logged once per Pass, naming the issue.
- Pickup's GitHub calls per Pass rise by at most one request, with the existing tests' call counts updated.
Out of scope:
- Ready rules themselves (blockers, settling, Claims).
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
Handle open candidate GraphQL query in Console start-fixture stub (#2304
Merge pull request #2313 from JacobStephens2/issue-2304
Cross-check REST and GraphQL candidate listings and log disagreements (…
Update verify-pickup coverage sync for JacobStephens2#2304