You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refuse to start a Run or Spec run on an issue whose own triage label says it isn't agent work #228
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?
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.
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.
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?
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.
Activity
JacobStephens2 commentedon Oct 17, 2026
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-mergepath 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.JacobStephens2 commentedon Nov 10, 2026
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:
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:
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.