Skip to content
Open
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
21 changes: 21 additions & 0 deletions bench/accuracy/mcp-review-results/output-columns/analysis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"fixed_revision": "38013d12ee00caa3a468d14da4c29ff8d33e1032",
"model": "gpt-6.2-sol/high",
"system_prompt_changed": false,
"scope": "Two prior failures only; not full accuracy, no isolated causal comparison with later prompt experiment revisions.",
"initial_regression": "760d152 prefixed success messages before row-count headers, breaking execution provenance qualification for both cases. Raw traces preserved. Corrected renderer preserves row header and SQL footer; existing verifier unchanged; new real-MCP-to-verifier regression tests.",
"results": {
"bird165": {
"score": 0,
"status": "predicted",
"cause": "Returns player_name and mean_heading_accuracy; reference requests player_name only. Caller supplied exactly those two columns, so contract passes."
},
"local220": {
"score": 0,
"status": "predicted",
"cause": "Returns winner and loser as columns in one row. Reference variants expect a different projection/row layout. Caller supplied those two columns, so contract passes."
}
},
"conclusion": "Model adopted the new optional tool argument but selected a semantically wrong contract. Deterministic consistency checks do not solve request interpretation. No accuracy improvement demonstrated; no gold-derived contracts injected.",
"usage": "Codex CLI usage is retained in records/events. Summary provider-call/token fields are unknown, not zero."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
player_name,mean_heading_accuracy
Michael Ballack,91.8
Fernando Llorente,91.52380952380952
John Terry,91.33333333333333
Naldo,90.39285714285714
Luca Toni,90.26470588235294
Per Mertesacker,90.26470588235294
Didier Drogba,90.23529411764706
Miroslav Klose,90.17647058823529
Daniel van Buyten,90.17647058823529
Fernando Morientes,89.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
```sql
SELECT
p.player_name,
AVG(pa.heading_accuracy) AS mean_heading_accuracy
FROM Player AS p
JOIN Player_Attributes AS pa
ON pa.player_api_id = p.player_api_id
WHERE p.height > 180
AND pa.heading_accuracy IS NOT NULL
GROUP BY p.player_api_id, p.player_name
ORDER BY mean_heading_accuracy DESC, p.player_api_id ASC
LIMIT 10
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{"type":"thread.started","thread_id":"01a2195f-149c-7d11-9146-95a0bfca8272"}
{"type":"turn.started"}
{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"I’ll inspect the schema in Lang2SQL, resolve the request criteria, and verify the top-ten results before returning the executed query."}}
{"type":"item.started","item":{"id":"item_1","type":"mcp_tool_call","server":"lang2sql","tool":"explore_schema","arguments":{"table":"Player"},"result":null,"error":null,"status":"in_progress"}}
{"type":"item.completed","item":{"id":"item_1","type":"mcp_tool_call","server":"lang2sql","tool":"explore_schema","arguments":{"table":"Player"},"result":{"content":[{"type":"text","text":"Player (table)\n- id: INTEGER\n- player_api_id: INTEGER\n- player_name: TEXT\n- player_fifa_api_id: INTEGER\n- birthday: TEXT\n- height: INTEGER\n- weight: INTEGER\nPRIMARY KEY (id)"}],"structured_content":null},"error":null,"status":"completed"}}
{"type":"item.started","item":{"id":"item_2","type":"mcp_tool_call","server":"lang2sql","tool":"explore_schema","arguments":{"table":"Player_Attributes"},"result":null,"error":null,"status":"in_progress"}}
{"type":"item.completed","item":{"id":"item_2","type":"mcp_tool_call","server":"lang2sql","tool":"explore_schema","arguments":{"table":"Player_Attributes"},"result":{"content":[{"type":"text","text":"Player_Attributes (table)\n- id: INTEGER\n- player_fifa_api_id: INTEGER\n- player_api_id: INTEGER\n- date: TEXT\n- overall_rating: INTEGER\n- potential: INTEGER\n- preferred_foot: TEXT\n- attacking_work_rate: TEXT\n- defensive_work_rate: TEXT\n- crossing: INTEGER\n- finishing: INTEGER\n- heading_accuracy: INTEGER\n- short_passing: INTEGER\n- volleys: INTEGER\n- dribbling: INTEGER\n- curve: INTEGER\n- free_kick_accuracy: INTEGER\n- long_passing: INTEGER\n- ball_control: INTEGER\n- acceleration: INTEGER\n- sprint_speed: INTEGER\n- agility: INTEGER\n- reactions: INTEGER\n- balance: INTEGER\n- shot_power: INTEGER\n- jumping: INTEGER\n- stamina: INTEGER\n- strength: INTEGER\n- long_shots: INTEGER\n- aggression: INTEGER\n- interceptions: INTEGER\n- positioning: INTEGER\n- vision: INTEGER\n- penalties: INTEGER\n- marking: INTEGER\n- standing_tackle: INTEGER\n- sliding_tackle: INTEGER\n- gk_diving: INTEGER\n- gk_handling: INTEGER\n- gk_kicking: INTEGER\n- gk_positioning: INTEGER\n- gk_reflexes: INTEGER\nPRIMARY KEY (id)\nFOREIGN KEY (player_api_id) REFERENCES Player (player_api_id)\nFOREIGN KEY (player_fifa_api_id) REFERENCES Player (player_fifa_api_id)"}],"structured_content":null},"error":null,"status":"completed"}}
{"type":"item.started","item":{"id":"item_3","type":"mcp_tool_call","server":"lang2sql","tool":"resolve_business_terms","arguments":{"terms":[]},"result":null,"error":null,"status":"in_progress"}}
{"type":"item.completed","item":{"id":"item_3","type":"mcp_tool_call","server":"lang2sql","tool":"resolve_business_terms","arguments":{"terms":[]},"result":{"content":[{"type":"text","text":"{\"definition_check_id\": \"8t0wSPsbPLcGrUF0z44eJQs55_TxTXMg7p4CDiQ1Gog\", \"definitions\": [], \"instruction\": \"For oracle_view the operator has confirmed the contract: call run_sql with this definition_check_id, period_start and exclusive period_end, without sql. An explicit calendar year/month is sufficient to derive these dates. Ask only if the period or business meaning is actually unclear. For text definitions use SQL. Discover schema and use qualified table names before run_sql. A receipt is not proof of SQL semantic correctness.\"}"}],"structured_content":null},"error":null,"status":"completed"}}
{"type":"item.started","item":{"id":"item_4","type":"mcp_tool_call","server":"lang2sql","tool":"run_sql","arguments":{"definition_check_id":"8t0wSPsbPLcGrUF0z44eJQs55_TxTXMg7p4CDiQ1Gog","sql":"SELECT\n (SELECT COUNT(*) - COUNT(DISTINCT p.player_api_id)\n FROM Player AS p WHERE p.height > 180) AS repeated_or_missing_player_ids,\n (SELECT GROUP_CONCAT(DISTINCT TYPEOF(p.height))\n FROM Player AS p) AS height_types,\n (SELECT GROUP_CONCAT(DISTINCT TYPEOF(pa.heading_accuracy))\n FROM Player_Attributes AS pa) AS heading_accuracy_types,\n (SELECT COUNT(*) FROM Player_Attributes AS pa\n WHERE EXISTS (\n SELECT 1 FROM Player AS p\n WHERE p.player_api_id = pa.player_api_id AND p.height > 180\n )) AS matching_attribute_rows,\n (SELECT COUNT(*) FROM Player_Attributes AS pa\n JOIN Player AS p ON p.player_api_id = pa.player_api_id\n WHERE p.height > 180) AS joined_attribute_rows"},"result":null,"error":null,"status":"in_progress"}}
{"type":"item.completed","item":{"id":"item_4","type":"mcp_tool_call","server":"lang2sql","tool":"run_sql","arguments":{"definition_check_id":"8t0wSPsbPLcGrUF0z44eJQs55_TxTXMg7p4CDiQ1Gog","sql":"SELECT\n (SELECT COUNT(*) - COUNT(DISTINCT p.player_api_id)\n FROM Player AS p WHERE p.height > 180) AS repeated_or_missing_player_ids,\n (SELECT GROUP_CONCAT(DISTINCT TYPEOF(p.height))\n FROM Player AS p) AS height_types,\n (SELECT GROUP_CONCAT(DISTINCT TYPEOF(pa.heading_accuracy))\n FROM Player_Attributes AS pa) AS heading_accuracy_types,\n (SELECT COUNT(*) FROM Player_Attributes AS pa\n WHERE EXISTS (\n SELECT 1 FROM Player AS p\n WHERE p.player_api_id = pa.player_api_id AND p.height > 180\n )) AS matching_attribute_rows,\n (SELECT COUNT(*) FROM Player_Attributes AS pa\n JOIN Player AS p ON p.player_api_id = pa.player_api_id\n WHERE p.height > 180) AS joined_attribute_rows"},"result":{"content":[{"type":"text","text":"1 row(s):\nResult coverage: fetched_rows=1; displayed_rows=1; fetch_truncated=false; display_truncated=false; sql_rewritten=true; query_timeout_enforced=true; query_timeout_scope=sqlite_vm. Counts refer to the executed SQL, not the source table size.\nObserved value types (displayed rows): repeated_or_missing_player_ids=int; height_types=str; heading_accuracy_types=str; matching_attribute_rows=int; joined_attribute_rows=int\nrepeated_or_missing_player_ids | height_types | heading_accuracy_types | matching_attribute_rows | joined_attribute_rows\n--- | --- | --- | --- | ---\n0 | integer | integer,null | 98019 | 98019\nSQL: SELECT\n (SELECT COUNT(*) - COUNT(DISTINCT p.player_api_id)\n FROM Player AS p WHERE p.height > 180) AS repeated_or_missing_player_ids,\n (SELECT GROUP_CONCAT(DISTINCT TYPEOF(p.height))\n FROM Player AS p) AS height_types,\n (SELECT GROUP_CONCAT(DISTINCT TYPEOF(pa.heading_accuracy))\n FROM Player_Attributes AS pa) AS heading_accuracy_types,\n (SELECT COUNT(*) FROM Player_Attributes AS pa\n WHERE EXISTS (\n SELECT 1 FROM Player AS p\n WHERE p.player_api_id = pa.player_api_id AND p.height > 180\n )) AS matching_attribute_rows,\n (SELECT COUNT(*) FROM Player_Attributes AS pa\n JOIN Player AS p ON p.player_api_id = pa.player_api_id\n WHERE p.height > 180) AS joined_attribute_rows\nLIMIT 1000"}],"structured_content":null},"error":null,"status":"completed"}}
{"type":"item.started","item":{"id":"item_5","type":"mcp_tool_call","server":"lang2sql","tool":"resolve_business_terms","arguments":{"terms":[]},"result":null,"error":null,"status":"in_progress"}}
{"type":"item.completed","item":{"id":"item_5","type":"mcp_tool_call","server":"lang2sql","tool":"resolve_business_terms","arguments":{"terms":[]},"result":{"content":[{"type":"text","text":"{\"definition_check_id\": \"s3I3L3jaWgM1IO_6K-CiUG4emzirHl-Q_jpSI3uUlT4\", \"definitions\": [], \"instruction\": \"For oracle_view the operator has confirmed the contract: call run_sql with this definition_check_id, period_start and exclusive period_end, without sql. An explicit calendar year/month is sufficient to derive these dates. Ask only if the period or business meaning is actually unclear. For text definitions use SQL. Discover schema and use qualified table names before run_sql. A receipt is not proof of SQL semantic correctness.\"}"}],"structured_content":null},"error":null,"status":"completed"}}
{"type":"item.started","item":{"id":"item_6","type":"mcp_tool_call","server":"lang2sql","tool":"run_sql","arguments":{"definition_check_id":"s3I3L3jaWgM1IO_6K-CiUG4emzirHl-Q_jpSI3uUlT4","expected_columns":["player_name","mean_heading_accuracy"],"sql":"SELECT\n p.player_name,\n AVG(pa.heading_accuracy) AS mean_heading_accuracy\nFROM Player AS p\nJOIN Player_Attributes AS pa\n ON pa.player_api_id = p.player_api_id\nWHERE p.height > 180\n AND pa.heading_accuracy IS NOT NULL\nGROUP BY p.player_api_id, p.player_name\nORDER BY mean_heading_accuracy DESC, p.player_api_id ASC\nLIMIT 10"},"result":null,"error":null,"status":"in_progress"}}
{"type":"item.completed","item":{"id":"item_6","type":"mcp_tool_call","server":"lang2sql","tool":"run_sql","arguments":{"definition_check_id":"s3I3L3jaWgM1IO_6K-CiUG4emzirHl-Q_jpSI3uUlT4","expected_columns":["player_name","mean_heading_accuracy"],"sql":"SELECT\n p.player_name,\n AVG(pa.heading_accuracy) AS mean_heading_accuracy\nFROM Player AS p\nJOIN Player_Attributes AS pa\n ON pa.player_api_id = p.player_api_id\nWHERE p.height > 180\n AND pa.heading_accuracy IS NOT NULL\nGROUP BY p.player_api_id, p.player_name\nORDER BY mean_heading_accuracy DESC, p.player_api_id ASC\nLIMIT 10"},"result":{"content":[{"type":"text","text":"10 row(s):\nOutput columns validated (projection only).\nResult coverage: fetched_rows=10; displayed_rows=10; fetch_truncated=false; display_truncated=false; sql_rewritten=false; query_timeout_enforced=true; query_timeout_scope=sqlite_vm. Counts refer to the executed SQL, not the source table size.\nObserved value types (displayed rows): player_name=str; mean_heading_accuracy=float\nplayer_name | mean_heading_accuracy\n--- | ---\nMichael Ballack | 91.8\nFernando Llorente | 91.52380952380952\nJohn Terry | 91.33333333333333\nNaldo | 90.39285714285714\nLuca Toni | 90.26470588235294\nPer Mertesacker | 90.26470588235294\nDidier Drogba | 90.23529411764706\nMiroslav Klose | 90.17647058823529\nDaniel van Buyten | 90.17647058823529\nFernando Morientes | 89.8\nSQL: SELECT\n p.player_name,\n AVG(pa.heading_accuracy) AS mean_heading_accuracy\nFROM Player AS p\nJOIN Player_Attributes AS pa\n ON pa.player_api_id = p.player_api_id\nWHERE p.height > 180\n AND pa.heading_accuracy IS NOT NULL\nGROUP BY p.player_api_id, p.player_name\nORDER BY mean_heading_accuracy DESC, p.player_api_id ASC\nLIMIT 10"}],"structured_content":null},"error":null,"status":"completed"}}
{"type":"item.completed","item":{"id":"item_7","type":"agent_message","text":"```sql\nSELECT\n p.player_name,\n AVG(pa.heading_accuracy) AS mean_heading_accuracy\nFROM Player AS p\nJOIN Player_Attributes AS pa\n ON pa.player_api_id = p.player_api_id\nWHERE p.height > 180\n AND pa.heading_accuracy IS NOT NULL\nGROUP BY p.player_api_id, p.player_name\nORDER BY mean_heading_accuracy DESC, p.player_api_id ASC\nLIMIT 10\n```"}}
{"type":"turn.completed","usage":{"input_tokens":174502,"cached_input_tokens":161152,"cache_write_input_tokens":0,"output_tokens":783,"reasoning_output_tokens":84}}
Loading