Repository navigation
Closed
Labels
Description
Parent
Part of #1695.
What to build
Extend thirdshift triage so that running thirdshift triage <Issue URL or number> [base <branch>] investigates an existing open GitHub issue in the repository read-only against the selected Base branch (defaulting to the Launch directory's checked-out branch) and updates that issue in place, while keeping existing Report mode (--file <path> or non-empty standard input) unchanged.
Specifically:
- CLI parsing (
thirdshift triage <Issue URL or number> [base <branch>]): Accept a positional<Issue URL or number>and optionalbase <branch>alongside the existing triage flags (--recommend-only,--allow-ready-for-agent,--read-machine,--email,--harness,--model,--effort). Reject combining<Issue>with--file <path>. - Trusted-account gate and
.thirdshift-issue.md: Verify that the target issue belongs to the Launch directory's repository, is open, was authored by a Trusted account (OWNER,MEMBER, orCOLLABORATOR), and has had no title or body edit by a non-Trusted account. Write.thirdshift-issue.mdat the root of the throwaway triage worktree with the issue's title, URL, body, and only Trusted-account comments (with untrusted comments replaced by the standard placeholder) before starting the session. Allow re-triaging an open issue regardless of its current triage state label. - Reservation, Claim, Failure, and Stop lifecycle: Unless
--recommend-onlyis set, reserve the issue onoriginfor the duration of the Triage run and apply anin-progressClaim in place of the issue's prior triage role label (needs-triage,ready-for-human,needs-info,ready-for-agent, orwontfix) andagent-failed. If the Triage run ends with an error or interruption:- On
thirdshift stop --requeue, replacein-progresswithneeds-triage(withoutagent-failed). - On
thirdshift stop(without--requeue), replacein-progresswithready-for-human(withoutagent-failed). - On any other failure or interruption, replace
in-progresswithready-for-humanandagent-failed.
- On
- In-place recommendation & publication: Update the session prompt and
skills/thirdshift-triage/SKILL.md(and regenerateprompts/andsite/prompts/index.htmlwithUPDATE_PROMPTS=1 cargo test prompts_page) so that when triaging an existing issue#N:recommendation.issuescontains a single entry representing the update to#N(bodywith the## Agent Brief, investigation summary, orwontfixexplanation,questionnairerequired forneeds-infoandready-for-human, and optionalconfirmation_blocked). If#Nshould be split into multiple Tickets or a Spec, the session recommendsready-for-humanon#Nwith a## Questionnaireproposing the split rather than proposing multipleissues.- If
#Nduplicates another open issue#Min the repository, the session recommendswontfixon#Nand may include#Minrecommendation.commentsto cross-reference#Nor add new context onto#M. - When publishing (unless
--recommend-onlyis set):- Apply the recommended repository category label only if
#Ndoes not already carry a repository category label (preserving any existing category label on#N). - When
ready-for-agentis recommended on#Nand readiness permission is not granted (!allow_ready_for_agent), hold back readiness by transitioning#N's state label toready-for-human(notneeds-triage) and appending the readiness-held notice to the## Agent Briefcomment. - Post one AI-attributed comment (
> *This was generated by AI during triage.*) on#Nwith the brief, investigation +## Questionnaire, orwontfixexplanation, replacein-progresswith the resulting triage state label (ready-for-agent,ready-for-human,needs-info, orwontfix), and close#Nwhenwontfix. - Populate
urlon the recommendation issue entry with#N's URL in stdout JSON and include#Nin the Run notification.
- Apply the recommended repository category label only if
- Glossary: Update
ClaimandTriage runinGLOSSARY.mdto reflect in-place issue triage, readiness hold-back toready-for-human, and Claim completion on success, Stop, and failure.
Acceptance criteria
-
thirdshift triage <Issue URL or number> [base <branch>]parses the target issue and optional Base branch, and rejects combining<Issue>with--file <path>. - Single-issue triage refuses closed issues, issues from another repository, and issues authored or edited (title/body) by a non-Trusted account, and writes
.thirdshift-issue.mdcontaining only Trusted-account comments into the triage worktree. - Unless
--recommend-onlyis set, single-issue triage reserves the issue onoriginand appliesin-progress(removing any prior triage state label andagent-failed) while running, releasing the reservation when the run finishes. - On success, in-place publication preserves any existing repository category label on
#N(or adds the recommended category label when#Nhas none), posts the AI-attributed comment (## Agent Brief, investigation +## Questionnaire, orwontfixexplanation), replacesin-progresswith the resulting triage state label, and closes#Nwhenwontfix(also posting any cross-reference comments on other open issues). - When
ready-for-agentis recommended on an existing issue and neithertriage.allow_ready_for_agentnor--allow-ready-for-agentis enabled,#Nreceives the## Agent Briefcomment (with the readiness-held note) and is labelledready-for-human. - When an issue Triage run fails, completion replaces
in-progresswithready-for-humanandagent-failed;thirdshift stopreplacesin-progresswithready-for-human;thirdshift stop --requeuereplacesin-progresswithneeds-triage. -
--recommend-onlyon an existing issue validates the recommendation against GitHub without reserving, claiming, commenting on, or relabelling the issue, and prints the recommendation JSON on stdout. -
prompts/andsite/prompts/index.htmlare regenerated andcargo test prompts_pagepasses. -
GLOSSARY.mdand integration tests cover the new behavior.
Blocked by
- None (can start immediately).
Activity
JacobStephens2 commentedon Nov 9, 2026
A note from the #1165 grill (Q1.5 and Q2.1), now Spec #1901, which settles what
in-progressandagent-failedmean for every Command that holds a Claim, Triage runs included.in-progressoff and leavesagent-failed, plusready-for-humanso the Triage Pass passes over the issue. Spec:in-progressmarks only a live Run #1901 makes every failure swapin-progressforagent-failedthe same way.in-progressmarks only a live Run #1901 (Ticket Claim endings:in-progressoff at ready for review, swapped foragent-failedon failure #1902) settles a single take-over rule.agent-failedcomes off only when the Day shift putsready-for-agentback, takesagent-failedoff itself, or closes the issue. It replaces today's "neitherin-progressnorneeds-triage" check in Pickup. Takingready-for-humanoff does not clear a failure.For #1891: if it lands before #1902, today's check would clear
agent-failedfrom a failed Triage run at once, because the issue has neitherin-progressnorneeds-triage. Until then, it's fine to stop that by treatingready-for-humanlikeneeds-triagein that check. Please don't present "removeready-for-human" as how the Day shift takes over a failed triage, in the glossary, guide or site. #1902 removes that whole clause.JacobStephens2 commentedon Nov 9, 2026
Closed by #1911, merged into issue-1695 by a thirdshift Ticket run with Self-merge.