-
Notifications
You must be signed in to change notification settings - Fork 295
Description
Q Workflow Optimization Report
Issue Found
The workflow-normalizer workflow was creating up to 5 separate issues (one per non-compliant workflow), resulting in issue spam. See issue #16830 as an example — it was generated for a single workflow when all findings should be consolidated.
Changes Made
.github/workflows/workflow-normalizer.md:
-
Changed
max: 5→max: 1in thesafe-outputs.create-issueconfiguration — limits output to a single issue per run. -
Rewrote Step 4 prompt — changed from "For each non-compliant workflow, create an issue" to "Create one issue that consolidates all non-compliant workflows found." The new template includes:
- A summary table listing all non-compliant workflows at once
- Consolidated required-changes instructions covering all workflows
- A single agent task to fix all listed workflows
Expected Improvements
- Reduces issue noise: 1 issue per run (max) instead of up to 5
- Gives the fixing agent a complete picture of all workflows needing attention in one place
- Makes it easier to track and close style-normalization work
Validation
✅ workflow-normalizer.md compiled successfully.
AI generated by Q
- expires on Feb 21, 2026, 2:19 PM UTC
Note
This was originally intended as a pull request, but the git push operation failed.
Workflow Run: View run details and download patch artifact
The patch file is available in the agent-artifacts artifact in the workflow run linked above.
To apply the patch locally:
# Download the artifact from the workflow run https://github.com/github/gh-aw/actions/runs/22185285725
# (Use GitHub MCP tools if gh CLI is not available)
gh run download 22185285725 -n agent-artifacts
# The patch file will be at agent-artifacts/tmp/gh-aw/aw.patch after download
# Apply the patch
git am agent-artifacts/tmp/gh-aw/aw.patchShow patch preview (168 of 168 lines)
From 971ca23ceb19d95513220be10e89e87ba9da6d0a Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Thu, 19 Feb 2026 14:16:26 +0000
Subject: [PATCH] fix(workflow-normalizer): create single consolidated issue
instead of multiple
- Change max from 5 to 1 in safe-outputs create-issue config
- Update Step 4 prompt to consolidate all non-compliant workflows into one issue
- New issue template uses a table listing all workflows with a single agent task
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
.../workflows/workflow-normalizer.lock.yml | 8 +--
.github/workflows/workflow-normalizer.md | 60 ++++++++++++-------
2 files changed, 41 insertions(+), 27 deletions(-)
diff --git a/.github/workflows/workflow-normalizer.lock.yml b/.github/workflows/workflow-normalizer.lock.yml
index ceabad9..4f2c12c 100644
--- a/.github/workflows/workflow-normalizer.lock.yml
+++ b/.github/workflows/workflow-normalizer.lock.yml
@@ -28,7 +28,7 @@
# - shared/mood.md
# - shared/reporting.md
#
-# gh-aw-metadata: {"schema_version":"v1","frontmatter_hash":"8673a900f90be1db556f4d2a8902d74919937b2037e03b2cd6445fd5e78675d4"}
+# gh-aw-metadata: {"schema_version":"v1","frontmatter_hash":"45bc7216cd4ae98e16bbe10affdf05c580698482093dade0516ec7a7e515da36"}
name: "Workflow Normalizer"
"on":
@@ -436,12 +436,12 @@ jobs:
mkdir -p /tmp/gh-aw/safeoutputs
mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs
cat > /opt/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_EOF'
- {"create_issue":{"expires":24,"group":true,"max":5},"missing_data":{},"missing_tool":{},"noop":{"max":1}}
+ {"create_issue":{"expires":24,"group":true,"max":1},"missing_data":{},"missing_tool":{},"noop":{"max":1}}
GH_AW_SAFE_OUTPUTS_CONFIG_EOF
cat > /opt/gh-aw/safeoutputs/tools.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_EOF'
[
{
- "description
... (truncated)