graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Automated issue triage: auto-label new issues (area/ + kind/ + good first issue suggestion)

Open nothariharan opened this issue 1 month ago • 1 comments

What

Automated first-pass triage for issues: when an issue is opened, label it from a small, fixed taxonomy so it is immediately findable, and surface a good first issue for newcomers.

Why

  • We have ~700 open issues, and almost all carry only bug/enhancement from the template. good first issue exists but is effectively unused, so a newcomer has no obvious place to start.
  • Maintainers spend real time on the same first-pass reads: "is this a bug or a question, which area, is it beginner-friendly".
  • This is now routine for production-grade open-source projects, and the economics just changed: classifier models are extremely fast and cheap. TypeSafe's System One model returns a typed decision in ~100 ms and bills input tokens only, and the fast tier of every provider is comparable. Scoring every issue costs almost nothing.

Proposal

On issues: opened / reopened:

  1. Stamp status/need-triage so nothing is lost.
  2. One classifier call picks area/* and kind/* from a fixed allowlist.
  3. Apply those, set status/bot-triaged, remove status/need-triage.
  4. good first issue is only suggested in a comment (plus status/gfi-suggested) for a maintainer to confirm. A wrong beginner task is worse than none.

Failure is fail-open: no key, timeout, or bad output means no labels and the issue keeps status/need-triage. It cannot mislabel.

Label fields

  • area/*: extract, build, analyze, query, export, cli, install, watch, llm, ci, docs, other
  • kind/*: bug, feature, docs, question, refactor, performance, other
  • status/*: need-triage, bot-triaged, gfi-suggested

Existing labels (bug, enhancement, good first issue, ...) stay as they are.

Model

Runs on TypeSafe System One (Jev) — typed choice/noul questions where the options are the allowlist, so the model cannot emit a label we did not define. An ordered TRIAGE_MODEL list lets it fall back to any OpenAI-compatible model (OpenAI, Gemini, ...), so a rate-limited provider never blocks triage. The model is configurable; a default is picked and everything can be changed later.

Rollout

Started in a fork and verified with real issues. Then a TRIAGE_DRY_RUN canary: the bot comments the proposed labels and changes nothing, so maintainers can review a batch before it goes live. Rollback is just unsetting the variable.

An implementation PR is on the way.

nothariharan avatar Oct 12 '26 16:10 nothariharan

Thanks for opening this issue, @nothariharan. A maintainer will take a look soon.

If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

github-actions[bot] avatar Oct 12 '26 16:10 github-actions[bot]