fix(judge): exclude .txt files from the LLM judge corpus#145
Open
sanchitmehtagit wants to merge 1 commit into
Open
fix(judge): exclude .txt files from the LLM judge corpus#145sanchitmehtagit wants to merge 1 commit into
sanchitmehtagit wants to merge 1 commit into
Conversation
Agents routinely emit large standalone .txt docs (implementation summaries, verification checklists) alongside the actual source. These are not code, add no signal the judge needs, and inflate the judged corpus — sometimes past judge.maxCodeChars, which errors the judge grader out and scores it as a hard fail. The vue_quickstart run is a concrete example: its judged corpus was 44,931 chars (over the 32,768 limit), so both LLM-judge graders errored with "Code corpus exceeds limit" and flipped the run to status=failure despite 18/20 deterministic graders passing. The overflow was driven by a 13KB IMPLEMENTATION_SUMMARY.txt and a VERIFICATION_CHECKLIST.txt. .md is already excluded for the same reason; extend the pattern to .txt. Deterministic contains/notContains graders are unaffected — they read the full file set, not the judge-filtered one.
sanchitmehtagit
force-pushed
the
flywheel/judge-exclude-txt-files
branch
from
July 23, 2026 10:30
93b4fa0 to
39ebae8
Compare
sanchitmehtagit
requested review from
frederikprijck,
subhankarmaiti and
yogeshchoudhary147
July 23, 2026 10:33
📝 WalkthroughWalkthroughThe LLM judge now excludes ChangesLLM judge input exclusions
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Exclude
.txtfiles from the corpus sent to the LLM judge, matching the existing.mdexclusion.Agents routinely emit large standalone
.txtdocs (implementation summaries, verification checklists) alongside the real source. These aren't code, add no signal the judge needs, and inflate the judged corpus — sometimes pastjudge.maxCodeChars, which errors the judge grader out and scores it as a hard fail.Concrete failure this fixes
In the
vue_quickstartrun, the judged corpus was 44,931 chars — over the 32,768 limit. Both LLM-judge graders errored withCode corpus exceeds limitand the run flipped tostatus=failuredespite 18/20 deterministic graders passing. The overflow was driven by agent-generated docs — a ~13KBIMPLEMENTATION_SUMMARY.txtand aVERIFICATION_CHECKLIST.txt. Stripping.txt(as.mdalready is) drops the corpus under the limit so the judge actually runs.This is happening with only Haiku 4.5 model
Change
/\.txt$/itoJUDGE_EXCLUDED_PATTERNSinllm-judge.ts, with a comment explaining the rationale..txtexclusion.Safety
The judge filter (
isJudgeExcluded) is applied only inside the LLM-judge executor. Deterministiccontains/notContainsgraders read the full file set (collectFiles), so they are unaffected by this change.Test
npx turbo run test --filter=@a0/evals-core— 486 passed (25 files), including the new.txtexclusion test.Summary by CodeRabbit
.txtfiles from LLM-judge inputs, alongside other non-relevant project files..TXTfiles and common text-based summary or notes files.