Skip to content

fix: validate MCP execution evidence and diagnose Spider SQL failures - #321

Draft
seyoung4503 wants to merge 15 commits into
experiment/spider-bird-accuracyfrom
fix/benchmark-accuracy-diagnostics
Draft

seyoung4503 wants to merge 15 commits into
experiment/spider-bird-accuracyfrom
fix/benchmark-accuracy-diagnostics

Conversation

@seyoung4503

@seyoung4503 seyoung4503 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem and behavior

Codex can return the SQL that Lang2SQL actually executed after safety rewrites (including LIMIT). The benchmark previously compared only the input SQL and incorrectly rejected 11 v3 cases. Accept successful result SQL as execution evidence while retaining the existing submitted-query contract and blocking failed/unexecuted SQL. Official BIRD/Spider result graders are unchanged.

The MCP path also accepts explicitly specified request criteria without requiring a pre-populated semantic catalog, retains clarification for unresolved named definitions, shares query-correctness instructions, reports observed value types, and requires MCP startup. No separate API model is invoked inside MCP.

Evaluation and remaining gaps

Same fixed development cases, Codex ChatGPT login, requested Sol/high:

  • Corrected v3: BIRD 18/20; Spider 10/20.
  • v4 population/grain/source/output guidance: BIRD 19/20; Spider 10/20.
  • Spider local004 fixed; local041 regressed. This does NOT resolve all Spider failures or demonstrate full-set 95%.
  • Full traces, source-record hashes, manifests, settings and per-case scores: bench/accuracy/mcp-review-results/.
  • Failure analysis and evaluation caveats: bench/accuracy/CODEX_MCP_RESULTS.md.
  • Cases are development-exposed; no holdout/generalization claim. Missing final SQL and clarification remain failures. No answer keys supplied during model generation.

Validation

56 focused benchmark/MCP/safety tests pass; changed-code Ruff and diff checks pass. Regression coverage includes server-added LIMIT, empty results, fabricated limits, blocked tool responses and final SQL mismatch.

Stacked on experiment/spider-bird-accuracy. Earlier commits include schema context and quota diagnostics. Retain as draft because Spider semantic failures remain; no merge requested here.

@seyoung4503 seyoung4503 changed the title fix: preserve schema keys and diagnose Spider/BIRD accuracy failures fix: diagnose benchmark failures, preserve schema context and stop on exhausted quota Nov 26, 2026
@seyoung4503 seyoung4503 changed the title fix: diagnose benchmark failures, preserve schema context and stop on exhausted quota fix: validate MCP execution evidence and diagnose Spider SQL failures Nov 26, 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.

1 participant