Repository navigation
feat: restructure auto-triage to use router + content-checker sub-agents - #282
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The lock files were stale — they were compiled with v0.86.1 output but the compile script already expected v0.86.2. Running the compile script with the correct version regenerates all 15 lock files cleanly. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Split the monolithic auto-triage prompt into two focused inline sub-agents, addressing feedback that the single-pass auto-triage was too aggressive for issue-open workflows: - `router` — classifies the issue, applies type and team labels, removes `needs-team`. Does not touch the body or post comments. - `content-checker` — validates against the quality bar and posts a single traffic-light comment (🟢/🟠/🔴) with specific gaps. Applies `human-needed` only when the issue is 🔴 not actionable. Neither sub-agent rewrites the issue body. Body rewrites remain opt-in via the manual `/triage` slash command (gh-aw-issue-triage). Also removes `update-issue` from auto-triage safe-outputs (no longer needed) and drops the `triage-refine-logic.md` import (replaced by inline sub-agent instructions). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
cotti
approved these changes
Aug 13, 2026
cotti
left a comment
Contributor
There was a problem hiding this comment.
Reading-wise it looks good!
I poked it with a robostick as well to be safe, and it found no blockers either.
Applies the same router + content-checker sub-agent architecture from the auto-triage AW to the manual /triage workflow. The parent is the sole writer; sub-agents return plain-text decisions only. Outcome behavior (green/orange/red), comment templates, and project instructions file support are now identical between the two workflows. Drops the refinement feature (body rewrite, undo snapshot, findings block, update-issue safe output) — manual triage now focuses solely on labeling and content evaluation. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Conflicts were in auto-triage and manual triage lock files, which are auto-generated. Resolved by recompiling both source .md files with the v0.86.2 compiler that arrived from main via #281. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Replace the passive "label list must contain only human-needed" check with an active instruction: when the content-checker returns red, replace the label list with ["human-needed"] before calling add_labels, discarding every type, team, and cross-team label the router returned. Fixes the issue where the parent agent applied bug + triaged on a red issue instead of only human-needed. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
theletterf
added a commit
that referenced
this pull request
Aug 13, 2026
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructures automatic issue triage into two focused inline sub-agents while keeping every write in the parent workflow's constrained safe-output phase:
routerclassifies the issue and recommends existing type and team labels from the repository's labels, CODEOWNERS, and project instructions.content-checkerrates the supplied issue content as green, orange, or red and returns actionable missing-detail prompts.Outcome behavior
triagedplus confident type/team routing labelstriagedplus confident type/team routing labelshuman-neededPer-project context
The reusable workflow now reads
.github/triage-instructions.mdfrom the consumer repository's default branch by default. Repositories can use that file for ownership mappings, label terminology, relevant CODEOWNERS paths, and project-specific issue-quality expectations.The existing
additional-instructionscaller input remains fully supported, so current callers do not need to migrate immediately. When the project file is absent, the inline instructions continue to provide all repository-specific context. When both are present, the inline instructions are the higher-precedence overlay and can refine or override the file within the supported routing and quality topics.The precedence model is:
additional-instructions— the caller's explicit per-workflow overrides.Set
project-instructions-pathto another repository-relative path or to an empty string to disable the file lookup. ConventionalAGENTS.mdand Copilot instructions remain available independently.The example caller now relies on the project instructions file instead of embedding the docs-content team map in workflow YAML. A reusable template is included at
agentic-workflows/issue-auto-triage/project-instructions.example.md.Body refinement remains available through the separate manual
/triageworkflow, unchanged.Validation
gh-awcompilation succeeds with zero warningshuman-neededappliedTeam:Projectsrouting appliedRelated to #398