Repository navigation
Optimize daily-syntax-error-quality: add deterministic pre-step, tighten turn budget #28839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,12 @@ safe-outputs: | |
| timeout-minutes: 20 | ||
| strict: true | ||
| steps: | ||
| - name: Find candidate workflows | ||
| run: | | ||
| mkdir -p /tmp/gh-aw/agent | ||
| find .github/workflows -name '*.md' -type f ! -name 'daily-*.md' ! -name '*-test.md' \ | ||
| > /tmp/gh-aw/agent/candidates.txt | ||
| echo "Found $(wc -l < /tmp/gh-aw/agent/candidates.txt) candidate workflows" | ||
| - name: Install gh-aw CLI | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
@@ -68,7 +74,7 @@ Test the quality of compiler error messages by: | |
|
|
||
| ## Token Budget Guidelines | ||
|
|
||
| **Target**: Complete the full analysis in ≤ 40 turns. | ||
| **Target**: Complete the full analysis in ≤ 30 turns. | ||
|
|
||
| - Test **2 workflows** (not 3) — one simple, one complex. | ||
| - One error category per workflow (Category A for workflow 1, Category B for workflow 2). | ||
|
|
@@ -86,11 +92,11 @@ Test the quality of compiler error messages by: | |
|
|
||
| ## Phase 1: Select Test Workflows | ||
|
|
||
| Select 2 diverse workflows for testing (avoid daily-* and test workflows): | ||
| Select 2 diverse workflows for testing from the pre-computed candidate list: | ||
|
|
||
| ```bash | ||
| # Find candidate workflows | ||
| find .github/workflows -name '*.md' -type f ! -name 'daily-*.md' ! -name '*-test.md' | head -10 | ||
| # Candidate workflows have already been discovered by the pre-step | ||
| cat /tmp/gh-aw/agent/candidates.txt | ||
| ``` | ||
|
Comment on lines
+95
to
100
|
||
|
|
||
| **Selection Criteria**: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The candidate
findfilters don’t fully match the stated goal of avoiding “test workflows” and will also include template files under.github/workflows/shared/(since it searches the whole tree and only excludesdaily-*.mdand*-test.md). This can lead to selecting non-workflow/shared fragments ortest-*.mdworkflows for syntax-error testing. Consider excluding.github/workflows/shared/**andtest-*.md(or adjusting the selection criteria text to match the actual candidate set).