Skip to content

Failure limit: should a failed Custom process run label its issue agent-failed? #1583

Closed

Description

@JacobStephens2

Raised by the code review of #1585 (the pull request for #1569, branch issue-1569, a Ticket of #1564), as a Spec finding the implementer declined because it is a scope decision.

Finding. #1569 says to label an issue agent-failed "when a Failed ticket run or a Failed spec run keeps its Claim, whatever started it". It does not mention Custom processes. The implementation also labels an issue when a failed Custom process run (thirdshift process <name> issue <issue>) keeps that issue's Claim.

Evidence.

  • src/processes.rs: HeldClaim ends a failed run's Claim through claim.end(claim::Ending::Failed). A Ticket run uses the same path, so when nothing of the run is on origin the Claim is released; otherwise the issue keeps the Claim and is labelled agent-failed.
  • In tests/process.rs, a test that expects the Claim to stay after a failed Custom process step now expects ["in-progress", "agent-failed"].
  • docs/guide.md, under "The Failure limit", now documents this.

Why it isn't the implementer's call. The choice is either:

  • count a failed Custom process on an issue toward the Failure limit, which is consistent because the issue waits for the Day shift exactly like a Failed ticket run; or
  • leave the Failure limit to Ticket runs and Spec runs only, as the spec's wording says.

The Spec (#1564) or the Day shift should make that call. A Custom process is Day-shift-authored and experimental, and the grill (docs/grill-with-docs/1532-keep-working-the-backlog.md) didn't consider it.

To resolve it, either keep the current behaviour and note it in the Spec or Glossary, or have HeldClaim release or keep the Claim without the label.

Activity

  1. added
    needs-triage
    on Oct 29, 2026
  2. added
    ready-for-human
    enhancement
    and removed
    needs-triage
    on Nov 9, 2026
  3. JacobStephens2 commented on Nov 9, 2026

    @JacobStephens2
    OwnerAuthor

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

    Decided in the #1165 grill (Q2.2): yes, keep the current behaviour. A failed Custom process on an issue waits for the Day shift exactly as a Failed ticket run does, so it gets agent-failed and counts toward the Failure limit. Under Spec #1901 (Ticket #1902) it also swaps in-progress for agent-failed, like every other failure. The glossary's Failure limit entry says so on branch 1165-triage. Closing as decided.

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