Skip to content

A Pickup run takes a Spec whose Tickets are all closed on every pass, and never reaches the next Ready issue #303

Closed

Description

@JacobStephens2

This was generated by AI during triage.

A Spec that is open and labelled ready-for-agent, whose Tickets are all closed and which has no Spec branch, is a Ready issue to every Pickup run. Each pass takes it, the Spec run it dispatches stops with every Ticket is closed and there is no Spec branch; nothing to do, and nothing is left behind to stop the next pass from taking it again. A higher-numbered Ready issue is never reached.

What happened

On this repository, #109 was open and labelled ready-for-agent with all five of its Tickets (#111 to #115) closed. Four thirdshift pickup base main passes run by hand within a minute each took it:

thirdshift: 06:30:06 taking Ready issue #109 "Run notifications by email, and a User config for per-machine defaults", as thirdshift https://github.com/JacobStephens2/thirdshift/issues/109 would
thirdshift: 06:30:08 every Ticket is closed and there is no Spec branch; nothing to do
thirdshift: 06:30:30 taking Ready issue #109 "Run notifications by email, and a User config for per-machine defaults", as thirdshift https://github.com/JacobStephens2/thirdshift/issues/109 would
thirdshift: 06:30:32 every Ticket is closed and there is no Spec branch; nothing to do

#176, the other open issue labelled ready-for-agent, was never looked at.

Why

  • The Ready issue rule never reads the state of a Spec's Tickets. A Spec with no Unready label, no Claim, no open blocker, no Issue branch and no pull request is a Ready issue, whatever its Tickets are.
  • The run it is dispatched as refuses such a Spec in its checks before any work, which is before the Claim is made. So the issue keeps ready-for-agent, gets no in-progress, and has no branch or pull request: it is the same Ready issue on the next pass.
  • A Pickup run takes the lowest-numbered Ready issue, one per pass, so every pass is spent on it.

The pass also ends as a failure rather than a skip, so a schedule that should be quiet reports a failed pass every interval. Whether each of those sends a Run notification when notifications are on was not checked.

#109 was closed by hand, which unblocks this repository. The same will happen to any Spec whose Tickets were all closed some other way while the Spec stayed open.

Activity

  1. added
    bug
    needs-triage
    on Oct 2, 2026
  2. JacobStephens2 commented on Oct 2, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: bug
    Summary: A Spec whose Tickets are all closed, with no Spec branch, is not a Ready issue: a Pickup run passes it over and says why

    Current behavior:
    standing_of, which decides whether a candidate is a Ready issue, reads whether the issue has sub-issues but not whether any is open. A Spec with every Ticket closed and nothing started is Standing::Ready, so the Pickup run takes it. The Spec run it dispatches then fails its check before any work (every Ticket is closed and there is no Spec branch; nothing to do), before the Claim is made, so nothing on GitHub changes and the next pass takes the same issue. Higher-numbered Ready issues are never reached, and each pass ends as a failure.

    Desired behavior:
    A candidate that has sub-issues, all of them closed, is passed over, like any other issue that is not a Ready issue. It gets one line on stderr with the others, in the form #<n> every Ticket is closed, and the search goes on to the next candidate. If nothing else is ready, the pass is skipped as no Ready issue and exits 0.

    Where the new reason sits in the order of the Ready issue rule: after the "already started" check. A Spec whose Tickets are all closed but whose Spec branch or pull request exists is already passed over as started, and keeps that line. So the new reason only ever applies to a Spec with nothing on origin, which is exactly the case the Spec run refuses.

    A Spec with at least one open Ticket is unaffected, as is an issue with no sub-issues.

    thirdshift <Issue URL> on such a Spec keeps today's behavior and message: this change is to what a Pickup run takes, not to what a Spec run refuses.

    Key interfaces:

    • Reason in the Pickup run's module: a new variant for a Spec whose Tickets are all closed, with its line in Search::line.
    • standing_of: returns PassedOver with that reason. It needs to know whether any sub-issue is open; the candidate read (github::candidate, which already gives has_sub_issues) is the natural place, so no extra request per candidate is made if the existing query can carry it.
    • spec_run::all_closed: the rule already used by the Spec run's check. The two must agree on what "every Ticket is closed" means.
    • CONTEXT.md, the Ready issue entry, and the README's Ready issue rule and "Why an issue was passed over" list (with its example lines): add the new condition and line.

    Acceptance criteria:

    • A Pickup run on a repository whose lowest-numbered ready-for-agent issue is a Spec with every Ticket closed and no Spec branch prints #<n> every Ticket is closed and takes the next Ready issue
    • With no other Ready issue, that pass is skipped as no Ready issue, exits 0, changes no label, and sends no Run notification
    • A Spec with every Ticket closed whose Spec branch is on origin, or which has a pull request, still gets its already started line
    • A Spec with one open Ticket is still taken
    • thirdshift <Issue URL> on a Spec with every Ticket closed and no Spec branch still stops with every Ticket is closed and there is no Spec branch; nothing to do
    • CONTEXT.md and the README describe the new condition and its line
    • Tests cover the passed-over line, the next issue being taken, and the skip

    Out of scope:

    • Closing the Spec, or changing its labels, from a Pickup run
    • Changing what a Spec run does with such a Spec, or its message
    • Making a Claim on an issue whose run fails its checks before any work
    • Whether a pass that fails before the Claim sends a Run notification
  3. JacobStephens2 commented on Oct 2, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Triage Notes

    One addition to the Agent Brief above, which otherwise stands as written.

    Where the new reason sits in the Ready issue rule: after "never started" and before "settled". The order is: Unready label, Claim, sub-issue, base-fix, open blocker, already started, every Ticket is closed, not settled.

    A Spec whose Tickets are all closed will not become a Ready issue by waiting, so its line is #<n> every Ticket is closed even when it was labelled or shaped less than ten minutes ago, never not settled. The README's Ready issue rule and its "Why an issue was passed over" example lines list the new condition in that position.

    Additional acceptance criterion:

    • A Spec with every Ticket closed, no Spec branch, and labelled ready-for-agent less than ten minutes ago gets #<n> every Ticket is closed, not a not settled line

    Verification: confirmed by code path. The Ready issue rule reads only whether the issue has sub-issues, not whether any is open, and the Spec run's refusal of such a Spec comes before the Claim is made, so nothing on GitHub changes between passes. Not re-run live: #109, the case in the report, has since been closed.

  4. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Oct 2, 2026
  5. removed
    in-progress
    on Oct 2, 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