fix: harden evals — unit tests, verifier calibration, anti-pattern fixes#34
Merged
Conversation
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.
fix: harden evals — unit tests, scoring overhaul, provider fixes
Addresses the weak points identified during initial evals dogfooding, then overhauls the scoring system based on real Claude Code and Codex eval runs.
What changed
Unit tests (120 tests across 5 files)
scoring.test.tsantiPatterns.test.tsmatrix.test.tsverifiers.test.tscodex.test.tsScoring overhaul (3 connected fixes)
1. Bash-only anti-pattern scanning — The anti-pattern scanner now analyzes only the agent's actual bash tool calls, not the full transcript including injected skill text. This eliminates false positives where the skill's own documentation (mentioning "tmux" as a contrast) was penalizing the agent.
2. Efficiency metric — New score component measures
referenceSteps / max(referenceSteps, actualAgentTtyCalls). Each case defines minimum required agent-tty CLI calls. Perfect execution = 1.0, double = 0.5. This makes skill lift directly visible in the score.3. Outcome-based pass/fail — Workflow checks (command sequence assertions) are now informational only. Pass/fail is determined by: provider invocation succeeded + all required verifiers passed + no error-level anti-patterns. This fixes
run-commandwhich failed 100% because it requiredagent-tty runbut agents prefertype/send-keys.Provider fixes
--dangerously-bypass-approvals-and-sandbox(Codex 0.120.0 was blocked by bubblewrap)function_callevents andcommand_executionitems, enabling efficiency counting--allow-dangerously-skip-permissionsbefore--dangerously-skip-permissionsVerifier calibration
📊 Real eval results: Claude opus 4.6 (high) vs Codex gpt-5.4
Pass/Fail Matrix
Efficiency (agent-tty CLI calls)
Aggregate Skill Lift
Key findings
Validation
npm testnpx vitest run test/unit/evals/npx tsc --noEmitnpx eslint "evals/**/*.ts" --max-warnings=0npx prettier --check "evals/**/*.ts"Generated with
mux• Model:anthropic:claude-opus-4-6• Thinking:xhigh