Skip to content

Refuse to start a Run or Spec run on an issue whose own triage label says it isn't agent work #228

Open

Description

@JacobStephens2

Problem

A Spec run checks the triage labels of each Ticket (UNREADY_LABELS in src/spec_run.rs), but never the labels of the Spec issue itself. A plain Run doesn't check its issue's labels either. So thirdshift <Issue URL> on an issue labelled needs-triage, needs-info, ready-for-human or wontfix goes ahead, even though the label says the issue isn't ready for agent work.

This came up while designing the Architect run (#27). There, a plan the Architecture review didn't finish publishing stays labelled needs-triage. The Architect run itself won't dispatch it, but someone running thirdshift <Spec URL> by hand would start a Spec run on a half-ticketed Spec.

Idea

Apply the Unready Ticket rule to the issue a Run or Spec run is started on: refuse during preflight, before any work happens, and name the label in the error. Open question for triage: should there be an override flag?

Activity

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

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Triage Notes

    The gap still exists: top-level manual Runs check whether the issue is open but do not refuse its Unready triage labels. Spec Ticket execution and Pickup selection already enforce their own readiness rules.

    Next decision: should an explicit Issue URL be allowed to override an Unready label, require a separate explicit override, or always refuse? Settle this with #81 and #423: #423's manual no-merge path currently works, but it would be removed by an unconditional refusal here. The decision should cover both Runs and Spec runs before an agent changes preflight.

  3. added
    enhancement
    on Oct 17, 2026
  4. added
    in-progress
    and removed
    needs-triage
    on Nov 10, 2026
  5. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Confirmed on selected Base branch main at 6ce3c94. Each of needs-triage, needs-info, ready-for-human and wontfix allowed a directly started Ticket run or Spec run to create a Claim and start an implementation Session. All eight isolated fake-GitHub cases reproduced with no-merge; the fake agent deliberately exited 19 after recording Session startup, so the commands subsequently exited 1.

    Evidence:

    • src/launch.rs:116 checks Origin match, issue openness and git identity, without an Unready-label guard.
    • src/run.rs:210 calls that preflight; src/run.rs:281 dispatches Ticket versus Spec and makes the Claim before worktree execution, without rejecting the top issue's Unready labels.
    • src/labels.rs:75 defines the four Unready labels; Labels::unready at line 102 already compares case-insensitively. The Report's UNREADY_LABELS reference has moved here.
    • src/spec_run.rs:63 checks individual Tickets through unstartable; src/ready.rs:511 rejects Unready labels during Pickup selection. Neither supplies the missing direct-start guard.

    A Day shift policy decision remains. Open #81 requests interactive confirmation specifically for ready-for-human; it overlaps but does not duplicate this issue's broader Ticket-and-Spec refusal rule. Closed #423 explicitly accepts the current manual no-merge workflow on open issues without readiness. Unconditional refusal would restrict that workflow. For Specs, no-merge still permits Tickets to merge into the Spec branch; it controls only the final Spec PR (ADR 0006; tests/spec_run.rs:1036).

    Recommended direction: refuse by default and provide a separate explicit manual override, subject to the decisions in the questionnaire. Preserve automatic Pickup and Spec Ticket readiness checks.

    Implementation constraints after that decision:

    • Reject before Claims, Base pulling, worktree creation or Sessions, naming the offending label.
    • Reuse Labels::unready and cover all four labels, mixed case, contradictory ready-for-agent labels, unlabelled issues, Ticket runs, Spec runs and Continuations.
    • Keep existing-issue Triage working: src/triage.rs:520 also calls LaunchDirectory::open_for_run, so an unconditional guard in that shared function would prevent triaging needs-triage issues.
    • Extend tests/preflight.rs with refusal and no-side-effect assertions plus the chosen override behavior; update the guide and applicable hand-written site pages.

    No implementation or publication was performed.

    Questionnaire

    For the Day shift deciding #228 and #81: the missing guard is reproduced for all four Unready labels on both Ticket runs and Spec runs. The remaining questions concern intended behavior.

    1. Should an explicit Issue URL continue to authorize Unready work, always refuse, or refuse unless a separate explicit override is supplied? I recommend refusal by default with an explicit override. Should that same rule apply to Continuations?
    2. If an override is allowed, should it use a new flag or the existing no-merge ask, which Unready labels may it bypass, and may it be combined with merge? Decide separately whether it may start a partially published Spec: Spec no-merge still merges its Tickets into the Spec branch.
    3. Does if the issue passed in has a ready-for-human label but not a ready-for-agent label, maybe confirm with the user that they want to run it #81 still require interactive confirmation, or should an explicit override settle that request? If confirmation remains, specify behavior without a terminal. Also confirm whether an Unready label wins over contradictory ready-for-agent and whether an issue with no triage label remains runnable; I recommend both.
  6. added
    ready-for-human
    and removed
    in-progress
    on Nov 10, 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