You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a new skip_check step before lint_scan that:
Uses gh issue list to find open [lint-monster] issues created within the last 24 hours
If any are found, creates lint-clean.flag to cause the agent to call noop and stop
Updated lint_scan to respect a pre-existing lint-clean.flag (from skip_check)
This prevents the workflow from spawning duplicate agent sessions when lint issues from the previous run are still open and being worked on. The 24h window ensures the workflow can run again the next day even if issues remain open.
2. Single agent session per run
Reduced assign-to-agent: max from 3 → 1
Updated agent prompt: select one focused group (≤ 10 diagnostics or a single linter rule) instead of up to three groups
Changed prompt to assign exactly one Copilot agent session
This makes each daily run scoped to what a single agent session can realistically complete, avoiding overloading the issue tracker with parallel assignments that may conflict.
Validation
All modified workflows compiled successfully:
✅ lint-monster — valid, no errors, no warnings
Note: .lock.yml files will be regenerated automatically after merge.
Warning
Protected Files — Push Permission Denied
This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.
The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.
Create the pull request manually
# Download the patch from the workflow run
gh run download 25980984618 -n agent -D /tmp/agent-25980984618
# Create a new branch
git checkout -b q/lint-monster-skip-if-and-subset-4142e0acaa599ce3 main
# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-25980984618/aw-q-lint-monster-skip-if-and-subset.patch
# Push the branch and create the pull request
git push origin q/lint-monster-skip-if-and-subset-4142e0acaa599ce3
gh pr create --title '[q] lint-monster: skip-if recent open issues (24h), single agent session' --base main --head q/lint-monster-skip-if-and-subset-4142e0acaa599ce3 --repo github/gh-aw
Q Workflow Optimization Report
Triggered by:
@pelikhanDiscussion: #32740
Changes Made
.github/workflows/lint-monster.md1. Skip-if recent open issues (24h expiration)
Added a new
skip_checkstep beforelint_scanthat:gh issue listto find open[lint-monster]issues created within the last 24 hourslint-clean.flagto cause the agent to callnoopand stoplint_scanto respect a pre-existinglint-clean.flag(fromskip_check)This prevents the workflow from spawning duplicate agent sessions when lint issues from the previous run are still open and being worked on. The 24h window ensures the workflow can run again the next day even if issues remain open.
2. Single agent session per run
assign-to-agent: maxfrom3→1This makes each daily run scoped to what a single agent session can realistically complete, avoiding overloading the issue tracker with parallel assignments that may conflict.
Validation
All modified workflows compiled successfully:
lint-monster— valid, no errors, no warningsNote:
.lock.ymlfiles will be regenerated automatically after merge.Warning
Protected Files — Push Permission Denied
This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.
Protected files
The push was rejected because GitHub Actions does not have
workflowspermission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.Create the pull request manually