Skip to content

A waiting Spec run puts ready-for-agent back on its Spec, not agent-failed #1903

Closed

Description

@JacobStephens2

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

Parent

#1901

What to build

A Spec run that has run every Ticket it can, and failed none, ends only waiting: no agent-failed, and ready-for-agent back on its Spec in place of in-progress. Pickup then continues it on its own once the Day shift clears a gate or a blocker closes, and until then passes over it, because it has no Startable Ticket. A Spec run is only waiting when no Ticket failed or was interrupted, and every undone Ticket is an Unready Ticket, blocked by Unready Tickets or by work elsewhere, or outside the Spec's repository. A blocking cycle is a failure. Any failed or interrupted Ticket makes the whole run a failure (agent-failed), even when other Tickets are only waiting.

Before putting ready-for-agent back, thirdshift runs the Trusted-account check from the Ready-issue rule. If an account that is not a Trusted account has edited the Spec's title or body since its last ready-for-agent labelling by a Trusted account, the Spec gets needs-triage instead. A ready-for-agent that thirdshift puts back this way counts as a handback for the Ready-issue rule.

This settles only the labels. #585 keeps the outcome name, exit code and notification wording, so a waiting run may still report its cause as "Tickets not done" until #585 changes that. Update the guide and site pages that describe Spec runs ending.

Acceptance criteria

  • A Spec run whose only undone Tickets are ready-for-human, needs-info or needs-triage, or blocked behind them, ends with ready-for-agent on its Spec, and with no in-progress or agent-failed.
  • The same holds for undone Tickets blocked by an open issue outside the Spec, and for a Ticket outside the Spec's repository.
  • A Spec run with a failed or interrupted Ticket ends with agent-failed, even when other Tickets are only waiting.
  • A blocking cycle among undone Tickets ends with agent-failed.
  • After an untrusted edit to the Spec since its last Trusted ready-for-agent labelling, a waiting Spec run labels the Spec needs-triage and doesn't put ready-for-agent back.
  • A Pickup run passes over a waiting Spec until one of its Tickets becomes startable, then continues it.
  • Tests go through the fake gh Spec-run integration tests, with the Spec run's existing in-memory seam for classifying endings.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 9, 2026
  2. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1936, merged into issue-1901 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