Problem statement
The safe_outputs job of Smoke Copilot fails at the Process Safe Outputs step even though the agent job succeeds and 9 of 10 other safe outputs are applied. The failure is caused by a single dispatch_workflow safe output that targets haiku-printer without supplying that workflow's required message input. The GitHub dispatch API rejects it with HTTP 422, and the handler marks the whole job as failed.
Affected workflows and run IDs
| Workflow |
Run |
Result |
Failing job/step |
| Smoke Copilot |
§27885948833 |
failure |
safe_outputs → Process Safe Outputs |
- Branch:
fix/code-scanning-600-unsafe-quoting-3e48605690b14101; event: workflow_dispatch.
- Agent job conclusion: success (37 turns, 2.20M tokens). Failure is isolated to safe-output processing.
Evidence (log references, job 82521927044)
Processing message 2/14: dispatch_workflow → Dispatching workflow: haiku-printer.yml
POST /repos/github/gh-aw/actions/workflows/haiku-printer.yml/dispatches - 422
##[error]Failed to dispatch workflow "haiku-printer": Required input 'message' not provided
##[error]✗ Message 2 (dispatch_workflow) failed: ...
##[warning]1 message(s) failed to process followed by ##[error]1 safe output(s) failed: - dispatch_workflow: ... → job conclusion failure.
Other outputs in the same run succeeded (created issue #40526, discussion #40525, discussion comment on #40516, artifact upload), confirming the failure is specific to the dispatch input contract.
Probable root cause
.github/workflows/haiku-printer.yml declares workflow_dispatch.inputs.message with required: true (lines 4-8).
- The Smoke Copilot
dispatch-workflow safe-output config (.github/workflows/smoke-copilot.md, lines 105-109) lists only workflows: [haiku-printer] with no inputs mapping.
- The prompt (smoke-copilot.md step 11) instructs the agent to dispatch
haiku-printer "with an original testing/automation haiku," but the emitted dispatch_workflow item carried no message field, so no required input reached the dispatch API.
- The
dispatch_workflow handler dispatches before validating that required workflow inputs are present, so a recoverable per-message problem escalates to a hard job failure.
Proposed remediation (any one resolves the failure; 1+2 recommended)
- In
smoke-copilot.md, make the message input explicit/deterministic for the dispatch-workflow output (e.g. supply a default inputs.message or instruct the agent to always include a non-empty message), so required inputs are guaranteed.
- In the
dispatch_workflow safe-output handler, pre-validate that all required: true inputs of the target workflow are present and fail the individual message gracefully (skip + warn) rather than 422-ing the API and failing the whole job — mirror the existing "skipped" handling used for create_pull_request_review_comment in this same run.
- Alternatively, relax
haiku-printer.yml message to required: false with a default, since it is a test target.
Success criteria / verification
- A re-run of Smoke Copilot completes with
safe_outputs job conclusion success.
- The
haiku-printer dispatch either succeeds (200/204) with a populated message, or is skipped with a warning instead of failing the job.
- No
1 safe output(s) failed: dispatch_workflow error in the Process Safe Outputs step.
Correlation / scope
References: §27885948833
Related to #39883
Generated by 🔍 [aw] Failure Investigator (6h) · 216.2 AIC · ⌖ 12.5 AIC · ⊞ 4.9K · ◷
Problem statement
The
safe_outputsjob of Smoke Copilot fails at the Process Safe Outputs step even though the agent job succeeds and 9 of 10 other safe outputs are applied. The failure is caused by a singledispatch_workflowsafe output that targetshaiku-printerwithout supplying that workflow's requiredmessageinput. The GitHub dispatch API rejects it with HTTP 422, and the handler marks the whole job as failed.Affected workflows and run IDs
safe_outputs→ Process Safe Outputsfix/code-scanning-600-unsafe-quoting-3e48605690b14101; event:workflow_dispatch.Evidence (log references, job 82521927044)
Processing message 2/14: dispatch_workflow→Dispatching workflow: haiku-printer.ymlPOST /repos/github/gh-aw/actions/workflows/haiku-printer.yml/dispatches - 422##[error]Failed to dispatch workflow "haiku-printer": Required input 'message' not provided##[error]✗ Message 2 (dispatch_workflow) failed: ...##[warning]1 message(s) failed to processfollowed by##[error]1 safe output(s) failed: - dispatch_workflow: ...→ job conclusionfailure.Other outputs in the same run succeeded (created issue #40526, discussion #40525, discussion comment on #40516, artifact upload), confirming the failure is specific to the dispatch input contract.
Probable root cause
.github/workflows/haiku-printer.ymldeclaresworkflow_dispatch.inputs.messagewithrequired: true(lines 4-8).dispatch-workflowsafe-output config (.github/workflows/smoke-copilot.md, lines 105-109) lists onlyworkflows: [haiku-printer]with noinputsmapping.haiku-printer"with an original testing/automation haiku," but the emitteddispatch_workflowitem carried nomessagefield, so no required input reached the dispatch API.dispatch_workflowhandler dispatches before validating that required workflow inputs are present, so a recoverable per-message problem escalates to a hard job failure.Proposed remediation (any one resolves the failure; 1+2 recommended)
smoke-copilot.md, make themessageinput explicit/deterministic for thedispatch-workflowoutput (e.g. supply a defaultinputs.messageor instruct the agent to always include a non-emptymessage), so required inputs are guaranteed.dispatch_workflowsafe-output handler, pre-validate that allrequired: trueinputs of the target workflow are present and fail the individual message gracefully (skip + warn) rather than 422-ing the API and failing the whole job — mirror the existing "skipped" handling used forcreate_pull_request_review_commentin this same run.haiku-printer.ymlmessagetorequired: falsewith a default, since it is a test target.Success criteria / verification
safe_outputsjob conclusionsuccess.haiku-printerdispatch either succeeds (200/204) with a populatedmessage, or is skipped with a warning instead of failing the job.1 safe output(s) failed: dispatch_workflowerror in the Process Safe Outputs step.Correlation / scope
agentic-workflowsissue (no issue referencesdispatch_workflow/haiku-printer).References: §27885948833
Related to #39883