Skip to content

experiment: remove competing ranking projection instruction - #341

Draft
seyoung4503 wants to merge 2 commits into
fix/codex-interrupted-tracesfrom
fix/sql-projection-precedence
Draft

seyoung4503 wants to merge 2 commits into
fix/codex-interrupted-tracesfrom
fix/sql-projection-precedence

Conversation

@seyoung4503

Copy link
Copy Markdown
Collaborator

The shared instructions first require only requested columns, but a later rule automatically adds the measure justifying an entity's selection. That creates competing output guidance: ranking a list by a metric does not necessarily request that metric as an output column. Remove that one later bullet; retain the existing requested-output contract. No new prompt rule, runtime tool change, model change, answer injection or grader change.

The deterministic MCP runtime fixes remain inherited from PR339. The existing expected_columns tool check only verifies the model's declared contract; it cannot resolve contradictory natural-language instructions. This is a final-stage guidance ablation after those runtime checks, not a substitute for tool fixes.

Predeclared one currently wrong extra-projection case, bird165, before inference. Frozen revision ed17533, fresh ChatGPT-auth Codex CLI -> production Lang2SQL MCP, gpt-6.2-sol/high. It now returns only player_name, keeps AVG in ORDER BY, and passes unchanged official BIRD execution scoring: 0 -> 1. No prior answer/grade was supplied. All inputs, raw events, SQL/CSV, settings, official score and paired trace comparison are archived under bench/accuracy/mcp-review-results/projection-precedence/, with SHA256 checks.

Limits: This is one selected failure and one stochastic rerun, not full accuracy or causal proof. Previously passed cases were not rerun per the user's instruction. The removed rule previously accompanied a local210 repair, so regression freedom is not established. Keep draft; no merge or broad improvement claim.

Validation: root tests 295 passed, 1 skipped; Ruff passed for the changed prompt file with the existing unrelated BLE001 exception excluded; source/prompt/event hashes verified. Every source file other than the shared prompt is unchanged from a97a713. Diff checked with raw CSV CRLF/document whitespace preserved. No CODE MAP generator exists.

Reuses the shared prompt, existing MCP runner/official scorer, exact-input recorder and PR338 comparison tool. Product diff: one deleted bullet (zero new functions/env/settings).

Principle Result Evidence
Reuse O Existing shared instructions/runtime/runner/scorer; product -1 line
Cause scope O Remove competing projection instruction only
Logging / errors O Existing raw trace and official failure denominator retained
Env injection N/A None added
Issue comments O No new code comments
Verification O 295 passed/1 skipped; Ruff; source/event/prompt integrity; official score
Authorization O Draft PR only, no merge
Call path O Shared instruction -> MCP -> existing column contract/safety -> official score
Sync/async N/A No execution code change
Constants/deployment N/A No new runtime parameter

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