FWeindel commited on
Commit
563034a
·
verified ·
1 Parent(s): d586e33

Publish Scale SWE v1.1 tasks and results; cached-image transfer in progress

Browse files
.gitattributes CHANGED
@@ -39114,3 +39114,4 @@ scaleswe_v1.1/cached_images/bundles-v1/9e812c90b6bf337ba778e115c7d8895dd33723f63
39114
  scaleswe_v1.1/cached_images/bundles-v1/3fb8f4234969db91166dd3d067936cd253e74102474feb162687d0c07f5d6dbd/build_assertpy_assertpy_pr117-5b52bf083cf9.sif/build_assertpy_assertpy_pr117-5b52bf083cf9.sif filter=lfs diff=lfs merge=lfs -text
39115
  scaleswe_v1.1/cached_images/bundles-v1/d51c873e499c31cbdd1ceb37067173f86d3a3b354d0bcc9d4119ac24e7c2d339/build_beetbox_beets_pr3647-93dff1bd7357.sif/build_beetbox_beets_pr3647-93dff1bd7357.sif filter=lfs diff=lfs merge=lfs -text
39116
  scaleswe_v1.1/cached_images/bundles-v1/7b6ab175d29579befce9459fef5fd842adf3a7b93801d4b0aaa588043d8c7150/build_beetbox_beets_pr4521-3904c5346a66.sif/build_beetbox_beets_pr4521-3904c5346a66.sif filter=lfs diff=lfs merge=lfs -text
 
 
39114
  scaleswe_v1.1/cached_images/bundles-v1/3fb8f4234969db91166dd3d067936cd253e74102474feb162687d0c07f5d6dbd/build_assertpy_assertpy_pr117-5b52bf083cf9.sif/build_assertpy_assertpy_pr117-5b52bf083cf9.sif filter=lfs diff=lfs merge=lfs -text
39115
  scaleswe_v1.1/cached_images/bundles-v1/d51c873e499c31cbdd1ceb37067173f86d3a3b354d0bcc9d4119ac24e7c2d339/build_beetbox_beets_pr3647-93dff1bd7357.sif/build_beetbox_beets_pr3647-93dff1bd7357.sif filter=lfs diff=lfs merge=lfs -text
39116
  scaleswe_v1.1/cached_images/bundles-v1/7b6ab175d29579befce9459fef5fd842adf3a7b93801d4b0aaa588043d8c7150/build_beetbox_beets_pr4521-3904c5346a66.sif/build_beetbox_beets_pr4521-3904c5346a66.sif filter=lfs diff=lfs merge=lfs -text
39117
+ scaleswe_v1.1/provenance/contract.json filter=lfs diff=lfs merge=lfs -text
scaleswe_v1.1/README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # scaleswe_v1.1 v1
2
+
3
+ **Cached-image upload is in progress.** Task payloads, recorded results, and all 745 prepared runtime artifacts are available. The environment-image manifest currently marks pending uploads explicitly; it will be replaced after the full cache is verified.
4
+
5
+ This is a partial baseline audit release, not a fully validated training selection. `tasks.parquet` and `tasks/r1.parquet` contain all 17,202 payloads; `archive.parquet` contains the 416 historically excluded tasks. Use `v1/selection.parquet` for the strict selection, which is currently empty. All 16,786 current tasks have an incomplete reference-leak check (16,649 execution errors, 137 blocked). Stage-level pass counts do not establish complete validation.
6
+
7
+ Current tasks were produced with `patch.py --no-repairs` and the mandatory offline policy, with the validation pipeline's recorded deterministic repairs replayed. All 16,786 current payload content hashes were checked against their result rows. Historical outcomes are retained for accounting, not current offline evidence: their original measured payload hashes and offline execution are unverified. Historical payloads are the archived tasks from the pinned baseline export. Standard check columns hold both groups' statuses; provenance columns distinguish their evidence.
8
+
9
+ Cached environment images are in `cached_images/manifest.json`; prepared runtimes are referenced in `runtime-manifest.json` and stored in the repository's shared `runtimes/` directory. Missing or invalid artifacts remain explicit in those manifests. The validation reports include infrastructure errors and reference failures. The 14,018 verifier-path findings also need review, because many involve the converter-generated `ot_project_paths.py`.
10
+
11
+ ## Dataset stats
12
+
13
+ | Measure | Value |
14
+ | --- | --- |
15
+ | Upstream tasks | 17202 |
16
+ | Tasks with results | 17202 |
17
+ | Kept tasks | 0 |
18
+ | Flagged tasks | 14804 |
19
+ | Unresolved tasks | 2398 |
20
+ | Original images | not recorded |
21
+ | Current shared images | not recorded |
22
+
23
+ ## Dataset characteristics
24
+
25
+ Classification not recorded.
26
+
27
+ ## Validation rules
28
+
29
+ | Rule | Total tasks | Passed | Failed | Warning | Automatically repaired | Unresolved | Not applicable | Repair not recorded |
30
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- |
31
+ | agent_editable_test | 17202 | 16708 (97.1%) | 78 (0.5%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 17202 (100.0%) |
32
+ | artifact_efficiency | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
33
+ | build | 17202 | 16649 (96.8%) | 1 (0.0%) | 0 (0.0%) | 0 (0.0%) | 552 (3.2%) | 0 (0.0%) | 0 (0.0%) |
34
+ | compose-host-binds | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
35
+ | declared_internet_access | 17202 | 16649 (96.8%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 553 (3.2%) | 0 (0.0%) | 0 (0.0%) |
36
+ | declared_workdir | 17202 | 16649 (96.8%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 553 (3.2%) | 0 (0.0%) | 0 (0.0%) |
37
+ | do_not_modify | 17202 | 142 (0.8%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 16644 (96.8%) | 0 (0.0%) |
38
+ | dockerfile-platform | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
39
+ | dockerfile-references | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 17202 (100.0%) |
40
+ | dockerfile-sanity | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
41
+ | instruction-suffix | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 16786 (97.6%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
42
+ | no-cheat-dir | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
43
+ | no_behavioural_tests | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
44
+ | nop | 17202 | 16910 (98.3%) | 65 (0.4%) | 0 (0.0%) | 0 (0.0%) | 227 (1.3%) | 0 (0.0%) | 0 (0.0%) |
45
+ | nop_determinism | 17202 | 16590 (96.4%) | 8 (0.0%) | 0 (0.0%) | 0 (0.0%) | 604 (3.5%) | 0 (0.0%) | 0 (0.0%) |
46
+ | nproc | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
47
+ | pip-pinning | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
48
+ | python_missing_imports | 17202 | 16775 (97.5%) | 11 (0.1%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
49
+ | reference | 17202 | 14324 (83.3%) | 2651 (15.4%) | 0 (0.0%) | 0 (0.0%) | 227 (1.3%) | 0 (0.0%) | 0 (0.0%) |
50
+ | reference_determinism | 17202 | 14203 (82.6%) | 41 (0.2%) | 0 (0.0%) | 0 (0.0%) | 2958 (17.2%) | 0 (0.0%) | 0 (0.0%) |
51
+ | reference_leaks | 17202 | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 17202 (100.0%) | 0 (0.0%) | 17202 (100.0%) |
52
+ | repository_history | 17202 | 20 (0.1%) | 0 (0.0%) | 16629 (96.7%) | 0 (0.0%) | 553 (3.2%) | 0 (0.0%) | 17202 (100.0%) |
53
+ | repository_timestamps | 17202 | 16649 (96.8%) | 0 (0.0%) | 0 (0.0%) | 16649 (96.8%) | 553 (3.2%) | 0 (0.0%) | 553 (3.2%) |
54
+ | resource-sizes | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
55
+ | script_execution_coverage | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
56
+ | task-absolute-path | 17202 | 14406 (83.7%) | 0 (0.0%) | 2380 (13.8%) | 35 (0.2%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
57
+ | task-timeout | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
58
+ | task-toml-schema | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
59
+ | test-file-references | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
60
+ | verifier_paths | 17202 | 2462 (14.3%) | 14018 (81.5%) | 0 (0.0%) | 0 (0.0%) | 722 (4.2%) | 0 (0.0%) | 0 (0.0%) |
61
+ | verifier_tamper | 17202 | 14272 (83.0%) | 0 (0.0%) | 2328 (13.5%) | 0 (0.0%) | 602 (3.5%) | 0 (0.0%) | 17202 (100.0%) |
62
+
63
+ Counts and percentages use all tasks with a latest result in this dataset, including excluded tasks. The table includes required rules and other checks with recorded outcomes. Failed and Warning show final check outcomes. Unresolved combines infrastructure errors, incomplete checks and checks not run. Automatically repaired counts tasks with a recorded automatic pipeline repair, regardless of the final outcome; it overlaps the other columns and does not include manual repairs. Installing a timestamp repair script alone does not count as executing a repair. Missing repair evidence is shown as Repair not recorded. A task can be flagged by several rules. Warnings do not remove tasks. Unresolved tasks are excluded from v1 until their required checks finish.
64
+
65
+ ## Resources
66
+
67
+ | Resource | Per task | Tasks |
68
+ | --- | --- | --- |
69
+
70
+ ## Timing
71
+
72
+ | Measurement | Value |
73
+ | --- | --- |
74
+ | Overall wall time (seconds) | not recorded |
75
+ | Image preparation/build time (seconds) | not recorded |
76
+ | Cluster | Barnard (current 16786 tasks); historical Helma records (416 tasks) |
77
+ | Allocated CPUs | 64 |
78
+ | Allocated GPUs | 0 |
79
+ | Allocated memory (GiB) | 192 |
80
+ | Concurrency | 16 |
81
+
82
+ | Rule | Measured tasks | Total task seconds | Mean task seconds | Median task seconds |
83
+ | --- | --- | --- | --- | --- |
84
+ | agent_editable_test | not recorded | not recorded | not recorded | not recorded |
85
+ | artifact_efficiency | not recorded | not recorded | not recorded | not recorded |
86
+ | build | not recorded | not recorded | not recorded | not recorded |
87
+ | compose-host-binds | not recorded | not recorded | not recorded | not recorded |
88
+ | declared_internet_access | not recorded | not recorded | not recorded | not recorded |
89
+ | declared_workdir | not recorded | not recorded | not recorded | not recorded |
90
+ | do_not_modify | not recorded | not recorded | not recorded | not recorded |
91
+ | dockerfile-platform | not recorded | not recorded | not recorded | not recorded |
92
+ | dockerfile-references | not recorded | not recorded | not recorded | not recorded |
93
+ | dockerfile-sanity | not recorded | not recorded | not recorded | not recorded |
94
+ | instruction-suffix | not recorded | not recorded | not recorded | not recorded |
95
+ | no-cheat-dir | not recorded | not recorded | not recorded | not recorded |
96
+ | no_behavioural_tests | not recorded | not recorded | not recorded | not recorded |
97
+ | nop | not recorded | not recorded | not recorded | not recorded |
98
+ | nop_determinism | not recorded | not recorded | not recorded | not recorded |
99
+ | nproc | not recorded | not recorded | not recorded | not recorded |
100
+ | pip-pinning | not recorded | not recorded | not recorded | not recorded |
101
+ | python_missing_imports | not recorded | not recorded | not recorded | not recorded |
102
+ | reference | not recorded | not recorded | not recorded | not recorded |
103
+ | reference_determinism | not recorded | not recorded | not recorded | not recorded |
104
+ | reference_leaks | not recorded | not recorded | not recorded | not recorded |
105
+ | repository_history | not recorded | not recorded | not recorded | not recorded |
106
+ | repository_timestamps | not recorded | not recorded | not recorded | not recorded |
107
+ | resource-sizes | not recorded | not recorded | not recorded | not recorded |
108
+ | script_execution_coverage | not recorded | not recorded | not recorded | not recorded |
109
+ | task-absolute-path | not recorded | not recorded | not recorded | not recorded |
110
+ | task-timeout | not recorded | not recorded | not recorded | not recorded |
111
+ | task-toml-schema | not recorded | not recorded | not recorded | not recorded |
112
+ | test-file-references | not recorded | not recorded | not recorded | not recorded |
113
+ | verifier_paths | not recorded | not recorded | not recorded | not recorded |
114
+ | verifier_tamper | not recorded | not recorded | not recorded | not recorded |
115
+
116
+ ## Files
117
+
118
+ `results.parquet` has one row per task with its checks and evaluations. `v1/selection.parquet` lists the selected tasks and their content hashes; `tasks/` holds the payloads. Only new or changed tasks need a new payload file.
scaleswe_v1.1/archive.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dca303228a95fb8d510065834f9718b0879b1b1cf817e0e8141b618485ad911f
3
+ size 8893293
scaleswe_v1.1/archived_tasks.json ADDED
The diff for this file is too large to render. See raw diff
 
scaleswe_v1.1/cached_images/manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
scaleswe_v1.1/check_resources.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "build": {
3
+ "wall_seconds": {
4
+ "tasks": 16781,
5
+ "mean": 26.5,
6
+ "median": 24.7
7
+ },
8
+ "cpu_seconds": {
9
+ "tasks": 16649,
10
+ "mean": 19.0,
11
+ "median": 15.3
12
+ },
13
+ "memory_peak_mb": {
14
+ "tasks": 16649,
15
+ "mean": 560.5,
16
+ "median": 417.8
17
+ },
18
+ "disk_peak_mb": {
19
+ "tasks": 16649,
20
+ "mean": 36.3,
21
+ "median": 5.4
22
+ }
23
+ },
24
+ "reference": {
25
+ "wall_seconds": {
26
+ "tasks": 16649,
27
+ "mean": 38.8,
28
+ "median": 31.8
29
+ },
30
+ "cpu_seconds": {
31
+ "tasks": 16610,
32
+ "mean": 27.9,
33
+ "median": 20.6
34
+ },
35
+ "memory_peak_mb": {
36
+ "tasks": 16610,
37
+ "mean": 683.4,
38
+ "median": 513.4
39
+ },
40
+ "disk_peak_mb": {
41
+ "tasks": 16610,
42
+ "mean": 40.4,
43
+ "median": 10.8
44
+ }
45
+ },
46
+ "reference_determinism": {
47
+ "wall_seconds": {
48
+ "tasks": 16649,
49
+ "mean": 114.7,
50
+ "median": 92.1
51
+ },
52
+ "cpu_seconds": {
53
+ "tasks": 16628,
54
+ "mean": 83.6,
55
+ "median": 61.9
56
+ },
57
+ "memory_peak_mb": {
58
+ "tasks": 16628,
59
+ "mean": 685.5,
60
+ "median": 514.2
61
+ },
62
+ "disk_peak_mb": {
63
+ "tasks": 16628,
64
+ "mean": 41.7,
65
+ "median": 11.4
66
+ }
67
+ },
68
+ "nop": {
69
+ "wall_seconds": {
70
+ "tasks": 16649,
71
+ "mean": 106.4,
72
+ "median": 83.8
73
+ },
74
+ "cpu_seconds": {
75
+ "tasks": 16618,
76
+ "mean": 83.4,
77
+ "median": 61.3
78
+ },
79
+ "memory_peak_mb": {
80
+ "tasks": 16618,
81
+ "mean": 681.9,
82
+ "median": 513.2
83
+ },
84
+ "disk_peak_mb": {
85
+ "tasks": 16618,
86
+ "mean": 44.8,
87
+ "median": 13.4
88
+ }
89
+ },
90
+ "nop_determinism": {
91
+ "wall_seconds": {
92
+ "tasks": 16649,
93
+ "mean": 35.5,
94
+ "median": 28.2
95
+ },
96
+ "cpu_seconds": {
97
+ "tasks": 16599,
98
+ "mean": 27.3,
99
+ "median": 20.2
100
+ },
101
+ "memory_peak_mb": {
102
+ "tasks": 16599,
103
+ "mean": 676.6,
104
+ "median": 507.1
105
+ },
106
+ "disk_peak_mb": {
107
+ "tasks": 16599,
108
+ "mean": 41.4,
109
+ "median": 10.7
110
+ }
111
+ },
112
+ "overall": {
113
+ "wall_seconds": {
114
+ "tasks": 16781,
115
+ "mean": 319.5,
116
+ "median": 260.4
117
+ },
118
+ "cpu_seconds": {
119
+ "tasks": 16649,
120
+ "mean": 240.8,
121
+ "median": 179.3
122
+ },
123
+ "memory_peak_mb": {
124
+ "tasks": 16649,
125
+ "mean": 692.4,
126
+ "median": 522.2
127
+ },
128
+ "disk_peak_mb": {
129
+ "tasks": 16649,
130
+ "mean": 45.7,
131
+ "median": 14.0
132
+ }
133
+ }
134
+ }
scaleswe_v1.1/conversion_restore.sh ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ git checkout "$base" -- tests/ test/ Test/ Tests/ 2>/dev/null || true
3
+ git ls-tree -r --name-only "$base" 2>/dev/null | while IFS= read -r path; do
4
+ case "$path" in
5
+ test_*.py|*/test_*.py|*_test.py|*/*_test.py|conftest.py|*/conftest.py)
6
+ git checkout "$base" -- "$path" 2>/dev/null || true ;;
7
+ esac
8
+ done
9
+ git ls-files --cached --others --exclude-standard 2>/dev/null | while IFS= read -r path; do
10
+ case "$path" in
11
+ tests/*|test/*|Test/*|Tests/*|test_*.py|*/test_*.py|*_test.py|*/*_test.py|conftest.py|*/conftest.py)
12
+ if ! git cat-file -e "$base:$path" 2>/dev/null; then
13
+ rm -f -- "$path"; git rm -q --cached -- "$path" 2>/dev/null || true
14
+ fi ;;
15
+ esac
16
+ done
scaleswe_v1.1/conversion_score.py ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Run the merged F2P+P2P pytest ids and emit 1.0 iff every expected id passed.
2
+
3
+ Run inside the task's repo (cwd) by the testbed python (which has pytest + the project
4
+ installed) — NOT a uv script, since the tests need the project's own environment. argv[1]
5
+ is the path to a JSON file of pytest node ids (a file, not inline, so a large id list can't
6
+ overflow the sandbox exec command line). We write JUnit XML and match each expected id against
7
+ it (a pytest node id and the JUnit classname/name don't line up, so we try a few forms).
8
+
9
+ The score is emitted in a bounded `<score>…</score>` tag rather than as the last stdout line,
10
+ since pytest's `-vv` output and our print can interleave. Any failure emits 0.0.
11
+ """
12
+
13
+ import json
14
+ import re
15
+ import sys
16
+ import xml.etree.ElementTree as ET
17
+
18
+ import pytest
19
+
20
+ XML = "/tmp/scaleswe_results.xml"
21
+
22
+
23
+ def emit(score: float) -> None:
24
+ print(f"<score>{score}</score>")
25
+ sys.stdout.flush()
26
+
27
+
28
+ def normalize(value: str) -> str:
29
+ parts = value.strip().split("::")
30
+ if parts and parts[0].endswith(".py"):
31
+ parts[0] = parts[0][:-3]
32
+ return ".".join(parts).replace("/", ".").strip(".")
33
+
34
+
35
+ def all_passed(xml_content: str, expected: list[str]) -> bool:
36
+ try:
37
+ root = ET.fromstring(xml_content)
38
+ except ET.ParseError:
39
+ return False
40
+ exact = set(expected)
41
+ norm = {normalize(t): t for t in expected}
42
+ fp = {re.sub(r"\s+", "", normalize(t)): t for t in expected}
43
+ matched: dict[str, str] = {}
44
+ found: set[str] = set()
45
+ for tc in root.iter("testcase"):
46
+ if tc.find("skipped") is not None:
47
+ continue
48
+ name, classname = tc.get("name", ""), tc.get("classname", "")
49
+ file_attr = tc.get("file", "")
50
+ status = "failed" if tc.find("failure") is not None or tc.find("error") is not None else "passed"
51
+ for candidate in (
52
+ f"{file_attr}::{name}" if file_attr else "",
53
+ normalize(f"{classname}.{name}"),
54
+ re.sub(r"\s+", "", normalize(f"{classname}.{name}")),
55
+ f"{classname.replace('.', '/')}.py::{name}",
56
+ ):
57
+ original = candidate if candidate in exact else norm.get(candidate) or fp.get(candidate)
58
+ if original:
59
+ matched[original] = status
60
+ found.add(original)
61
+ break
62
+ return (
63
+ bool(found)
64
+ and all(status == "passed" for status in matched.values())
65
+ and not [t for t in expected if t not in found]
66
+ )
67
+
68
+
69
+ def main() -> None:
70
+ expected = json.load(open(sys.argv[1]))
71
+ if not expected:
72
+ emit(0.0)
73
+ return
74
+ pytest.main(["-vv", f"--junitxml={XML}", "-o", "addopts=", "--rootdir=.", *expected])
75
+ try:
76
+ xml_content = open(XML).read()
77
+ except OSError:
78
+ emit(0.0)
79
+ return
80
+ emit(1.0 if all_passed(xml_content, expected) else 0.0)
81
+
82
+
83
+ if __name__ == "__main__":
84
+ main()
scaleswe_v1.1/instruction_repairs.json ADDED
The diff for this file is too large to render. See raw diff
 
scaleswe_v1.1/patch.py ADDED
@@ -0,0 +1,810 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Apply reviewed instruction and verifier repairs to pinned Scale-SWE tasks."""
2
+ from __future__ import annotations
3
+
4
+ # Support both direct execution and python -m data.<source>.patch.
5
+ import sys
6
+ from pathlib import Path
7
+ sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
8
+
9
+
10
+ import argparse
11
+ import copy
12
+ import hashlib
13
+ import io
14
+ import inspect
15
+ import json
16
+ from pathlib import Path, PurePosixPath
17
+ import re
18
+ import tarfile
19
+
20
+ import pyarrow as pa
21
+ import pyarrow.parquet as pq
22
+
23
+ from data.utils.patch_reporting import write_patch_report
24
+ from validation.rules.static.task_absolute_path.repair import apply_reviewed_replacements, collect_reports
25
+ from validation.contract import files_digest
26
+
27
+ REVISION = '8935f8e55244fd56080cdb8dcd0819a57e8a003c'
28
+ HERE = Path(__file__).resolve().parent
29
+
30
+ # Re-export historical helpers for existing callers; implementation lives in repairs.
31
+ from data.scaleswe.repairs import (
32
+ APPIUM_IMPORT_TASKS,
33
+ ARCHIVED_TASKS,
34
+ DEFERRED_IMPORTS,
35
+ EXACT_ID_SCORING_TASKS,
36
+ ExactPytestResults,
37
+ FIXTURE_RESTORATION_REASON,
38
+ FIXTURE_RESTORATION_TASKS,
39
+ INSTRUCTION_CORRECTIONS,
40
+ JSONARGPARSE_DEBUG_FIXTURE,
41
+ JSONARGPARSE_DEBUG_TASKS,
42
+ NETWORK_TIMEOUT_GROUPS,
43
+ PYOUT_CLEANUP_FIXTURE,
44
+ PYOUT_CLEANUP_TASKS,
45
+ RECHECK_ARCHIVE,
46
+ RECHUNKER_CPU_TASKS,
47
+ RESET_TEST_DIRS,
48
+ SKIPPED_REQUIRED_TESTS,
49
+ SKIPPED_REQUIRED_TEST_REASON,
50
+ TEST_FIXTURE_REPAIRS,
51
+ TEST_MODULE_RE,
52
+ VERIFIER_IMPORT_TASKS,
53
+ _diff_chunks,
54
+ _in_verifier_reset_scope,
55
+ _repair_hunk_headers,
56
+ defer_test_imports,
57
+ exact_pytest_score_main,
58
+ repair_added_test_fixtures,
59
+ repair_argcomplete_debug_stream,
60
+ repair_argcomplete_test_fixture,
61
+ repair_collection_imports,
62
+ repair_exact_test_scoring,
63
+ repair_flask_worker_fixtures,
64
+ repair_pyout_test_cleanup,
65
+ repair_skipped_required_tests,
66
+ repair_timeout_verifiers,
67
+ repair_verifier_imports,
68
+ repair_werkzeug_request_cleanup,
69
+ repair_werkzeug_request_test,
70
+ run_dask_with_available_cpus,
71
+ run_joblib_with_available_cpus,
72
+ )
73
+ from data.scaleswe import repairs
74
+
75
+
76
+ def patch_blob(blob, diagnostic=None, decisions=(), oracle_passed=False, task_id=None,
77
+ automatic_paths=False, *, apply_repairs=True):
78
+ if not apply_repairs:
79
+ if decisions or automatic_paths:
80
+ raise ValueError("Path repairs cannot be combined with --no-repairs")
81
+ return blob, []
82
+ return repairs.patch_blob(blob, diagnostic, decisions, oracle_passed, task_id, automatic_paths)
83
+
84
+
85
+ def offline_config(config):
86
+ """Set explicit offline policy, independent of upstream defaults."""
87
+ import tomllib
88
+ text = config.decode()
89
+ parsed = tomllib.loads(text)
90
+ environment = parsed.get('environment', {})
91
+ if environment.get('allow_internet') is False:
92
+ return config
93
+ header = re.search(r'^\[environment\][ \t]*(?:#.*)?$', text, re.M)
94
+ if header is None:
95
+ if environment:
96
+ raise ValueError('Nonstandard environment table requires network-policy review')
97
+ text = text.rstrip() + '\n\n[environment]\nallow_internet = false\n'
98
+ else:
99
+ end = re.search(r'^\[', text[header.end():], re.M)
100
+ stop = header.end() + end.start() if end else len(text)
101
+ section = text[header.end():stop]
102
+ policy = re.compile(r'^(\s*allow_internet\s*=\s*)(true|false)([ \t]*(?:#.*)?)$', re.M)
103
+ if 'allow_internet' in environment:
104
+ section, count = policy.subn(r'\g<1>false\g<3>', section)
105
+ if count != 1:
106
+ raise ValueError('Unrecognized allow_internet assignment')
107
+ else:
108
+ section = '\nallow_internet = false' + section
109
+ text = text[:header.end()] + section + text[stop:]
110
+ if tomllib.loads(text)['environment']['allow_internet'] is not False:
111
+ raise ValueError('Offline policy was not applied')
112
+ return text.encode()
113
+
114
+
115
+ def offline_blob(blob):
116
+ """Change only task.toml, preserving archive member ordering and modes."""
117
+ with tarfile.open(fileobj=io.BytesIO(blob)) as source:
118
+ original = source.extractfile('task.toml').read()
119
+ updated = offline_config(original)
120
+ if original == updated:
121
+ return blob, []
122
+ output = io.BytesIO()
123
+ with tarfile.open(fileobj=output, mode='w') as target:
124
+ for member in source.getmembers():
125
+ member = copy.copy(member)
126
+ data = (updated if member.name == 'task.toml' else source.extractfile(member).read()) if member.isfile() else None
127
+ if data is not None:
128
+ member.size = len(data)
129
+ target.addfile(member, io.BytesIO(data) if data is not None else None)
130
+ return output.getvalue(), [{'file': 'task.toml', 'phase': 'offline-first',
131
+ 'reason': 'User policy: run every task offline first; online exceptions require a separate evidenced post-audit trial.'}]
132
+
133
+
134
+ QUALITY_LABELS = {'instruction-path-clarified', 'anti-cheat-instruction'}
135
+
136
+
137
+ def environment_repair_stage(task):
138
+ labels = set(task['labels']) - QUALITY_LABELS
139
+ if not labels:
140
+ return None
141
+ if labels == {'verifier-call-time-imports'} or task['task_id'] == 'rom1504_embedding-reader_pr9':
142
+ return 5
143
+ if labels == {'verifier-import-path'} and 'no-op' in task.get('reason', ''):
144
+ return 5
145
+ reference = {'verifier-import-path', 'verifier-test-fixture-restoration',
146
+ 'verifier-exact-test-ids', 'verifier-debug-stream-isolation',
147
+ 'verifier-request-cleanup', 'verifier-cpu-affinity',
148
+ 'verifier-worker-cleanup', 'verifier-required-test-skipped'}
149
+ if labels <= reference:
150
+ return 4
151
+ raise ValueError('Unclassified repair: ' + task['task_id'])
152
+
153
+
154
+ def archive_files(blob):
155
+ """Read regular task files without extracting to disk."""
156
+ files = {}
157
+ with tarfile.open(fileobj=io.BytesIO(blob)) as archive:
158
+ for member in archive:
159
+ name = str(PurePosixPath(member.name))
160
+ if PurePosixPath(name).is_absolute() or '..' in PurePosixPath(name).parts:
161
+ raise ValueError('Unsafe task archive member')
162
+ if member.isdir():
163
+ continue
164
+ if not member.isfile() or name in files:
165
+ raise ValueError('Unsupported or duplicate task archive member')
166
+ files[name] = (archive.extractfile(member).read(), member.mode)
167
+ return files
168
+
169
+
170
+ def restore_source_instruction(blob, instruction):
171
+ """Restore only the upstream instruction, preserving all runtime files and modes."""
172
+ from data.utils.harbor_parquet import pack_task
173
+ files = archive_files(blob)
174
+ files['instruction.md'] = (instruction, files['instruction.md'][1])
175
+ return pack_task(files)
176
+
177
+
178
+ def environment_archive_stage(row):
179
+ """Cause-based attribution; the historical archive itself retains stage 0."""
180
+ labels = {label.removeprefix('patch-drop:') for label in row['archive_labels']}
181
+ noop = {'verifier-no-op-passes', 'task-changes-only-test-files',
182
+ 'verifier-timeout-without-fix', 'verifier-timing-dependent'}
183
+ reference = {'reference-solution-reward-zero', 'verifier-collection-error',
184
+ 'verifier-network-dependency', 'verifier-external-dependency',
185
+ 'verifier-stale-cassette', 'verifier-execution-checker-pythonpath',
186
+ 'verifier-privileged-port', 'image-dependency-mismatch',
187
+ 'image-missing-test-dependency', 'verifier-execution-error'}
188
+ if labels and labels <= noop:
189
+ return 5
190
+ if labels and labels <= reference:
191
+ return 4
192
+ raise ValueError('Unclassified archive reason: ' + row['path'])
193
+
194
+
195
+ def prepare_environment(upstream, tasks, archive, run_record, output, publication_revision):
196
+ """Prepare the instruction-original variant from pinned source and historical tasks."""
197
+ from collections import Counter
198
+ from data.utils.prime_conversion.convert_prime import scale_files
199
+ from data.utils.harbor_parquet import pack_task
200
+
201
+ if not re.fullmatch('[0-9a-f]{40}', publication_revision):
202
+ raise ValueError('Use an immutable publication revision')
203
+ if output.exists():
204
+ raise ValueError('Use a new output directory')
205
+ record = json.loads(run_record.read_text())
206
+ provenance = record['patch_provenance']['scaleswe']
207
+ if provenance['source']['revision'] != REVISION:
208
+ raise ValueError('Unexpected upstream revision')
209
+ manifest = {x['task_id']: x for x in provenance['tasks']}
210
+ automation = record['automation_changes']['scaleswe']['tasks']
211
+ if any(set(x['labels']) != {'anti-cheat-instruction'} for x in automation):
212
+ raise ValueError('Unreviewed automatic runtime changes')
213
+ automated_ids = {x['task_id'] for x in automation}
214
+ published = pq.ParquetFile(tasks)
215
+ # Recover the frozen common converter support from a task with no patcher edits.
216
+ support = None
217
+ for batch in published.iter_batches(batch_size=32):
218
+ for row in batch.to_pylist():
219
+ if manifest[row['path']]['action'] == 'unchanged':
220
+ files = archive_files(row['task_binary'])
221
+ test = files['tests/test.sh'][0].decode()
222
+ start = test.index('\n', test.index('\nbase=') + 1) + 1
223
+ end = test.index('if [ -s /tests/f2p.patch ]; then', start)
224
+ support = {'score': files['tests/score.py'][0], 'restore': test[start:end]}
225
+ break
226
+ if support:
227
+ break
228
+ if support is None:
229
+ raise ValueError('No unchanged converter baseline')
230
+ source = {}
231
+ for shard in sorted(upstream.glob('*.parquet')):
232
+ for batch in pq.ParquetFile(shard).iter_batches(batch_size=32):
233
+ for raw in batch.to_pylist():
234
+ task = raw['instance_id']
235
+ if task in source or task not in manifest:
236
+ raise ValueError('Duplicate or unexpected source task: ' + task)
237
+ original = pack_task(scale_files(raw, support))
238
+ if hashlib.sha256(original).hexdigest() != manifest[task]['source_binary_sha256']:
239
+ raise ValueError('Pinned source does not reproduce conversion: ' + task)
240
+ files = archive_files(original)
241
+ source[task] = {'instruction': files['instruction.md'][0],
242
+ 'image': raw['image_url'],
243
+ 'files': {k: (hashlib.sha256(v).hexdigest(), mode)
244
+ for k, (v, mode) in files.items()}}
245
+ if set(source) != set(manifest):
246
+ raise ValueError('Incomplete source task accounting')
247
+ print(f'Verified all {len(source)} original converted payload hashes', flush=True)
248
+ archived = pq.read_table(archive)
249
+ archive_rows = archived.to_pylist()
250
+ excluded_ids = set()
251
+ exclusions = []
252
+ for row in archive_rows:
253
+ task = row['path']
254
+ if task in excluded_ids or manifest[task]['action'] != 'dropped':
255
+ raise ValueError('Invalid archive task: ' + task)
256
+ excluded_ids.add(task)
257
+ if hashlib.sha256(row['task_binary']).hexdigest() != manifest[task]['source_binary_sha256']:
258
+ raise ValueError('Archive no longer preserves original payload: ' + task)
259
+ exclusions.append({'task_id': task, 'attributed_stage': environment_archive_stage(row),
260
+ 'historical_archive_stage': row['archive_stage'],
261
+ 'labels': row['archive_labels'], 'reason': row['archive_reason']})
262
+ kept_ids = set(source) - excluded_ids
263
+ changed_ids = {task for task in kept_ids if set(manifest[task]['labels']) - QUALITY_LABELS}
264
+ run_url = ('https://huggingface.co/datasets/FWeindel/validated-tasks/blob/'
265
+ + publication_revision + '/runs/' + record['run'] + '.json')
266
+ summary = {
267
+ 'source': provenance['source'], 'source_tasks': len(source), 'kept': len(kept_ids),
268
+ 'changed_kept': len(changed_ids), 'unchanged_kept': len(kept_ids - changed_ids),
269
+ 'archived': len(excluded_ids),
270
+ 'changed_by_attributed_stage': dict(Counter(environment_repair_stage(manifest[x]) for x in changed_ids)),
271
+ 'archived_by_attributed_stage': dict(Counter(x['attributed_stage'] for x in exclusions)),
272
+ 'original_images': len({x['image'] for x in source.values()}),
273
+ 'retained_images': len({source[x]['image'] for x in kept_ids}),
274
+ 'image_consolidation': False, 'image_registry': 'https://hub.docker.com/r/aweaiteam/scaleswe/tags',
275
+ 'quality_path_edits_excluded': provenance['instructions_changed'],
276
+ 'quality_suffix_edits_excluded': len(automated_ids),
277
+ 'historical_run': run_url, 'publication_revision': publication_revision,
278
+ 'fresh_validation': False,
279
+ 'evidence_transfer': 'Historical stages 3/4/5 only. Original instructions restored; every other file and its mode preserved from the audited publication. No new runtime or teacher run.',
280
+ }
281
+ schema = published.schema_arrow.with_metadata({b'ot.environment_reliable.v1': json.dumps(summary).encode()})
282
+ output.mkdir(parents=True)
283
+ retained_audit, seen = [], set()
284
+ with pq.ParquetWriter(output/'tasks.parquet', schema, compression='zstd') as writer:
285
+ for batch in published.iter_batches(batch_size=32):
286
+ rows = batch.to_pylist()
287
+ for row in rows:
288
+ task = row['path']
289
+ if task in seen or task not in kept_ids or task not in automated_ids:
290
+ raise ValueError('Invalid retained task: ' + task)
291
+ seen.add(task)
292
+ if row['stages_passed'] != '1,3,4,5':
293
+ raise ValueError('Incomplete historical evidence: ' + task)
294
+ before = archive_files(row['task_binary'])
295
+ if files_digest((k, v) for k, (v, _) in before.items()) != row['content_sha256']:
296
+ raise ValueError('Published content hash mismatch: ' + task)
297
+ pre_static, count = re.subn(
298
+ rb'\n\nYou have [0-9]+ seconds to complete this task\. Do not cheat by using online solutions or hints specific to this task\.\n$',
299
+ b'\n', before['instruction.md'][0])
300
+ if count != 1 or hashlib.sha256(restore_source_instruction(row['task_binary'], pre_static)).hexdigest() != manifest[task]['output_binary_sha256']:
301
+ raise ValueError('Historical payload differs from recorded patcher output: ' + task)
302
+ payload = restore_source_instruction(row['task_binary'], source[task]['instruction'])
303
+ after = archive_files(payload)
304
+ if {k: v for k, v in before.items() if k != 'instruction.md'} != {
305
+ k: v for k, v in after.items() if k != 'instruction.md'}:
306
+ raise ValueError('Runtime content changed: ' + task)
307
+ actual = {k: (hashlib.sha256(v).hexdigest(), mode) for k, (v, mode) in after.items()}
308
+ changed_files = sorted(k for k in actual.keys() | source[task]['files'].keys()
309
+ if actual.get(k) != source[task]['files'].get(k))
310
+ expected = sorted(k for k in manifest[task]['changed_files'] if k != 'instruction.md')
311
+ if changed_files != expected or bool(changed_files) != (task in changed_ids):
312
+ raise ValueError('Unaccounted runtime repair: ' + task)
313
+ if not changed_files and hashlib.sha256(payload).hexdigest() != manifest[task]['source_binary_sha256']:
314
+ raise ValueError('Unchanged task differs from original archive: ' + task)
315
+ row.update(task_binary=payload, content_sha256=files_digest((k, v) for k, (v, _) in after.items()),
316
+ stages_passed='3,4,5', run=run_url, patch_changed=bool(changed_files),
317
+ patch_labels=sorted(set(manifest[task]['labels']) - QUALITY_LABELS))
318
+ retained_audit.append({'task_id': task, 'changed_files': changed_files,
319
+ 'labels': row['patch_labels'], 'reason': manifest[task].get('reason', ''),
320
+ 'attributed_stage': environment_repair_stage(manifest[task]),
321
+ 'source_binary_sha256': manifest[task]['source_binary_sha256'],
322
+ 'output_binary_sha256': hashlib.sha256(payload).hexdigest(),
323
+ 'content_sha256': row['content_sha256'], 'image': source[task]['image']})
324
+ writer.write_table(pa.Table.from_pylist(rows, schema=schema))
325
+ if seen != kept_ids:
326
+ raise ValueError('Missing retained tasks')
327
+ for row in archive_rows:
328
+ row['run'] = run_url
329
+ pq.write_table(pa.Table.from_pylist(archive_rows, schema=archived.schema).replace_schema_metadata(schema.metadata),
330
+ output/'archive.parquet', compression='zstd')
331
+ (output/'summary.json').write_text(json.dumps(summary, indent=2)+'\n')
332
+ (output/'audit.json').write_text(json.dumps({'summary': summary, 'retained': retained_audit,
333
+ 'exclusions': exclusions}, indent=2)+'\n')
334
+ (output/'images.json').write_text(json.dumps({task: source[task]['image'] for task in sorted(kept_ids)}, indent=2)+'\n')
335
+ return summary
336
+
337
+
338
+ # Created by tests/setup.sh after the agent finished, from the clean runtime.
339
+ # The recorder hook in the runtime site-packages applies through the venv.
340
+ VERIFIER_VENV = '/tests/.ot-verifier-venv'
341
+ VERIFIER_VENV_SETUP = (
342
+ 'rm -rf ' + VERIFIER_VENV + '\n'
343
+ '"$OT_VERIFIER_PYTHON" -I -m venv --without-pip --system-site-packages ' + VERIFIER_VENV + '\n'
344
+ 'ot_site=$(' + VERIFIER_VENV + '/bin/python -I -c \'import sysconfig; print(sysconfig.get_path("purelib"))\')\n'
345
+ 'cp /tests/ot_project_paths.py "$ot_site/ot_project_paths.py"\n'
346
+ # Register from .pth, but expose task paths only after all normal startup
347
+ # hooks finish. A PYTHONPATH instrumentation sitecustomize must not suppress
348
+ # our hook, and task paths must not influence startup-hook selection.
349
+ 'cat > "$ot_site/ot_runtime_bootstrap.py" <<\'OT_RUNTIME_BOOTSTRAP\'\n'
350
+ 'import site\n'
351
+ '_site_hook = site.execsitecustomize\n'
352
+ '_user_hook = site.execusercustomize\n'
353
+ 'def _finish():\n'
354
+ ' import ot_project_paths\n'
355
+ 'def _after_site():\n'
356
+ ' _site_hook()\n'
357
+ ' if not site.ENABLE_USER_SITE:\n'
358
+ ' _finish()\n'
359
+ 'def _after_user():\n'
360
+ ' _user_hook()\n'
361
+ ' _finish()\n'
362
+ 'site.execsitecustomize = _after_site\n'
363
+ 'site.execusercustomize = _after_user\n'
364
+ 'OT_RUNTIME_BOOTSTRAP\n'
365
+ 'printf \'import ot_runtime_bootstrap\\n\' > "$ot_site/ot_runtime_bootstrap.pth"\n')
366
+
367
+
368
+ def project_paths_module(paths):
369
+ """Expose task paths only after stdlib and the clean grading tools.
370
+
371
+ Last on sys.meta_path: consulted only for a top-level module no trusted path
372
+ provides, then appends the paths once (the earlier wrapper's order).
373
+ """
374
+ return ('"""Expose declared ScaleSWE task paths after trusted paths."""\n'
375
+ 'import sys\n'
376
+ '\n'
377
+ 'PATHS = ' + repr(paths) + '\n'
378
+ '\n'
379
+ '\n'
380
+ 'class ProjectPaths(object):\n'
381
+ ' @staticmethod\n'
382
+ ' def find_spec(name, path=None, target=None):\n'
383
+ ' if path is not None:\n'
384
+ ' return None\n'
385
+ ' if ProjectPaths in sys.meta_path:\n'
386
+ ' sys.meta_path.remove(ProjectPaths)\n'
387
+ ' for entry in PATHS:\n'
388
+ ' if entry not in sys.path:\n'
389
+ ' sys.path.append(entry)\n'
390
+ ' from importlib.machinery import PathFinder\n'
391
+ ' return PathFinder.find_spec(name, PATHS)\n'
392
+ '\n'
393
+ ' @staticmethod\n'
394
+ ' def invalidate_caches():\n'
395
+ ' pass\n'
396
+ '\n'
397
+ '\n'
398
+ 'sys.meta_path.append(ProjectPaths)\n')
399
+
400
+
401
+ def prepared_verifier_files(files, spec, catalog, *, observation, image_source=None):
402
+ """Protect observed grading tools while preserving editable task code."""
403
+ if json.loads(observation.get('stdout', '{}')).get('format') == 'scaleswe-image-observation-v1':
404
+ from data.scaleswe.runtime import prepared_files
405
+ return prepared_files(files, spec, catalog, observation=observation, image_source=image_source)
406
+ if image_source is not None:
407
+ raise ValueError('Image download binding requires the current Scale SWE observation format')
408
+ from data.utils.verifier_runtime import runtime_spec, runtime_reference, preparation_command
409
+ if (observation.get('returncode') != 0 or not observation.get('source_unchanged')
410
+ or observation.get('source_content_sha256') != files_digest(files.items())):
411
+ raise ValueError('Missing matching pristine ScaleSWE observation')
412
+ measured = json.loads(observation['stdout'])
413
+ if (measured.get('python') != '3.11.14' or measured.get('executable') != '/usr/local/bin/python'
414
+ or measured.get('pip_returncode') != 0):
415
+ raise ValueError('Unreviewed original ScaleSWE interpreter')
416
+ tools = {'pytest', 'pytest-cov', 'coverage', 'pytest-randomly', 'pytest-timeout',
417
+ 'iniconfig', 'packaging', 'pluggy', 'pygments'}
418
+ pins = sorted(p['name'].lower() + '==' + p['version'] for p in measured['packages']
419
+ if p['name'].lower() in tools)
420
+ project = [p for p in measured['packages'] if p['name'] == 'apig-wsgi']
421
+ if len(project) != 1 or project[0].get('editable_project_location') != '/workspace/apig-wsgi':
422
+ raise ValueError('Unreviewed editable project location')
423
+ canonical = runtime_spec(**{k:v for k,v in spec.items() if k != 'runtime_layout'})
424
+ if (canonical != spec or spec['python'] != measured['python'] or spec['requirements'] != pins
425
+ or len(pins) != len(tools) or spec.get('install_no_deps') is not True
426
+ or spec.get('image_python') != {'image_sha256':observation['image_sha256'],
427
+ 'executable':measured['executable']}):
428
+ raise ValueError('Runtime differs from observed grading tools/image')
429
+ if hashlib.sha256(files['tests/score.py']).hexdigest() != '7de17a9ba612b569894ff0c95b5331de8c0011cc7e5f1d7705bfad47f9076819':
430
+ raise ValueError('Unreviewed ScaleSWE scorer')
431
+ original = files['tests/test.sh']
432
+ command = b'python /tests/score.py /tests/test_ids.json'
433
+ if (original.count(command) != 1 or b'cd /workspace/apig-wsgi || exit 1\n' not in original
434
+ or any(k in files for k in ('tests/setup.sh','tests/ot-verifier-runtime.json','tests/ot_score.py','tests/ot_project_paths.py'))):
435
+ raise ValueError('Unreviewed ScaleSWE verifier entrypoint')
436
+ result = dict(files)
437
+ result.update(runtime_reference(spec, catalog))
438
+ result['tests/setup.sh'] = ('#!/bin/bash\nset -euo pipefail\n' + preparation_command(spec, phase='verifier') +
439
+ '\n: "${OT_VERIFIER_PYTHON:?trusted controller runtime required}"\n' + VERIFIER_VENV_SETUP).encode()
440
+ # The reviewed scorer keeps its own name and bytes: the stage-3 recorder
441
+ # recognizes /tests/score.py by hash as an in-process pytest driver.
442
+ result['tests/test.sh'] = original.replace(command, VERIFIER_VENV.encode() + b'/bin/python -I /tests/score.py /tests/test_ids.json')
443
+ result['tests/ot_project_paths.py'] = project_paths_module(
444
+ ['/workspace/apig-wsgi/src', '/workspace/apig-wsgi', '/usr/local/lib/python3.11/site-packages']).encode()
445
+ return result
446
+
447
+
448
+ def prepare_runtime_candidates(source, output, selections, catalog, source_revision):
449
+ """Export only measured verifier changes, retaining release membership/history.
450
+
451
+ Each selection binds a pristine image observation and pristine local image
452
+ bundle to a runtime. This is candidate preparation, not validation evidence.
453
+ """
454
+ import pyarrow as pa
455
+ import pyarrow.parquet as pq
456
+ from data.utils.patch_reporting import write_patch_report
457
+ from validation.publishing.image_release import validate_bundle
458
+
459
+ source, output = Path(source), Path(output)
460
+ original = pq.ParquetFile(source)
461
+ metadata = dict(original.schema_arrow.metadata or {})
462
+ images = json.loads(metadata.get(b'ot.images.v1', b'{}'))
463
+ known = set(pq.read_table(source, columns=['path'])['path'].to_pylist())
464
+ if not selections or not set(selections).issubset(known):
465
+ raise ValueError('Select existing, measured ScaleSWE tasks')
466
+ prepared, evidence, reasons = {}, {}, {}
467
+ # Historical row patch_labels must not describe new changes on untouched tasks.
468
+ labels = {task: [] for task in known}
469
+ verified = set()
470
+ for batch in original.iter_batches(batch_size=1):
471
+ row = batch.to_pylist()[0]; task = row['path']
472
+ if task not in selections:
473
+ continue
474
+ selection = selections[task]
475
+ binding = images.get('tasks', {}).get(task, {})
476
+ environments = binding.get('environments', [])
477
+ if environments:
478
+ if len(environments) != 1 or binding.get('content_sha256') != row['content_sha256']:
479
+ raise ValueError(task + ': source image binding differs')
480
+ bundle = images['bundles'][environments[0]['bundle']]
481
+ else:
482
+ # Most Scale SWE images are upstream Docker images rather than HF
483
+ # exports. A newly prepared image must have pristine context evidence.
484
+ bundle = selection['image_manifest']
485
+ if bundle.get('provenance', {}).get('pristine') is not True:
486
+ raise ValueError(task + ': image lacks pristine build provenance')
487
+ directory = Path(selection['image_directory']) if selection.get('image_directory') else None
488
+ if directory is None:
489
+ verified_image = selection.get('image_verification', {})
490
+ if (verified_image.get('before') != bundle['files']
491
+ or verified_image.get('after') != bundle['files']):
492
+ raise ValueError(task + ': missing pristine image verification receipt')
493
+ key = (str(directory), json.dumps(bundle, sort_keys=True))
494
+ if key not in verified:
495
+ validate_bundle(bundle['name'], bundle, directory)
496
+ verified.add(key)
497
+ files, modes = {}, {}
498
+ with tarfile.open(fileobj=io.BytesIO(row['task_binary'])) as archive:
499
+ for member in archive:
500
+ path = PurePosixPath(member.name)
501
+ if path.is_absolute() or '..' in path.parts or not (member.isfile() or member.isdir()):
502
+ raise ValueError('Unsafe task archive member')
503
+ if member.isfile():
504
+ if member.name in files:
505
+ raise ValueError('Duplicate task archive member')
506
+ files[member.name] = archive.extractfile(member).read()
507
+ modes[member.name] = member.mode
508
+ if files_digest(files.items()) != row['content_sha256']:
509
+ raise ValueError(task + ': source payload digest differs')
510
+ if not environments:
511
+ import tempfile
512
+ from harbor_patches.image_context import environment_dir_hash
513
+ from validation.publishing.image_release import stage_build_contexts
514
+ with tempfile.TemporaryDirectory(prefix='scaleswe-context-') as temporary:
515
+ contexts = stage_build_contexts(row['task_binary'], Path(temporary), row['content_sha256'])
516
+ if (len(contexts) != 1 or environment_dir_hash(contexts[0].parent)
517
+ != bundle['provenance'].get('environment_sha256')):
518
+ raise ValueError(task + ': pristine image context differs from task')
519
+ runtime = catalog[selection['runtime_id']]
520
+ image_sha = bundle['files'][bundle['name']]['sha256']
521
+ if (('image_python' in runtime['spec'] and runtime['spec']['image_python']['image_sha256'] != image_sha)
522
+ or selection['observation'].get('image_sha256') != image_sha):
523
+ raise ValueError(task + ': observed runtime image differs from task binding')
524
+ if 'image_python' not in runtime['spec']:
525
+ compatibility = selection.get('runtime_compatibility', {})
526
+ if (compatibility.get('image_sha256') != image_sha
527
+ or compatibility.get('archive_sha256') != runtime['archive_sha256']
528
+ or compatibility.get('returncode') != 0):
529
+ raise ValueError(task + ': standalone runtime lacks target image compatibility evidence')
530
+ updated = prepared_verifier_files(files, runtime['spec'], catalog,
531
+ observation=selection['observation'], image_source=selection.get('runtime_image_source'))
532
+ updated['task.toml'] = offline_config(updated['task.toml'])
533
+ packed = io.BytesIO()
534
+ with tarfile.open(fileobj=packed, mode='w') as archive:
535
+ for name, body in sorted(updated.items()):
536
+ member = tarfile.TarInfo(name)
537
+ member.mode = modes.get(name, 0o755 if name.endswith('.sh') else 0o644)
538
+ member.size = len(body)
539
+ archive.addfile(member, io.BytesIO(body))
540
+ new_hash = files_digest(updated.items())
541
+ prepared[task] = (packed.getvalue(), new_hash)
542
+ if task in images.get('tasks', {}):
543
+ images['tasks'][task]['content_sha256'] = new_hash
544
+ evidence[task] = {'historical_row': {k:v for k,v in row.items() if k != 'task_binary'},
545
+ 'source_content_sha256': row['content_sha256'], 'content_sha256': new_hash,
546
+ 'runtime_id': runtime['id'], 'python': runtime['spec']['python'],
547
+ 'runtime_source_image': bundle,
548
+ 'runtime_image_source': selection.get('runtime_image_source'),
549
+ 'regeneration_source': ('standalone' if 'image_python' not in runtime['spec'] else
550
+ 'pinned-HF-image' if selection.get('runtime_image_source') else
551
+ 'local-pristine-image; publication binding pending'),
552
+ 'changed_files': sorted(k for k,v in updated.items() if files.get(k) != v),
553
+ 'historical_score_status': 'historical, evaluated on the original payload',
554
+ 'effective_network': 'unverified', 'validation': 'incomplete'}
555
+ labels[task] = ['prepared-verifier-runtime']
556
+ reasons[task] = ('Use fresh grading tools with the exact observed Python and original tool versions. '
557
+ 'Set explicit offline policy; preserve task libraries, declared environment healthcheck, required tests and reference. Earlier scores describe '
558
+ 'the original payload; new training validation and offline setup remain incomplete.')
559
+ if len(prepared) == len(selections):
560
+ break
561
+ if set(prepared) != set(selections):
562
+ raise ValueError('Missing selected task payload')
563
+ report = {'source_revision': source_revision, 'tasks': evidence,
564
+ 'unchanged_tasks': original.metadata.num_rows - len(prepared),
565
+ 'effective_network': 'unverified', 'validation': 'incomplete',
566
+ 'ai_detection': 'intentionally excluded by user policy'}
567
+ metadata[b'ot.images.v1'] = json.dumps(images).encode()
568
+ metadata[b'ot.runtime_migration.v1'] = json.dumps({
569
+ 'source_revision': source_revision, 'changed_tasks': sorted(prepared),
570
+ 'historical_evidence': 'runtime-migration.json',
571
+ 'effective_network': 'unverified', 'validation': 'incomplete'}).encode()
572
+ schema = original.schema_arrow.with_metadata(metadata)
573
+ output.mkdir(parents=True, exist_ok=False)
574
+ target = output / 'tasks.parquet'
575
+ with pq.ParquetWriter(target, schema, compression='zstd') as writer:
576
+ for batch in original.iter_batches(batch_size=1):
577
+ row = batch.to_pylist()[0]
578
+ if row['path'] in prepared:
579
+ row['task_binary'], row['content_sha256'] = prepared[row['path']]
580
+ row['stages_passed'] = ''; row['run'] = ''
581
+ if 'validation_labels' in row:
582
+ row['validation_labels'] = []
583
+ writer.write_table(pa.Table.from_pylist([row], schema=schema))
584
+ (output / 'runtime-migration.json').write_text(json.dumps(report, indent=2) + '\n')
585
+ write_patch_report(source, target, source={'dataset': 'FWeindel/validated-tasks',
586
+ 'url': 'https://huggingface.co/datasets/FWeindel/validated-tasks', 'revision': source_revision},
587
+ dropped={}, change_labels=labels, change_reasons=reasons, patcher=__file__)
588
+ return {'rows': original.metadata.num_rows, 'changed': len(prepared),
589
+ 'validation': 'incomplete', 'effective_network': 'unverified'}
590
+
591
+
592
+ def convert_upstream(shards, destination):
593
+ """Rebuild the original conversion from checksum-pinned upstream rows."""
594
+ from data.utils.harbor_parquet import write_tasks
595
+ from data.utils.prime_conversion.convert_prime import scale_files
596
+ source = json.loads((HERE / 'upstream_source.json').read_text())
597
+ if source['revision'] != REVISION:
598
+ raise ValueError('Unexpected Scale SWE upstream revision')
599
+ for name, digest in source['adapter_files'].items():
600
+ if hashlib.sha256((HERE / name).read_bytes()).hexdigest() != digest:
601
+ raise ValueError('Frozen conversion support changed: ' + name)
602
+ inputs = []
603
+ for entry in source['files']:
604
+ path = Path(shards) / Path(entry['path']).name
605
+ with path.open('rb') as stream:
606
+ digest = hashlib.file_digest(stream, 'sha256').hexdigest()
607
+ if path.stat().st_size != entry['bytes'] or digest != entry['sha256']:
608
+ raise ValueError('Pinned upstream shard differs: ' + str(path))
609
+ inputs.append(path)
610
+ support = {'score': (HERE / 'conversion_score.py').read_bytes(),
611
+ 'restore': (HERE / 'conversion_restore.sh').read_text()}
612
+ def records():
613
+ for path in inputs:
614
+ for batch in pq.ParquetFile(path).iter_batches(batch_size=16):
615
+ for row in batch.to_pylist():
616
+ yield row['instance_id'], scale_files(row, support)
617
+ return write_tasks(records(), destination, expected_count=17202)
618
+
619
+
620
+ def main(argv=None):
621
+ parser = argparse.ArgumentParser(description=__doc__)
622
+ parser.add_argument('--source', type=Path)
623
+ parser.add_argument('--no-repairs', action='store_true',
624
+ help='skip execution-derived repairs and archive exclusions')
625
+ parser.add_argument('--validated-tasks', type=Path)
626
+ parser.add_argument('--validated-archive', type=Path)
627
+ parser.add_argument('--upstream-shards', type=Path)
628
+ parser.add_argument('--run-record', type=Path)
629
+ parser.add_argument('--publication-revision')
630
+ parser.add_argument('--output', type=Path, required=True, help='new output directory')
631
+ parser.add_argument('--resolution-report', type=Path, action='append', default=[])
632
+ parser.add_argument('--automatic-paths', action='store_true', help='use shared automatic normalization, without a review file')
633
+ parser.add_argument('--review', type=Path, help='review JSON: tasks maps IDs to decisions and unresolved reasons')
634
+ parser.add_argument('--restore-historical-instructions', type=Path, help='Current release tasks; restore recorded historical instructions and preserve runtime/image bindings')
635
+ args = parser.parse_args(argv)
636
+ if args.upstream_shards and not args.validated_tasks:
637
+ if any((args.source, args.review, args.automatic_paths, args.resolution_report,
638
+ args.restore_historical_instructions, args.validated_archive, args.run_record,
639
+ args.publication_revision)):
640
+ parser.error('Raw upstream conversion cannot be combined with historical restoration or path review')
641
+ import tempfile
642
+ # Private scratch exists only during this synchronous conversion; it is
643
+ # never a job or continuation dependency. Final outputs stay at --output.
644
+ with tempfile.TemporaryDirectory(prefix='scaleswe-conversion-') as temporary:
645
+ converted = Path(temporary) / 'source.parquet'
646
+ convert_upstream(args.upstream_shards, converted)
647
+ return main(['--source', str(converted), '--output', str(args.output)] +
648
+ (['--no-repairs'] if args.no_repairs else []))
649
+ if args.no_repairs and any((args.review, args.automatic_paths, args.resolution_report,
650
+ args.validated_tasks, args.restore_historical_instructions)):
651
+ parser.error('--no-repairs requires the source conversion without historical/path restoration')
652
+ if args.restore_historical_instructions:
653
+ if not all((args.validated_tasks, args.validated_archive, args.run_record, args.publication_revision)):
654
+ parser.error('Historical restoration requires validated tasks, archive, run record and immutable publication revision')
655
+ helper = Path(__file__).resolve().parent / 'assets' / 'historical_release.py'
656
+ if helper.is_file():
657
+ import importlib.util
658
+ spec = importlib.util.spec_from_file_location('historical_release', helper)
659
+ module = importlib.util.module_from_spec(spec)
660
+ spec.loader.exec_module(module)
661
+ restore = module.restore
662
+ else:
663
+ from data.utils.historical_release import restore
664
+ print(json.dumps(restore(args.restore_historical_instructions, args.validated_tasks,
665
+ args.validated_archive, args.run_record, 'scaleswe',
666
+ args.publication_revision, args.output), indent=2))
667
+ return
668
+ if args.validated_tasks:
669
+ if args.source or args.review or args.automatic_paths or args.resolution_report:
670
+ parser.error('Environment preparation cannot be combined with instruction patching')
671
+ if not all((args.validated_archive, args.upstream_shards, args.run_record, args.publication_revision)):
672
+ parser.error('Environment preparation requires archive, upstream shards, run record and publication revision')
673
+ print(json.dumps(prepare_environment(args.upstream_shards, args.validated_tasks,
674
+ args.validated_archive, args.run_record, args.output, args.publication_revision), indent=2))
675
+ return
676
+ if not args.source or any((args.validated_archive, args.upstream_shards, args.run_record, args.publication_revision)):
677
+ parser.error('Supply --source, or the complete environment preparation inputs')
678
+ if args.output.exists():
679
+ raise ValueError('Use a new output directory')
680
+ review = json.loads(args.review.read_text())['tasks'] if args.review else {}
681
+ evidence = collect_reports(args.resolution_report)
682
+ source = pq.read_table(args.source)
683
+ rows = source.to_pylist()
684
+ names = {row['path'] for row in rows}
685
+ if set(review) - names:
686
+ raise ValueError('Review contains tasks outside the source')
687
+ labels, reasons, unresolved, changes = {}, {}, {}, {}
688
+ dropped = {} if args.no_repairs else {name: ARCHIVED_TASKS[name] for name in names & ARCHIVED_TASKS.keys()}
689
+ rows = [row for row in rows if row['path'] not in dropped]
690
+ for row in rows:
691
+ name = row['path']
692
+ decision = review.get(name, {})
693
+ automatic_paths = args.automatic_paths and name in evidence and bool(evidence[name]['selected'].get('diagnostic', {}).get('agent_baseline', {}).get('task_sha256'))
694
+ selected = evidence[name]['selected'] if automatic_paths or decision.get('replacements') else {}
695
+ row['task_binary'], edits = patch_blob(
696
+ row['task_binary'], selected.get('diagnostic'), decision.get('replacements', []),
697
+ oracle_passed=selected.get('status') == 'passed' and bool(selected.get('rewards')) and all(r == 1 for r in selected['rewards']),
698
+ task_id=name, automatic_paths=automatic_paths, apply_repairs=not args.no_repairs)
699
+ if not args.no_repairs:
700
+ row['task_binary'], instruction_edits = repairs.apply_release_instructions(row['task_binary'], name)
701
+ edits.extend(instruction_edits)
702
+ row['task_binary'], network_edits = offline_blob(row['task_binary'])
703
+ edits.extend(network_edits)
704
+ if not edits:
705
+ continue
706
+ changes[name] = edits
707
+ labels[name] = []
708
+ descriptions = []
709
+ if any(e.get('phase') not in ('verifier-import-path', 'verifier-call-time-imports', 'verifier-worker-cleanup', 'verifier-exact-test-ids', 'verifier-debug-stream-isolation', 'verifier-request-cleanup', 'verifier-cpu-affinity', 'verifier-test-fixture-restoration', 'verifier-required-test-skipped', 'anti-cheat-instruction', 'offline-first') for e in edits):
710
+ labels[name].append('instruction-path-clarified')
711
+ descriptions.append('User-approved minimal instruction correction' if name in INSTRUCTION_CORRECTIONS
712
+ else 'Absolute paths supported by task-setup/reference-solution observations')
713
+ if network_edits:
714
+ labels[name].append('offline-first')
715
+ descriptions.append(network_edits[0]['reason'])
716
+ if any(e.get('phase') == 'anti-cheat-instruction' for e in edits):
717
+ labels[name].append('anti-cheat-instruction')
718
+ descriptions.append('Replay the historical post-patcher timeout and anti-cheating suffix')
719
+ if any(e.get('phase') == 'verifier-import-path' for e in edits):
720
+ labels[name].append('verifier-import-path')
721
+ descriptions.extend(e['reason'] for e in edits if e.get('phase') == 'verifier-import-path')
722
+ fixture_repairs = [e for e in edits if e.get('phase') == 'verifier-test-fixture-restoration']
723
+ if fixture_repairs:
724
+ labels[name].append('verifier-test-fixture-restoration')
725
+ descriptions.extend(e['reason'] for e in fixture_repairs)
726
+ if any(e.get('phase') == 'verifier-call-time-imports' for e in edits):
727
+ labels[name].append('verifier-call-time-imports')
728
+ descriptions.append('Move reviewed feature imports into consuming test functions so missing functionality fails during test execution; preserve selected tests, assertions and reward rules')
729
+ cleanup = [e['reason'] for e in edits if e.get('phase') == 'verifier-worker-cleanup']
730
+ if cleanup:
731
+ labels[name].append('verifier-worker-cleanup')
732
+ descriptions.extend(cleanup)
733
+ exact_ids = [e['reason'] for e in edits if e.get('phase') == 'verifier-exact-test-ids']
734
+ if exact_ids:
735
+ labels[name].append('verifier-exact-test-ids')
736
+ descriptions.extend(exact_ids)
737
+ debug_stream = [e['reason'] for e in edits if e.get('phase') == 'verifier-debug-stream-isolation']
738
+ if debug_stream:
739
+ labels[name].append('verifier-debug-stream-isolation')
740
+ descriptions.extend(debug_stream)
741
+ request_cleanup = [e['reason'] for e in edits if e.get('phase') == 'verifier-request-cleanup']
742
+ if request_cleanup:
743
+ labels[name].append('verifier-request-cleanup')
744
+ descriptions.extend(request_cleanup)
745
+ cpu_affinity = [e['reason'] for e in edits if e.get('phase') == 'verifier-cpu-affinity']
746
+ if cpu_affinity:
747
+ labels[name].append('verifier-cpu-affinity')
748
+ descriptions.extend(cpu_affinity)
749
+ skipped = [e['reason'] for e in edits if e.get('phase') == 'verifier-required-test-skipped']
750
+ if skipped:
751
+ labels[name].append('verifier-required-test-skipped')
752
+ descriptions.extend(skipped)
753
+ reasons[name] = '; '.join(descriptions)
754
+ if decision.get('unresolved'):
755
+ unresolved[name] = decision['unresolved']
756
+ args.output.mkdir(parents=True)
757
+ output = args.output / 'tasks.parquet'
758
+ from validation.rules.static.task_absolute_path.path_cache import KEY, blob_fingerprint, completed
759
+ cache = {row['path']: blob_fingerprint(row['task_binary']) for row in rows
760
+ if row['path'] in evidence and completed(evidence[row['path']]['selected']['diagnostic'])}
761
+ metadata = dict(source.schema.metadata or {})
762
+ metadata[KEY] = json.dumps(cache).encode()
763
+ output_schema = source.schema
764
+ if 'content_sha256' not in output_schema.names:
765
+ output_schema = output_schema.append(pa.field('content_sha256', pa.string()))
766
+ for row in rows:
767
+ row['content_sha256'] = files_digest((name, body) for name, (body, _) in archive_files(row['task_binary']).items())
768
+ pq.write_table(pa.Table.from_pylist(rows, schema=output_schema).replace_schema_metadata(metadata), output)
769
+ (args.output / 'path-edits.json').write_text(json.dumps(changes, indent=2)+'\n')
770
+ (args.output / 'unresolved-paths.json').write_text(json.dumps(unresolved, indent=2)+'\n')
771
+ write_patch_report(args.source, output, patcher=__file__, source={
772
+ 'dataset': 'PrimeIntellect/Scale-SWE-Verified', 'revision': REVISION,
773
+ 'url': f'https://huggingface.co/datasets/PrimeIntellect/Scale-SWE-Verified/tree/{REVISION}'},
774
+ dropped=dropped, change_labels=labels, change_reasons=reasons,
775
+ patches=[{'version': 'absolute-paths-v1', 'resolver_reports': [str(p.resolve()) for p in args.resolution_report],
776
+ 'automatic_paths': args.automatic_paths, 'review': str(args.review.resolve()) if args.review else None},
777
+ {'version': 'verifier-import-path-v2',
778
+ 'tasks': sorted(name for name in changes if name in VERIFIER_IMPORT_TASKS)},
779
+ {'version': 'reviewed-collection-repairs-v1', 'tasks': sorted(set(changes) & DEFERRED_IMPORTS.keys()),
780
+ 'archived_tasks': sorted(dropped)},
781
+ {'version': 'gold-added-test-fixtures-v1',
782
+ 'tasks': sorted(name for name, task_edits in changes.items()
783
+ if any(e.get('phase') == 'verifier-test-fixture-restoration'
784
+ for e in task_edits))},
785
+ {'version': 'skipped-required-tests-v1', 'tasks': sorted(name for name in changes if name in SKIPPED_REQUIRED_TESTS)}])
786
+ print(json.dumps({'tasks': len(rows), 'changed': len(changes), 'output': str(output)}))
787
+
788
+
789
+ def runtime_cli():
790
+ parser = argparse.ArgumentParser(description='Bind observed Scale SWE verifier runtimes')
791
+ parser.add_argument('--source', type=Path, required=True)
792
+ parser.add_argument('--output', type=Path, required=True)
793
+ parser.add_argument('--selections', type=Path, required=True)
794
+ parser.add_argument('--catalog', type=Path, required=True)
795
+ parser.add_argument('--source-revision', required=True)
796
+ parser.add_argument('--allow-partial', action='store_true', help='Explicit diagnostic export only')
797
+ args = parser.parse_args(sys.argv[2:])
798
+ selections = json.loads(args.selections.read_text())
799
+ known = set(pq.read_table(args.source, columns=['path'])['path'].to_pylist())
800
+ if not args.allow_partial and set(selections) != known:
801
+ parser.error('Release export requires every task; use --allow-partial only for a diagnostic sample')
802
+ print(json.dumps(prepare_runtime_candidates(args.source, args.output, selections,
803
+ json.loads(args.catalog.read_text()), args.source_revision)))
804
+
805
+
806
+ if __name__ == '__main__':
807
+ if len(sys.argv) > 1 and sys.argv[1] == 'prepare-runtimes':
808
+ runtime_cli()
809
+ else:
810
+ main()
scaleswe_v1.1/prepare.py ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Stream Scale SWE image/runtime preparation with resumable per-shard receipt files.
2
+
3
+ This command does not run validation, task initialization or grading. Images are
4
+ temporary unless --keep-images is selected; runtime artifacts remain cached.
5
+ """
6
+ import argparse
7
+ import fcntl
8
+ import io
9
+ import json
10
+ import os
11
+ from pathlib import Path, PurePosixPath
12
+ import re
13
+ import sqlite3
14
+ import subprocess
15
+ import sys
16
+ import tarfile
17
+ import tempfile
18
+ import time
19
+ import urllib.request
20
+ import zlib
21
+
22
+ import pyarrow.parquet as pq
23
+ from data.scaleswe.runtime_prepare import prepare
24
+ from harbor_patches.image_context import environment_dir_hash
25
+ from harbor_patches.verifier_bundle import digest, verify
26
+ from hpc.offline_prep.image_cache import restore, publish
27
+ from validation.contract import files_digest
28
+ from validation.publishing.image_release import validate_bundle
29
+
30
+
31
+ def unpack(binary):
32
+ files = {}
33
+ with tarfile.open(fileobj=io.BytesIO(binary)) as archive:
34
+ for member in archive:
35
+ path = PurePosixPath(member.name)
36
+ if path.is_absolute() or '..' in path.parts or not (member.isdir() or member.isfile()):
37
+ raise ValueError('Unsafe task archive member')
38
+ if member.isfile():
39
+ if member.name in files:
40
+ raise ValueError('Duplicate task archive member')
41
+ files[member.name] = archive.extractfile(member).read()
42
+ return files
43
+
44
+
45
+ def database(path):
46
+ """Open a legacy receipt database read-only.
47
+
48
+ Receipts used to live in one SQLite file shared by every shard. Concurrent
49
+ writers on the cluster file system failed with "unable to open database
50
+ file", so new receipts go to one append-only JSONL file per shard and the
51
+ legacy database is only read (immutable: no lock or journal files).
52
+ """
53
+ return sqlite3.connect(path.resolve().as_uri() + '?mode=ro&immutable=1', uri=True)
54
+
55
+
56
+ def load_receipts(out):
57
+ """Return {(task, content_sha): receipt}; later JSONL entries win over legacy SQLite."""
58
+ receipts = {}
59
+ legacy = out / 'receipts.sqlite'
60
+ if legacy.is_file():
61
+ connection = database(legacy)
62
+ try:
63
+ for task, sha, blob in connection.execute('SELECT task, content_sha, receipt FROM receipts'):
64
+ receipts[task, sha] = (0.0, json.loads(zlib.decompress(blob)))
65
+ finally:
66
+ connection.close()
67
+ for path in sorted(out.glob('receipts-*.jsonl')):
68
+ with path.open() as stream:
69
+ for line in stream:
70
+ try:
71
+ entry = json.loads(line)
72
+ except json.JSONDecodeError:
73
+ continue # line cut off when a job was killed mid-write
74
+ key = (entry['task'], entry['content_sha'])
75
+ if key not in receipts or entry['written'] >= receipts[key][0]:
76
+ receipts[key] = (entry['written'], entry['receipt'])
77
+ return {key: receipt for key, (_, receipt) in receipts.items()}
78
+
79
+
80
+ def record(stream, row, receipt):
81
+ stream.write(json.dumps(dict(task=row['path'], content_sha=row['content_sha256'],
82
+ written=time.time(), receipt=receipt)) + '\n')
83
+ stream.flush()
84
+ os.fsync(stream.fileno())
85
+
86
+
87
+ def prepare_one(row, image_metadata, args, log):
88
+ if not re.fullmatch(r'[A-Za-z0-9_.+-]+', row['path']):
89
+ raise ValueError('Unsafe Scale SWE task ID')
90
+ files = unpack(row['task_binary'])
91
+ if files_digest(files.items()) != row['content_sha256']:
92
+ raise ValueError('Source content digest differs')
93
+ with tempfile.TemporaryDirectory(prefix='scaleswe-build-', dir=os.environ.get('TMPDIR')) as temporary:
94
+ scratch = Path(temporary)
95
+ context = scratch / 'environment'
96
+ context.mkdir()
97
+ for name, body in files.items():
98
+ if name.startswith('environment/'):
99
+ path = scratch / name
100
+ path.parent.mkdir(parents=True, exist_ok=True)
101
+ path.write_bytes(body)
102
+ environment_sha = environment_dir_hash(context)
103
+ name = 'build_' + row['path'] + '-' + environment_sha[:12] + '.sif'
104
+ cached = args.image_cache / 'bundles-v1' / (name + '.tar')
105
+ unpacked = args.image_cache / 'bundles-v1' / name # shared caches also hold directory bundles
106
+ binding = image_metadata.get('tasks', {}).get(row['path'], {})
107
+ if cached.is_file():
108
+ image = restore(cached, scratch)
109
+ elif unpacked.is_dir():
110
+ image = restore(unpacked, scratch)
111
+ elif binding.get('environments'):
112
+ if binding['content_sha256'] != row['content_sha256'] or len(binding['environments']) != 1:
113
+ raise ValueError('Published task image binding differs')
114
+ environment = binding['environments'][0]
115
+ if environment['environment_sha256'] != environment_sha:
116
+ raise ValueError('Published image context differs')
117
+ bundle = image_metadata['bundles'][environment['bundle']]
118
+ validate_bundle(bundle['name'], bundle)
119
+ revision = image_metadata.get('revision') or args.source_revision
120
+ repo = image_metadata.get('repo_id', 'FWeindel/validated-tasks')
121
+ for filename in bundle['files']:
122
+ url = 'https://huggingface.co/datasets/' + repo + '/resolve/' + revision + '/' + bundle['prefix'] + '/' + filename
123
+ with urllib.request.urlopen(url, timeout=180) as response, (scratch / filename).open('xb') as target:
124
+ while block := response.read(8 * 1024 * 1024):
125
+ target.write(block)
126
+ validate_bundle(bundle['name'], bundle, scratch)
127
+ image = scratch / bundle['name']
128
+ else:
129
+ image = scratch / name
130
+ log.write('\nIMAGE ' + row['path'] + '\n')
131
+ log.flush()
132
+ env = {**os.environ, 'APPTAINER_TMPDIR': str(scratch),
133
+ 'APPTAINER_CACHEDIR': str(scratch / 'oci-cache')}
134
+ env.pop('OT_REQUIRE_PREBUILT_IMAGES', None)
135
+ subprocess.run([sys.executable, '-m', 'hpc.offline_prep.image_cache',
136
+ '--build', str(context / 'Dockerfile'), '--output', str(image),
137
+ '--cpus', str(args.cpus), '--memory-mb', str(args.memory_mb), '--timeout-sec', '1800'],
138
+ env=env, stdout=log, stderr=subprocess.STDOUT, check=True, timeout=1900)
139
+ members = [image]
140
+ if image.with_suffix('.deferred.json').exists():
141
+ members += [image.with_suffix('.deferred.json'), image.with_suffix('.overlay.img')]
142
+ before = {p.name: dict(bytes=p.stat().st_size, sha256=digest(p)) for p in members}
143
+ manifest = dict(name=image.name, files=before,
144
+ provenance=dict(pristine=True, environment_sha256=environment_sha))
145
+ # Cache identities are immutable. Serialize shared builders so two tasks
146
+ # with the same recipe cannot race their atomic no-clobber publication.
147
+ with (args.cache / '.scaleswe-prepare.lock').open('a') as lock:
148
+ fcntl.flock(lock, fcntl.LOCK_EX)
149
+ receipt = prepare(files, image, args.cache, source_digest=row['content_sha256'])
150
+ after = {p.name: dict(bytes=p.stat().st_size, sha256=digest(p)) for p in members}
151
+ if before != after:
152
+ raise ValueError('Pristine image changed during runtime preparation')
153
+ if args.keep_images or 'image_python' in receipt['runtime']['spec']:
154
+ publish(image, args.image_cache, provenance=manifest['provenance'], packed=True)
155
+ return dict(receipt, image_manifest=manifest, image_verification=dict(before=before, after=after),
156
+ status='prepared', source_revision=args.source_revision)
157
+
158
+
159
+ def main():
160
+ parser = argparse.ArgumentParser(description=__doc__)
161
+ parser.add_argument('action', choices=['prepare', 'export'])
162
+ parser.add_argument('--source', type=Path, required=True)
163
+ parser.add_argument('--source-revision', required=True)
164
+ parser.add_argument('--out', type=Path, required=True)
165
+ parser.add_argument('--cache', type=Path, required=True)
166
+ parser.add_argument('--image-cache', type=Path)
167
+ parser.add_argument('--shard-index', type=int, default=0)
168
+ parser.add_argument('--shard-count', type=int, default=1)
169
+ parser.add_argument('--cpus', type=int, default=2)
170
+ parser.add_argument('--memory-mb', type=int, default=8192)
171
+ parser.add_argument('--keep-images', action='store_true')
172
+ args = parser.parse_args()
173
+ if not 0 <= args.shard_index < args.shard_count or args.cpus < 1 or args.memory_mb < 1:
174
+ parser.error('Invalid shard or build resource configuration')
175
+ args.out.mkdir(parents=True, exist_ok=True)
176
+ args.cache.mkdir(parents=True, exist_ok=True)
177
+ args.image_cache = args.image_cache or args.out / 'images'
178
+ receipts = load_receipts(args.out)
179
+ source = pq.ParquetFile(args.source)
180
+ images = json.loads((source.schema_arrow.metadata or {}).get(b'ot.images.v1', b'{}'))
181
+ selections, catalog, incomplete = {}, {}, []
182
+ receipt_file = args.out / ('receipts-' + str(args.shard_index) + '-of-' + str(args.shard_count) + '.jsonl')
183
+ with (args.out / ('prepare-' + str(args.shard_index) + '.log')).open('a') as log, \
184
+ (receipt_file.open('a') if args.action == 'prepare' else open(os.devnull, 'w')) as receipt_stream:
185
+ for index, batch in enumerate(source.iter_batches(batch_size=1)):
186
+ if args.action == 'prepare' and index % args.shard_count != args.shard_index:
187
+ continue
188
+ row = batch.to_pylist()[0]
189
+ receipt = receipts.get((row['path'], row['content_sha256']))
190
+ if receipt and receipt['status'] == 'prepared':
191
+ try:
192
+ verify(receipt['runtime'], args.cache)
193
+ except (OSError, ValueError) as error:
194
+ receipt = dict(status='incomplete', error='Cached runtime verification failed: ' + str(error),
195
+ source_revision=args.source_revision)
196
+ if args.action == 'prepare' and (not receipt or receipt['status'] != 'prepared'):
197
+ try:
198
+ receipt = prepare_one(row, images, args, log)
199
+ except Exception as error:
200
+ receipt = dict(status='incomplete', error=str(error), source_revision=args.source_revision)
201
+ if getattr(error, 'observation', None) is not None:
202
+ receipt['observation'] = error.observation
203
+ record(receipt_stream, row, receipt)
204
+ print(json.dumps(dict(task=row['path'], status=receipt['status'], error=receipt.get('error'))), flush=True)
205
+ if not receipt or receipt['status'] != 'prepared':
206
+ incomplete.append(dict(task=row['path'], reason=(receipt or {}).get('error', 'Not prepared')))
207
+ elif args.action == 'export':
208
+ selections[row['path']] = {k: receipt[k] for k in ('runtime_id', 'observation',
209
+ 'runtime_compatibility', 'image_manifest', 'image_verification')}
210
+ catalog[receipt['runtime_id']] = receipt['runtime']
211
+ if args.action == 'export':
212
+ (args.out / 'incomplete.json').write_text(json.dumps(incomplete, indent=2))
213
+ if incomplete:
214
+ raise SystemExit('Incomplete runtime coverage; selections were not exported')
215
+ (args.out / 'selections.json').write_text(json.dumps(selections))
216
+ (args.out / 'catalog.json').write_text(json.dumps(catalog))
217
+ print(json.dumps(dict(incomplete=len(incomplete), source_tasks=source.metadata.num_rows)))
218
+ if incomplete:
219
+ raise SystemExit(1)
220
+
221
+
222
+ if __name__ == '__main__':
223
+ main()
scaleswe_v1.1/provenance/audit-summary.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "created_at": "2026-11-12T08:38:30.156720+00:00",
3
+ "current_unique_tasks": 16786,
4
+ "historical_tasks": 416,
5
+ "rows": 17202,
6
+ "network_mode": "simulated",
7
+ "kernel_network_isolation": false,
8
+ "ai_detection": "intentionally excluded by user policy",
9
+ "current_latest_status_counts": {
10
+ "agent_editable_test": {
11
+ "pass": 16708,
12
+ "fail": 78
13
+ },
14
+ "artifact_efficiency": {
15
+ "pass": 16786
16
+ },
17
+ "build": {
18
+ "pass": 16649,
19
+ "execution_error": 136,
20
+ "fail": 1
21
+ },
22
+ "compose-host-binds": {
23
+ "pass": 16786
24
+ },
25
+ "declared_internet_access": {
26
+ "pass": 16649,
27
+ "blocked": 137
28
+ },
29
+ "declared_workdir": {
30
+ "pass": 16649,
31
+ "blocked": 137
32
+ },
33
+ "do_not_modify": {
34
+ "not_applicable": 16644,
35
+ "pass": 142
36
+ },
37
+ "dockerfile-platform": {
38
+ "pass": 16786
39
+ },
40
+ "dockerfile-references": {
41
+ "pass": 16786
42
+ },
43
+ "dockerfile-sanity": {
44
+ "pass": 16786
45
+ },
46
+ "instruction-suffix": {
47
+ "pass": 16786
48
+ },
49
+ "no-cheat-dir": {
50
+ "pass": 16786
51
+ },
52
+ "no_behavioural_tests": {
53
+ "pass": 16786
54
+ },
55
+ "nop": {
56
+ "pass": 16572,
57
+ "infrastructure_error": 22,
58
+ "execution_error": 38,
59
+ "timeout": 10,
60
+ "blocked": 137,
61
+ "fail": 7
62
+ },
63
+ "nop_determinism": {
64
+ "pass": 16590,
65
+ "execution_error": 18,
66
+ "infrastructure_error": 32,
67
+ "blocked": 137,
68
+ "fail": 8,
69
+ "timeout": 1
70
+ },
71
+ "nproc": {
72
+ "pass": 16786
73
+ },
74
+ "pip-pinning": {
75
+ "pass": 16786
76
+ },
77
+ "python_missing_imports": {
78
+ "pass": 16775,
79
+ "fail": 11
80
+ },
81
+ "reference": {
82
+ "pass": 14270,
83
+ "fail": 2308,
84
+ "execution_error": 47,
85
+ "blocked": 137,
86
+ "timeout": 24
87
+ },
88
+ "reference_determinism": {
89
+ "pass": 14203,
90
+ "execution_error": 2382,
91
+ "fail": 41,
92
+ "blocked": 137,
93
+ "timeout": 23
94
+ },
95
+ "reference_leaks": {
96
+ "execution_error": 16649,
97
+ "blocked": 137
98
+ },
99
+ "repository_history": {
100
+ "warning": 16629,
101
+ "blocked": 137,
102
+ "pass": 20
103
+ },
104
+ "repository_timestamps": {
105
+ "pass": 16649,
106
+ "blocked": 137
107
+ },
108
+ "resource-sizes": {
109
+ "pass": 16786
110
+ },
111
+ "script_execution_coverage": {
112
+ "pass": 16786
113
+ },
114
+ "task-absolute-path": {
115
+ "pass": 14406,
116
+ "warning": 2380
117
+ },
118
+ "task-timeout": {
119
+ "pass": 16786
120
+ },
121
+ "task-toml-schema": {
122
+ "pass": 16786
123
+ },
124
+ "test-file-references": {
125
+ "pass": 16786
126
+ },
127
+ "verifier_paths": {
128
+ "fail": 14018,
129
+ "pass": 2462,
130
+ "execution_error": 169,
131
+ "blocked": 137
132
+ },
133
+ "verifier_tamper": {
134
+ "pass": 14272,
135
+ "execution_error": 49,
136
+ "warning": 2328,
137
+ "blocked": 137
138
+ }
139
+ },
140
+ "historical_caveat": "Historical outcomes retain unknown payload binding and unverified offline execution; do not count them as passing the current validation requirement.",
141
+ "current_results": "/data/horse/ws/frwe188h-trp-shared/ot-next-data/runs/scaleswe-baseline-audit-20261109/submit-barnard-20261111-r3/merged/report/results.parquet",
142
+ "combined_results": "/data/horse/ws/frwe188h-trp-shared/ot-next-data/runs/scaleswe-baseline-audit-20261109/submit-barnard-20261111-r3/results.parquet",
143
+ "stage_status_counts": {
144
+ "0": {
145
+ "passed": 16697,
146
+ "failed": 89
147
+ },
148
+ "1": {
149
+ "passed": 16649,
150
+ "error": 132,
151
+ "failed": 5
152
+ },
153
+ "2": {
154
+ "passed": 14203,
155
+ "error": 2405,
156
+ "failed": 41,
157
+ "skipped": 137
158
+ },
159
+ "3": {
160
+ "passed": 16568,
161
+ "error": 51,
162
+ "failed": 30,
163
+ "skipped": 137
164
+ }
165
+ },
166
+ "all_four_stages_passed": 14128,
167
+ "execution_caveat": "Stage-level pass counts are not full validation passes: reference_leaks is incomplete for all 16786 current tasks (16649 execution_error, 137 blocked).",
168
+ "normalized_check_columns": [
169
+ "agent_editable_test",
170
+ "artifact_efficiency",
171
+ "build",
172
+ "compose-host-binds",
173
+ "do_not_modify",
174
+ "dockerfile-platform",
175
+ "dockerfile-references",
176
+ "dockerfile-sanity",
177
+ "instruction-suffix",
178
+ "no-cheat-dir",
179
+ "no_behavioural_tests",
180
+ "nop",
181
+ "nop_determinism",
182
+ "nproc",
183
+ "pip-pinning",
184
+ "python_missing_imports",
185
+ "reference",
186
+ "reference_determinism",
187
+ "reference_leaks",
188
+ "repository_history",
189
+ "repository_timestamps",
190
+ "resource-sizes",
191
+ "task-absolute-path",
192
+ "task-timeout",
193
+ "task-toml-schema",
194
+ "test-file-references",
195
+ "verifier_tamper"
196
+ ],
197
+ "schema_note": "All rows use standard check columns. Archived string statuses converted to status fields; available details retained; unknown repaired/resource fields null. Provenance retained separately."
198
+ }
scaleswe_v1.1/provenance/contract.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb123f6c249c7c1522736ff58e58744473431eecfb2d6a2b9055726cc84e8ef3
3
+ size 14077157
scaleswe_v1.1/provenance/contract.tasks.json ADDED
The diff for this file is too large to render. See raw diff
 
scaleswe_v1.1/provenance/image-coverage.json ADDED
@@ -0,0 +1,1677 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cached_image_tasks": 16784,
3
+ "without_cached_image_reference": [
4
+ {
5
+ "task": "cphyc_matplotlib-label-lines_pr22",
6
+ "reason": "no verified cached-image entry in release inventory"
7
+ },
8
+ {
9
+ "task": "cphyc_matplotlib-label-lines_pr26",
10
+ "reason": "no verified cached-image entry in release inventory"
11
+ },
12
+ {
13
+ "task": "app-sre_qontract-reconcile_pr2275",
14
+ "reason": "historically archived; no release cache reference"
15
+ },
16
+ {
17
+ "task": "appium_python-client_pr385",
18
+ "reason": "historically archived; no release cache reference"
19
+ },
20
+ {
21
+ "task": "appium_python-client_pr391",
22
+ "reason": "historically archived; no release cache reference"
23
+ },
24
+ {
25
+ "task": "arviz-devs_preliz_pr234",
26
+ "reason": "historically archived; no release cache reference"
27
+ },
28
+ {
29
+ "task": "arviz-devs_preliz_pr305",
30
+ "reason": "historically archived; no release cache reference"
31
+ },
32
+ {
33
+ "task": "audreyr_cookiecutter_pr1414",
34
+ "reason": "historically archived; no release cache reference"
35
+ },
36
+ {
37
+ "task": "auth0_auth0-python_pr696",
38
+ "reason": "historically archived; no release cache reference"
39
+ },
40
+ {
41
+ "task": "awslabs_serverless-application-model_pr1625",
42
+ "reason": "historically archived; no release cache reference"
43
+ },
44
+ {
45
+ "task": "awslabs_serverless-application-model_pr1827",
46
+ "reason": "historically archived; no release cache reference"
47
+ },
48
+ {
49
+ "task": "awslabs_serverless-application-model_pr2095",
50
+ "reason": "historically archived; no release cache reference"
51
+ },
52
+ {
53
+ "task": "awslabs_serverless-application-model_pr2165",
54
+ "reason": "historically archived; no release cache reference"
55
+ },
56
+ {
57
+ "task": "awslabs_serverless-application-model_pr2362",
58
+ "reason": "historically archived; no release cache reference"
59
+ },
60
+ {
61
+ "task": "beetbox_beets_pr4148",
62
+ "reason": "historically archived; no release cache reference"
63
+ },
64
+ {
65
+ "task": "biocommons_hgvs_pr699",
66
+ "reason": "historically archived; no release cache reference"
67
+ },
68
+ {
69
+ "task": "biocommons_hgvs_pr775",
70
+ "reason": "historically archived; no release cache reference"
71
+ },
72
+ {
73
+ "task": "brettcannon_gidgethub_pr122",
74
+ "reason": "historically archived; no release cache reference"
75
+ },
76
+ {
77
+ "task": "brettcannon_gidgethub_pr131",
78
+ "reason": "historically archived; no release cache reference"
79
+ },
80
+ {
81
+ "task": "brettcannon_gidgethub_pr134",
82
+ "reason": "historically archived; no release cache reference"
83
+ },
84
+ {
85
+ "task": "brettcannon_gidgethub_pr14",
86
+ "reason": "historically archived; no release cache reference"
87
+ },
88
+ {
89
+ "task": "brettcannon_gidgethub_pr160",
90
+ "reason": "historically archived; no release cache reference"
91
+ },
92
+ {
93
+ "task": "brettcannon_gidgethub_pr170",
94
+ "reason": "historically archived; no release cache reference"
95
+ },
96
+ {
97
+ "task": "brettcannon_gidgethub_pr174",
98
+ "reason": "historically archived; no release cache reference"
99
+ },
100
+ {
101
+ "task": "brettcannon_gidgethub_pr18",
102
+ "reason": "historically archived; no release cache reference"
103
+ },
104
+ {
105
+ "task": "brettcannon_gidgethub_pr215",
106
+ "reason": "historically archived; no release cache reference"
107
+ },
108
+ {
109
+ "task": "brettcannon_gidgethub_pr31",
110
+ "reason": "historically archived; no release cache reference"
111
+ },
112
+ {
113
+ "task": "brettcannon_gidgethub_pr32",
114
+ "reason": "historically archived; no release cache reference"
115
+ },
116
+ {
117
+ "task": "brettcannon_gidgethub_pr34",
118
+ "reason": "historically archived; no release cache reference"
119
+ },
120
+ {
121
+ "task": "brettcannon_gidgethub_pr35",
122
+ "reason": "historically archived; no release cache reference"
123
+ },
124
+ {
125
+ "task": "brettcannon_gidgethub_pr37",
126
+ "reason": "historically archived; no release cache reference"
127
+ },
128
+ {
129
+ "task": "brettcannon_gidgethub_pr38",
130
+ "reason": "historically archived; no release cache reference"
131
+ },
132
+ {
133
+ "task": "brettcannon_gidgethub_pr5",
134
+ "reason": "historically archived; no release cache reference"
135
+ },
136
+ {
137
+ "task": "brettcannon_gidgethub_pr50",
138
+ "reason": "historically archived; no release cache reference"
139
+ },
140
+ {
141
+ "task": "brettcannon_gidgethub_pr51",
142
+ "reason": "historically archived; no release cache reference"
143
+ },
144
+ {
145
+ "task": "brettcannon_gidgethub_pr57",
146
+ "reason": "historically archived; no release cache reference"
147
+ },
148
+ {
149
+ "task": "brettcannon_gidgethub_pr62",
150
+ "reason": "historically archived; no release cache reference"
151
+ },
152
+ {
153
+ "task": "brettcannon_gidgethub_pr68",
154
+ "reason": "historically archived; no release cache reference"
155
+ },
156
+ {
157
+ "task": "burnash_gspread_pr1199",
158
+ "reason": "historically archived; no release cache reference"
159
+ },
160
+ {
161
+ "task": "burnash_gspread_pr1211",
162
+ "reason": "historically archived; no release cache reference"
163
+ },
164
+ {
165
+ "task": "burnash_gspread_pr1277",
166
+ "reason": "historically archived; no release cache reference"
167
+ },
168
+ {
169
+ "task": "burnash_gspread_pr1301",
170
+ "reason": "historically archived; no release cache reference"
171
+ },
172
+ {
173
+ "task": "burnash_gspread_pr1335",
174
+ "reason": "historically archived; no release cache reference"
175
+ },
176
+ {
177
+ "task": "burnash_gspread_pr1357",
178
+ "reason": "historically archived; no release cache reference"
179
+ },
180
+ {
181
+ "task": "burnash_gspread_pr1461",
182
+ "reason": "historically archived; no release cache reference"
183
+ },
184
+ {
185
+ "task": "burnash_gspread_pr1487",
186
+ "reason": "historically archived; no release cache reference"
187
+ },
188
+ {
189
+ "task": "burnash_gspread_pr984",
190
+ "reason": "historically archived; no release cache reference"
191
+ },
192
+ {
193
+ "task": "canonical_operator_pr330",
194
+ "reason": "historically archived; no release cache reference"
195
+ },
196
+ {
197
+ "task": "cclib_cclib_pr751",
198
+ "reason": "historically archived; no release cache reference"
199
+ },
200
+ {
201
+ "task": "cclib_cclib_pr770",
202
+ "reason": "historically archived; no release cache reference"
203
+ },
204
+ {
205
+ "task": "cclib_cclib_pr794",
206
+ "reason": "historically archived; no release cache reference"
207
+ },
208
+ {
209
+ "task": "chmp_ipytest_pr110",
210
+ "reason": "historically archived; no release cache reference"
211
+ },
212
+ {
213
+ "task": "cldf_csvw_pr23",
214
+ "reason": "historically archived; no release cache reference"
215
+ },
216
+ {
217
+ "task": "cloud-custodian_cel-python_pr11",
218
+ "reason": "historically archived; no release cache reference"
219
+ },
220
+ {
221
+ "task": "compas-dev_compas_pr1124",
222
+ "reason": "historically archived; no release cache reference"
223
+ },
224
+ {
225
+ "task": "compas-dev_compas_pr686",
226
+ "reason": "historically archived; no release cache reference"
227
+ },
228
+ {
229
+ "task": "compas-dev_compas_pr712",
230
+ "reason": "historically archived; no release cache reference"
231
+ },
232
+ {
233
+ "task": "compas-dev_compas_pr735",
234
+ "reason": "historically archived; no release cache reference"
235
+ },
236
+ {
237
+ "task": "coveragepy_coveragepy_pr1479",
238
+ "reason": "historically archived; no release cache reference"
239
+ },
240
+ {
241
+ "task": "coveragepy_coveragepy_pr1819",
242
+ "reason": "historically archived; no release cache reference"
243
+ },
244
+ {
245
+ "task": "coveragepy_coveragepy_pr1828",
246
+ "reason": "historically archived; no release cache reference"
247
+ },
248
+ {
249
+ "task": "coveragepy_coveragepy_pr1943",
250
+ "reason": "historically archived; no release cache reference"
251
+ },
252
+ {
253
+ "task": "dantebben_nox-uv_pr56",
254
+ "reason": "historically archived; no release cache reference"
255
+ },
256
+ {
257
+ "task": "dbcli_pgcli_pr687",
258
+ "reason": "historically archived; no release cache reference"
259
+ },
260
+ {
261
+ "task": "developmentseed_rio-stac_pr65",
262
+ "reason": "historically archived; no release cache reference"
263
+ },
264
+ {
265
+ "task": "developmentseed_rio-stac_pr71",
266
+ "reason": "historically archived; no release cache reference"
267
+ },
268
+ {
269
+ "task": "dimastbk_python-calamine_pr51",
270
+ "reason": "historically archived; no release cache reference"
271
+ },
272
+ {
273
+ "task": "django-crispy-forms_crispy-bootstrap5_pr200",
274
+ "reason": "historically archived; no release cache reference"
275
+ },
276
+ {
277
+ "task": "django-crispy-forms_crispy-bootstrap5_pr31",
278
+ "reason": "historically archived; no release cache reference"
279
+ },
280
+ {
281
+ "task": "django-crispy-forms_crispy-bootstrap5_pr56",
282
+ "reason": "historically archived; no release cache reference"
283
+ },
284
+ {
285
+ "task": "django-crispy-forms_django-crispy-forms_pr1286",
286
+ "reason": "historically archived; no release cache reference"
287
+ },
288
+ {
289
+ "task": "elastic_apm-agent-python_pr1796",
290
+ "reason": "historically archived; no release cache reference"
291
+ },
292
+ {
293
+ "task": "elastic_apm-agent-python_pr1830",
294
+ "reason": "historically archived; no release cache reference"
295
+ },
296
+ {
297
+ "task": "elastic_apm-agent-python_pr1852",
298
+ "reason": "historically archived; no release cache reference"
299
+ },
300
+ {
301
+ "task": "elastic_apm-agent-python_pr1867",
302
+ "reason": "historically archived; no release cache reference"
303
+ },
304
+ {
305
+ "task": "elastic_apm-agent-python_pr1878",
306
+ "reason": "historically archived; no release cache reference"
307
+ },
308
+ {
309
+ "task": "elastic_apm-agent-python_pr1893",
310
+ "reason": "historically archived; no release cache reference"
311
+ },
312
+ {
313
+ "task": "elastic_apm-agent-python_pr1907",
314
+ "reason": "historically archived; no release cache reference"
315
+ },
316
+ {
317
+ "task": "elastic_apm-agent-python_pr1959",
318
+ "reason": "historically archived; no release cache reference"
319
+ },
320
+ {
321
+ "task": "elastic_elastic-transport-python_pr100",
322
+ "reason": "historically archived; no release cache reference"
323
+ },
324
+ {
325
+ "task": "elastic_elastic-transport-python_pr127",
326
+ "reason": "historically archived; no release cache reference"
327
+ },
328
+ {
329
+ "task": "elastic_elastic-transport-python_pr137",
330
+ "reason": "historically archived; no release cache reference"
331
+ },
332
+ {
333
+ "task": "elastic_elastic-transport-python_pr14",
334
+ "reason": "historically archived; no release cache reference"
335
+ },
336
+ {
337
+ "task": "elastic_elastic-transport-python_pr143",
338
+ "reason": "historically archived; no release cache reference"
339
+ },
340
+ {
341
+ "task": "elastic_elastic-transport-python_pr148",
342
+ "reason": "historically archived; no release cache reference"
343
+ },
344
+ {
345
+ "task": "elastic_elastic-transport-python_pr26",
346
+ "reason": "historically archived; no release cache reference"
347
+ },
348
+ {
349
+ "task": "elastic_elastic-transport-python_pr30",
350
+ "reason": "historically archived; no release cache reference"
351
+ },
352
+ {
353
+ "task": "elastic_elastic-transport-python_pr31",
354
+ "reason": "historically archived; no release cache reference"
355
+ },
356
+ {
357
+ "task": "elastic_elastic-transport-python_pr55",
358
+ "reason": "historically archived; no release cache reference"
359
+ },
360
+ {
361
+ "task": "elastic_elastic-transport-python_pr57",
362
+ "reason": "historically archived; no release cache reference"
363
+ },
364
+ {
365
+ "task": "erikbern_synchronicity_pr144",
366
+ "reason": "historically archived; no release cache reference"
367
+ },
368
+ {
369
+ "task": "ethereum_eth-utils_pr83",
370
+ "reason": "historically archived; no release cache reference"
371
+ },
372
+ {
373
+ "task": "ethereum_eth-utils_pr87",
374
+ "reason": "historically archived; no release cache reference"
375
+ },
376
+ {
377
+ "task": "executablebooks_myst-nb_pr609",
378
+ "reason": "historically archived; no release cache reference"
379
+ },
380
+ {
381
+ "task": "fonttools_fonttools_pr1676",
382
+ "reason": "historically archived; no release cache reference"
383
+ },
384
+ {
385
+ "task": "fonttools_fonttools_pr1747",
386
+ "reason": "historically archived; no release cache reference"
387
+ },
388
+ {
389
+ "task": "fonttools_fonttools_pr1816",
390
+ "reason": "historically archived; no release cache reference"
391
+ },
392
+ {
393
+ "task": "fonttools_fonttools_pr1872",
394
+ "reason": "historically archived; no release cache reference"
395
+ },
396
+ {
397
+ "task": "fonttools_fonttools_pr1902",
398
+ "reason": "historically archived; no release cache reference"
399
+ },
400
+ {
401
+ "task": "fonttools_fonttools_pr2039",
402
+ "reason": "historically archived; no release cache reference"
403
+ },
404
+ {
405
+ "task": "fonttools_fonttools_pr2101",
406
+ "reason": "historically archived; no release cache reference"
407
+ },
408
+ {
409
+ "task": "fonttools_fonttools_pr2146",
410
+ "reason": "historically archived; no release cache reference"
411
+ },
412
+ {
413
+ "task": "fonttools_fonttools_pr2540",
414
+ "reason": "historically archived; no release cache reference"
415
+ },
416
+ {
417
+ "task": "fonttools_fonttools_pr2552",
418
+ "reason": "historically archived; no release cache reference"
419
+ },
420
+ {
421
+ "task": "fonttools_fonttools_pr2950",
422
+ "reason": "historically archived; no release cache reference"
423
+ },
424
+ {
425
+ "task": "fonttools_fonttools_pr3831",
426
+ "reason": "historically archived; no release cache reference"
427
+ },
428
+ {
429
+ "task": "fox-it_dissect.util_pr77",
430
+ "reason": "historically archived; no release cache reference"
431
+ },
432
+ {
433
+ "task": "frankie567_httpx-ws_pr54",
434
+ "reason": "historically archived; no release cache reference"
435
+ },
436
+ {
437
+ "task": "frictionlessdata_datapackage-py_pr220",
438
+ "reason": "historically archived; no release cache reference"
439
+ },
440
+ {
441
+ "task": "frictionlessdata_goodtables_pr346",
442
+ "reason": "historically archived; no release cache reference"
443
+ },
444
+ {
445
+ "task": "frictionlessdata_tabulator-py_pr129",
446
+ "reason": "historically archived; no release cache reference"
447
+ },
448
+ {
449
+ "task": "frictionlessdata_tabulator-py_pr141",
450
+ "reason": "historically archived; no release cache reference"
451
+ },
452
+ {
453
+ "task": "frictionlessdata_tabulator-py_pr147",
454
+ "reason": "historically archived; no release cache reference"
455
+ },
456
+ {
457
+ "task": "frictionlessdata_tabulator-py_pr166",
458
+ "reason": "historically archived; no release cache reference"
459
+ },
460
+ {
461
+ "task": "frictionlessdata_tabulator-py_pr185",
462
+ "reason": "historically archived; no release cache reference"
463
+ },
464
+ {
465
+ "task": "frictionlessdata_tabulator-py_pr193",
466
+ "reason": "historically archived; no release cache reference"
467
+ },
468
+ {
469
+ "task": "frictionlessdata_tabulator-py_pr196",
470
+ "reason": "historically archived; no release cache reference"
471
+ },
472
+ {
473
+ "task": "frictionlessdata_tabulator-py_pr207",
474
+ "reason": "historically archived; no release cache reference"
475
+ },
476
+ {
477
+ "task": "frictionlessdata_tabulator-py_pr210",
478
+ "reason": "historically archived; no release cache reference"
479
+ },
480
+ {
481
+ "task": "frostming_unearth_pr36",
482
+ "reason": "historically archived; no release cache reference"
483
+ },
484
+ {
485
+ "task": "gahjelle_pyconfs_pr17",
486
+ "reason": "historically archived; no release cache reference"
487
+ },
488
+ {
489
+ "task": "getsentry_responses_pr407",
490
+ "reason": "historically archived; no release cache reference"
491
+ },
492
+ {
493
+ "task": "getsentry_responses_pr412",
494
+ "reason": "historically archived; no release cache reference"
495
+ },
496
+ {
497
+ "task": "getsentry_responses_pr413",
498
+ "reason": "historically archived; no release cache reference"
499
+ },
500
+ {
501
+ "task": "getsentry_responses_pr415",
502
+ "reason": "historically archived; no release cache reference"
503
+ },
504
+ {
505
+ "task": "getsentry_responses_pr416",
506
+ "reason": "historically archived; no release cache reference"
507
+ },
508
+ {
509
+ "task": "getsentry_responses_pr420",
510
+ "reason": "historically archived; no release cache reference"
511
+ },
512
+ {
513
+ "task": "getsentry_responses_pr422",
514
+ "reason": "historically archived; no release cache reference"
515
+ },
516
+ {
517
+ "task": "getsentry_responses_pr427",
518
+ "reason": "historically archived; no release cache reference"
519
+ },
520
+ {
521
+ "task": "getsentry_responses_pr444",
522
+ "reason": "historically archived; no release cache reference"
523
+ },
524
+ {
525
+ "task": "getsentry_responses_pr482",
526
+ "reason": "historically archived; no release cache reference"
527
+ },
528
+ {
529
+ "task": "getsentry_responses_pr485",
530
+ "reason": "historically archived; no release cache reference"
531
+ },
532
+ {
533
+ "task": "getsentry_responses_pr498",
534
+ "reason": "historically archived; no release cache reference"
535
+ },
536
+ {
537
+ "task": "getsentry_responses_pr508",
538
+ "reason": "historically archived; no release cache reference"
539
+ },
540
+ {
541
+ "task": "getsentry_responses_pr522",
542
+ "reason": "historically archived; no release cache reference"
543
+ },
544
+ {
545
+ "task": "getsentry_responses_pr534",
546
+ "reason": "historically archived; no release cache reference"
547
+ },
548
+ {
549
+ "task": "getsentry_responses_pr562",
550
+ "reason": "historically archived; no release cache reference"
551
+ },
552
+ {
553
+ "task": "getsentry_responses_pr580",
554
+ "reason": "historically archived; no release cache reference"
555
+ },
556
+ {
557
+ "task": "getsentry_responses_pr583",
558
+ "reason": "historically archived; no release cache reference"
559
+ },
560
+ {
561
+ "task": "getsentry_responses_pr593",
562
+ "reason": "historically archived; no release cache reference"
563
+ },
564
+ {
565
+ "task": "getsentry_responses_pr663",
566
+ "reason": "historically archived; no release cache reference"
567
+ },
568
+ {
569
+ "task": "getsentry_responses_pr702",
570
+ "reason": "historically archived; no release cache reference"
571
+ },
572
+ {
573
+ "task": "getsentry_responses_pr711",
574
+ "reason": "historically archived; no release cache reference"
575
+ },
576
+ {
577
+ "task": "getsentry_responses_pr717",
578
+ "reason": "historically archived; no release cache reference"
579
+ },
580
+ {
581
+ "task": "getsentry_responses_pr739",
582
+ "reason": "historically archived; no release cache reference"
583
+ },
584
+ {
585
+ "task": "getsentry_responses_pr776",
586
+ "reason": "historically archived; no release cache reference"
587
+ },
588
+ {
589
+ "task": "gijzelaerr_python-snap7_pr254",
590
+ "reason": "historically archived; no release cache reference"
591
+ },
592
+ {
593
+ "task": "gijzelaerr_python-snap7_pr268",
594
+ "reason": "historically archived; no release cache reference"
595
+ },
596
+ {
597
+ "task": "gijzelaerr_python-snap7_pr283",
598
+ "reason": "historically archived; no release cache reference"
599
+ },
600
+ {
601
+ "task": "gijzelaerr_python-snap7_pr326",
602
+ "reason": "historically archived; no release cache reference"
603
+ },
604
+ {
605
+ "task": "gijzelaerr_python-snap7_pr368",
606
+ "reason": "historically archived; no release cache reference"
607
+ },
608
+ {
609
+ "task": "gijzelaerr_python-snap7_pr373",
610
+ "reason": "historically archived; no release cache reference"
611
+ },
612
+ {
613
+ "task": "gijzelaerr_python-snap7_pr529",
614
+ "reason": "historically archived; no release cache reference"
615
+ },
616
+ {
617
+ "task": "globus_globus-sdk-python_pr689",
618
+ "reason": "historically archived; no release cache reference"
619
+ },
620
+ {
621
+ "task": "globus_globus-sdk-python_pr749",
622
+ "reason": "historically archived; no release cache reference"
623
+ },
624
+ {
625
+ "task": "google_flatbuffers_pr4928",
626
+ "reason": "historically archived; no release cache reference"
627
+ },
628
+ {
629
+ "task": "google_flatbuffers_pr5613",
630
+ "reason": "historically archived; no release cache reference"
631
+ },
632
+ {
633
+ "task": "google_flatbuffers_pr608",
634
+ "reason": "historically archived; no release cache reference"
635
+ },
636
+ {
637
+ "task": "google_flatbuffers_pr6156",
638
+ "reason": "historically archived; no release cache reference"
639
+ },
640
+ {
641
+ "task": "google_flatbuffers_pr6318",
642
+ "reason": "historically archived; no release cache reference"
643
+ },
644
+ {
645
+ "task": "google_flatbuffers_pr6373",
646
+ "reason": "historically archived; no release cache reference"
647
+ },
648
+ {
649
+ "task": "googleapis_python-documentai-toolbox_pr23",
650
+ "reason": "historically archived; no release cache reference"
651
+ },
652
+ {
653
+ "task": "googlefonts_ufo2ft_pr826",
654
+ "reason": "historically archived; no release cache reference"
655
+ },
656
+ {
657
+ "task": "googlefonts_ufo2ft_pr840",
658
+ "reason": "historically archived; no release cache reference"
659
+ },
660
+ {
661
+ "task": "googlefonts_ufo2ft_pr886",
662
+ "reason": "historically archived; no release cache reference"
663
+ },
664
+ {
665
+ "task": "goose3_goose3_pr118",
666
+ "reason": "historically archived; no release cache reference"
667
+ },
668
+ {
669
+ "task": "goose3_goose3_pr171",
670
+ "reason": "historically archived; no release cache reference"
671
+ },
672
+ {
673
+ "task": "goose3_goose3_pr52",
674
+ "reason": "historically archived; no release cache reference"
675
+ },
676
+ {
677
+ "task": "goose3_goose3_pr85",
678
+ "reason": "historically archived; no release cache reference"
679
+ },
680
+ {
681
+ "task": "goose3_goose3_pr93",
682
+ "reason": "historically archived; no release cache reference"
683
+ },
684
+ {
685
+ "task": "gruebel_pycep_pr137",
686
+ "reason": "historically archived; no release cache reference"
687
+ },
688
+ {
689
+ "task": "gruebel_pycep_pr64",
690
+ "reason": "historically archived; no release cache reference"
691
+ },
692
+ {
693
+ "task": "hadialqattan_pycln_pr121",
694
+ "reason": "historically archived; no release cache reference"
695
+ },
696
+ {
697
+ "task": "hammem_monarchmoney_pr120",
698
+ "reason": "historically archived; no release cache reference"
699
+ },
700
+ {
701
+ "task": "hammem_monarchmoney_pr83",
702
+ "reason": "historically archived; no release cache reference"
703
+ },
704
+ {
705
+ "task": "holoviz_param_pr775",
706
+ "reason": "historically archived; no release cache reference"
707
+ },
708
+ {
709
+ "task": "home-assistant-libs_python-supervisor-client_pr167",
710
+ "reason": "historically archived; no release cache reference"
711
+ },
712
+ {
713
+ "task": "influxdb_influxdb-python_pr807",
714
+ "reason": "historically archived; no release cache reference"
715
+ },
716
+ {
717
+ "task": "jawah_urllib3.future_pr1",
718
+ "reason": "historically archived; no release cache reference"
719
+ },
720
+ {
721
+ "task": "jawah_urllib3.future_pr102",
722
+ "reason": "historically archived; no release cache reference"
723
+ },
724
+ {
725
+ "task": "jawah_urllib3.future_pr103",
726
+ "reason": "historically archived; no release cache reference"
727
+ },
728
+ {
729
+ "task": "jawah_urllib3.future_pr123",
730
+ "reason": "historically archived; no release cache reference"
731
+ },
732
+ {
733
+ "task": "jawah_urllib3.future_pr129",
734
+ "reason": "historically archived; no release cache reference"
735
+ },
736
+ {
737
+ "task": "jawah_urllib3.future_pr142",
738
+ "reason": "historically archived; no release cache reference"
739
+ },
740
+ {
741
+ "task": "jawah_urllib3.future_pr144",
742
+ "reason": "historically archived; no release cache reference"
743
+ },
744
+ {
745
+ "task": "jawah_urllib3.future_pr154",
746
+ "reason": "historically archived; no release cache reference"
747
+ },
748
+ {
749
+ "task": "jawah_urllib3.future_pr160",
750
+ "reason": "historically archived; no release cache reference"
751
+ },
752
+ {
753
+ "task": "jawah_urllib3.future_pr165",
754
+ "reason": "historically archived; no release cache reference"
755
+ },
756
+ {
757
+ "task": "jawah_urllib3.future_pr23",
758
+ "reason": "historically archived; no release cache reference"
759
+ },
760
+ {
761
+ "task": "jawah_urllib3.future_pr45",
762
+ "reason": "historically archived; no release cache reference"
763
+ },
764
+ {
765
+ "task": "jawah_urllib3.future_pr57",
766
+ "reason": "historically archived; no release cache reference"
767
+ },
768
+ {
769
+ "task": "jawah_urllib3.future_pr65",
770
+ "reason": "historically archived; no release cache reference"
771
+ },
772
+ {
773
+ "task": "jawah_urllib3.future_pr7",
774
+ "reason": "historically archived; no release cache reference"
775
+ },
776
+ {
777
+ "task": "jawah_urllib3.future_pr78",
778
+ "reason": "historically archived; no release cache reference"
779
+ },
780
+ {
781
+ "task": "jazzband_django-smart-selects_pr291",
782
+ "reason": "historically archived; no release cache reference"
783
+ },
784
+ {
785
+ "task": "jazzband_icalevents_pr138",
786
+ "reason": "historically archived; no release cache reference"
787
+ },
788
+ {
789
+ "task": "jazzband_icalevents_pr139",
790
+ "reason": "historically archived; no release cache reference"
791
+ },
792
+ {
793
+ "task": "jazzband_icalevents_pr14",
794
+ "reason": "historically archived; no release cache reference"
795
+ },
796
+ {
797
+ "task": "jazzband_icalevents_pr23",
798
+ "reason": "historically archived; no release cache reference"
799
+ },
800
+ {
801
+ "task": "jazzband_icalevents_pr27",
802
+ "reason": "historically archived; no release cache reference"
803
+ },
804
+ {
805
+ "task": "jazzband_icalevents_pr29",
806
+ "reason": "historically archived; no release cache reference"
807
+ },
808
+ {
809
+ "task": "jazzband_icalevents_pr30",
810
+ "reason": "historically archived; no release cache reference"
811
+ },
812
+ {
813
+ "task": "jazzband_icalevents_pr34",
814
+ "reason": "historically archived; no release cache reference"
815
+ },
816
+ {
817
+ "task": "jazzband_icalevents_pr49",
818
+ "reason": "historically archived; no release cache reference"
819
+ },
820
+ {
821
+ "task": "jazzband_icalevents_pr52",
822
+ "reason": "historically archived; no release cache reference"
823
+ },
824
+ {
825
+ "task": "jazzband_icalevents_pr57",
826
+ "reason": "historically archived; no release cache reference"
827
+ },
828
+ {
829
+ "task": "jazzband_icalevents_pr66",
830
+ "reason": "historically archived; no release cache reference"
831
+ },
832
+ {
833
+ "task": "jazzband_icalevents_pr75",
834
+ "reason": "historically archived; no release cache reference"
835
+ },
836
+ {
837
+ "task": "jborean93_pypsrp_pr135",
838
+ "reason": "historically archived; no release cache reference"
839
+ },
840
+ {
841
+ "task": "jborean93_pypsrp_pr136",
842
+ "reason": "historically archived; no release cache reference"
843
+ },
844
+ {
845
+ "task": "joblib_joblib_pr1576",
846
+ "reason": "historically archived; no release cache reference"
847
+ },
848
+ {
849
+ "task": "joblib_threadpoolctl_pr52",
850
+ "reason": "historically archived; no release cache reference"
851
+ },
852
+ {
853
+ "task": "joke2k_faker_pr1072",
854
+ "reason": "historically archived; no release cache reference"
855
+ },
856
+ {
857
+ "task": "jonathf_numpoly_pr43",
858
+ "reason": "historically archived; no release cache reference"
859
+ },
860
+ {
861
+ "task": "jonathf_numpoly_pr67",
862
+ "reason": "historically archived; no release cache reference"
863
+ },
864
+ {
865
+ "task": "joseph-roitman_pytest-snapshot_pr55",
866
+ "reason": "historically archived; no release cache reference"
867
+ },
868
+ {
869
+ "task": "joseph-roitman_pytest-snapshot_pr56",
870
+ "reason": "historically archived; no release cache reference"
871
+ },
872
+ {
873
+ "task": "jpadilla_pyjwt_pr1001",
874
+ "reason": "historically archived; no release cache reference"
875
+ },
876
+ {
877
+ "task": "jsh9_pydoclint_pr154",
878
+ "reason": "historically archived; no release cache reference"
879
+ },
880
+ {
881
+ "task": "jsh9_pydoclint_pr249",
882
+ "reason": "historically archived; no release cache reference"
883
+ },
884
+ {
885
+ "task": "jsh9_pydoclint_pr267",
886
+ "reason": "historically archived; no release cache reference"
887
+ },
888
+ {
889
+ "task": "jsh9_pydoclint_pr80",
890
+ "reason": "historically archived; no release cache reference"
891
+ },
892
+ {
893
+ "task": "jupyter-server_jupyter-scheduler_pr513",
894
+ "reason": "historically archived; no release cache reference"
895
+ },
896
+ {
897
+ "task": "jxtech_wechatpy_pr167",
898
+ "reason": "historically archived; no release cache reference"
899
+ },
900
+ {
901
+ "task": "jxtech_wechatpy_pr228",
902
+ "reason": "historically archived; no release cache reference"
903
+ },
904
+ {
905
+ "task": "jxtech_wechatpy_pr301",
906
+ "reason": "historically archived; no release cache reference"
907
+ },
908
+ {
909
+ "task": "jxtech_wechatpy_pr537",
910
+ "reason": "historically archived; no release cache reference"
911
+ },
912
+ {
913
+ "task": "keboola_python-component_pr67",
914
+ "reason": "historically archived; no release cache reference"
915
+ },
916
+ {
917
+ "task": "kurtbrose_pyjks_pr19",
918
+ "reason": "historically archived; no release cache reference"
919
+ },
920
+ {
921
+ "task": "linkml_prefixmaps_pr42",
922
+ "reason": "historically archived; no release cache reference"
923
+ },
924
+ {
925
+ "task": "madpah_serializable_pr178",
926
+ "reason": "historically archived; no release cache reference"
927
+ },
928
+ {
929
+ "task": "magmax_python-inquirer_pr526",
930
+ "reason": "historically archived; no release cache reference"
931
+ },
932
+ {
933
+ "task": "matan1008_pykdebugparser_pr5",
934
+ "reason": "historically archived; no release cache reference"
935
+ },
936
+ {
937
+ "task": "matan1008_pykdebugparser_pr6",
938
+ "reason": "historically archived; no release cache reference"
939
+ },
940
+ {
941
+ "task": "materialsproject_custodian_pr337",
942
+ "reason": "historically archived; no release cache reference"
943
+ },
944
+ {
945
+ "task": "materialsvirtuallab_monty_pr688",
946
+ "reason": "historically archived; no release cache reference"
947
+ },
948
+ {
949
+ "task": "materialsvirtuallab_monty_pr742",
950
+ "reason": "historically archived; no release cache reference"
951
+ },
952
+ {
953
+ "task": "matiasb_python-unidiff_pr100",
954
+ "reason": "historically archived; no release cache reference"
955
+ },
956
+ {
957
+ "task": "matiasb_python-unidiff_pr106",
958
+ "reason": "historically archived; no release cache reference"
959
+ },
960
+ {
961
+ "task": "matiasb_python-unidiff_pr110",
962
+ "reason": "historically archived; no release cache reference"
963
+ },
964
+ {
965
+ "task": "matiasb_python-unidiff_pr46",
966
+ "reason": "historically archived; no release cache reference"
967
+ },
968
+ {
969
+ "task": "matiasb_python-unidiff_pr66",
970
+ "reason": "historically archived; no release cache reference"
971
+ },
972
+ {
973
+ "task": "matiasb_python-unidiff_pr90",
974
+ "reason": "historically archived; no release cache reference"
975
+ },
976
+ {
977
+ "task": "matiasb_python-unidiff_pr95",
978
+ "reason": "historically archived; no release cache reference"
979
+ },
980
+ {
981
+ "task": "meadsteve_lagom_pr6",
982
+ "reason": "historically archived; no release cache reference"
983
+ },
984
+ {
985
+ "task": "meerk40t_svgelements_pr24",
986
+ "reason": "historically archived; no release cache reference"
987
+ },
988
+ {
989
+ "task": "mehcode_python-xmlsec_pr67",
990
+ "reason": "historically archived; no release cache reference"
991
+ },
992
+ {
993
+ "task": "mesonbuild_meson-python_pr143",
994
+ "reason": "historically archived; no release cache reference"
995
+ },
996
+ {
997
+ "task": "mido_mido_pr161",
998
+ "reason": "historically archived; no release cache reference"
999
+ },
1000
+ {
1001
+ "task": "miketheman_pytest-socket_pr227",
1002
+ "reason": "historically archived; no release cache reference"
1003
+ },
1004
+ {
1005
+ "task": "mill1000_midea-msmart_pr228",
1006
+ "reason": "historically archived; no release cache reference"
1007
+ },
1008
+ {
1009
+ "task": "mill1000_midea-msmart_pr240",
1010
+ "reason": "historically archived; no release cache reference"
1011
+ },
1012
+ {
1013
+ "task": "mindee_mindee-api-python_pr72",
1014
+ "reason": "historically archived; no release cache reference"
1015
+ },
1016
+ {
1017
+ "task": "mirumee_ariadne-codegen_pr129",
1018
+ "reason": "historically archived; no release cache reference"
1019
+ },
1020
+ {
1021
+ "task": "mongodb_mongo-python-driver_pr2006",
1022
+ "reason": "historically archived; no release cache reference"
1023
+ },
1024
+ {
1025
+ "task": "mwclient_mwclient_pr352",
1026
+ "reason": "historically archived; no release cache reference"
1027
+ },
1028
+ {
1029
+ "task": "napari_napari-plugin-engine_pr2",
1030
+ "reason": "historically archived; no release cache reference"
1031
+ },
1032
+ {
1033
+ "task": "napari_napari-plugin-engine_pr3",
1034
+ "reason": "historically archived; no release cache reference"
1035
+ },
1036
+ {
1037
+ "task": "olofk_fusesoc_pr293",
1038
+ "reason": "historically archived; no release cache reference"
1039
+ },
1040
+ {
1041
+ "task": "olofk_fusesoc_pr411",
1042
+ "reason": "historically archived; no release cache reference"
1043
+ },
1044
+ {
1045
+ "task": "olofk_fusesoc_pr431",
1046
+ "reason": "historically archived; no release cache reference"
1047
+ },
1048
+ {
1049
+ "task": "olzhasar_pytest-watcher_pr9",
1050
+ "reason": "historically archived; no release cache reference"
1051
+ },
1052
+ {
1053
+ "task": "omni-us_jsonargparse_pr276",
1054
+ "reason": "historically archived; no release cache reference"
1055
+ },
1056
+ {
1057
+ "task": "onnx_tensorflow-onnx_pr880",
1058
+ "reason": "historically archived; no release cache reference"
1059
+ },
1060
+ {
1061
+ "task": "open-feature_python-sdk_pr415",
1062
+ "reason": "historically archived; no release cache reference"
1063
+ },
1064
+ {
1065
+ "task": "osantana_prettyconf_pr29",
1066
+ "reason": "historically archived; no release cache reference"
1067
+ },
1068
+ {
1069
+ "task": "pallets-eco_wtforms_pr413",
1070
+ "reason": "historically archived; no release cache reference"
1071
+ },
1072
+ {
1073
+ "task": "pallets_jinja_pr1064",
1074
+ "reason": "historically archived; no release cache reference"
1075
+ },
1076
+ {
1077
+ "task": "pallets_werkzeug_pr2091",
1078
+ "reason": "historically archived; no release cache reference"
1079
+ },
1080
+ {
1081
+ "task": "pamelafox_axe-playwright-python_pr3",
1082
+ "reason": "historically archived; no release cache reference"
1083
+ },
1084
+ {
1085
+ "task": "pdm-project_pdm-backend_pr45",
1086
+ "reason": "historically archived; no release cache reference"
1087
+ },
1088
+ {
1089
+ "task": "peterbe_hashin_pr91",
1090
+ "reason": "historically archived; no release cache reference"
1091
+ },
1092
+ {
1093
+ "task": "pinterest_pymemcache_pr468",
1094
+ "reason": "historically archived; no release cache reference"
1095
+ },
1096
+ {
1097
+ "task": "praw-dev_praw_pr591",
1098
+ "reason": "historically archived; no release cache reference"
1099
+ },
1100
+ {
1101
+ "task": "praw-dev_praw_pr603",
1102
+ "reason": "historically archived; no release cache reference"
1103
+ },
1104
+ {
1105
+ "task": "praw-dev_prawcore_pr122",
1106
+ "reason": "historically archived; no release cache reference"
1107
+ },
1108
+ {
1109
+ "task": "praw-dev_prawcore_pr16",
1110
+ "reason": "historically archived; no release cache reference"
1111
+ },
1112
+ {
1113
+ "task": "praw-dev_prawcore_pr28",
1114
+ "reason": "historically archived; no release cache reference"
1115
+ },
1116
+ {
1117
+ "task": "praw-dev_prawcore_pr45",
1118
+ "reason": "historically archived; no release cache reference"
1119
+ },
1120
+ {
1121
+ "task": "pyapp-kit_app-model_pr10",
1122
+ "reason": "historically archived; no release cache reference"
1123
+ },
1124
+ {
1125
+ "task": "pydantic_bump-pydantic_pr72",
1126
+ "reason": "historically archived; no release cache reference"
1127
+ },
1128
+ {
1129
+ "task": "pyinfra-dev_pyinfra_pr231",
1130
+ "reason": "historically archived; no release cache reference"
1131
+ },
1132
+ {
1133
+ "task": "pyout_pyout_pr98",
1134
+ "reason": "historically archived; no release cache reference"
1135
+ },
1136
+ {
1137
+ "task": "pypa_installer_pr94",
1138
+ "reason": "historically archived; no release cache reference"
1139
+ },
1140
+ {
1141
+ "task": "pytest-dev_pytest-bdd_pr415",
1142
+ "reason": "historically archived; no release cache reference"
1143
+ },
1144
+ {
1145
+ "task": "python-distro_distro_pr130",
1146
+ "reason": "historically archived; no release cache reference"
1147
+ },
1148
+ {
1149
+ "task": "python-distro_distro_pr181",
1150
+ "reason": "historically archived; no release cache reference"
1151
+ },
1152
+ {
1153
+ "task": "python-distro_distro_pr39",
1154
+ "reason": "historically archived; no release cache reference"
1155
+ },
1156
+ {
1157
+ "task": "python-distro_distro_pr51",
1158
+ "reason": "historically archived; no release cache reference"
1159
+ },
1160
+ {
1161
+ "task": "python-distro_distro_pr86",
1162
+ "reason": "historically archived; no release cache reference"
1163
+ },
1164
+ {
1165
+ "task": "python-distro_distro_pr89",
1166
+ "reason": "historically archived; no release cache reference"
1167
+ },
1168
+ {
1169
+ "task": "python-distro_distro_pr93",
1170
+ "reason": "historically archived; no release cache reference"
1171
+ },
1172
+ {
1173
+ "task": "python-openapi_openapi-core_pr482",
1174
+ "reason": "historically archived; no release cache reference"
1175
+ },
1176
+ {
1177
+ "task": "python-openapi_openapi-spec-validator_pr8",
1178
+ "reason": "historically archived; no release cache reference"
1179
+ },
1180
+ {
1181
+ "task": "python-poetry_cleo_pr157",
1182
+ "reason": "historically archived; no release cache reference"
1183
+ },
1184
+ {
1185
+ "task": "python-poetry_poetry-core_pr114",
1186
+ "reason": "historically archived; no release cache reference"
1187
+ },
1188
+ {
1189
+ "task": "python-poetry_poetry-core_pr486",
1190
+ "reason": "historically archived; no release cache reference"
1191
+ },
1192
+ {
1193
+ "task": "python-poetry_poetry-core_pr500",
1194
+ "reason": "historically archived; no release cache reference"
1195
+ },
1196
+ {
1197
+ "task": "python-poetry_poetry-core_pr672",
1198
+ "reason": "historically archived; no release cache reference"
1199
+ },
1200
+ {
1201
+ "task": "python-poetry_poetry-core_pr771",
1202
+ "reason": "historically archived; no release cache reference"
1203
+ },
1204
+ {
1205
+ "task": "python-poetry_poetry-core_pr827",
1206
+ "reason": "historically archived; no release cache reference"
1207
+ },
1208
+ {
1209
+ "task": "python-poetry_poetry-core_pr835",
1210
+ "reason": "historically archived; no release cache reference"
1211
+ },
1212
+ {
1213
+ "task": "python-poetry_poetry-core_pr870",
1214
+ "reason": "historically archived; no release cache reference"
1215
+ },
1216
+ {
1217
+ "task": "python-trio_flake8-async_pr16",
1218
+ "reason": "historically archived; no release cache reference"
1219
+ },
1220
+ {
1221
+ "task": "python-trio_flake8-async_pr242",
1222
+ "reason": "historically archived; no release cache reference"
1223
+ },
1224
+ {
1225
+ "task": "python-trio_flake8-async_pr321",
1226
+ "reason": "historically archived; no release cache reference"
1227
+ },
1228
+ {
1229
+ "task": "python-trio_flake8-async_pr376",
1230
+ "reason": "historically archived; no release cache reference"
1231
+ },
1232
+ {
1233
+ "task": "python-trio_flake8-async_pr8",
1234
+ "reason": "historically archived; no release cache reference"
1235
+ },
1236
+ {
1237
+ "task": "radish-bdd_radish_pr309",
1238
+ "reason": "historically archived; no release cache reference"
1239
+ },
1240
+ {
1241
+ "task": "radish-bdd_radish_pr451",
1242
+ "reason": "historically archived; no release cache reference"
1243
+ },
1244
+ {
1245
+ "task": "ramonhagenaars_jsons_pr59",
1246
+ "reason": "historically archived; no release cache reference"
1247
+ },
1248
+ {
1249
+ "task": "rbw_pysnow_pr11",
1250
+ "reason": "historically archived; no release cache reference"
1251
+ },
1252
+ {
1253
+ "task": "rbw_pysnow_pr20",
1254
+ "reason": "historically archived; no release cache reference"
1255
+ },
1256
+ {
1257
+ "task": "rbw_pysnow_pr24",
1258
+ "reason": "historically archived; no release cache reference"
1259
+ },
1260
+ {
1261
+ "task": "rbw_pysnow_pr41",
1262
+ "reason": "historically archived; no release cache reference"
1263
+ },
1264
+ {
1265
+ "task": "rbw_pysnow_pr46",
1266
+ "reason": "historically archived; no release cache reference"
1267
+ },
1268
+ {
1269
+ "task": "rbw_pysnow_pr48",
1270
+ "reason": "historically archived; no release cache reference"
1271
+ },
1272
+ {
1273
+ "task": "rbw_pysnow_pr50",
1274
+ "reason": "historically archived; no release cache reference"
1275
+ },
1276
+ {
1277
+ "task": "rbw_pysnow_pr52",
1278
+ "reason": "historically archived; no release cache reference"
1279
+ },
1280
+ {
1281
+ "task": "rbw_pysnow_pr54",
1282
+ "reason": "historically archived; no release cache reference"
1283
+ },
1284
+ {
1285
+ "task": "rbw_pysnow_pr59",
1286
+ "reason": "historically archived; no release cache reference"
1287
+ },
1288
+ {
1289
+ "task": "rbw_pysnow_pr67",
1290
+ "reason": "historically archived; no release cache reference"
1291
+ },
1292
+ {
1293
+ "task": "rbw_pysnow_pr71",
1294
+ "reason": "historically archived; no release cache reference"
1295
+ },
1296
+ {
1297
+ "task": "rbw_pysnow_pr73",
1298
+ "reason": "historically archived; no release cache reference"
1299
+ },
1300
+ {
1301
+ "task": "rbw_pysnow_pr82",
1302
+ "reason": "historically archived; no release cache reference"
1303
+ },
1304
+ {
1305
+ "task": "rbw_pysnow_pr91",
1306
+ "reason": "historically archived; no release cache reference"
1307
+ },
1308
+ {
1309
+ "task": "richardkiss_pycoin_pr392",
1310
+ "reason": "historically archived; no release cache reference"
1311
+ },
1312
+ {
1313
+ "task": "richardkiss_pycoin_pr400",
1314
+ "reason": "historically archived; no release cache reference"
1315
+ },
1316
+ {
1317
+ "task": "rokam_midea-local_pr200",
1318
+ "reason": "historically archived; no release cache reference"
1319
+ },
1320
+ {
1321
+ "task": "rokam_midea-local_pr21",
1322
+ "reason": "historically archived; no release cache reference"
1323
+ },
1324
+ {
1325
+ "task": "rokam_midea-local_pr22",
1326
+ "reason": "historically archived; no release cache reference"
1327
+ },
1328
+ {
1329
+ "task": "rokam_midea-local_pr25",
1330
+ "reason": "historically archived; no release cache reference"
1331
+ },
1332
+ {
1333
+ "task": "rokam_midea-local_pr36",
1334
+ "reason": "historically archived; no release cache reference"
1335
+ },
1336
+ {
1337
+ "task": "rokam_midea-local_pr40",
1338
+ "reason": "historically archived; no release cache reference"
1339
+ },
1340
+ {
1341
+ "task": "ros-infrastructure_rosdep_pr949",
1342
+ "reason": "historically archived; no release cache reference"
1343
+ },
1344
+ {
1345
+ "task": "sangwonl_python-mpegdash_pr20",
1346
+ "reason": "historically archived; no release cache reference"
1347
+ },
1348
+ {
1349
+ "task": "sangwonl_python-mpegdash_pr21",
1350
+ "reason": "historically archived; no release cache reference"
1351
+ },
1352
+ {
1353
+ "task": "scikit-rf_scikit-rf_pr1158",
1354
+ "reason": "historically archived; no release cache reference"
1355
+ },
1356
+ {
1357
+ "task": "scrapinghub_andi_pr3",
1358
+ "reason": "historically archived; no release cache reference"
1359
+ },
1360
+ {
1361
+ "task": "scrapy_w3lib_pr148",
1362
+ "reason": "historically archived; no release cache reference"
1363
+ },
1364
+ {
1365
+ "task": "scrapy_w3lib_pr243",
1366
+ "reason": "historically archived; no release cache reference"
1367
+ },
1368
+ {
1369
+ "task": "sethmlarson_truststore_pr100",
1370
+ "reason": "historically archived; no release cache reference"
1371
+ },
1372
+ {
1373
+ "task": "sethmlarson_truststore_pr113",
1374
+ "reason": "historically archived; no release cache reference"
1375
+ },
1376
+ {
1377
+ "task": "sethmlarson_truststore_pr132",
1378
+ "reason": "historically archived; no release cache reference"
1379
+ },
1380
+ {
1381
+ "task": "sethmlarson_truststore_pr149",
1382
+ "reason": "historically archived; no release cache reference"
1383
+ },
1384
+ {
1385
+ "task": "sethmlarson_truststore_pr152",
1386
+ "reason": "historically archived; no release cache reference"
1387
+ },
1388
+ {
1389
+ "task": "sethmlarson_truststore_pr157",
1390
+ "reason": "historically archived; no release cache reference"
1391
+ },
1392
+ {
1393
+ "task": "sethmlarson_truststore_pr164",
1394
+ "reason": "historically archived; no release cache reference"
1395
+ },
1396
+ {
1397
+ "task": "siliconcompiler_lambdapdk_pr102",
1398
+ "reason": "historically archived; no release cache reference"
1399
+ },
1400
+ {
1401
+ "task": "singingwolfboy_flask-dance_pr406",
1402
+ "reason": "historically archived; no release cache reference"
1403
+ },
1404
+ {
1405
+ "task": "sissaschool_xmlschema_pr297",
1406
+ "reason": "historically archived; no release cache reference"
1407
+ },
1408
+ {
1409
+ "task": "snowflakedb_snowflake-cli_pr673",
1410
+ "reason": "historically archived; no release cache reference"
1411
+ },
1412
+ {
1413
+ "task": "spacetelescope_pysiaf_pr177",
1414
+ "reason": "historically archived; no release cache reference"
1415
+ },
1416
+ {
1417
+ "task": "spacetelescope_pysiaf_pr277",
1418
+ "reason": "historically archived; no release cache reference"
1419
+ },
1420
+ {
1421
+ "task": "spacetelescope_pysiaf_pr293",
1422
+ "reason": "historically archived; no release cache reference"
1423
+ },
1424
+ {
1425
+ "task": "spacetelescope_pysiaf_pr296",
1426
+ "reason": "historically archived; no release cache reference"
1427
+ },
1428
+ {
1429
+ "task": "spacetelescope_pysiaf_pr318",
1430
+ "reason": "historically archived; no release cache reference"
1431
+ },
1432
+ {
1433
+ "task": "spdx_tools-python_pr188",
1434
+ "reason": "historically archived; no release cache reference"
1435
+ },
1436
+ {
1437
+ "task": "sphinx-contrib_confluencebuilder_pr1128",
1438
+ "reason": "historically archived; no release cache reference"
1439
+ },
1440
+ {
1441
+ "task": "sphinx-contrib_confluencebuilder_pr774",
1442
+ "reason": "historically archived; no release cache reference"
1443
+ },
1444
+ {
1445
+ "task": "splitio_python-client_pr162",
1446
+ "reason": "historically archived; no release cache reference"
1447
+ },
1448
+ {
1449
+ "task": "splitio_python-client_pr174",
1450
+ "reason": "historically archived; no release cache reference"
1451
+ },
1452
+ {
1453
+ "task": "stchris_untangle_pr90",
1454
+ "reason": "historically archived; no release cache reference"
1455
+ },
1456
+ {
1457
+ "task": "stravalib_stravalib_pr480",
1458
+ "reason": "historically archived; no release cache reference"
1459
+ },
1460
+ {
1461
+ "task": "stravalib_stravalib_pr567",
1462
+ "reason": "historically archived; no release cache reference"
1463
+ },
1464
+ {
1465
+ "task": "stravalib_stravalib_pr569",
1466
+ "reason": "historically archived; no release cache reference"
1467
+ },
1468
+ {
1469
+ "task": "stravalib_stravalib_pr584",
1470
+ "reason": "historically archived; no release cache reference"
1471
+ },
1472
+ {
1473
+ "task": "stravalib_stravalib_pr595",
1474
+ "reason": "historically archived; no release cache reference"
1475
+ },
1476
+ {
1477
+ "task": "stravalib_stravalib_pr604",
1478
+ "reason": "historically archived; no release cache reference"
1479
+ },
1480
+ {
1481
+ "task": "stravalib_stravalib_pr627",
1482
+ "reason": "historically archived; no release cache reference"
1483
+ },
1484
+ {
1485
+ "task": "stravalib_stravalib_pr636",
1486
+ "reason": "historically archived; no release cache reference"
1487
+ },
1488
+ {
1489
+ "task": "stravalib_stravalib_pr684",
1490
+ "reason": "historically archived; no release cache reference"
1491
+ },
1492
+ {
1493
+ "task": "swagger-api_swagger-codegen_pr2765",
1494
+ "reason": "historically archived; no release cache reference"
1495
+ },
1496
+ {
1497
+ "task": "swagger-api_swagger-codegen_pr2796",
1498
+ "reason": "historically archived; no release cache reference"
1499
+ },
1500
+ {
1501
+ "task": "swagger-api_swagger-codegen_pr2801",
1502
+ "reason": "historically archived; no release cache reference"
1503
+ },
1504
+ {
1505
+ "task": "swagger-api_swagger-codegen_pr2831",
1506
+ "reason": "historically archived; no release cache reference"
1507
+ },
1508
+ {
1509
+ "task": "swagger-api_swagger-codegen_pr2861",
1510
+ "reason": "historically archived; no release cache reference"
1511
+ },
1512
+ {
1513
+ "task": "swagger-api_swagger-codegen_pr2863",
1514
+ "reason": "historically archived; no release cache reference"
1515
+ },
1516
+ {
1517
+ "task": "swagger-api_swagger-codegen_pr2878",
1518
+ "reason": "historically archived; no release cache reference"
1519
+ },
1520
+ {
1521
+ "task": "swagger-api_swagger-codegen_pr2899",
1522
+ "reason": "historically archived; no release cache reference"
1523
+ },
1524
+ {
1525
+ "task": "swagger-api_swagger-codegen_pr2917",
1526
+ "reason": "historically archived; no release cache reference"
1527
+ },
1528
+ {
1529
+ "task": "swagger-api_swagger-codegen_pr2929",
1530
+ "reason": "historically archived; no release cache reference"
1531
+ },
1532
+ {
1533
+ "task": "swagger-api_swagger-codegen_pr2930",
1534
+ "reason": "historically archived; no release cache reference"
1535
+ },
1536
+ {
1537
+ "task": "swagger-api_swagger-codegen_pr2979",
1538
+ "reason": "historically archived; no release cache reference"
1539
+ },
1540
+ {
1541
+ "task": "swagger-api_swagger-codegen_pr2987",
1542
+ "reason": "historically archived; no release cache reference"
1543
+ },
1544
+ {
1545
+ "task": "swagger-api_swagger-codegen_pr2988",
1546
+ "reason": "historically archived; no release cache reference"
1547
+ },
1548
+ {
1549
+ "task": "swagger-api_swagger-codegen_pr2989",
1550
+ "reason": "historically archived; no release cache reference"
1551
+ },
1552
+ {
1553
+ "task": "swagger-api_swagger-codegen_pr3015",
1554
+ "reason": "historically archived; no release cache reference"
1555
+ },
1556
+ {
1557
+ "task": "swagger-api_swagger-codegen_pr3031",
1558
+ "reason": "historically archived; no release cache reference"
1559
+ },
1560
+ {
1561
+ "task": "swagger-api_swagger-codegen_pr3034",
1562
+ "reason": "historically archived; no release cache reference"
1563
+ },
1564
+ {
1565
+ "task": "swagger-api_swagger-codegen_pr3058",
1566
+ "reason": "historically archived; no release cache reference"
1567
+ },
1568
+ {
1569
+ "task": "swagger-api_swagger-codegen_pr3067",
1570
+ "reason": "historically archived; no release cache reference"
1571
+ },
1572
+ {
1573
+ "task": "swagger-api_swagger-codegen_pr3075",
1574
+ "reason": "historically archived; no release cache reference"
1575
+ },
1576
+ {
1577
+ "task": "swagger-api_swagger-codegen_pr3090",
1578
+ "reason": "historically archived; no release cache reference"
1579
+ },
1580
+ {
1581
+ "task": "swagger-api_swagger-codegen_pr3126",
1582
+ "reason": "historically archived; no release cache reference"
1583
+ },
1584
+ {
1585
+ "task": "swagger-api_swagger-codegen_pr3130",
1586
+ "reason": "historically archived; no release cache reference"
1587
+ },
1588
+ {
1589
+ "task": "swagger-api_swagger-codegen_pr3158",
1590
+ "reason": "historically archived; no release cache reference"
1591
+ },
1592
+ {
1593
+ "task": "tconbeer_sqlfmt_pr148",
1594
+ "reason": "historically archived; no release cache reference"
1595
+ },
1596
+ {
1597
+ "task": "tconbeer_sqlfmt_pr166",
1598
+ "reason": "historically archived; no release cache reference"
1599
+ },
1600
+ {
1601
+ "task": "tconbeer_sqlfmt_pr173",
1602
+ "reason": "historically archived; no release cache reference"
1603
+ },
1604
+ {
1605
+ "task": "tconbeer_sqlfmt_pr194",
1606
+ "reason": "historically archived; no release cache reference"
1607
+ },
1608
+ {
1609
+ "task": "tconbeer_sqlfmt_pr22",
1610
+ "reason": "historically archived; no release cache reference"
1611
+ },
1612
+ {
1613
+ "task": "tconbeer_sqlfmt_pr23",
1614
+ "reason": "historically archived; no release cache reference"
1615
+ },
1616
+ {
1617
+ "task": "tconbeer_sqlfmt_pr24",
1618
+ "reason": "historically archived; no release cache reference"
1619
+ },
1620
+ {
1621
+ "task": "tconbeer_sqlfmt_pr668",
1622
+ "reason": "historically archived; no release cache reference"
1623
+ },
1624
+ {
1625
+ "task": "tconbeer_sqlfmt_pr7",
1626
+ "reason": "historically archived; no release cache reference"
1627
+ },
1628
+ {
1629
+ "task": "tconbeer_sqlfmt_pr703",
1630
+ "reason": "historically archived; no release cache reference"
1631
+ },
1632
+ {
1633
+ "task": "tconbeer_sqlfmt_pr711",
1634
+ "reason": "historically archived; no release cache reference"
1635
+ },
1636
+ {
1637
+ "task": "tefra_xsdata_pr982",
1638
+ "reason": "historically archived; no release cache reference"
1639
+ },
1640
+ {
1641
+ "task": "turner-townsend_flask-pydantic-spec_pr78",
1642
+ "reason": "historically archived; no release cache reference"
1643
+ },
1644
+ {
1645
+ "task": "valohai_valohai-yaml_pr137",
1646
+ "reason": "historically archived; no release cache reference"
1647
+ },
1648
+ {
1649
+ "task": "valohai_valohai-yaml_pr153",
1650
+ "reason": "historically archived; no release cache reference"
1651
+ },
1652
+ {
1653
+ "task": "valohai_valohai-yaml_pr166",
1654
+ "reason": "historically archived; no release cache reference"
1655
+ },
1656
+ {
1657
+ "task": "valohai_valohai-yaml_pr66",
1658
+ "reason": "historically archived; no release cache reference"
1659
+ },
1660
+ {
1661
+ "task": "wbond_asn1crypto_pr138",
1662
+ "reason": "historically archived; no release cache reference"
1663
+ },
1664
+ {
1665
+ "task": "xarray-contrib_datatree_pr107",
1666
+ "reason": "historically archived; no release cache reference"
1667
+ },
1668
+ {
1669
+ "task": "xnuinside_simple-ddl-parser_pr217",
1670
+ "reason": "historically archived; no release cache reference"
1671
+ },
1672
+ {
1673
+ "task": "yuvipanda_ipynb_pr19",
1674
+ "reason": "historically archived; no release cache reference"
1675
+ }
1676
+ ]
1677
+ }
scaleswe_v1.1/repairs.py ADDED
@@ -0,0 +1,1207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Scale SWE repairs learned from task execution and rule review.
2
+
3
+ These repairs are applied by default and skipped by patch.py --no-repairs.
4
+ Conversion and runtime preparation remain in the patcher. The archived task
5
+ reasons and reviewed repair definitions retain their historical behavior.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ import copy
10
+ import hashlib
11
+ import io
12
+ import inspect
13
+ import json
14
+ from pathlib import Path, PurePosixPath
15
+ import re
16
+ import tarfile
17
+
18
+ from validation.contract import files_digest
19
+ from validation.rules.static.task_absolute_path.repair import apply_reviewed_replacements
20
+
21
+ HERE = Path(__file__).resolve().parent
22
+
23
+ APPIUM_IMPORT_TASKS = frozenset({
24
+ 'appium_python-client_pr446',
25
+ 'appium_python-client_pr521',
26
+ 'appium_python-client_pr594',
27
+ })
28
+
29
+ VERIFIER_IMPORT_TASKS = {
30
+ **{task: ('python-client', 'Expose Appium repository test helpers when grading through /tests/score.py.')
31
+ for task in APPIUM_IMPORT_TASKS},
32
+ 'dbcli_pgcli_pr942': ('pgcli', 'Expose the repository root so restored tests.utils imports resolve after the reference removes tests/__init__.py.'),
33
+ 'sbdchd_flake8-pie_pr93': ('flake8-pie', 'Import flake8_pie from the task checkout instead of the installed package, which lacks the selected feature modules.'),
34
+ **{f'sbdchd_flake8-pie_pr{pr}': ('flake8-pie', 'Import flake8_pie from the task checkout: the image installs a non-editable copy of a later commit in site-packages, so the unchanged checkout also scored 1 under no-op.')
35
+ for pr in (40, 42, 44, 54)},
36
+ 'joseph-roitman_pytest-snapshot_pr30': ('pytest-snapshot', 'Load the pytest_snapshot plugin from the task checkout: the image installs a non-editable copy of a later commit in site-packages, so the unchanged checkout also scored 1 under no-op.'),
37
+ # No-op reward 1 in the 2026-10-08 full run: the selected tests imported the package installed in
38
+ # site-packages instead of the task checkout, so the unchanged checkout passed. Confirmed by the
39
+ # 2026-10-10 rerun (job 963978): with the repository root first on PYTHONPATH every reference scores 1
40
+ # and every no-op scores 0.
41
+ 'ethereum_eth-utils_pr78': ('eth-utils', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
42
+ 'ethereum_eth-utils_pr84': ('eth-utils', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
43
+ 'hussein-awala_spark-on-k8s_pr1': ('spark-on-k8s', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
44
+ 'hussein-awala_spark-on-k8s_pr11': ('spark-on-k8s', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
45
+ 'hussein-awala_spark-on-k8s_pr12': ('spark-on-k8s', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
46
+ 'hussein-awala_spark-on-k8s_pr13': ('spark-on-k8s', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
47
+ 'joseph-roitman_pytest-snapshot_pr10': ('pytest-snapshot', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
48
+ 'joseph-roitman_pytest-snapshot_pr13': ('pytest-snapshot', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
49
+ 'joseph-roitman_pytest-snapshot_pr32': ('pytest-snapshot', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
50
+ 'joseph-roitman_pytest-snapshot_pr34': ('pytest-snapshot', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
51
+ 'joseph-roitman_pytest-snapshot_pr36': ('pytest-snapshot', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
52
+ 'lasp_cdflib_pr38': ('cdflib', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
53
+ 'lasp_cdflib_pr49': ('cdflib', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
54
+ 'onnx_tensorflow-onnx_pr832': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
55
+ 'onnx_tensorflow-onnx_pr839': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
56
+ 'onnx_tensorflow-onnx_pr850': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
57
+ 'onnx_tensorflow-onnx_pr867': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
58
+ 'onnx_tensorflow-onnx_pr882': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
59
+ 'onnx_tensorflow-onnx_pr949': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
60
+ 'onnx_tensorflow-onnx_pr968': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
61
+ 'onnx_tensorflow-onnx_pr974': ('tensorflow-onnx', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
62
+ 'pytest-dev_pytest-bdd_pr335': ('pytest-bdd', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
63
+ 'pytest-dev_pytest-bdd_pr398': ('pytest-bdd', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
64
+ 'pytransitions_transitions_pr73': ('transitions', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
65
+ 's4v4g3_otel-extensions-python_pr4': ('otel-extensions-python', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
66
+ 'stephrdev_pytest-isort_pr40': ('pytest-isort', 'Import the package under test from the task checkout instead of the installed site-packages copy, which made the unchanged checkout score 1 under no-op.'),
67
+ }
68
+
69
+ # Tasks archived after the 2026-10-10 recheck (reference, no-op and environment evidence per task); see archived_tasks.json.
70
+ RECHECK_ARCHIVE = json.loads((HERE / 'archived_tasks.json').read_text()) if (HERE / 'archived_tasks.json').is_file() else {}
71
+
72
+ ARCHIVED_TASKS = {
73
+ **{f'matan1008_pykdebugparser_pr{pr}': {
74
+ 'category': 'image-missing-test-dependency',
75
+ 'reason': 'The task image lacks the construct package that the test modules import, so neither the reference nor the no-op run can collect a single test, even with the repository on the import path. Installing it at verification time would make the verifier depend on PyPI; archived until the image is fixed.'}
76
+ for pr in (5, 6)},
77
+ 'biocommons_hgvs_pr699': {
78
+ 'category': 'verifier-external-dependency',
79
+ 'reason': 'The reference verifier requires a connection to the external UTA database at uta.biocommons.org:5432. The service timed out during validation, so test results depend on an unavailable external database. Archived at user request because this verifier dependency is not reliable.'},
80
+ 'biocommons_hgvs_pr775': {
81
+ 'category': 'verifier-external-dependency',
82
+ 'reason': 'The reference verifier requires a connection to the external UTA database at uta.biocommons.org:5432. The service timed out during validation, so test results depend on an unavailable external database. Archived at user request because this verifier dependency is not reliable.'},
83
+ 'kurtbrose_pyjks_pr19': {
84
+ 'category': 'reference-solution-reward-zero',
85
+ 'reason': 'Reference scores 0 because verifier baseline restoration deletes the new tests/expected/custom_entry_passwords.py helper while leaving its import in tests/expected/__init__.py. Pytest fails during collection before executing tests. This is a verifier preparation defect, not evidence of a broken reference implementation. Archived without repair at user request.'},
86
+ 'turner-townsend_flask-pydantic-spec_pr78': {
87
+ 'category': 'verifier-execution-error',
88
+ 'reason': 'Verifier test patch omits tests/common.py defining DemoModelV1, causing no-op collection failure. Reference executes 38 passing tests but scores zero because expected unparameterized selectors do not match parameterized results. Archived without repair at user request.'},
89
+ 'meerk40t_svgelements_pr24': {
90
+ 'category': 'verifier-execution-error',
91
+ 'reason': 'Verifier test patch deletes test/test_distance.py and moves tests to test/test_length.py, but selected test IDs still reference the deleted file. Reference and no-op both execute zero tests. Archived without repair at user request.'},
92
+ }
93
+ ARCHIVED_TASKS = {**RECHECK_ARCHIVE, **ARCHIVED_TASKS}
94
+
95
+ # Reference failures from the 2026-10-08 full run whose gold patch adds or modifies test-support files that the
96
+ # verifier reset discards (2026-10-10 static scan of gold.patch against f2p.patch). The restoration repair applies
97
+ # only to these tasks and to TEST_FIXTURE_REPAIRS; previously validated tasks keep their verifiers unchanged.
98
+ FIXTURE_RESTORATION_TASKS = frozenset({
99
+ 'appium_python-client_pr531',
100
+ 'ariebovenberg_slotscheck_pr93',
101
+ 'audreyr_cookiecutter_pr1419',
102
+ 'audreyr_cookiecutter_pr1468',
103
+ 'audreyr_cookiecutter_pr1874',
104
+ 'audreyr_cookiecutter_pr1981',
105
+ 'audreyr_cookiecutter_pr1995',
106
+ 'audreyr_cookiecutter_pr839',
107
+ 'bottlepy_bottle_pr787',
108
+ 'burnash_gspread_pr1010',
109
+ 'burnash_gspread_pr1012',
110
+ 'burnash_gspread_pr1013',
111
+ 'burnash_gspread_pr1021',
112
+ 'burnash_gspread_pr1030',
113
+ 'burnash_gspread_pr1063',
114
+ 'burnash_gspread_pr1095',
115
+ 'burnash_gspread_pr1138',
116
+ 'burnash_gspread_pr1207',
117
+ 'burnash_gspread_pr1215',
118
+ 'burnash_gspread_pr1225',
119
+ 'burnash_gspread_pr1233',
120
+ 'burnash_gspread_pr1299',
121
+ 'burnash_gspread_pr1305',
122
+ 'burnash_gspread_pr1308',
123
+ 'burnash_gspread_pr1364',
124
+ 'burnash_gspread_pr1392',
125
+ 'burnash_gspread_pr1402',
126
+ 'burnash_gspread_pr1404',
127
+ 'burnash_gspread_pr1417',
128
+ 'burnash_gspread_pr1498',
129
+ 'burnash_gspread_pr945',
130
+ 'businho_pytest-ruff_pr25',
131
+ 'clemense_yourdfpy_pr4',
132
+ 'clld_clldutils_pr93',
133
+ 'cloudtools_troposphere_pr2069',
134
+ 'cookiecutter_cookiecutter_pr1200',
135
+ 'cookiecutter_cookiecutter_pr1468',
136
+ 'cookiecutter_cookiecutter_pr1493',
137
+ 'cookiecutter_cookiecutter_pr1981',
138
+ 'cookiecutter_cookiecutter_pr1995',
139
+ 'dantebben_nox-uv_pr4',
140
+ 'dapr_python-sdk_pr89',
141
+ 'drgarcia1986_simple-settings_pr11',
142
+ 'drgarcia1986_simple-settings_pr8',
143
+ 'eerkunt_terraform-compliance_pr352',
144
+ 'eerkunt_terraform-compliance_pr448',
145
+ 'eerkunt_terraform-compliance_pr563',
146
+ 'executablebooks_myst-nb_pr604',
147
+ 'executablebooks_sphinx-design_pr13',
148
+ 'fonttools_fonttools_pr1970',
149
+ 'fonttools_fonttools_pr2080',
150
+ 'fonttools_fonttools_pr3912',
151
+ 'fortran-lang_fortls_pr49',
152
+ 'globus_globus-sdk-python_pr1179',
153
+ 'globus_globus-sdk-python_pr903',
154
+ 'google_flatbuffers_pr5631',
155
+ 'googleapis_proto-plus-python_pr112',
156
+ 'googleapis_proto-plus-python_pr118',
157
+ 'googlefonts_ufo2ft_pr866',
158
+ 'googlefonts_ufo2ft_pr870',
159
+ 'gorakhargosh_watchdog_pr968',
160
+ 'hadialqattan_pycln_pr120',
161
+ 'hakancelikdev_unimport_pr289',
162
+ 'hhatto_autopep8_pr288',
163
+ 'iterative_gto_pr148',
164
+ 'iterative_gto_pr309',
165
+ 'jackdewinter_pymarkdown_pr1413',
166
+ 'jackdewinter_pymarkdown_pr1414',
167
+ 'jackdewinter_pymarkdown_pr279',
168
+ 'jackdewinter_pymarkdown_pr280',
169
+ 'jackdewinter_pymarkdown_pr455',
170
+ 'jackdewinter_pymarkdown_pr559',
171
+ 'jackdewinter_pymarkdown_pr636',
172
+ 'jackdewinter_pymarkdown_pr80',
173
+ 'jsh9_pydoclint_pr155',
174
+ 'jsh9_pydoclint_pr188',
175
+ 'jsh9_pydoclint_pr192',
176
+ 'jsh9_pydoclint_pr199',
177
+ 'jsh9_pydoclint_pr205',
178
+ 'jsh9_pydoclint_pr206',
179
+ 'jsh9_pydoclint_pr207',
180
+ 'jsh9_pydoclint_pr225',
181
+ 'jsh9_pydoclint_pr227',
182
+ 'jsh9_pydoclint_pr230',
183
+ 'jsh9_pydoclint_pr259',
184
+ 'jsh9_pydoclint_pr260',
185
+ 'jsh9_pydoclint_pr271',
186
+ 'jsh9_pydoclint_pr277',
187
+ 'jxtech_wechatpy_pr328',
188
+ 'jxtech_wechatpy_pr333',
189
+ 'jxtech_wechatpy_pr66',
190
+ 'jxtech_wechatpy_pr69',
191
+ 'jxtech_wechatpy_pr74',
192
+ 'jxtech_wechatpy_pr94',
193
+ 'keboola_python-component_pr63',
194
+ 'localstack_plux_pr28',
195
+ 'ludeeus_awesomeversion_pr290',
196
+ 'mesonbuild_meson-python_pr177',
197
+ 'mesonbuild_meson-python_pr467',
198
+ 'mesonbuild_meson-python_pr569',
199
+ 'mesonbuild_meson-python_pr96',
200
+ 'mitmproxy_mitmproxy_pr4860',
201
+ 'neovim_python-client_pr534',
202
+ 'olofk_fusesoc_pr711',
203
+ 'p1c2u_jsonschema-spec_pr6',
204
+ 'pdm-project_pdm-backend_pr105',
205
+ 'pepkit_peppy_pr489',
206
+ 'pepkit_peppy_pr495',
207
+ 'praw-dev_praw_pr563',
208
+ 'praw-dev_praw_pr575',
209
+ 'praw-dev_praw_pr602',
210
+ 'praw-dev_praw_pr612',
211
+ 'praw-dev_prawcore_pr112',
212
+ 'praw-dev_prawcore_pr116',
213
+ 'praw-dev_prawcore_pr119',
214
+ 'praw-dev_prawcore_pr13',
215
+ 'praw-dev_prawcore_pr15',
216
+ 'praw-dev_prawcore_pr206',
217
+ 'praw-dev_prawcore_pr25',
218
+ 'praw-dev_prawcore_pr26',
219
+ 'praw-dev_prawcore_pr32',
220
+ 'praw-dev_prawcore_pr4',
221
+ 'praw-dev_prawcore_pr42',
222
+ 'praw-dev_prawcore_pr57',
223
+ 'praw-dev_prawcore_pr59',
224
+ 'praw-dev_prawcore_pr61',
225
+ 'praw-dev_prawcore_pr62',
226
+ 'praw-dev_prawcore_pr66',
227
+ 'pydantic_bump-pydantic_pr90',
228
+ 'pyinfra-dev_pyinfra_pr192',
229
+ 'pyinfra-dev_pyinfra_pr194',
230
+ 'pyinfra-dev_pyinfra_pr196',
231
+ 'pypa_pyproject-metadata_pr206',
232
+ 'pypa_pyproject-metadata_pr232',
233
+ 'pypa_twine_pr83',
234
+ 'python-distro_distro_pr106',
235
+ 'python-distro_distro_pr247',
236
+ 'python-distro_distro_pr30',
237
+ 'python-poetry_poetry-core_pr101',
238
+ 'python-poetry_poetry-core_pr108',
239
+ 'python-poetry_poetry-core_pr221',
240
+ 'python-poetry_poetry-core_pr228',
241
+ 'python-poetry_poetry-core_pr368',
242
+ 'python-poetry_poetry-core_pr462',
243
+ 'python-poetry_poetry-core_pr469',
244
+ 'python-poetry_poetry-core_pr57',
245
+ 'python-poetry_poetry-core_pr578',
246
+ 'python-poetry_poetry-core_pr620',
247
+ 'python-poetry_poetry-core_pr629',
248
+ 'python-poetry_poetry-core_pr634',
249
+ 'python-poetry_poetry-core_pr661',
250
+ 'python-poetry_poetry-core_pr666',
251
+ 'python-poetry_poetry-core_pr675',
252
+ 'python-poetry_poetry-core_pr710',
253
+ 'python-poetry_poetry-core_pr734',
254
+ 'python-poetry_poetry-core_pr81',
255
+ 'python-poetry_poetry-core_pr830',
256
+ 'python-poetry_poetry-core_pr874',
257
+ 'python-trio_flake8-async_pr100',
258
+ 'python-trio_flake8-async_pr22',
259
+ 'python-trio_flake8-async_pr34',
260
+ 'python-trio_flake8-async_pr98',
261
+ 'radish-bdd_radish_pr447',
262
+ 'ros-infrastructure_rosdep_pr789',
263
+ 'sigmavirus24_github3.py_pr1199',
264
+ 'sphinx-contrib_confluencebuilder_pr1044',
265
+ 'sphinx-contrib_confluencebuilder_pr769',
266
+ 'sphinx-doc_sphinx-argparse_pr49',
267
+ 'spulec_freezegun_pr119',
268
+ 'tconbeer_sqlfmt_pr16',
269
+ 'tconbeer_sqlfmt_pr221',
270
+ 'tconbeer_sqlfmt_pr25',
271
+ 'tefra_xsdata_pr653',
272
+ 'tlambert03_mkdocs-api-autonav_pr12',
273
+ 'ultrabug_mkdocs-static-i18n_pr183',
274
+ })
275
+
276
+ # Fixture paths confirmed from failure logs in the 2026-10-09 audit; the repair below must still restore each of them.
277
+ TEST_FIXTURE_REPAIRS = {
278
+ 'andialbrecht_sqlparse_pr317': ('tests/files/encoding_utf8.sql',),
279
+ 'audreyr_cookiecutter_pr1692': ('tests/test-generate-context/nested_dict.json',),
280
+ 'audreyr_cookiecutter_pr2010': ('tests/test-generate-context/nested_dict_additional.json',),
281
+ 'awslabs_serverless-application-model_pr1756': ('tests/translator/input/http_api_lambda_auth.yaml',),
282
+ 'awslabs_serverless-application-model_pr2242': ('tests/translator/input/function_with_event_filtering.yaml',),
283
+ 'awslabs_serverless-application-model_pr2261': ('tests/translator/input/http_api_multiple_authorizers.yaml',),
284
+ 'beetbox_beets_pr3641': ('test/rsrc/lyrics/geniuscom/Wutangclancreamlyrics.txt',),
285
+ 'beetbox_beets_pr5352': ('test/rsrc/lyrics/geniuscom/2pacalleyezonmelyrics.txt',),
286
+ 'best-doctor_flake8-class-attributes-order_pr13': ('tests/test_files/special_method.py',),
287
+ 'best-doctor_flake8-functions_pr5': ('tests/test_files/file_pure_function.py',),
288
+ 'bufbuild_protovalidate-python_pr308': ('tests/testdata/string_ext_supplemental.textproto',),
289
+ 'buriy_python-readability_pr190': ('tests/samples/summary-keep-all-images.sample.html',),
290
+ 'butler54_mdformat-frontmatter_pr5': ('tests/simple-md-test.md',),
291
+ 'c4deszes_ldfparser_pr106': ('tests/ldf/ldf_with_sporadic_frames.ldf',),
292
+ 'c4deszes_ldfparser_pr116': ('tests/ldf/j2602_1.ldf',),
293
+ 'c4deszes_ldfparser_pr80': ('tests/ldf/lin_schedules.ldf',),
294
+ 'canonical_operator_pr800': ('test/charms/test_smoke/charmcraft.yaml',),
295
+ 'censys_censys-python_pr312': ('tests/cli/test.xml',),
296
+ 'cookiecutter_cookiecutter_pr1692': ('tests/test-generate-context/nested_dict.json',),
297
+ 'cookiecutter_cookiecutter_pr2010': ('tests/test-generate-context/nested_dict_additional.json',),
298
+ 'cthoyt_pystow_pr17': ('tests/resources/test_1.tsv',),
299
+ 'demisto_demisto-sdk_pr102': ('tests/test_files/indicator-field-exact-scheme.json',),
300
+ 'django-crispy-forms_crispy-bootstrap5_pr151': ('tests/results/modal.html',),
301
+ 'django-crispy-forms_crispy-bootstrap5_pr44': ('tests/results/field_with_buttons.html',),
302
+ 'django-crispy-forms_crispy-bootstrap5_pr81': ('tests/results/alert.html',),
303
+ 'drgarcia1986_simple-settings_pr19': ('tests/samples/simple_yaml_file.yaml',),
304
+ 'fastavro_fastavro_pr482': ('tests/load_schema_test_3/A.avsc',),
305
+ 'fastavro_fastavro_pr491': ('tests/load_schema_test_7/A.avsc',),
306
+ 'fastavro_fastavro_pr492': ('tests/load_schema_test_8/A.avsc',),
307
+ 'fastavro_fastavro_pr497': ('tests/load_schema_test_12/com/namespace/E.avsc',),
308
+ 'fonttools_fonttools_pr1460': ('Tests/feaLib/data/bug1459.fea',),
309
+ 'fonttools_fonttools_pr1669': ('Tests/cffLib/data/TestCFF2Widths.ttx',),
310
+ 'fonttools_fonttools_pr1752': ('Tests/varLib/data/SingleMaster.designspace',),
311
+ 'fonttools_fonttools_pr1827': ('Tests/varLib/data/VarLibLocationTest.designspace',),
312
+ 'fonttools_fonttools_pr1876': ('Tests/feaLib/data/GSUB_error.fea',),
313
+ 'fonttools_fonttools_pr1878': ('Tests/feaLib/data/aalt_chain_contextual_subst.fea',),
314
+ 'fonttools_fonttools_pr1905': ('Tests/feaLib/data/MultipleLookupsPerGlyph2.fea',),
315
+ 'fonttools_fonttools_pr1944': ('Tests/subset/data/TestContextSubstFormat3.ttx',),
316
+ 'fonttools_fonttools_pr1957': ('Tests/varLib/data/FeatureVarsWholeRange.designspace',),
317
+ 'fonttools_fonttools_pr1973': ('Tests/feaLib/data/include/test.ufo/features.fea',),
318
+ 'fonttools_fonttools_pr2112': ('Tests/subset/data/layout_scripts.ttx',),
319
+ 'fonttools_fonttools_pr2161': ('Tests/ttLib/data/woff2_overlap_offcurve_in.ttx',),
320
+ 'fonttools_fonttools_pr2170': ('Tests/feaLib/data/delete_glyph.fea',),
321
+ 'fonttools_fonttools_pr2277': ('Tests/feaLib/data/bug2276.fea',),
322
+ 'fonttools_fonttools_pr2313': ('Tests/subset/data/GPOS_SinglePos_no_value_issue_2312.ttx',),
323
+ 'fonttools_fonttools_pr2432': ('Tests/feaLib/data/variable_scalar_anchor.fea',),
324
+ 'fonttools_fonttools_pr2447': ('Tests/merge/data/CFFFont1.ttx',),
325
+ 'fonttools_fonttools_pr2462': ('Tests/subset/data/BungeeColor-Regular.ttx',),
326
+ 'fonttools_fonttools_pr2555': ('Tests/varLib/instancer/data/SinglePos.ttx',),
327
+ 'fonttools_fonttools_pr2660': ('Tests/varLib/data/TestVariableCOLR.designspace',),
328
+ 'fonttools_fonttools_pr2673': ('Tests/varLib/instancer/data/STATInstancerTest.ttx',),
329
+ 'fonttools_fonttools_pr2684': ('Tests/designspaceLib/data/DS5BreakTest.designspace',),
330
+ 'fonttools_fonttools_pr2776': ('Tests/feaLib/data/variable_bug2772.fea',),
331
+ 'fonttools_fonttools_pr2789': ('Tests/ttLib/data/TestTTF_normalizeLocation.ttx',),
332
+ 'fonttools_fonttools_pr3024': ('Tests/varLib/data/master_no_overwrite_stat/Test-CondensedThin.ttx',),
333
+ 'fonttools_fonttools_pr3027': ('Tests/ttLib/tables/data/COLRv1-clip-boxes-glyf.ttx',),
334
+ 'fonttools_fonttools_pr3034': ('Tests/varLib/data/test_results/InterpolateLayoutGPOS_7_diff.ttx',),
335
+ 'fonttools_fonttools_pr3075': ('Tests/varLib/data/SparseMasters_ufo.designspace',),
336
+ 'fonttools_fonttools_pr3092': ('Tests/ttLib/tables/data/_g_l_y_f_instructions.ttx',),
337
+ 'fonttools_fonttools_pr3115': ('Tests/ttx/data/roundtrip_DSIG_split_at_XML_parse_buffer_size.ttx',),
338
+ 'fonttools_fonttools_pr3305': ('Tests/subset/data/NotoSansCJKjp-Regular.subset.ttx',),
339
+ 'fonttools_fonttools_pr3330': ('Tests/feaLib/data/variable_mark_anchor.fea',),
340
+ 'fonttools_fonttools_pr3506': ('Tests/varLib/instancer/data/CFF2Instancer-VF-1.ttx',),
341
+ 'fonttools_fonttools_pr3520': ('Tests/feaLib/data/duplicate_lookup_reference.fea',),
342
+ 'fonttools_fonttools_pr3559': ('Tests/feaLib/data/contextual_inline_multi_sub_format_2.fea',),
343
+ 'fonttools_fonttools_pr3672': ('Tests/subset/data/cmap14_font1.ttx',),
344
+ 'fonttools_fonttools_pr3726': ('Tests/feaLib/data/contextual_inline_format_4.fea',),
345
+ 'fonttools_fonttools_pr3783': ('Tests/feaLib/data/spec9a2.fea',),
346
+ 'fonttools_fonttools_pr3800': ('Tests/feaLib/data/CursivePosSubtable.fea',),
347
+ 'fonttools_fonttools_pr3803': ('Tests/feaLib/data/single_pos_NULL.fea',),
348
+ 'fonttools_fonttools_pr3804': ('Tests/feaLib/data/class_pair_pos_duplicates.fea',),
349
+ 'fonttools_fonttools_pr3811': ('Tests/feaLib/data/spec8a_2.fea',),
350
+ 'fonttools_fonttools_pr3838': ('Tests/varLib/data/test_results/FeatureVars_latn_dflt_var.ttx',),
351
+ 'fonttools_fonttools_pr3849': ('Tests/feaLib/data/bug3846_1.fea',),
352
+ 'fonttools_fonttools_pr3853': ('Tests/subset/data/PreserveSillyNamesTest.ttx',),
353
+ 'fonttools_fonttools_pr3874': ('Tests/feaLib/data/combo_mult_and_lig_sub.fea',),
354
+ 'fonttools_fonttools_pr3895': ('Tests/feaLib/data/identical_feature_lookups.fea',),
355
+ 'frictionlessdata_frictionless-py_pr1052': ('tests/fixtures/output-markdown/package.md',),
356
+ 'goodmami_wn_pr264': ('tests/data/mini-lmf-1.4.xml',),
357
+ 'google_flatbuffers_pr6217': ('tests/optional_scalars/ScalarStuff.cs',),
358
+ 'googlefonts_ufo2ft_pr289': ('tests/data/TestFont-NoOptimize-CFF.ttx',),
359
+ 'googlefonts_ufo2ft_pr318': ('tests/data/IncompatibleMasters/NewFont-Regular.ufo/metainfo.plist',),
360
+ 'googlefonts_ufo2ft_pr335': ('tests/data/Instructions.ufo/metainfo.plist',),
361
+ 'googlefonts_ufo2ft_pr359': ('tests/data/ColorTest.ufo/metainfo.plist',),
362
+ 'googlefonts_ufo2ft_pr816': ('tests/data/TestVarFont.designspace',),
363
+ 'googlefonts_ufo2ft_pr817': ('tests/data/OTestFont.designspace',),
364
+ 'googlefonts_ufo2ft_pr869': ('tests/data/ContextualAnchorsTest-Regular.ufo/metainfo.plist',),
365
+ 'googlefonts_ufo2ft_pr909': ('tests/data/Bug908.ufo/metainfo.plist',),
366
+ 'googlefonts_ufo2ft_pr942': ('tests/data/BagelFatOne-Regular.designspace',),
367
+ 'goose3_goose3_pr157': ('tests/data/publishdate/test_publish_date_unix_milliseconds.json',),
368
+ 'goose3_goose3_pr180': ('tests/data/title/test_title_sitename_list.json',),
369
+ 'goose3_goose3_pr25': ('tests/data/images/test_base64_image.json',),
370
+ 'goose3_goose3_pr54': ('tests/data/metas/test_meta_encoding.json',),
371
+ 'goose3_goose3_pr60': ('tests/data/title/test_title_splitter.json',),
372
+ 'goose3_goose3_pr64': ('tests/data/opengraph/test_opengraph_type.json',),
373
+ 'goose3_goose3_pr66': ('tests/data/content/test_retry_top_node.json',),
374
+ 'goose3_goose3_pr90': ('tests/data/opengraph/test_opengraph_types_mult.json',),
375
+ 'gruebel_pycep_pr151': ('tests/test_function/examples/array/flatten/result.json',),
376
+ 'gruebel_pycep_pr181': ('tests/examples/basic/06-type/result.json',),
377
+ 'gruebel_pycep_pr320': ('tests/examples/complex/10-extension/result.json',),
378
+ 'gruebel_pycep_pr321': ('tests/examples/complex/11-typed-var/result.json',),
379
+ 'gruebel_pycep_pr322': ('tests/examples/complex/12-nullable-type/result.json',),
380
+ 'gruebel_pycep_pr323': ('tests/examples/complex/13-import/result.json',),
381
+ 'gruebel_pycep_pr326': ('tests/examples/complex/14-type-decorator/result.json',),
382
+ 'gruebel_pycep_pr43': ('tests/test_function/examples/date/date_time_to_epoch/result.json',),
383
+ 'gruebel_pycep_pr52': ('tests/test_function/examples/file/load_json_content/result.json',),
384
+ 'home-assistant-libs_python-supervisor-client_pr152': ('tests/fixtures/host_disk_usage.json',),
385
+ 'iterative_gto_pr269': ('tests/resources/sample_remote_repo_expected_registry.json',),
386
+ 'jackdewinter_pymarkdown_pr1050': ('test/resources/rules/md010/issue-1015.md',),
387
+ 'jacksmith15_json-ref-dict_pr13': ('tests/schemas/slash-key.yaml',),
388
+ 'jacksmith15_json-ref-dict_pr4': ('tests/schemas/bad-circular.yaml',),
389
+ 'jacksmith15_json-ref-dict_pr9': ('tests/schemas/with-tabs.json',),
390
+ 'jazzband_icalevents_pr133': ('test/test_data/google_2024.ics',),
391
+ 'jazzband_icalevents_pr140': ('test/test_data/regression_offset_native.ics',),
392
+ 'jazzband_icalevents_pr79': ('test/test_data/google_tz.ics',),
393
+ 'jazzband_icalevents_pr80': ('test/test_data/cest.ics',),
394
+ 'jazzband_icalevents_pr88': ('test/test_data/rrule_until_only_date.ics',),
395
+ 'jazzband_icalevents_pr91': ('test/test_data/empty.ics',),
396
+ 'jazzband_icalevents_pr92': ('test/test_data/status_and_url.ics',),
397
+ 'jazzband_icalevents_pr95': ('test/test_data/multi_attendee_response.ics',),
398
+ 'jazzband_icalevents_pr97': ('test/test_data/multi_exdate_same_line_ms.ics',),
399
+ 'jazzband_tablib_pr534': ('tests/files/issue_524.yaml',),
400
+ 'joshtemple_lkml_pr10': ('tests/resources/duplicate_top_level_keys.view.lkml',),
401
+ 'jsh9_pydoclint_pr123': ('tests/data/edge_cases/09_double_quotes_in_Literal/google.py',),
402
+ 'jsh9_pydoclint_pr129': ('tests/data/edge_cases/10_absent_return_anno/numpy.py',),
403
+ 'jsh9_pydoclint_pr130': ('tests/data/google/class_attributes/cases.py',),
404
+ 'jsh9_pydoclint_pr153': ('tests/data/edge_cases/12_property_methods_as_class_attr/google.py',),
405
+ 'jsh9_pydoclint_pr86': ('tests/data/edge_cases/06_no_type_hints_in_doc/numpy.py',),
406
+ 'jsh9_pydoclint_pr89': ('tests/data/edge_cases/07_underscore_args/google.py',),
407
+ 'jxtech_wechatpy_pr381': ('tests/fixtures/changeopenid.json',),
408
+ 'jxtech_wechatpy_pr412': ('tests/fixtures/sns_jscode2session.json',),
409
+ 'jxtech_wechatpy_pr456': ('tests/fixtures/enterprise/user_list.json',),
410
+ 'lovesegfault_beautysh_pr36': ('tests/indent_test1_raw.sh',),
411
+ 'marshallward_f90nml_pr120': ('tests/long_string.nml',),
412
+ 'marshallward_f90nml_pr180': ('tests/null_target_end_comma.nml',),
413
+ 'mattijn_topojson_pr141': ('tests/files_topojson/gm.topo.json',),
414
+ 'maxb2_typer-config_pr15': ('tests/config.env',),
415
+ 'maxb2_typer-config_pr17': ('tests/config.ini',),
416
+ 'meeb_whoisit_pr7': ('tests/data_rdap_response_domain3.json',),
417
+ 'meeb_whoisit_pr8': ('tests/data_rdap_response_ip_v4_2.json',),
418
+ 'mesonbuild_meson-python_pr219': ('tests/packages/unknown-user-args-top-level/pyproject.toml',),
419
+ 'mesonbuild_meson-python_pr377': ('tests/packages/purelib-platlib-split/pyproject.toml',),
420
+ 'mesonbuild_meson-python_pr455': ('tests/packages/missing-meson-version/pyproject.toml',),
421
+ 'mesonbuild_meson-python_pr71': ('tests/packages/unsupported-python-version/pyproject.toml',),
422
+ 'mhe_pynrrd_pr40': ('tests/test1d_ascii.nrrd',),
423
+ 'mirumee_ariadne-codegen_pr106': ('tests/main/graphql_schemas/example/pyproject.toml',),
424
+ 'mirumee_ariadne-codegen_pr264': ('tests/main/graphql_schemas/example/pyproject-schema-graphql.toml',),
425
+ 'ncclient_ncclient_pr299': ('test/unit/ssh_config',),
426
+ 'ncclient_ncclient_pr628': ('test/unit/transport/certs/id_ed25519_test.pub',),
427
+ 'nicklambourne_slackblocks_pr32': ('test/samples/blocks/section_block_empty_text_field_value.json',),
428
+ 'nicklambourne_slackblocks_pr49': ('test/samples/messages/message_with_optional_arguments.json',),
429
+ 'olofk_fusesoc_pr645': ('tests/capi2_cores/parser/inheritance.core',),
430
+ 'pappasam_toml-sort_pr91': ('tests/examples/gradle-version-catalog.toml',),
431
+ 'pdm-project_pdm-backend_pr14': ('tests/fixtures/projects/demo-package-include-old/pyproject.toml',),
432
+ 'pdm-project_pdm-backend_pr20': ('tests/fixtures/projects/demo-package-with-deep-path/pyproject.toml',),
433
+ 'pdm-project_pdm-backend_pr21': ('tests/fixtures/projects/demo-cextension/pyproject.toml',),
434
+ 'pdm-project_pdm-backend_pr49': ('tests/fixtures/projects/demo-no-name-nor-version/pyproject.toml',),
435
+ 'pdm-project_pdm-backend_pr5': ('tests/fixtures/projects/demo-legacy/pyproject.toml',),
436
+ 'pdm-project_pdm-backend_pr65': ('tests/fixtures/projects/demo-purelib-with-build/pyproject.toml',),
437
+ 'pdm-project_pdm-backend_pr8': ('tests/fixtures/projects/demo-explicit-package-dir/pyproject.toml',),
438
+ 'python-poetry_poetry-core_pr118': ('tests/fixtures/with_readme_files/README-1.rst',),
439
+ 'python-poetry_poetry-core_pr248': ('tests/fixtures/with_readme_files/README-1.rst',),
440
+ 'radish-bdd_radish_pr457': ('tests/output/unix/filter-when-using-tags-with-args.txt',),
441
+ 'salesforce_cloudsplaining_pr90': ('test/files/shared/test_exclusions_for_service_roles_expected.json',),
442
+ 'sayanarijit_expandvars_pr18': ('tests/data/foo.txt',),
443
+ 'snowflakedb_snowflake-cli_pr505': ('tests/test_data/projects/snowpark_procedures/snowflake.yml',),
444
+ 'spdx_tools-python_pr236': ('tests/data/formats/SPDXSBOMExample.tag',),
445
+ 'stac-utils_stac-pydantic_pr108': ('tests/example_stac/example-item_geometry-null.json',),
446
+ 'stac-utils_stac-pydantic_pr81': ('tests/example_stac/example-collection-list.json',),
447
+ 'tconbeer_sqlfmt_pr126': ('tests/data/unformatted/110_other_identifiers.sql',),
448
+ 'tconbeer_sqlfmt_pr127': ('tests/data/unformatted/111_chained_boolean_between.sql',),
449
+ 'tconbeer_sqlfmt_pr143': ('tests/data/unformatted/201_basic_snapshot.sql',),
450
+ 'tconbeer_sqlfmt_pr146': ('tests/data/preformatted/301_multiline_jinjafmt.sql',),
451
+ 'tconbeer_sqlfmt_pr21': ('tests/data/unit_tests/test_parser/test_multiline_wrapping.sql',),
452
+ 'tconbeer_sqlfmt_pr210': ('tests/data/unformatted/116_chained_booleans.sql',),
453
+ 'tconbeer_sqlfmt_pr216': ('tests/data/unformatted/213_gitlab_fct_sales_funnel_target.sql',),
454
+ 'tconbeer_sqlfmt_pr228': ('tests/data/unformatted/118_within_group.sql',),
455
+ 'tconbeer_sqlfmt_pr233': ('tests/data/unformatted/119_psycopg_placeholders.sql',),
456
+ 'tconbeer_sqlfmt_pr238': ('tests/data/unformatted/120_array_literals.sql',),
457
+ 'tconbeer_sqlfmt_pr47': ('tests/data/unit_tests/test_splitter/test_comment_split_impact_on_open_brackets.sql',),
458
+ 'tilezen_mapbox-vector-tile_pr70': ('tests/error_nested_multipolygon.wkt',),
459
+ 'twitterdev_twitter-python-ads-sdk_pr212': ('tests/fixtures/promoted_tweets_attach.json',),
460
+ 'valohai_valohai-yaml_pr118': ('tests/warning_examples/override-with-extra-fields-warning.yaml',),
461
+ 'valohai_valohai-yaml_pr94': ('tests/error_examples/invalid-indentation-with-valid-YAML.yaml',),
462
+ 'wbond_asn1crypto_pr79': ('tests/fixtures/ocsp-with-pkup.pem',),
463
+ 'xmunoz_sodapy_pr17': ('tests/test_data/successblobres.txt',),
464
+ 'xmunoz_sodapy_pr23': ('tests/test_data/update_song_metadata.txt',),
465
+ 'yu-iskw_dbt-artifacts-parser_pr19': ('tests/resources/v7/jaffle_shop/manifest.json',),
466
+ 'zapier_email-reply-parser_pr14': ('test/emails/email_headers_no_delimiter.txt',),
467
+ 'zapier_email-reply-parser_pr31': ('test/emails/email_2_3.txt',),
468
+ 'zheller_flake8-quotes_pr52': ('test/data/multiline_string.py',),
469
+ 'zheller_flake8-quotes_pr78': ('test/data/doubles_escaped.py',),
470
+ }
471
+
472
+ NETWORK_TIMEOUT_GROUPS = {
473
+ 'swagger-api_swagger-codegen': ((2765, 2796, 2801, 2831, 2863, 2878, 2899, 2929, 2987, 3015, 3031, 3034, 3075, 3090, 3126, 3130), 'public Petstore API'),
474
+ 'elastic_elastic-transport-python': ((26, 55, 127), 'httpbin.org test service'),
475
+ 'developmentseed_rio-stac': ((65, 71), 'remote STAC schemas'),
476
+ 'richardkiss_pycoin': ((392, 400), 'public blockchain transaction services'),
477
+ }
478
+ for _repo, (_prs, _dependency) in NETWORK_TIMEOUT_GROUPS.items():
479
+ for _pr in _prs:
480
+ ARCHIVED_TASKS[f'{_repo}_pr{_pr}'] = {
481
+ 'category': 'verifier-network-dependency',
482
+ 'reason': f'Original reference and no-op verifiers hit the 1800-second limit. Diagnostics on a representative task from this repository confirmed blocking access to {_dependency}. Archived at user request as part of this network-dependent timeout group; this task was not individually diagnosed unless included in the diagnostic sample.'}
483
+
484
+ EXACT_ID_SCORING_TASKS = frozenset({
485
+ 'comtravo_ctparse_pr129',
486
+ 'falconry_falcon_pr2366',
487
+ 'falconry_falcon_pr2503',
488
+ 'falconry_falcon_pr2572',
489
+ 'falconry_falcon_pr2581',
490
+ })
491
+
492
+
493
+ class ExactPytestResults:
494
+ """Record actual pytest identities without rewriting parameter text."""
495
+ def __init__(self, expected):
496
+ self.expected = set(expected)
497
+ self.collected = set()
498
+ self.coverage = {}
499
+ self.phases = {}
500
+ self.failed = False
501
+
502
+ def pytest_collection_finish(self, session):
503
+ self.collected = {item.nodeid for item in session.items}
504
+ for selector in self.expected:
505
+ self.coverage[selector] = ({selector} if selector in self.collected else {
506
+ node for node in self.collected
507
+ if node.startswith(selector + '[') or node.startswith(selector + '::')})
508
+
509
+ def pytest_collectreport(self, report):
510
+ if report.failed:
511
+ self.failed = True
512
+
513
+ def pytest_runtest_logreport(self, report):
514
+ if not report.passed:
515
+ self.failed = True
516
+ self.phases.setdefault(report.nodeid, set()).add(report.when)
517
+
518
+ def all_passed(self, exitcode):
519
+ return (exitcode == 0 and not self.failed and bool(self.expected)
520
+ and set(self.coverage) == self.expected
521
+ and all(self.coverage.values())
522
+ and set().union(*self.coverage.values()) == self.collected
523
+ and all(self.phases.get(node, set()) >= {'setup', 'call', 'teardown'}
524
+ for node in self.collected))
525
+
526
+
527
+ def exact_pytest_score_main():
528
+ import json
529
+ import sys
530
+ import pytest
531
+ with open(sys.argv[1]) as stream:
532
+ expected = json.load(stream)
533
+ if not expected:
534
+ print('<score>0.0</score>', flush=True)
535
+ return
536
+ results = ExactPytestResults(expected)
537
+ exitcode = pytest.main(['-vv', '-o', 'addopts=', '--rootdir=.', *expected], plugins=[results])
538
+ print('<score>1.0</score>' if results.all_passed(exitcode) else '<score>0.0</score>', flush=True)
539
+
540
+
541
+ def repair_exact_test_scoring(contents, task_id):
542
+ if task_id not in EXACT_ID_SCORING_TASKS:
543
+ return []
544
+ replacement = ('"""Score exact pytest identities; require complete successful execution."""\n\n'
545
+ + inspect.getsource(ExactPytestResults) + '\n'
546
+ + inspect.getsource(exact_pytest_score_main)
547
+ + '\nif __name__ == "__main__":\n exact_pytest_score_main()\n')
548
+ text = contents['tests/score.py'].decode()
549
+ if text == replacement:
550
+ return []
551
+ if 'def all_passed(xml_content: str, expected: list[str])' not in text:
552
+ raise ValueError('ScaleSWE scorer changed since exact-ID review')
553
+ contents['tests/score.py'] = replacement.encode()
554
+ return [{'file': 'tests/score.py', 'phase': 'verifier-exact-test-ids',
555
+ 'reason': 'Replace lossy JUnit name reconstruction with exact pytest collection and execution identities. Preserve parameter text, require every selected test and all setup/call/teardown phases to pass, and reject skipped tests, collection failures and unsuccessful pytest exit.'}]
556
+
557
+
558
+ JSONARGPARSE_DEBUG_TASKS = frozenset(
559
+ f'omni-us_jsonargparse_pr{pr}' for pr in
560
+ (162, 164, 176, 177, 186, 190, 194, 197, 198, 210, 211, 214, 216,
561
+ 218, 222, 223, 233, 239, 242, 253, 266, 267, 268, 270, 272, 273))
562
+
563
+ JSONARGPARSE_DEBUG_FIXTURE = '''
564
+
565
+ # ScaleSWE verifier: completion tests must not take ownership of pytest's fd 9.
566
+ import pytest as _scaleswe_pytest
567
+
568
+ @_scaleswe_pytest.fixture(autouse=True)
569
+ def _scaleswe_argcomplete_debug_stream(monkeypatch):
570
+ import io
571
+ import sys
572
+ import argcomplete.io as completion_io
573
+ from argcomplete.finders import CompletionFinder
574
+ class DebugStream(io.StringIO):
575
+ target = None
576
+ def write(self, text):
577
+ self.target.write(text)
578
+ return super().write(text)
579
+ def flush(self):
580
+ self.target.flush()
581
+ return super().flush()
582
+ with DebugStream() as debug_stream:
583
+ def init_debug_stream(self):
584
+ debug_stream.target = sys.stderr
585
+ with monkeypatch.context() as patch:
586
+ patch.setattr(completion_io, 'debug_stream', debug_stream)
587
+ patch.setattr(CompletionFinder, '_init_debug_stream', init_debug_stream)
588
+ yield
589
+ '''
590
+
591
+
592
+ def repair_argcomplete_test_fixture(fixture):
593
+ from pathlib import Path
594
+ path = Path('jsonargparse_tests/test_argcomplete.py')
595
+ text = path.read_text()
596
+ if 'class ArgcompleteTests(' not in text:
597
+ raise ValueError('Jsonargparse completion tests changed since review')
598
+ if 'def _scaleswe_argcomplete_debug_stream(' not in text:
599
+ path.write_text(text + fixture)
600
+
601
+
602
+ def repair_argcomplete_debug_stream(contents, task_id):
603
+ if task_id not in JSONARGPARSE_DEBUG_TASKS:
604
+ return []
605
+ name = 'tests/score.py'
606
+ text = contents[name].decode()
607
+ if 'def repair_argcomplete_test_fixture(' in text:
608
+ return []
609
+ entry = 'if __name__ == "__main__":\n main()'
610
+ if text.count(entry) != 1:
611
+ raise ValueError('Jsonargparse scorer entrypoint changed since review')
612
+ replacement = inspect.getsource(repair_argcomplete_test_fixture) + '\n' + entry.replace(
613
+ ' main()', ' repair_argcomplete_test_fixture(' + repr(JSONARGPARSE_DEBUG_FIXTURE) + ')\n main()')
614
+ contents[name] = text.replace(entry, replacement).encode()
615
+ return [{'file': name, 'phase': 'verifier-debug-stream-isolation',
616
+ 'reason': 'Jsonargparse completion tests invoke argcomplete in the pytest process. Argcomplete wraps fixed descriptor 9 as its debug stream; replacing that owning wrapper closes pytest faulthandler\'s descriptor and crashes after passing tests. Give completion tests an isolated in-memory debug stream that forwards warnings to the stderr selected at autocomplete entry without owning its descriptor, and restore original state after each test. Preserve assertions, selectors, dependency versions, scoring and pytest cleanup.'}]
617
+
618
+
619
+ def repair_werkzeug_request_test():
620
+ from pathlib import Path
621
+ path = Path('tests/test_test.py')
622
+ text = path.read_text()
623
+ old = (' req = builder.get_request()\n'
624
+ ' strict_eq(req.form["foo"], u"bar")\n'
625
+ ' strict_eq(req.files["blafasel"].read(), b"foo")\n')
626
+ new = (' req = builder.get_request()\n'
627
+ ' try:\n'
628
+ ' strict_eq(req.form["foo"], u"bar")\n'
629
+ ' strict_eq(req.files["blafasel"].read(), b"foo")\n'
630
+ ' finally:\n'
631
+ ' req.close() # ScaleSWE: release the uploaded temporary file.\n')
632
+ if text.count(new) == 1:
633
+ return
634
+ if text.count(old) != 1:
635
+ raise ValueError('Werkzeug multipart request test changed since review')
636
+ path.write_text(text.replace(old, new, 1))
637
+
638
+
639
+ def repair_werkzeug_request_cleanup(contents, task_id):
640
+ if task_id != 'pallets_werkzeug_pr1694':
641
+ return []
642
+ name = 'tests/score.py'
643
+ text = contents[name].decode()
644
+ if 'def repair_werkzeug_request_test(' in text:
645
+ return []
646
+ entry = 'if __name__ == "__main__":\n main()'
647
+ if text.count(entry) != 1:
648
+ raise ValueError('Werkzeug scorer entrypoint changed since review')
649
+ replacement = inspect.getsource(repair_werkzeug_request_test) + '\n' + entry.replace(
650
+ ' main()', ' repair_werkzeug_request_test()\n main()')
651
+ contents[name] = text.replace(entry, replacement).encode()
652
+ return [{'file': name, 'phase': 'verifier-request-cleanup',
653
+ 'reason': 'Werkzeug test_environ_builder_content_type leaves its multipart request open, leaking an uploaded SpooledTemporaryFile. Pytest promotes the resulting unraisable ResourceWarning to an error during shutdown after all 211 reference tests pass. Close that request in a finally block after its existing assertions. Preserve assertions, selectors, scoring, dependency versions and warning checks.'}]
654
+
655
+
656
+ PYOUT_CLEANUP_TASKS = frozenset(f'pyout_pyout_pr{pr}' for pr in (108, 109, 111))
657
+
658
+ PYOUT_CLEANUP_FIXTURE = '''
659
+
660
+ # ScaleSWE verifier: release delayed test work after assertions, then join pools.
661
+ @pytest.fixture(autouse=True)
662
+ def _scaleswe_cleanup_delayed_workers(monkeypatch):
663
+ import pyout.interface as interface
664
+ delays, pools = [], []
665
+ original_init = Delayed.__init__
666
+ original_pool = interface.Pool
667
+
668
+ def tracked_init(self, *args, **kwargs):
669
+ original_init(self, *args, **kwargs)
670
+ delays.append(self)
671
+
672
+ class TrackedPool(original_pool):
673
+ def __init__(self, *args, **kwargs):
674
+ super().__init__(*args, **kwargs)
675
+ pools.append(self)
676
+
677
+ monkeypatch.setattr(Delayed, '__init__', tracked_init)
678
+ monkeypatch.setattr(interface, 'Pool', TrackedPool)
679
+ try:
680
+ yield
681
+ finally:
682
+ for delay in delays:
683
+ delay.now = True
684
+ for pool in pools:
685
+ pool.shutdown(wait=True)
686
+ '''
687
+
688
+
689
+ def repair_pyout_test_cleanup(fixture):
690
+ from pathlib import Path
691
+ path = Path('pyout/tests/test_tabular.py')
692
+ text = path.read_text()
693
+ if 'class Delayed(' not in text or 'def test_tabular_write_callable_kb_interrupt_in_exit(' not in text:
694
+ raise ValueError('Pyout delayed-work tests changed since review')
695
+ if 'def _scaleswe_cleanup_delayed_workers(' not in text:
696
+ path.write_text(text + fixture)
697
+
698
+
699
+ def repair_flask_worker_fixtures():
700
+ """Size test-owned pools from the container CPU affinity, then join them."""
701
+ import os
702
+ from pathlib import Path
703
+ try:
704
+ workers = max(1, len(os.sched_getaffinity(0)))
705
+ except (AttributeError, OSError):
706
+ workers = 1
707
+ path = Path('tests/conftest.py')
708
+ text = path.read_text()
709
+ if '# ScaleSWE affinity-aware fixture pools' in text:
710
+ return
711
+ if text.count(' return app') != 2:
712
+ raise ValueError('Flask-executor app fixtures changed since review')
713
+ replacement = """ # ScaleSWE affinity-aware fixture pools
714
+ app.config['EXECUTOR_MAX_WORKERS'] = {workers}
715
+ try:
716
+ yield app
717
+ finally:
718
+ for value in app.extensions.values():
719
+ if isinstance(value, Executor):
720
+ value.shutdown(wait=True)""".format(workers=workers)
721
+ path.write_text(text.replace(' return app', replacement))
722
+ print('ScaleSWE fixture worker count from CPU affinity:', workers, flush=True)
723
+
724
+
725
+ def run_joblib_with_available_cpus(main):
726
+ """Give the old multiprocessing API the verifier's allowed CPU count."""
727
+ import multiprocessing
728
+ import os
729
+ original = multiprocessing.cpu_count
730
+
731
+ def available_cpus():
732
+ try:
733
+ return max(1, len(os.sched_getaffinity(0)))
734
+ except (AttributeError, OSError):
735
+ return 1
736
+
737
+ multiprocessing.cpu_count = available_cpus
738
+ try:
739
+ print('ScaleSWE available verifier CPUs:', available_cpus(), flush=True)
740
+ return main()
741
+ finally:
742
+ multiprocessing.cpu_count = original
743
+
744
+
745
+ RECHUNKER_CPU_TASKS = frozenset(f'pangeo-data_rechunker_pr{pr}' for pr in (22, 27, 30, 48))
746
+
747
+
748
+ def run_dask_with_available_cpus(main):
749
+ import os
750
+ import dask
751
+ try:
752
+ cpus = max(1, len(os.sched_getaffinity(0)))
753
+ except (AttributeError, OSError):
754
+ cpus = 1
755
+ print('ScaleSWE available verifier CPUs:', cpus, flush=True)
756
+ with dask.config.set(num_workers=cpus):
757
+ return main()
758
+
759
+
760
+ def repair_timeout_verifiers(contents, task_id):
761
+ edits = []
762
+ if task_id in ('joblib_joblib_pr449', 'joblib_joblib_pr541'):
763
+ name = 'tests/score.py'
764
+ text = contents[name].decode()
765
+ entry = 'if __name__ == "__main__":\n main()'
766
+ if 'def run_joblib_with_available_cpus(' not in text:
767
+ if text.count(entry) != 1:
768
+ raise ValueError('Joblib score entrypoint changed since review')
769
+ replacement = inspect.getsource(run_joblib_with_available_cpus) + '\n' + entry.replace(
770
+ ' main()', ' run_joblib_with_available_cpus(main)')
771
+ contents[name] = text.replace(entry, replacement).encode()
772
+ edits.append({'file': name, 'phase': 'verifier-cpu-affinity' if task_id == 'joblib_joblib_pr541' else 'verifier-worker-cleanup',
773
+ 'reason': 'Host CPU discovery can size pools for 384 CPUs despite only four allocated CPUs, causing out-of-memory termination. Use process CPU affinity for multiprocessing.cpu_count during verification, falling back to one CPU; preserve Joblib negative n_jobs semantics, explicit worker counts, tests, scoring and the 4096 MB memory limit'})
774
+ if task_id in RECHUNKER_CPU_TASKS:
775
+ name = 'tests/score.py'
776
+ text = contents[name].decode()
777
+ entry = 'if __name__ == "__main__":\n main()'
778
+ if 'def run_dask_with_available_cpus(' not in text:
779
+ if text.count(entry) != 1:
780
+ raise ValueError('Rechunker score entrypoint changed since review')
781
+ replacement = inspect.getsource(run_dask_with_available_cpus) + '\n' + entry.replace(
782
+ ' main()', ' run_dask_with_available_cpus(main)')
783
+ contents[name] = text.replace(entry, replacement).encode()
784
+ edits.append({'file': name, 'phase': 'verifier-cpu-affinity',
785
+ 'reason': 'Dask defaults to 384 host CPUs despite only four allocated CPUs, causing out-of-memory termination. Set verifier Dask num_workers from process CPU affinity, falling back to one CPU, and restore configuration afterward. Preserve tests, assertions, selectors, scoring and the 4096 MB memory limit.'})
786
+ if task_id == 'dchevell_flask-executor_pr12':
787
+ name = 'tests/score.py'
788
+ text = contents[name].decode()
789
+ entry = 'if __name__ == "__main__":\n main()'
790
+ if 'def repair_flask_worker_fixtures(' not in text:
791
+ if text.count(entry) != 1:
792
+ raise ValueError('Flask-executor score entrypoint changed since review')
793
+ replacement = inspect.getsource(repair_flask_worker_fixtures) + '\n' + entry.replace(
794
+ ' main()', ' repair_flask_worker_fixtures()\n main()')
795
+ contents[name] = text.replace(entry, replacement).encode()
796
+ edits.append({'file': name, 'phase': 'verifier-worker-cleanup',
797
+ 'reason': 'Set test fixture default workers from container CPU affinity (one worker if unavailable) and join fixture executors after each test; preserve explicit worker-count tests, assertions, scoring and the 4096 MB task memory limit'})
798
+ if task_id in PYOUT_CLEANUP_TASKS:
799
+ name = 'tests/score.py'
800
+ text = contents[name].decode()
801
+ entry = 'if __name__ == "__main__":\n main()'
802
+ if 'def repair_pyout_test_cleanup(' not in text:
803
+ if text.count(entry) != 1:
804
+ raise ValueError('Pyout score entrypoint changed since review')
805
+ replacement = inspect.getsource(repair_pyout_test_cleanup) + '\n' + entry.replace(
806
+ ' main()', ' repair_pyout_test_cleanup(' + repr(PYOUT_CLEANUP_FIXTURE) + ')\n main()')
807
+ contents[name] = text.replace(entry, replacement).encode()
808
+ edits.append({'file': name, 'phase': 'verifier-worker-cleanup',
809
+ 'reason': 'Release delayed test helper work after assertions and join test-created pools; preserve selected tests and assertions'})
810
+ if task_id == 'rom1504_embedding-reader_pr9':
811
+ name = 'tests/f2p.patch'
812
+ if 'diff --git a/tests/fixtures.py b/tests/fixtures.py' not in contents[name].decode():
813
+ chunks = contents['solution/gold.patch'].decode().split('diff --git ')
814
+ chunk = next(c for c in chunks if c.startswith('a/tests/fixtures.py b/tests/fixtures.py\n'))
815
+ contents[name] += ('\ndiff --git ' + chunk).encode()
816
+ script = contents['tests/test.sh'].decode()
817
+ anchor = 'if [ -s /tests/f2p.patch ]; then'
818
+ if script.count(anchor) != 1:
819
+ raise ValueError('Embedding-reader test preparation changed since review')
820
+ contents['tests/test.sh'] = script.replace(anchor, 'git checkout "$base" -- tests/fixtures.py || exit $?\n' + anchor).encode()
821
+ score = contents['tests/score.py'].decode()
822
+ anchor = 'pytest.main(["-vv",'
823
+ if score.count(anchor) != 1:
824
+ raise ValueError('Embedding-reader grader changed since review')
825
+ contents['tests/score.py'] = score.replace(anchor, 'pytest.main(["-vv", "--forked", "--timeout=60", "--timeout-method=thread",').encode()
826
+ edits.append({'file': 'tests', 'phase': 'verifier-worker-cleanup',
827
+ 'reason': 'Include and consistently restore the missing id2 fixture update; isolate each selected test with pytest-forked and a 60-second test timeout so broken reader worker shutdown cannot wedge the verifier; preserve assertions and reward rules'})
828
+ return edits
829
+
830
+ DEFERRED_IMPORTS = {
831
+ 'keboola_python-component_pr39': {'tests/test_base.py': {'keboola.component.base': ['sync_action']}},
832
+ 'bluetooth-devices_cached-ipaddress_pr26': {'tests/test_ipaddress.py': {'cached_ipaddress': ['*'], 'cached_ipaddress.ipaddress': ['*']}},
833
+ 'semuconsulting_pynmeagps_pr84': {'tests/test_static.py': {'pynmeagps.nmeahelpers': ['leapsecond']}},
834
+ 'semuconsulting_pynmeagps_pr78': {
835
+ 'tests/test_static.py': {'pynmeagps.nmeatypes_decodes': ['*']},
836
+ 'tests/test_stream.py': {'pynmeagps': ['FMI_STATUS']}},
837
+ 'ouhammmourachid_mermaid-py_pr105': {
838
+ 'mermaid/tests/test_flowchart.py': {'mermaid': ['Direction'], 'mermaid.style': ['Style']},
839
+ 'mermaid/tests/test_statediagram.py': {'mermaid': ['Direction'], 'mermaid.style': ['Style']},
840
+ 'mermaid/tests/test_style.py': {'mermaid.style': ['Style']}},
841
+ }
842
+
843
+
844
+ def defer_test_imports(plan):
845
+ """Move reviewed module imports into their consuming functions, preserving test bodies."""
846
+ import ast
847
+ from pathlib import Path
848
+
849
+ for filename, modules in plan.items():
850
+ path = Path(filename)
851
+ source = path.read_text()
852
+ tree = ast.parse(source)
853
+ lines = source.splitlines(keepends=True)
854
+ moved = {}
855
+ edits = []
856
+ for node in tree.body:
857
+ if not isinstance(node, ast.ImportFrom) or node.level or node.module not in modules:
858
+ continue
859
+ selected = modules[node.module]
860
+ remaining = []
861
+ for alias in node.names:
862
+ if '*' in selected or alias.name in selected:
863
+ if alias.name == '*':
864
+ raise ValueError('Cannot defer a wildcard import: ' + filename)
865
+ name = alias.asname or alias.name
866
+ moved[name] = 'from ' + node.module + ' import ' + alias.name + (' as ' + alias.asname if alias.asname else '')
867
+ else:
868
+ remaining.append(alias)
869
+ if len(remaining) != len(node.names):
870
+ replacement = ast.unparse(ast.ImportFrom(module=node.module, names=remaining, level=0)) + '\n' if remaining else ''
871
+ edits.append((node.lineno - 1, node.end_lineno, replacement))
872
+ if not moved:
873
+ raise ValueError('Reviewed imports missing from ' + filename)
874
+
875
+ def visit_scope(nodes):
876
+ for node in nodes:
877
+ if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):
878
+ headers = [*node.decorator_list, node.args, *([node.returns] if node.returns else [])]
879
+ if any(isinstance(n, ast.Name) and n.id in moved for h in headers for n in ast.walk(h)):
880
+ raise ValueError('Deferred import used in function signature: ' + filename)
881
+ used = {n.id for stmt in node.body for n in ast.walk(stmt)
882
+ if isinstance(n, ast.Name) and isinstance(n.ctx, ast.Load)} & moved.keys()
883
+ if used:
884
+ first = node.body[0]
885
+ if isinstance(first, ast.Expr) and isinstance(first.value, ast.Constant) and isinstance(first.value.value, str):
886
+ first = node.body[1]
887
+ indent = ' ' * first.col_offset
888
+ edits.append((first.lineno - 1, first.lineno - 1,
889
+ ''.join(indent + moved[name] + '\n' for name in sorted(used))))
890
+ elif isinstance(node, ast.ClassDef):
891
+ if any(isinstance(n, ast.Name) and n.id in moved for h in [*node.bases, *node.keywords, *node.decorator_list] for n in ast.walk(h)):
892
+ raise ValueError('Deferred import used in class definition: ' + filename)
893
+ visit_scope(node.body)
894
+ elif not isinstance(node, (ast.Import, ast.ImportFrom)):
895
+ if any(isinstance(n, ast.Name) and isinstance(n.ctx, ast.Load) and n.id in moved for n in ast.walk(node)):
896
+ raise ValueError('Deferred import used outside a function: ' + filename)
897
+ visit_scope(tree.body)
898
+ for start, end, replacement in sorted(edits, reverse=True):
899
+ lines[start:end] = [replacement]
900
+ updated = ''.join(lines)
901
+ ast.parse(updated)
902
+ path.write_text(updated)
903
+
904
+
905
+ def repair_collection_imports(contents, task_id):
906
+ if task_id not in DEFERRED_IMPORTS:
907
+ return []
908
+ filename = 'tests/score.py'
909
+ text = contents[filename].decode()
910
+ marker = '# ScaleSWE reviewed call-time test imports v1\n'
911
+ if marker in text:
912
+ return []
913
+ entry = 'if __name__ == "__main__":\n main()'
914
+ if text.count(entry) != 1:
915
+ raise ValueError('ScaleSWE score entrypoint changed since review')
916
+ replacement = marker + inspect.getsource(defer_test_imports) + '\n' + entry.replace(' main()', ' defer_test_imports(' + repr(DEFERRED_IMPORTS[task_id]) + ')\n main()')
917
+ contents[filename] = text.replace(entry, replacement).encode()
918
+ return [{'file': filename, 'phase': 'verifier-call-time-imports',
919
+ 'reason': 'Defer reviewed feature imports to consuming test functions; preserve selected tests, assertions and reward rules',
920
+ 'imports': DEFERRED_IMPORTS[task_id]}]
921
+
922
+
923
+ def repair_verifier_imports(contents, task_id):
924
+ if task_id not in VERIFIER_IMPORT_TASKS:
925
+ return []
926
+ name = 'tests/test.sh'
927
+ text = contents[name].decode()
928
+ command = 'python /tests/score.py /tests/test_ids.json | tee /logs/verifier/score.txt'
929
+ prefix = 'export PYTHONPATH="$PWD${PYTHONPATH:+:$PYTHONPATH}"\n'
930
+ if prefix + command in text:
931
+ return []
932
+ repo, reason = VERIFIER_IMPORT_TASKS[task_id]
933
+ if text.count(command) != 1 or f'cd /workspace/{repo} || exit 1' not in text:
934
+ raise ValueError('Verifier changed since import-path review')
935
+ contents[name] = text.replace(command, prefix + command, 1).encode()
936
+ return [{'file': name, 'old': command, 'new': prefix + command,
937
+ 'phase': 'verifier-import-path',
938
+ 'reason': reason + ' Prepend the repository root to PYTHONPATH; preserve assertions, selectors and reward rules.'}]
939
+
940
+
941
+ SKIPPED_REQUIRED_TESTS = {
942
+ # dimod's test_nocpp_error checks the fallback used when the C++ extension is absent and skips
943
+ # itself when the extension is present. Scale's images build the extension, so the test can never
944
+ # pass there, yet Scale lists it among the required tests; the scorer treats a skip as not passed.
945
+ **{f'dwavesystems_dimod_pr{pr}': ('tests/test_fixedvariablecomposite.py::TestRoofDualityComposite::test_nocpp_error',)
946
+ for pr in (432, 445, 462, 471, 512)},
947
+ }
948
+ SKIPPED_REQUIRED_TEST_REASON = ('Remove a required test that the task image can never run: it checks the fallback used when the dimod C++ '
949
+ 'extension is absent and skips itself because the image builds the extension. The scorer counts a skip as '
950
+ 'not passed, so the reference solution scored 0 although every other required test passed. The remaining '
951
+ 'required tests still cover the change; tests, assertions and the scorer are unchanged.')
952
+
953
+
954
+ def repair_skipped_required_tests(contents, task_id):
955
+ """Drop required test IDs that are skipped by design in the task image."""
956
+ remove = SKIPPED_REQUIRED_TESTS.get(task_id)
957
+ if not remove or 'tests/test_ids.json' not in contents:
958
+ return []
959
+ ids = json.loads(contents['tests/test_ids.json'].decode())
960
+ missing = [t for t in remove if t not in ids]
961
+ if missing:
962
+ raise ValueError(f'Required test list changed since review for {task_id}: {missing}')
963
+ kept = [t for t in ids if t not in remove]
964
+ if not kept:
965
+ raise ValueError(f'No required tests would remain for {task_id}')
966
+ contents['tests/test_ids.json'] = json.dumps(kept).encode()
967
+ return [{'file': 'tests/test_ids.json', 'phase': 'verifier-required-test-skipped', 'removed': list(remove),
968
+ 'reason': SKIPPED_REQUIRED_TEST_REASON}]
969
+
970
+
971
+ RESET_TEST_DIRS = ('test', 'tests', 'Test', 'Tests')
972
+ FIXTURE_RESTORATION_REASON = (
973
+ 'Scoring resets the test directories to the base commit and then applies tests/f2p.patch, the tests that verify '
974
+ 'the fix. The pull request also added or changed test-support files under those directories (fixtures, recorded '
975
+ 'cassettes, sample inputs) that f2p.patch leaves out, so the reset removes them and the selected tests fail even '
976
+ 'with the reference solution. Append the pull request\'s own diff for exactly these files to f2p.patch so the '
977
+ 'verifier restores the complete post-PR test tree. Source files, other tests and the reset itself are unchanged.')
978
+ TEST_MODULE_RE = re.compile(r'(^|/)(test_[^/]*\.py|[^/]*_test\.py|conftest\.py)$')
979
+
980
+
981
+ def _diff_chunks(patch):
982
+ """Map each same-path file diff in a git patch to its chunk text."""
983
+ chunks = {}
984
+ for chunk in patch.split('diff --git ')[1:]:
985
+ header = chunk.splitlines()[0] if chunk.splitlines() else ''
986
+ match = re.fullmatch(r'a/(.+) b/(.+)', header)
987
+ if match and match.group(1) == match.group(2):
988
+ chunks[match.group(1)] = 'diff --git ' + chunk
989
+ return chunks
990
+
991
+
992
+ def _repair_hunk_headers(patch):
993
+ """Make every hunk header state the line counts the hunk actually carries.
994
+
995
+ Some Scale-SWE patches lost their final context line, so the last hunk
996
+ header claims one line more than follows it. git apply rejects such a
997
+ patch and patch(1) only tolerates the shortfall at end of file; once more
998
+ diff chunks follow, patch(1) stops at the junction with "malformed patch".
999
+ Headers whose counts already match are kept byte-identical; correcting the
1000
+ others changes no patch content.
1001
+ """
1002
+ lines = patch.split('\n')
1003
+ out, i = [], 0
1004
+ while i < len(lines):
1005
+ match = re.match(r'@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*)$', lines[i])
1006
+ if not match:
1007
+ out.append(lines[i]); i += 1
1008
+ continue
1009
+ j = i + 1
1010
+ while j < len(lines) and not lines[j].startswith('@@') and not lines[j].startswith('diff --git '):
1011
+ j += 1
1012
+ body = lines[i + 1:j]
1013
+ old = sum(1 for l in body if l[:1] in (' ', '-'))
1014
+ new = sum(1 for l in body if l[:1] in (' ', '+'))
1015
+ declared = (int(match.group(2) or 1), int(match.group(4) or 1))
1016
+ header = lines[i] if declared == (old, new) else f'@@ -{match.group(1)},{old} +{match.group(3)},{new} @@{match.group(5)}'
1017
+ out.append(header); out.extend(body); i = j
1018
+ return '\n'.join(out)
1019
+
1020
+
1021
+ def _in_verifier_reset_scope(path):
1022
+ """Paths ScaleSWE's test.sh checks out from the base commit or removes before applying f2p.patch."""
1023
+ return PurePosixPath(path).parts[0] in RESET_TEST_DIRS or bool(TEST_MODULE_RE.search(path))
1024
+
1025
+
1026
+ def repair_added_test_fixtures(contents, task_id):
1027
+ """Give the verifier the complete post-PR test tree.
1028
+
1029
+ Scoring rebuilds the test tree in two steps: reset the test directories to
1030
+ the base commit (so agent edits to tests are discarded), then apply
1031
+ tests/f2p.patch, the tests that verify the fix. The pull request also added
1032
+ or changed test-support files under those directories (fixtures, recorded
1033
+ cassettes, sample inputs), but f2p.patch leaves them out. The reset removes
1034
+ them, so the selected tests fail even with the reference solution, and no
1035
+ agent can make them pass because anything it creates there is reset too.
1036
+
1037
+ This repair appends the pull request's own diff for exactly those files to
1038
+ f2p.patch: files under the top-level test directories that f2p.patch does
1039
+ not already contain, excluding source files and new test modules that the
1040
+ selected test IDs do not use. Hunk headers whose counts no longer match
1041
+ their lines (a truncated final context line in the dataset) are corrected so
1042
+ the combined patch applies as one. The reset and every other gold change are
1043
+ untouched. It applies only to tasks whose reference failed for this reason.
1044
+ """
1045
+ if task_id not in FIXTURE_RESTORATION_TASKS and task_id not in TEST_FIXTURE_REPAIRS:
1046
+ return []
1047
+ gold = contents.get('solution/gold.patch', b'').decode(errors='replace')
1048
+ if not gold or 'tests/f2p.patch' not in contents:
1049
+ return []
1050
+ f2p = contents['tests/f2p.patch'].decode(errors='replace')
1051
+ gold_chunks, f2p_chunks = _diff_chunks(gold), _diff_chunks(f2p)
1052
+ try:
1053
+ selected_files = {entry.split('::')[0] for entry in json.loads(contents.get('tests/test_ids.json', b'[]').decode())}
1054
+ except ValueError:
1055
+ selected_files = set()
1056
+ restored, additions = [], []
1057
+ for path, chunk in gold_chunks.items():
1058
+ if path in f2p_chunks or 'deleted file mode ' in chunk or not _in_verifier_reset_scope(path):
1059
+ continue
1060
+ if PurePosixPath(path).parts[0] not in RESET_TEST_DIRS:
1061
+ continue # test-named files outside the test trees stay with the gold/f2p split
1062
+ if TEST_MODULE_RE.search(path) and not ('new file mode ' in chunk and path in selected_files):
1063
+ continue
1064
+ additions.append(chunk)
1065
+ restored.append(path)
1066
+ required = set(TEST_FIXTURE_REPAIRS.get(task_id, ()))
1067
+ if required - set(restored) - set(f2p_chunks):
1068
+ raise ValueError(f'Reviewed test fixtures not restored for {task_id}: {sorted(required - set(restored) - set(f2p_chunks))}')
1069
+ if not additions:
1070
+ return []
1071
+ f2p = _repair_hunk_headers(f2p)
1072
+ additions = [_repair_hunk_headers(chunk) for chunk in additions]
1073
+ separator = '' if f2p.endswith('\n') or not f2p else '\n'
1074
+ contents['tests/f2p.patch'] = (f2p + separator + '\n'.join(additions)).encode()
1075
+ return [{'file': 'tests/f2p.patch', 'phase': 'verifier-test-fixture-restoration',
1076
+ 'paths': restored,
1077
+ 'reason': FIXTURE_RESTORATION_REASON}]
1078
+
1079
+
1080
+ # Explicitly reviewed instruction corrections; keep the task's other hints intact.
1081
+ INSTRUCTION_CORRECTIONS = {
1082
+ 'appium_python-client_pr517': (
1083
+ 'b1f4a2dc528408bb6651e198b76963c04069b6558453c3da42233ed54848bea2',
1084
+ [('Attempt to run iOS functional tests in parallel using the `-n` flag.',
1085
+ 'Attempt to run iOS functional tests in parallel using the existing test file:'),
1086
+ ('pytest -n 2 test/functional/ios/find_by_ios_class_chain_tests.py',
1087
+ 'pytest -n 2 /workspace/python-client/test/functional/ios/search_context/find_by_ios_class_chain_tests.py')]),
1088
+ 'beetbox_mediafile_pr86': (
1089
+ '25ddb4ef83ecc81c538044f8bf4ebfeb367be92adb7a8e2eb5ea283927184e24',
1090
+ [('**`mediafile/utils.py`**: For general utility functions and helpers.',
1091
+ '**`/workspace/mediafile/mediafile/utils/`**: For general utility functions and helpers.')]),
1092
+ }
1093
+
1094
+
1095
+ def patch_blob(blob, diagnostic=None, decisions=(), oracle_passed=False, task_id=None, automatic_paths=False):
1096
+ with tarfile.open(fileobj=io.BytesIO(blob)) as archive:
1097
+ members = archive.getmembers()
1098
+ contents = {}
1099
+ for member in members:
1100
+ name = PurePosixPath(member.name)
1101
+ if name.is_absolute() or '..' in name.parts or not (member.isfile() or member.isdir()):
1102
+ raise ValueError('Unsafe task archive member')
1103
+ if member.isfile():
1104
+ if str(name) in contents:
1105
+ raise ValueError('Duplicate archive member')
1106
+ contents[str(name)] = archive.extractfile(member).read()
1107
+ if (decisions or automatic_paths) and files_digest(contents.items()) != (diagnostic or {}).get('agent_baseline', {}).get('task_sha256'):
1108
+ raise ValueError('Task changed since path resolution')
1109
+ original = contents['instruction.md'].decode()
1110
+ changed, edits = (apply_reviewed_replacements(original, diagnostic, decisions, oracle_passed=oracle_passed)
1111
+ if decisions else (original, []))
1112
+ if automatic_paths:
1113
+ from validation.rules.static.task_absolute_path.instruction_paths import automatic
1114
+ changed, edits = automatic(original, diagnostic, oracle_passed)
1115
+ # Task-specific corrections take precedence over generic spans.
1116
+ protected = []
1117
+ for old, _ in INSTRUCTION_CORRECTIONS.get(task_id, ('', []))[1]:
1118
+ start = original.find(old)
1119
+ if start >= 0:
1120
+ protected.append((start, start + len(old)))
1121
+ edits = [e for e in edits if not any(e['start'] < end and start < e['end'] for start, end in protected)]
1122
+ changed = original
1123
+ for edit in reversed(edits):
1124
+ changed = changed[:edit['start']] + edit['new'] + changed[edit['end']:]
1125
+ if task_id in INSTRUCTION_CORRECTIONS:
1126
+ digest, replacements = INSTRUCTION_CORRECTIONS[task_id]
1127
+ if hashlib.sha256(original.encode()).hexdigest() != digest:
1128
+ raise ValueError('Instruction changed since task-specific correction review')
1129
+ for old, new in replacements:
1130
+ if changed.count(old) != 1:
1131
+ raise ValueError('Reviewed instruction correction is missing or conflicts with another edit')
1132
+ changed = changed.replace(old, new, 1)
1133
+ edits.append({'old': old, 'new': new, 'phase': 'explicit-instruction-review',
1134
+ 'reason': 'User-approved minimal path correction; preserve remaining task wording'})
1135
+ edits.extend(repair_verifier_imports(contents, task_id))
1136
+ edits.extend(repair_collection_imports(contents, task_id))
1137
+ edits.extend(repair_timeout_verifiers(contents, task_id))
1138
+ edits.extend(repair_exact_test_scoring(contents, task_id))
1139
+ edits.extend(repair_argcomplete_debug_stream(contents, task_id))
1140
+ edits.extend(repair_werkzeug_request_cleanup(contents, task_id))
1141
+ edits.extend(repair_added_test_fixtures(contents, task_id))
1142
+ edits.extend(repair_skipped_required_tests(contents, task_id))
1143
+ if not edits:
1144
+ return blob, []
1145
+ contents['instruction.md'] = changed.encode()
1146
+ output = io.BytesIO()
1147
+ with tarfile.open(fileobj=output, mode='w') as target:
1148
+ for member in members:
1149
+ member = copy.copy(member)
1150
+ if member.isfile():
1151
+ data = contents[str(PurePosixPath(member.name))]
1152
+ member.size = len(data)
1153
+ target.addfile(member, io.BytesIO(data))
1154
+ else:
1155
+ target.addfile(member)
1156
+ return output.getvalue(), edits
1157
+
1158
+
1159
+
1160
+
1161
+ def apply_release_instructions(blob, task_id):
1162
+ """Replay the published path corrections and post-patcher suffix repair.
1163
+
1164
+ Hash-bound edits are frozen historical findings, not new rule evaluations.
1165
+ """
1166
+ records = _release_instruction_records()
1167
+ suffix = ('You have 1200 seconds to complete this task. Do not cheat by using online '
1168
+ 'solutions or hints specific to this task.\n')
1169
+ with tarfile.open(fileobj=io.BytesIO(blob)) as source:
1170
+ members = source.getmembers()
1171
+ original = source.extractfile('instruction.md').read().decode()
1172
+ text = original if original.endswith(suffix) else original.rstrip() + '\n\n' + suffix
1173
+ edits = []
1174
+ if text != original:
1175
+ edits.append({'file': 'instruction.md', 'phase': 'anti-cheat-instruction',
1176
+ 'reason': 'Replay the historical post-patcher timeout and anti-cheating suffix.'})
1177
+ record = records.get(task_id)
1178
+ if record and hashlib.sha256(text.encode()).hexdigest() != record['after_sha256']:
1179
+ if hashlib.sha256(text.encode()).hexdigest() != record['before_sha256']:
1180
+ raise ValueError('Instruction changed since historical path repair: ' + task_id)
1181
+ for edit in reversed(record['edits']):
1182
+ start, end = edit['start'], edit['end']
1183
+ if text[start:end] != edit['old']:
1184
+ raise ValueError('Historical instruction span differs: ' + task_id)
1185
+ text = text[:start] + edit['new'] + text[end:]
1186
+ if hashlib.sha256(text.encode()).hexdigest() != record['after_sha256']:
1187
+ raise ValueError('Historical instruction repair checksum differs: ' + task_id)
1188
+ edits.append({'file': 'instruction.md', 'phase': 'historical-instruction-path',
1189
+ 'reason': 'Replay the hash-bound published path corrections from historical validation.'})
1190
+ if text == original:
1191
+ return blob, []
1192
+ output = io.BytesIO()
1193
+ with tarfile.open(fileobj=output, mode='w') as target:
1194
+ for member in members:
1195
+ member = copy.copy(member)
1196
+ data = (text.encode() if member.name == 'instruction.md' else source.extractfile(member).read()) if member.isfile() else None
1197
+ if data is not None:
1198
+ member.size = len(data)
1199
+ target.addfile(member, io.BytesIO(data) if data is not None else None)
1200
+ return output.getvalue(), edits
1201
+
1202
+
1203
+ from functools import lru_cache
1204
+
1205
+ @lru_cache(maxsize=1)
1206
+ def _release_instruction_records():
1207
+ return json.loads((HERE / 'instruction_repairs.json').read_text())['tasks']
scaleswe_v1.1/results.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0f0ab7b9fe21d3722273c527715b249edbd499bf4455f9103a5fdd5cfbfde13
3
+ size 2531094
scaleswe_v1.1/run.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "required_rules": [
3
+ "agent_editable_test",
4
+ "artifact_efficiency",
5
+ "build",
6
+ "compose-host-binds",
7
+ "declared_internet_access",
8
+ "declared_workdir",
9
+ "do_not_modify",
10
+ "dockerfile-platform",
11
+ "dockerfile-references",
12
+ "dockerfile-sanity",
13
+ "instruction-suffix",
14
+ "no-cheat-dir",
15
+ "no_behavioural_tests",
16
+ "nop",
17
+ "nop_determinism",
18
+ "nproc",
19
+ "pip-pinning",
20
+ "python_missing_imports",
21
+ "reference",
22
+ "reference_determinism",
23
+ "reference_leaks",
24
+ "repository_history",
25
+ "repository_timestamps",
26
+ "resource-sizes",
27
+ "script_execution_coverage",
28
+ "task-absolute-path",
29
+ "task-timeout",
30
+ "task-toml-schema",
31
+ "test-file-references",
32
+ "verifier_paths",
33
+ "verifier_tamper"
34
+ ],
35
+ "upstream_tasks": 17202,
36
+ "partial_release": true,
37
+ "resources": {
38
+ "cluster": "Barnard (current 16786 tasks); historical Helma records (416 tasks)",
39
+ "cpus": 64,
40
+ "memory_gib": 192,
41
+ "concurrency": 16,
42
+ "gpus": 0
43
+ },
44
+ "resources_scope": "Per shard; 512 shards without an array throttle.",
45
+ "network_mode": "simulated offline, not kernel isolated",
46
+ "ai_detection": "intentionally excluded by user policy",
47
+ "tasks": 17202,
48
+ "current_hashes_verified": 16786,
49
+ "historical_payloads": 416,
50
+ "image_bundles": 16784,
51
+ "image_tasks": 16784,
52
+ "missing_images": 2,
53
+ "image_bytes": 11136800630274,
54
+ "runtime_artifacts": 745,
55
+ "runtime_status": "complete",
56
+ "cached_image_status": "upload_in_progress",
57
+ "cached_image_bundles_ready": 0
58
+ }
scaleswe_v1.1/runtime-manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
scaleswe_v1.1/runtime.py ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Prepare Scale SWE grading tools from observations of pristine task images.
2
+
3
+ Task checkouts and their installed dependencies remain the code under test. Only
4
+ the interpreter, pytest, its plugins and their dependency closure are prepared.
5
+ An observation is required for every image; repository names are not evidence
6
+ that two task images contain the same interpreter or packages.
7
+ """
8
+ import json
9
+ import re
10
+
11
+ from packaging.requirements import Requirement
12
+ from packaging.utils import canonicalize_name
13
+
14
+ from data.utils.verifier_runtime import preparation_command, runtime_reference, runtime_spec
15
+ from validation.contract import files_digest
16
+
17
+
18
+ # Executed only in the pristine image, with the original test.sh PATH and cwd.
19
+ PROBE = r'''
20
+ import ast, configparser, json, os, pathlib, platform, re, sys, sysconfig
21
+ try:
22
+ from importlib import metadata
23
+ except ImportError:
24
+ import importlib_metadata as metadata
25
+ packages = []
26
+ for dist in metadata.distributions():
27
+ direct = dist.read_text('direct_url.json')
28
+ packages.append(dict(name=dist.metadata['Name'], version=dist.version,
29
+ requires=list(dist.requires or []), extras=list(dist.metadata.get_all('Provides-Extra') or []),
30
+ location=str(dist.locate_file('')),
31
+ direct_url=json.loads(direct) if direct else None,
32
+ plugins=[dict(name=p.name, value=p.value) for p in dist.entry_points if p.group == 'pytest11']))
33
+ cwd = pathlib.Path.cwd()
34
+ project_names = {cwd.name}
35
+ for dist in metadata.distributions(path=[str(cwd), str(cwd / 'src')]):
36
+ if dist.metadata['Name']:
37
+ project_names.add(dist.metadata['Name'])
38
+ config = configparser.ConfigParser(interpolation=None, strict=False)
39
+ config.read(str(cwd / 'setup.cfg'))
40
+ if config.has_option('metadata', 'name'):
41
+ project_names.add(config.get('metadata', 'name'))
42
+ if (cwd / 'pyproject.toml').is_file():
43
+ section = None
44
+ for line in (cwd / 'pyproject.toml').read_text().splitlines():
45
+ if line.strip().startswith('['):
46
+ section = line.strip()
47
+ match = re.fullmatch(r"\s*name\s*=\s*['\"]([^'\"]+)['\"]\s*(?:#.*)?", line)
48
+ if section in ('[project]', '[tool.poetry]') and match:
49
+ project_names.add(match.group(1))
50
+ if (cwd / 'setup.py').is_file():
51
+ try:
52
+ tree = ast.parse((cwd / 'setup.py').read_text())
53
+ for node in ast.walk(tree):
54
+ if isinstance(node, ast.Call) and (getattr(node.func, 'id', None) == 'setup' or getattr(node.func, 'attr', None) == 'setup'):
55
+ for kw in node.keywords:
56
+ if kw.arg == 'name' and isinstance(kw.value, ast.Str):
57
+ project_names.add(kw.value.s)
58
+ except (SyntaxError, UnicodeError):
59
+ pass
60
+ print(json.dumps(dict(format='scaleswe-image-observation-v1',
61
+ python=platform.python_version(), implementation=platform.python_implementation(), executable=sys.executable,
62
+ base_executable=getattr(sys, '_base_executable', sys.executable),
63
+ prefix=sys.prefix, base_prefix=sys.base_prefix, sys_path=sys.path,
64
+ architecture=platform.machine(), libc='musl' if 'musl' in platform.libc_ver()[0] else 'gnu',
65
+ cwd=os.getcwd(), project_names=sorted(project_names), packages=packages)))
66
+ '''
67
+
68
+
69
+ def entrypoint(files):
70
+ """Recognize the existing scorer invocation without rewriting grading logic."""
71
+ script = files['tests/test.sh'].decode()
72
+ command = 'python /tests/score.py /tests/test_ids.json'
73
+ if script.count(command) != 1:
74
+ raise ValueError('Scale SWE scorer invocation requires review')
75
+ matches = re.findall(r'^cd (/workspace/[A-Za-z0-9_.+-]+) \|\| exit 1$', script, re.M)
76
+ if len(matches) != 1:
77
+ raise ValueError('Scale SWE working directory requires review')
78
+ if re.search(r'/setup_files|\bactivate\b', script):
79
+ raise ValueError('Scale SWE grading uses an agent setup entrypoint')
80
+ remaining = script.replace(command, '')
81
+ if re.search(r'(^|[;&|]\s*)(?:python[0-9.]*|pytest|pip[0-9.]*)\s', remaining, re.M):
82
+ raise ValueError('Additional Scale SWE grading executable requires review')
83
+ return matches[0], command
84
+
85
+
86
+ def plan(files, observation, *, interpreter='image'):
87
+ """Pin the original grading dependency closure, preserving editable plugins."""
88
+ if (observation.get('returncode') != 0 or not observation.get('source_unchanged')
89
+ or observation.get('source_content_sha256') != files_digest(files.items())):
90
+ raise ValueError('Missing matching pristine Scale SWE observation')
91
+ measured = json.loads(observation['stdout'])
92
+ if interpreter not in ('image', 'standalone'):
93
+ raise ValueError('Unknown interpreter preparation strategy')
94
+ if measured.get('format') != 'scaleswe-image-observation-v1':
95
+ raise ValueError('Unsupported Scale SWE observation')
96
+ if measured.get('implementation', 'CPython') != 'CPython':
97
+ raise ValueError('Original verifier requires a non-CPython runtime')
98
+ cwd, _ = entrypoint(files)
99
+ if measured['cwd'] != cwd:
100
+ raise ValueError('Observed interpreter used a different working directory')
101
+ packages = {}
102
+ project_metadata_variants = {}
103
+ project_names = {canonicalize_name(name) for name in measured.get('project_names', [])}
104
+ def is_project(package):
105
+ direct = package.get('direct_url') or {}
106
+ return (canonicalize_name(package['name']) in project_names
107
+ or package['location'].startswith(cwd + '/') or package['location'] == cwd
108
+ or direct.get('dir_info', {}).get('editable', False))
109
+
110
+ shadowed = {}
111
+ nameless = []
112
+ for package in measured['packages']:
113
+ if not package.get('name'):
114
+ # Broken metadata without a Name cannot be selected by name. pluggy would
115
+ # still load its entry points, so only plugin-free ones are ignored.
116
+ if package.get('plugins'):
117
+ raise ValueError('Nameless installed distribution registers pytest plugins')
118
+ nameless.append(dict(version=package.get('version'), location=package.get('location')))
119
+ continue
120
+ name = canonicalize_name(package['name'])
121
+ if name in packages and packages[name] != package:
122
+ previous = packages[name]
123
+ # The checkout may expose older egg-info than an installed copy of
124
+ # the task package. Preserve both in the task environment and keep
125
+ # metadata's original first-match precedence, never reinstall either
126
+ # as a grading tool. Conflicting plugin entry points need review.
127
+ if is_project(previous) and is_project(package):
128
+ if previous['plugins'] != package['plugins']:
129
+ raise ValueError('Ambiguous installed distribution: ' + name)
130
+ variants = project_metadata_variants.setdefault(name, [
131
+ dict(version=previous['version'], location=previous['location'])])
132
+ variants.append(dict(version=package['version'], location=package['location']))
133
+ continue
134
+ # The probe lists distributions in sys.path order, so the first copy is
135
+ # the one Python imports and metadata resolves. A later copy stays in the
136
+ # task environment; it only blocks preparation if grading needs this
137
+ # distribution (checked below) or if pluggy would load its entry points.
138
+ if package['plugins']:
139
+ raise ValueError('Ambiguous installed distribution: ' + name)
140
+ shadowed.setdefault(name, []).append(dict(version=package['version'], location=package['location']))
141
+ continue
142
+ packages[name] = package
143
+ preserved = set()
144
+ for name, package in packages.items():
145
+ if is_project(package):
146
+ preserved.add(name)
147
+ plugins = [dict(p, distribution=name) for name, package in packages.items() for p in package['plugins']]
148
+ roots = {'pytest'} | {name for name, package in packages.items() if package['plugins']}
149
+ pending = [(name, set()) for name in sorted(roots - preserved)]
150
+ selected = set()
151
+ unsatisfied = []
152
+ processed_extras = {}
153
+ marker_environment = dict(python_version='.'.join(measured['python'].split('.')[:2]),
154
+ python_full_version=measured['python'], sys_platform='linux', platform_system='Linux',
155
+ platform_machine=measured['architecture'], implementation_name='cpython',
156
+ implementation_version=measured['python'], platform_python_implementation='CPython', extra='')
157
+ while pending:
158
+ name, extras = pending.pop()
159
+ if name in preserved:
160
+ continue
161
+ package = packages.get(name)
162
+ if package is None:
163
+ raise ValueError('Missing original grading dependency: ' + name)
164
+ if not extras.issubset(set(package.get('extras', []))):
165
+ raise ValueError('Unknown grading dependency extras: ' + name)
166
+ if name in processed_extras and extras.issubset(processed_extras[name]):
167
+ continue
168
+ processed_extras.setdefault(name, set()).update(extras)
169
+ selected.add(name)
170
+ for value in package['requires']:
171
+ requirement = Requirement(value)
172
+ if requirement.marker and not any(requirement.marker.evaluate({**marker_environment, 'extra': extra})
173
+ for extra in [''] + sorted(processed_extras[name])):
174
+ continue
175
+ dependency = canonicalize_name(requirement.name)
176
+ installed = packages.get(dependency)
177
+ if installed is None:
178
+ raise ValueError('Inconsistent original grading dependency: ' + value)
179
+ if not requirement.specifier.contains(installed['version'], prereleases=True):
180
+ # Upstream shipped this combination. Install exactly the observed
181
+ # versions without dependency resolution (install_no_deps) and let
182
+ # the reference/no-op stages show whether grading works with it.
183
+ unsatisfied.append(dict(distribution=name, requirement=value,
184
+ installed=dependency + '==' + installed['version']))
185
+ if requirement.url:
186
+ raise ValueError('Grading dependency URL requires explicit review: ' + value)
187
+ pending.append((dependency, set(requirement.extras)))
188
+ if 'pytest' in preserved:
189
+ raise ValueError('Task modifies pytest itself; separate grading design required')
190
+ def vendored_later(name):
191
+ # e.g. setuptools appends site-packages/setuptools/_vendor to sys.path: its
192
+ # packaging copy comes after site-packages, so `import packaging` and metadata
193
+ # both resolve to the first copy.
194
+ order = measured['sys_path']
195
+ first = packages[name]['location']
196
+ return first in order and all(
197
+ '_vendor' in copy['location'].split('/') and copy['location'] in order
198
+ and order.index(copy['location']) > order.index(first) for copy in shadowed[name])
199
+ ambiguous = sorted(name for name in selected & set(shadowed) if not vendored_later(name))
200
+ if ambiguous:
201
+ raise ValueError('Ambiguous installed distribution: ' + ambiguous[0])
202
+ requirements = []
203
+ for name in sorted(selected):
204
+ pin = name + '==' + packages[name]['version']
205
+ if (packages[name].get('direct_url') or {}).get('url'):
206
+ pin = vcs_requirement(name, packages[name])
207
+ requirements.append(pin)
208
+ image = {'image_sha256': observation['image_sha256'],
209
+ 'executable': measured['base_executable']}
210
+ for key in ('overlay_sha256', 'deferred_sha256'):
211
+ if key in observation:
212
+ image[key] = observation[key]
213
+ spec = runtime_spec(python=measured['python'], architecture=measured['architecture'],
214
+ libc=measured['libc'], requirements=requirements,
215
+ tools=['pytest'], image_python=image if interpreter == 'image' else None, install_no_deps=True)
216
+ paths = list(dict.fromkeys([cwd + '/src', cwd] + [p for p in measured['sys_path']
217
+ if p and (p.endswith(('/site-packages', '/dist-packages')) or p.startswith(cwd + '/'))]))
218
+ if any(not p.startswith('/') or '..' in p.split('/') for p in paths):
219
+ raise ValueError('Unsafe project import path')
220
+ if any(not re.fullmatch(r'[A-Za-z_][A-Za-z0-9_.]*(?::[A-Za-z_][A-Za-z0-9_.]*)?', p['value']) for p in plugins):
221
+ raise ValueError('Unrecognized pytest plugin entry point')
222
+ if len({p['name'] for p in plugins}) != len(plugins):
223
+ raise ValueError('Conflicting original pytest plugin names')
224
+ return dict(spec=spec, paths=paths, plugins=plugins,
225
+ project_distributions=sorted(preserved), grading_distributions=sorted(selected),
226
+ project_metadata_variants=project_metadata_variants,
227
+ shadowed_distributions=shadowed, unsatisfied_original_requirements=unsatisfied,
228
+ nameless_distributions=nameless)
229
+
230
+
231
+ # Grading distributions installed from a VCS commit in the original image, with the
232
+ # GitHub archive of exactly that commit pinned by sha256 (downloaded twice, checked
233
+ # that the packaged version matches the observation, 2026-11-10).
234
+ VCS_SOURCES = {
235
+ ('https://github.com/syrusakbary/snapshottest.git', '54117098bd756c0fa6936f3bafab4bf85c58e943'): dict(
236
+ version='0.5.0', url='https://github.com/syrusakbary/snapshottest/archive/'
237
+ '54117098bd756c0fa6936f3bafab4bf85c58e943.tar.gz',
238
+ sha256='ae8bf43e05b263dea25b5fa4612bda7ed84aad54a890237d85832dbcd833ff97'),
239
+ ('https://github.com/Teemu/pytest-sugar.git', 'ee02ada200026f4bfabf2252c6c59b08f5564255'): dict(
240
+ version='0.9.4', url='https://github.com/Teemu/pytest-sugar/archive/'
241
+ 'ee02ada200026f4bfabf2252c6c59b08f5564255.tar.gz',
242
+ sha256='c25915aa706df66eec825af9376dfbef2f4dee96a96dbd58ebe537295f8734e9'),
243
+ }
244
+
245
+
246
+ def vcs_requirement(name, package):
247
+ """Install a VCS-installed grading distribution from its pinned commit archive."""
248
+ direct = package.get('direct_url') or {}
249
+ vcs = direct.get('vcs_info') or {}
250
+ source = VCS_SOURCES.get((direct.get('url'), vcs.get('commit_id')))
251
+ if vcs.get('vcs') != 'git' or source is None or source['version'] != package['version']:
252
+ raise ValueError('Non-index grading distribution needs a pinned source: ' + name)
253
+ return name + ' @ ' + source['url'] + '#sha256=' + source['sha256']
254
+
255
+
256
+ def plugin_loader_module(plugins):
257
+ """Install the plugin guard after pluggy loads, never during early .pth setup."""
258
+ return ('''import sys
259
+ from importlib.machinery import PathFinder
260
+
261
+ PLUGINS = ''' + repr(plugins) + '''
262
+
263
+ def install(pluggy):
264
+ try:
265
+ from importlib import metadata
266
+ except ImportError:
267
+ import importlib_metadata as metadata
268
+ try:
269
+ from pluggy._manager import DistFacade
270
+ except ImportError:
271
+ from pluggy.manager import DistFacade
272
+ original_load = pluggy.PluginManager.load_setuptools_entrypoints
273
+
274
+ def load(self, group, name=None):
275
+ if group != 'pytest11':
276
+ return original_load(self, group, name)
277
+ count = 0
278
+ for entry in PLUGINS:
279
+ key = entry['name']
280
+ if ((name is not None and name != key) or self.get_plugin(key) or self.is_blocked(key)):
281
+ continue
282
+ plugin = metadata.EntryPoint(name=key, value=entry['value'], group=group).load()
283
+ self.register(plugin, name=key)
284
+ self._plugin_distinfo.append((plugin, DistFacade(metadata.distribution(entry['distribution']))))
285
+ count += 1
286
+ return count
287
+
288
+ pluggy.PluginManager.load_setuptools_entrypoints = load
289
+
290
+ class Loader:
291
+ def __init__(self, original):
292
+ self.original = original
293
+ def create_module(self, spec):
294
+ return self.original.create_module(spec) if hasattr(self.original, 'create_module') else None
295
+ def exec_module(self, module):
296
+ self.original.exec_module(module)
297
+ install(module)
298
+
299
+ class Finder:
300
+ @staticmethod
301
+ def find_spec(name, path=None, target=None):
302
+ if name != 'pluggy':
303
+ return None
304
+ spec = PathFinder.find_spec(name, path)
305
+ if spec is None:
306
+ return None
307
+ sys.meta_path.remove(Finder)
308
+ spec.loader = Loader(spec.loader)
309
+ return spec
310
+
311
+ if 'pluggy' in sys.modules:
312
+ install(sys.modules['pluggy'])
313
+ else:
314
+ sys.meta_path.insert(0, Finder)
315
+ ''')
316
+
317
+
318
+ def prepared_files(files, spec, catalog, *, observation, image_source=None):
319
+ from data.scaleswe.patch import VERIFIER_VENV, VERIFIER_VENV_SETUP, project_paths_module
320
+ reviewed = plan(files, observation, interpreter='image' if 'image_python' in spec else 'standalone')
321
+ if spec != reviewed['spec']:
322
+ raise ValueError('Runtime differs from observed grading dependency closure')
323
+ if any(k in files for k in ('tests/setup.sh', 'tests/ot-verifier-runtime.json',
324
+ 'tests/ot_project_paths.py', 'tests/ot_plugin_allowlist.py')):
325
+ raise ValueError('Existing Scale SWE runtime setup requires composition review')
326
+ _, command = entrypoint(files)
327
+ result = dict(files)
328
+ result.update(runtime_reference(spec, catalog, image_source=image_source))
329
+ result['tests/setup.sh'] = ('#!/bin/bash\nset -euo pipefail\n' +
330
+ preparation_command(spec, phase='verifier', image_source=image_source) + '\n' +
331
+ ': "${OT_VERIFIER_PYTHON:?trusted controller runtime required}"\n' + VERIFIER_VENV_SETUP +
332
+ 'cp /tests/ot_plugin_allowlist.py "$ot_site/ot_plugin_allowlist.py"\n' +
333
+ 'cat > ' + VERIFIER_VENV + '/bin/pytest <<\'OT_CLEAN_PYTEST\'\n'
334
+ '#!/bin/sh\nexec ' + VERIFIER_VENV + '/bin/python -I -m pytest "$@"\nOT_CLEAN_PYTEST\n' +
335
+ 'chmod 755 ' + VERIFIER_VENV + '/bin/pytest\n' +
336
+ 'ln -s pytest ' + VERIFIER_VENV + '/bin/py.test\n').encode()
337
+ # Do not discover additional pytest plugins from the agent's site-packages.
338
+ # Explicit original plugins include editable task plugins, which are tested
339
+ # from their submitted project paths rather than copied into the runtime.
340
+ invocation = ('PATH=' + VERIFIER_VENV + '/bin:"${OT_VERIFIER_BIN:?trusted runtime required}:$PATH" '
341
+ 'PYTEST_DISABLE_PLUGIN_AUTOLOAD= PYTEST_PLUGINS= ' + VERIFIER_VENV +
342
+ '/bin/python -I /tests/score.py /tests/test_ids.json')
343
+ result['tests/test.sh'] = files['tests/test.sh'].decode().replace(command, invocation).encode()
344
+ result['tests/ot_project_paths.py'] = (project_paths_module(reviewed['paths']) + '\nimport ot_plugin_allowlist\n').encode()
345
+ result['tests/ot_plugin_allowlist.py'] = plugin_loader_module(reviewed['plugins']).encode()
346
+ return result
scaleswe_v1.1/runtime_prepare.py ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Online dependency preparation for Scale SWE, without running task grading."""
2
+ import json
3
+ import os
4
+ from pathlib import Path
5
+ import shlex
6
+ import subprocess
7
+ import tarfile
8
+ import tempfile
9
+
10
+ from data.scaleswe.runtime import PROBE, entrypoint, plan, prepared_files
11
+ from harbor_patches.verifier_bundle import digest, spec_id, verify, verify_source_archive, validate_archive
12
+ from hpc.offline_prep.image_python_runtime import command, source_image, stage_source
13
+ from validation.contract import files_digest
14
+
15
+
16
+ class ObservationError(RuntimeError):
17
+ """Retain measured metadata when a dependency recipe needs review."""
18
+ def __init__(self, message, observation):
19
+ super().__init__(message)
20
+ self.observation = observation
21
+
22
+
23
+ def prepare(files, image, cache, *, source_digest, uv='uv'):
24
+ """Observe a pristine image, invoke setup --prepare and check compatibility.
25
+
26
+ Return a controller-side preparation receipt suitable for the patcher's
27
+ selections file. The image must already be prepared; this function never
28
+ builds images, initializes a checkout, runs a solution or invokes tests.
29
+ """
30
+ image, cache = Path(image).resolve(), Path(cache).resolve()
31
+ if files_digest(files.items()) != source_digest:
32
+ raise ValueError('Source payload digest differs before preparation')
33
+ cwd, _ = entrypoint(files)
34
+ binding = {'image_sha256': digest(image)}
35
+ if image.with_suffix('.deferred.json').is_file():
36
+ binding.update(overlay_sha256=digest(image.with_suffix('.overlay.img')),
37
+ deferred_sha256=digest(image.with_suffix('.deferred.json')))
38
+ with tempfile.TemporaryDirectory(prefix='scaleswe-prepare-', dir=os.environ.get('TMPDIR')) as temporary:
39
+ scratch = Path(temporary)
40
+ pristine = stage_source(source_image({'image_python': binding}, image, scratch=scratch), scratch)
41
+ prefix = ('export PATH=/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/bin:'
42
+ '/opt/conda/envs/testbed/bin:/opt/conda/bin:$PATH; cd ' + shlex.quote(cwd) +
43
+ ' && python -c ' + shlex.quote(PROBE))
44
+ run = subprocess.run(command(pristine, scratch, 'bash', '--noprofile', '--norc', '-c', prefix),
45
+ capture_output=True, text=True, timeout=180)
46
+ observation = dict(returncode=run.returncode, stdout=run.stdout, stderr=run.stderr,
47
+ source_unchanged=True, source_content_sha256=source_digest, **binding)
48
+ if run.returncode:
49
+ raise RuntimeError('Pristine interpreter observation failed: ' + run.stderr[-12000:]
50
+ + '\n' + run.stdout[-12000:])
51
+ try:
52
+ reviewed = plan(files, observation)
53
+ except ValueError as error:
54
+ raise ObservationError(str(error), observation) from error
55
+ native_id = spec_id(reviewed['spec'])
56
+ # Reuse a verified exact-image artifact first. Otherwise a standalone
57
+ # interpreter with the SAME patch version permits reuse across images.
58
+ native_record = cache / (native_id + '.json')
59
+ reusable = False
60
+ if native_record.is_file():
61
+ record = json.loads(native_record.read_text())
62
+ verify(record, cache)
63
+ reusable = True
64
+ if not reusable:
65
+ measured = json.loads(observation['stdout'])
66
+ available = json.loads(subprocess.check_output(
67
+ [uv, 'python', 'list', '--all-versions', '--output-format', 'json'], text=True))
68
+ target = 'cpython-' + measured['python'] + '-linux-' + measured['architecture'] + '-' + measured['libc']
69
+ if any(item['key'] == target for item in available):
70
+ reviewed = plan(files, observation, interpreter='standalone')
71
+ spec = reviewed['spec']
72
+ generated = prepared_files(files, spec, None, observation=observation)
73
+ setup = scratch / 'tests/setup.sh'
74
+ setup.parent.mkdir()
75
+ setup.write_bytes(generated['tests/setup.sh'])
76
+ image_cache = scratch / 'source-images'
77
+ image_cache.mkdir()
78
+ for suffix, field in (('.sif', 'image_sha256'), ('.overlay.img', 'overlay_sha256'),
79
+ ('.deferred.json', 'deferred_sha256')):
80
+ if field in binding:
81
+ (image_cache / (binding['image_sha256'] + suffix)).symlink_to(image.with_suffix(suffix))
82
+ env = {**os.environ, 'OT_RUNTIME_CACHE': str(cache), 'OT_RUNTIME_IMAGE_CACHE': str(image_cache)}
83
+ run = subprocess.run(['bash', str(setup), '--prepare'], env=env, capture_output=True,
84
+ text=True, timeout=1800)
85
+ if run.returncode:
86
+ raise RuntimeError('Setup --prepare failed: ' + run.stderr[-12000:])
87
+ reference = json.loads((setup.parent / 'ot-verifier-runtime.json').read_text())
88
+ archive = verify(reference, cache)
89
+ validate_archive(archive)
90
+ record = json.loads((cache / (reference['id'] + '.json')).read_text())
91
+ runtime = scratch / 'runtime'
92
+ runtime.mkdir()
93
+ # verify() returns the SquashFS runtime image; the smoke test unpacks its
94
+ # checksum-verified source archive instead.
95
+ with tarfile.open(verify_source_archive(record, cache)) as packed:
96
+ packed.extractall(runtime, filter='data')
97
+ smoke = subprocess.run(command(pristine, scratch, runtime / 'python/bin/python3', '-I', '-c',
98
+ 'import platform, pytest, ssl; assert platform.python_version() == ' + repr(spec['python'])),
99
+ capture_output=True, text=True, timeout=120)
100
+ compatibility = dict(image_sha256=binding['image_sha256'], archive_sha256=record['archive_sha256'],
101
+ returncode=smoke.returncode, stdout=smoke.stdout, stderr=smoke.stderr)
102
+ if smoke.returncode:
103
+ raise RuntimeError('Runtime is incompatible with source image: ' + smoke.stderr)
104
+ for suffix, field in (('.sif', 'image_sha256'), ('.overlay.img', 'overlay_sha256'),
105
+ ('.deferred.json', 'deferred_sha256')):
106
+ if field in binding and digest(image.with_suffix(suffix)) != binding[field]:
107
+ raise ValueError('Pristine image changed during preparation')
108
+ return dict(runtime_id=record['id'], observation=observation, plan=reviewed,
109
+ runtime_compatibility=compatibility, runtime=record,
110
+ prepare_returncode=run.returncode, network='online preparation, no grading')
scaleswe_v1.1/tasks.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3895b34ee6a422024fe0e556bae92e4cfe0a1c766970e9eba38a1dd640530d52
3
+ size 366127038
scaleswe_v1.1/tasks/r1.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3895b34ee6a422024fe0e556bae92e4cfe0a1c766970e9eba38a1dd640530d52
3
+ size 366127038
scaleswe_v1.1/upstream_source.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repository": "PrimeIntellect/Scale-SWE-Verified",
3
+ "revision": "8935f8e55244fd56080cdb8dcd0819a57e8a003c",
4
+ "files": [
5
+ {
6
+ "path": "data/train-00000-of-00002.parquet",
7
+ "bytes": 109110619,
8
+ "sha256": "0adeb2c24fc54ca14434bd41d685a22a0213cba97476083f6bc6b7ae26d30985"
9
+ },
10
+ {
11
+ "path": "data/train-00001-of-00002.parquet",
12
+ "bytes": 107886797,
13
+ "sha256": "575efa5ea634c7eace3ed3c26fd496f3d04a1a8fbc75a32d66c830eb52f0ffd7"
14
+ }
15
+ ],
16
+ "adapter_files": {
17
+ "conversion_score.py": "7de17a9ba612b569894ff0c95b5331de8c0011cc7e5f1d7705bfad47f9076819",
18
+ "conversion_restore.sh": "ae1c68f0c260659bb1420a6b493a56dbac97e77a237744ef1c95ab486d46a6d0"
19
+ },
20
+ "conversion_hash_evidence": "All 17,202 converted task archive hashes match the original source hashes in historical run 2026-10-14-scaleswe-historical-audit, published at e77e80246668e100171168fa369012fd68f3d53a."
21
+ }
scaleswe_v1.1/v1/README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # scaleswe_v1.1 v1
2
+
3
+ **Cached-image upload is in progress.** Task payloads, recorded results, and all 745 prepared runtime artifacts are available. The environment-image manifest currently marks pending uploads explicitly; it will be replaced after the full cache is verified.
4
+
5
+ This is a partial baseline audit release, not a fully validated training selection. `tasks.parquet` and `tasks/r1.parquet` contain all 17,202 payloads; `archive.parquet` contains the 416 historically excluded tasks. Use `v1/selection.parquet` for the strict selection, which is currently empty. All 16,786 current tasks have an incomplete reference-leak check (16,649 execution errors, 137 blocked). Stage-level pass counts do not establish complete validation.
6
+
7
+ Current tasks were produced with `patch.py --no-repairs` and the mandatory offline policy, with the validation pipeline's recorded deterministic repairs replayed. All 16,786 current payload content hashes were checked against their result rows. Historical outcomes are retained for accounting, not current offline evidence: their original measured payload hashes and offline execution are unverified. Historical payloads are the archived tasks from the pinned baseline export. Standard check columns hold both groups' statuses; provenance columns distinguish their evidence.
8
+
9
+ Cached environment images are in `cached_images/manifest.json`; prepared runtimes are referenced in `runtime-manifest.json` and stored in the repository's shared `runtimes/` directory. Missing or invalid artifacts remain explicit in those manifests. The validation reports include infrastructure errors and reference failures. The 14,018 verifier-path findings also need review, because many involve the converter-generated `ot_project_paths.py`.
10
+
11
+ ## Dataset stats
12
+
13
+ | Measure | Value |
14
+ | --- | --- |
15
+ | Upstream tasks | 17202 |
16
+ | Tasks with results | 17202 |
17
+ | Kept tasks | 0 |
18
+ | Flagged tasks | 14804 |
19
+ | Unresolved tasks | 2398 |
20
+ | Original images | not recorded |
21
+ | Current shared images | not recorded |
22
+
23
+ ## Dataset characteristics
24
+
25
+ Classification not recorded.
26
+
27
+ ## Validation rules
28
+
29
+ | Rule | Total tasks | Passed | Failed | Warning | Automatically repaired | Unresolved | Not applicable | Repair not recorded |
30
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- |
31
+ | agent_editable_test | 17202 | 16708 (97.1%) | 78 (0.5%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 17202 (100.0%) |
32
+ | artifact_efficiency | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
33
+ | build | 17202 | 16649 (96.8%) | 1 (0.0%) | 0 (0.0%) | 0 (0.0%) | 552 (3.2%) | 0 (0.0%) | 0 (0.0%) |
34
+ | compose-host-binds | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
35
+ | declared_internet_access | 17202 | 16649 (96.8%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 553 (3.2%) | 0 (0.0%) | 0 (0.0%) |
36
+ | declared_workdir | 17202 | 16649 (96.8%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 553 (3.2%) | 0 (0.0%) | 0 (0.0%) |
37
+ | do_not_modify | 17202 | 142 (0.8%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 16644 (96.8%) | 0 (0.0%) |
38
+ | dockerfile-platform | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
39
+ | dockerfile-references | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 17202 (100.0%) |
40
+ | dockerfile-sanity | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
41
+ | instruction-suffix | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 16786 (97.6%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
42
+ | no-cheat-dir | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
43
+ | no_behavioural_tests | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
44
+ | nop | 17202 | 16910 (98.3%) | 65 (0.4%) | 0 (0.0%) | 0 (0.0%) | 227 (1.3%) | 0 (0.0%) | 0 (0.0%) |
45
+ | nop_determinism | 17202 | 16590 (96.4%) | 8 (0.0%) | 0 (0.0%) | 0 (0.0%) | 604 (3.5%) | 0 (0.0%) | 0 (0.0%) |
46
+ | nproc | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
47
+ | pip-pinning | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
48
+ | python_missing_imports | 17202 | 16775 (97.5%) | 11 (0.1%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
49
+ | reference | 17202 | 14324 (83.3%) | 2651 (15.4%) | 0 (0.0%) | 0 (0.0%) | 227 (1.3%) | 0 (0.0%) | 0 (0.0%) |
50
+ | reference_determinism | 17202 | 14203 (82.6%) | 41 (0.2%) | 0 (0.0%) | 0 (0.0%) | 2958 (17.2%) | 0 (0.0%) | 0 (0.0%) |
51
+ | reference_leaks | 17202 | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 17202 (100.0%) | 0 (0.0%) | 17202 (100.0%) |
52
+ | repository_history | 17202 | 20 (0.1%) | 0 (0.0%) | 16629 (96.7%) | 0 (0.0%) | 553 (3.2%) | 0 (0.0%) | 17202 (100.0%) |
53
+ | repository_timestamps | 17202 | 16649 (96.8%) | 0 (0.0%) | 0 (0.0%) | 16649 (96.8%) | 553 (3.2%) | 0 (0.0%) | 553 (3.2%) |
54
+ | resource-sizes | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
55
+ | script_execution_coverage | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
56
+ | task-absolute-path | 17202 | 14406 (83.7%) | 0 (0.0%) | 2380 (13.8%) | 35 (0.2%) | 416 (2.4%) | 0 (0.0%) | 416 (2.4%) |
57
+ | task-timeout | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
58
+ | task-toml-schema | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
59
+ | test-file-references | 17202 | 16786 (97.6%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 416 (2.4%) | 0 (0.0%) | 0 (0.0%) |
60
+ | verifier_paths | 17202 | 2462 (14.3%) | 14018 (81.5%) | 0 (0.0%) | 0 (0.0%) | 722 (4.2%) | 0 (0.0%) | 0 (0.0%) |
61
+ | verifier_tamper | 17202 | 14272 (83.0%) | 0 (0.0%) | 2328 (13.5%) | 0 (0.0%) | 602 (3.5%) | 0 (0.0%) | 17202 (100.0%) |
62
+
63
+ Counts and percentages use all tasks with a latest result in this dataset, including excluded tasks. The table includes required rules and other checks with recorded outcomes. Failed and Warning show final check outcomes. Unresolved combines infrastructure errors, incomplete checks and checks not run. Automatically repaired counts tasks with a recorded automatic pipeline repair, regardless of the final outcome; it overlaps the other columns and does not include manual repairs. Installing a timestamp repair script alone does not count as executing a repair. Missing repair evidence is shown as Repair not recorded. A task can be flagged by several rules. Warnings do not remove tasks. Unresolved tasks are excluded from v1 until their required checks finish.
64
+
65
+ ## Resources
66
+
67
+ | Resource | Per task | Tasks |
68
+ | --- | --- | --- |
69
+
70
+ ## Timing
71
+
72
+ | Measurement | Value |
73
+ | --- | --- |
74
+ | Overall wall time (seconds) | not recorded |
75
+ | Image preparation/build time (seconds) | not recorded |
76
+ | Cluster | Barnard (current 16786 tasks); historical Helma records (416 tasks) |
77
+ | Allocated CPUs | 64 |
78
+ | Allocated GPUs | 0 |
79
+ | Allocated memory (GiB) | 192 |
80
+ | Concurrency | 16 |
81
+
82
+ | Rule | Measured tasks | Total task seconds | Mean task seconds | Median task seconds |
83
+ | --- | --- | --- | --- | --- |
84
+ | agent_editable_test | not recorded | not recorded | not recorded | not recorded |
85
+ | artifact_efficiency | not recorded | not recorded | not recorded | not recorded |
86
+ | build | not recorded | not recorded | not recorded | not recorded |
87
+ | compose-host-binds | not recorded | not recorded | not recorded | not recorded |
88
+ | declared_internet_access | not recorded | not recorded | not recorded | not recorded |
89
+ | declared_workdir | not recorded | not recorded | not recorded | not recorded |
90
+ | do_not_modify | not recorded | not recorded | not recorded | not recorded |
91
+ | dockerfile-platform | not recorded | not recorded | not recorded | not recorded |
92
+ | dockerfile-references | not recorded | not recorded | not recorded | not recorded |
93
+ | dockerfile-sanity | not recorded | not recorded | not recorded | not recorded |
94
+ | instruction-suffix | not recorded | not recorded | not recorded | not recorded |
95
+ | no-cheat-dir | not recorded | not recorded | not recorded | not recorded |
96
+ | no_behavioural_tests | not recorded | not recorded | not recorded | not recorded |
97
+ | nop | not recorded | not recorded | not recorded | not recorded |
98
+ | nop_determinism | not recorded | not recorded | not recorded | not recorded |
99
+ | nproc | not recorded | not recorded | not recorded | not recorded |
100
+ | pip-pinning | not recorded | not recorded | not recorded | not recorded |
101
+ | python_missing_imports | not recorded | not recorded | not recorded | not recorded |
102
+ | reference | not recorded | not recorded | not recorded | not recorded |
103
+ | reference_determinism | not recorded | not recorded | not recorded | not recorded |
104
+ | reference_leaks | not recorded | not recorded | not recorded | not recorded |
105
+ | repository_history | not recorded | not recorded | not recorded | not recorded |
106
+ | repository_timestamps | not recorded | not recorded | not recorded | not recorded |
107
+ | resource-sizes | not recorded | not recorded | not recorded | not recorded |
108
+ | script_execution_coverage | not recorded | not recorded | not recorded | not recorded |
109
+ | task-absolute-path | not recorded | not recorded | not recorded | not recorded |
110
+ | task-timeout | not recorded | not recorded | not recorded | not recorded |
111
+ | task-toml-schema | not recorded | not recorded | not recorded | not recorded |
112
+ | test-file-references | not recorded | not recorded | not recorded | not recorded |
113
+ | verifier_paths | not recorded | not recorded | not recorded | not recorded |
114
+ | verifier_tamper | not recorded | not recorded | not recorded | not recorded |
115
+
116
+ ## Files
117
+
118
+ `results.parquet` has one row per task with its checks and evaluations. `v1/selection.parquet` lists the selected tasks and their content hashes; `tasks/` holds the payloads. Only new or changed tasks need a new payload file.
scaleswe_v1.1/v1/rule-stats.json ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "rule": "agent_editable_test",
4
+ "total": 17202,
5
+ "passed": 16708,
6
+ "failed": 78,
7
+ "warning": 0,
8
+ "automatically_repaired": 0,
9
+ "unresolved": 416,
10
+ "not_applicable": 0,
11
+ "repair_not_recorded": 17202
12
+ },
13
+ {
14
+ "rule": "artifact_efficiency",
15
+ "total": 17202,
16
+ "passed": 16786,
17
+ "failed": 0,
18
+ "warning": 0,
19
+ "automatically_repaired": 0,
20
+ "unresolved": 416,
21
+ "not_applicable": 0,
22
+ "repair_not_recorded": 0
23
+ },
24
+ {
25
+ "rule": "build",
26
+ "total": 17202,
27
+ "passed": 16649,
28
+ "failed": 1,
29
+ "warning": 0,
30
+ "automatically_repaired": 0,
31
+ "unresolved": 552,
32
+ "not_applicable": 0,
33
+ "repair_not_recorded": 0
34
+ },
35
+ {
36
+ "rule": "compose-host-binds",
37
+ "total": 17202,
38
+ "passed": 16786,
39
+ "failed": 0,
40
+ "warning": 0,
41
+ "automatically_repaired": 0,
42
+ "unresolved": 416,
43
+ "not_applicable": 0,
44
+ "repair_not_recorded": 0
45
+ },
46
+ {
47
+ "rule": "declared_internet_access",
48
+ "total": 17202,
49
+ "passed": 16649,
50
+ "failed": 0,
51
+ "warning": 0,
52
+ "automatically_repaired": 0,
53
+ "unresolved": 553,
54
+ "not_applicable": 0,
55
+ "repair_not_recorded": 0
56
+ },
57
+ {
58
+ "rule": "declared_workdir",
59
+ "total": 17202,
60
+ "passed": 16649,
61
+ "failed": 0,
62
+ "warning": 0,
63
+ "automatically_repaired": 0,
64
+ "unresolved": 553,
65
+ "not_applicable": 0,
66
+ "repair_not_recorded": 0
67
+ },
68
+ {
69
+ "rule": "do_not_modify",
70
+ "total": 17202,
71
+ "passed": 142,
72
+ "failed": 0,
73
+ "warning": 0,
74
+ "automatically_repaired": 0,
75
+ "unresolved": 416,
76
+ "not_applicable": 16644,
77
+ "repair_not_recorded": 0
78
+ },
79
+ {
80
+ "rule": "dockerfile-platform",
81
+ "total": 17202,
82
+ "passed": 16786,
83
+ "failed": 0,
84
+ "warning": 0,
85
+ "automatically_repaired": 0,
86
+ "unresolved": 416,
87
+ "not_applicable": 0,
88
+ "repair_not_recorded": 0
89
+ },
90
+ {
91
+ "rule": "dockerfile-references",
92
+ "total": 17202,
93
+ "passed": 16786,
94
+ "failed": 0,
95
+ "warning": 0,
96
+ "automatically_repaired": 0,
97
+ "unresolved": 416,
98
+ "not_applicable": 0,
99
+ "repair_not_recorded": 17202
100
+ },
101
+ {
102
+ "rule": "dockerfile-sanity",
103
+ "total": 17202,
104
+ "passed": 16786,
105
+ "failed": 0,
106
+ "warning": 0,
107
+ "automatically_repaired": 0,
108
+ "unresolved": 416,
109
+ "not_applicable": 0,
110
+ "repair_not_recorded": 0
111
+ },
112
+ {
113
+ "rule": "instruction-suffix",
114
+ "total": 17202,
115
+ "passed": 16786,
116
+ "failed": 0,
117
+ "warning": 0,
118
+ "automatically_repaired": 16786,
119
+ "unresolved": 416,
120
+ "not_applicable": 0,
121
+ "repair_not_recorded": 416
122
+ },
123
+ {
124
+ "rule": "no-cheat-dir",
125
+ "total": 17202,
126
+ "passed": 16786,
127
+ "failed": 0,
128
+ "warning": 0,
129
+ "automatically_repaired": 0,
130
+ "unresolved": 416,
131
+ "not_applicable": 0,
132
+ "repair_not_recorded": 416
133
+ },
134
+ {
135
+ "rule": "no_behavioural_tests",
136
+ "total": 17202,
137
+ "passed": 16786,
138
+ "failed": 0,
139
+ "warning": 0,
140
+ "automatically_repaired": 0,
141
+ "unresolved": 416,
142
+ "not_applicable": 0,
143
+ "repair_not_recorded": 0
144
+ },
145
+ {
146
+ "rule": "nop",
147
+ "total": 17202,
148
+ "passed": 16910,
149
+ "failed": 65,
150
+ "warning": 0,
151
+ "automatically_repaired": 0,
152
+ "unresolved": 227,
153
+ "not_applicable": 0,
154
+ "repair_not_recorded": 0
155
+ },
156
+ {
157
+ "rule": "nop_determinism",
158
+ "total": 17202,
159
+ "passed": 16590,
160
+ "failed": 8,
161
+ "warning": 0,
162
+ "automatically_repaired": 0,
163
+ "unresolved": 604,
164
+ "not_applicable": 0,
165
+ "repair_not_recorded": 0
166
+ },
167
+ {
168
+ "rule": "nproc",
169
+ "total": 17202,
170
+ "passed": 16786,
171
+ "failed": 0,
172
+ "warning": 0,
173
+ "automatically_repaired": 0,
174
+ "unresolved": 416,
175
+ "not_applicable": 0,
176
+ "repair_not_recorded": 0
177
+ },
178
+ {
179
+ "rule": "pip-pinning",
180
+ "total": 17202,
181
+ "passed": 16786,
182
+ "failed": 0,
183
+ "warning": 0,
184
+ "automatically_repaired": 0,
185
+ "unresolved": 416,
186
+ "not_applicable": 0,
187
+ "repair_not_recorded": 416
188
+ },
189
+ {
190
+ "rule": "python_missing_imports",
191
+ "total": 17202,
192
+ "passed": 16775,
193
+ "failed": 11,
194
+ "warning": 0,
195
+ "automatically_repaired": 0,
196
+ "unresolved": 416,
197
+ "not_applicable": 0,
198
+ "repair_not_recorded": 0
199
+ },
200
+ {
201
+ "rule": "reference",
202
+ "total": 17202,
203
+ "passed": 14324,
204
+ "failed": 2651,
205
+ "warning": 0,
206
+ "automatically_repaired": 0,
207
+ "unresolved": 227,
208
+ "not_applicable": 0,
209
+ "repair_not_recorded": 0
210
+ },
211
+ {
212
+ "rule": "reference_determinism",
213
+ "total": 17202,
214
+ "passed": 14203,
215
+ "failed": 41,
216
+ "warning": 0,
217
+ "automatically_repaired": 0,
218
+ "unresolved": 2958,
219
+ "not_applicable": 0,
220
+ "repair_not_recorded": 0
221
+ },
222
+ {
223
+ "rule": "reference_leaks",
224
+ "total": 17202,
225
+ "passed": 0,
226
+ "failed": 0,
227
+ "warning": 0,
228
+ "automatically_repaired": 0,
229
+ "unresolved": 17202,
230
+ "not_applicable": 0,
231
+ "repair_not_recorded": 17202
232
+ },
233
+ {
234
+ "rule": "repository_history",
235
+ "total": 17202,
236
+ "passed": 20,
237
+ "failed": 0,
238
+ "warning": 16629,
239
+ "automatically_repaired": 0,
240
+ "unresolved": 553,
241
+ "not_applicable": 0,
242
+ "repair_not_recorded": 17202
243
+ },
244
+ {
245
+ "rule": "repository_timestamps",
246
+ "total": 17202,
247
+ "passed": 16649,
248
+ "failed": 0,
249
+ "warning": 0,
250
+ "automatically_repaired": 16649,
251
+ "unresolved": 553,
252
+ "not_applicable": 0,
253
+ "repair_not_recorded": 553
254
+ },
255
+ {
256
+ "rule": "resource-sizes",
257
+ "total": 17202,
258
+ "passed": 16786,
259
+ "failed": 0,
260
+ "warning": 0,
261
+ "automatically_repaired": 0,
262
+ "unresolved": 416,
263
+ "not_applicable": 0,
264
+ "repair_not_recorded": 0
265
+ },
266
+ {
267
+ "rule": "script_execution_coverage",
268
+ "total": 17202,
269
+ "passed": 16786,
270
+ "failed": 0,
271
+ "warning": 0,
272
+ "automatically_repaired": 0,
273
+ "unresolved": 416,
274
+ "not_applicable": 0,
275
+ "repair_not_recorded": 0
276
+ },
277
+ {
278
+ "rule": "task-absolute-path",
279
+ "total": 17202,
280
+ "passed": 14406,
281
+ "failed": 0,
282
+ "warning": 2380,
283
+ "automatically_repaired": 35,
284
+ "unresolved": 416,
285
+ "not_applicable": 0,
286
+ "repair_not_recorded": 416
287
+ },
288
+ {
289
+ "rule": "task-timeout",
290
+ "total": 17202,
291
+ "passed": 16786,
292
+ "failed": 0,
293
+ "warning": 0,
294
+ "automatically_repaired": 0,
295
+ "unresolved": 416,
296
+ "not_applicable": 0,
297
+ "repair_not_recorded": 0
298
+ },
299
+ {
300
+ "rule": "task-toml-schema",
301
+ "total": 17202,
302
+ "passed": 16786,
303
+ "failed": 0,
304
+ "warning": 0,
305
+ "automatically_repaired": 0,
306
+ "unresolved": 416,
307
+ "not_applicable": 0,
308
+ "repair_not_recorded": 0
309
+ },
310
+ {
311
+ "rule": "test-file-references",
312
+ "total": 17202,
313
+ "passed": 16786,
314
+ "failed": 0,
315
+ "warning": 0,
316
+ "automatically_repaired": 0,
317
+ "unresolved": 416,
318
+ "not_applicable": 0,
319
+ "repair_not_recorded": 0
320
+ },
321
+ {
322
+ "rule": "verifier_paths",
323
+ "total": 17202,
324
+ "passed": 2462,
325
+ "failed": 14018,
326
+ "warning": 0,
327
+ "automatically_repaired": 0,
328
+ "unresolved": 722,
329
+ "not_applicable": 0,
330
+ "repair_not_recorded": 0
331
+ },
332
+ {
333
+ "rule": "verifier_tamper",
334
+ "total": 17202,
335
+ "passed": 14272,
336
+ "failed": 0,
337
+ "warning": 2328,
338
+ "automatically_repaired": 0,
339
+ "unresolved": 602,
340
+ "not_applicable": 0,
341
+ "repair_not_recorded": 17202
342
+ }
343
+ ]
scaleswe_v1.1/v1/run.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "required_rules": [
3
+ "agent_editable_test",
4
+ "artifact_efficiency",
5
+ "build",
6
+ "compose-host-binds",
7
+ "declared_internet_access",
8
+ "declared_workdir",
9
+ "do_not_modify",
10
+ "dockerfile-platform",
11
+ "dockerfile-references",
12
+ "dockerfile-sanity",
13
+ "instruction-suffix",
14
+ "no-cheat-dir",
15
+ "no_behavioural_tests",
16
+ "nop",
17
+ "nop_determinism",
18
+ "nproc",
19
+ "pip-pinning",
20
+ "python_missing_imports",
21
+ "reference",
22
+ "reference_determinism",
23
+ "reference_leaks",
24
+ "repository_history",
25
+ "repository_timestamps",
26
+ "resource-sizes",
27
+ "script_execution_coverage",
28
+ "task-absolute-path",
29
+ "task-timeout",
30
+ "task-toml-schema",
31
+ "test-file-references",
32
+ "verifier_paths",
33
+ "verifier_tamper"
34
+ ],
35
+ "upstream_tasks": 17202,
36
+ "partial_release": true,
37
+ "resources": {
38
+ "cluster": "Barnard (current 16786 tasks); historical Helma records (416 tasks)",
39
+ "cpus": 64,
40
+ "memory_gib": 192,
41
+ "concurrency": 16,
42
+ "gpus": 0
43
+ },
44
+ "resources_scope": "Per shard; 512 shards without an array throttle.",
45
+ "network_mode": "simulated offline, not kernel isolated",
46
+ "ai_detection": "intentionally excluded by user policy",
47
+ "tasks": 17202,
48
+ "current_hashes_verified": 16786,
49
+ "historical_payloads": 416,
50
+ "image_bundles": 16784,
51
+ "image_tasks": 16784,
52
+ "missing_images": 2,
53
+ "image_bytes": 11136800630274,
54
+ "runtime_artifacts": 745
55
+ }
scaleswe_v1.1/v1/selection.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:861c6177d07ba8845184eccb6fd8a33326987fa7062756984afe3bbefb465fde
3
+ size 643