Q Workflow Optimization Report
Issues Found (from live data)
Analysis Overview
Analyzed 90 workflows using live data from gh-aw logs MCP server (last 7 days):
Total runs : 5 workflows
Duration : 16.7 minutes
Tokens : 680,661
Cost : $0.62
Errors : 17
Warnings : 5
Missing tools : 0
Configuration Gaps
8 workflows missing timeout protection (Run IDs: 19709887493, 19703556391, 19703556386):
ai-triage-campaign.md
daily-team-status.md
dev.md
example-permissions-warning.md
github-mcp-structural-analysis.md
issue-triage-agent.md
notion-issue-summary.md
weekly-issue-summary.md
Risk : Workflows can run indefinitely, incurring unexpected costs.
Changes Made
Added timeout and strict mode to 8 workflows. Set timeouts based on complexity:
5-10 min: Simple/standard workflows
15 min: Complex analysis
20 min: Data-intensive reporting
All workflows compiled successfully. Lock files excluded (will regenerate after merge).
Expected Improvements
Cost Protection : Timeout guards prevent runaway costs
Better Validation : Strict mode catches errors at compile-time
Appropriate Limits : Timeouts match workflow complexity
Validation
✅ All 8 workflows compiled successfully with gh-aw MCP server
References
Log location: /tmp/gh-aw/aw-mcp/logs/
Run IDs: 19709887493, 19709824777, 19703556391, 19703556386, 19692858223
AI generated by Q
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 as an artifact (aw.patch) in the workflow run linked above.
To apply the patch locally:
# Download the artifact from the workflow run https://github.com/githubnext/gh-aw/actions/runs/19709858993
# (Use GitHub MCP tools if gh CLI is not available)
gh run download 19709858993 -n aw.patch
# Apply the patch
git am aw.patch
Show patch preview (134 of 134 lines)
From 655b567f7edfc90ed2b7c07f6a055d4e20e6c4fd Mon Sep 17 00:00:00 2001
From: Q Workflow Optimizer <q@github-agentic-workflows.local>
Date: Wed, 26 Nov 2025 16:13:01 +0000
Subject: [PATCH] Add timeout and strict mode to 8 workflows
- Add timeout-minutes to prevent runaway costs
- Enable strict mode for better validation
- Set appropriate timeouts based on workflow complexity
Workflows modified:
- ai-triage-campaign.md
- daily-team-status.md
- dev.md
- example-permissions-warning.md
- github-mcp-structural-analysis.md
- issue-triage-agent.md
- notion-issue-summary.md
- weekly-issue-summary.md
---
.github/workflows/ai-triage-campaign.md | 2 ++
.github/workflows/daily-team-status.md | 2 ++
.github/workflows/dev.md | 2 ++
.github/workflows/example-permissions-warning.md | 1 +
.github/workflows/github-mcp-structural-analysis.md | 1 +
.github/workflows/issue-triage-agent.md | 2 ++
.github/workflows/notion-issue-summary.md | 1 +
.github/workflows/weekly-issue-summary.md | 2 ++
8 files changed, 13 insertions(+)
diff --git a/.github/workflows/ai-triage-campaign.md b/.github/workflows/ai-triage-campaign.md
index 7e4430f..5e61c31 100644
--- a/.github/workflows/ai-triage-campaign.md
+++ b/.github/workflows/ai-triage-campaign.md
@@ -20,6 +20,8 @@ permissions:
contents: read
issues: read
+ timeout-minutes: 15
+ strict: true
engine: copilot
tools:
github:
diff --git a/.github/workflows/daily-team-status.md b/.github/workflows/daily-team-status.md
index e8bab8d..e509529 100644
--- a/.github/workflows/daily-team-status.md
+++ b/.github/workflows/daily-team-status.md
@@ -9,6 +9,8 @@ permissions:
issues: read
pull-requests: read
tracker-id: daily-team-status
+ timeout-minutes: 10
+ strict: true
network: defaults
imports:
- githubnext/agentics/workflows/shared/reporting.md@d3422bf940923ef1d43db5559652b8e1e71869f3
diff --git a/.github/workflows/dev.md b/.github/workflows/
... (truncated)
Q Workflow Optimization Report
Issues Found (from live data)
Analysis Overview
Analyzed 90 workflows using live data from gh-aw logs MCP server (last 7 days):
Configuration Gaps
8 workflows missing timeout protection (Run IDs: 19709887493, 19703556391, 19703556386):
Risk: Workflows can run indefinitely, incurring unexpected costs.
Changes Made
Added timeout and strict mode to 8 workflows. Set timeouts based on complexity:
All workflows compiled successfully. Lock files excluded (will regenerate after merge).
Expected Improvements
Validation
✅ All 8 workflows compiled successfully with gh-aw MCP server
References
/tmp/gh-aw/aw-mcp/logs/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 as an artifact (
aw.patch) in the workflow run linked above.To apply the patch locally:
Show patch preview (134 of 134 lines)