Skip to content

fix: trajectory collector honors eval verify verdict (#460) - #461

Merged
dahai80 merged 1 commit into
mainfrom
fix/issue-460-verdict-label
Dec 2, 2026
Merged

dahai80 merged 1 commit into
mainfrom
fix/issue-460-verdict-label

Conversation

@dahai80

@dahai80 dahai80 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • extractVerifyVerdict() scans the already-parsed events backwards for fusion_eval_turn_summary (tail event by construction from fusion-eval#62/PR#63) — no second file read
  • labelTrajectory(): verdict overrides tool-hygiene label when present; verify_passed=true -> positive, false -> self_correction; transcripts without the summary keep the exact previous behavior
  • Fixes: verify-PASSED eval session with 1 benign tool error collected as self_correction -> zero-reward GRPO sample + 0 SFT samples

Test plan

  • 3 new tests: verify-passed-with-tool-errors -> positive AND GRPO reward 1; verify-failed-clean-tools -> self_correction; summary event without boolean verdict -> tool-hygiene label unchanged
  • bun test src/__tests__/trajectory/: 22 pass / 0 fail
  • tsc --noEmit clean

Closes #460

🤖 Generated with Claude Code

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]>
@dahai80
dahai80 merged commit 6226dff into main Dec 2, 2026
1 check passed
@dahai80 dahai80 mentioned this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trajectory collector ignores verify verdict event from eval transcripts - label stays tool-hygiene only

1 participant