Skip to content

[q] lint-monster: skip-if recent open issues (24h), single agent session #32745

@github-actions

Description

@github-actions

Q Workflow Optimization Report

Triggered by: @pelikhan
Discussion: #32740

Changes Made

.github/workflows/lint-monster.md

1. Skip-if recent open issues (24h expiration)

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 31
  • 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.

Protected files

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

🎩 Equipped by Q · ● 10.8M ·

  • expires on May 19, 2026, 4:17 AM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions