Repository navigation
Make the official IPL glossary available as explicit supplemental context - #360
Draft
seyoung4503 wants to merge 4 commits into
Draft
seyoung4503 wants to merge 4 commits into
seyoung4503 wants to merge 4 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.
Some IPL failures request clarification about cricket metrics, while Spider's own resource bundle contains a generic cricket glossary that is attached only to particular IPL tasks. Add an explicitly selected schema variant that appends the exact official glossary to the IPL database context. The original per-task question and
external_knowledgefields, original schema map and default behavior stay unchanged.This is a supplemental-context experiment, not the upstream per-task baseline. The document is pinned at upstream commit
cafb867313aab4e674652054198f383cf4018943; its original filename isbaseball_game_special_words_definition.md, despite describing cricket. The exact bytes and hash match the document already referenced by the canonical IPL manifest. No new domain definitions, SQL examples, question IDs, expected rows or gold SQL are added. Other databases' schema text is byte-for-byte unchanged.The document defines batting average, strike rate, wickets, economy rate and runs given. It does not resolve every attribution or tie rule. Strict clarification remains in force; the runner must not invent missing rules. Product prompts, tools, graders and model defaults are unchanged. Only the existing pinned schema loader's accepted variants expand.
The planned failure-only check covers local020/023/025/026/229, whose original task input did not include this glossary. Previously passed cases and tasks already receiving the document are excluded. No prior answers, grades or analyst diagnosis are sent to inference. Results will be archived whether they improve or not; no accuracy improvement is claimed before scoring. Historical source runs differ in earlier product/settings changes, so this is not an isolated causal attribution to the glossary.
Validation checks the exact source hash against canonical document references, reconstructs the appended context, confirms all other database contexts are unchanged, and passes 371 root tests (1 skipped), scoped Ruff and diff checks. Existing loader/logging/provenance are reused; no new runtime function or production code is introduced.
Official outcome: 2/5 repaired (local020 and local026). Local023/local025 still return mismatching results; local229 still asks about partnership extras. All five traces, exact prompts, SQL, scores and validated historical comparisons are archived under
shared-ipl-glossary(42 verified hashes). No unchanged retries or additional prompt edits were made. This selected-failure result does not establish full accuracy.A separate zero-model-call audit checked the instruction transport hypothesis: fresh production stdio initialization returns all 10,054 instruction characters, and Codex CLI 0.170.0's corresponding upstream source carries server instructions into the model-visible namespace description. The audit preserves the initialization response and source hashes/URLs. It is not a capture of an actual benchmark model HTTP request and does not prove that the model follows every instruction. No client or product changes were made based on the unproven missing-instructions hypothesis.
One subsequent review-source trial for the newly SQL-producing local023 remained 0/1. The model still projects only player name and batting average; the reference also requires average runs per match. Its 12 MCP calls succeeded and its declared two-column/five-row contract passed correctly. Self-declared contracts do not prove that the projection matches the requested output. The review used only prior answer/tool observations, with no grade, gold or analyst hint. All raw evidence and validated comparison are archived under
ipl-output-review(16 verified hashes). No product change or unchanged rerun follows this negative result.An offline audit further isolates historical local259: against reference_b, 468 players and 18 columns differ only in six retired-hurt dismissal/average entries and 47 zero-career-wicket best-performance strings. Changing both conventions matches reference_b with the unchanged official comparator; either change alone does not. This is diagnostic only, not a model repair: original score remains zero, no reference-derived conventions enter inference or production. The provided task/glossary does not explicitly settle those two conventions. SQL variants, exact source/DB/evaluator/reference hashes and reproduction script are archived under
ipl-boundary-audit.