Repository navigation
fix: trajectory collector honors eval verify verdict (#460) - #461
Merged
Merged
Conversation
extractVerifyVerdict scans the parsed transcript backwards for the fusion_eval_turn_summary event (appended as the final line by the fusion-eval#62 runner) and overrides tool-hygiene labeling: verify_passed=true -> positive, false -> self_correction. Transcripts without the summary event label exactly as before. Fixes positive count (0) != verify-passed count (1) and zero-reward GRPO samples for completed eval tasks with benign tool errors. Closes #460 Co-Authored-By: Claude Code <[email protected]>
Merged
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
extractVerifyVerdict()scans the already-parsed events backwards forfusion_eval_turn_summary(tail event by construction from fusion-eval#62/PR#63) — no second file readlabelTrajectory(): verdict overrides tool-hygiene label when present;verify_passed=true-> positive,false-> self_correction; transcripts without the summary keep the exact previous behaviorself_correction-> zero-reward GRPO sample + 0 SFT samplesTest plan
bun test src/__tests__/trajectory/: 22 pass / 0 failtsc --noEmitcleanCloses #460
🤖 Generated with Claude Code