Skip to content

experiment: audit prior MCP evidence before regenerating SQL - #325

Draft
seyoung4503 wants to merge 2 commits into
fix/mcp-limit-validationfrom
experiment/mcp-evidence-review
Draft

seyoung4503 wants to merge 2 commits into
fix/mcp-limit-validationfrom
experiment/mcp-evidence-review

Conversation

@seyoung4503

@seyoung4503 seyoung4503 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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.

1 participant