Repository navigation
Preserve team labels added during triage - #359
Conversation
There was a problem hiding this comment.
Requesting changes: the new Step 5 team-label refresh rules currently conflict with the routable outcome contract, so the race-condition safeguard can be applied inconsistently. Please align the outcome contract with the Step 5 post-refresh label set before merge.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
Comments that could not be inline-anchored
.github/workflows/gh-aw-issue-auto-triage.md:266
[HIGH] Outcome contract conflicts with the new Step 5 override
Step 5 explicitly says to discard a different Step 3 team label and not include another team label in add_labels, but this line still instructs add_labels to include triaged plus every Step 3 label. In the race this PR is fixing (human adds Team A after Step 3 selected Team B), these instructions now disagree at decision time.
Please update the outcome contract to reference the post-refresh label set (Step 5-adjust…
.github/workflows/gh-aw-issue-triage.md:262
[HIGH] Outcome contract conflicts with the new Step 5 override
Step 5 explicitly says to discard a different Step 3 team label and not include another team label in add_labels, but this line still instructs add_labels to include triaged plus every Step 3 label. In the race this PR is fixing (human adds Team A after Step 3 selected Team B), these instructions now disagree at decision time.
Please update the outcome contract to reference the post-refresh label set (Step 5-adjust…
The routing history on elastic/docs-content-internal#1859 exposed a race. TriageBot read the initial labels, a person then added Team:Admin, and the agent later added Team:SKI from its stale snapshot.
This change adds a final label refresh to both reusable triage workflows. The agent now preserves an active ownership label found immediately before its safe-output calls. It discards a different team selection, avoids adding a second ownership label, and removes needs-team when an active owner is present.
Both source workflows were compiled with gh aw compile. The generated lock files are included, and git diff --check passes.
The PR remains a draft until a real issue-open run confirms the race guard. After merge, the v1 tag must be updated before consumers receive the change.
Related to #398