Safe Output Health Report - 2026-03-23 #22376
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Safe Output Health Monitor. A newer discussion is available at Discussion #22549. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Executive Summary
Overall, core safe output operations (issue/comment/PR creation) performed flawlessly. The one workflow failure was caused by a post-processing Copilot assignment step failing with
Bad credentials— not by the issue creation itself. A recurring PR review line resolution warning (EP021) was handled gracefully via fallback.Safe Output Item Statistics
add_commentcreate_pull_request_review_commentcreate_issuesubmit_pull_request_reviewadd_labelspush_to_pull_request_branchcreate_discussionadd_reviewerupdate_pull_requestdispatch_workflowError Clusters
🆕 EP023 — Copilot Agent Assignment Bad Credentials (NEW)
Error messages:
Root Cause: After successfully creating an issue via the
create_issuesafe output handler, the job attempts to assign Copilot as an assignee (configured viaGH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: {"create_issue": {"assignees": ["copilot"]}}). The GitHub API call to find/assign the Copilot agent fails withBad credentials, indicating theGITHUB_TOKENin these workflows lacks the necessary scope for Copilot agent assignment.Affected runs:
Configuration Context
The Duplicate Code Detector has this safe outputs config:
{ "create_issue": {"assignees": ["copilot"], "max": 1}, "missing_data": {}, "missing_tool": {}, "noop": {"max": 1, "report-as-issue": "true"} } ``` The GITHUB_TOKEN permissions for safe_outputs job in Duplicate Code Detector: - `Contents: read` - `Issues: write` - `Metadata: read` The Copilot agent lookup requires additional API permissions not present in the standard `Issues: write` token. </details> --- #### ↩️ EP021 — PR Review Line Resolution Failure (RECURRING) - **Count**: 1 occurrence (Smoke Claude) - **Severity**: Warning only — gracefully recovered - **Run**: [§23420748984](https://github.com/github/gh-aw/actions/runs/23420748984) ``` ##[warning]PR review submission failed due to unresolvable comment line(s): Unprocessable Entity: "Line could not be resolved". Retrying as body-only review.Root Cause: The agent generated review comments referencing specific diff lines that were no longer resolvable by the time submission occurred (e.g., PR was updated or diff shifted). The handler correctly retried as a body-only review and succeeded.
Impact: Minimal — review was posted successfully as a body comment. No data loss. Recurring but self-healing.
Root Cause Analysis
Copilot Assignment Authentication (EP023)
The
assign_copilotstep in the safe_outputs job uses the defaultGITHUB_TOKENto call the GitHub API for finding and assigning Copilot coding agents. TheIssues: writepermission alone is insufficient — Copilot agent assignment appears to require either:This explains why the
create_issuestep (which only needsIssues: write) succeeds, while the subsequent assignment step fails.Behavioral difference between runs: Issue Monster captures assignment errors as warnings (not hard failures), while Duplicate Code Detector propagates them as errors that cause a conclusion=failure. This suggests different error handling configurations between the two workflows' conclusion jobs.
PR Review Line Resolution (EP021)
GitHub's pull request review API rejects comments on lines that cannot be located in the current diff. This happens when:
The fallback to body-only review is working correctly as a recovery mechanism.
Recommendations
Critical Issues
GITHUB_TOKENlacks Copilot assignment permissionsassignees: ["copilot"]config)Bug Fixes Required
Process Improvements
Copilot Assignment Retry Logic
EP021 Permanent Fix
Work Item Plans
Work Item 1: Fix Copilot Assignment Credential Failure (EP023)
assign_copilotpost-processing step in the safe_outputs job fails withBad credentialswhen using the default GITHUB_TOKEN. This causes hard failures in Duplicate Code Detector and warnings in Issue Monster.Work Item 2: Resolve EP021 PR Review Line Resolution
Historical Context
Recent trend (last 7 days)
Trends
Next Steps
References:
Beta Was this translation helpful? Give feedback.
All reactions