Repository navigation
Preserve fractional units for unqualified share requests - #352
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.
An unqualified share request produced percentage-point values through an unrequested multiplication by100. Clarify the existing rate/share guidance: preserve fractional units unless the user or supplied definition specifies percentages; a share difference retains that scale. This changes one instruction in the existing prompt builder, with no new tool, function, execution path, configuration or grading rule.
Tool-first diagnosis: the MCP trace and exported SQL agree, SQLite executes the requested arithmetic unchanged, and raw values are serialized without conversion. The observed scale choice came from model-generated SQL, so no deterministic executor rewrite is justified. Product population is a separate issue: the source query includes unmatched products. This isolated change does not claim to solve that issue or to enforce semantic correctness deterministically.
Validation:348 root tests passed,1 skipped. Ruff passes with the existing unrelated BLE001 in this prompt module excluded; diff checks pass. No CODE MAP generator exists. One prior failed Spider case is evaluated fresh with Astra/high through ChatGPT-auth Codex→Lang2SQL MCP, original question/schema/DB and unchanged official grading. No previous attempt, analyst counterfactual or reference result is fed to the model. Both broad coverage runs remain on frozen0c79539 and are not restarted.
Official selected-case result:local060 repaired0→1 (1/1). The new SQL preserves fractional shares and independently changes the final product join from LEFT to INNER, yielding4rows rather than15. Offline ablation shows neither edit alone matches; both together do. Because this is one stochastic attempt and two SQL choices changed, the unit instruction alone cannot be credited with the entire repair. This is not full accuracy or repeated reliability.
Archive:
bench/accuracy/mcp-review-results/share-output-units/contains exact before/after traces, paired HTML/JSON,33verified hashes, SQL/CSV, settings and unchanged official scores. Original user prompt bytes are identical; MCP system instructions differ only by the recorded unit guidance. Counterfactual analyst SQL never enters model input. Frozen inference revision:e10a2b8.