Skip to content

Preserve fractional units for unqualified share requests - #352

Draft
seyoung4503 wants to merge 2 commits into
feat/completed-run-snapshotsfrom
fix/share-output-units
Draft

seyoung4503 wants to merge 2 commits into
feat/completed-run-snapshotsfrom
fix/share-output-units

Conversation

@seyoung4503

Copy link
Copy Markdown
Collaborator

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.

Principle Verdict Evidence
Reuse O Existing prompt builder and benchmark runner; no new functions; product net0lines (one line replaced)
Cause/scope O Only fraction/percentage unit selection; no forced join policy
Logging N/A No new execution branch; existing trace/log capture retained
Errors N/A No new catch, fallback or retry
Environment N/A No env additions or reads
Issue comments O No issue-number comments
Verification O 348passed/1skipped; scoped Ruff and diff pass; existing BLE001 disclosed; no CODE MAP generator
Authority O PR only; no merge, no existing-job restart
Consumers O build_system_prompt→MCP instructions→Codex SQL generation
Sync/async N/A No new I/O or logic paths
Constants/deployment O No configuration or operational literals added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant