Repository navigation
fix: bind benchmark exports to actual MCP execution - #342
Open
seyoung4503 wants to merge 1 commit into
Open
seyoung4503 wants to merge 1 commit into
seyoung4503 wants to merge 1 commit into
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.
The benchmark accepted the submitted
run_sqlargument as execution evidence even when the MCP server's safety layer executed a rewritten query. For example, a request without LIMIT could be exported and graded without LIMIT even though the server executed LIMIT 1. A two-row fixture reproduced an export of two rows after only one row was executed.Bind final-answer aliases to the successful server
SQL:execution footer. Exact executed SQL remains valid; a submitted-query alias resolves to its actual rewrite. Formatting equivalence still uses the existing SQLite bytecode comparison, preserves literals, and binds to the executed query. Repeated aliases use the latest successful execution. A success-looking row header with no execution footer is rejected rather than treated as proof. Original answer text and raw events remain preserved alongside bound record.sql.This changes provenance/export binding, not the official comparator, question, reference output, denominator, product prompt or model. It cannot award credit based on gold. No model evaluations were rerun for this change.
Validation:
local259,bird357); both native result sets unchanged. Existing accuracy is unchanged. Replay JSON and exact audit script are underbench/accuracy/diagnostics/executed-sql-binding/. Raw event hashes and changed-case database hashes verified; old attempts were not overwritten.Reuses
executed_sql,query_rows, existing raw-event capture and result exporter; no new production function. Runner net +5 lines; tests/docs net +57 lines, plus diagnostic artifacts. The server-side runtime remains unchanged. No merge.