Skip to content

docs(scoring): make eval/scoring.md the single source - #328

Merged
Perry2004 merged 3 commits into
TIGER-AI-Lab:mainfrom
vaibhavdabas16:docs/dedupe-scoring
Sep 1, 2026
Merged

Perry2004 merged 3 commits into
TIGER-AI-Lab:mainfrom
vaibhavdabas16:docs/dedupe-scoring

Conversation

@vaibhavdabas16

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #293.

docs/scoring.md and eval/scoring.md were 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:

correct (README.md, docs/news.md) docs/scoring.md eval/scoring.md
Live leaderboard spaces/TIGER-Lab/ClawBench correct stale — spaces/NAIL-Group/clawbench-leaderboard
HF data card datasets/NAIL-Group/ClawBench wrong — points at a Space, not a dataset correct
V1 trace datasets/NAIL-Group/ClawBenchV1Trace label/URL disagree — label says TIGER-Lab, URL goes to NAIL-Group correct
V2 trace datasets/TIGER-Lab/ClawBenchV2Trace correct stale — NAIL-Group

So deduping toward either file verbatim would have shipped two wrong links. The "correct" column is what README.md:12, :110, :13, :147, :425-427 and docs/news.md:15 record.

Which file is canonical

eval/scoring.md. It sits beside eval/rescore.py, which implements it, and README.md, docs/README.zh-CN.md and docs/harbor.md already link there — README.md:433 names it as the scoring formula.

This differs from the issue, which proposed docs/scoring.md on the grounds that prose docs moved to docs/ 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 at eval/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.md becomes 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.md and docs/huggingface-space-metadata.md as 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

  • v2
  • v1
  • both
  • not applicable

Documentation only; no task data and no runtime code touched.

Test plan

  • New tests/test_docs_scoring_single_source.py (13 tests): the docs/ 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 matches README.md.
  • Controls, because a test written after the fix proves nothing. Five of the original eight assertions fail against the pre-change tree. For the four new link assertions, holding the tests constant and reverting only eval/scoring.md fails 3 of 5 — the two corrected URLs plus the superseded-Space guard.
  • The whole-URL matcher is deliberate: a plain substring check for .../ClawBench is satisfied by .../ClawBenchV1Trace, so the dataset-card assertion would have passed vacuously.
  • Full suite: 223 passed, 4 skipped. The 4 deselected are 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 (mode 120000) checked out as text — and is green on CI.
  • ruff check, ruff format --check, and pyright --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.

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.
@Perry2004

Copy link
Copy Markdown
Collaborator

I've pushed a bit cleanup to it, the rest looks good.
There seem to be a GitHub outage that the PRs not updating, I'll approve & merge after it's updated.

Thanks for the contribution.

@Perry2004
Perry2004 merged commit 7a00fc8 into TIGER-AI-Lab:main Sep 1, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in ClawBench Sep 1, 2026
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.

docs: eval/scoring.md and docs/scoring.md are duplicate copies that have started to drift (one points at the deprecated leaderboard)

2 participants