Repository navigation
Expose official column descriptions through the existing MCP schema cache - #361
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.
Official BIRD column/value descriptions reach Codex in the initial task input, but SQLite
explore_schemaresponses contain no descriptions. Add an opt-in--cache-official-columnsbenchmark condition that exposes the same pinned descriptions through the existing production schema-enrichment cache. No new definitions are inferred and no semantic terms are approved.Each case receives a fresh, isolated SQLite metadata store, passed via the existing MCP
--storeoption. The existing schema loader validates the pinned supplemental BIRD context before output creation or model invocation; the flag rejects the original baseline and other suites. Initial user prompt bytes, model instructions, source DB, official questions and scoring remain unchanged. The option defaults off, and the ongoing full500 validation is unaffected.Reuse:
load_schema_documents,SqliteStore, the existing enrichment_kv_key, MCPmcp_settings/--store, andExploreSchemacache lookup. The existing description delimiter is shared with the offline builder without changing the generated map. Net +33 benchmark runtime lines, one new function for cache seeding; no production-code change. Synchronous SQLite setup runs viaasyncio.to_thread; cleanup usesfinally, failures propagate, and successful seeding logs the case-specific path/count. No environment variables or new deployment configuration.Validation covers actual stdio MCP description delivery, no implicit business-definition approval, isolation from a second case's store, the runner's real argument-construction seam, rejection before inference, and original schema-map byte reproducibility. Root suite: 374 passed, 1 skipped; scoped Ruff and diff checks pass. No CODE MAP generator exists in this repository.
A prespecified failure-only experiment will compare bird093/107/148 against their completed supplemental-context attempts. These are metadata-sensitive column/filter/grain decisions, not proven cache-caused failures. No prior answers, grades or analyst hints enter inference. Same initial prompt and production source will be checked. Results, including failures, will be retained; no accuracy gain is claimed before scoring, and selected repair rates are not full benchmark accuracy.
Official failure-only result: 0/3 repaired. All three initial prompts are byte-identical to their baseline; production source trees are identical; persisted cache contents exactly match the pinned metadata; each trace contains schema responses with descriptions. Metadata visibility alone did not repair these cases. The option remains off by default and is not promoted as an accuracy improvement. No unchanged retry is planned. All raw traces, cache stores, results and validated comparisons are preserved under
tool-schema-cache(34 verified hashes).