Skip to content

Unattended thirdshift triage Pass mode, user manual, and site pages #1893

Closed

Description

@JacobStephens2

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 under cron), run Pass mode.
  • Pass gates, Sweep, and Failure limit:
    • Start the Pass via launch::start(base, config.command_limit, Sharing::UpToTheLimit), skipping cleanly with AlreadyRunning when the repository is at its Command limit.
    • Run the Sweep (also clearing agent-failed from open issues where the Day shift acted on a failed triage issue by relabelling or closing it) and check pickup.failure_limit against open agent-failed issues, skipping with AtFailureLimit when at or above the limit.
  • Candidate search & reservation:
    • List open needs-triage issues in the repository ordered by pickup.order (lowest-first default, or highest-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), carries in-progress or agent-failed, is a parent Spec with sub-issues, or fails the Trusted account check (OWNER, MEMBER, or COLLABORATOR author 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 honouring activity.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.
  • Documentation & site:
    • Update GLOSSARY.md (Pass, Failure limit, Sweep, Triage run) to cover Triage Passes.
    • Update docs/guide.md and regenerate site/docs/index.html (npm run docs --prefix site and npm run docs:check --prefix site).
    • Update hand-written site pages (site/index.html, site/how-it-works/, site/architecture/) where thirdshift triage and Passes are covered.

Acceptance criteria

  • thirdshift triage [base <branch>] with no <Issue> and no --file runs as a Pass both when stdin is a terminal and when stdin is 0-byte EOF (/dev/null in cron), while non-empty piped stdin runs Report mode.
  • A Triage Pass checks pass.command_limit (Sharing::UpToTheLimit), runs the Sweep, and checks pickup.failure_limit, skipping cleanly when at the Command limit or Failure limit.
  • A Triage Pass selects open needs-triage issues in pickup.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 on origin, 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 (respecting activity.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.

Blocked by

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 9, 2026
  2. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1918, merged into issue-1695 by a thirdshift Ticket run with Self-merge.

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-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions