fix(eval): runner label injection + measured baselines for rust/shell/yaml/swift (#15)#67
Merged
Merged
Conversation
…ries) (#15) The eval-mode prompt named 'a language-specific label' without enumerating the valid ones, so for custom-label languages the model invented synonyms (panic-> unwrap-panic, quoting->SC2086, coerce->norway-problem) that the exact-match grader scored as FP+FN — artificially depressing rust/shell/yaml to 0.67 and java held-out to 0.50 (a FALSE overfit flag). Runners now run 'detect.sh eval-categories <lang>' and inject the exact valid set. Verified: rust unwrap now emits '3:panic' (was 'unwrap-panic'), an exact match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…#15) Re-measured with the label-fixed runner: all four now 1.00/1.00 (±0.00). rust/shell/ yaml were the 0.67 synonym-label artifacts (now resolved by injecting eval-categories); swift's earlier PARTIAL transient cleared. Completes measured SEEN baselines for all 13 languages. java held-out (0.25, persistent overfit FLAG) intentionally NOT committed — fixture-quality issue tracked separately; it keeps its conservative placeholder. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Closes out baseline calibration. Two related changes:
detect.sh eval-categories <lang>and inject the exact valid set.--runs 2):unwrap-panic≠panic)SC2086≠quoting)norway-problem≠coerce)All 13 languages now have measured
seenbaselines at 1.00/1.00.Deliberately NOT included
BugPathTraversal— anew File("/data/"+name)constructor, not a realized read/write) are ambiguous, so a real model reasonably doesn't flag them as labeled. Left at its conservative placeholder; tracked as a follow-up to sharpen those fixtures, then re-measure that split. The overfit FLAG is working as intended until then.Test plan
bats tests/detect.bats147/147;sh -nclean3:panic)CODEOWNERS review required (
tests/eval/). Part of #15.🤖 Generated with Claude Code