Repository navigation
Closed
Labels
Description
Parent
Part of #1695.
What to build
Extend thirdshift triage so that running thirdshift triage [base <branch>] with no <Issue> and no --file <path>, when standard input is either a terminal or 0-byte EOF (such as /dev/null under cron), runs as an unattended Pass that selects one eligible open needs-triage issue on the repository and triages it in place.
Specifically:
- Pass vs Report stdin detection: When neither
<Issue>nor--file <path>is given, if standard input is a terminal, run Pass mode immediately; if standard input is not a terminal, read standard input before command startup—if it contains non-whitespace bytes, run Report mode as before, and if it is empty (0 non-whitespace bytes, as undercron), run Pass mode. - Pass gates, Sweep, and Failure limit:
- Start the Pass via
launch::start(base, config.command_limit, Sharing::UpToTheLimit), skipping cleanly withAlreadyRunningwhen the repository is at its Command limit. - Run the Sweep (also clearing
agent-failedfrom open issues where the Day shift acted on a failed triage issue by relabelling or closing it) and checkpickup.failure_limitagainst openagent-failedissues, skipping withAtFailureLimitwhen at or above the limit.
- Start the Pass via
- Candidate search & reservation:
- List open
needs-triageissues in the repository ordered bypickup.order(lowest-firstdefault, orhighest-first). - Pass over (with a progress line saying why) any issue that carries another triage state label (
ready-for-agent,ready-for-human,needs-info,wontfix), carriesin-progressoragent-failed, is a parent Spec with sub-issues, or fails the Trusted account check (OWNER,MEMBER, orCOLLABORATORauthor and no title/body edit by a non-Trusted account). - Reserve the first eligible issue on
origin, recheck that it is still open,needs-triage, un-Claimed, and trusted (passing over it for the next candidate if another host reserved it or its state went stale), and run in-place issue triage on it. - When no candidate is eligible or reservable, skip cleanly (
exit 0, no Run notification, deduplicated Activity log skip line honouringactivity.quiet_skips). When an issue is taken, record the Triage run in the Activity log, keep its Command log and Session trace, and send a Run notification when configured.
- List open
- Documentation & site:
- Update
GLOSSARY.md(Pass,Failure limit,Sweep,Triage run) to cover Triage Passes. - Update
docs/guide.mdand regeneratesite/docs/index.html(npm run docs --prefix siteandnpm run docs:check --prefix site). - Update hand-written site pages (
site/index.html,site/how-it-works/,site/architecture/) wherethirdshift triageand Passes are covered.
- Update
Acceptance criteria
-
thirdshift triage [base <branch>]with no<Issue>and no--fileruns as a Pass both when stdin is a terminal and when stdin is 0-byte EOF (/dev/nullincron), while non-empty piped stdin runs Report mode. - A Triage Pass checks
pass.command_limit(Sharing::UpToTheLimit), runs the Sweep, and checkspickup.failure_limit, skipping cleanly when at the Command limit or Failure limit. - A Triage Pass selects open
needs-triageissues inpickup.order, passing over issues with another triage role,in-progress,agent-failed, parent Specs with sub-issues, or untrusted author/title/body edits, reserves and rechecks the selected issue onorigin, and triages it in place. - A skipped Triage Pass exits
0, sends no Run notification, and writes a deduplicated skip line to the Activity log (respectingactivity.quiet_skips). -
GLOSSARY.md,docs/guide.md,site/docs/index.html(npm run docs:check --prefix site), and hand-written site pages are updated and tested.
Activity
JacobStephens2 commentedon Nov 10, 2026
Closed by #1918, merged into issue-1695 by a thirdshift Ticket run with Self-merge.