Repository navigation
Keep triaged only on issues without a team owner - #361
Conversation
…out-owner # Conflicts: # .github/workflows/gh-aw-issue-auto-triage.lock.yml # .github/workflows/gh-aw-issue-triage.lock.yml
There was a problem hiding this comment.
Requesting changes: the new Step 5 triaged rule conflicts with the not-routable outcome contract in both workflow sources, creating ambiguous instructions that can produce contract-violating label actions.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
| `needs-team`. If no active ownership label is present, use the team selection and cleanup plan | ||
| from Step 3. | ||
|
|
||
| Determine whether the issue will have an active ownership label after this run. This is true when |
There was a problem hiding this comment.
[HIGH] Step 5 conflicts with the not-routable contract
The new Step 5 instruction to preserve or add triaged when no active owner exists conflicts with the Not routable contract below, which requires adding only human-needed and says not to apply triaged.
For a not-routable issue with no active owner and no existing triaged, these instructions point in opposite directions. That makes the behavior ambiguous and can produce contract-violating output.
Please make triaged handling conditional on routability (or keep it exclusively inside the routable outcome logic).
| Determine whether the issue will have an active ownership label after this run. This is true when | ||
| the final read found one or when you will add the team label selected in Step 3. If it is true and | ||
| the current labels include `triaged`, plan to remove `triaged`. If it is false, preserve or add | ||
| `triaged`. |
There was a problem hiding this comment.
[HIGH] Step 5 conflicts with the not-routable contract
This new Step 5 rule is unconditional (if false, preserve or add triaged), but the Not routable outcome below requires adding only human-needed and explicitly says not to apply triaged.
A concrete failure case is a not-routable issue with no active owner and no existing triaged: Step 5 instructs adding triaged, while the outcome contract forbids it. That ambiguity can lead to contract-violating label actions depending on which instruction the model prioritizes.
Please gate the Step 5 triaged add/remove decision to routable flows only (or move triaged handling entirely into the routable outcome branch).
The triaged label is useful when a routable issue has no mapped owner, but it is redundant when an active team or area label already records the routing result.
This change updates both reusable triage workflows. When the final label check finds an active owner, or the run will add one, the workflow omits triaged and removes an existing triaged label. When no active owner applies, the workflow preserves or adds triaged. The workflow can remove triaged and needs-team together when both are present.
Both workflow sources compile successfully with no warnings. Their generated lock files are included, and git diff --check passes.
This change affects issues processed by a new triage run. It does not perform a bulk cleanup of existing issues. The PR remains a draft until a live issue run verifies both the owned and unowned paths.
Related to #398