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
One action to retry a failed issue: remove agent-failed and add ready-for-agent together #2099
During overnight fleet management on 2026-11-11/12, an operator (an AI agent acting for the Day shift) cleared agent-failed on six issues so Pickup would retry them: thirdshift #2018, #2026, #2042, #2044, #2045 and #2046. Nothing happened for about 3.5 hours. When a Run claims an issue, thirdshift swaps ready-for-agent for in-progress. When the Run fails, it swaps in-progress for agent-failed. So a failed issue has no Ready label, and removing agent-failed alone leaves it unready. Re-queuing needs both steps: remove agent-failedand add ready-for-agent. It's easy to do only half of it, and nothing warns you.
The Command log's Recovery line suggests re-running the full command, which isn't the same as letting the scheduled Pickup take the issue again.
Why needs-triage
This needs a decision on the surface and semantics:
a thirdshift retry <issue> command, a Console action on a failed Run or issue, or both;
whether it should refuse when the failure's cause looks unresolved (for example the same failure twice in a row);
whether it applies to Spec issues as well as Tickets, and how it interacts with thirdshift stop --requeue, which already exists (src/args.rs).
Minimum behavior: one action removes agent-failed and adds ready-for-agent together, and prints what it changed.
The reported failure mode is supported by the selected Base tree, commit 5e573fe. Removing agent-failed alone does not hand an issue back: Pickup searches only open issues labelled ready-for-agent (src/ready.rs:141). Failures with preserved work replace in-progress with agent-failed (src/claim.rs:478).
One correction to the report: manually performing both label changes is unnecessary today. Adding ready-for-agent alone is sufficient for Pickup's Sweep to remove agent-failed before checking the Failure limit (src/pickup.rs:403). An existing integration regression confirms this. A dedicated action would make the hand-back explicit and immediately apply both changes.
stop --requeue cannot recover an ended Command: its shared handler requires a live Command (src/logs/stop.rs:51). While live, that option replaces the Claim with ready-for-agent (src/claim.rs:587). The Command log's Recovery lines provide a direct continuation command (src/recovery.rs:197), whereas the issue's failure comment already says to put ready-for-agent back (src/recovery.rs:322).
A shared retry operation can use the existing label-edit mechanism (src/labels.rs:258) to remove agent-failed and add ready-for-agent in one request while keeping other labels from the fresh read. Its output must distinguish a successful hand-back from immediate dispatch: trust, other triage roles, blockers, settling, Spec eligibility and origin reservations still govern Pickup (src/ready.rs:500; ADR 0017). Ordinary Specs already support hand-back; their Tickets are reached through the Spec. Security fix issues belong to a separate workflow.
Recommend settling the scope and publishing a small Spec with the split below. Console/API work must follow ADR 0026's CLI parity and authorization requirements. Retain Recovery guidance about local-only work and changed Spec PRs. Do not silently interpret repeated failure as proof that its cause remains unresolved.
Open-issue searches found no duplicate. #1906 concerns automatic repeated pickup after failures with no work on origin; it is related but does not cover this explicit operator action.
Questionnaire
For the Day shift: #2099 proposes one explicit action to hand failed work back to scheduled Pickup. Repository investigation confirms the label trap; adding ready-for-agent already causes Pickup to clear agent-failed on its next pass. The remaining questions are product decisions.
Approve this proposed split, or narrow its scope: Ticket A implements the shared hand-back operation, thirdshift retry <issue> and its API twin, reports changed labels in text/JSON, tests failure and no-op behavior, and updates Recovery guidance and documentation. Ticket B, blocked by A, adds the Console action using that operation, including authorization, Fleet behavior and CLI/page/API parity tests. If both are wanted, publish them under a Spec that ships both surfaces together.
Which targets should it accept? Recommend standalone Tickets and Specs; direct a Spec's child Ticket to its Spec; refuse closed or currently Claimed issues; preserve other triage roles; keep Security fixes and failed Triage runs in their own workflows. Should it also accept an issue whose operator already removed agent-failed, as happened in this report? This determines the eligibility and repeat-action contract.
Should an explicit retry authorize another attempt regardless of repeated failure, or should some conditions block it? Recommend treating it as the Day shift's hand-back decision, retaining known Recovery warnings and leaving automatic retry budgets to separate work such as A Ticket run that fails with nothing on origin can be retaken on every Pickup pass #1906. If blocking is required, specify the concrete condition and override behavior; repeated error text alone cannot establish that the cause is unresolved.
Activity
JacobStephens2 commentedon Nov 12, 2026
Investigation summary
The reported failure mode is supported by the selected Base tree, commit 5e573fe. Removing
agent-failedalone does not hand an issue back: Pickup searches only open issues labelledready-for-agent(src/ready.rs:141). Failures with preserved work replacein-progresswithagent-failed(src/claim.rs:478).One correction to the report: manually performing both label changes is unnecessary today. Adding
ready-for-agentalone is sufficient for Pickup's Sweep to removeagent-failedbefore checking the Failure limit (src/pickup.rs:403). An existing integration regression confirms this. A dedicated action would make the hand-back explicit and immediately apply both changes.stop --requeuecannot recover an ended Command: its shared handler requires a live Command (src/logs/stop.rs:51). While live, that option replaces the Claim withready-for-agent(src/claim.rs:587). The Command log's Recovery lines provide a direct continuation command (src/recovery.rs:197), whereas the issue's failure comment already says to putready-for-agentback (src/recovery.rs:322).A shared retry operation can use the existing label-edit mechanism (
src/labels.rs:258) to removeagent-failedand addready-for-agentin one request while keeping other labels from the fresh read. Its output must distinguish a successful hand-back from immediate dispatch: trust, other triage roles, blockers, settling, Spec eligibility and origin reservations still govern Pickup (src/ready.rs:500; ADR 0017). Ordinary Specs already support hand-back; their Tickets are reached through the Spec. Security fix issues belong to a separate workflow.Recommend settling the scope and publishing a small Spec with the split below. Console/API work must follow ADR 0026's CLI parity and authorization requirements. Retain Recovery guidance about local-only work and changed Spec PRs. Do not silently interpret repeated failure as proof that its cause remains unresolved.
Open-issue searches found no duplicate. #1906 concerns automatic repeated pickup after failures with no work on origin; it is related but does not cover this explicit operator action.
Questionnaire
For the Day shift: #2099 proposes one explicit action to hand failed work back to scheduled Pickup. Repository investigation confirms the label trap; adding
ready-for-agentalready causes Pickup to clearagent-failedon its next pass. The remaining questions are product decisions.thirdshift retry <issue>and its API twin, reports changed labels in text/JSON, tests failure and no-op behavior, and updates Recovery guidance and documentation. Ticket B, blocked by A, adds the Console action using that operation, including authorization, Fleet behavior and CLI/page/API parity tests. If both are wanted, publish them under a Spec that ships both surfaces together.agent-failed, as happened in this report? This determines the eligibility and repeat-action contract.