Skip to content

report_incomplete leaves workflow green when the agent exits 0 #59274

Closed

Description

@ilja

Description

A workflow that emits report_incomplete can finish green when the agent process exits successfully. gh-aw detects the incomplete signal and enters failure-reporting logic, but does not propagate that state to the GitHub Actions job conclusion.

Observed with gh-aw v0.88.5 (27d52b43deebabba288cd8159c5c4dcfd7b4859e).

Reproduction

Configure the safe output without issue creation:

safe-outputs:
  report-incomplete:
    create-issue: false

Have an agent successfully call:

report_incomplete(reason: "RuboCop could not run reliably")

The resulting agent output is:

{
  "items": [
    {
      "type": "report_incomplete",
      "reason": "RuboCop could not run reliably"
    }
  ],
  "errors": []
}

The Pi process exits 0 because the safe-output call itself succeeded. The conclusion handler logs:

Agent emitted 1 report_incomplete signal(s) - activating failure handling

but the overall workflow concludes success.

Source behavior

actions/setup/js/handle_agent_failure.cjs sets hasReportIncomplete and enters failure handling, but that handling only creates or updates a tracking issue. It never calls core.setFailed. Errors from issue reporting are deliberately swallowed with Don't fail the workflow if we can't create the issue.

In the observed run, generic failure handling also attempted issue creation despite report-incomplete.create-issue: false. The token lacked issues:write, so that attempt received 403 and was swallowed. Successful issue creation would still leave the run green because the handler does not set the job failure state.

Expected behavior

report_incomplete should produce a failed Actions run independently of whether failure-issue reporting is enabled or succeeds. This matches the tool description that the framework treats it as a failure signal.

If green is intentional, the tool description and activating failure handling message should clarify that the signal only activates optional issue reporting rather than affecting the workflow conclusion.

Activity

  1. locked and limited conversation to collaborators on Sep 7, 2026
  2. unlocked this conversation on Sep 7, 2026
  3. linked a pull request that will close this issueFail workflows when agents report incomplete #59316on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions