chore(evals): unblock ToolPredictionScorer#962
Draft
JoshFerge wants to merge 1 commit into
Draft
Conversation
- Drop the stale `--all-scopes` flag the bin no longer accepts; the scorer-side stdio spawn was printing usage and exiting, surfacing as `MCPClientError: Connection closed` across every eval. - Switch the `predictedTools[*].arguments` field to a JSON-encoded string; `z.record(z.any())` emits `additionalProperties` with no `type`, which OpenAI's strict response_format rejects. With both fixes, `autofix.eval.ts` scores 1.00 / 1.00 against the new explorer-mode tool flow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 13, 2026
dcramer
reviewed
May 13, 2026
| "exec", | ||
| "sentry-mcp", | ||
| "--access-token=mocked-access-token", | ||
| "--all-scopes", |
Member
There was a problem hiding this comment.
im actually surprised this wouldnt break something
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
Two unrelated bugs were both blocking the entire eval suite — every eval currently crashes with `MCPClientError: Connection closed` before any scoring runs. Both are fixed here.
With both fixed, the eval suite runs end-to-end again (verified locally — autofix.eval.ts cases score 1.00 against the current main).
Test plan
Notes for reviewers
🤖 Generated with Claude Code
Agent transcript: https://claudescope.sentry.dev/share/HYSozfr18sU5lMEbTaUO5UX2YmVyaBdNoueQpOS6xJQ