Skip to content

Audit failed MCP traces and compare reasoning effort without prompt changes - #334

Draft
seyoung4503 wants to merge 2 commits into
fix/sql-output-columnsfrom
experiment/mcp-reasoning-control
Draft

seyoung4503 wants to merge 2 commits into
fix/sql-output-columnsfrom
experiment/mcp-reasoning-control

Conversation

@seyoung4503

Copy link
Copy Markdown
Collaborator

The remaining errors need to be separated into execution/transport failures and SQL interpretation errors before adding more tool features or changing prompts. This experiment audits historical failed traces and compares reasoning effort on two preselected failures with identical production code and inputs.

Case high xhigh Observed SQL difference
BIRD bird059 0/1 1/1 xhigh requires translation IS NOT NULL; high counts an Italian-language association even without a translation value
Spider local008 0/1 0/1 Both select per-record maxima instead of career aggregates

These are paired single-attempt diagnostics on two previously failed cases, not full accuracy or evidence that xhigh is generally superior. No production default, model, system prompt, tool implementation, official grader, reference data or scoring denominator was changed. No grade feedback or previous answers entered inference. Neither full benchmark meets the goal on this evidence.

The protocol and case selection were committed before generation at 448562d. Both arms use that same revision, ChatGPT-auth Codex CLI, gpt-6.2-sol, identical manifests/schema documents, timeouts and concurrency. Settings invariants were checked explicitly. All four invocations completed and passed execution-provenance verification. Scores use the existing pinned official evaluation paths.

Read-only audit of the earlier 7aadca6 broad run: among 40 BIRD and 42 Spider failures, 35 BIRD and 27 Spider final SQLs have verified MCP execution provenance; no run_sql tool errors were found in those failed-case records. The other 20 records have no final SQL, with clarification responses. This audits historical failures; it is not a current remaining-case count and does not prove result semantics or data correctness.

Artifacts:

  • bench/accuracy/experiments/reasoning-control/: predeclared protocol/manifests and per-case tool-evidence audit.
  • bench/accuracy/mcp-review-results/reasoning-control/: every raw event/record, final SQL, result CSV, settings, scores, comparison and SHA256 index.
  • API-call/token placeholders in copied summaries are unknown, not zero. Actual Codex CLI token usage is preserved in records and comparison.

Verification: four completed statuses, one binary score per selected case per arm, matching controlled settings/manifests, artifact hash integrity and tracked-file coverage. CSV CRLF preserved; whitespace check uses cr-at-eol. Product/test code is unchanged from #333, so no redundant model runs or test suite runs were added.

Implementation principle Result Evidence
Reuse O Existing Codex runner, execution verifier and pinned graders; zero implementation lines added
Cause scope O Audit and controlled comparison only; no speculative feature
Logging/error evidence O All raw events, failed scores, statuses and prior trace hashes retained
Env/settings injection O Existing reasoning-effort CLI input only; no new env settings
Issue numbers in code comments N/A No code changes
Verification O Completed-run, control-variable, score-coverage and artifact integrity checks
Approval boundary O Draft PR only, no merge
Call path O Same Codex ChatGPT login -> Lang2SQL MCP path in both arms
Sync/async N/A No new implementation
Hardcoded operational settings/deployment N/A No product configuration/default changes

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