Skip to content

experiment: compare Astra on six unresolved SQL calculations - #343

Draft
seyoung4503 wants to merge 4 commits into
fix/codex-interrupted-tracesfrom
experiment/mcp-astra-multistage
Draft

seyoung4503 wants to merge 4 commits into
fix/codex-interrupted-tracesfrom
experiment/mcp-astra-multistage

Conversation

@seyoung4503

@seyoung4503 seyoung4503 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Test whether model reasoning is a remaining bottleneck on six SQL-producing failures, after deterministic runtime and execution-binding fixes. Predeclare BIRD bird062/093/154 and Spider local272/355/010, all score0 in the completed integrated Sol/high run. Exclude clarification-only cases and previously passed cases. No answer/grade/reference feedback enters inference.

Frozen revision e926421. ChatGPT-auth Codex CLI -> production Lang2SQL MCP, gpt-6.2-astra/high, concurrency2 per suite, one attempt per selected case. Every src Python file was verified byte-identical to the integrated baseline 4d7f3a7, including the original shared guidance. This experiment intentionally does not include the subsequent one-case projection ablation. The existing PR342 runner binding fix is cherry-picked unchanged; the six baseline predictions already name their executed footer SQL, so that fix does not change their recorded predictions.

Predeclared input manifests, source hashes and source-score hashes are under bench/accuracy/experiments/astra-multistage/. Completed official scoring: BIRD 2/3 repaired (bird062, bird154); Spider 0/3 repaired. Both model run handles returned exit0; no jobs remain live. This is a selected-failure comparison, not full accuracy, an unbiased model leaderboard or a guarantee of regression freedom. No product default change or merge.

Validation: root tests 299 passed/1 skipped, Ruff/diff passed; completed-score/input/database validation reused; product source hashes matched baseline before inference. No new implementation function, prompt rule, env variable or official grading change. Reuses Codex runner, exact input/event capture, execution binding, official scorer and trace comparison.

Principle Result Evidence
Reuse / cause scope O Existing model input path; model comparison only
Logging / errors O Exact input/event hashes and all failed cases retained
Env / comments / async / deployment N/A No new runtime behavior; PR342 fix inherited unchanged
Verification O 299 passed/1 skipped; source identity; input/failure selection checks
Authorization O Draft experiment PR only; no merge
Call path O Same production MCP, different configured model, unchanged official comparator

All six attempts, exact submitted prompts, raw MCP events, SQL/CSV when produced, official scores, settings and paired comparisons are archived under bench/accuracy/mcp-review-results/astra-multistage/ with a 56-file SHA256 index. Product source hashes still match the predeclared Sol baseline. Event/input hashes verified; no prior attempt was included. Archived scorer API-usage placeholders are null; actual CLI usage remains in raw records.

Astra removed an additional legalities filter for bird062 and counted positive consumption for bird154. bird093 remains wrong. Spider local355 now requests a definition of missed races; local010 still produces3 vs reference6; local272 uses the requested warehouse1 but fails the supplied reference.

warehouse-reference-audit.json verifies a concrete pinned-input/reference inconsistency in local272: the question explicitly says warehouse1, while three of four reference product/location tuples have matching inventory only in warehouse2. The SQLite file matches the original downloaded ZIP member and the frozen manifest SHA. Exact lookup SQL, reference rows, stock matches, official contract and reference hashes are retained. This does not prove all Spider errors are benchmark defects, and no official grade, reference or denominator was changed. The audit was not supplied to inference.

These BIRD repairs justify further failure-only model investigation, not switching the production default or claiming 95%. Keep draft. All six official grades and all failures are retained.

Additional independent audit: airlines-reference-audit.json and airlines-audit-as-executed.py verify local010 against its supplied haversine_formula.md. The document explicitly treats A->B and B->A as one city pair. Both the generated SQL and an independent Python Haversine calculation produce unordered-pair bin counts [92,93,37,20,6,3,7], whose minimum is3. Only counting directions separately produces [184,186,74,40,12,6,14] and reference6. Database bytes match the downloaded ZIP member and frozen hash; document/reference hashes are retained. The resulting official grade remains0; no diagnostic or reference was fed to inference. These two concrete inconsistencies must not be generalized to every Spider failure.

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