Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"source": "/Users/seyoung/workspace/benchmarks/codex-mcp-text-ordering-20261127/spider-gpt-6.2-sol",
"source_scores_sha256": "09e02c38634992e78a35478aa1893138096ccbc4eec1acd2215084ebcc8e638a",
"selection": [
"local335"
],
"reason": "remaining failed case directly affected by aggregate eligibility guidance; other failed cases are not replayed without a relevant change",
"model": "gpt-6.2-sol",
"reasoning_effort": "high",
"metric": "targeted failed-case repair, not full accuracy"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"instance_id": "local335",
"score": 1,
"pred_sql": null,
"error_info": null
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"profiles": [
{
"name": "codex-mcp",
"model": "gpt-6.2-sol",
"reasoning_effort": "high"
}
],
"backend": "ChatGPT login -> Codex CLI -> production Lang2SQL MCP",
"revision": "14dc9ef8b4fba7f952cca94739b7ae4a73096ed1",
"codex_version": "codex-cli 0.170.0",
"sources": {
"bench/accuracy/codex_mcp.py": "6d8700253cf9a0dfc00c645199a3769c476bfee36d28f1b79e0b494c51fa14de",
"src/lang2sql/frontends/mcp/server.py": "0836ca4631f321c3f3a2c7524e71f6f31e60ac77286633833af6810d3443ddcb"
},
"schema_document_sha256": "195a0e722bb4e670fda45308e583203fccd7a4979b412a05215ca525e7aec5bf",
"review_source": null,
"failure_selection": null,
"split": "development",
"concurrency": 2,
"case_timeout": 600,
"sql_timeout": 30,
"max_rows": 100000,
"api_calls": null,
"usage_unit": "one Codex CLI invocation per question; internal model-call count unavailable"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"local335.json": "0f3834f7911616657a4916373139c73a9970a45801cf9c95ba1d22395d7c03b9"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"profile": "codex-mcp",
"status": "completed",
"correct": 1,
"total": 1,
"accuracy": 1.0,
"failed_predictions": 0,
"failure_types": {},
"api_calls": null,
"seconds": 63.27310025005136,
"wall_seconds": 63.27376145799644,
"prompt_tokens": null,
"completion_tokens": null,
"usage_missing_calls": null,
"cost_usd": null,
"interpretation": "targeted repair on one prior failure, not full benchmark accuracy"
}
]
1 change: 1 addition & 0 deletions src/lang2sql/harness/system_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- For multi-stage analysis, keep a compact query contract: source and evidence for each measure, eligible population, one-row grain at each stage, requested final columns, and precision. Verify the final SELECT against this contract after executing it.
- Distinguish transaction participants from all registered entities. Before a LEFT JOIN, calendar CROSS JOIN, or COALESCE-to-zero expands the population, check whether the question explicitly requires nonparticipants or inactive periods. Inspect participant and expanded counts; do not silently change the denominator.
- Distinguish an average of per-entity ratios from a ratio of aggregated sums. Perform intermediate aggregation at its own grain, then return the requested final grain rather than attaching unrequested entity-level rows or extra aggregate columns.
- Keep eligibility predicates at their specified aggregation grain. When eligibility depends on an entity's overall total, filter that total first and retain its associated component rows for later attribution unless the request separately restricts components. A positive overall total does not imply that every component must be positive; adding that filter changes membership and downstream counts.
- Quantile groups, equal-width numeric intervals, and percentile ranks are different operations. Follow the supplied definition; inspect ties and group sizes before treating NTILE, CUME_DIST, or arithmetic boundaries as interchangeable. If the requested policy remains materially ambiguous, clarify rather than choosing a rule just because it runs.
- Trace monetary measures to their documented source. Item prices, payment amounts, freight, and refunds are not interchangeable. Verify source columns and join multiplicity before aggregating; do not silently switch the measure during query repair.
- When reporting individual entities or ranked entities, preserve the requested identifying fields so rows remain attributable. Respect explicitly requested precision; do not add arbitrary rounding or extra output fields to match an assumed report format.
Expand Down