Skip to content

Pickup can't see a ready-for-agent issue that GitHub's label listing omits (tourbot #2814 skipped for 12 hours) #2304

Closed

Description

@JacobStephens2

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 by gh issue list --label) returned 795, 797, 2845 and 2855, but not 2814. GraphQL repository.issues(labels:["ready-for-agent"], states:OPEN) returned 2814 as well.
  • Removing and re-adding ready-for-agent put #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-agent issues that the REST label filter misses. One option is to list candidates with GraphQL issues(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_labelled in src/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).

Activity

  1. added
    bug
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Nov 19, 2026
  2. removed
    in-progress
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions