Skip to content

Fix PR triage labeling and skip previously assessed PRs - #3996

Merged
JoannaaKL merged 2 commits into
mainfrom
joannaakl-fix-pr-triage-dedup
Dec 1, 2026
Merged

JoannaaKL merged 2 commits into
mainfrom
joannaakl-fix-pr-triage-dedup

Conversation

@JoannaaKL

@JoannaaKL JoannaaKL commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 208b2ca697e9a1c5e4d56f96ff79f0e16eec306b

Dimension Assessment Rationale
Change confidence 8/10 ↑ Workflow validation and local triage previews passed; regression cases distinguish configured and default writers from lookalikes after label removal.
↓ Live safe-output delivery has not been verified.
Diagnosis confidence 9.5/10 ↑ The pinned github-script action overwrites its result output; staged mode separately prevents writes.
Evidence fit 9.5/10 ↑ The affected run exported failed sections but no verdict and skipped activation and safe outputs.

Summary

Restore live triage labels and comments without repeating an existing assessment.

Why

Run 46439249565 found missing sections but skipped activation.

What changed

  • Use a dedicated verdict output and enable safe-output writes.
  • Check for prior triage before dispatch and again before activating the agent. If GH_AW_GITHUB_TOKEN is configured, set the repository variable PR_TRIAGE_WRITER_LOGIN to the login that posts its comments.

MCP impact

  • No tool or API changes — workflow only.
  • Tool schema or behavior changed
  • New tool added

Prompts tested (tool changes only)

  • Not applicable: no MCP tool changes.

Security / limits

  • No security or limits impact
  • Auth / permissions considered — prior-assessment checks read PR metadata.
  • Data exposure, filtering, or token/size limits considered

Tool renaming

  • I am renaming tools as part of this PR (e.g. a part of a consolidation effort)
    • I have added the new tool aliases in deprecated_tool_aliases.go
  • I am not renaming tools as part of this PR

Note: if you're renaming tools, you must add the tool aliases. For more information on how to do so, please refer to the official docs.

Lint & tests

  • Linted locally with ./script/lint
  • Tested locally with ./script/test
    Workflow-only change: gh aw validate pr-triage, local first-pass and repeat-triage fixtures, and bash .github/scripts/pr-already-triaged-test.sh passed. Application lint and tests were not run.

Docs

  • Not needed — no user-facing API change.
  • Updated (README / docs / examples)

Skills

  • Updated relevant skills or confirmed no bundled skill applies

@JoannaaKL
JoannaaKL requested a review from a team as a code owner December 1, 2026 09:52
Copilot AI adaptive review requested due to automatic review settings December 1, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The existing-assessment check misses comments authored by the configured triage token’s identity, allowing duplicate assessments after a maintainer removes the label.

1 open issue
What changed in this PR

This PR restores live labels and comments in the repository’s PR triage automation and adds checks to avoid repeating prior assessments. It does not change MCP tools or APIs.

Changes:

  • Use a dedicated verdict output so template checks can activate triage correctly.
  • Enable safe-output writes and update the generated workflow permissions.
  • Check existing labels and assessment comments before dispatch and agent activation.
File Description
.github/​workflows/​pr-triage.md Fix verdict output, check prior triage, and enable live writes.
.github/​workflows/​pr-triage.lock.yml Regenerate executable workflow with updated checks, permissions, and output artifacts.
.github/​workflows/​pr-triage-dispatch.yml Check prior triage before dispatching a run.
.github/​scripts/​pr-already-triaged.sh Add shared detection of triage labels and assessment comments.

Review effort: Balanced (adaptive)

Comment thread .github/scripts/pr-already-triaged.sh Resolved
almaleksia
almaleksia previously approved these changes Dec 1, 2026
permissions:
issues: read
issues: write
pull-requests: write

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Enabling live agent-written PR labels and comments changes write permissions, gating, and identity-based idempotency across multiple jobs, warranting human review.

No open issues 🎉

1 resolved since last review

Review effort: Balanced (adaptive)

@JoannaaKL
JoannaaKL merged commit d2e95b0 into main Dec 1, 2026
21 checks passed
@JoannaaKL
JoannaaKL deleted the joannaakl-fix-pr-triage-dedup branch December 1, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants