Motivation
Link to the gh-aw PR: github/gh-aw#48317 — Restore backward compatibility for single-target dispatch_workflow safe outputs
When a workflow configures exactly one dispatch_workflow.workflows entry, an agent can omit workflow_name from the safe-output item and gh-aw should infer it automatically. PR #48317 fixed a regression where this previously-valid omission was rejected. No regression test exists.
Proposed test
- Workflow file:
test-copilot-dispatch-workflow-single-target.md
- Trigger:
workflow_dispatch
- Engine: copilot
- Safe output:
dispatch_workflow with a single workflow configured and no explicit workflow_name in the agent's output
- Variant: standard
Minimal test prompt sketch
Configure one target workflow in safe-outputs.dispatch-workflow.workflows. Instruct the agent to emit a dispatch_workflow safe-output item without specifying workflow_name. The harness asserts that the dispatch was accepted and the correct workflow was triggered.
New fixtures or secrets needed
Requires a dispatchable target workflow in githubnext/gh-aw-test. The existing test-copilot-dispatch-workflow.md or a lightweight stub could serve as the target. No new secrets needed.
Notes
The existing test-copilot-dispatch-workflow test covers multi-target dispatch. This test specifically covers the single-target name-inference path to prevent regression of the #48317 fix.
Generated by 🔍 Suggest New E2E Tests · sonnet46 · 24.7 AIC · ⌖ 5.9 AIC · ⊞ 6.1K · ◷
Motivation
Link to the gh-aw PR: github/gh-aw#48317 — Restore backward compatibility for single-target
dispatch_workflowsafe outputsWhen a workflow configures exactly one
dispatch_workflow.workflowsentry, an agent can omitworkflow_namefrom the safe-output item and gh-aw should infer it automatically. PR #48317 fixed a regression where this previously-valid omission was rejected. No regression test exists.Proposed test
test-copilot-dispatch-workflow-single-target.mdworkflow_dispatchdispatch_workflowwith a single workflow configured and no explicitworkflow_namein the agent's outputMinimal test prompt sketch
Configure one target workflow in
safe-outputs.dispatch-workflow.workflows. Instruct the agent to emit adispatch_workflowsafe-output item without specifyingworkflow_name. The harness asserts that the dispatch was accepted and the correct workflow was triggered.New fixtures or secrets needed
Requires a dispatchable target workflow in
githubnext/gh-aw-test. The existingtest-copilot-dispatch-workflow.mdor a lightweight stub could serve as the target. No new secrets needed.Notes
The existing
test-copilot-dispatch-workflowtest covers multi-target dispatch. This test specifically covers the single-target name-inference path to prevent regression of the #48317 fix.