Skip to content

Keep triaged only on issues without a team owner - #361

Merged
theletterf merged 2 commits into
mainfrom
fix/triaged-only-without-owner
Sep 23, 2026
Merged

theletterf merged 2 commits into
mainfrom
fix/triaged-only-without-owner

Conversation

@theletterf

@theletterf theletterf commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

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

@theletterf
theletterf marked this pull request as ready for review September 23, 2026 10:20
@theletterf
theletterf requested a review from a team as a code owner September 23, 2026 10:20
@theletterf
theletterf requested a review from technige September 23, 2026 10:20
…out-owner

# Conflicts:
#	.github/workflows/gh-aw-issue-auto-triage.lock.yml
#	.github/workflows/gh-aw-issue-triage.lock.yml
@theletterf
theletterf merged commit c6238f6 into main Sep 23, 2026
5 checks passed
@theletterf
theletterf deleted the fix/triaged-only-without-owner branch September 23, 2026 10:24

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants