Skip to content

Commit 31bcac5

Browse files
authored
Merge pull request #6 from CommonstackAI/docs/dynamic-heldout100-ids
Add leaderboard submission guide and held-out-100 IDs
2 parents 784c379 + 534c9d0 commit 31bcac5

8 files changed

Lines changed: 320 additions & 4 deletions

File tree

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Leaderboard submission guide
4+
url: https://github.com/CommonstackAI/TwinRouterBench/blob/main/docs/SUBMISSION.md
5+
about: Rules, required artifacts, and packaging checklist before you open a submission issue.
6+
- name: Public leaderboard
7+
url: https://commonstackai.github.io/TwinRouterBench/
8+
about: View the current TwinRouterBench leaderboard (GitHub Pages).
9+
- name: Static dataset (Hugging Face)
10+
url: https://huggingface.co/datasets/Amorph/TwinRouterBench
11+
about: Download the static track data. Do not upload leaderboard run logs there.
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
name: Leaderboard submission
2+
description: Submit a dynamic-track run for maintainer review and possible leaderboard update.
3+
title: "[Leaderboard] "
4+
labels:
5+
- leaderboard
6+
- submission
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for submitting to **TwinRouterBench**.
12+
13+
**Read the rules first:** [docs/SUBMISSION.md](https://github.com/CommonstackAI/TwinRouterBench/blob/main/docs/SUBMISSION.md)
14+
15+
Official leaderboard entries are accepted only after maintainer review.
16+
We may re-score (and, when needed, re-run) against the locked pool and pricing under `data/dynamic/`.
17+
18+
**Do not** upload run logs to the Hugging Face dataset page.
19+
Put the scoreable artifact package on a durable public URL (or a private link shared with maintainers) and paste the link below.
20+
21+
Required split for dynamic submissions: [`data/dynamic/dynamic_heldout100_ids.txt`](https://github.com/CommonstackAI/TwinRouterBench/blob/main/data/dynamic/dynamic_heldout100_ids.txt) (100 SWE-bench Verified held-out instances).
22+
23+
- type: input
24+
id: router_name
25+
attributes:
26+
label: Router display name
27+
description: Name shown on the leaderboard if accepted.
28+
placeholder: e.g. MyRouter-v1
29+
validations:
30+
required: true
31+
32+
- type: input
33+
id: router_label
34+
attributes:
35+
label: "router_label used in the run"
36+
description: "Exact --router-label / score.json field."
37+
placeholder: e.g. my_router_v1
38+
validations:
39+
required: true
40+
41+
- type: dropdown
42+
id: track
43+
attributes:
44+
label: Evaluation track
45+
description: Public leaderboard currently accepts the dynamic held-out-100 track.
46+
options:
47+
- Dynamic SWE-bench Verified heldout-100
48+
- Other (explain in notes; may be declined)
49+
validations:
50+
required: true
51+
52+
- type: input
53+
id: contact
54+
attributes:
55+
label: Contact
56+
description: GitHub handle, email, or other way for maintainers to reach you about reproduction questions.
57+
placeholder: "@yourhandle or name@example.com"
58+
validations:
59+
required: true
60+
61+
- type: input
62+
id: code_url
63+
attributes:
64+
label: Router code / paper URL
65+
description: Repository, commit, or paper that defines the router. Prefer a pinned commit SHA.
66+
placeholder: "https://github.com/org/repo/tree/<commit-sha>"
67+
validations:
68+
required: true
69+
70+
- type: input
71+
id: twinrouterbench_ref
72+
attributes:
73+
label: TwinRouterBench commit / tag used for the run
74+
description: Exact git commit SHA or release tag of CommonstackAI/TwinRouterBench used to produce the artifacts.
75+
placeholder: e.g. abcdef0123456789...
76+
validations:
77+
required: true
78+
79+
- type: textarea
80+
id: score_summary
81+
attributes:
82+
label: Reported score summary
83+
description: "Paste headline numbers from score.json (or fill the template)."
84+
value: |
85+
- total_leaderboard_bill_usd:
86+
- total_router_cost_usd:
87+
- total_penalty_cost_usd:
88+
- resolved_count / instance_count / resolved_rate:
89+
- avg_steps:
90+
- pool_fingerprint:
91+
- pricing_fingerprint:
92+
- pricing_schema_version:
93+
- failure_penalty_usd:
94+
- exclude_infra_failures (true/false):
95+
validations:
96+
required: true
97+
98+
- type: textarea
99+
id: artifacts
100+
attributes:
101+
label: Artifact package URL
102+
description: |
103+
Host the archive externally and paste the URL here. Do not attach the
104+
run package to this GitHub issue (attachments are too small; a full
105+
dynamic run with llm_io can be hundreds of MB).
106+
107+
Required contents (held-out-100 scoreable core; typically ~5-20 MB):
108+
- score.json (from twinrouterbench dynamic score)
109+
- results/<instance_id>.json for all 100 held-out instances
110+
- matching <instance_id>.trace.jsonl files
111+
- eval_summary.json if present
112+
113+
Exclude from the package:
114+
- llm_io/ and *.io.jsonl (full prompt/response dumps; often 100MB-500MB+)
115+
- secrets (.env, API keys, tokens)
116+
- unrelated instances outside dynamic_heldout100_ids.txt
117+
118+
agent_logs/ is optional and usually small; omit if not needed for debugging.
119+
placeholder: "https://... (Zenodo / your own HF dataset / GitHub Release asset / etc.)"
120+
validations:
121+
required: true
122+
123+
- type: input
124+
id: artifact_sha256
125+
attributes:
126+
label: Artifact archive SHA-256 (optional but recommended)
127+
description: Hex digest of the uploaded archive so maintainers can verify integrity.
128+
placeholder: e.g. output of sha256sum your_run_heldout100.tar.gz
129+
validations:
130+
required: false
131+
132+
- type: textarea
133+
id: reproduce
134+
attributes:
135+
label: Reproduction command(s)
136+
description: Exact commands a maintainer can use to re-run or re-score. Include router import path and args.
137+
render: bash
138+
value: |
139+
mapfile -t HELDOUT < TwinRouterBench/data/dynamic/dynamic_heldout100_ids.txt
140+
twinrouterbench dynamic run \
141+
--router-import your.module:YourRouter.from_cli_args \
142+
--router-arg ... \
143+
--router-label your_label \
144+
--output-dir runs/your_run \
145+
--instances "${HELDOUT[@]}" \
146+
...
147+
148+
twinrouterbench dynamic score \
149+
--run-dir runs/your_run \
150+
--router-label your_label \
151+
--instance-ids-file TwinRouterBench/data/dynamic/dynamic_heldout100_ids.txt
152+
validations:
153+
required: true
154+
155+
- type: checkboxes
156+
id: checklist
157+
attributes:
158+
label: Submission checklist
159+
options:
160+
- label: "Evaluated on the official held-out-100 IDs in data/dynamic/dynamic_heldout100_ids.txt (or scored with --instance-ids-file pointing at that file)."
161+
required: true
162+
- label: "Used the locked pool / pricing / TTL tables under data/dynamic/ (no custom pricing tables)."
163+
required: true
164+
- label: "Artifact package includes score.json, results/*.json, and the corresponding *.trace.jsonl files for the held-out-100 split."
165+
required: true
166+
- label: "Artifact package excludes llm_io/ / *.io.jsonl and contains no secrets (API keys, .env, private tokens)."
167+
required: true
168+
- label: "I understand maintainers may re-score or re-run before accepting the entry, and may reject submissions that cannot be reproduced."
169+
required: true
170+
171+
- type: textarea
172+
id: notes
173+
attributes:
174+
label: Additional notes
175+
description: Method summary, known infra exclusions, model-pool caveats, embargo requests, etc.
176+
placeholder: Optional
177+
validations:
178+
required: false

‎README.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,21 @@ Under `TwinRouterBench/scripts/examples/`:
377377

378378
---
379379

380+
## Leaderboard submission
381+
382+
**Full rules:** [`docs/SUBMISSION.md`](docs/SUBMISSION.md)
383+
384+
Public leaderboard: [commonstackai.github.io/TwinRouterBench](https://commonstackai.github.io/TwinRouterBench/).
385+
386+
Short path:
387+
388+
1. Evaluate on [`data/dynamic/dynamic_heldout100_ids.txt`](data/dynamic/dynamic_heldout100_ids.txt).
389+
2. Package the held-out-100 scoreable core and host it at an external URL (see the guide).
390+
3. Open [Leaderboard submission](https://github.com/CommonstackAI/TwinRouterBench/issues/new?template=leaderboard_submission.yml).
391+
392+
Do **not** upload run logs to the Hugging Face dataset page.
393+
---
394+
380395
## Citation
381396

382397
If you use Twin Router Bench in research, please cite the associated paper. **Bibliographic details are withheld for anonymous review** and will be added after publication (no preprint URL in this release).

‎docs/SUBMISSION.md‎

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# TwinRouterBench Leaderboard Submission Guide
2+
3+
This document is the **source of truth** for public leaderboard submissions.
4+
Fill the GitHub issue form only after reading this page.
5+
6+
- Public leaderboard: https://commonstackai.github.io/TwinRouterBench/
7+
- Open a submission issue: https://github.com/CommonstackAI/TwinRouterBench/issues/new?template=leaderboard_submission.yml
8+
- Static dataset (download only; **not** a submission inbox): https://huggingface.co/datasets/Amorph/TwinRouterBench
9+
10+
## What we accept
11+
12+
| Item | Requirement |
13+
|------|-------------|
14+
| Track | **Dynamic** SWE-bench Verified **held-out-100** |
15+
| Instance split | Exactly the IDs in [`data/dynamic/dynamic_heldout100_ids.txt`](../data/dynamic/dynamic_heldout100_ids.txt) |
16+
| Pool / pricing / TTL | Locked tables under [`data/dynamic/`](../data/dynamic/) (no custom pricing) |
17+
| Sort key | `total_leaderboard_bill_usd` (lower is better), from official scorer |
18+
| Acceptance | Maintainer review; we may **re-score** or **re-run** before updating the board |
19+
20+
Other tracks or custom splits may be discussed, but are not guaranteed to appear on the public board.
21+
22+
## How to submit (two places)
23+
24+
1. **GitHub Issue** — official request + metadata (router name, fingerprints, reproduction, checklist).
25+
2. **External artifact URL** — downloadable archive of the scoreable run package.
26+
27+
Do **not**:
28+
29+
- upload run logs to the official Hugging Face dataset `Amorph/TwinRouterBench`
30+
- attach the full run archive to the GitHub issue (size limits; packages can be large)
31+
- include API keys, `.env`, or other secrets
32+
33+
Hosting for the archive may be your own Hugging Face dataset, Zenodo, a GitHub Release asset, or any durable URL you control.
34+
35+
## Required evaluation steps
36+
37+
```bash
38+
# 1) Run on the official held-out-100 split
39+
mapfile -t HELDOUT < TwinRouterBench/data/dynamic/dynamic_heldout100_ids.txt
40+
twinrouterbench dynamic run \
41+
--router-import your.module:YourRouter.from_cli_args \
42+
--router-arg ... \
43+
--router-label your_label \
44+
--output-dir runs/your_run \
45+
--instances "${HELDOUT[@]}" \
46+
...
47+
48+
# 2) Score (subset file keeps headline metrics on held-out-100 only)
49+
twinrouterbench dynamic score \
50+
--run-dir runs/your_run \
51+
--router-label your_label \
52+
--instance-ids-file TwinRouterBench/data/dynamic/dynamic_heldout100_ids.txt
53+
54+
# Optional audits
55+
twinrouterbench dynamic audit-infra --run-dir runs/your_run
56+
twinrouterbench dynamic audit-trace-cost --run-dir runs/your_run
57+
```
58+
59+
Record the TwinRouterBench git commit / tag used for the run; the issue form asks for it.
60+
61+
## Artifact package (what to upload)
62+
63+
### Include (held-out-100 scoreable core)
64+
65+
Typical size: about **5–20 MB**.
66+
67+
- `score.json` from `twinrouterbench dynamic score`
68+
- `results/<instance_id>.json` for all 100 held-out instances
69+
- matching `<instance_id>.trace.jsonl` files
70+
- `eval_summary.json` if present
71+
72+
### Exclude
73+
74+
- `llm_io/` and `*.io.jsonl` (full prompt/response dumps; often **100–500+ MB**)
75+
- secrets (`.env`, API keys, tokens)
76+
- instances outside `dynamic_heldout100_ids.txt`
77+
78+
`agent_logs/` is optional and usually small; omit unless maintainers ask for debug context.
79+
80+
### Integrity (recommended)
81+
82+
Publish `sha256sum` of the archive and paste it into the issue form.
83+
84+
## What to put in the GitHub issue
85+
86+
The [Leaderboard submission](https://github.com/CommonstackAI/TwinRouterBench/issues/new?template=leaderboard_submission.yml) form collects:
87+
88+
- Router display name and `router_label`
89+
- Contact and router code / paper URL (prefer a pinned commit)
90+
- TwinRouterBench commit / tag used for the run
91+
- Headline fields from `score.json`:
92+
- `total_leaderboard_bill_usd`
93+
- `total_router_cost_usd`
94+
- `total_penalty_cost_usd`
95+
- `resolved_count` / `instance_count` / `resolved_rate`
96+
- `avg_steps`
97+
- `pool_fingerprint` / `pricing_fingerprint` / `pricing_schema_version`
98+
- `failure_penalty_usd`
99+
- `exclude_infra_failures`
100+
- Artifact URL (+ optional SHA-256)
101+
- Exact reproduction commands
102+
- Checklist confirmation
103+
104+
## Review policy
105+
106+
- Incomplete packages, wrong split, custom pricing, or unreproducible routers may be rejected.
107+
- Maintainers may recompute scores from your traces against the locked `data/dynamic/` tables.
108+
- Accepted entries are written into `leaderboard/data/leaderboard.json` and published via the leaderboard site.
109+
110+
## Questions
111+
112+
Open a normal GitHub issue (not the submission form) for clarification before you run a costly full held-out evaluation.

‎leaderboard/app.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function renderLinks() {
9292
const links = state.data.links;
9393
const items = [
9494
["About", links.github],
95+
["Submit", links.submission],
9596
["Dataset", links.dataset],
9697
["Manifest", links.static_manifest],
9798
["Paper", links.paper],

‎leaderboard/data/leaderboard.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"notice": "Public preview: 4 dynamic router runs, 100 heldout SWE-bench Verified cases, and 970 static conditional per-call labels.",
77
"links": {
88
"github": "https://github.com/CommonstackAI/TwinRouterBench",
9+
"submission": "https://github.com/CommonstackAI/TwinRouterBench/blob/main/docs/SUBMISSION.md",
910
"dataset": "https://github.com/CommonstackAI/TwinRouterBench/tree/main/data",
1011
"static_manifest": "https://github.com/CommonstackAI/TwinRouterBench/blob/main/data/static/manifest.json",
1112
"paper": "",

‎swerouter/docs/blog_intro.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ CRB tells you *what kind* of model each step needs. SWERouterBench tells you *wh
5959
The first milestone is the 0.1.0 release. Once the pipeline is cemented, the next beats are:
6060

6161
- Publish baseline runs for the four pool models and a CRB-classifier-powered mixed router.
62-
- Open a submission flow (GitHub issue template + maintainer re-run).
6362
- Quarterly pricing refresh with a `pricing_schema_version` bump.
6463
- Optional extended-cache (1h) variant once community pressure for it is real.
6564

66-
If you maintain a router and want to see it on the leaderboard, open an issue with your run artefacts and we will re-run it against the official pricing.
65+
If you maintain a router and want to see it on the leaderboard, read [`docs/SUBMISSION.md`](../../docs/SUBMISSION.md), then open a **Leaderboard submission** issue ([template](https://github.com/CommonstackAI/TwinRouterBench/issues/new?template=leaderboard_submission.yml)); maintainers will review and may re-run against the official pricing.
6766

6867
## See also
6968

‎swerouter/docs/blog_intro_zh.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ CRB 告诉你"每一步**应该**是哪个档位",SWERouterBench 告诉你"你
5757

5858
**0.1.0 先做最小闭环**:公开 4 个 `always-*` baseline(low/mid/mid_high/high)+ ≥1 个 CRB-classifier 混合 router 的 leaderboard 结果,博客里把表贴出来。之后:
5959

60-
- 开 submission 流程(GitHub issue 模板 + maintainer 按官方价重跑)
6160
- 季度 pricing 刷新(每次 diff 审后 bump `pricing_schema_version`)
6261
- 视社区诉求增加 1h extended-cache 变体
6362

64-
维护 router 的同学如果想上榜,开一个 issue 附上 run artefacts 即可,我们会按官方价重跑。
63+
维护 router 的同学如果想上榜,先读 [`docs/SUBMISSION.md`](../../docs/SUBMISSION.md),再用 **Leaderboard submission** Issue 模板([打开模板](https://github.com/CommonstackAI/TwinRouterBench/issues/new?template=leaderboard_submission.yml))提交;我们会审核,并可能按官方价重跑后再更新榜单。
6564

6665
## 相关链接
6766

0 commit comments

Comments
 (0)