Skip to content

Preserve team labels added during triage - #359

Merged
theletterf merged 1 commit into
mainfrom
fix/triage-late-team-check
Sep 23, 2026
Merged

theletterf merged 1 commit into
mainfrom
fix/triage-late-team-check

Conversation

@theletterf

@theletterf theletterf commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

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

@theletterf theletterf self-assigned this Sep 23, 2026
@theletterf
theletterf marked this pull request as ready for review September 23, 2026 10:07
@theletterf
theletterf requested a review from a team as a code owner September 23, 2026 10:07
@theletterf
theletterf requested a review from technige September 23, 2026 10:07
@theletterf
theletterf merged commit fd591e9 into main Sep 23, 2026
11 of 12 checks passed
@theletterf
theletterf deleted the fix/triage-late-team-check branch September 23, 2026 10:11

@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 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…

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.

1 participant