Skip to content

A Ticket run that fails with nothing on origin can be retaken on every Pickup pass #1906

Open

Description

@JacobStephens2

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

Problem

A Ticket run that fails with nothing on origin (no Issue branch, no pull request) releases its Claim, putting ready-for-agent back, and gets no agent-failed. The Failure limit counts only agent-failed issues, so nothing stops a Pickup run taking the same issue again on its next pass. A Harness that fails before its first commit, such as one out of credit or at capacity, would fail the same issue on every pass, burning a session and sending a Run notification each time.

Context

Decisions needed

  • Should a release count toward the Failure limit, or have a brake of its own, such as a back-off per issue or a count of consecutive releases per repository?
  • Should the issue show on GitHub that it was released after a failure?

Activity

  1. added
    enhancement
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 9, 2026
  2. JacobStephens2 commented on Nov 11, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Confirmed against selected Base branch main at dbdd894. A failed Ticket run with no Issue branch or pull request on origin restores ready-for-agent, receives no agent-failed label, and posts no Recovery comment. Later Pickup passes can take it again without a retry budget.

    Evidence:

    • src/run.rs:364 maps ordinary failures to Ending::Failed. src/claim.rs:411 and :646 release an unstarted issue and restore its prior readiness instead of labelling it agent-failed.
    • src/pickup.rs:394 counts only open agent-failed issues toward the Failure limit, so released failures do not accumulate toward that brake.
    • Important qualification: src/github.rs:548 records the restored ready-for-agent label as a shaping event; src/ready.rs:544 enforces the settling window. src/config.rs:186 defaults that window to five minutes. Therefore retries are unbounded after settling, rather than necessarily occurring on every closely spaced pass. Setting pickup.wait_minutes to zero permits immediate eligibility.
    • ADR 0017 explicitly allows a fresh later pass to select Ready again; origin reservations prevent overlapping dispatch, not repeated later attempts.
    • ADR 0029 explicitly leaves this gap unresolved. The in-progress stays on issues whose Run has ended, so the label doesn't show what is running #1165 grill Q2.5 and closed Spec Spec: in-progress marks only a live Run #1901 deliberately excluded it. Spec Spec: in-progress marks only a live Run #1901 also deliberately required no comment on released failures.

    Four focused integration tests passed, covering no-work failure release, no-work interruption release and absence of comments, Failure-limit accounting, and configurable settling behavior.

    Recommendation: keep #1906 for a Day shift policy decision. Prefer a separate release brake that preserves the Failure limit's existing meaning. Counting releases toward that limit would revise the policy recorded in ADR 0026 and #1532; adding release comments would revise #1901's no-comment decision. Retry scope, budget, reset behavior and visibility are not settled enough for an Agent Brief.

    Related open issues are distinct: #584 covers service recovery within one Command and explicitly excludes retries on later scheduled passes; #1546 concerns Harness/Model fallback. No duplicate was identified.

    After policy selection, validate repeated empty failures across passes, settling enabled and disabled, budget exhaustion and reset, behavior across hosts, and absence of session/notification churn during deferred passes. Preserve existing handling of waiting Specs, Stops, Security fixes and failures with published work unless explicitly changed.

    Questionnaire

    For the Day shift deciding #1906:

    Repository investigation confirms unlimited later retries after a no-work failure. The existing five-minute settling window delays retries but does not bound them. The following decisions are needed before implementation:

    1. Which brake should govern these failures: a separate per-issue retry policy, a repository-wide consecutive-release brake, or releases counting toward the Failure limit? Recommend a separate brake to preserve make default thirdshift behavior to keep working ready-for-agent issues without being limited by number of in-progress issues on the repo or number of PRs unmerged or anything #1532 and ADR 0026. This selects the policy and whether an earlier decision must be revised.
    2. What exact delay progression, maximum attempts or elapsed-time budget, and exhaustion behavior should apply? Specify whether exhaustion waits for the Day shift or eventually permits another automatic attempt. This defines observable acceptance criteria.
    3. Should the brake be shared across hosts and survive restarts? What resets it—successful work, elapsed time, or an explicit Day shift action—and should a manually started Issue URL command bypass it? This defines persistence, recovery and operator control.
    4. Should GitHub show a released failure, and when: first release, budget exhaustion, or through one updated comment? Recommend avoiding a new comment on every retry. Decide also whether deferred passes remain silent. This settles the change to Spec: in-progress marks only a live Run #1901's deliberate no-comment behavior and the notification contract.
  3. added
    ready-for-human
    and removed
    in-progress
    on Nov 11, 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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions