Repository navigation
experiment: audit prior MCP evidence before regenerating SQL - #325
Draft
seyoung4503 wants to merge 2 commits into
Draft
seyoung4503 wants to merge 2 commits into
seyoung4503 wants to merge 2 commits 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.
Add an opt-in --review-source to the existing ChatGPT-authenticated Codex MCP runner. Recurring failures show the agent observing population/source differences yet committing to an incorrect interpretation, or omitting a final aggregation stage. This experiment lets a fresh invocation audit the prior answer and actual tool observations against the same original question and documentation, then execute its answer through MCP again.
Only answer and tool-observation fields are serialized. Scores, grader messages, expected SQL and reference outputs are excluded. Source cases must exactly match, per-record hashes are stored, old receipts are not reusable, and review outputs go to a fresh directory. The original grader remains unchanged; there is no best-of-gold selection. The user requested only failed-case reruns; manifests for this experiment will select failures from the preceding completed run.
Validation: 27 benchmark tests pass, including feedback-exclusion coverage; Ruff and diff checks pass. Observed targeted outcome: Spider 1/9 prior failures repaired (local264); BIRD 0/1 repaired. These are repair rates, not full accuracy. Keep draft: this is experimental prior-evidence review, not a demonstrated general accuracy fix.
Stacked on #324. Verification: reuse O (existing runner, execution verifier and official grading; one new evidence projection concept); cause O (auditable review rather than hidden retries); logging O (source hashes and new trajectories); errors O (mismatched questions reject); env N/A; comments O; tests O; authorization O (draft PR only); call path O (prior observed evidence -> fresh Codex MCP -> same scorer); async unchanged; configuration O (optional CLI input, no deployment changes).
Full MCP call traces, final answers, manifests, settings, scores and source hashes are committed under bench/accuracy/mcp-review-results/evidence-review-7573657. Reference outputs and grade feedback never enter the review input. No previously correct cases were rerun.