Skip to content

Fail workflows when agents report incomplete - #59316

Draft
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/report-incomplete-fix
Draft

Fail workflows when agents report incomplete#59316
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/report-incomplete-fix

Conversation

Copilot AI commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

A successful agent process could emit report_incomplete while leaving the Actions job green. Failure-issue reporting could run or fail independently without propagating the incomplete state to the job conclusion.

  • Failure propagation

    • Call core.setFailed() when a meaningful report_incomplete signal is detected.
    • Continue optional issue reporting after marking the step failed.
    • Preserve the exception for task-completion registration-only reports.
  • Regression coverage

    • Cover successful agent exits that report incomplete.
    • Verify the step remains failed when issue reporting is disabled or issue creation fails.
core.setFailed("Agent reported that it could not complete the task");

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix workflow green status with report_incomplete signal Fail workflows when agents report incomplete Sep 7, 2026
Copilot AI requested a review from pelikhan September 7, 2026 23:24
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.

report_incomplete leaves workflow green when the agent exits 0

2 participants