Repository navigation
fix: preserve database text collation in SQL guidance - #327
Draft
seyoung4503 wants to merge 2 commits into
Draft
seyoung4503 wants to merge 2 commits into
seyoung4503 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A repeated Spider failure constructs an ordered ingredient list using an unrequested NOCASE collation. Re-executing the same SQL with that override removed reproduces all 14 reference row IDs and ingredient strings. Add general shared guidance to preserve declared/default collation and explicitly order aggregate inputs. No SQL rewrite, benchmark identifier, reference output or gold-derived definition is injected into the product.
Validation: 260 root tests passed, 1 skipped; diff clean. Ruff passes with BLE001 excluded; unmodified base has the same pre-existing blind exception in system_prompt.py. Only one prompt line changes. Completed fresh Codex MCP evaluation on the preceding run's eight remaining Spider failures: 1/8 repaired, local073. Its generated SQL no longer adds NOCASE and the unchanged official grader accepts the result. The other seven remain incorrect. Solved local264 was excluded through --failures-from. BIRD is not replayed for this text-ordering change. Model gpt-6.2-sol/high, ChatGPT login, unchanged official grader. This is a targeted repair result, not full benchmark accuracy; a single stochastic run does not isolate causal effect.
Stacked on #326. Full answers, MCP traces, scores, settings and hashes are committed under bench/accuracy/mcp-review-results/text-ordering-3533981. Reused BASE_INSTRUCTIONS consumed by the production MCP server and internal harness; +1 line, no new function.