Skip to content

A Pickup run that loses a reservation takes the next Ready issue #1570

Closed

Description

@JacobStephens2

This was generated by AI from a grill-with-docs session.

Parent

#1564

What to build

When two Pickup runs pick the same Ready issue, the one that loses the origin reservation (ADR 0017) moves on to the next Ready issue in its order. Today it is skipped as unavailable. It is skipped only when no Ready issue it can reserve is left. This helps at once with two hosts racing on one repository, and it is what makes overlapping Pickup runs on one machine add throughput once the Command limit exists.

Decided in docs/grill-with-docs/1532-keep-working-the-backlog.md, under "Settled by earlier answers" (Q1.2).

Acceptance criteria

  • With two Ready issues and two Pickup runs racing, both issues are taken, each by exactly one run.
  • With one Ready issue and two Pickup runs racing, exactly one run starts, and the other is skipped with no Ready issue it can reserve. It exits 0 and sends no Run notification.
  • An issue whose selection went stale, because it stopped being Ready or got a Claim after selection, is passed over the same way, and the next Ready issue is tried.
  • pickup.order (lowest-first / highest-first) is respected while moving on.
  • The reservation guarantees of ADR 0017 hold for every issue tried: the host is recorded, a replaced reservation is never deleted, a push rejection fails before any Claim, and an uncertain push keeps the reservation without dispatching.
  • Tests extend the existing race tests in pickup_run (two_machines_racing_for_a_ready_issue_start_exactly_one_run, pickup_race).

Blocked by

None - can start immediately.

Activity

  1. added
    enhancement
    ready-for-agent
    on Oct 28, 2026
  2. JacobStephens2 commented on Oct 28, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1577, merged into issue-1564 by a thirdshift Ticket run with Self-merge.

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

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions