Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
12
45
language
class label
13 classes
task
class label
8 classes
problem_statement
stringlengths
168
2.39k
primary_repository
stringlengths
7
42
primary_pr_number
int64
624
162k
primary_pr_url
stringlengths
36
70
repository_count
int64
2
5
PASS_TO_PASS_count
int64
1
22.3k
FAIL_TO_PASS_count
int64
1
631
evaluation_support
stringclasses
2 values
image_ref
stringlengths
101
101
platform
stringclasses
1 value
original_instance_id
stringlengths
12
40
ordinal
int64
1
171
task_path
stringlengths
32
65
original_task_sha256
stringlengths
64
64
evaluation_contract_path
stringlengths
47
80
environment_path
stringlengths
25
58
evaluation_kind
stringclasses
2 values
source_release_commit
stringclasses
1 value
license_record_path
stringlengths
36
69
repositories
listlengths
2
5
gold_patches
listlengths
2
5
test_patches
listlengths
0
6
PASS_TO_PASS
stringlengths
47
2.82M
FAIL_TO_PASS
stringlengths
47
33.3k
buildpkg-poetry-10673
7Python
0API / schema / protocol evolution
Poetry and poetry-core do not agree on the `PackageFile` metadata contract used while resolving distributions. A package file entry can expose a filename and hash in one repository while the application expects a different shape, and releases containing links without a resolvable hash are not handled consistently. This...
python-poetry/poetry
10,673
https://github.com/python-poetry/poetry/pull/10673
2
8
6
instance_specific
silinchen0617/crossrepo-bench@sha256:28db0901f554354ab43ff375ecb8b8dd5e594df5bf300da224a518c1f492fbfa
linux/amd64
023e9ebf623e
1
instances/buildpkg-poetry-10673/task.json
d67cccb51b0fa956600f5c4b6b6fe76b597c83c8d68fa0b17af2822ba2318252
instances/buildpkg-poetry-10673/evaluation/contract.json
environments/buildpkg-poetry-10673
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/buildpkg-poetry-10673.json
[ { "base_commit": "9676185feadbb3da43f0a3eb3bd92297decc5516", "container_path": "/testbed/python-poetry/poetry", "fixed_commit": "e7b52af00d915e94863ab668e3aad2a752a830bd", "key": "poetry", "repo": "python-poetry/poetry", "role": "consumer", "url": "https://github.com/python-poetry/poetry...
[ { "content": "diff --git a/poetry.lock b/poetry.lock\nindex ce7bbada..f0733ec4 100644\n--- a/poetry.lock\n+++ b/poetry.lock\n@@ -42,7 +42,7 @@ name = \"build\"\n version = \"1.3.0\"\n description = \"A simple, correct Python build frontend\"\n optional = false\n-python-versions = \">= 3.9\"\n+python-versions = ...
[ { "content": "diff --git a/tests/installation/test_chooser.py b/tests/installation/test_chooser.py\nindex 80d2e477..082461a9 100644\n--- a/tests/installation/test_chooser.py\n+++ b/tests/installation/test_chooser.py\n@@ -15,6 +15,8 @@ from poetry.utils.env import MockEnv\n \n \n if TYPE_CHECKING:\n+ from poe...
["poetry-core::fail_to_pass::tests/test_package_file_contract.py::test_package_files_accepts_string_filename_and_hash","poetry-core::pass_to_pass::tests/test_package_file_baseline.py::test_package_clone_preserves_valid_file_records","poetry-core::pass_to_pass::tests/test_package_file_baseline.py::test_package_files_def...
["poetry-core::fail_to_pass::tests/test_package_file_contract.py::test_package_files_rejects_invalid_entries[missing_file-{\"hash\": \"sha256:abc\"}]","poetry-core::fail_to_pass::tests/test_package_file_contract.py::test_package_files_rejects_invalid_entries[missing_hash-{\"file\": \"demo-1.0.tar.gz\"}]","poetry-core::...
mcp-go-sdk-1097
6Multi-language
0API / schema / protocol evolution
"Fix the compatibility mismatch between MCP discovery results produced by the Go SDK and the corresp(...TRUNCATED)
modelcontextprotocol/go-sdk
1,097
https://github.com/modelcontextprotocol/go-sdk/pull/1097
2
2
2
instance_specific
"silinchen0617/crossrepo-bench@sha256:6e31f1019f1dabef4e6417530bbb3bc7b987ab17f33a052cfbc4a7806020a1(...TRUNCATED)
linux/amd64
03668229fd2c
2
instances/mcp-go-sdk-1097/task.json
a9e2df36ed46cdde6f6a9f7a4a9ea40e1a16eb7bea787133fce8323d107b667c
instances/mcp-go-sdk-1097/evaluation/contract.json
environments/mcp-go-sdk-1097
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/mcp-go-sdk-1097.json
[{"base_commit":"fa548d74010d04bf1d7c037179de7dec6dc473e5","container_path":"/testbed/modelcontextpr(...TRUNCATED)
[{"content":"diff --git a/docs/protocol.md b/docs/protocol.md\nindex f973ae3..35bf93b 100644\n--- a/(...TRUNCATED)
[{"content":"diff --git a/mcp/client_test.go b/mcp/client_test.go\nindex fe1d3a2..0fe39c0 100644\n--(...TRUNCATED)
["go_sdk::go test ./jsonrpc -count=1","specification::npm run check:schema:ts"]
"[\"go_sdk::go test ./mcp -run '^TestCrossRepoDiscoverResultSchemaFixture$' -count=1\",\"specificati(...TRUNCATED)
networking-hyper-3965
9Rust
3Feature development
"Hyper and hyper-util use inconsistent notions of the current runtime time when managing HTTP timers(...TRUNCATED)
hyperium/hyper
3,965
https://github.com/hyperium/hyper/pull/3965
2
2
2
candidate_api_detected
"silinchen0617/crossrepo-bench@sha256:0cfb890f2bb20e573c5a81d27d918b1be90610a9f1ac145a812207132e948c(...TRUNCATED)
linux/amd64
061b5654531b
3
instances/networking-hyper-3965/task.json
d193f8b881ccfc3e29f2c5b16f035e202d92e9fbe8b3e3e233e41137141dce41
instances/networking-hyper-3965/evaluation/contract.json
environments/networking-hyper-3965
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/networking-hyper-3965.json
[{"base_commit":"f9f8f44058745d23fa52abf51b96b61ee7665642","container_path":"/testbed/hyperium/hyper(...TRUNCATED)
[{"content":"diff --git a/benches/support/tokiort.rs b/benches/support/tokiort.rs\nindex 8ab7aa95..2(...TRUNCATED)
[{"content":"diff --git a/tests/crossrepo_timer_contract.rs b/tests/crossrepo_timer_contract.rs\nnew(...TRUNCATED)
"[\"hyper-util::pass_to_pass::unexpired_connection_is_reused\",\"hyper::pass_to_pass::normal_http_re(...TRUNCATED)
"[\"hyper-util::fail_to_pass::pool_expiration_uses_runtime_clock\",\"hyper::fail_to_pass::header_dea(...TRUNCATED)
networking-axum-3801
9Rust
0API / schema / protocol evolution
"Add HTTP QUERY method support end to end: the http provider must expose the QUERY method contract a(...TRUNCATED)
tokio-rs/axum
3,801
https://github.com/tokio-rs/axum/pull/3801
2
2
2
candidate_api_detected
"silinchen0617/crossrepo-bench@sha256:079aa77330c03b504684c01b15de6c5d956001a191d74282c9c0634b8950e5(...TRUNCATED)
linux/amd64
085c2ee39a22
4
instances/networking-axum-3801/task.json
3a947744f2d960aeb414d9f3aea210587df09ee35beaa4c381169da732384700
instances/networking-axum-3801/evaluation/contract.json
environments/networking-axum-3801
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/networking-axum-3801.json
[{"base_commit":"3f06eadb1da3a6d8aa6c6b9caf4bb9d09606c7af","container_path":"/testbed/tokio-rs/axum"(...TRUNCATED)
[{"content":"diff --git a/axum-extra/src/routing/mod.rs b/axum-extra/src/routing/mod.rs\nindex 3b3cd(...TRUNCATED)
[{"content":"diff --git a/axum/tests/crossrepo_existing_http.rs b/axum/tests/crossrepo_existing_http(...TRUNCATED)
"[\"axum::script_contract::instances/networking-axum-3801/evaluation/commands/axum/pass_to_pass.sh\"(...TRUNCATED)
"[\"axum::script_contract::instances/networking-axum-3801/evaluation/commands/axum/fail_to_pass.sh\"(...TRUNCATED)
cloudnative-istio-60892
2Go
3Feature development
"Istio outlier detection cannot treat selected HTTP response codes as failures, so endpoints returni(...TRUNCATED)
istio/istio
60,892
https://github.com/istio/istio/pull/60892
2
50
72
candidate_api_detected
"silinchen0617/crossrepo-bench@sha256:7fc4c53ce683a97b006a1e14698402536df32ef2a4562fae2db349aee6901d(...TRUNCATED)
linux/amd64
0b5e120921d1
5
instances/cloudnative-istio-60892/task.json
9a08aa0764da57da4dedaa0420f16620a743321abf9fe38dfbfbd43ebdbfea6d
instances/cloudnative-istio-60892/evaluation/contract.json
environments/cloudnative-istio-60892
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/cloudnative-istio-60892.json
[{"base_commit":"581467742ac698b501f91078cb2020841a591d69","container_path":"/testbed/istio/api","fi(...TRUNCATED)
[{"content":"diff --git a/kubernetes/customresourcedefinitions.gen.yaml b/kubernetes/customresourced(...TRUNCATED)
[]
"[\"api::pass_to_pass::TestAPIProducesOutlier/unset/top/binary\",\"api::pass_to_pass::TestAPIProduce(...TRUNCATED)
"[\"api::fail_to_pass::TestAPIProducesOutlier/list0/port/binary\",\"api::fail_to_pass::TestAPIProduc(...TRUNCATED)
cloudnative-kong-operator-1723
2Go
3Feature development
"ControlPlane resources are being migrated to the v2alpha1 API, but several Kong Gateway Operator re(...TRUNCATED)
Kong/kong-operator
1,723
https://github.com/Kong/kong-operator/pull/1723
2
2
2
candidate_api_detected
"silinchen0617/crossrepo-bench@sha256:b3c60dda57f93f88a1dc0b6cf20f648b0717525668960cccd7c7481d1564f9(...TRUNCATED)
linux/amd64
0cbcc03c1efd
6
instances/cloudnative-kong-operator-1723/task.json
bc21afef49a0ad382aed9435d82fb8d264796f0b2aeef9bbbeeeecef97a25f01
instances/cloudnative-kong-operator-1723/evaluation/contract.json
environments/cloudnative-kong-operator-1723
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/cloudnative-kong-operator-1723.json
[{"base_commit":"f9e9e1a46c3c9c7ca7486f5a7374b489e35f520f","container_path":"/testbed/Kong/kong-oper(...TRUNCATED)
[{"content":"diff --git a/.golangci.yaml b/.golangci.yaml\nindex b15b666e5..e16986bcc 100644\n--- a/(...TRUNCATED)
[]
["candidate::pass_to_pass::run","kong_kubernetes_ingress_controller::pass_to_pass::run"]
["candidate::fail_to_pass::run","kong_kubernetes_ingress_controller::fail_to_pass::run"]
mcp-specification-2508
12TypeScript
0API / schema / protocol evolution
"The MCP extensions capability must use the JSON-safe JSONObject contract, and the TypeScript SDK sp(...TRUNCATED)
modelcontextprotocol/modelcontextprotocol
2,508
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2508
2
2
2
instance_specific
"silinchen0617/crossrepo-bench@sha256:5a94caa653a5dcb771f4abf8e66ede9a379d81f38755baefa7a1fb6f0c9691(...TRUNCATED)
linux/amd64
0f67eaaf0719
7
instances/mcp-specification-2508/task.json
61e425afaf2e032ce84fc6d6f4e5169168e578af6157cc6d7a4389b48f12befb
instances/mcp-specification-2508/evaluation/contract.json
environments/mcp-specification-2508
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/mcp-specification-2508.json
[{"base_commit":"9c021b306c300fe1a58f779dd41613e02d955ad4","container_path":"/testbed/modelcontextpr(...TRUNCATED)
[{"content":"diff --git a/docs/specification/draft/schema.mdx b/docs/specification/draft/schema.mdx\(...TRUNCATED)
[]
"[\"spec::pass_to_pass::spec/p2p/compiler-generator-contract\",\"typescript_sdk::pass_to_pass::types(...TRUNCATED)
"[\"spec::fail_to_pass::spec/f2p/compiler-generator-contract\",\"typescript_sdk::fail_to_pass::types(...TRUNCATED)
observability-loki-22435
2Go
3Feature development
"Loki per-ingestion-policy rate limiting must support cancellable reservations through `ReserveN` wh(...TRUNCATED)
grafana/loki
22,435
https://github.com/grafana/loki/pull/22435
2
10
9
instance_specific
"silinchen0617/crossrepo-bench@sha256:4e6b534da56ff371bf4ebf2a57e6d8d5dd42410ab8a55de11b59f1db8dada8(...TRUNCATED)
linux/amd64
1153e8df92be
8
instances/observability-loki-22435/task.json
505248e06c16eeaa03aef2a23a45ed9de66385d4a397e53e4e6b273a94b16cb5
instances/observability-loki-22435/evaluation/contract.json
environments/observability-loki-22435
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/observability-loki-22435.json
[{"base_commit":"6ceea0280c379acae01f3fd2264f9d59a01f1b53","container_path":"/testbed/grafana/loki",(...TRUNCATED)
[{"content":"diff --git a/docs/sources/shared/configuration.md b/docs/sources/shared/configuration.m(...TRUNCATED)
[]
"[\"dskit::pass_to_pass::TestCrossRepoRateContract\",\"loki::fail_to_pass::TestCrossRepoHiddenDistri(...TRUNCATED)
"[\"dskit::fail_to_pass::TestCrossRepoRateContract\",\"loki::fail_to_pass::TestCrossRepoHiddenDistri(...TRUNCATED)
buildpkg-poetry-10672
7Python
4Migration, upgrade & refactoring
"Extend Python packaging workflows so Poetry's legacy package indexes can consume the PyPI JSON API (...TRUNCATED)
python-poetry/poetry
10,672
https://github.com/python-poetry/poetry/pull/10672
2
2
2
instance_specific
"silinchen0617/crossrepo-bench@sha256:5f49ee729ac683a6d7812ad5e4e16fb70485716d45c2c78388bb12d6e815ea(...TRUNCATED)
linux/amd64
14172f1059df
9
instances/buildpkg-poetry-10672/task.json
d1a909501ae6ecebfaae7a8dd7f48faacd33017579532ea7d75fedd920b3398b
instances/buildpkg-poetry-10672/evaluation/contract.json
environments/buildpkg-poetry-10672
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/buildpkg-poetry-10672.json
[{"base_commit":"e7b52af00d915e94863ab668e3aad2a752a830bd","container_path":"/testbed/python-poetry/(...TRUNCATED)
[{"content":"diff --git a/poetry.lock b/poetry.lock\nindex f0733ec..95d84c2 100644\n--- a/poetry.loc(...TRUNCATED)
[]
"[\"plugin_export::pass_to_pass::plugin_export-pass_to_pass\",\"poetry::pass_to_pass::poetry-pass_to(...TRUNCATED)
"[\"plugin_export::fail_to_pass::plugin_export-fail_to_pass\",\"poetry::fail_to_pass::poetry-fail_to(...TRUNCATED)
networking-urllib3-5091
7Python
5Security, identity & observability coordination
"Align urllib3 legacy HTTP CONNECT tunnel handling with CPython security behavior so invalid control(...TRUNCATED)
urllib3/urllib3
5,091
https://github.com/urllib3/urllib3/pull/5091
2
54
294
instance_specific
"silinchen0617/crossrepo-bench@sha256:aed279264e517eea708cf2f7a41115f8738443b59343ececa824f13762d2e8(...TRUNCATED)
linux/amd64
152398c45e08
10
instances/networking-urllib3-5091/task.json
da1787988b6101612bd87307ded2a4d4ad4f7685d78c835c79048de70f1951d4
instances/networking-urllib3-5091/evaluation/contract.json
environments/networking-urllib3-5091
command_contract
f447522ef369e721b1dbbfa28e53fa2c877e61cd
licenses/instances/networking-urllib3-5091.json
[{"base_commit":"c420e267acb739917bee96e021ad9a2d27de8aae","container_path":"/testbed/urllib3/urllib(...TRUNCATED)
[{"content":"diff --git a/src/urllib3/connection.py b/src/urllib3/connection.py\nindex b905dda3..8a8(...TRUNCATED)
[{"content":"--- a/crossrepo90_tunnel_contract.py\n+++ b/crossrepo90_tunnel_contract.py\n@@ -0,0 +1,(...TRUNCATED)
"[\"cpython::pass_to_pass::candidate-cpython/empty-value\",\"cpython::pass_to_pass::candidate-cpytho(...TRUNCATED)
"[\"cpython::fail_to_pass::candidate-cpython/header-name-' Bad'\",\"cpython::fail_to_pass::candidate(...TRUNCATED)
End of preview. Expand in Data Studio
CrossSWE logo

CrossSWE-Bench

Software Engineering Across Repository Boundaries

Dataset · Quick Start · Evaluation · Data Format

171 tasks 171 container environments Docker Linux amd64


CrossSWE-Bench is a benchmark of 171 cross-repository software engineering tasks drawn from real upstream projects. Tasks require coordinated changes across related repositories, such as a library and its consumer, an API and its implementation, or a build tool and its dependency.

Each instance includes its problem statement, pinned repository revisions, reference patches, test materials, evaluation contract, and a container environment identified by an immutable digest. The release covers 350 repository entries across 165 distinct upstream repositories.

Latest Release

October 30, 2026 — The complete 171-instance environment release is available. It includes all 171 pinned image descriptors, source and dependency reconstruction materials, and task-specific evaluation entry points.

Quick Start

Load the tasks

from datasets import load_dataset

tasks = load_dataset("CrossSWE/CrossSWE-Bench", "default", split="test")
print(len(tasks))  # 171
print(tasks[0]["instance_id"])
print(tasks[0]["problem_statement"])
print(tasks[0]["image_ref"])
print(tasks.features["language"].int2str(tasks[0]["language"]))
print(tasks.features["task"].int2str(tasks[0]["task"]))

Open a published image

Pull and start the selected instance's image_ref directly:

IMAGE='silinchen0617/crossrepo-bench@sha256:28db0901f554354ab43ff375ecb8b8dd5e594df5bf300da224a518c1f492fbfa'
docker pull --platform linux/amd64 "$IMAGE"
docker run --rm -it --platform linux/amd64 --network=none "$IMAGE" /bin/bash

Image reconstruction is optional. Build-input manifests and build contexts are not needed to open the published image.

Download evaluation materials

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="CrossSWE/CrossSWE-Bench",
    repo_type="dataset",
    local_dir="CrossSWE-Bench",
)

The dataset is public and does not require an HF token. Evaluation uses the selected task's test materials and adapter. A full snapshot also includes optional image-reconstruction materials; it is not required just to pull and open an image. You can read data/crossswe-bench.jsonl directly with Python's json module.

Evaluation

Start from the immutable image recorded for an instance, apply your candidate changes to its provided repositories, and use its task-specific evaluator. Reference patches and evaluator-only tests stay outside the agent workspace.

cd CrossSWE-Bench
python3 scripts/verify_hf_release.py
python3 scripts/crossswe.py show --instance-id buildpkg-poetry-10673
python3 scripts/crossswe.py statement --instance-id buildpkg-poetry-10673
python3 scripts/crossswe.py pull --instance-id buildpkg-poetry-10673
python3 scripts/crossswe.py shell --instance-id buildpkg-poetry-10673

Container images are hosted at silinchen0617/crossrepo-bench and pinned by immutable digest. Pull the selected image_ref directly.

See Running Docker and Tests for public-test commands, candidate evaluation, platform requirements, and per-instance entry points. Build and runtime requirements vary by task. The evaluation directory lists the entry point, contract and instructions for every instance, including the 57 statically detected candidate APIs and 114 instance-specific entries.

The 171 delivered environments have recorded public-test, editable-source rebuild, image audit, and formal endpoint evidence. Initial outcomes include explicitly documented task-caused failures and unexecuted cases; unexecuted cases are never counted as passes or executed failures. See Release and Validation Notes for the exact scope.

Repository Contents

data/                 Dataset tables, task index, image registry, and release metadata
statements/<id>.md    Problem statements matching the main dataset table
instances/<id>/       Task records, reference patches, and tests
environments/<id>/    Image metadata, evaluation support, and optional rebuild materials
references/           Approved reference corrections and their source preconditions
scripts/              Inspection, download, integrity, and execution utilities
docs/                 Running instructions, data format, and release notes
licenses/             Upstream license texts, attribution, and scope records
assets/               CrossSWE logo

Data Format

The main table contains one row per task. Full task artifacts remain separate files so binary fixtures, native tests, and large dependency manifests retain their exact bytes.

An empty test_patches list does not mean an instance has no tests. This field contains diff-form test patches only. Some instances instead provide standalone test files, native test materials, or recorded image-probe scripts. Find those materials through evaluation_contract_path and its test_files entries, with the exact files and hashes under instances/<instance_id>/tests/. Use the corresponding task-specific evaluation entry point; these files are preserved in their original form rather than represented as synthetic patches.

Field Description
instance_id Stable canonical task identifier.
original_instance_id Original identifier retained for traceability.
language ClassLabel with 13 programming language categories, including Multi-language.
task ClassLabel with eight high-level task-intent categories.
problem_statement Complete task description.
repositories Provided repository roles, URLs, base and fixed revisions, and workspace paths.
gold_patches, test_patches Task-published patch contents, encodings, paths, and SHA256 values.
PASS_TO_PASS_count, FAIL_TO_PASS_count Numbers of selected targets, at the granularity recorded for each instance.
PASS_TO_PASS JSON-encoded list of regression-test target identifiers.
FAIL_TO_PASS JSON-encoded list of issue-resolution test target identifiers.
evaluation_support candidate_api_detected for a statically identified candidate interface, or instance_specific for per-instance instructions.
image_ref Current container image pinned by digest.
task_path, evaluation_contract_path, environment_path Paths to the full task, native evaluation contract, and environment materials.

See Data Format for source-projection and reference-revision conventions. Gold and test contents are evaluator material; exclude them from an agent's task context.

The count columns count selected targets, which may be cases or script contracts. Original identifiers can contain a fail_to_pass namespace even when a particular case belongs to P2P; membership is defined by the column. P2P/F2P identifiers preserve the available evaluation granularity: retained native/evaluator case IDs are preferred; script-level contracts use their real released entry files and are explicitly marked. These lists are test selections, not execution logs or native-body counts. See test-target metadata and identifier schema for granularity, definition hashes, and initial unexecuted records.

Licensing and Attribution

The dataset has mixed license scopes. Independently authored, non-code benchmark contributions are covered by the limited CC-BY-4.0 grant in LICENSE. Upstream code, patches, tests, and derived materials retain their original terms. The release includes the upstream scope and permission records.

See Third-Party Notices, upstream license inventory, and the detailed license report.

Downloads last month
155