Skip to content

Preserve official BIRD column value definitions in benchmark context - #357

Draft
seyoung4503 wants to merge 5 commits into
fix/final-selection-contractfrom
fix/official-value-descriptions
Draft

seyoung4503 wants to merge 5 commits into
fix/final-selection-contractfrom
fix/official-value-descriptions

Conversation

@seyoung4503

@seyoung4503 seyoung4503 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

BIRD models were asked to interpret coded values without definitions available in the official database-description CSVs. The pinned Mini-Dev baseline schema omits, for example, that weight 0/NULL means missing and thrombosis grades 1/2/3 are positive. Add an explicitly selected, separately hash-pinned schema variant containing all official column/value descriptions. Preserve the original baseline file and default behavior.

The existing schema loader, --schema-docs selection, settings hash and scorer are reused. No product prompt, clarification policy, questions, DBs, reference SQL or official scoring changes. This is benchmark context plumbing, not a production metadata connector. Source descriptions are the 2024 official Dev release; questions remain the pinned 2026 Mini-Dev release. Therefore this is a distinct context condition, not the upstream fixed-prompt baseline.

Source: https://bird-bench.oss-cn-beijing.aliyuncs.com/dev.zip, linked from https://bird-bench.github.io/. Archive SHA256: cdd6d19faeb45a23970b98d3ef6c40a87987c95459c2cf12076897a60cf5a630. All 75 description CSVs are retained with original hashes, excluding the macOS resource fork. Table/column names were checked against canonical DBs. The deterministic builder handles the release's UTF-8/CP1252 mixture without reading questions or gold SQL.

Validation: 366 tests passed, 1 skipped; scoped Ruff and diff checks passed. Tests cover exact map reproduction, unchanged baseline, rejection of altered/injected maps and rejection of altered CSV sources. A fresh worktree also passed all 19 benchmark tests and confirmed all 75 CSVs are tracked despite the repository's global CSV ignore.

Recorded selected-failure experiments:

Cohort Result Evidence
Weight/grade definitions 5/5 repaired official-value-descriptions, 76 hashes
Additional missing-weight case 1/1 repaired official-values-missing-weight, 16 hashes
Accidental development-only selection 0/1 bird146 preserved in PR358; no restart
Remaining explicit selection 7/30 repaired official-values-remaining, 212 hashes
Final two coverage failures 1/2 repaired PR358, same product/context plus selection-count guard

These are 39 distinct former failures: 14 repaired, 25 still incorrect. Product source tree, schema hash and model/effort match across these probes; the last run additionally uses the runner count guard. This is not full500 accuracy. Historical baselines differ in earlier product fixes, so not every repair can be attributed solely to metadata. All failures, exact prompts, raw MCP traces and before/after comparisons are retained under bench/accuracy/mcp-review-results.

The 7/30 repairs are bird001/003/063/228/279/321/352. For bird003, COUNT(School) changed to COUNT(*), preserving NULL-name rows. For bird001, the directory funding field was used. Several other repairs changed a prior clarification into executed SQL; a passing grade alone does not independently validate every business assumption.

A separate frozen, same-version full500 validation has started with --split all --expected-cases 500; its score is pending. Original coverage scores and earlier failures remain unchanged.

Principle Result Evidence
Reuse O Existing schema loader, runner, settings and scorer reused; one offline metadata-builder function; production code unchanged.
Root cause only O Missing official column/value descriptions; no prompt or grading edits.
Logging O Loader logs selected hash; builder logs completion and CP1252 decode fallback with file/exception.
Errors O Modified source/map raises; encoding fallback is visible.
Environment N/A No environment settings added.
Issue comments O No issue-number code comments.
Verification O Root tests, scoped Ruff and diff checks required before commit/push; no CODE MAP generator in repository.
Authorization O Branch and draft PR only; no merge.
Request path O --schema-docs → pinned loader → existing model schema context; scoring untouched.
Sync/async O Offline synchronous builder; no new async or runtime I/O path.
Constants/deployment O Release hashes are correctness pins; no operational knobs or deployment changes.

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