Repository navigation
fix: preserve requested rate calculation and output columns - #330
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.
Two completed failed cases show distinct output-contract failures: a stored rate differs from the requested count ratio by floating-point rounding, and an otherwise correct one-measure result includes an extra label column. The official comparator remains unchanged.
Strengthen two existing shared rules: calculate a requested rate from matching source counts unless a stored measure is explicitly selected; project only requested measures when entity selection does not itself request labels. Preserve identifiers for explicit entity/detail reports. No schema names, expected outputs, question IDs or automatic SQL replacements are introduced into the product.
Validation: 260 root tests passed, 1 skipped; diff clean. Ruff passes with the existing BLE001 in the untouched enrichment exception handler excluded. Fresh Codex MCP runs on only bird000 and bird002 completed (gpt-6.2-sol/high, ChatGPT login): 2/2 repaired under the unchanged official scorer. Both queries now compute the requested ratio from source counts; bird002 projects only the requested measure. Full MCP traces, final answers, manifests, settings, scores and source hashes are committed under bench/accuracy/mcp-review-results/rate-projection-30f20bd. Gold and grade feedback do not enter prompts. The larger previous-failure run remains immutable at revision 7aadca6. No full accuracy claim. Stacked on #329; targeted repair results are available; full-set accuracy remains unverified and no causal isolation from stochastic variation is claimed.
Reuse: existing BASE_INSTRUCTIONS -> MCP and internal harness; two existing rules replaced, net zero lines, no new function.