Repository navigation
docs(scoring): make eval/scoring.md the single source - #328
Merged
Merged
Conversation
docs/scoring.md and eval/scoring.md were 190-line copies of each other and had drifted apart on the four links that decide which numbers a reader tries to reproduce. Neither copy was right on all four: | | correct (README.md, docs/news.md) | docs/ | eval/ | |------------------|---------------------------------------|----------|--------| | Live leaderboard | spaces/TIGER-Lab/ClawBench | ok | stale | | HF data card | datasets/NAIL-Group/ClawBench | a Space | ok | | V1 trace | datasets/NAIL-Group/ClawBenchV1Trace | bad label| ok | | V2 trace | datasets/TIGER-Lab/ClawBenchV2Trace | ok | stale | The docs/ copy sent the "HF data card table" link at a Space rather than the dataset, and its V1 trace link named TIGER-Lab/ClawBenchV1Trace in the label while the URL went to NAIL-Group — label and target disagreeing in the one sentence telling people where the reproducible traces live. The eval/ copy advertised spaces/NAIL-Group/clawbench-leaderboard, which docs/news.md:15 records as superseded by the TIGER-Lab Space, and put V2 traces under NAIL-Group rather than TIGER-Lab. eval/scoring.md is canonical: it sits beside eval/rescore.py, which implements it, and README.md, docs/README.zh-CN.md, and docs/harbor.md already linked there — README.md:433 names it as the scoring formula. docs/scoring.md becomes a short pointer so existing links, including any outside this repo, keep resolving, and the two in-repo references that treated it as the spec (docs/v1-vs-v2.md's provenance line and docs/news.md's "Details" link) now go straight to the canonical file. Removing a duplicate means choosing values, not just a filename, so the survivor takes the README-corroborated URL on every row: its leaderboard and V2 trace links are corrected to TIGER-Lab, and its already-correct dataset card and V1 trace links stay NAIL-Group. Issue TIGER-AI-Lab#293 proposed docs/ as the canonical home; eval/ is used instead because the README already points there for the formula, and the link corrections above are what that choice costs. This still does not settle the TIGER-Lab/NAIL-Group split in general. It runs through docs/news.md, docs/README.zh-CN.md, docs/v1-vs-v2.md and docs/huggingface-space-metadata.md as well, and reconciling those needs maintainer knowledge of which repos are live. What is pinned here is only that the scoring spec agrees with the README. tests/test_docs_scoring_single_source.py pins the arrangement: the docs/ copy stays a pointer, each spec section appears in exactly one file, nothing references the old path as the spec, the pointer's relative links and anchors resolve, and each of the four URLs matches README.md. Five of the original eight assertions fail against the previous tree; holding the tests constant and reverting only eval/scoring.md, three of the five new link assertions fail. Fixes TIGER-AI-Lab#293.
Collaborator
|
I've pushed a bit cleanup to it, the rest looks good. Thanks for the contribution. |
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.
What does this PR do?
Fixes #293.
docs/scoring.mdandeval/scoring.mdwere 190-line copies of each other, drifted apart on the four links that decide which numbers a reader tries to reproduce. Neither copy was right on all four, which is the part worth flagging before anything else:README.md,docs/news.md)docs/scoring.mdeval/scoring.mdspaces/TIGER-Lab/ClawBenchspaces/NAIL-Group/clawbench-leaderboarddatasets/NAIL-Group/ClawBenchdatasets/NAIL-Group/ClawBenchV1Tracedatasets/TIGER-Lab/ClawBenchV2TraceSo deduping toward either file verbatim would have shipped two wrong links. The "correct" column is what
README.md:12,:110,:13,:147,:425-427anddocs/news.md:15record.Which file is canonical
eval/scoring.md. It sits besideeval/rescore.py, which implements it, andREADME.md,docs/README.zh-CN.mdanddocs/harbor.mdalready link there —README.md:433names it as the scoring formula.This differs from the issue, which proposed
docs/scoring.mdon the grounds that prose docs moved todocs/in #283. That's a fair argument and I'd switch on request; the reason I didn't is that it would mean redirecting the three inbound links that currently point ateval/scoring.md, including the README's own. Happy to flip it if you'd rather follow #283's layout — the link corrections below are the same either way.docs/scoring.mdbecomes a short pointer so existing links, including any outside this repo, keep resolving. The two in-repo references that treated it as the spec (docs/v1-vs-v2.md's provenance line,docs/news.md's "Details" link) now go straight to the canonical file.The link corrections
Removing a duplicate means choosing values, not just a filename. The survivor takes the README-corroborated URL on every row: its leaderboard and V2 trace links are corrected to TIGER-Lab; its already-correct dataset card and V1 trace links stay NAIL-Group.
What this deliberately does not do
It does not settle the TIGER-Lab/NAIL-Group split in general. That runs through
docs/news.md,docs/README.zh-CN.md,docs/v1-vs-v2.mdanddocs/huggingface-space-metadata.mdas well, and reconciling those needs maintainer knowledge of which repos are actually live. All this pins is that the scoring spec agrees with the README.Corpus
Documentation only; no task data and no runtime code touched.
Test plan
tests/test_docs_scoring_single_source.py(13 tests): thedocs/copy stays a pointer rather than a rival spec, each spec section appears in exactly one file, nothing still references the old path as the spec, the pointer's relative links and anchors resolve, and each of the four URLs matchesREADME.md.eval/scoring.mdfails 3 of 5 — the two corrected URLs plus the superseded-Space guard..../ClawBenchis satisfied by.../ClawBenchV1Trace, so the dataset-card assertion would have passed vacuously.test_host_tasks.py::test_checked_task_json_files_parse_and_validate, which fails only on this Windows checkout — the task files are git symlinks (mode120000) checked out as text — and is green on CI.ruff check,ruff format --check, andpyright --pythonplatform Linux(matching the ubuntu runner) all clean.Related issues
Fixes #293. Related: #291's markdown link checker guards this class of bug structurally, but cannot catch two files that both exist and disagree — which is what happened here.