Repository navigation
fix: preserve aggregate eligibility scope in SQL guidance - #328
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 recurring grouped-analysis failure correctly selects entities by their overall positive total, then adds the same positivity condition to component rows used for attribution. That extra condition drops qualifying affiliations and changes the ranked result. Re-executing the recorded SQL with only the extra component filter removed reproduces the reference result.
Add one general rule to the existing shared instructions: keep eligibility predicates at the requested grain and do not infer component eligibility from an overall aggregate condition. No reference answers, benchmark identifiers, schema names or automatic SQL replacement are added.
Validation: root tests 260 passed, 1 skipped; diff clean. Ruff passes excluding the existing BLE001 finding in the unchanged schema enrichment exception handler (also reproduced at base). Completed targeted Codex MCP run: local335 changed from incorrect to correct, 1/1 repaired using gpt-6.2-sol/high through ChatGPT login. The model used overall driver-season points for eligibility and the drives relationship for constructor attribution, without a component positivity filter. The unchanged official grader accepts the result. This is a single targeted repair, not full benchmark accuracy or proof of a causal effect independent of model variability. Full MCP observations, answer, input manifest, settings, scores and source hashes are committed under bench/accuracy/mcp-review-results/aggregate-scope-14dc9ef. Stacked on #327; no merge.
Reused BASE_INSTRUCTIONS -> MCP initialization and internal harness. +1 line, no new functions or environment/configuration values.