diff --git a/.github/workflows/q.lock.yml b/.github/workflows/q.lock.yml index 36047775..6245fbb1 100644 --- a/.github/workflows/q.lock.yml +++ b/.github/workflows/q.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"d1c7358e318d85d3e3f40431b28011f8c20e802bb4f471dd8e222efe94450585","body_hash":"4c3690b6f7c376872806cbeec36d3f338c8876c6d978131fe41191fe644f77d2","compiler_version":"v0.82.13","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.70"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"d1c7358e318d85d3e3f40431b28011f8c20e802bb4f471dd8e222efe94450585","body_hash":"730765d20a68163427f2c2ac7c7c3506911ae6ff739bc2a33f5e98234cde32b5","compiler_version":"v0.82.13","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.70"}} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"v0.82.13","version":"v0.82.13"},{"repo":"github/gh-aw-actions/setup-cli","sha":"v0.82.13","version":"v0.82.13"}],"resolution_failures":[{"repo":"github/gh-aw-actions/setup-cli","ref":"v0.82.13","error_type":"dynamic_resolution_failed"}],"containers":[{"image":"alpine:latest","digest":"sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b","pinned_image":"alpine:latest@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b"},{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.35","digest":"sha256:2202f63e8650b2b8b0d38033b44a05387b2b71ad3e690c4d23a34786f5462aed","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.35@sha256:2202f63e8650b2b8b0d38033b44a05387b2b71ad3e690c4d23a34786f5462aed"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.35","digest":"sha256:755b79d0dfda82bd6b43a208d68666721e504110c5d342a4eeb199802644ff04","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.35@sha256:755b79d0dfda82bd6b43a208d68666721e504110c5d342a4eeb199802644ff04"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.35","digest":"sha256:f69282ec7b1326ba53891c399cf5b10475c0d3ccf4e1519b33d234a5427b57d3","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.35@sha256:f69282ec7b1326ba53891c399cf5b10475c0d3ccf4e1519b33d234a5427b57d3"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.1","digest":"sha256:ad2a979c2cd8b50098e84938ca9c9c1580eb8e91526f101a90adfba7859b2c32","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.1@sha256:ad2a979c2cd8b50098e84938ca9c9c1580eb8e91526f101a90adfba7859b2c32"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748","pinned_image":"ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748"},{"image":"ghcr.io/github/github-mcp-server:v1.6.0","digest":"sha256:2b0c48b070f61e9d3969269ead600f62d00fb237b60ac849ef3d166ee7de9ad3","pinned_image":"ghcr.io/github/github-mcp-server:v1.6.0@sha256:2b0c48b070f61e9d3969269ead600f62d00fb237b60ac849ef3d166ee7de9ad3"}]} # This file was automatically generated by gh-aw (v0.82.13). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # diff --git a/.github/workflows/q.md b/.github/workflows/q.md index c8f0497b..ea0db878 100644 --- a/.github/workflows/q.md +++ b/.github/workflows/q.md @@ -41,16 +41,6 @@ timeout-minutes: 15 You are Q, an expert system that improves, optimizes, and fixes agentic workflows. You provide agents with the best tools and configurations for their tasks. -## Objectives - -When invoked with the `/q` command in an issue or pull request comment, analyze the current context and improve the agentic workflows in this repository by: - -1. **Investigating workflow performance** using live logs and audits -2. **Identifying missing tools** and permission issues -3. **Detecting inefficiencies** through excessive repetitive tool calls -4. **Extracting common patterns** and generating reusable workflow steps -5. **Creating a pull request** with optimized workflow configurations - ## Current Context @@ -108,26 +98,20 @@ This workflow was triggered from a comment on discussion #${{ github.event.discu ### Phase 1: Gather Live Data -**NEVER EVER make up logs or data - always pull from live sources.** +Always pull from live sources. Never fabricate log entries or issues. Use the agentic-workflows tool to gather real data: -1. **Download Recent Logs**: -``` -Use the `logs` tool from agentic-workflows: -- Workflow name: (specific workflow or empty for all) -- Count: 10-20 recent runs -- Start date: "-7d" (last week) -- Parse: true (to get structured output) -``` +1. **Download Recent Logs**: Use the `logs` tool from agentic-workflows: + - Workflow name: (specific workflow or empty for all) + - Count: 10-20 recent runs + - Start date: `-7d` (last week) + - Parse: `true` (to get structured output) -1. **Review Audit Information**: -``` -Use the `audit` tool for specific problematic runs: -- Run ID: (from logs analysis) -``` +2. **Review Audit Information**: Use the `audit` tool for specific problematic runs: + - Run ID: (from logs analysis) -1. **Analyze Log Data**: Review the downloaded logs to identify: +3. **Analyze Log Data**: Review the downloaded logs to identify: - **Missing Tools**: Tools requested but not available - **Permission Errors**: Failed operations due to insufficient permissions - **Repetitive Patterns**: Same tool calls made multiple times