Skip to content

[q] reduce instructions-janitor max lines target from 500 to 400 #41659

Description

@github-actions

Q Workflow Optimization Report

Triggered by @pelikhan on #41644: /q reduce max lines to 400 lines

Change: instructions-janitor (.github/workflows/instructions-janitor.md)

Lowered all per-file line limits from < 500 to < 400 lines and updated the size-audit enforcement threshold to match.

Category Before After
syntax-*.md < 500 < 400
safe-outputs-*.md < 500 < 400
create-agentic-workflow.md < 500 < 400
any new .github/aw/*.md < 500 < 400
size audit enforcement > 500 must split > 400 must split

Files that currently exceed the new 400-line target (will be trimmed by the next Instructions Janitor run):

  • syntax-agentic.md — 493 lines
  • token-optimization.md — 430 lines
  • memory.md — 430 lines

Validation

  • instructions-janitor compiled successfully (no errors, no warnings)

.lock.yml file intentionally excluded — will be regenerated 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 28235316690 -n agent -D /tmp/agent-28235316690

# Create a new branch
git checkout -b q-instructions-janitor-max-400-lines-1f69987b5aff6e2e main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-28235316690/aw-q-instructions-janitor-max-400-lines.patch

# Push the branch and create the pull request
git push origin q-instructions-janitor-max-400-lines-1f69987b5aff6e2e
gh pr create --title '[q] reduce instructions-janitor max lines target from 500 to 400' --base main --head q-instructions-janitor-max-400-lines-1f69987b5aff6e2e --repo github/gh-aw

🎩 Equipped by Q · 52 AIC · ⌖ 9.61 AIC · ⊞ 7.9K ·

  • expires on Jun 28, 2026, 3:41 AM UTC-08:00

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