Marquis03 commited on
Commit
9ec23c3
·
verified ·
1 Parent(s): 8cfa8d4

commit (part 9)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +8 -0
  2. anowell--are-we-learning-yet.4554566/environment/workspace.tar.gz +3 -0
  3. anowell--are-we-learning-yet.4554566/instruction.md +98 -0
  4. anowell--are-we-learning-yet.4554566/solution/solve.sh +33 -0
  5. anowell--are-we-learning-yet.4554566/task.toml +69 -0
  6. anowell--are-we-learning-yet.4554566/tests/Dockerfile +69 -0
  7. anowell--are-we-learning-yet.4554566/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  8. anowell--are-we-learning-yet.4554566/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  9. anowell--are-we-learning-yet.4554566/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  10. anowell--are-we-learning-yet.4554566/tests/download.sh +1332 -0
  11. anowell--are-we-learning-yet.4554566/tests/executable +3 -0
  12. anowell--are-we-learning-yet.4554566/tests/harbor_prepare_download_env.sh +37 -0
  13. anowell--are-we-learning-yet.4554566/tests/programgym_evaluator.py +1201 -0
  14. anowell--are-we-learning-yet.4554566/tests/programgym_task.json +1171 -0
  15. anowell--are-we-learning-yet.4554566/tests/test.sh +82 -0
  16. anowell--are-we-learning-yet.4554566/tests/workspace.tar.gz +3 -0
  17. anthwlock--untrunc.a87f33a/environment/Dockerfile +1 -0
  18. anthwlock--untrunc.a87f33a/tests/Dockerfile +1 -0
  19. antirez--dump1090.efe64db/environment/Dockerfile +89 -0
  20. antirez--dump1090.efe64db/environment/docker-compose.yaml +22 -0
  21. antirez--dump1090.efe64db/environment/download.sh +39 -0
  22. antirez--dump1090.efe64db/environment/executable +3 -0
  23. antirez--dump1090.efe64db/environment/harbor_configure_apt_mirror.sh +37 -0
  24. antirez--dump1090.efe64db/environment/harbor_configure_java_mirrors.sh +50 -0
  25. antirez--dump1090.efe64db/environment/harbor_prepare_download_env.sh +44 -0
  26. antirez--dump1090.efe64db/environment/workspace.tar.gz +3 -0
  27. antirez--dump1090.efe64db/instruction.md +98 -0
  28. antirez--dump1090.efe64db/solution/solve.sh +33 -0
  29. antirez--dump1090.efe64db/task.toml +69 -0
  30. antirez--dump1090.efe64db/tests/Dockerfile +103 -0
  31. antirez--dump1090.efe64db/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  32. antirez--dump1090.efe64db/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  33. antirez--dump1090.efe64db/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  34. antirez--dump1090.efe64db/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  35. antirez--dump1090.efe64db/tests/docker-compose.yaml +22 -0
  36. antirez--dump1090.efe64db/tests/download.sh +39 -0
  37. antirez--dump1090.efe64db/tests/executable +3 -0
  38. antirez--dump1090.efe64db/tests/harbor_configure_apt_mirror.sh +37 -0
  39. antirez--dump1090.efe64db/tests/harbor_configure_java_mirrors.sh +50 -0
  40. antirez--dump1090.efe64db/tests/harbor_prepare_download_env.sh +44 -0
  41. antirez--dump1090.efe64db/tests/programgym_evaluator.py +1201 -0
  42. antirez--dump1090.efe64db/tests/programgym_task.json +1431 -0
  43. antirez--dump1090.efe64db/tests/test.sh +82 -0
  44. antirez--dump1090.efe64db/tests/workspace.tar.gz +3 -0
  45. antirez--linenoise.a473823/environment/Dockerfile +1 -0
  46. antirez--linenoise.a473823/tests/Dockerfile +1 -0
  47. antirez--qwen-asr.b00b789/environment/Dockerfile +89 -0
  48. antirez--qwen-asr.b00b789/environment/docker-compose.yaml +22 -0
  49. antirez--qwen-asr.b00b789/environment/download.sh +38 -0
  50. antirez--qwen-asr.b00b789/environment/executable +3 -0
.gitattributes CHANGED
@@ -3023,3 +3023,11 @@ andrewchambers--c.faa3444/tests/executable filter=lfs diff=lfs merge=lfs -text
3023
  andreybleme--lazycontainer.42e140b/environment/executable filter=lfs diff=lfs merge=lfs -text
3024
  andreybleme--lazycontainer.42e140b/tests/executable filter=lfs diff=lfs merge=lfs -text
3025
  anowell--are-we-learning-yet.4554566/environment/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
3023
  andreybleme--lazycontainer.42e140b/environment/executable filter=lfs diff=lfs merge=lfs -text
3024
  andreybleme--lazycontainer.42e140b/tests/executable filter=lfs diff=lfs merge=lfs -text
3025
  anowell--are-we-learning-yet.4554566/environment/executable filter=lfs diff=lfs merge=lfs -text
3026
+ anowell--are-we-learning-yet.4554566/tests/executable filter=lfs diff=lfs merge=lfs -text
3027
+ antirez--dump1090.efe64db/environment/executable filter=lfs diff=lfs merge=lfs -text
3028
+ antirez--dump1090.efe64db/tests/executable filter=lfs diff=lfs merge=lfs -text
3029
+ antirez--qwen-asr.b00b789/environment/executable filter=lfs diff=lfs merge=lfs -text
3030
+ antirez--qwen-asr.b00b789/tests/executable filter=lfs diff=lfs merge=lfs -text
3031
+ anysphere--gpt-4-for-code.44a2b97/environment/executable filter=lfs diff=lfs merge=lfs -text
3032
+ anysphere--gpt-4-for-code.44a2b97/tests/executable filter=lfs diff=lfs merge=lfs -text
3033
+ ardaku--whoami.6e4b1bd/environment/executable filter=lfs diff=lfs merge=lfs -text
anowell--are-we-learning-yet.4554566/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d236c611fcf1115afae87361dc013e2da7e56ef017fd7b984ce31956e7ce7716
3
+ size 28457
anowell--are-we-learning-yet.4554566/instruction.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are a helpful assistant that can interact with a computer.
2
+
3
+ This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
4
+ Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
5
+ You must figure out the behavior solely by running and interacting with the provided binary.
6
+ Writing original code based on observed behavior is the entire point of this benchmark.
7
+
8
+ Any approach that shortcuts this — finding existing source code, wrapping the binary,
9
+ or installing the original tool — does not count as a solution. It will be detected by an
10
+ automated judge, marked as a disqualification, and scored as a failure.
11
+ The trace will be posted to an online wall of shame.
12
+
13
+ <RULES>
14
+ ## What is not allowed
15
+
16
+ ### 1. Obtaining source code
17
+
18
+ The only source of truth about what the executable does is the executable itself and its
19
+ bundled documentation. You must not search the internet, package registries, or any external
20
+ source for information about this project's source code. Even if you recognize what the
21
+ executable is, you must reimplement it from behavioral observation alone.
22
+
23
+ This includes but is not limited to:
24
+ - Cloning or browsing the original GitHub repository, its forks, or mirrors
25
+ - Downloading the project from package registries: `cargo install <project>`, `go get github.com/<org>/<project>`, `pip install <project>`, `apt-get source <project>`, `npm install <project>`, etc.
26
+ - Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
27
+ - Using a package manager to download the project as a dependency and then reading its cached source (e.g., navigating into `~/.cargo/registry/src/` or `$(go env GOPATH)/pkg/mod/`)
28
+ - Searching the web for the project's source code or implementation details
29
+
30
+ ### 2. Wrapping or reusing the original binary
31
+
32
+ Your submission must be a genuine reimplementation. The provided `./executable` is for
33
+ observation only — your final solution must not depend on it or any other pre-built version
34
+ of the same tool at runtime.
35
+
36
+ This includes but is not limited to:
37
+ - Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
38
+ - Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
39
+ - Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
40
+ - Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
41
+ - Re-linking prebuilt `.o` object files found in the workspace without writing new source code
42
+
43
+ ### 3. Binary analysis of the provided executable
44
+
45
+ All information about the provided `./executable` must be obtained by interacting with it
46
+ through its normal user interface (CLI flags, stdin/stdout, etc.).
47
+ - You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
48
+ - You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
49
+
50
+ Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
51
+ analysis tools on binaries that you produce yourself during development.
52
+
53
+ ## What IS allowed
54
+
55
+ - Running the executable with any inputs, flags, and arguments to observe its behavior
56
+ - Reading any documentation files bundled in the workspace
57
+ </RULES>
58
+
59
+ ## Task context
60
+
61
+ We want to write the source code for a given executable.
62
+ The executable is located at `./executable` in the workspace root.
63
+
64
+ You also have access to the existing documentation.
65
+
66
+ ## Your task
67
+
68
+ Implement the source code to generate an executable of exactly identical behavior as the original.
69
+
70
+ No project-specific dependencies are pre-installed.
71
+ You do NOT have access to the internet.
72
+ **IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
73
+ Finally, commit your changes.
74
+
75
+ Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
76
+ `compile.sh` should be executable and should install any dependencies needed to compile the executable.
77
+ If your compile.sh fails to compile on a fresh checkout, your task has failed.
78
+
79
+ ## Important: This is a reverse-engineering benchmark
80
+
81
+ Your goal is to write original code from scratch that reproduces the executable's behavior.
82
+ The only way to learn what the executable does is to run it and read its bundled documentation.
83
+
84
+ Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
85
+ provided binary will be detected by an automated judge, disqualified, and scored as zero.
86
+ See the full rules in the system prompt above. Key points:
87
+
88
+ - Do NOT search the internet, clone repos, or download the project from any package registry
89
+ - Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
90
+ - Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
91
+ - You SHOULD extensively test the executable to understand its behavior before writing code.
92
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
93
+
94
+ ## Recommended Workflow
95
+
96
+ 1. Explore all documentation files
97
+ 2. Play with the executable to understand its behavior (however, you MUST NOT decompile `./executable` or perform any other form of binary or strace/ltrace analysis on it)
98
+ 3. Write the source code to implement the behavior
anowell--are-we-learning-yet.4554566/solution/solve.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Oracle-only ceiling check. The reference is execute-only for normal agents;
3
+ # because the oracle runs as the owning `agent` user it can temporarily add read
4
+ # permission and encode the binary for Harbor's normal artifact handoff.
5
+ set -euo pipefail
6
+ test -f ./executable
7
+ chmod u+r ./executable
8
+ python3 - <<'PY'
9
+ import base64
10
+ from pathlib import Path
11
+
12
+ Path(".programgym_oracle_reference").write_bytes(
13
+ base64.b64encode(Path("executable").read_bytes())
14
+ )
15
+ PY
16
+ chmod u-r ./executable
17
+ cat > compile.sh <<'EOF'
18
+ #!/usr/bin/env bash
19
+ set -euo pipefail
20
+ if [ -f ./.programgym_oracle_reference ]; then
21
+ python3 - <<'PY'
22
+ import base64
23
+ from pathlib import Path
24
+
25
+ Path("executable").write_bytes(
26
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
27
+ )
28
+ PY
29
+ fi
30
+ test -f ./executable
31
+ chmod +x ./executable
32
+ EOF
33
+ chmod +x compile.sh
anowell--are-we-learning-yet.4554566/task.toml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ source = "ProgramGym"
3
+ artifacts = [
4
+ "/logs/verifier/programgym_eval.json",
5
+ "/logs/verifier/harbor_diagnostics.json",
6
+ "/logs/verifier/programgym_eval.log",
7
+ "/logs/verifier/reward.json",
8
+ "/logs/verifier/reward.txt",
9
+ # Keep agent/runtime state out of the submission handoff. In particular,
10
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
11
+ # makes Python's safe tar extraction reject the entire workspace archive.
12
+ { source = "/workspace", exclude = [
13
+ "executable",
14
+ ".git",
15
+ ".bashrc",
16
+ ".cache",
17
+ ".cc-switch",
18
+ ".claude",
19
+ ".local",
20
+ ] },
21
+ ]
22
+
23
+ [task]
24
+ name = "programgym/anowell--are-we-learning-yet.4554566"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for anowell/are-we-learning-yet"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "anowell__are-we-learning-yet.4554566"
32
+ repository = "anowell/are-we-learning-yet"
33
+ commit = "4554566abf44156fc92823e4460cd284fccf9450"
34
+ language = "rust"
35
+ difficulty = "easy"
36
+ difficulty_score = 0.5809249756756194
37
+ test_branches = 3
38
+ test_count = 151
39
+
40
+ [agent]
41
+ timeout_sec = 14400
42
+ user = "agent"
43
+ network_mode = "allowlist"
44
+ allowed_hosts = ["api.anthropic.com", "api.openai.com"]
45
+
46
+ [verifier]
47
+ timeout_sec = 7200
48
+ user = "root"
49
+ environment_mode = "separate"
50
+
51
+ [verifier.env]
52
+ PROGRAMGYM_XDIST_WORKERS = "8"
53
+
54
+ [verifier.environment]
55
+ build_timeout_sec = 1800
56
+ cpus = 8
57
+ memory_mb = 16384
58
+ storage_mb = 30720
59
+ gpus = 0
60
+ workdir = "/workspace"
61
+
62
+ [environment]
63
+ network_mode = "public"
64
+ build_timeout_sec = 1800
65
+ cpus = 8
66
+ memory_mb = 16384
67
+ storage_mb = 30720
68
+ gpus = 0
69
+ workdir = "/workspace"
anowell--are-we-learning-yet.4554566/tests/Dockerfile ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
14
+ ENV npm_config_registry="https://registry.npmjs.org/"
15
+ ENV npm_config_strict_ssl=false
16
+ ENV npm_config_cache=/workspace/.cache/npm
17
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
18
+ ENV PIP_TRUSTED_HOST=""
19
+ ENV HOME=/workspace
20
+ ENV XDG_CACHE_HOME=/workspace/.cache
21
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
22
+ ENV PYTHONUSERBASE=/workspace/.local
23
+ ENV CARGO_HOME=/usr/local/cargo
24
+ ENV RUSTUP_HOME=/usr/local/rustup
25
+ ENV RUSTUP_TOOLCHAIN=1.97.1
26
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
27
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
28
+ ENV PAGER=cat
29
+ ENV MANPAGER=cat
30
+ ENV LESS=-R
31
+ ENV TQDM_DISABLE=1
32
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
33
+ RUN rustup component add llvm-tools-preview --toolchain 1.97.1
34
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
35
+ RUN rustc --version && cargo --version && rustup show active-toolchain
36
+ WORKDIR /workspace
37
+ ADD workspace.tar.gz /workspace/
38
+ COPY executable /workspace/executable
39
+ COPY download.sh /tmp/programgym-download.sh
40
+ RUN chmod 755 /tmp/programgym-download.sh
41
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
42
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
43
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
44
+ && rm -f /tmp/programgym-download.sh \
45
+ && rm -f /tmp/harbor_prepare_download_env.sh
46
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
47
+ RUN chmod 111 /workspace/executable
48
+ WORKDIR /workspace
49
+ # Harbor uses tests/ as the separate verifier build context. Start with the
50
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
51
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
52
+ && mkdir -p /workspace /tests
53
+
54
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
55
+ # Installing a newer pytest alone leaves that apt package importable and creates
56
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
57
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
58
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
59
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
60
+ RUN python3 -m pip install --break-system-packages \
61
+ --no-cache-dir --disable-pip-version-check \
62
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
63
+
64
+ COPY test.sh /tests/test.sh
65
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
66
+ COPY programgym_task.json /tests/programgym_task.json
67
+ COPY blobs/ /tests/blobs/
68
+ RUN chmod +x /tests/test.sh
69
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
anowell--are-we-learning-yet.4554566/tests/blobs/tests/generated_module_01.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afb3d22e5cbdc243ce2386845562c8d84d4e82341ddb6e3711b5f23c92bd2fb7
3
+ size 16182
anowell--are-we-learning-yet.4554566/tests/blobs/tests/generated_module_03.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bcbe819e87b8716c88829963835f9ee5ad217a706f68b49c2a3e86e4f44cabd
3
+ size 15986
anowell--are-we-learning-yet.4554566/tests/blobs/tests/generated_module_04.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:563d4d7a2917c9f76099669780b43512ca4d29e18c69c27d5d78b7ac522fde59
3
+ size 14210
anowell--are-we-learning-yet.4554566/tests/download.sh ADDED
@@ -0,0 +1,1332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh for the are-we-learning-yet (ProgramGym) build pipeline.
3
+ #
4
+ # This script is *sourced* (not executed as a child process) by the remote
5
+ # validator while the container still has network access. It prefetches every
6
+ # Cargo dependency needed to build the repository's 'scraper' tool offline.
7
+ #
8
+ # Design notes:
9
+ # - It is standalone: it must not read any repository file (the source tree
10
+ # is not available during the download phase). All dependency metadata is
11
+ # embedded inline below as generated Cargo.toml and Cargo.lock files.
12
+ # - It performs NO compilation. It only fetches dependencies into the cargo
13
+ # registry cache and exports environment variables.
14
+ # - It is idempotent: a second 'source' of this file is a safe no-op.
15
+ # - On failure it returns nonzero to the sourcing shell (it never 'exit's in
16
+ # normal control flow).
17
+
18
+ set -u
19
+
20
+ # Ensure cargo binaries and the registry live at stable, exported locations.
21
+ export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
22
+ export RUSTUP_HOME="${RUSTUP_HOME:-$HOME/.rustup}"
23
+
24
+ DOWNLOAD_DONE_MARKER="${CARGO_HOME}/.programgym_scraper_downloaded"
25
+ if [ -f "${DOWNLOAD_DONE_MARKER}" ]; then
26
+ # Already prefetched in a previous run; nothing to do.
27
+ return 0
28
+ fi
29
+
30
+ # Make cargo available to this (sourced) shell without depending on PATH setup.
31
+ if [ -f "${CARGO_HOME}/env" ]; then
32
+ # shellcheck disable=SC1090,SC1091
33
+ source "${CARGO_HOME}/env"
34
+ fi
35
+
36
+ FETCH_ROOT="$(mktemp -d)"
37
+ if [ -z "${FETCH_ROOT}" ] || [ ! -d "${FETCH_ROOT}" ]; then
38
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
39
+ return 1
40
+ else
41
+ exit 1
42
+ fi
43
+ fi
44
+
45
+ mkdir -p "${FETCH_ROOT}/src"
46
+
47
+ # ---------------------------------------------------------------------------
48
+ # Generated Cargo.toml -- mirrors the repository's _scraper/Cargo.toml exactly
49
+ # so the embedded lock below is consistent with the resolved dependency graph.
50
+ # ---------------------------------------------------------------------------
51
+ cat > "${FETCH_ROOT}/Cargo.toml" <<'TOML'
52
+ [package]
53
+ name = "scraper"
54
+ version = "0.1.0"
55
+ edition = "2021"
56
+
57
+ [dependencies]
58
+ serde_json = "1.0.61"
59
+ serde_yaml = "0.8.15"
60
+ serde = { version = "1.0", features = ["derive"] }
61
+ anyhow = "1.0.38"
62
+ reqwest = { version = "0.11.0", default-features = false, features = ["json", "gzip", "rustls-tls"] }
63
+ octocrab = { version = "0.8.10", default-features = false }
64
+ chrono = { version = "0.4", features = ["serde"] }
65
+ url = { version = "2.2.0", features = ["serde"] }
66
+ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
67
+ crates_io_api = { version = "0.7.0", default-features = false }
68
+
69
+ [features]
70
+ default = ["reqwest/rustls-tls", "crates_io_api/rustls", "octocrab/rustls"]
71
+ TOML
72
+
73
+ # Minimal stub source so the generated manifest has a valid default target;
74
+ # cargo fetch only resolves/downloads dependencies and never compiles these.
75
+ cat > "${FETCH_ROOT}/src/lib.rs" <<'RS'
76
+ pub const STUB: bool = true;
77
+ RS
78
+
79
+ # ---------------------------------------------------------------------------
80
+ # Generated Cargo.lock -- is a byte-for-byte copy of the repository's committed
81
+ # _scraper/Cargo.lock. Pinning the exact locked versions guarantees the offline
82
+ # build (which resolves against that same committed lock) finds every crate it
83
+ # needs already present in the local registry cache.
84
+ # ---------------------------------------------------------------------------
85
+ cat > "${FETCH_ROOT}/Cargo.lock" <<'LOCK'
86
+ # This file is automatically @generated by Cargo.
87
+ # It is not intended for manual editing.
88
+ version = 3
89
+
90
+ [[package]]
91
+ name = "addr2line"
92
+ version = "0.17.0"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b"
95
+ dependencies = [
96
+ "gimli",
97
+ ]
98
+
99
+ [[package]]
100
+ name = "adler"
101
+ version = "1.0.2"
102
+ source = "registry+https://github.com/rust-lang/crates.io-index"
103
+ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
104
+
105
+ [[package]]
106
+ name = "anyhow"
107
+ version = "1.0.51"
108
+ source = "registry+https://github.com/rust-lang/crates.io-index"
109
+ checksum = "8b26702f315f53b6071259e15dd9d64528213b44d61de1ec926eca7715d62203"
110
+
111
+ [[package]]
112
+ name = "arc-swap"
113
+ version = "1.5.0"
114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
115
+ checksum = "c5d78ce20460b82d3fa150275ed9d55e21064fc7951177baacf86a145c4a4b1f"
116
+
117
+ [[package]]
118
+ name = "async-compression"
119
+ version = "0.3.8"
120
+ source = "registry+https://github.com/rust-lang/crates.io-index"
121
+ checksum = "5443ccbb270374a2b1055fc72da40e1f237809cd6bb0e97e66d264cd138473a6"
122
+ dependencies = [
123
+ "flate2",
124
+ "futures-core",
125
+ "memchr",
126
+ "pin-project-lite",
127
+ "tokio",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "async-trait"
132
+ version = "0.1.51"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "44318e776df68115a881de9a8fd1b9e53368d7a4a5ce4cc48517da3393233a5e"
135
+ dependencies = [
136
+ "proc-macro2",
137
+ "quote",
138
+ "syn",
139
+ ]
140
+
141
+ [[package]]
142
+ name = "autocfg"
143
+ version = "1.0.1"
144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
145
+ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
146
+
147
+ [[package]]
148
+ name = "backtrace"
149
+ version = "0.3.63"
150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
151
+ checksum = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6"
152
+ dependencies = [
153
+ "addr2line",
154
+ "cc",
155
+ "cfg-if",
156
+ "libc",
157
+ "miniz_oxide",
158
+ "object",
159
+ "rustc-demangle",
160
+ ]
161
+
162
+ [[package]]
163
+ name = "base64"
164
+ version = "0.13.0"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
167
+
168
+ [[package]]
169
+ name = "bumpalo"
170
+ version = "3.12.0"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535"
173
+
174
+ [[package]]
175
+ name = "bytes"
176
+ version = "1.1.0"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
179
+
180
+ [[package]]
181
+ name = "cc"
182
+ version = "1.0.72"
183
+ source = "registry+https://github.com/rust-lang/crates.io-index"
184
+ checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"
185
+
186
+ [[package]]
187
+ name = "cfg-if"
188
+ version = "1.0.0"
189
+ source = "registry+https://github.com/rust-lang/crates.io-index"
190
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
191
+
192
+ [[package]]
193
+ name = "chrono"
194
+ version = "0.4.19"
195
+ source = "registry+https://github.com/rust-lang/crates.io-index"
196
+ checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
197
+ dependencies = [
198
+ "libc",
199
+ "num-integer",
200
+ "num-traits",
201
+ "serde",
202
+ "time",
203
+ "winapi",
204
+ ]
205
+
206
+ [[package]]
207
+ name = "crates_io_api"
208
+ version = "0.7.3"
209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
210
+ checksum = "f0ab4553806e9495b7e78a66454c16c5021cd3816d7b8e7e8fe28aa5474346bb"
211
+ dependencies = [
212
+ "chrono",
213
+ "futures",
214
+ "log",
215
+ "reqwest",
216
+ "serde",
217
+ "serde_derive",
218
+ "serde_json",
219
+ "tokio",
220
+ "url",
221
+ ]
222
+
223
+ [[package]]
224
+ name = "crc32fast"
225
+ version = "1.3.0"
226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
227
+ checksum = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836"
228
+ dependencies = [
229
+ "cfg-if",
230
+ ]
231
+
232
+ [[package]]
233
+ name = "doc-comment"
234
+ version = "0.3.3"
235
+ source = "registry+https://github.com/rust-lang/crates.io-index"
236
+ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
237
+
238
+ [[package]]
239
+ name = "dtoa"
240
+ version = "0.4.8"
241
+ source = "registry+https://github.com/rust-lang/crates.io-index"
242
+ checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0"
243
+
244
+ [[package]]
245
+ name = "encoding_rs"
246
+ version = "0.8.30"
247
+ source = "registry+https://github.com/rust-lang/crates.io-index"
248
+ checksum = "7896dc8abb250ffdda33912550faa54c88ec8b998dec0b2c55ab224921ce11df"
249
+ dependencies = [
250
+ "cfg-if",
251
+ ]
252
+
253
+ [[package]]
254
+ name = "flate2"
255
+ version = "1.0.22"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "1e6988e897c1c9c485f43b47a529cef42fde0547f9d8d41a7062518f1d8fc53f"
258
+ dependencies = [
259
+ "cfg-if",
260
+ "crc32fast",
261
+ "libc",
262
+ "miniz_oxide",
263
+ ]
264
+
265
+ [[package]]
266
+ name = "fnv"
267
+ version = "1.0.7"
268
+ source = "registry+https://github.com/rust-lang/crates.io-index"
269
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
270
+
271
+ [[package]]
272
+ name = "form_urlencoded"
273
+ version = "1.0.1"
274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
275
+ checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
276
+ dependencies = [
277
+ "matches",
278
+ "percent-encoding",
279
+ ]
280
+
281
+ [[package]]
282
+ name = "futures"
283
+ version = "0.3.18"
284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
285
+ checksum = "8cd0210d8c325c245ff06fd95a3b13689a1a276ac8cfa8e8720cb840bfb84b9e"
286
+ dependencies = [
287
+ "futures-channel",
288
+ "futures-core",
289
+ "futures-executor",
290
+ "futures-io",
291
+ "futures-sink",
292
+ "futures-task",
293
+ "futures-util",
294
+ ]
295
+
296
+ [[package]]
297
+ name = "futures-channel"
298
+ version = "0.3.18"
299
+ source = "registry+https://github.com/rust-lang/crates.io-index"
300
+ checksum = "7fc8cd39e3dbf865f7340dce6a2d401d24fd37c6fe6c4f0ee0de8bfca2252d27"
301
+ dependencies = [
302
+ "futures-core",
303
+ "futures-sink",
304
+ ]
305
+
306
+ [[package]]
307
+ name = "futures-core"
308
+ version = "0.3.18"
309
+ source = "registry+https://github.com/rust-lang/crates.io-index"
310
+ checksum = "629316e42fe7c2a0b9a65b47d159ceaa5453ab14e8f0a3c5eedbb8cd55b4a445"
311
+
312
+ [[package]]
313
+ name = "futures-executor"
314
+ version = "0.3.18"
315
+ source = "registry+https://github.com/rust-lang/crates.io-index"
316
+ checksum = "7b808bf53348a36cab739d7e04755909b9fcaaa69b7d7e588b37b6ec62704c97"
317
+ dependencies = [
318
+ "futures-core",
319
+ "futures-task",
320
+ "futures-util",
321
+ ]
322
+
323
+ [[package]]
324
+ name = "futures-io"
325
+ version = "0.3.18"
326
+ source = "registry+https://github.com/rust-lang/crates.io-index"
327
+ checksum = "e481354db6b5c353246ccf6a728b0c5511d752c08da7260546fc0933869daa11"
328
+
329
+ [[package]]
330
+ name = "futures-macro"
331
+ version = "0.3.18"
332
+ source = "registry+https://github.com/rust-lang/crates.io-index"
333
+ checksum = "a89f17b21645bc4ed773c69af9c9a0effd4a3f1a3876eadd453469f8854e7fdd"
334
+ dependencies = [
335
+ "proc-macro2",
336
+ "quote",
337
+ "syn",
338
+ ]
339
+
340
+ [[package]]
341
+ name = "futures-sink"
342
+ version = "0.3.18"
343
+ source = "registry+https://github.com/rust-lang/crates.io-index"
344
+ checksum = "996c6442437b62d21a32cd9906f9c41e7dc1e19a9579843fad948696769305af"
345
+
346
+ [[package]]
347
+ name = "futures-task"
348
+ version = "0.3.18"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "dabf1872aaab32c886832f2276d2f5399887e2bd613698a02359e4ea83f8de12"
351
+
352
+ [[package]]
353
+ name = "futures-util"
354
+ version = "0.3.18"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "41d22213122356472061ac0f1ab2cee28d2bac8491410fd68c2af53d1cedb83e"
357
+ dependencies = [
358
+ "futures-channel",
359
+ "futures-core",
360
+ "futures-io",
361
+ "futures-macro",
362
+ "futures-sink",
363
+ "futures-task",
364
+ "memchr",
365
+ "pin-project-lite",
366
+ "pin-utils",
367
+ "slab",
368
+ ]
369
+
370
+ [[package]]
371
+ name = "gimli"
372
+ version = "0.26.1"
373
+ source = "registry+https://github.com/rust-lang/crates.io-index"
374
+ checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4"
375
+
376
+ [[package]]
377
+ name = "h2"
378
+ version = "0.3.17"
379
+ source = "registry+https://github.com/rust-lang/crates.io-index"
380
+ checksum = "66b91535aa35fea1523ad1b86cb6b53c28e0ae566ba4a460f4457e936cad7c6f"
381
+ dependencies = [
382
+ "bytes",
383
+ "fnv",
384
+ "futures-core",
385
+ "futures-sink",
386
+ "futures-util",
387
+ "http",
388
+ "indexmap",
389
+ "slab",
390
+ "tokio",
391
+ "tokio-util 0.7.2",
392
+ "tracing",
393
+ ]
394
+
395
+ [[package]]
396
+ name = "hashbrown"
397
+ version = "0.11.2"
398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
399
+ checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
400
+
401
+ [[package]]
402
+ name = "hermit-abi"
403
+ version = "0.1.19"
404
+ source = "registry+https://github.com/rust-lang/crates.io-index"
405
+ checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
406
+ dependencies = [
407
+ "libc",
408
+ ]
409
+
410
+ [[package]]
411
+ name = "http"
412
+ version = "0.2.5"
413
+ source = "registry+https://github.com/rust-lang/crates.io-index"
414
+ checksum = "1323096b05d41827dadeaee54c9981958c0f94e670bc94ed80037d1a7b8b186b"
415
+ dependencies = [
416
+ "bytes",
417
+ "fnv",
418
+ "itoa",
419
+ ]
420
+
421
+ [[package]]
422
+ name = "http-body"
423
+ version = "0.4.4"
424
+ source = "registry+https://github.com/rust-lang/crates.io-index"
425
+ checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"
426
+ dependencies = [
427
+ "bytes",
428
+ "http",
429
+ "pin-project-lite",
430
+ ]
431
+
432
+ [[package]]
433
+ name = "httparse"
434
+ version = "1.5.1"
435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
436
+ checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503"
437
+
438
+ [[package]]
439
+ name = "httpdate"
440
+ version = "1.0.2"
441
+ source = "registry+https://github.com/rust-lang/crates.io-index"
442
+ checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
443
+
444
+ [[package]]
445
+ name = "hyper"
446
+ version = "0.14.15"
447
+ source = "registry+https://github.com/rust-lang/crates.io-index"
448
+ checksum = "436ec0091e4f20e655156a30a0df3770fe2900aa301e548e08446ec794b6953c"
449
+ dependencies = [
450
+ "bytes",
451
+ "futures-channel",
452
+ "futures-core",
453
+ "futures-util",
454
+ "h2",
455
+ "http",
456
+ "http-body",
457
+ "httparse",
458
+ "httpdate",
459
+ "itoa",
460
+ "pin-project-lite",
461
+ "socket2",
462
+ "tokio",
463
+ "tower-service",
464
+ "tracing",
465
+ "want",
466
+ ]
467
+
468
+ [[package]]
469
+ name = "hyper-rustls"
470
+ version = "0.23.0"
471
+ source = "registry+https://github.com/rust-lang/crates.io-index"
472
+ checksum = "d87c48c02e0dc5e3b849a2041db3029fd066650f8f717c07bf8ed78ccb895cac"
473
+ dependencies = [
474
+ "http",
475
+ "hyper",
476
+ "rustls",
477
+ "tokio",
478
+ "tokio-rustls",
479
+ ]
480
+
481
+ [[package]]
482
+ name = "hyperx"
483
+ version = "1.4.0"
484
+ source = "registry+https://github.com/rust-lang/crates.io-index"
485
+ checksum = "5617e92fc2f2501c3e2bc6ce547cad841adba2bae5b921c7e52510beca6d084c"
486
+ dependencies = [
487
+ "base64",
488
+ "bytes",
489
+ "http",
490
+ "httpdate",
491
+ "language-tags",
492
+ "mime",
493
+ "percent-encoding",
494
+ "unicase",
495
+ ]
496
+
497
+ [[package]]
498
+ name = "idna"
499
+ version = "0.2.3"
500
+ source = "registry+https://github.com/rust-lang/crates.io-index"
501
+ checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
502
+ dependencies = [
503
+ "matches",
504
+ "unicode-bidi",
505
+ "unicode-normalization",
506
+ ]
507
+
508
+ [[package]]
509
+ name = "indexmap"
510
+ version = "1.7.0"
511
+ source = "registry+https://github.com/rust-lang/crates.io-index"
512
+ checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
513
+ dependencies = [
514
+ "autocfg",
515
+ "hashbrown",
516
+ ]
517
+
518
+ [[package]]
519
+ name = "ipnet"
520
+ version = "2.3.1"
521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
522
+ checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9"
523
+
524
+ [[package]]
525
+ name = "itoa"
526
+ version = "0.4.8"
527
+ source = "registry+https://github.com/rust-lang/crates.io-index"
528
+ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
529
+
530
+ [[package]]
531
+ name = "js-sys"
532
+ version = "0.3.55"
533
+ source = "registry+https://github.com/rust-lang/crates.io-index"
534
+ checksum = "7cc9ffccd38c451a86bf13657df244e9c3f37493cce8e5e21e940963777acc84"
535
+ dependencies = [
536
+ "wasm-bindgen",
537
+ ]
538
+
539
+ [[package]]
540
+ name = "language-tags"
541
+ version = "0.3.2"
542
+ source = "registry+https://github.com/rust-lang/crates.io-index"
543
+ checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388"
544
+
545
+ [[package]]
546
+ name = "lazy_static"
547
+ version = "1.4.0"
548
+ source = "registry+https://github.com/rust-lang/crates.io-index"
549
+ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
550
+
551
+ [[package]]
552
+ name = "libc"
553
+ version = "0.2.109"
554
+ source = "registry+https://github.com/rust-lang/crates.io-index"
555
+ checksum = "f98a04dce437184842841303488f70d0188c5f51437d2a834dc097eafa909a01"
556
+
557
+ [[package]]
558
+ name = "linked-hash-map"
559
+ version = "0.5.4"
560
+ source = "registry+https://github.com/rust-lang/crates.io-index"
561
+ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
562
+
563
+ [[package]]
564
+ name = "log"
565
+ version = "0.4.14"
566
+ source = "registry+https://github.com/rust-lang/crates.io-index"
567
+ checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
568
+ dependencies = [
569
+ "cfg-if",
570
+ ]
571
+
572
+ [[package]]
573
+ name = "matches"
574
+ version = "0.1.9"
575
+ source = "registry+https://github.com/rust-lang/crates.io-index"
576
+ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
577
+
578
+ [[package]]
579
+ name = "memchr"
580
+ version = "2.4.1"
581
+ source = "registry+https://github.com/rust-lang/crates.io-index"
582
+ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
583
+
584
+ [[package]]
585
+ name = "mime"
586
+ version = "0.3.16"
587
+ source = "registry+https://github.com/rust-lang/crates.io-index"
588
+ checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
589
+
590
+ [[package]]
591
+ name = "miniz_oxide"
592
+ version = "0.4.4"
593
+ source = "registry+https://github.com/rust-lang/crates.io-index"
594
+ checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b"
595
+ dependencies = [
596
+ "adler",
597
+ "autocfg",
598
+ ]
599
+
600
+ [[package]]
601
+ name = "mio"
602
+ version = "0.7.14"
603
+ source = "registry+https://github.com/rust-lang/crates.io-index"
604
+ checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc"
605
+ dependencies = [
606
+ "libc",
607
+ "log",
608
+ "miow",
609
+ "ntapi",
610
+ "winapi",
611
+ ]
612
+
613
+ [[package]]
614
+ name = "miow"
615
+ version = "0.3.7"
616
+ source = "registry+https://github.com/rust-lang/crates.io-index"
617
+ checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
618
+ dependencies = [
619
+ "winapi",
620
+ ]
621
+
622
+ [[package]]
623
+ name = "ntapi"
624
+ version = "0.3.6"
625
+ source = "registry+https://github.com/rust-lang/crates.io-index"
626
+ checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44"
627
+ dependencies = [
628
+ "winapi",
629
+ ]
630
+
631
+ [[package]]
632
+ name = "num-integer"
633
+ version = "0.1.44"
634
+ source = "registry+https://github.com/rust-lang/crates.io-index"
635
+ checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
636
+ dependencies = [
637
+ "autocfg",
638
+ "num-traits",
639
+ ]
640
+
641
+ [[package]]
642
+ name = "num-traits"
643
+ version = "0.2.14"
644
+ source = "registry+https://github.com/rust-lang/crates.io-index"
645
+ checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
646
+ dependencies = [
647
+ "autocfg",
648
+ ]
649
+
650
+ [[package]]
651
+ name = "num_cpus"
652
+ version = "1.13.0"
653
+ source = "registry+https://github.com/rust-lang/crates.io-index"
654
+ checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
655
+ dependencies = [
656
+ "hermit-abi",
657
+ "libc",
658
+ ]
659
+
660
+ [[package]]
661
+ name = "object"
662
+ version = "0.27.1"
663
+ source = "registry+https://github.com/rust-lang/crates.io-index"
664
+ checksum = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9"
665
+ dependencies = [
666
+ "memchr",
667
+ ]
668
+
669
+ [[package]]
670
+ name = "octocrab"
671
+ version = "0.8.13"
672
+ source = "registry+https://github.com/rust-lang/crates.io-index"
673
+ checksum = "8f4c2d3531064bd5934cca7a38b1cfe7f48e712e2d890c9c1b7ea8b687368184"
674
+ dependencies = [
675
+ "arc-swap",
676
+ "async-trait",
677
+ "base64",
678
+ "bytes",
679
+ "chrono",
680
+ "hyperx",
681
+ "once_cell",
682
+ "reqwest",
683
+ "serde",
684
+ "serde_json",
685
+ "serde_path_to_error",
686
+ "snafu",
687
+ "url",
688
+ ]
689
+
690
+ [[package]]
691
+ name = "once_cell"
692
+ version = "1.8.0"
693
+ source = "registry+https://github.com/rust-lang/crates.io-index"
694
+ checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"
695
+
696
+ [[package]]
697
+ name = "percent-encoding"
698
+ version = "2.1.0"
699
+ source = "registry+https://github.com/rust-lang/crates.io-index"
700
+ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
701
+
702
+ [[package]]
703
+ name = "pin-project-lite"
704
+ version = "0.2.7"
705
+ source = "registry+https://github.com/rust-lang/crates.io-index"
706
+ checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443"
707
+
708
+ [[package]]
709
+ name = "pin-utils"
710
+ version = "0.1.0"
711
+ source = "registry+https://github.com/rust-lang/crates.io-index"
712
+ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
713
+
714
+ [[package]]
715
+ name = "proc-macro2"
716
+ version = "1.0.56"
717
+ source = "registry+https://github.com/rust-lang/crates.io-index"
718
+ checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435"
719
+ dependencies = [
720
+ "unicode-ident",
721
+ ]
722
+
723
+ [[package]]
724
+ name = "quote"
725
+ version = "1.0.10"
726
+ source = "registry+https://github.com/rust-lang/crates.io-index"
727
+ checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
728
+ dependencies = [
729
+ "proc-macro2",
730
+ ]
731
+
732
+ [[package]]
733
+ name = "reqwest"
734
+ version = "0.11.7"
735
+ source = "registry+https://github.com/rust-lang/crates.io-index"
736
+ checksum = "07bea77bc708afa10e59905c3d4af7c8fd43c9214251673095ff8b14345fcbc5"
737
+ dependencies = [
738
+ "async-compression",
739
+ "base64",
740
+ "bytes",
741
+ "encoding_rs",
742
+ "futures-core",
743
+ "futures-util",
744
+ "http",
745
+ "http-body",
746
+ "hyper",
747
+ "hyper-rustls",
748
+ "ipnet",
749
+ "js-sys",
750
+ "lazy_static",
751
+ "log",
752
+ "mime",
753
+ "percent-encoding",
754
+ "pin-project-lite",
755
+ "rustls",
756
+ "rustls-pemfile",
757
+ "serde",
758
+ "serde_json",
759
+ "serde_urlencoded",
760
+ "tokio",
761
+ "tokio-rustls",
762
+ "tokio-util 0.6.9",
763
+ "url",
764
+ "wasm-bindgen",
765
+ "wasm-bindgen-futures",
766
+ "web-sys",
767
+ "webpki-roots",
768
+ "winreg",
769
+ ]
770
+
771
+ [[package]]
772
+ name = "ring"
773
+ version = "0.16.20"
774
+ source = "registry+https://github.com/rust-lang/crates.io-index"
775
+ checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
776
+ dependencies = [
777
+ "cc",
778
+ "libc",
779
+ "once_cell",
780
+ "spin",
781
+ "untrusted",
782
+ "web-sys",
783
+ "winapi",
784
+ ]
785
+
786
+ [[package]]
787
+ name = "rustc-demangle"
788
+ version = "0.1.21"
789
+ source = "registry+https://github.com/rust-lang/crates.io-index"
790
+ checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342"
791
+
792
+ [[package]]
793
+ name = "rustls"
794
+ version = "0.20.2"
795
+ source = "registry+https://github.com/rust-lang/crates.io-index"
796
+ checksum = "d37e5e2290f3e040b594b1a9e04377c2c671f1a1cfd9bfdef82106ac1c113f84"
797
+ dependencies = [
798
+ "log",
799
+ "ring",
800
+ "sct",
801
+ "webpki 0.22.0",
802
+ ]
803
+
804
+ [[package]]
805
+ name = "rustls-pemfile"
806
+ version = "0.2.1"
807
+ source = "registry+https://github.com/rust-lang/crates.io-index"
808
+ checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9"
809
+ dependencies = [
810
+ "base64",
811
+ ]
812
+
813
+ [[package]]
814
+ name = "ryu"
815
+ version = "1.0.6"
816
+ source = "registry+https://github.com/rust-lang/crates.io-index"
817
+ checksum = "3c9613b5a66ab9ba26415184cfc41156594925a9cf3a2057e57f31ff145f6568"
818
+
819
+ [[package]]
820
+ name = "scraper"
821
+ version = "0.1.0"
822
+ dependencies = [
823
+ "anyhow",
824
+ "chrono",
825
+ "crates_io_api",
826
+ "octocrab",
827
+ "reqwest",
828
+ "serde",
829
+ "serde_json",
830
+ "serde_yaml",
831
+ "tokio",
832
+ "url",
833
+ ]
834
+
835
+ [[package]]
836
+ name = "sct"
837
+ version = "0.7.0"
838
+ source = "registry+https://github.com/rust-lang/crates.io-index"
839
+ checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4"
840
+ dependencies = [
841
+ "ring",
842
+ "untrusted",
843
+ ]
844
+
845
+ [[package]]
846
+ name = "serde"
847
+ version = "1.0.130"
848
+ source = "registry+https://github.com/rust-lang/crates.io-index"
849
+ checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
850
+ dependencies = [
851
+ "serde_derive",
852
+ ]
853
+
854
+ [[package]]
855
+ name = "serde_derive"
856
+ version = "1.0.130"
857
+ source = "registry+https://github.com/rust-lang/crates.io-index"
858
+ checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
859
+ dependencies = [
860
+ "proc-macro2",
861
+ "quote",
862
+ "syn",
863
+ ]
864
+
865
+ [[package]]
866
+ name = "serde_json"
867
+ version = "1.0.72"
868
+ source = "registry+https://github.com/rust-lang/crates.io-index"
869
+ checksum = "d0ffa0837f2dfa6fb90868c2b5468cad482e175f7dad97e7421951e663f2b527"
870
+ dependencies = [
871
+ "itoa",
872
+ "ryu",
873
+ "serde",
874
+ ]
875
+
876
+ [[package]]
877
+ name = "serde_path_to_error"
878
+ version = "0.1.5"
879
+ source = "registry+https://github.com/rust-lang/crates.io-index"
880
+ checksum = "d0421d4f173fab82d72d6babf36d57fae38b994ca5c2d78e704260ba6d12118b"
881
+ dependencies = [
882
+ "serde",
883
+ ]
884
+
885
+ [[package]]
886
+ name = "serde_urlencoded"
887
+ version = "0.7.0"
888
+ source = "registry+https://github.com/rust-lang/crates.io-index"
889
+ checksum = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9"
890
+ dependencies = [
891
+ "form_urlencoded",
892
+ "itoa",
893
+ "ryu",
894
+ "serde",
895
+ ]
896
+
897
+ [[package]]
898
+ name = "serde_yaml"
899
+ version = "0.8.21"
900
+ source = "registry+https://github.com/rust-lang/crates.io-index"
901
+ checksum = "d8c608a35705a5d3cdc9fbe403147647ff34b921f8e833e49306df898f9b20af"
902
+ dependencies = [
903
+ "dtoa",
904
+ "indexmap",
905
+ "serde",
906
+ "yaml-rust",
907
+ ]
908
+
909
+ [[package]]
910
+ name = "slab"
911
+ version = "0.4.5"
912
+ source = "registry+https://github.com/rust-lang/crates.io-index"
913
+ checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
914
+
915
+ [[package]]
916
+ name = "snafu"
917
+ version = "0.6.10"
918
+ source = "registry+https://github.com/rust-lang/crates.io-index"
919
+ checksum = "eab12d3c261b2308b0d80c26fffb58d17eba81a4be97890101f416b478c79ca7"
920
+ dependencies = [
921
+ "backtrace",
922
+ "doc-comment",
923
+ "snafu-derive",
924
+ ]
925
+
926
+ [[package]]
927
+ name = "snafu-derive"
928
+ version = "0.6.10"
929
+ source = "registry+https://github.com/rust-lang/crates.io-index"
930
+ checksum = "1508efa03c362e23817f96cde18abed596a25219a8b2c66e8db33c03543d315b"
931
+ dependencies = [
932
+ "proc-macro2",
933
+ "quote",
934
+ "syn",
935
+ ]
936
+
937
+ [[package]]
938
+ name = "socket2"
939
+ version = "0.4.2"
940
+ source = "registry+https://github.com/rust-lang/crates.io-index"
941
+ checksum = "5dc90fe6c7be1a323296982db1836d1ea9e47b6839496dde9a541bc496df3516"
942
+ dependencies = [
943
+ "libc",
944
+ "winapi",
945
+ ]
946
+
947
+ [[package]]
948
+ name = "spin"
949
+ version = "0.5.2"
950
+ source = "registry+https://github.com/rust-lang/crates.io-index"
951
+ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
952
+
953
+ [[package]]
954
+ name = "syn"
955
+ version = "1.0.109"
956
+ source = "registry+https://github.com/rust-lang/crates.io-index"
957
+ checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
958
+ dependencies = [
959
+ "proc-macro2",
960
+ "quote",
961
+ "unicode-ident",
962
+ ]
963
+
964
+ [[package]]
965
+ name = "time"
966
+ version = "0.1.43"
967
+ source = "registry+https://github.com/rust-lang/crates.io-index"
968
+ checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
969
+ dependencies = [
970
+ "libc",
971
+ "winapi",
972
+ ]
973
+
974
+ [[package]]
975
+ name = "tinyvec"
976
+ version = "1.5.1"
977
+ source = "registry+https://github.com/rust-lang/crates.io-index"
978
+ checksum = "2c1c1d5a42b6245520c249549ec267180beaffcc0615401ac8e31853d4b6d8d2"
979
+ dependencies = [
980
+ "tinyvec_macros",
981
+ ]
982
+
983
+ [[package]]
984
+ name = "tinyvec_macros"
985
+ version = "0.1.0"
986
+ source = "registry+https://github.com/rust-lang/crates.io-index"
987
+ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
988
+
989
+ [[package]]
990
+ name = "tokio"
991
+ version = "1.14.0"
992
+ source = "registry+https://github.com/rust-lang/crates.io-index"
993
+ checksum = "70e992e41e0d2fb9f755b37446f20900f64446ef54874f40a60c78f021ac6144"
994
+ dependencies = [
995
+ "autocfg",
996
+ "bytes",
997
+ "libc",
998
+ "memchr",
999
+ "mio",
1000
+ "num_cpus",
1001
+ "pin-project-lite",
1002
+ "tokio-macros",
1003
+ "winapi",
1004
+ ]
1005
+
1006
+ [[package]]
1007
+ name = "tokio-macros"
1008
+ version = "1.6.0"
1009
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1010
+ checksum = "c9efc1aba077437943f7515666aa2b882dfabfbfdf89c819ea75a8d6e9eaba5e"
1011
+ dependencies = [
1012
+ "proc-macro2",
1013
+ "quote",
1014
+ "syn",
1015
+ ]
1016
+
1017
+ [[package]]
1018
+ name = "tokio-rustls"
1019
+ version = "0.23.1"
1020
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1021
+ checksum = "4baa378e417d780beff82bf54ceb0d195193ea6a00c14e22359e7f39456b5689"
1022
+ dependencies = [
1023
+ "rustls",
1024
+ "tokio",
1025
+ "webpki 0.22.0",
1026
+ ]
1027
+
1028
+ [[package]]
1029
+ name = "tokio-util"
1030
+ version = "0.6.9"
1031
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1032
+ checksum = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0"
1033
+ dependencies = [
1034
+ "bytes",
1035
+ "futures-core",
1036
+ "futures-sink",
1037
+ "log",
1038
+ "pin-project-lite",
1039
+ "tokio",
1040
+ ]
1041
+
1042
+ [[package]]
1043
+ name = "tokio-util"
1044
+ version = "0.7.2"
1045
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1046
+ checksum = "f988a1a1adc2fb21f9c12aa96441da33a1728193ae0b95d2be22dbd17fcb4e5c"
1047
+ dependencies = [
1048
+ "bytes",
1049
+ "futures-core",
1050
+ "futures-sink",
1051
+ "pin-project-lite",
1052
+ "tokio",
1053
+ "tracing",
1054
+ ]
1055
+
1056
+ [[package]]
1057
+ name = "tower-service"
1058
+ version = "0.3.1"
1059
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1060
+ checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"
1061
+
1062
+ [[package]]
1063
+ name = "tracing"
1064
+ version = "0.1.29"
1065
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1066
+ checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105"
1067
+ dependencies = [
1068
+ "cfg-if",
1069
+ "pin-project-lite",
1070
+ "tracing-attributes",
1071
+ "tracing-core",
1072
+ ]
1073
+
1074
+ [[package]]
1075
+ name = "tracing-attributes"
1076
+ version = "0.1.23"
1077
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1078
+ checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a"
1079
+ dependencies = [
1080
+ "proc-macro2",
1081
+ "quote",
1082
+ "syn",
1083
+ ]
1084
+
1085
+ [[package]]
1086
+ name = "tracing-core"
1087
+ version = "0.1.21"
1088
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1089
+ checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4"
1090
+ dependencies = [
1091
+ "lazy_static",
1092
+ ]
1093
+
1094
+ [[package]]
1095
+ name = "try-lock"
1096
+ version = "0.2.3"
1097
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1098
+ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
1099
+
1100
+ [[package]]
1101
+ name = "unicase"
1102
+ version = "2.6.0"
1103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1104
+ checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
1105
+ dependencies = [
1106
+ "version_check",
1107
+ ]
1108
+
1109
+ [[package]]
1110
+ name = "unicode-bidi"
1111
+ version = "0.3.7"
1112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1113
+ checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f"
1114
+
1115
+ [[package]]
1116
+ name = "unicode-ident"
1117
+ version = "1.0.8"
1118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1119
+ checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4"
1120
+
1121
+ [[package]]
1122
+ name = "unicode-normalization"
1123
+ version = "0.1.19"
1124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1125
+ checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9"
1126
+ dependencies = [
1127
+ "tinyvec",
1128
+ ]
1129
+
1130
+ [[package]]
1131
+ name = "untrusted"
1132
+ version = "0.7.1"
1133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1134
+ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
1135
+
1136
+ [[package]]
1137
+ name = "url"
1138
+ version = "2.2.2"
1139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1140
+ checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
1141
+ dependencies = [
1142
+ "form_urlencoded",
1143
+ "idna",
1144
+ "matches",
1145
+ "percent-encoding",
1146
+ "serde",
1147
+ ]
1148
+
1149
+ [[package]]
1150
+ name = "version_check"
1151
+ version = "0.9.3"
1152
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1153
+ checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
1154
+
1155
+ [[package]]
1156
+ name = "want"
1157
+ version = "0.3.0"
1158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1159
+ checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
1160
+ dependencies = [
1161
+ "log",
1162
+ "try-lock",
1163
+ ]
1164
+
1165
+ [[package]]
1166
+ name = "wasm-bindgen"
1167
+ version = "0.2.78"
1168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1169
+ checksum = "632f73e236b219150ea279196e54e610f5dbafa5d61786303d4da54f84e47fce"
1170
+ dependencies = [
1171
+ "cfg-if",
1172
+ "wasm-bindgen-macro",
1173
+ ]
1174
+
1175
+ [[package]]
1176
+ name = "wasm-bindgen-backend"
1177
+ version = "0.2.78"
1178
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1179
+ checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b"
1180
+ dependencies = [
1181
+ "bumpalo",
1182
+ "lazy_static",
1183
+ "log",
1184
+ "proc-macro2",
1185
+ "quote",
1186
+ "syn",
1187
+ "wasm-bindgen-shared",
1188
+ ]
1189
+
1190
+ [[package]]
1191
+ name = "wasm-bindgen-futures"
1192
+ version = "0.4.28"
1193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1194
+ checksum = "8e8d7523cb1f2a4c96c1317ca690031b714a51cc14e05f712446691f413f5d39"
1195
+ dependencies = [
1196
+ "cfg-if",
1197
+ "js-sys",
1198
+ "wasm-bindgen",
1199
+ "web-sys",
1200
+ ]
1201
+
1202
+ [[package]]
1203
+ name = "wasm-bindgen-macro"
1204
+ version = "0.2.78"
1205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1206
+ checksum = "d56146e7c495528bf6587663bea13a8eb588d39b36b679d83972e1a2dbbdacf9"
1207
+ dependencies = [
1208
+ "quote",
1209
+ "wasm-bindgen-macro-support",
1210
+ ]
1211
+
1212
+ [[package]]
1213
+ name = "wasm-bindgen-macro-support"
1214
+ version = "0.2.78"
1215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1216
+ checksum = "7803e0eea25835f8abdc585cd3021b3deb11543c6fe226dcd30b228857c5c5ab"
1217
+ dependencies = [
1218
+ "proc-macro2",
1219
+ "quote",
1220
+ "syn",
1221
+ "wasm-bindgen-backend",
1222
+ "wasm-bindgen-shared",
1223
+ ]
1224
+
1225
+ [[package]]
1226
+ name = "wasm-bindgen-shared"
1227
+ version = "0.2.78"
1228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1229
+ checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc"
1230
+
1231
+ [[package]]
1232
+ name = "web-sys"
1233
+ version = "0.3.55"
1234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1235
+ checksum = "38eb105f1c59d9eaa6b5cdc92b859d85b926e82cb2e0945cd0c9259faa6fe9fb"
1236
+ dependencies = [
1237
+ "js-sys",
1238
+ "wasm-bindgen",
1239
+ ]
1240
+
1241
+ [[package]]
1242
+ name = "webpki"
1243
+ version = "0.21.4"
1244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1245
+ checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea"
1246
+ dependencies = [
1247
+ "ring",
1248
+ "untrusted",
1249
+ ]
1250
+
1251
+ [[package]]
1252
+ name = "webpki"
1253
+ version = "0.22.0"
1254
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1255
+ checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd"
1256
+ dependencies = [
1257
+ "ring",
1258
+ "untrusted",
1259
+ ]
1260
+
1261
+ [[package]]
1262
+ name = "webpki-roots"
1263
+ version = "0.21.1"
1264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1265
+ checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940"
1266
+ dependencies = [
1267
+ "webpki 0.21.4",
1268
+ ]
1269
+
1270
+ [[package]]
1271
+ name = "winapi"
1272
+ version = "0.3.9"
1273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1274
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1275
+ dependencies = [
1276
+ "winapi-i686-pc-windows-gnu",
1277
+ "winapi-x86_64-pc-windows-gnu",
1278
+ ]
1279
+
1280
+ [[package]]
1281
+ name = "winapi-i686-pc-windows-gnu"
1282
+ version = "0.4.0"
1283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1284
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1285
+
1286
+ [[package]]
1287
+ name = "winapi-x86_64-pc-windows-gnu"
1288
+ version = "0.4.0"
1289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1290
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1291
+
1292
+ [[package]]
1293
+ name = "winreg"
1294
+ version = "0.7.0"
1295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1296
+ checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69"
1297
+ dependencies = [
1298
+ "winapi",
1299
+ ]
1300
+
1301
+ [[package]]
1302
+ name = "yaml-rust"
1303
+ version = "0.4.5"
1304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1305
+ checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
1306
+ dependencies = [
1307
+ "linked-hash-map",
1308
+ ]
1309
+ LOCK
1310
+
1311
+ # ---------------------------------------------------------------------------
1312
+ # Prefetch all Cargo dependencies into the local registry cache. --locked makes
1313
+ # cargo resolve exactly the embedded lock (never re-resolving to newer versions
1314
+ # that the offline build could not reach), and --manifest-path keeps cargo away
1315
+ # from the unreadable repository root. cargo fetch downloads packages only; it
1316
+ # does not compile anything.
1317
+ # ---------------------------------------------------------------------------
1318
+ if ! cargo fetch --locked --manifest-path "${FETCH_ROOT}/Cargo.toml"; then
1319
+ rm -rf "${FETCH_ROOT}"
1320
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
1321
+ return 1
1322
+ else
1323
+ exit 1
1324
+ fi
1325
+ fi
1326
+
1327
+ rm -rf "${FETCH_ROOT}"
1328
+
1329
+ # Mark the prefetch complete so re-sourcing is a fast no-op.
1330
+ touch "${DOWNLOAD_DONE_MARKER}"
1331
+
1332
+ return 0
anowell--are-we-learning-yet.4554566/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:778a4b2bec4a63453ef7e851a701db4ca11ff8f00651ccb98a75352988e7bc23
3
+ size 7414920
anowell--are-we-learning-yet.4554566/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ source /tmp/programgym-download.sh
9
+ set +a
10
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
11
+ import os
12
+ import shlex
13
+
14
+ ignored = {
15
+ "ALL_PROXY",
16
+ "HTTP_PROXY",
17
+ "HTTPS_PROXY",
18
+ "NO_PROXY",
19
+ "OLDPWD",
20
+ "PIP_PROXY",
21
+ "PWD",
22
+ "SHLVL",
23
+ "_",
24
+ "all_proxy",
25
+ "http_proxy",
26
+ "https_proxy",
27
+ "no_proxy",
28
+ "pip_proxy",
29
+ }
30
+ for key in sorted(os.environ):
31
+ if key in ignored or key.startswith("BASH_FUNC_"):
32
+ continue
33
+ value = os.environ[key]
34
+ if "\n" in value:
35
+ continue
36
+ print(f"export {key}={shlex.quote(value)}")
37
+ PY
anowell--are-we-learning-yet.4554566/tests/programgym_evaluator.py ADDED
@@ -0,0 +1,1201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """In-place ProgramGym evaluator.
3
+
4
+ Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
5
+ no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
6
+ cleanroom container after Harbor flips the verifier-phase network policy.
7
+
8
+ Differences from ``programgym.eval.eval.Evaluator`` that are structural to
9
+ running in one container:
10
+
11
+ * No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
12
+ copy a post-compile workspace snapshot to a temp directory and restore it
13
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
14
+ processes between attempts to approximate the fresh-container boundary.
15
+ * No ``docker commit``. The post-compile workspace snapshot serves the same
16
+ role as the committed image upstream.
17
+ * Hidden test blobs are fetched on demand from HuggingFace via
18
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
19
+ rather than being pre-staged into ``/tests/blobs/``. Override with
20
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
21
+
22
+ Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
23
+ ``compile.sh`` then stash + hash the executable, best-effort
24
+ ``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
25
+ ``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
26
+ best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
27
+ preserved.
28
+ """
29
+
30
+ from __future__ import annotations
31
+
32
+ import hashlib
33
+ import json
34
+ import os
35
+ import re
36
+ import shlex
37
+ import shutil
38
+ import signal
39
+ import subprocess
40
+ import tempfile
41
+ import time
42
+ import traceback
43
+ import xml.etree.ElementTree as ET
44
+ from pathlib import Path
45
+ from typing import Any
46
+
47
+ WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
48
+ STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
49
+ METADATA_PATH = Path(
50
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
51
+ )
52
+ LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
53
+ WORKER_CRASH_PHRASE = "worker '"
54
+ XDIST_COLLAPSE_MARKERS = (
55
+ "maximum crashed workers reached",
56
+ "xdist: maximum crashed",
57
+ )
58
+
59
+ DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
60
+ DEFAULT_HF_REVISION = "main"
61
+
62
+ # Oracle agent handoff files (see solution/solve.sh). Must not appear in the
63
+ # post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
64
+ _ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
65
+
66
+ _TOOLCHAIN_BIN_DIR_CANDIDATES = (
67
+ "/usr/local/go/bin",
68
+ "/go/bin",
69
+ "/usr/local/cargo/bin",
70
+ "/root/.cargo/bin",
71
+ "/root/.ghcup/bin",
72
+ )
73
+
74
+
75
+ def toolchain_bin_dirs() -> list[str]:
76
+ """Return toolchain bin directories that exist on this image."""
77
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
78
+ candidates.extend(
79
+ str(path)
80
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
81
+ if _is_accessible_dir(path)
82
+ )
83
+ seen: set[str] = set()
84
+ present: list[str] = []
85
+ for path in candidates:
86
+ if path in seen:
87
+ continue
88
+ seen.add(path)
89
+ if _is_accessible_dir(path):
90
+ present.append(path)
91
+ return present
92
+
93
+
94
+ def _is_accessible_dir(path: str | Path) -> bool:
95
+ """Return whether path is a directory without failing on protected homes."""
96
+ try:
97
+ return Path(path).is_dir()
98
+ except OSError:
99
+ return False
100
+
101
+
102
+ def bootstrap_toolchain_path() -> str:
103
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
104
+ prepend = toolchain_bin_dirs()
105
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
106
+ merged: list[str] = []
107
+ for path in prepend + current_parts:
108
+ if path not in merged:
109
+ merged.append(path)
110
+ new_path = ":".join(merged)
111
+ os.environ["PATH"] = new_path
112
+ return new_path
113
+
114
+
115
+ def _bash_login_command(command: str) -> str:
116
+ """Run ``command`` under bash -lc with an explicit PATH export."""
117
+ path = bootstrap_toolchain_path()
118
+ return f"export PATH={shlex.quote(path)}; {command}"
119
+
120
+
121
+ def sha256(path: Path) -> str:
122
+ h = hashlib.sha256()
123
+ with path.open("rb") as f:
124
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
125
+ h.update(chunk)
126
+ return h.hexdigest()
127
+
128
+
129
+ def write_json(path: Path, data: dict[str, Any]) -> None:
130
+ tmp = path.with_suffix(path.suffix + ".tmp")
131
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
132
+ tmp.replace(path)
133
+
134
+
135
+ def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
136
+ if path is None or not path.exists():
137
+ return ""
138
+ data = path.read_bytes()
139
+ if len(data) <= max_bytes:
140
+ return data.decode(errors="replace")
141
+ return data[-max_bytes:].decode(errors="replace")
142
+
143
+
144
+ def _close_pipes(proc: subprocess.Popen[Any]) -> None:
145
+ for stream in (proc.stdout, proc.stderr):
146
+ if stream is not None:
147
+ try:
148
+ stream.close()
149
+ except OSError:
150
+ pass
151
+
152
+
153
+ def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
154
+ try:
155
+ os.killpg(proc.pid, signal.SIGKILL)
156
+ except ProcessLookupError:
157
+ pass
158
+ try:
159
+ proc.kill()
160
+ except ProcessLookupError:
161
+ pass
162
+
163
+
164
+ _PKILL_PATTERNS = (
165
+ f"{WORKSPACE}/eval/",
166
+ f"{WORKSPACE}/tests/",
167
+ "tail -f",
168
+ "development.log",
169
+ " less ",
170
+ " less$",
171
+ "/less ",
172
+ )
173
+
174
+
175
+ def _pkill_aggressive() -> str:
176
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
177
+ notes: list[str] = []
178
+ workspace = str(WORKSPACE)
179
+ patterns = list(_PKILL_PATTERNS) + [
180
+ f"pytest.*{workspace}",
181
+ f"xdist.*{workspace}",
182
+ ]
183
+ for pattern in patterns:
184
+ result = subprocess.run(
185
+ ["pkill", "-9", "-f", pattern],
186
+ capture_output=True,
187
+ text=True,
188
+ )
189
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
190
+ return "\n".join(notes)
191
+
192
+
193
+ def run_step(
194
+ command: str,
195
+ cwd: Path,
196
+ *,
197
+ timeout: int,
198
+ env: dict[str, str] | None = None,
199
+ step: str,
200
+ accept_failure: bool = False,
201
+ log_output: bool | None = None,
202
+ max_output_bytes: int = 65536,
203
+ ) -> dict[str, Any]:
204
+ if log_output is None:
205
+ log_output = step == "run_tests" or timeout >= 60
206
+
207
+ started = time.monotonic()
208
+ stdout_path: Path | None = None
209
+ stderr_path: Path | None = None
210
+ stdout_f = None
211
+ stderr_f = None
212
+
213
+ if log_output:
214
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
215
+ log_id = f"{step}-{int(started * 1000)}"
216
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
217
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
218
+ stdout_f = stdout_path.open("w", encoding="utf-8")
219
+ stderr_f = stderr_path.open("w", encoding="utf-8")
220
+ popen_stdout: Any = stdout_f
221
+ popen_stderr: Any = stderr_f
222
+ else:
223
+ popen_stdout = subprocess.PIPE
224
+ popen_stderr = subprocess.PIPE
225
+
226
+ proc = subprocess.Popen(
227
+ ["bash", "-lc", _bash_login_command(command)],
228
+ cwd=cwd,
229
+ env={**os.environ, **(env or {})},
230
+ stdout=popen_stdout,
231
+ stderr=popen_stderr,
232
+ start_new_session=True,
233
+ text=True,
234
+ )
235
+ timed_out = False
236
+ stdout = ""
237
+ stderr = ""
238
+ try:
239
+ if log_output:
240
+ proc.wait(timeout=timeout)
241
+ else:
242
+ stdout, stderr = proc.communicate(timeout=timeout)
243
+ except subprocess.TimeoutExpired:
244
+ timed_out = True
245
+ _terminate_process_tree(proc)
246
+ cleanup_lingering_processes(aggressive=True)
247
+ try:
248
+ proc.wait(timeout=5)
249
+ except subprocess.TimeoutExpired:
250
+ proc.kill()
251
+ if not log_output:
252
+ _close_pipes(proc)
253
+ finally:
254
+ if stdout_f is not None:
255
+ stdout_f.close()
256
+ if stderr_f is not None:
257
+ stderr_f.close()
258
+
259
+ if timed_out:
260
+ if log_output:
261
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
262
+ stderr_path, max_output_bytes
263
+ )
264
+ else:
265
+ output = ""
266
+ entry = {
267
+ "step": step,
268
+ "command": command,
269
+ "wall_time": time.monotonic() - started,
270
+ "output": output,
271
+ "returncode": 124,
272
+ "exception_info": f"timed out after {timeout}s",
273
+ }
274
+ else:
275
+ if log_output:
276
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
277
+ stderr_path, max_output_bytes
278
+ )
279
+ else:
280
+ output = stdout + stderr
281
+ entry = {
282
+ "step": step,
283
+ "command": command,
284
+ "wall_time": time.monotonic() - started,
285
+ "output": output,
286
+ "returncode": proc.returncode,
287
+ "exception_info": "",
288
+ }
289
+ if entry["returncode"] and not accept_failure:
290
+ raise RuntimeError(
291
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
292
+ )
293
+ return entry
294
+
295
+
296
+ def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
297
+ started = time.monotonic()
298
+ patterns = [
299
+ str(WORKSPACE / "executable"),
300
+ f"{WORKSPACE}/eval/",
301
+ f"{WORKSPACE}/tests/",
302
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
303
+ "tail -f",
304
+ "development.log",
305
+ ]
306
+ killed: list[int] = []
307
+ proc_root = Path("/proc")
308
+ proc_available = proc_root.exists()
309
+ if proc_available:
310
+ for proc_dir in proc_root.iterdir():
311
+ if not proc_dir.name.isdigit():
312
+ continue
313
+ pid = int(proc_dir.name)
314
+ if pid in {os.getpid(), os.getppid()}:
315
+ continue
316
+ try:
317
+ raw = (proc_dir / "cmdline").read_bytes()
318
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
319
+ continue
320
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
321
+ if not any(pattern in cmdline for pattern in patterns):
322
+ continue
323
+ try:
324
+ os.kill(pid, signal.SIGKILL)
325
+ except (PermissionError, ProcessLookupError):
326
+ continue
327
+ killed.append(pid)
328
+ pkill_output = ""
329
+ if aggressive or not proc_available:
330
+ pkill_output = _pkill_aggressive()
331
+ output_parts = []
332
+ if killed:
333
+ output_parts.append("\n".join(str(pid) for pid in killed))
334
+ if pkill_output:
335
+ output_parts.append(pkill_output)
336
+ return {
337
+ "step": "cleanup_lingering_processes",
338
+ "command": "kill leftover branch processes referencing the workspace",
339
+ "wall_time": time.monotonic() - started,
340
+ "output": "\n".join(output_parts),
341
+ "returncode": 0,
342
+ "exception_info": "",
343
+ }
344
+
345
+
346
+ def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
347
+ import tarfile
348
+
349
+ with tarfile.open(tar_path, "r:gz") as tf:
350
+ try:
351
+ tf.extractall(dest, filter="fully_trusted")
352
+ except TypeError:
353
+ tf.extractall(dest)
354
+
355
+
356
+ def find_results_xml() -> Path | None:
357
+ """Return the junit xml path if pytest wrote one."""
358
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
359
+ if candidate.exists():
360
+ return candidate
361
+ return None
362
+
363
+
364
+ def remove_oracle_handoff_artifacts() -> list[str]:
365
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
366
+ removed: list[str] = []
367
+ for name in _ORACLE_HANDOFF_NAMES:
368
+ path = WORKSPACE / name
369
+ if path.exists():
370
+ if path.is_dir():
371
+ shutil.rmtree(path)
372
+ else:
373
+ path.unlink()
374
+ removed.append(name)
375
+ return removed
376
+
377
+
378
+ def _remove_tree(path: Path) -> None:
379
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
380
+ if path.is_symlink() or path.is_file():
381
+ path.unlink(missing_ok=True)
382
+ return
383
+ if not path.is_dir():
384
+ path.unlink(missing_ok=True)
385
+ return
386
+ for attempt in range(3):
387
+ try:
388
+ shutil.rmtree(path)
389
+ if not path.exists():
390
+ return
391
+ except OSError:
392
+ if attempt == 2:
393
+ run_step(
394
+ f"rm -rf {shlex.quote(str(path))}",
395
+ path.parent,
396
+ timeout=120,
397
+ step="clear_workspace_fallback",
398
+ accept_failure=True,
399
+ )
400
+ if not path.exists():
401
+ return
402
+ raise
403
+
404
+
405
+ def ensure_workspace_dir() -> None:
406
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
407
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
408
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
409
+ WORKSPACE.unlink()
410
+ else:
411
+ shutil.rmtree(WORKSPACE)
412
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
413
+
414
+
415
+ def clear_workspace() -> None:
416
+ ensure_workspace_dir()
417
+ for path in list(WORKSPACE.iterdir()):
418
+ _remove_tree(path)
419
+
420
+
421
+ def restore_reference_executable() -> None:
422
+ """Write the stashed reference binary into /workspace after a branch overlay.
423
+
424
+ Branch blobs may ship ``executable`` as a dangling symlink into
425
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
426
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
427
+ reference as a regular file.
428
+ """
429
+ ensure_workspace_dir()
430
+ if not STASHED_EXECUTABLE.is_file():
431
+ raise FileNotFoundError(
432
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
433
+ )
434
+ dest = WORKSPACE / "executable"
435
+ if dest.exists() or dest.is_symlink():
436
+ if dest.is_dir():
437
+ shutil.rmtree(dest)
438
+ else:
439
+ dest.unlink(missing_ok=True)
440
+ shutil.copy2(STASHED_EXECUTABLE, dest)
441
+ dest.chmod(0o755)
442
+
443
+
444
+ def snapshot_workspace(dest: Path) -> None:
445
+ if dest.exists():
446
+ shutil.rmtree(dest)
447
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
448
+
449
+
450
+ def restore_workspace(source: Path) -> None:
451
+ clear_workspace()
452
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
453
+ ensure_workspace_dir()
454
+
455
+
456
+ def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
457
+ removed: list[str] = []
458
+ for path in root.rglob("*"):
459
+ if path.is_file() and not path.is_symlink():
460
+ try:
461
+ if sha256(path) in hashes:
462
+ path.unlink()
463
+ removed.append(str(path.relative_to(root)))
464
+ except OSError:
465
+ continue
466
+ return removed
467
+
468
+
469
+ def branch_tests(branch_info: dict[str, Any]) -> list[str]:
470
+ ignored = {
471
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
472
+ }
473
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
474
+
475
+
476
+ def ignored_tests(metadata: dict[str, Any]) -> set[str]:
477
+ result: set[str] = set()
478
+ for branch, info in metadata.get("branches", {}).items():
479
+ result.update(
480
+ f"{branch}/{item['name']}"
481
+ for item in info.get("ignored_tests", [])
482
+ if "name" in item
483
+ )
484
+ return result
485
+
486
+
487
+ def active_tests(metadata: dict[str, Any]) -> set[str]:
488
+ active: set[str] = set()
489
+ for branch, info in metadata.get("branches", {}).items():
490
+ if info.get("ignored"):
491
+ continue
492
+ ignored = {
493
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
494
+ }
495
+ active.update(
496
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
497
+ )
498
+ return active
499
+
500
+
501
+ def inject_not_run(
502
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
503
+ ) -> None:
504
+ result["test_results"].extend(
505
+ {
506
+ "name": name,
507
+ "branch": branch,
508
+ "status": "not_run",
509
+ "extra": {"error_code": error_code},
510
+ }
511
+ for name in tests
512
+ )
513
+
514
+
515
+ def testcase_name(case: ET.Element) -> str:
516
+ classname = case.attrib.get("classname", "")
517
+ name = case.attrib.get("name", "")
518
+ return f"{classname}.{name}" if classname else name
519
+
520
+
521
+ # Only these tags under <testcase> represent a result. <system-out> /
522
+ # <system-err> are stdout/stderr captures and must not be treated as results
523
+ # (a leading <system-out> followed by <failure> would otherwise be classified
524
+ # as a stdout-only "passed").
525
+ JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
526
+
527
+
528
+ def parse_junit(
529
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
530
+ ) -> tuple[list[dict[str, Any]], list[str]]:
531
+ root = ET.fromstring(raw_xml)
532
+ got: set[str] = set()
533
+ results: list[dict[str, Any]] = []
534
+ for case in root.iter("testcase"):
535
+ name = testcase_name(case)
536
+ got.add(name)
537
+ extra: dict[str, Any] = {}
538
+ if "time" in case.attrib:
539
+ try:
540
+ extra["time"] = float(case.attrib["time"])
541
+ except ValueError:
542
+ extra["time"] = case.attrib["time"]
543
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
544
+ # Collapse duplicate same-tag result children. Pytest's
545
+ # "pytest.internal" pseudo-test sometimes emits two identical <error>
546
+ # entries; treating that as a system_error would over-flag a real
547
+ # single failure. Mirrors upstream eval.py:816-820.
548
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
549
+ result_children = [result_children[0]]
550
+ if not result_children:
551
+ status = "passed"
552
+ elif len(result_children) != 1:
553
+ status = "system_error"
554
+ extra["error_details"] = (
555
+ f"Expected 1 result for {name}, got {len(result_children)}: "
556
+ f"{[c.tag for c in result_children]}"
557
+ )
558
+ else:
559
+ first = result_children[0]
560
+ status = first.tag # "skipped" | "failure" | "error"
561
+ extra["message"] = first.attrib.get("message") or ""
562
+ if first.text:
563
+ extra["text"] = first.text
564
+ results.append(
565
+ {"name": name, "branch": branch, "status": status, "extra": extra}
566
+ )
567
+
568
+ active_expected = [name for name in expected if name not in ignored]
569
+ missing = [name for name in active_expected if name not in got]
570
+ results.extend(
571
+ {
572
+ "name": name,
573
+ "branch": branch,
574
+ "status": "not_run",
575
+ "extra": {"error_code": "missing_from_junit_xml"},
576
+ }
577
+ for name in missing
578
+ )
579
+ unexpected = got - set(expected) - ignored
580
+ warnings = (
581
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
582
+ if unexpected
583
+ else []
584
+ )
585
+ return results, warnings
586
+
587
+
588
+ def count_worker_crashes(raw_xml: str) -> int:
589
+ if WORKER_CRASH_PHRASE not in raw_xml:
590
+ return 0
591
+ try:
592
+ root = ET.fromstring(raw_xml)
593
+ except ET.ParseError:
594
+ return 0
595
+ crashes = 0
596
+ for case in root.iter("testcase"):
597
+ for child in case:
598
+ text = (child.get("message") or "") + " " + (child.text or "")
599
+ if (
600
+ child.tag in {"error", "failure"}
601
+ and WORKER_CRASH_PHRASE in text
602
+ and "crashed" in text
603
+ ):
604
+ crashes += 1
605
+ break
606
+ return crashes
607
+
608
+
609
+ def run_output_indicates_xdist_collapse(output: str) -> bool:
610
+ lower = output.lower()
611
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
612
+
613
+
614
+ def count_junit_failures(raw_xml: str) -> int:
615
+ try:
616
+ root = ET.fromstring(raw_xml)
617
+ except ET.ParseError:
618
+ return 0
619
+ failures = 0
620
+ for case in root.iter("testcase"):
621
+ for child in case:
622
+ if child.tag in {"failure", "error"}:
623
+ failures += 1
624
+ break
625
+ return failures
626
+
627
+
628
+ def count_junit_passed(raw_xml: str) -> int:
629
+ try:
630
+ root = ET.fromstring(raw_xml)
631
+ except ET.ParseError:
632
+ return 0
633
+ passed = 0
634
+ for case in root.iter("testcase"):
635
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
636
+ passed += 1
637
+ return passed
638
+
639
+
640
+ def branch_attempt_metrics(
641
+ raw_xml: str, *, run_output: str, expected_tests: int
642
+ ) -> tuple[int, int, int, int]:
643
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
644
+ crashes = count_worker_crashes(raw_xml)
645
+ if run_output_indicates_xdist_collapse(run_output):
646
+ crashes = max(crashes, 1)
647
+ n_tests = count_testcases(raw_xml)
648
+ failures = count_junit_failures(raw_xml)
649
+ missing = max(0, expected_tests - n_tests)
650
+ return crashes, n_tests, failures, missing
651
+
652
+
653
+ def needs_serial_retry(
654
+ *,
655
+ serial: bool,
656
+ crashes: int,
657
+ missing: int,
658
+ failures: int,
659
+ n_tests: int,
660
+ expected_tests: int,
661
+ run_output: str,
662
+ ) -> bool:
663
+ if serial:
664
+ return False
665
+ high_failure_rate = (
666
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
667
+ )
668
+ return (
669
+ crashes > 0
670
+ or missing > 0
671
+ or high_failure_rate
672
+ or run_output_indicates_xdist_collapse(run_output)
673
+ )
674
+
675
+
676
+ def count_testcases(raw_xml: str) -> int:
677
+ try:
678
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
679
+ except ET.ParseError:
680
+ return 0
681
+
682
+
683
+ def scored_results(
684
+ result: dict[str, Any], metadata: dict[str, Any]
685
+ ) -> list[dict[str, Any]]:
686
+ active = active_tests(metadata)
687
+ by_key = {
688
+ f"{test['branch']}/{test['name']}": test
689
+ for test in result["test_results"]
690
+ if f"{test['branch']}/{test['name']}" in active
691
+ }
692
+ return [
693
+ by_key.get(
694
+ key,
695
+ {
696
+ "branch": key.split("/", 1)[0],
697
+ "name": key.split("/", 1)[1],
698
+ "status": "not_run",
699
+ "extra": {"error_code": "missing_from_results"},
700
+ },
701
+ )
702
+ for key in sorted(active)
703
+ ]
704
+
705
+
706
+ def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
707
+ scored = scored_results(result, metadata)
708
+ n_passed = sum(t["status"] == "passed" for t in scored)
709
+ n_tests = len(scored)
710
+ pass_rate = n_passed / n_tests if n_tests else 0.0
711
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
712
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
713
+ # the proportion of tasks scoring a perfect pass-rate and mean of
714
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
715
+ # per-task pass-rate whose mean is the overall mean reward.
716
+ return {
717
+ "reward": pass_rate,
718
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
719
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
720
+ }
721
+
722
+
723
+ def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
724
+ scored = scored_results(result, metadata)
725
+ n_passed = sum(t["status"] == "passed" for t in scored)
726
+ n_tests = len(scored)
727
+ pass_rate = n_passed / n_tests if n_tests else 0.0
728
+ return {
729
+ "pass_rate": pass_rate,
730
+ "resolved": int(
731
+ bool(
732
+ n_tests
733
+ and n_passed == n_tests
734
+ and not result["test_branch_errors"]
735
+ and not result["error_code"]
736
+ )
737
+ ),
738
+ "n_passed": n_passed,
739
+ "n_tests": n_tests,
740
+ "n_branch_errors": len(result["test_branch_errors"]),
741
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
742
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
743
+ }
744
+
745
+
746
+ def use_script_pty() -> bool:
747
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
748
+
749
+
750
+ def script_pty_available() -> bool:
751
+ return shutil.which("script") is not None
752
+
753
+
754
+ def branch_env(
755
+ *,
756
+ serial: bool,
757
+ has_rerunfailures: bool,
758
+ extras: dict[str, str] | None = None,
759
+ ) -> dict[str, str]:
760
+ addopts = ["--max-worker-restart=4"]
761
+ # A serial fallback is already a complete second execution. Re-running each
762
+ # failing test two more times makes large, failure-heavy suites prohibitively
763
+ # slow and adds little signal.
764
+ if has_rerunfailures and not serial:
765
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
766
+ env = {
767
+ "PYTEST_ADDOPTS": " ".join(addopts),
768
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
769
+ "NO_COLOR": "1",
770
+ "TERM": "dumb",
771
+ "CLICOLOR": "0",
772
+ "CLICOLOR_FORCE": "0",
773
+ "COLORTERM": "",
774
+ }
775
+ if extras:
776
+ env.update(extras)
777
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
778
+ if serial:
779
+ xdist_workers = "1"
780
+ if xdist_workers:
781
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
782
+ return env
783
+
784
+
785
+ _SERIAL_RUN_SH = ".programgym_run_serial.sh"
786
+ # ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
787
+ # ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
788
+ _RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
789
+
790
+
791
+ def prepare_serial_run_sh(run_sh: Path) -> Path:
792
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
793
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
794
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
795
+ serial_sh.write_text(patched)
796
+ serial_sh.chmod(0o755)
797
+ return serial_sh
798
+
799
+
800
+ def run_tests_command(*, serial: bool) -> str:
801
+ if serial:
802
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
803
+ else:
804
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
805
+ if use_script_pty() and script_pty_available():
806
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
807
+ return inner
808
+
809
+
810
+ BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
811
+
812
+
813
+ def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
814
+ """Locate the per-instance blob directory.
815
+
816
+ Resolution order:
817
+
818
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
819
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
820
+ agent never sees these.
821
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
822
+ tree on disk (``<dir>/<instance_id>/tests/<branch>.tar.gz``). Useful
823
+ for offline reruns sharing a cache across many tasks.
824
+ 3. ``huggingface_hub.snapshot_download`` from
825
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
826
+
827
+ The returned directory contains ``tests/<branch>.tar.gz`` per active
828
+ branch — same shape as ``programgym/ProgramGym-Tests/<instance_id>/``
829
+ on HF.
830
+ """
831
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
832
+ return BAKED_BLOB_DIR
833
+
834
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
835
+ if local:
836
+ candidate = Path(local) / instance_id
837
+ if candidate.exists():
838
+ return candidate
839
+ raise FileNotFoundError(
840
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
841
+ )
842
+
843
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
844
+ "hf_repo_id", DEFAULT_HF_REPO_ID
845
+ )
846
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
847
+ "hf_revision", DEFAULT_HF_REVISION
848
+ )
849
+
850
+ from huggingface_hub import snapshot_download
851
+
852
+ cache_root = Path(
853
+ snapshot_download(
854
+ repo_id,
855
+ repo_type="dataset",
856
+ revision=revision,
857
+ allow_patterns=f"{instance_id}/**",
858
+ )
859
+ )
860
+ blob_dir = cache_root / instance_id
861
+ if not blob_dir.exists():
862
+ raise FileNotFoundError(
863
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
864
+ )
865
+ return blob_dir
866
+
867
+
868
+ def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
869
+ bootstrap_toolchain_path()
870
+ branches = metadata.get("branches", {})
871
+ active_branch_items = [
872
+ (name, info) for name, info in branches.items() if not info.get("ignored")
873
+ ]
874
+ result: dict[str, Any] = {
875
+ "test_results": [],
876
+ "error_code": None,
877
+ "error_details": None,
878
+ "log": [],
879
+ "solution_branch": "submission",
880
+ "test_branches": [name for name, _ in active_branch_items],
881
+ "test_branch_errors": {},
882
+ "executable_hash": None,
883
+ "warnings": [],
884
+ }
885
+
886
+ instance_id = metadata["instance_id"]
887
+
888
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
889
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
890
+
891
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
892
+ result["error_code"] = error_code
893
+ result["error_details"] = details
894
+ for branch, info in active_branch_items:
895
+ inject_not_run(result, branch, branch_tests(info), error_code)
896
+ return result
897
+
898
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
899
+ compiled_snapshot = Path(tmp) / "compiled"
900
+
901
+ started = time.monotonic()
902
+ removed = remove_hashed_files(
903
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
904
+ )
905
+ result["log"].append(
906
+ {
907
+ "step": "remove_hashed_files",
908
+ "command": "remove files matching eval_clean_hashes",
909
+ "wall_time": time.monotonic() - started,
910
+ "output": "".join(f"removed '{path}'\n" for path in removed),
911
+ "returncode": 0,
912
+ "exception_info": "",
913
+ }
914
+ )
915
+
916
+ compile_sh = WORKSPACE / "compile.sh"
917
+ if not compile_sh.exists():
918
+ return fail_all(
919
+ "missing_compile_sh", "submission did not contain compile.sh"
920
+ )
921
+
922
+ seed = (
923
+ "if [ ! -d .git ]; then "
924
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
925
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
926
+ "git -c init.defaultBranch=gold init -q && "
927
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
928
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
929
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
930
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
931
+ "fi"
932
+ )
933
+ try:
934
+ result["log"].append(
935
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
936
+ )
937
+ compile_log = run_step(
938
+ "chmod +x ./compile.sh && ./compile.sh",
939
+ WORKSPACE,
940
+ timeout=compile_timeout,
941
+ step="compile",
942
+ accept_failure=True,
943
+ )
944
+ result["log"].append(compile_log)
945
+ if compile_log["returncode"]:
946
+ return fail_all("compile_failed", compile_log["output"])
947
+ executable = WORKSPACE / "executable"
948
+ if not executable.exists():
949
+ return fail_all(
950
+ "missing_executable",
951
+ "compile.sh completed but did not create ./executable",
952
+ )
953
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
954
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
955
+ # the agent's executable during the stash→restore window. Mirrors
956
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
957
+ shutil.move(str(executable), STASHED_EXECUTABLE)
958
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
959
+ result["log"].append(
960
+ run_step(
961
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
962
+ WORKSPACE,
963
+ timeout=120,
964
+ step="install_rerunfailures",
965
+ accept_failure=True,
966
+ )
967
+ )
968
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
969
+ handoff_removed = remove_oracle_handoff_artifacts()
970
+ if handoff_removed:
971
+ result["log"].append(
972
+ {
973
+ "step": "remove_oracle_handoff",
974
+ "command": "remove oracle handoff artifacts from workspace",
975
+ "wall_time": 0.0,
976
+ "output": "".join(
977
+ f"removed '{name}'\n" for name in handoff_removed
978
+ ),
979
+ "returncode": 0,
980
+ "exception_info": "",
981
+ }
982
+ )
983
+ snapshot_workspace(compiled_snapshot)
984
+ except Exception as exc:
985
+ return fail_all(type(exc).__name__, str(exc))
986
+
987
+ try:
988
+ blob_dir = resolve_blob_dir(instance_id, metadata)
989
+ except Exception as exc:
990
+ details = f"{type(exc).__name__}: {exc}"
991
+ for branch, info in active_branch_items:
992
+ result["test_branch_errors"][branch] = [
993
+ {
994
+ "error_code": "blob_resolution_failed",
995
+ "error_details": details,
996
+ }
997
+ ]
998
+ inject_not_run(
999
+ result, branch, branch_tests(info), "blob_resolution_failed"
1000
+ )
1001
+ return result
1002
+
1003
+ for branch, info in active_branch_items:
1004
+ tests = branch_tests(info)
1005
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
1006
+ if not blob.exists():
1007
+ result["test_branch_errors"][branch] = [
1008
+ {"error_code": "missing_test_blob", "error_details": blob.name}
1009
+ ]
1010
+ inject_not_run(result, branch, tests, "missing_test_blob")
1011
+ continue
1012
+
1013
+ best_xml = ""
1014
+ # Prefer a complete, clean XML result, then the result covering the
1015
+ # most expected tests, and only then the one with the most passes.
1016
+ # Pass-count-only ranking can retain a partial xdist result over a
1017
+ # complete serial result.
1018
+ best_quality = (-1, -1, -1)
1019
+ serial = bool(metadata.get("force_serial_branches"))
1020
+ branch_log: list[dict[str, Any]] = []
1021
+ branch_ignored = {
1022
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
1023
+ }
1024
+ n_expected = len([name for name in tests if name not in branch_ignored])
1025
+
1026
+ def merge_best_xml(raw_xml: str) -> None:
1027
+ try:
1028
+ parsed, warnings = parse_junit(
1029
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
1030
+ )
1031
+ except Exception as exc:
1032
+ result["test_branch_errors"][branch] = [
1033
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
1034
+ ]
1035
+ inject_not_run(result, branch, tests, "xml_parse_error")
1036
+ else:
1037
+ result["test_results"].extend(parsed)
1038
+ result["warnings"].extend(warnings)
1039
+
1040
+ while True:
1041
+ branch_log.append(cleanup_lingering_processes())
1042
+ restore_workspace(compiled_snapshot)
1043
+ extract_trusted_blob(blob, WORKSPACE)
1044
+ restore_reference_executable()
1045
+ actual_hash = sha256(WORKSPACE / "executable")
1046
+ if actual_hash != result["executable_hash"]:
1047
+ result["test_branch_errors"][branch] = [
1048
+ {
1049
+ "error_code": "executable_hash_mismatch",
1050
+ "error_details": (
1051
+ f"expected {result['executable_hash']}, got {actual_hash}"
1052
+ ),
1053
+ }
1054
+ ]
1055
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
1056
+ break
1057
+ run_sh = WORKSPACE / "eval" / "run.sh"
1058
+ if not run_sh.exists():
1059
+ result["test_branch_errors"][branch] = [
1060
+ {
1061
+ "error_code": "missing_run_sh",
1062
+ "error_details": "eval/run.sh missing",
1063
+ }
1064
+ ]
1065
+ inject_not_run(result, branch, tests, "missing_run_sh")
1066
+ break
1067
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
1068
+ # instead of os._exit(1) on timeout. That works in fresh
1069
+ # containers per branch; here we reuse one container and
1070
+ # signal timeouts leave TUI/log-watcher subprocesses alive
1071
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
1072
+ # branch_timeout. Keep the blob's thread method and rely on
1073
+ # cleanup_lingering_processes + serial fallback after crashes.
1074
+ env = branch_env(
1075
+ serial=serial,
1076
+ has_rerunfailures=has_rerunfailures,
1077
+ extras=metadata.get("branch_env"),
1078
+ )
1079
+ branch_log.append(
1080
+ run_step(
1081
+ "rm -f eval/results.xml results.xml",
1082
+ WORKSPACE,
1083
+ timeout=120,
1084
+ step="clean_stale_results",
1085
+ accept_failure=True,
1086
+ )
1087
+ )
1088
+ if serial:
1089
+ prepare_serial_run_sh(run_sh)
1090
+ run_entry = run_step(
1091
+ run_tests_command(serial=serial),
1092
+ WORKSPACE,
1093
+ timeout=branch_timeout,
1094
+ env=env,
1095
+ step="run_tests",
1096
+ accept_failure=True,
1097
+ )
1098
+ branch_log.append(run_entry)
1099
+ branch_log.append(cleanup_lingering_processes())
1100
+ xml_path = find_results_xml()
1101
+ if xml_path is None:
1102
+ if best_xml:
1103
+ merge_best_xml(best_xml)
1104
+ break
1105
+ if serial:
1106
+ result["test_branch_errors"][branch] = [
1107
+ {
1108
+ "error_code": "missing_results_xml",
1109
+ "error_details": "eval/results.xml was not produced",
1110
+ }
1111
+ ]
1112
+ inject_not_run(result, branch, tests, "missing_results_xml")
1113
+ break
1114
+ serial = True
1115
+ continue
1116
+ raw_xml = xml_path.read_text(errors="replace")
1117
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
1118
+ raw_xml,
1119
+ run_output=run_entry.get("output", ""),
1120
+ expected_tests=n_expected,
1121
+ )
1122
+ useful = count_junit_passed(raw_xml)
1123
+ quality = (
1124
+ int(crashes == 0 and missing == 0),
1125
+ n_tests,
1126
+ useful,
1127
+ )
1128
+ if quality > best_quality:
1129
+ best_xml = raw_xml
1130
+ best_quality = quality
1131
+ retry = needs_serial_retry(
1132
+ serial=serial,
1133
+ crashes=crashes,
1134
+ missing=missing,
1135
+ failures=failures,
1136
+ n_tests=n_tests,
1137
+ expected_tests=n_expected,
1138
+ run_output=run_entry.get("output", ""),
1139
+ )
1140
+ if not retry:
1141
+ merge_best_xml(best_xml)
1142
+ break
1143
+ serial = True
1144
+ for entry in branch_log:
1145
+ entry["branch"] = branch
1146
+ result["log"].extend(branch_log)
1147
+
1148
+ return result
1149
+
1150
+
1151
+ def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
1152
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
1153
+ write_json(LOG_DIR / "programgym_eval.json", result)
1154
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
1155
+ rewards = summarize(result, metadata)
1156
+ write_json(LOG_DIR / "reward.json", rewards)
1157
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
1158
+
1159
+
1160
+ def main() -> None:
1161
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
1162
+ log_path = LOG_DIR / "programgym_eval.log"
1163
+ metadata = json.loads(METADATA_PATH.read_text())
1164
+ branches = metadata.get("branches", {})
1165
+ try:
1166
+ result = evaluate(metadata)
1167
+ except Exception as exc:
1168
+ error_code = type(exc).__name__
1169
+ result = {
1170
+ "test_results": [],
1171
+ "error_code": error_code,
1172
+ "error_details": str(exc),
1173
+ "log": [
1174
+ {
1175
+ "step": "evaluator_exception",
1176
+ "exception_info": traceback.format_exc(),
1177
+ "returncode": 1,
1178
+ }
1179
+ ],
1180
+ "solution_branch": "submission",
1181
+ "test_branches": [
1182
+ name for name, info in branches.items() if not info.get("ignored")
1183
+ ],
1184
+ "test_branch_errors": {
1185
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
1186
+ },
1187
+ "executable_hash": None,
1188
+ "warnings": [],
1189
+ }
1190
+ for branch, info in branches.items():
1191
+ if info.get("ignored"):
1192
+ continue
1193
+ inject_not_run(result, branch, branch_tests(info), error_code)
1194
+ log_path.write_text(traceback.format_exc())
1195
+ else:
1196
+ log_path.write_text("")
1197
+ write_outputs(result, metadata)
1198
+
1199
+
1200
+ if __name__ == "__main__":
1201
+ main()
anowell--are-we-learning-yet.4554566/tests/programgym_task.json ADDED
@@ -0,0 +1,1171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [],
7
+ "tests": [
8
+ "eval.tests.test_cli_args.test_empty_string_token_is_accepted",
9
+ "eval.tests.test_cli_args.test_extra_junk_args_after_path_are_ignored",
10
+ "eval.tests.test_cli_args.test_flag_style_first_argument_treated_as_path",
11
+ "eval.tests.test_cli_args.test_missing_token_fails_before_reading_file",
12
+ "eval.tests.test_cli_args.test_missing_token_fails_even_with_valid_yaml",
13
+ "eval.tests.test_cli_args.test_missing_token_reports_environment_lookup_exact",
14
+ "eval.tests.test_cli_args.test_no_arguments_does_not_start_pipeline",
15
+ "eval.tests.test_cli_args.test_no_arguments_prints_exact_usage_and_fails",
16
+ "eval.tests.test_cli_args.test_no_arguments_stderr_exact_stdout_empty",
17
+ "eval.tests.test_cli_args.test_token_present_allows_pipeline_to_run",
18
+ "eval.tests.test_crates_data.test_crate_cache_full_fields_exact",
19
+ "eval.tests.test_crates_data.test_crate_cache_ignores_unknown_extra_fields_offline",
20
+ "eval.tests.test_crates_data.test_crate_cache_layer_error_is_nonfatal_offline",
21
+ "eval.tests.test_crates_data.test_crate_cache_populates_meta",
22
+ "eval.tests.test_crates_data.test_crate_meta_with_sibling_github_repo",
23
+ "eval.tests.test_crates_data.test_crate_with_non_github_repo_skips_github",
24
+ "eval.tests.test_crates_data.test_crate_with_null_repository_skips_github",
25
+ "eval.tests.test_crates_data.test_crates_error_keeps_topics_in_output",
26
+ "eval.tests.test_crates_data.test_description_override_wins",
27
+ "eval.tests.test_crates_data.test_docs_fallback_not_applied_when_present",
28
+ "eval.tests.test_crates_data.test_docs_fallback_when_documentation_missing",
29
+ "eval.tests.test_crates_data.test_documentation_override_wins",
30
+ "eval.tests.test_crates_data.test_github_branch_uses_overridden_repository",
31
+ "eval.tests.test_crates_data.test_license_override_wins",
32
+ "eval.tests.test_crates_data.test_name_entry_with_empty_topics_via_cache_blocker",
33
+ "eval.tests.test_crates_data.test_repository_override_wins",
34
+ "eval.tests.test_crates_data.test_unoverridden_override_fields_stay_from_cache",
35
+ "eval.tests.test_entry_handling.test_entry_with_documentation_but_no_dispatch_fields_is_invalid",
36
+ "eval.tests.test_entry_handling.test_invalid_entry_among_valid_ones_only_drops_bad",
37
+ "eval.tests.test_entry_handling.test_invalid_entry_not_in_output",
38
+ "eval.tests.test_entry_handling.test_invalid_entry_reports_exact_debug_repr",
39
+ "eval.tests.test_entry_handling.test_multiple_entries_processed_in_order",
40
+ "eval.tests.test_entry_handling.test_name_entry_prints_processing_crate",
41
+ "eval.tests.test_entry_handling.test_name_takes_precedence_over_repository",
42
+ "eval.tests.test_entry_handling.test_repo_only_entry_keeps_topics",
43
+ "eval.tests.test_entry_handling.test_repo_only_entry_prints_processing_repo",
44
+ "eval.tests.test_entry_handling.test_topics_default_fills_none_entries",
45
+ "eval.tests.test_github_data.test_github_branch_uses_entry_override_repository",
46
+ "eval.tests.test_github_data.test_github_cache_layer_error_is_nonfatal_offline",
47
+ "eval.tests.test_github_data.test_github_cache_populates_repo",
48
+ "eval.tests.test_github_data.test_github_cache_repo_only_entry_has_repo_no_meta",
49
+ "eval.tests.test_github_data.test_github_cache_uses_dot_and_slash_split",
50
+ "eval.tests.test_github_data.test_github_malformed_cache_error_is_nonfatal_offline",
51
+ "eval.tests.test_github_data.test_github_repo_name_is_slash_joined",
52
+ "eval.tests.test_github_data.test_github_url_with_explicit_port_still_host_matches",
53
+ "eval.tests.test_github_data.test_http_scheme_github_host_still_scraped",
54
+ "eval.tests.test_github_data.test_nested_github_path_uses_first_two_segments",
55
+ "eval.tests.test_github_data.test_non_github_repo_skips_metadata",
56
+ "eval.tests.test_github_data.test_non_github_repo_with_fragment_and_query",
57
+ "eval.tests.test_github_data.test_subdomain_www_github_host_skipped",
58
+ "eval.tests.test_github_data.test_uppercase_github_host_normalized_to_lowercase",
59
+ "eval.tests.test_input_errors.test_all_topic_variants_accepted",
60
+ "eval.tests.test_input_errors.test_comments_only_file_reports_eof_while_parsing_exact",
61
+ "eval.tests.test_input_errors.test_dash_only_document_reports_unit_error_exact",
62
+ "eval.tests.test_input_errors.test_empty_file_reports_eof_while_parsing_exact",
63
+ "eval.tests.test_input_errors.test_empty_list_input_writes_empty_output_golden",
64
+ "eval.tests.test_input_errors.test_empty_string_path_is_rejected_with_no_such_file",
65
+ "eval.tests.test_input_errors.test_invalid_topic_variant_exact",
66
+ "eval.tests.test_input_errors.test_malformed_yaml_fails_cleanly",
67
+ "eval.tests.test_input_errors.test_malformed_yaml_scalar_not_list_exact",
68
+ "eval.tests.test_input_errors.test_missing_file_does_not_produce_output",
69
+ "eval.tests.test_input_errors.test_missing_file_reports_exact_error_reading",
70
+ "eval.tests.test_input_errors.test_missing_file_reports_os_error_exact",
71
+ "eval.tests.test_input_errors.test_missing_required_topics_field_fails_exact",
72
+ "eval.tests.test_input_errors.test_mixed_valid_and_invalid_topic_fails",
73
+ "eval.tests.test_input_errors.test_topics_only_entry_yields_zero_score_structured",
74
+ "eval.tests.test_input_errors.test_yaml_mapping_not_list_fails_exact",
75
+ "eval.tests.test_main_robustness.test_crate_error_does_not_abort_remaining_entries",
76
+ "eval.tests.test_main_robustness.test_github_lookup_error_with_valid_crate_data",
77
+ "eval.tests.test_main_robustness.test_invalid_cached_repository_url_panics",
78
+ "eval.tests.test_main_robustness.test_single_segment_github_path_index_panics",
79
+ "eval.tests.test_output.test_empty_yaml_list_writes_empty_output_golden",
80
+ "eval.tests.test_output.test_existing_output_file_is_overwritten",
81
+ "eval.tests.test_output.test_missing_output_dir_fails_exact",
82
+ "eval.tests.test_output.test_missing_output_dir_still_prints_processing",
83
+ "eval.tests.test_output.test_output_dir_as_file_fails_write",
84
+ "eval.tests.test_output.test_output_directory_is_auto_not_created",
85
+ "eval.tests.test_output.test_output_file_is_created",
86
+ "eval.tests.test_output.test_output_file_is_valid_yaml_list",
87
+ "eval.tests.test_output.test_output_format_is_document_list",
88
+ "eval.tests.test_output.test_output_written_relative_to_cwd_not_input",
89
+ "eval.tests.test_output.test_single_entry_yaml_shape",
90
+ "eval.tests.test_score.test_score_010_coefficient_for_stale_crate",
91
+ "eval.tests.test_score.test_score_050_coefficient_for_medium_age_crate",
92
+ "eval.tests.test_score.test_score_100_coefficient_via_future_crate_updated_at",
93
+ "eval.tests.test_score.test_score_100_coefficient_via_future_repo_commit",
94
+ "eval.tests.test_score.test_score_activity_horizon_monotonicity_offline",
95
+ "eval.tests.test_score.test_score_bound_exact_for_many_entries",
96
+ "eval.tests.test_score.test_score_monotonic_in_recent_downloads",
97
+ "eval.tests.test_score.test_score_respects_zero_recent_downloads",
98
+ "eval.tests.test_score.test_score_written_for_crate_with_data",
99
+ "eval.tests.test_score.test_score_zero_for_future_updates_with_no_downloads",
100
+ "eval.tests.test_score.test_score_zero_for_repo_only_github_entry",
101
+ "eval.tests.test_score.test_score_zero_when_crate_lookup_fails_offline",
102
+ "eval.tests.test_score.test_score_zero_when_no_crate_data",
103
+ "eval.tests.test_score.test_score_zero_when_no_recent_downloads_inactive"
104
+ ]
105
+ },
106
+ "generated_module_03": {
107
+ "ignore_reason": "",
108
+ "ignored": false,
109
+ "ignored_tests": [
110
+ {
111
+ "name": "eval.tests.test_cli_io.TestCacheMissFallthrough.test_empty_cache_file_falls_back",
112
+ "reasons": [
113
+ {
114
+ "id": "missing_fixture_assets",
115
+ "message": "pytest test references fixture assets that are not packaged",
116
+ "path": "eval/tests/test_cli_io.py",
117
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
118
+ "severity": "error",
119
+ "stage": "static_lint"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "name": "eval.tests.test_cli_io.TestCacheMissFallthrough.test_malformed_cache_file_falls_back",
125
+ "reasons": [
126
+ {
127
+ "id": "missing_fixture_assets",
128
+ "message": "pytest test references fixture assets that are not packaged",
129
+ "path": "eval/tests/test_cli_io.py",
130
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
131
+ "severity": "error",
132
+ "stage": "static_lint"
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "name": "eval.tests.test_cli_io.TestCacheMissFallthrough.test_no_cache_file_falls_back_and_logs_stable_prefix",
138
+ "reasons": [
139
+ {
140
+ "id": "missing_fixture_assets",
141
+ "message": "pytest test references fixture assets that are not packaged",
142
+ "path": "eval/tests/test_cli_io.py",
143
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
144
+ "severity": "error",
145
+ "stage": "static_lint"
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "name": "eval.tests.test_cli_io.TestCacheMissFallthrough.test_seeded_cache_prevents_remote_fetch",
151
+ "reasons": [
152
+ {
153
+ "id": "missing_fixture_assets",
154
+ "message": "pytest test references fixture assets that are not packaged",
155
+ "path": "eval/tests/test_cli_io.py",
156
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
157
+ "severity": "error",
158
+ "stage": "static_lint"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "name": "eval.tests.test_cli_io.TestCliArgs.test_blank_input_file_is_parse_error",
164
+ "reasons": [
165
+ {
166
+ "id": "missing_fixture_assets",
167
+ "message": "pytest test references fixture assets that are not packaged",
168
+ "path": "eval/tests/test_cli_io.py",
169
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
170
+ "severity": "error",
171
+ "stage": "static_lint"
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "name": "eval.tests.test_cli_io.TestCliArgs.test_extra_positional_arguments_are_ignored",
177
+ "reasons": [
178
+ {
179
+ "id": "missing_fixture_assets",
180
+ "message": "pytest test references fixture assets that are not packaged",
181
+ "path": "eval/tests/test_cli_io.py",
182
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
183
+ "severity": "error",
184
+ "stage": "static_lint"
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "name": "eval.tests.test_cli_io.TestCliArgs.test_missing_input_file_errors",
190
+ "reasons": [
191
+ {
192
+ "id": "missing_fixture_assets",
193
+ "message": "pytest test references fixture assets that are not packaged",
194
+ "path": "eval/tests/test_cli_io.py",
195
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
196
+ "severity": "error",
197
+ "stage": "static_lint"
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "name": "eval.tests.test_cli_io.TestCliArgs.test_no_arguments_prints_usage",
203
+ "reasons": [
204
+ {
205
+ "id": "missing_fixture_assets",
206
+ "message": "pytest test references fixture assets that are not packaged",
207
+ "path": "eval/tests/test_cli_io.py",
208
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
209
+ "severity": "error",
210
+ "stage": "static_lint"
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "name": "eval.tests.test_cli_io.TestOutputIo.test_empty_crate_list_produces_empty_document",
216
+ "reasons": [
217
+ {
218
+ "id": "missing_fixture_assets",
219
+ "message": "pytest test references fixture assets that are not packaged",
220
+ "path": "eval/tests/test_cli_io.py",
221
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
222
+ "severity": "error",
223
+ "stage": "static_lint"
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "name": "eval.tests.test_cli_io.TestOutputIo.test_output_written_relative_to_cwd",
229
+ "reasons": [
230
+ {
231
+ "id": "missing_fixture_assets",
232
+ "message": "pytest test references fixture assets that are not packaged",
233
+ "path": "eval/tests/test_cli_io.py",
234
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
235
+ "severity": "error",
236
+ "stage": "static_lint"
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_integer_unix_epoch_pushedat_is_error",
242
+ "reasons": [
243
+ {
244
+ "id": "missing_fixture_assets",
245
+ "message": "pytest test references fixture assets that are not packaged",
246
+ "path": "eval/tests/test_github_cache_errors.py",
247
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
248
+ "severity": "error",
249
+ "stage": "static_lint"
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_missing_data_wrapper_is_error",
255
+ "reasons": [
256
+ {
257
+ "id": "missing_fixture_assets",
258
+ "message": "pytest test references fixture assets that are not packaged",
259
+ "path": "eval/tests/test_github_cache_errors.py",
260
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
261
+ "severity": "error",
262
+ "stage": "static_lint"
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_missing_pushedat_is_error",
268
+ "reasons": [
269
+ {
270
+ "id": "missing_fixture_assets",
271
+ "message": "pytest test references fixture assets that are not packaged",
272
+ "path": "eval/tests/test_github_cache_errors.py",
273
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
274
+ "severity": "error",
275
+ "stage": "static_lint"
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_missing_stargazers_is_error",
281
+ "reasons": [
282
+ {
283
+ "id": "missing_fixture_assets",
284
+ "message": "pytest test references fixture assets that are not packaged",
285
+ "path": "eval/tests/test_github_cache_errors.py",
286
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
287
+ "severity": "error",
288
+ "stage": "static_lint"
289
+ }
290
+ ]
291
+ },
292
+ {
293
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_negative_stargazers_is_error",
294
+ "reasons": [
295
+ {
296
+ "id": "missing_fixture_assets",
297
+ "message": "pytest test references fixture assets that are not packaged",
298
+ "path": "eval/tests/test_github_cache_errors.py",
299
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
300
+ "severity": "error",
301
+ "stage": "static_lint"
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_no_timezone_pushedat_is_error",
307
+ "reasons": [
308
+ {
309
+ "id": "missing_fixture_assets",
310
+ "message": "pytest test references fixture assets that are not packaged",
311
+ "path": "eval/tests/test_github_cache_errors.py",
312
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
313
+ "severity": "error",
314
+ "stage": "static_lint"
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_pushedat_float_is_error",
320
+ "reasons": [
321
+ {
322
+ "id": "missing_fixture_assets",
323
+ "message": "pytest test references fixture assets that are not packaged",
324
+ "path": "eval/tests/test_github_cache_errors.py",
325
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
326
+ "severity": "error",
327
+ "stage": "static_lint"
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ "name": "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_stargazers_wrong_type_is_error",
333
+ "reasons": [
334
+ {
335
+ "id": "missing_fixture_assets",
336
+ "message": "pytest test references fixture assets that are not packaged",
337
+ "path": "eval/tests/test_github_cache_errors.py",
338
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
339
+ "severity": "error",
340
+ "stage": "static_lint"
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "name": "eval.tests.test_github_cache_hit.TestCacheHitParse.test_epoch_pushedat_boundary",
346
+ "reasons": [
347
+ {
348
+ "id": "missing_fixture_assets",
349
+ "message": "pytest test references fixture assets that are not packaged",
350
+ "path": "eval/tests/test_github_cache_hit.py",
351
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
352
+ "severity": "error",
353
+ "stage": "static_lint"
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "name": "eval.tests.test_github_cache_hit.TestCacheHitParse.test_extra_json_fields_ignored",
359
+ "reasons": [
360
+ {
361
+ "id": "missing_fixture_assets",
362
+ "message": "pytest test references fixture assets that are not packaged",
363
+ "path": "eval/tests/test_github_cache_hit.py",
364
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
365
+ "severity": "error",
366
+ "stage": "static_lint"
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "name": "eval.tests.test_github_cache_hit.TestCacheHitParse.test_full_payload_repo_block",
372
+ "reasons": [
373
+ {
374
+ "id": "missing_fixture_assets",
375
+ "message": "pytest test references fixture assets that are not packaged",
376
+ "path": "eval/tests/test_github_cache_hit.py",
377
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
378
+ "severity": "error",
379
+ "stage": "static_lint"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "name": "eval.tests.test_github_cache_hit.TestCacheHitParse.test_max_u32_stargazers_boundary",
385
+ "reasons": [
386
+ {
387
+ "id": "missing_fixture_assets",
388
+ "message": "pytest test references fixture assets that are not packaged",
389
+ "path": "eval/tests/test_github_cache_hit.py",
390
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
391
+ "severity": "error",
392
+ "stage": "static_lint"
393
+ }
394
+ ]
395
+ },
396
+ {
397
+ "name": "eval.tests.test_github_cache_hit.TestCacheHitParse.test_zero_stargazers_boundary",
398
+ "reasons": [
399
+ {
400
+ "id": "missing_fixture_assets",
401
+ "message": "pytest test references fixture assets that are not packaged",
402
+ "path": "eval/tests/test_github_cache_hit.py",
403
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
404
+ "severity": "error",
405
+ "stage": "static_lint"
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "name": "eval.tests.test_github_cache_hit.TestMultiEntryCacheHits.test_duplicate_repo_entry_reads_cache_twice",
411
+ "reasons": [
412
+ {
413
+ "id": "missing_fixture_assets",
414
+ "message": "pytest test references fixture assets that are not packaged",
415
+ "path": "eval/tests/test_github_cache_hit.py",
416
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
417
+ "severity": "error",
418
+ "stage": "static_lint"
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "name": "eval.tests.test_github_cache_hit.TestMultiEntryCacheHits.test_two_repos_both_cache_hits",
424
+ "reasons": [
425
+ {
426
+ "id": "missing_fixture_assets",
427
+ "message": "pytest test references fixture assets that are not packaged",
428
+ "path": "eval/tests/test_github_cache_hit.py",
429
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
430
+ "severity": "error",
431
+ "stage": "static_lint"
432
+ }
433
+ ]
434
+ },
435
+ {
436
+ "name": "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_fractional_seconds_preserved",
437
+ "reasons": [
438
+ {
439
+ "id": "missing_fixture_assets",
440
+ "message": "pytest test references fixture assets that are not packaged",
441
+ "path": "eval/tests/test_github_cache_hit.py",
442
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
443
+ "severity": "error",
444
+ "stage": "static_lint"
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "name": "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_half_hour_offset_normalized_to_utc",
450
+ "reasons": [
451
+ {
452
+ "id": "missing_fixture_assets",
453
+ "message": "pytest test references fixture assets that are not packaged",
454
+ "path": "eval/tests/test_github_cache_hit.py",
455
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
456
+ "severity": "error",
457
+ "stage": "static_lint"
458
+ }
459
+ ]
460
+ },
461
+ {
462
+ "name": "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_negative_offset_normalized_to_utc",
463
+ "reasons": [
464
+ {
465
+ "id": "missing_fixture_assets",
466
+ "message": "pytest test references fixture assets that are not packaged",
467
+ "path": "eval/tests/test_github_cache_hit.py",
468
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
469
+ "severity": "error",
470
+ "stage": "static_lint"
471
+ }
472
+ ]
473
+ },
474
+ {
475
+ "name": "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_positive_offset_rolls_to_previous_utc_day",
476
+ "reasons": [
477
+ {
478
+ "id": "missing_fixture_assets",
479
+ "message": "pytest test references fixture assets that are not packaged",
480
+ "path": "eval/tests/test_github_cache_hit.py",
481
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
482
+ "severity": "error",
483
+ "stage": "static_lint"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "name": "eval.tests.test_github_cache_hit.TestRepoNameFormatting.test_dashed_repo_name_uses_full_segment",
489
+ "reasons": [
490
+ {
491
+ "id": "missing_fixture_assets",
492
+ "message": "pytest test references fixture assets that are not packaged",
493
+ "path": "eval/tests/test_github_cache_hit.py",
494
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
495
+ "severity": "error",
496
+ "stage": "static_lint"
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ "name": "eval.tests.test_github_cache_hit.TestRepoNameFormatting.test_nested_path_uses_first_two_segments",
502
+ "reasons": [
503
+ {
504
+ "id": "missing_fixture_assets",
505
+ "message": "pytest test references fixture assets that are not packaged",
506
+ "path": "eval/tests/test_github_cache_hit.py",
507
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
508
+ "severity": "error",
509
+ "stage": "static_lint"
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ "name": "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_dotgit_spelling_reaches_same_cache",
515
+ "reasons": [
516
+ {
517
+ "id": "missing_fixture_assets",
518
+ "message": "pytest test references fixture assets that are not packaged",
519
+ "path": "eval/tests/test_github_cache_hit.py",
520
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
521
+ "severity": "error",
522
+ "stage": "static_lint"
523
+ }
524
+ ]
525
+ },
526
+ {
527
+ "name": "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_dotgit_trailing_slash_spelling_reaches_same_cache",
528
+ "reasons": [
529
+ {
530
+ "id": "missing_fixture_assets",
531
+ "message": "pytest test references fixture assets that are not packaged",
532
+ "path": "eval/tests/test_github_cache_hit.py",
533
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
534
+ "severity": "error",
535
+ "stage": "static_lint"
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "name": "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_nowww_spelling_reaches_same_cache",
541
+ "reasons": [
542
+ {
543
+ "id": "missing_fixture_assets",
544
+ "message": "pytest test references fixture assets that are not packaged",
545
+ "path": "eval/tests/test_github_cache_hit.py",
546
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
547
+ "severity": "error",
548
+ "stage": "static_lint"
549
+ }
550
+ ]
551
+ },
552
+ {
553
+ "name": "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_trailing_slash_spelling_reaches_same_cache",
554
+ "reasons": [
555
+ {
556
+ "id": "missing_fixture_assets",
557
+ "message": "pytest test references fixture assets that are not packaged",
558
+ "path": "eval/tests/test_github_cache_hit.py",
559
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
560
+ "severity": "error",
561
+ "stage": "static_lint"
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "name": "eval.tests.test_github_edges.TestEntryCombinations.test_entry_with_neither_name_nor_repository_is_skipped",
567
+ "reasons": [
568
+ {
569
+ "id": "short_substring",
570
+ "message": "pytest test uses a too-short substring oracle",
571
+ "path": "eval/tests/test_github_edges.py",
572
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
573
+ "severity": "error",
574
+ "stage": "static_lint"
575
+ },
576
+ {
577
+ "id": "generic_keyword_oracle",
578
+ "message": "pytest test uses a generic keyword oracle",
579
+ "path": "eval/tests/test_github_edges.py",
580
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
581
+ "severity": "error",
582
+ "stage": "static_lint"
583
+ },
584
+ {
585
+ "id": "missing_fixture_assets",
586
+ "message": "pytest test references fixture assets that are not packaged",
587
+ "path": "eval/tests/test_github_edges.py",
588
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
589
+ "severity": "error",
590
+ "stage": "static_lint"
591
+ }
592
+ ]
593
+ },
594
+ {
595
+ "name": "eval.tests.test_github_edges.TestEntryCombinations.test_github_and_gitlab_hosts_in_one_run",
596
+ "reasons": [
597
+ {
598
+ "id": "missing_fixture_assets",
599
+ "message": "pytest test references fixture assets that are not packaged",
600
+ "path": "eval/tests/test_github_edges.py",
601
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
602
+ "severity": "error",
603
+ "stage": "static_lint"
604
+ }
605
+ ]
606
+ },
607
+ {
608
+ "name": "eval.tests.test_github_edges.TestEntryCombinations.test_name_repository_entry_reaches_github_cache",
609
+ "reasons": [
610
+ {
611
+ "id": "short_substring",
612
+ "message": "pytest test uses a too-short substring oracle",
613
+ "path": "eval/tests/test_github_edges.py",
614
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
615
+ "severity": "error",
616
+ "stage": "static_lint"
617
+ },
618
+ {
619
+ "id": "generic_keyword_oracle",
620
+ "message": "pytest test uses a generic keyword oracle",
621
+ "path": "eval/tests/test_github_edges.py",
622
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
623
+ "severity": "error",
624
+ "stage": "static_lint"
625
+ },
626
+ {
627
+ "id": "missing_fixture_assets",
628
+ "message": "pytest test references fixture assets that are not packaged",
629
+ "path": "eval/tests/test_github_edges.py",
630
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
631
+ "severity": "error",
632
+ "stage": "static_lint"
633
+ }
634
+ ]
635
+ },
636
+ {
637
+ "name": "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_array_root_payload_diagnostic",
638
+ "reasons": [
639
+ {
640
+ "id": "missing_fixture_assets",
641
+ "message": "pytest test references fixture assets that are not packaged",
642
+ "path": "eval/tests/test_github_edges.py",
643
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
644
+ "severity": "error",
645
+ "stage": "static_lint"
646
+ }
647
+ ]
648
+ },
649
+ {
650
+ "name": "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_missing_repository_key_diagnostic",
651
+ "reasons": [
652
+ {
653
+ "id": "missing_fixture_assets",
654
+ "message": "pytest test references fixture assets that are not packaged",
655
+ "path": "eval/tests/test_github_edges.py",
656
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
657
+ "severity": "error",
658
+ "stage": "static_lint"
659
+ }
660
+ ]
661
+ },
662
+ {
663
+ "name": "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_data_root_diagnostic",
664
+ "reasons": [
665
+ {
666
+ "id": "missing_fixture_assets",
667
+ "message": "pytest test references fixture assets that are not packaged",
668
+ "path": "eval/tests/test_github_edges.py",
669
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
670
+ "severity": "error",
671
+ "stage": "static_lint"
672
+ }
673
+ ]
674
+ },
675
+ {
676
+ "name": "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_pushedat_diagnostic",
677
+ "reasons": [
678
+ {
679
+ "id": "missing_fixture_assets",
680
+ "message": "pytest test references fixture assets that are not packaged",
681
+ "path": "eval/tests/test_github_edges.py",
682
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
683
+ "severity": "error",
684
+ "stage": "static_lint"
685
+ }
686
+ ]
687
+ },
688
+ {
689
+ "name": "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_repository_node_diagnostic",
690
+ "reasons": [
691
+ {
692
+ "id": "missing_fixture_assets",
693
+ "message": "pytest test references fixture assets that are not packaged",
694
+ "path": "eval/tests/test_github_edges.py",
695
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
696
+ "severity": "error",
697
+ "stage": "static_lint"
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ "name": "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_stargazers_node_diagnostic",
703
+ "reasons": [
704
+ {
705
+ "id": "missing_fixture_assets",
706
+ "message": "pytest test references fixture assets that are not packaged",
707
+ "path": "eval/tests/test_github_edges.py",
708
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
709
+ "severity": "error",
710
+ "stage": "static_lint"
711
+ }
712
+ ]
713
+ },
714
+ {
715
+ "name": "eval.tests.test_github_edges.TestPushedAtBoundaries.test_colon_form_utc_offset_is_normalized",
716
+ "reasons": [
717
+ {
718
+ "id": "missing_fixture_assets",
719
+ "message": "pytest test references fixture assets that are not packaged",
720
+ "path": "eval/tests/test_github_edges.py",
721
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
722
+ "severity": "error",
723
+ "stage": "static_lint"
724
+ }
725
+ ]
726
+ },
727
+ {
728
+ "name": "eval.tests.test_github_edges.TestPushedAtBoundaries.test_far_future_pushedat_boundary",
729
+ "reasons": [
730
+ {
731
+ "id": "missing_fixture_assets",
732
+ "message": "pytest test references fixture assets that are not packaged",
733
+ "path": "eval/tests/test_github_edges.py",
734
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
735
+ "severity": "error",
736
+ "stage": "static_lint"
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "name": "eval.tests.test_github_edges.TestPushedAtBoundaries.test_leap_day_pushedat_boundary",
742
+ "reasons": [
743
+ {
744
+ "id": "missing_fixture_assets",
745
+ "message": "pytest test references fixture assets that are not packaged",
746
+ "path": "eval/tests/test_github_edges.py",
747
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
748
+ "severity": "error",
749
+ "stage": "static_lint"
750
+ }
751
+ ]
752
+ },
753
+ {
754
+ "name": "eval.tests.test_github_edges.TestPushedAtBoundaries.test_trailing_zero_fractional_is_normalized",
755
+ "reasons": [
756
+ {
757
+ "id": "missing_fixture_assets",
758
+ "message": "pytest test references fixture assets that are not packaged",
759
+ "path": "eval/tests/test_github_edges.py",
760
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
761
+ "severity": "error",
762
+ "stage": "static_lint"
763
+ }
764
+ ]
765
+ },
766
+ {
767
+ "name": "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_boolean_totalcount_is_error",
768
+ "reasons": [
769
+ {
770
+ "id": "missing_fixture_assets",
771
+ "message": "pytest test references fixture assets that are not packaged",
772
+ "path": "eval/tests/test_github_edges.py",
773
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
774
+ "severity": "error",
775
+ "stage": "static_lint"
776
+ }
777
+ ]
778
+ },
779
+ {
780
+ "name": "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_float_totalcount_is_error",
781
+ "reasons": [
782
+ {
783
+ "id": "missing_fixture_assets",
784
+ "message": "pytest test references fixture assets that are not packaged",
785
+ "path": "eval/tests/test_github_edges.py",
786
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
787
+ "severity": "error",
788
+ "stage": "static_lint"
789
+ }
790
+ ]
791
+ },
792
+ {
793
+ "name": "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_i32_max_stargazers_boundary",
794
+ "reasons": [
795
+ {
796
+ "id": "missing_fixture_assets",
797
+ "message": "pytest test references fixture assets that are not packaged",
798
+ "path": "eval/tests/test_github_edges.py",
799
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
800
+ "severity": "error",
801
+ "stage": "static_lint"
802
+ }
803
+ ]
804
+ },
805
+ {
806
+ "name": "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_numeric_string_totalcount_is_error",
807
+ "reasons": [
808
+ {
809
+ "id": "missing_fixture_assets",
810
+ "message": "pytest test references fixture assets that are not packaged",
811
+ "path": "eval/tests/test_github_edges.py",
812
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
813
+ "severity": "error",
814
+ "stage": "static_lint"
815
+ }
816
+ ]
817
+ },
818
+ {
819
+ "name": "eval.tests.test_github_token.TestGithubNewToken.test_empty_string_token_passes_new_check",
820
+ "reasons": [
821
+ {
822
+ "id": "missing_fixture_assets",
823
+ "message": "pytest test references fixture assets that are not packaged",
824
+ "path": "eval/tests/test_github_token.py",
825
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
826
+ "severity": "error",
827
+ "stage": "static_lint"
828
+ }
829
+ ]
830
+ },
831
+ {
832
+ "name": "eval.tests.test_github_token.TestGithubNewToken.test_token_set_reaches_repo_processing",
833
+ "reasons": [
834
+ {
835
+ "id": "missing_fixture_assets",
836
+ "message": "pytest test references fixture assets that are not packaged",
837
+ "path": "eval/tests/test_github_token.py",
838
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
839
+ "severity": "error",
840
+ "stage": "static_lint"
841
+ }
842
+ ]
843
+ },
844
+ {
845
+ "name": "eval.tests.test_github_token.TestGithubNewToken.test_whitespace_token_still_passes_new_check",
846
+ "reasons": [
847
+ {
848
+ "id": "missing_fixture_assets",
849
+ "message": "pytest test references fixture assets that are not packaged",
850
+ "path": "eval/tests/test_github_token.py",
851
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
852
+ "severity": "error",
853
+ "stage": "static_lint"
854
+ }
855
+ ]
856
+ },
857
+ {
858
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_git_scheme_enters_github_module_offline",
859
+ "reasons": [
860
+ {
861
+ "id": "missing_fixture_assets",
862
+ "message": "pytest test references fixture assets that are not packaged",
863
+ "path": "eval/tests/test_github_token.py",
864
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
865
+ "severity": "error",
866
+ "stage": "static_lint"
867
+ }
868
+ ]
869
+ },
870
+ {
871
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_name_only_entry_records_but_no_repo_block",
872
+ "reasons": [
873
+ {
874
+ "id": "missing_fixture_assets",
875
+ "message": "pytest test references fixture assets that are not packaged",
876
+ "path": "eval/tests/test_github_token.py",
877
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
878
+ "severity": "error",
879
+ "stage": "static_lint"
880
+ }
881
+ ]
882
+ },
883
+ {
884
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_non_github_host_never_enters_github_module",
885
+ "reasons": [
886
+ {
887
+ "id": "missing_fixture_assets",
888
+ "message": "pytest test references fixture assets that are not packaged",
889
+ "path": "eval/tests/test_github_token.py",
890
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
891
+ "severity": "error",
892
+ "stage": "static_lint"
893
+ }
894
+ ]
895
+ },
896
+ {
897
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_non_github_host_with_port_never_enters_github_module",
898
+ "reasons": [
899
+ {
900
+ "id": "missing_fixture_assets",
901
+ "message": "pytest test references fixture assets that are not packaged",
902
+ "path": "eval/tests/test_github_token.py",
903
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
904
+ "severity": "error",
905
+ "stage": "static_lint"
906
+ }
907
+ ]
908
+ },
909
+ {
910
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_port_host_still_enters_github_module_offline",
911
+ "reasons": [
912
+ {
913
+ "id": "missing_fixture_assets",
914
+ "message": "pytest test references fixture assets that are not packaged",
915
+ "path": "eval/tests/test_github_token.py",
916
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
917
+ "severity": "error",
918
+ "stage": "static_lint"
919
+ }
920
+ ]
921
+ },
922
+ {
923
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_ssh_scheme_enters_github_module_offline",
924
+ "reasons": [
925
+ {
926
+ "id": "missing_fixture_assets",
927
+ "message": "pytest test references fixture assets that are not packaged",
928
+ "path": "eval/tests/test_github_token.py",
929
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
930
+ "severity": "error",
931
+ "stage": "static_lint"
932
+ }
933
+ ]
934
+ },
935
+ {
936
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_upper_case_host_is_normalized_and_enters_github_module",
937
+ "reasons": [
938
+ {
939
+ "id": "missing_fixture_assets",
940
+ "message": "pytest test references fixture assets that are not packaged",
941
+ "path": "eval/tests/test_github_token.py",
942
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
943
+ "severity": "error",
944
+ "stage": "static_lint"
945
+ }
946
+ ]
947
+ },
948
+ {
949
+ "name": "eval.tests.test_github_token.TestHostFiltering.test_www_github_host_is_skipped",
950
+ "reasons": [
951
+ {
952
+ "id": "missing_fixture_assets",
953
+ "message": "pytest test references fixture assets that are not packaged",
954
+ "path": "eval/tests/test_github_token.py",
955
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
956
+ "severity": "error",
957
+ "stage": "static_lint"
958
+ }
959
+ ]
960
+ }
961
+ ],
962
+ "tests": [
963
+ "eval.tests.test_cli_io.TestCacheMissFallthrough.test_empty_cache_file_falls_back",
964
+ "eval.tests.test_cli_io.TestCacheMissFallthrough.test_malformed_cache_file_falls_back",
965
+ "eval.tests.test_cli_io.TestCacheMissFallthrough.test_no_cache_file_falls_back_and_logs_stable_prefix",
966
+ "eval.tests.test_cli_io.TestCacheMissFallthrough.test_seeded_cache_prevents_remote_fetch",
967
+ "eval.tests.test_cli_io.TestCliArgs.test_blank_input_file_is_parse_error",
968
+ "eval.tests.test_cli_io.TestCliArgs.test_extra_positional_arguments_are_ignored",
969
+ "eval.tests.test_cli_io.TestCliArgs.test_missing_input_file_errors",
970
+ "eval.tests.test_cli_io.TestCliArgs.test_no_arguments_prints_usage",
971
+ "eval.tests.test_cli_io.TestOutputIo.test_empty_crate_list_produces_empty_document",
972
+ "eval.tests.test_cli_io.TestOutputIo.test_output_written_relative_to_cwd",
973
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_integer_unix_epoch_pushedat_is_error",
974
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_missing_data_wrapper_is_error",
975
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_missing_pushedat_is_error",
976
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_missing_stargazers_is_error",
977
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_negative_stargazers_is_error",
978
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_no_timezone_pushedat_is_error",
979
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_pushedat_float_is_error",
980
+ "eval.tests.test_github_cache_errors.TestFromGraphqlDataErrors.test_stargazers_wrong_type_is_error",
981
+ "eval.tests.test_github_cache_hit.TestCacheHitParse.test_epoch_pushedat_boundary",
982
+ "eval.tests.test_github_cache_hit.TestCacheHitParse.test_extra_json_fields_ignored",
983
+ "eval.tests.test_github_cache_hit.TestCacheHitParse.test_full_payload_repo_block",
984
+ "eval.tests.test_github_cache_hit.TestCacheHitParse.test_max_u32_stargazers_boundary",
985
+ "eval.tests.test_github_cache_hit.TestCacheHitParse.test_zero_stargazers_boundary",
986
+ "eval.tests.test_github_cache_hit.TestMultiEntryCacheHits.test_duplicate_repo_entry_reads_cache_twice",
987
+ "eval.tests.test_github_cache_hit.TestMultiEntryCacheHits.test_two_repos_both_cache_hits",
988
+ "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_fractional_seconds_preserved",
989
+ "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_half_hour_offset_normalized_to_utc",
990
+ "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_negative_offset_normalized_to_utc",
991
+ "eval.tests.test_github_cache_hit.TestPushedAtNormalization.test_positive_offset_rolls_to_previous_utc_day",
992
+ "eval.tests.test_github_cache_hit.TestRepoNameFormatting.test_dashed_repo_name_uses_full_segment",
993
+ "eval.tests.test_github_cache_hit.TestRepoNameFormatting.test_nested_path_uses_first_two_segments",
994
+ "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_dotgit_spelling_reaches_same_cache",
995
+ "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_dotgit_trailing_slash_spelling_reaches_same_cache",
996
+ "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_nowww_spelling_reaches_same_cache",
997
+ "eval.tests.test_github_cache_hit.TestUrlSpellingCacheKey.test_trailing_slash_spelling_reaches_same_cache",
998
+ "eval.tests.test_github_edges.TestEntryCombinations.test_entry_with_neither_name_nor_repository_is_skipped",
999
+ "eval.tests.test_github_edges.TestEntryCombinations.test_github_and_gitlab_hosts_in_one_run",
1000
+ "eval.tests.test_github_edges.TestEntryCombinations.test_name_repository_entry_reaches_github_cache",
1001
+ "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_array_root_payload_diagnostic",
1002
+ "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_missing_repository_key_diagnostic",
1003
+ "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_data_root_diagnostic",
1004
+ "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_pushedat_diagnostic",
1005
+ "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_repository_node_diagnostic",
1006
+ "eval.tests.test_github_edges.TestNullShapeDiagnostics.test_null_stargazers_node_diagnostic",
1007
+ "eval.tests.test_github_edges.TestPushedAtBoundaries.test_colon_form_utc_offset_is_normalized",
1008
+ "eval.tests.test_github_edges.TestPushedAtBoundaries.test_far_future_pushedat_boundary",
1009
+ "eval.tests.test_github_edges.TestPushedAtBoundaries.test_leap_day_pushedat_boundary",
1010
+ "eval.tests.test_github_edges.TestPushedAtBoundaries.test_trailing_zero_fractional_is_normalized",
1011
+ "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_boolean_totalcount_is_error",
1012
+ "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_float_totalcount_is_error",
1013
+ "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_i32_max_stargazers_boundary",
1014
+ "eval.tests.test_github_edges.TestStargazersTypeMismatch.test_numeric_string_totalcount_is_error",
1015
+ "eval.tests.test_github_token.TestGithubNewToken.test_empty_string_token_passes_new_check",
1016
+ "eval.tests.test_github_token.TestGithubNewToken.test_missing_token_aborts_before_yaml_read",
1017
+ "eval.tests.test_github_token.TestGithubNewToken.test_token_set_reaches_repo_processing",
1018
+ "eval.tests.test_github_token.TestGithubNewToken.test_whitespace_token_still_passes_new_check",
1019
+ "eval.tests.test_github_token.TestHostFiltering.test_git_scheme_enters_github_module_offline",
1020
+ "eval.tests.test_github_token.TestHostFiltering.test_name_only_entry_records_but_no_repo_block",
1021
+ "eval.tests.test_github_token.TestHostFiltering.test_non_github_host_never_enters_github_module",
1022
+ "eval.tests.test_github_token.TestHostFiltering.test_non_github_host_with_port_never_enters_github_module",
1023
+ "eval.tests.test_github_token.TestHostFiltering.test_port_host_still_enters_github_module_offline",
1024
+ "eval.tests.test_github_token.TestHostFiltering.test_ssh_scheme_enters_github_module_offline",
1025
+ "eval.tests.test_github_token.TestHostFiltering.test_upper_case_host_is_normalized_and_enters_github_module",
1026
+ "eval.tests.test_github_token.TestHostFiltering.test_www_github_host_is_skipped"
1027
+ ]
1028
+ },
1029
+ "generated_module_04": {
1030
+ "ignore_reason": "",
1031
+ "ignored": false,
1032
+ "ignored_tests": [],
1033
+ "tests": [
1034
+ "eval.tests.test_cratesio_behavior.test_cached_crate_with_null_recent_downloads_scores_zero",
1035
+ "eval.tests.test_cratesio_behavior.test_cached_github_repo_emitted_without_dotgit",
1036
+ "eval.tests.test_cratesio_behavior.test_cached_repo_field_overrides_input_repository",
1037
+ "eval.tests.test_cratesio_behavior.test_crates_cache_hit_github_miss_keeps_meta",
1038
+ "eval.tests.test_cratesio_behavior.test_documentation_autofilled_when_cached_absent",
1039
+ "eval.tests.test_cratesio_behavior.test_documentation_not_overwritten_when_input_provided",
1040
+ "eval.tests.test_cratesio_behavior.test_github_cache_hit_emits_full_repo_block",
1041
+ "eval.tests.test_cratesio_behavior.test_invalid_entry_alongside_valid_one",
1042
+ "eval.tests.test_cratesio_behavior.test_invalid_entry_no_name_no_repo",
1043
+ "eval.tests.test_cratesio_behavior.test_license_and_description_overrides",
1044
+ "eval.tests.test_cratesio_behavior.test_missing_github_token_bails",
1045
+ "eval.tests.test_cratesio_behavior.test_mixed_batch_output_order_and_scores",
1046
+ "eval.tests.test_cratesio_behavior.test_no_arguments_prints_usage",
1047
+ "eval.tests.test_cratesio_behavior.test_no_cratesio_data_score_zero",
1048
+ "eval.tests.test_cratesio_behavior.test_non_github_repository_skips_github_call",
1049
+ "eval.tests.test_cratesio_behavior.test_output_yaml_escapes_special_characters",
1050
+ "eval.tests.test_cratesio_behavior.test_processing_line_for_crate",
1051
+ "eval.tests.test_cratesio_behavior.test_processing_line_for_repo_entry",
1052
+ "eval.tests.test_cratesio_behavior.test_score_from_cached_crate[active-40]",
1053
+ "eval.tests.test_cratesio_behavior.test_score_from_cached_crate[active-zero]",
1054
+ "eval.tests.test_cratesio_behavior.test_score_from_cached_crate[old-0.1]",
1055
+ "eval.tests.test_cratesio_behavior.test_two_crate_stdout_golden",
1056
+ "eval.tests.test_util_cache.test_cache_files_are_not_modified_on_hit",
1057
+ "eval.tests.test_util_cache.test_cache_path_creates_crates_dir_on_miss",
1058
+ "eval.tests.test_util_cache.test_cache_path_creates_github_dir_for_github_repo",
1059
+ "eval.tests.test_util_cache.test_cache_path_error_when_crates_path_is_a_file",
1060
+ "eval.tests.test_util_cache.test_get_crate_data_cache_entry_is_directory_falls_back_to_network",
1061
+ "eval.tests.test_util_cache.test_live_batch_reaches_write_cache_and_read_cache",
1062
+ "eval.tests.test_util_cache.test_live_fetch_cache_is_readable_on_next_run",
1063
+ "eval.tests.test_util_cache.test_live_fetch_writes_cache_file",
1064
+ "eval.tests.test_util_cache.test_read_cache_corrupt_json_falls_back_to_network",
1065
+ "eval.tests.test_util_cache.test_read_cache_github_hit_produces_repo",
1066
+ "eval.tests.test_util_cache.test_read_cache_hit_skips_network",
1067
+ "eval.tests.test_util_cache.test_read_cache_valid_json_but_not_a_crate",
1068
+ "eval.tests.test_util_yaml.test_read_yaml_all_topic_variants_round_trip",
1069
+ "eval.tests.test_util_yaml.test_read_yaml_duplicate_names_emit_two_entries",
1070
+ "eval.tests.test_util_yaml.test_read_yaml_empty_list_writes_empty_list",
1071
+ "eval.tests.test_util_yaml.test_read_yaml_malformed_flow_sequence_exact_tail",
1072
+ "eval.tests.test_util_yaml.test_read_yaml_map_rejected_exact",
1073
+ "eval.tests.test_util_yaml.test_read_yaml_missing_input_file_exact_reports_os_error",
1074
+ "eval.tests.test_util_yaml.test_read_yaml_multiple_entries_preserve_order",
1075
+ "eval.tests.test_util_yaml.test_read_yaml_not_a_list_exact",
1076
+ "eval.tests.test_util_yaml.test_read_yaml_scalar_topics_rejected_exact",
1077
+ "eval.tests.test_util_yaml.test_read_yaml_single_topic_each_variant",
1078
+ "eval.tests.test_util_yaml.test_read_yaml_unknown_topic_variant_exact",
1079
+ "eval.tests.test_util_yaml.test_read_yaml_valid_input_writes_output[[]-expected_topics0]",
1080
+ "eval.tests.test_util_yaml.test_read_yaml_valid_input_writes_output[[nlp, mlops]-expected_topics2]",
1081
+ "eval.tests.test_util_yaml.test_read_yaml_valid_input_writes_output[[nlp]-expected_topics1]",
1082
+ "eval.tests.test_util_yaml.test_read_yaml_valid_input_writes_output[[scientific-computing, gpu-computing, reinforcement]-expected_topics3]",
1083
+ "eval.tests.test_util_yaml.test_write_yaml_cached_crate_serialization_exact",
1084
+ "eval.tests.test_util_yaml.test_write_yaml_output_is_list_of_entries",
1085
+ "eval.tests.test_util_yaml.test_write_yaml_quotes_special_characters",
1086
+ "eval.tests.test_util_yaml.test_write_yaml_requires_data_dir_exact",
1087
+ "eval.tests.test_util_yaml.test_write_yaml_trailing_newline_on_document"
1088
+ ]
1089
+ }
1090
+ },
1091
+ "commit": "4554566abf44156fc92823e4460cd284fccf9450",
1092
+ "data_source": "synthetic_programgym",
1093
+ "difficulty": "easy",
1094
+ "difficulty_score": 0.5809249756756194,
1095
+ "eval_clean_hashes": [
1096
+ "778a4b2bec4a63453ef7e851a701db4ca11ff8f00651ccb98a75352988e7bc23"
1097
+ ],
1098
+ "input_record": {
1099
+ "codeql_db_mb": 84.21,
1100
+ "codeql_status": true,
1101
+ "codeql_time": 42.09973682509735,
1102
+ "commit": "4554566abf44156fc92823e4460cd284fccf9450",
1103
+ "commits": 302,
1104
+ "contributors": 55,
1105
+ "difficulty": "easy",
1106
+ "difficulty_code_lines": 381,
1107
+ "difficulty_has_tests": false,
1108
+ "difficulty_product_code_lines": 381,
1109
+ "difficulty_runtime_deps": 0,
1110
+ "difficulty_score": 0.5809249756756194,
1111
+ "difficulty_test_code_lines": 0,
1112
+ "full_name": "anowell/are-we-learning-yet",
1113
+ "github_stars": 532,
1114
+ "input_codeql_db": "rust_codeql/anowell__are-we-learning-yet",
1115
+ "language": "rs",
1116
+ "pb_match": [
1117
+ {
1118
+ "pb_fullname": "yoav-lavi/melody",
1119
+ "rank": 891,
1120
+ "similarity": 0.44231683015823364
1121
+ }
1122
+ ],
1123
+ "repo_age": 10.12,
1124
+ "repo_path": "rust/anowell__are-we-learning-yet",
1125
+ "rust_channel": "stable",
1126
+ "rust_edition": "2021",
1127
+ "rust_release_date": "2021-10-21",
1128
+ "rust_version": "1.56.0",
1129
+ "rust_version_source": "edition",
1130
+ "source": "commit:4554566abf44156fc92823e4460cd284fccf9450",
1131
+ "status": "done",
1132
+ "url": "https://github.com/anowell/are-we-learning-yet"
1133
+ },
1134
+ "instance_id": "anowell__are-we-learning-yet.4554566",
1135
+ "language": "rust",
1136
+ "module_iterations": [
1137
+ {
1138
+ "actual_iterations": 5,
1139
+ "branch_name": "generated_module_01",
1140
+ "iteration_limit": 5,
1141
+ "module_index": 1,
1142
+ "module_kind": "source",
1143
+ "termination_reason": "module_coverage_threshold_reached"
1144
+ },
1145
+ {
1146
+ "actual_iterations": 5,
1147
+ "branch_name": "generated_module_02",
1148
+ "iteration_limit": 5,
1149
+ "module_index": 2,
1150
+ "module_kind": "source",
1151
+ "termination_reason": "max_iterations"
1152
+ },
1153
+ {
1154
+ "actual_iterations": 5,
1155
+ "branch_name": "generated_module_03",
1156
+ "iteration_limit": 5,
1157
+ "module_index": 3,
1158
+ "module_kind": "source",
1159
+ "termination_reason": "early_stopping"
1160
+ },
1161
+ {
1162
+ "actual_iterations": 5,
1163
+ "branch_name": "generated_module_04",
1164
+ "iteration_limit": 5,
1165
+ "module_index": 4,
1166
+ "module_kind": "source",
1167
+ "termination_reason": "module_coverage_threshold_reached"
1168
+ }
1169
+ ],
1170
+ "repository": "anowell/are-we-learning-yet"
1171
+ }
anowell--are-we-learning-yet.4554566/tests/test.sh ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
5
+ export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
6
+
7
+ mkdir -p /logs/verifier /logs/artifacts
8
+
9
+ write_failure() {
10
+ local code="$1"
11
+ local details="$2"
12
+ python3 - "$code" "$details" <<'PY'
13
+ import json
14
+ import sys
15
+ from pathlib import Path
16
+
17
+ code, details = sys.argv[1:3]
18
+ try:
19
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
20
+ n_tests = sum(
21
+ len([
22
+ name for name in info.get("tests", [])
23
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
24
+ ])
25
+ for branch, info in metadata.get("branches", {}).items()
26
+ if not info.get("ignored")
27
+ )
28
+ except Exception:
29
+ n_tests = 0
30
+ result = {
31
+ "test_results": [],
32
+ "error_code": code,
33
+ "error_details": details,
34
+ "log": [],
35
+ "solution_branch": "submission",
36
+ "test_branches": [],
37
+ "test_branch_errors": {
38
+ "__infra__": [{"error_code": code, "error_details": details}]
39
+ },
40
+ "executable_hash": None,
41
+ "warnings": [],
42
+ }
43
+ diagnostics = {
44
+ "pass_rate": 0.0,
45
+ "resolved": 0,
46
+ "n_passed": 0,
47
+ "n_tests": n_tests,
48
+ "n_branch_errors": 1,
49
+ "infra_error": 1,
50
+ "executable_hash_present": 0,
51
+ }
52
+ Path("/logs/verifier/programgym_eval.json").write_text(
53
+ json.dumps(result, indent=2, sort_keys=True)
54
+ )
55
+ Path("/logs/verifier/harbor_diagnostics.json").write_text(
56
+ json.dumps(diagnostics, indent=2, sort_keys=True)
57
+ )
58
+ Path("/logs/verifier/reward.json").write_text(
59
+ json.dumps(
60
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
61
+ indent=2,
62
+ sort_keys=True,
63
+ )
64
+ )
65
+ Path("/logs/verifier/reward.txt").write_text("0.0")
66
+ Path("/logs/verifier/programgym_eval.log").write_text(details)
67
+ PY
68
+ }
69
+
70
+ if ! command -v python3 >/dev/null 2>&1; then
71
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
72
+ exit 0
73
+ fi
74
+
75
+ if ! python3 /tests/programgym_evaluator.py; then
76
+ if [ ! -s /logs/verifier/reward.txt ]; then
77
+ write_failure "evaluator_crashed" \
78
+ "programgym_evaluator.py exited non-zero with no reward written"
79
+ fi
80
+ fi
81
+
82
+ exit 0
anowell--are-we-learning-yet.4554566/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d236c611fcf1115afae87361dc013e2da7e56ef017fd7b984ce31956e7ce7716
3
+ size 28457
anthwlock--untrunc.a87f33a/environment/Dockerfile CHANGED
@@ -64,3 +64,4 @@ RUN mkdir -p /home/agent \
64
  && chmod 111 /workspace/executable
65
  ENV HOME=/home/agent
66
  WORKDIR /workspace
 
 
64
  && chmod 111 /workspace/executable
65
  ENV HOME=/home/agent
66
  WORKDIR /workspace
67
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
anthwlock--untrunc.a87f33a/tests/Dockerfile CHANGED
@@ -72,3 +72,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
72
  COPY programgym_task.json /tests/programgym_task.json
73
  COPY blobs/ /tests/blobs/
74
  RUN chmod +x /tests/test.sh
 
 
72
  COPY programgym_task.json /tests/programgym_task.json
73
  COPY blobs/ /tests/blobs/
74
  RUN chmod +x /tests/test.sh
75
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
antirez--dump1090.efe64db/environment/Dockerfile ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV PAGER=cat
57
+ ENV MANPAGER=cat
58
+ ENV LESS=-R
59
+ ENV TQDM_DISABLE=1
60
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
61
+ ARG CMAKE_VERSION=3.31.10
62
+ RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
63
+ # programgym_quota_aware_nproc=1
64
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
65
+ WORKDIR /workspace
66
+ ADD workspace.tar.gz /workspace/
67
+ COPY executable /workspace/executable
68
+ COPY download.sh /workspace/download.sh
69
+ RUN chmod 755 /workspace/download.sh
70
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
71
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
72
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
73
+ && rm -f /workspace/download.sh \
74
+ && rm -f /tmp/harbor_prepare_download_env.sh
75
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
76
+ RUN chmod 111 /workspace/executable
77
+ WORKDIR /workspace
78
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
79
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
80
+ # submission handed to the separate verifier. Keep the reference executable
81
+ # execute-only; the oracle temporarily restores owner read permission.
82
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
83
+ RUN mkdir -p /home/agent \
84
+ && chown -R agent:agent /home/agent /workspace \
85
+ && chown agent:agent /workspace/executable \
86
+ && chmod 111 /workspace/executable
87
+ ENV HOME=/home/agent
88
+ WORKDIR /workspace
89
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
antirez--dump1090.efe64db/environment/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
antirez--dump1090.efe64db/environment/download.sh ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # download.sh for antirez/dump1090
3
+ #
4
+ # Standalone dependency prefetch, safe to source. Run as:
5
+ # source /source_ro/download.sh
6
+ #
7
+ # The repository's Makefile discovers the RTL-SDR library through
8
+ # `pkg-config --cflags/--libs librtlsdr`, and dump1090.c includes rtl-sdr.h.
9
+ # librtlsdr is NOT part of the base image, so we install it here in the
10
+ # network-enabled download stage. This script only installs packages; it does
11
+ # not compile, link, test, or otherwise build the project.
12
+
13
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
14
+ _PB_SOURCED=1
15
+ else
16
+ _PB_SOURCED=0
17
+ fi
18
+
19
+ _pb_fail() {
20
+ if [ "$_PB_SOURCED" = "1" ]; then
21
+ return 1
22
+ else
23
+ exit 1
24
+ fi
25
+ }
26
+
27
+ echo "[download] updating apt package lists"
28
+ if ! apt-get update; then
29
+ echo "[download] apt-get update failed" >&2
30
+ _pb_fail
31
+ fi
32
+
33
+ echo "[download] installing librtlsdr build and runtime packages"
34
+ if ! apt-get install -y librtlsdr-dev librtlsdr0; then
35
+ echo "[download] apt-get install of librtlsdr failed" >&2
36
+ _pb_fail
37
+ fi
38
+
39
+ echo "[download] dependency setup complete"
antirez--dump1090.efe64db/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b237781836918e24918bdc75d755d2be85cd9c9041491b7804352139e867dd00
3
+ size 183048
antirez--dump1090.efe64db/environment/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
antirez--dump1090.efe64db/environment/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
antirez--dump1090.efe64db/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
antirez--dump1090.efe64db/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf599d1dfbbccae8e6e831dd371c64b9ca95cf3778c47f2a88dc7cad55dc3a8c
3
+ size 488493
antirez--dump1090.efe64db/instruction.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are a helpful assistant that can interact with a computer.
2
+
3
+ This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
4
+ Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
5
+ You must figure out the behavior solely by running and interacting with the provided binary.
6
+ Writing original code based on observed behavior is the entire point of this benchmark.
7
+
8
+ Any approach that shortcuts this — finding existing source code, wrapping the binary,
9
+ or installing the original tool — does not count as a solution. It will be detected by an
10
+ automated judge, marked as a disqualification, and scored as a failure.
11
+ The trace will be posted to an online wall of shame.
12
+
13
+ <RULES>
14
+ ## What is not allowed
15
+
16
+ ### 1. Obtaining source code
17
+
18
+ The only source of truth about what the executable does is the executable itself and its
19
+ bundled documentation. You must not search the internet, package registries, or any external
20
+ source for information about this project's source code. Even if you recognize what the
21
+ executable is, you must reimplement it from behavioral observation alone.
22
+
23
+ This includes but is not limited to:
24
+ - Cloning or browsing the original GitHub repository, its forks, or mirrors
25
+ - Downloading the project from package registries: `cargo install <project>`, `go get github.com/<org>/<project>`, `pip install <project>`, `apt-get source <project>`, `npm install <project>`, etc.
26
+ - Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
27
+ - Using a package manager to download the project as a dependency and then reading its cached source (e.g., navigating into `~/.cargo/registry/src/` or `$(go env GOPATH)/pkg/mod/`)
28
+ - Searching the web for the project's source code or implementation details
29
+
30
+ ### 2. Wrapping or reusing the original binary
31
+
32
+ Your submission must be a genuine reimplementation. The provided `./executable` is for
33
+ observation only — your final solution must not depend on it or any other pre-built version
34
+ of the same tool at runtime.
35
+
36
+ This includes but is not limited to:
37
+ - Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
38
+ - Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
39
+ - Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
40
+ - Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
41
+ - Re-linking prebuilt `.o` object files found in the workspace without writing new source code
42
+
43
+ ### 3. Binary analysis of the provided executable
44
+
45
+ All information about the provided `./executable` must be obtained by interacting with it
46
+ through its normal user interface (CLI flags, stdin/stdout, etc.).
47
+ - You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
48
+ - You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
49
+
50
+ Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
51
+ analysis tools on binaries that you produce yourself during development.
52
+
53
+ ## What IS allowed
54
+
55
+ - Running the executable with any inputs, flags, and arguments to observe its behavior
56
+ - Reading any documentation files bundled in the workspace
57
+ </RULES>
58
+
59
+ ## Task context
60
+
61
+ We want to write the source code for a given executable.
62
+ The executable is located at `./executable` in the workspace root.
63
+
64
+ You also have access to the existing documentation.
65
+
66
+ ## Your task
67
+
68
+ Implement the source code to generate an executable of exactly identical behavior as the original.
69
+
70
+ No project-specific dependencies are pre-installed.
71
+ You do NOT have access to the internet.
72
+ **IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
73
+ Finally, commit your changes.
74
+
75
+ Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
76
+ `compile.sh` should be executable and should install any dependencies needed to compile the executable.
77
+ If your compile.sh fails to compile on a fresh checkout, your task has failed.
78
+
79
+ ## Important: This is a reverse-engineering benchmark
80
+
81
+ Your goal is to write original code from scratch that reproduces the executable's behavior.
82
+ The only way to learn what the executable does is to run it and read its bundled documentation.
83
+
84
+ Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
85
+ provided binary will be detected by an automated judge, disqualified, and scored as zero.
86
+ See the full rules in the system prompt above. Key points:
87
+
88
+ - Do NOT search the internet, clone repos, or download the project from any package registry
89
+ - Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
90
+ - Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
91
+ - You SHOULD extensively test the executable to understand its behavior before writing code.
92
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
93
+
94
+ ## Recommended Workflow
95
+
96
+ 1. Explore all documentation files
97
+ 2. Play with the executable to understand its behavior (however, you MUST NOT decompile `./executable` or perform any other form of binary or strace/ltrace analysis on it)
98
+ 3. Write the source code to implement the behavior
antirez--dump1090.efe64db/solution/solve.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Oracle-only ceiling check. The reference is execute-only for normal agents;
3
+ # because the oracle runs as the owning `agent` user it can temporarily add read
4
+ # permission and encode the binary for Harbor's normal artifact handoff.
5
+ set -euo pipefail
6
+ test -f ./executable
7
+ chmod u+r ./executable
8
+ python3 - <<'PY'
9
+ import base64
10
+ from pathlib import Path
11
+
12
+ Path(".programgym_oracle_reference").write_bytes(
13
+ base64.b64encode(Path("executable").read_bytes())
14
+ )
15
+ PY
16
+ chmod u-r ./executable
17
+ cat > compile.sh <<'EOF'
18
+ #!/usr/bin/env bash
19
+ set -euo pipefail
20
+ if [ -f ./.programgym_oracle_reference ]; then
21
+ python3 - <<'PY'
22
+ import base64
23
+ from pathlib import Path
24
+
25
+ Path("executable").write_bytes(
26
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
27
+ )
28
+ PY
29
+ fi
30
+ test -f ./executable
31
+ chmod +x ./executable
32
+ EOF
33
+ chmod +x compile.sh
antirez--dump1090.efe64db/task.toml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ source = "ProgramGym"
3
+ artifacts = [
4
+ "/logs/verifier/programgym_eval.json",
5
+ "/logs/verifier/harbor_diagnostics.json",
6
+ "/logs/verifier/programgym_eval.log",
7
+ "/logs/verifier/reward.json",
8
+ "/logs/verifier/reward.txt",
9
+ # Keep agent/runtime state out of the submission handoff. In particular,
10
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
11
+ # makes Python's safe tar extraction reject the entire workspace archive.
12
+ { source = "/workspace", exclude = [
13
+ "executable",
14
+ ".git",
15
+ ".bashrc",
16
+ ".cache",
17
+ ".cc-switch",
18
+ ".claude",
19
+ ".local",
20
+ ] },
21
+ ]
22
+
23
+ [task]
24
+ name = "programgym/antirez--dump1090.efe64db"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for antirez/dump1090"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "c"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "antirez__dump1090.efe64db"
32
+ repository = "antirez/dump1090"
33
+ commit = "efe64db3c6ba1520291331628a33c1e208e851a6"
34
+ language = "c"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.5381965783494542
37
+ test_branches = 4
38
+ test_count = 676
39
+
40
+ [agent]
41
+ timeout_sec = 14400
42
+ user = "agent"
43
+ network_mode = "allowlist"
44
+ allowed_hosts = ["api.anthropic.com", "api.openai.com"]
45
+
46
+ [verifier]
47
+ timeout_sec = 7200
48
+ user = "root"
49
+ environment_mode = "separate"
50
+
51
+ [verifier.env]
52
+ PROGRAMGYM_XDIST_WORKERS = "8"
53
+
54
+ [verifier.environment]
55
+ build_timeout_sec = 1800
56
+ cpus = 8
57
+ memory_mb = 16384
58
+ storage_mb = 30720
59
+ gpus = 0
60
+ workdir = "/workspace"
61
+
62
+ [environment]
63
+ network_mode = "public"
64
+ build_timeout_sec = 1800
65
+ cpus = 8
66
+ memory_mb = 16384
67
+ storage_mb = 30720
68
+ gpus = 0
69
+ workdir = "/workspace"
antirez--dump1090.efe64db/tests/Dockerfile ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV PAGER=cat
57
+ ENV MANPAGER=cat
58
+ ENV LESS=-R
59
+ ENV TQDM_DISABLE=1
60
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
61
+ ARG CMAKE_VERSION=3.31.10
62
+ RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
63
+ # programgym_quota_aware_nproc=1
64
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
65
+ WORKDIR /workspace
66
+ ADD workspace.tar.gz /workspace/
67
+ COPY executable /workspace/executable
68
+ COPY download.sh /workspace/download.sh
69
+ RUN chmod 755 /workspace/download.sh
70
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
71
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
72
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
73
+ && rm -f /workspace/download.sh \
74
+ && rm -f /tmp/harbor_prepare_download_env.sh
75
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
76
+ RUN chmod 111 /workspace/executable
77
+ WORKDIR /workspace
78
+ # Harbor uses tests/ as the separate verifier build context. Start with the
79
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
80
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
81
+ && mkdir -p /workspace /tests
82
+
83
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
84
+ # Installing a newer pytest alone leaves that apt package importable and creates
85
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
86
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
87
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
88
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
89
+ RUN set -eu; \
90
+ pip_break_system_packages=""; \
91
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
92
+ pip_break_system_packages="--break-system-packages"; \
93
+ fi; \
94
+ python3 -m pip install ${pip_break_system_packages} \
95
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
96
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
97
+
98
+ COPY test.sh /tests/test.sh
99
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
100
+ COPY programgym_task.json /tests/programgym_task.json
101
+ COPY blobs/ /tests/blobs/
102
+ RUN chmod +x /tests/test.sh
103
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
antirez--dump1090.efe64db/tests/blobs/tests/generated_module_01.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6344884ff3ca2cb4073fc20039c0f95544fe821e02507d65ec3612d391802f14
3
+ size 42179
antirez--dump1090.efe64db/tests/blobs/tests/generated_module_02.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5f04eb02f2c51107de6fe992d79e38d6ac4aa3f2572157853707d4ad93c7fb0
3
+ size 21379
antirez--dump1090.efe64db/tests/blobs/tests/generated_module_03.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9636b16de88c7c70de8da20114277929ef0fd001de36371822dd59fb5b8b435
3
+ size 28800
antirez--dump1090.efe64db/tests/blobs/tests/generated_module_04.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc2520ab0cf5c879af49889c0e2561ee4fa7f1753f3b95343e8c19d2d255259d
3
+ size 20547
antirez--dump1090.efe64db/tests/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
antirez--dump1090.efe64db/tests/download.sh ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # download.sh for antirez/dump1090
3
+ #
4
+ # Standalone dependency prefetch, safe to source. Run as:
5
+ # source /source_ro/download.sh
6
+ #
7
+ # The repository's Makefile discovers the RTL-SDR library through
8
+ # `pkg-config --cflags/--libs librtlsdr`, and dump1090.c includes rtl-sdr.h.
9
+ # librtlsdr is NOT part of the base image, so we install it here in the
10
+ # network-enabled download stage. This script only installs packages; it does
11
+ # not compile, link, test, or otherwise build the project.
12
+
13
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
14
+ _PB_SOURCED=1
15
+ else
16
+ _PB_SOURCED=0
17
+ fi
18
+
19
+ _pb_fail() {
20
+ if [ "$_PB_SOURCED" = "1" ]; then
21
+ return 1
22
+ else
23
+ exit 1
24
+ fi
25
+ }
26
+
27
+ echo "[download] updating apt package lists"
28
+ if ! apt-get update; then
29
+ echo "[download] apt-get update failed" >&2
30
+ _pb_fail
31
+ fi
32
+
33
+ echo "[download] installing librtlsdr build and runtime packages"
34
+ if ! apt-get install -y librtlsdr-dev librtlsdr0; then
35
+ echo "[download] apt-get install of librtlsdr failed" >&2
36
+ _pb_fail
37
+ fi
38
+
39
+ echo "[download] dependency setup complete"
antirez--dump1090.efe64db/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b237781836918e24918bdc75d755d2be85cd9c9041491b7804352139e867dd00
3
+ size 183048
antirez--dump1090.efe64db/tests/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
antirez--dump1090.efe64db/tests/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
antirez--dump1090.efe64db/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
antirez--dump1090.efe64db/tests/programgym_evaluator.py ADDED
@@ -0,0 +1,1201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """In-place ProgramGym evaluator.
3
+
4
+ Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
5
+ no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
6
+ cleanroom container after Harbor flips the verifier-phase network policy.
7
+
8
+ Differences from ``programgym.eval.eval.Evaluator`` that are structural to
9
+ running in one container:
10
+
11
+ * No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
12
+ copy a post-compile workspace snapshot to a temp directory and restore it
13
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
14
+ processes between attempts to approximate the fresh-container boundary.
15
+ * No ``docker commit``. The post-compile workspace snapshot serves the same
16
+ role as the committed image upstream.
17
+ * Hidden test blobs are fetched on demand from HuggingFace via
18
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
19
+ rather than being pre-staged into ``/tests/blobs/``. Override with
20
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
21
+
22
+ Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
23
+ ``compile.sh`` then stash + hash the executable, best-effort
24
+ ``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
25
+ ``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
26
+ best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
27
+ preserved.
28
+ """
29
+
30
+ from __future__ import annotations
31
+
32
+ import hashlib
33
+ import json
34
+ import os
35
+ import re
36
+ import shlex
37
+ import shutil
38
+ import signal
39
+ import subprocess
40
+ import tempfile
41
+ import time
42
+ import traceback
43
+ import xml.etree.ElementTree as ET
44
+ from pathlib import Path
45
+ from typing import Any
46
+
47
+ WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
48
+ STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
49
+ METADATA_PATH = Path(
50
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
51
+ )
52
+ LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
53
+ WORKER_CRASH_PHRASE = "worker '"
54
+ XDIST_COLLAPSE_MARKERS = (
55
+ "maximum crashed workers reached",
56
+ "xdist: maximum crashed",
57
+ )
58
+
59
+ DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
60
+ DEFAULT_HF_REVISION = "main"
61
+
62
+ # Oracle agent handoff files (see solution/solve.sh). Must not appear in the
63
+ # post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
64
+ _ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
65
+
66
+ _TOOLCHAIN_BIN_DIR_CANDIDATES = (
67
+ "/usr/local/go/bin",
68
+ "/go/bin",
69
+ "/usr/local/cargo/bin",
70
+ "/root/.cargo/bin",
71
+ "/root/.ghcup/bin",
72
+ )
73
+
74
+
75
+ def toolchain_bin_dirs() -> list[str]:
76
+ """Return toolchain bin directories that exist on this image."""
77
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
78
+ candidates.extend(
79
+ str(path)
80
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
81
+ if _is_accessible_dir(path)
82
+ )
83
+ seen: set[str] = set()
84
+ present: list[str] = []
85
+ for path in candidates:
86
+ if path in seen:
87
+ continue
88
+ seen.add(path)
89
+ if _is_accessible_dir(path):
90
+ present.append(path)
91
+ return present
92
+
93
+
94
+ def _is_accessible_dir(path: str | Path) -> bool:
95
+ """Return whether path is a directory without failing on protected homes."""
96
+ try:
97
+ return Path(path).is_dir()
98
+ except OSError:
99
+ return False
100
+
101
+
102
+ def bootstrap_toolchain_path() -> str:
103
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
104
+ prepend = toolchain_bin_dirs()
105
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
106
+ merged: list[str] = []
107
+ for path in prepend + current_parts:
108
+ if path not in merged:
109
+ merged.append(path)
110
+ new_path = ":".join(merged)
111
+ os.environ["PATH"] = new_path
112
+ return new_path
113
+
114
+
115
+ def _bash_login_command(command: str) -> str:
116
+ """Run ``command`` under bash -lc with an explicit PATH export."""
117
+ path = bootstrap_toolchain_path()
118
+ return f"export PATH={shlex.quote(path)}; {command}"
119
+
120
+
121
+ def sha256(path: Path) -> str:
122
+ h = hashlib.sha256()
123
+ with path.open("rb") as f:
124
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
125
+ h.update(chunk)
126
+ return h.hexdigest()
127
+
128
+
129
+ def write_json(path: Path, data: dict[str, Any]) -> None:
130
+ tmp = path.with_suffix(path.suffix + ".tmp")
131
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
132
+ tmp.replace(path)
133
+
134
+
135
+ def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
136
+ if path is None or not path.exists():
137
+ return ""
138
+ data = path.read_bytes()
139
+ if len(data) <= max_bytes:
140
+ return data.decode(errors="replace")
141
+ return data[-max_bytes:].decode(errors="replace")
142
+
143
+
144
+ def _close_pipes(proc: subprocess.Popen[Any]) -> None:
145
+ for stream in (proc.stdout, proc.stderr):
146
+ if stream is not None:
147
+ try:
148
+ stream.close()
149
+ except OSError:
150
+ pass
151
+
152
+
153
+ def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
154
+ try:
155
+ os.killpg(proc.pid, signal.SIGKILL)
156
+ except ProcessLookupError:
157
+ pass
158
+ try:
159
+ proc.kill()
160
+ except ProcessLookupError:
161
+ pass
162
+
163
+
164
+ _PKILL_PATTERNS = (
165
+ f"{WORKSPACE}/eval/",
166
+ f"{WORKSPACE}/tests/",
167
+ "tail -f",
168
+ "development.log",
169
+ " less ",
170
+ " less$",
171
+ "/less ",
172
+ )
173
+
174
+
175
+ def _pkill_aggressive() -> str:
176
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
177
+ notes: list[str] = []
178
+ workspace = str(WORKSPACE)
179
+ patterns = list(_PKILL_PATTERNS) + [
180
+ f"pytest.*{workspace}",
181
+ f"xdist.*{workspace}",
182
+ ]
183
+ for pattern in patterns:
184
+ result = subprocess.run(
185
+ ["pkill", "-9", "-f", pattern],
186
+ capture_output=True,
187
+ text=True,
188
+ )
189
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
190
+ return "\n".join(notes)
191
+
192
+
193
+ def run_step(
194
+ command: str,
195
+ cwd: Path,
196
+ *,
197
+ timeout: int,
198
+ env: dict[str, str] | None = None,
199
+ step: str,
200
+ accept_failure: bool = False,
201
+ log_output: bool | None = None,
202
+ max_output_bytes: int = 65536,
203
+ ) -> dict[str, Any]:
204
+ if log_output is None:
205
+ log_output = step == "run_tests" or timeout >= 60
206
+
207
+ started = time.monotonic()
208
+ stdout_path: Path | None = None
209
+ stderr_path: Path | None = None
210
+ stdout_f = None
211
+ stderr_f = None
212
+
213
+ if log_output:
214
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
215
+ log_id = f"{step}-{int(started * 1000)}"
216
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
217
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
218
+ stdout_f = stdout_path.open("w", encoding="utf-8")
219
+ stderr_f = stderr_path.open("w", encoding="utf-8")
220
+ popen_stdout: Any = stdout_f
221
+ popen_stderr: Any = stderr_f
222
+ else:
223
+ popen_stdout = subprocess.PIPE
224
+ popen_stderr = subprocess.PIPE
225
+
226
+ proc = subprocess.Popen(
227
+ ["bash", "-lc", _bash_login_command(command)],
228
+ cwd=cwd,
229
+ env={**os.environ, **(env or {})},
230
+ stdout=popen_stdout,
231
+ stderr=popen_stderr,
232
+ start_new_session=True,
233
+ text=True,
234
+ )
235
+ timed_out = False
236
+ stdout = ""
237
+ stderr = ""
238
+ try:
239
+ if log_output:
240
+ proc.wait(timeout=timeout)
241
+ else:
242
+ stdout, stderr = proc.communicate(timeout=timeout)
243
+ except subprocess.TimeoutExpired:
244
+ timed_out = True
245
+ _terminate_process_tree(proc)
246
+ cleanup_lingering_processes(aggressive=True)
247
+ try:
248
+ proc.wait(timeout=5)
249
+ except subprocess.TimeoutExpired:
250
+ proc.kill()
251
+ if not log_output:
252
+ _close_pipes(proc)
253
+ finally:
254
+ if stdout_f is not None:
255
+ stdout_f.close()
256
+ if stderr_f is not None:
257
+ stderr_f.close()
258
+
259
+ if timed_out:
260
+ if log_output:
261
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
262
+ stderr_path, max_output_bytes
263
+ )
264
+ else:
265
+ output = ""
266
+ entry = {
267
+ "step": step,
268
+ "command": command,
269
+ "wall_time": time.monotonic() - started,
270
+ "output": output,
271
+ "returncode": 124,
272
+ "exception_info": f"timed out after {timeout}s",
273
+ }
274
+ else:
275
+ if log_output:
276
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
277
+ stderr_path, max_output_bytes
278
+ )
279
+ else:
280
+ output = stdout + stderr
281
+ entry = {
282
+ "step": step,
283
+ "command": command,
284
+ "wall_time": time.monotonic() - started,
285
+ "output": output,
286
+ "returncode": proc.returncode,
287
+ "exception_info": "",
288
+ }
289
+ if entry["returncode"] and not accept_failure:
290
+ raise RuntimeError(
291
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
292
+ )
293
+ return entry
294
+
295
+
296
+ def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
297
+ started = time.monotonic()
298
+ patterns = [
299
+ str(WORKSPACE / "executable"),
300
+ f"{WORKSPACE}/eval/",
301
+ f"{WORKSPACE}/tests/",
302
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
303
+ "tail -f",
304
+ "development.log",
305
+ ]
306
+ killed: list[int] = []
307
+ proc_root = Path("/proc")
308
+ proc_available = proc_root.exists()
309
+ if proc_available:
310
+ for proc_dir in proc_root.iterdir():
311
+ if not proc_dir.name.isdigit():
312
+ continue
313
+ pid = int(proc_dir.name)
314
+ if pid in {os.getpid(), os.getppid()}:
315
+ continue
316
+ try:
317
+ raw = (proc_dir / "cmdline").read_bytes()
318
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
319
+ continue
320
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
321
+ if not any(pattern in cmdline for pattern in patterns):
322
+ continue
323
+ try:
324
+ os.kill(pid, signal.SIGKILL)
325
+ except (PermissionError, ProcessLookupError):
326
+ continue
327
+ killed.append(pid)
328
+ pkill_output = ""
329
+ if aggressive or not proc_available:
330
+ pkill_output = _pkill_aggressive()
331
+ output_parts = []
332
+ if killed:
333
+ output_parts.append("\n".join(str(pid) for pid in killed))
334
+ if pkill_output:
335
+ output_parts.append(pkill_output)
336
+ return {
337
+ "step": "cleanup_lingering_processes",
338
+ "command": "kill leftover branch processes referencing the workspace",
339
+ "wall_time": time.monotonic() - started,
340
+ "output": "\n".join(output_parts),
341
+ "returncode": 0,
342
+ "exception_info": "",
343
+ }
344
+
345
+
346
+ def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
347
+ import tarfile
348
+
349
+ with tarfile.open(tar_path, "r:gz") as tf:
350
+ try:
351
+ tf.extractall(dest, filter="fully_trusted")
352
+ except TypeError:
353
+ tf.extractall(dest)
354
+
355
+
356
+ def find_results_xml() -> Path | None:
357
+ """Return the junit xml path if pytest wrote one."""
358
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
359
+ if candidate.exists():
360
+ return candidate
361
+ return None
362
+
363
+
364
+ def remove_oracle_handoff_artifacts() -> list[str]:
365
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
366
+ removed: list[str] = []
367
+ for name in _ORACLE_HANDOFF_NAMES:
368
+ path = WORKSPACE / name
369
+ if path.exists():
370
+ if path.is_dir():
371
+ shutil.rmtree(path)
372
+ else:
373
+ path.unlink()
374
+ removed.append(name)
375
+ return removed
376
+
377
+
378
+ def _remove_tree(path: Path) -> None:
379
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
380
+ if path.is_symlink() or path.is_file():
381
+ path.unlink(missing_ok=True)
382
+ return
383
+ if not path.is_dir():
384
+ path.unlink(missing_ok=True)
385
+ return
386
+ for attempt in range(3):
387
+ try:
388
+ shutil.rmtree(path)
389
+ if not path.exists():
390
+ return
391
+ except OSError:
392
+ if attempt == 2:
393
+ run_step(
394
+ f"rm -rf {shlex.quote(str(path))}",
395
+ path.parent,
396
+ timeout=120,
397
+ step="clear_workspace_fallback",
398
+ accept_failure=True,
399
+ )
400
+ if not path.exists():
401
+ return
402
+ raise
403
+
404
+
405
+ def ensure_workspace_dir() -> None:
406
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
407
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
408
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
409
+ WORKSPACE.unlink()
410
+ else:
411
+ shutil.rmtree(WORKSPACE)
412
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
413
+
414
+
415
+ def clear_workspace() -> None:
416
+ ensure_workspace_dir()
417
+ for path in list(WORKSPACE.iterdir()):
418
+ _remove_tree(path)
419
+
420
+
421
+ def restore_reference_executable() -> None:
422
+ """Write the stashed reference binary into /workspace after a branch overlay.
423
+
424
+ Branch blobs may ship ``executable`` as a dangling symlink into
425
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
426
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
427
+ reference as a regular file.
428
+ """
429
+ ensure_workspace_dir()
430
+ if not STASHED_EXECUTABLE.is_file():
431
+ raise FileNotFoundError(
432
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
433
+ )
434
+ dest = WORKSPACE / "executable"
435
+ if dest.exists() or dest.is_symlink():
436
+ if dest.is_dir():
437
+ shutil.rmtree(dest)
438
+ else:
439
+ dest.unlink(missing_ok=True)
440
+ shutil.copy2(STASHED_EXECUTABLE, dest)
441
+ dest.chmod(0o755)
442
+
443
+
444
+ def snapshot_workspace(dest: Path) -> None:
445
+ if dest.exists():
446
+ shutil.rmtree(dest)
447
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
448
+
449
+
450
+ def restore_workspace(source: Path) -> None:
451
+ clear_workspace()
452
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
453
+ ensure_workspace_dir()
454
+
455
+
456
+ def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
457
+ removed: list[str] = []
458
+ for path in root.rglob("*"):
459
+ if path.is_file() and not path.is_symlink():
460
+ try:
461
+ if sha256(path) in hashes:
462
+ path.unlink()
463
+ removed.append(str(path.relative_to(root)))
464
+ except OSError:
465
+ continue
466
+ return removed
467
+
468
+
469
+ def branch_tests(branch_info: dict[str, Any]) -> list[str]:
470
+ ignored = {
471
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
472
+ }
473
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
474
+
475
+
476
+ def ignored_tests(metadata: dict[str, Any]) -> set[str]:
477
+ result: set[str] = set()
478
+ for branch, info in metadata.get("branches", {}).items():
479
+ result.update(
480
+ f"{branch}/{item['name']}"
481
+ for item in info.get("ignored_tests", [])
482
+ if "name" in item
483
+ )
484
+ return result
485
+
486
+
487
+ def active_tests(metadata: dict[str, Any]) -> set[str]:
488
+ active: set[str] = set()
489
+ for branch, info in metadata.get("branches", {}).items():
490
+ if info.get("ignored"):
491
+ continue
492
+ ignored = {
493
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
494
+ }
495
+ active.update(
496
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
497
+ )
498
+ return active
499
+
500
+
501
+ def inject_not_run(
502
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
503
+ ) -> None:
504
+ result["test_results"].extend(
505
+ {
506
+ "name": name,
507
+ "branch": branch,
508
+ "status": "not_run",
509
+ "extra": {"error_code": error_code},
510
+ }
511
+ for name in tests
512
+ )
513
+
514
+
515
+ def testcase_name(case: ET.Element) -> str:
516
+ classname = case.attrib.get("classname", "")
517
+ name = case.attrib.get("name", "")
518
+ return f"{classname}.{name}" if classname else name
519
+
520
+
521
+ # Only these tags under <testcase> represent a result. <system-out> /
522
+ # <system-err> are stdout/stderr captures and must not be treated as results
523
+ # (a leading <system-out> followed by <failure> would otherwise be classified
524
+ # as a stdout-only "passed").
525
+ JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
526
+
527
+
528
+ def parse_junit(
529
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
530
+ ) -> tuple[list[dict[str, Any]], list[str]]:
531
+ root = ET.fromstring(raw_xml)
532
+ got: set[str] = set()
533
+ results: list[dict[str, Any]] = []
534
+ for case in root.iter("testcase"):
535
+ name = testcase_name(case)
536
+ got.add(name)
537
+ extra: dict[str, Any] = {}
538
+ if "time" in case.attrib:
539
+ try:
540
+ extra["time"] = float(case.attrib["time"])
541
+ except ValueError:
542
+ extra["time"] = case.attrib["time"]
543
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
544
+ # Collapse duplicate same-tag result children. Pytest's
545
+ # "pytest.internal" pseudo-test sometimes emits two identical <error>
546
+ # entries; treating that as a system_error would over-flag a real
547
+ # single failure. Mirrors upstream eval.py:816-820.
548
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
549
+ result_children = [result_children[0]]
550
+ if not result_children:
551
+ status = "passed"
552
+ elif len(result_children) != 1:
553
+ status = "system_error"
554
+ extra["error_details"] = (
555
+ f"Expected 1 result for {name}, got {len(result_children)}: "
556
+ f"{[c.tag for c in result_children]}"
557
+ )
558
+ else:
559
+ first = result_children[0]
560
+ status = first.tag # "skipped" | "failure" | "error"
561
+ extra["message"] = first.attrib.get("message") or ""
562
+ if first.text:
563
+ extra["text"] = first.text
564
+ results.append(
565
+ {"name": name, "branch": branch, "status": status, "extra": extra}
566
+ )
567
+
568
+ active_expected = [name for name in expected if name not in ignored]
569
+ missing = [name for name in active_expected if name not in got]
570
+ results.extend(
571
+ {
572
+ "name": name,
573
+ "branch": branch,
574
+ "status": "not_run",
575
+ "extra": {"error_code": "missing_from_junit_xml"},
576
+ }
577
+ for name in missing
578
+ )
579
+ unexpected = got - set(expected) - ignored
580
+ warnings = (
581
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
582
+ if unexpected
583
+ else []
584
+ )
585
+ return results, warnings
586
+
587
+
588
+ def count_worker_crashes(raw_xml: str) -> int:
589
+ if WORKER_CRASH_PHRASE not in raw_xml:
590
+ return 0
591
+ try:
592
+ root = ET.fromstring(raw_xml)
593
+ except ET.ParseError:
594
+ return 0
595
+ crashes = 0
596
+ for case in root.iter("testcase"):
597
+ for child in case:
598
+ text = (child.get("message") or "") + " " + (child.text or "")
599
+ if (
600
+ child.tag in {"error", "failure"}
601
+ and WORKER_CRASH_PHRASE in text
602
+ and "crashed" in text
603
+ ):
604
+ crashes += 1
605
+ break
606
+ return crashes
607
+
608
+
609
+ def run_output_indicates_xdist_collapse(output: str) -> bool:
610
+ lower = output.lower()
611
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
612
+
613
+
614
+ def count_junit_failures(raw_xml: str) -> int:
615
+ try:
616
+ root = ET.fromstring(raw_xml)
617
+ except ET.ParseError:
618
+ return 0
619
+ failures = 0
620
+ for case in root.iter("testcase"):
621
+ for child in case:
622
+ if child.tag in {"failure", "error"}:
623
+ failures += 1
624
+ break
625
+ return failures
626
+
627
+
628
+ def count_junit_passed(raw_xml: str) -> int:
629
+ try:
630
+ root = ET.fromstring(raw_xml)
631
+ except ET.ParseError:
632
+ return 0
633
+ passed = 0
634
+ for case in root.iter("testcase"):
635
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
636
+ passed += 1
637
+ return passed
638
+
639
+
640
+ def branch_attempt_metrics(
641
+ raw_xml: str, *, run_output: str, expected_tests: int
642
+ ) -> tuple[int, int, int, int]:
643
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
644
+ crashes = count_worker_crashes(raw_xml)
645
+ if run_output_indicates_xdist_collapse(run_output):
646
+ crashes = max(crashes, 1)
647
+ n_tests = count_testcases(raw_xml)
648
+ failures = count_junit_failures(raw_xml)
649
+ missing = max(0, expected_tests - n_tests)
650
+ return crashes, n_tests, failures, missing
651
+
652
+
653
+ def needs_serial_retry(
654
+ *,
655
+ serial: bool,
656
+ crashes: int,
657
+ missing: int,
658
+ failures: int,
659
+ n_tests: int,
660
+ expected_tests: int,
661
+ run_output: str,
662
+ ) -> bool:
663
+ if serial:
664
+ return False
665
+ high_failure_rate = (
666
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
667
+ )
668
+ return (
669
+ crashes > 0
670
+ or missing > 0
671
+ or high_failure_rate
672
+ or run_output_indicates_xdist_collapse(run_output)
673
+ )
674
+
675
+
676
+ def count_testcases(raw_xml: str) -> int:
677
+ try:
678
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
679
+ except ET.ParseError:
680
+ return 0
681
+
682
+
683
+ def scored_results(
684
+ result: dict[str, Any], metadata: dict[str, Any]
685
+ ) -> list[dict[str, Any]]:
686
+ active = active_tests(metadata)
687
+ by_key = {
688
+ f"{test['branch']}/{test['name']}": test
689
+ for test in result["test_results"]
690
+ if f"{test['branch']}/{test['name']}" in active
691
+ }
692
+ return [
693
+ by_key.get(
694
+ key,
695
+ {
696
+ "branch": key.split("/", 1)[0],
697
+ "name": key.split("/", 1)[1],
698
+ "status": "not_run",
699
+ "extra": {"error_code": "missing_from_results"},
700
+ },
701
+ )
702
+ for key in sorted(active)
703
+ ]
704
+
705
+
706
+ def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
707
+ scored = scored_results(result, metadata)
708
+ n_passed = sum(t["status"] == "passed" for t in scored)
709
+ n_tests = len(scored)
710
+ pass_rate = n_passed / n_tests if n_tests else 0.0
711
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
712
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
713
+ # the proportion of tasks scoring a perfect pass-rate and mean of
714
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
715
+ # per-task pass-rate whose mean is the overall mean reward.
716
+ return {
717
+ "reward": pass_rate,
718
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
719
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
720
+ }
721
+
722
+
723
+ def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
724
+ scored = scored_results(result, metadata)
725
+ n_passed = sum(t["status"] == "passed" for t in scored)
726
+ n_tests = len(scored)
727
+ pass_rate = n_passed / n_tests if n_tests else 0.0
728
+ return {
729
+ "pass_rate": pass_rate,
730
+ "resolved": int(
731
+ bool(
732
+ n_tests
733
+ and n_passed == n_tests
734
+ and not result["test_branch_errors"]
735
+ and not result["error_code"]
736
+ )
737
+ ),
738
+ "n_passed": n_passed,
739
+ "n_tests": n_tests,
740
+ "n_branch_errors": len(result["test_branch_errors"]),
741
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
742
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
743
+ }
744
+
745
+
746
+ def use_script_pty() -> bool:
747
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
748
+
749
+
750
+ def script_pty_available() -> bool:
751
+ return shutil.which("script") is not None
752
+
753
+
754
+ def branch_env(
755
+ *,
756
+ serial: bool,
757
+ has_rerunfailures: bool,
758
+ extras: dict[str, str] | None = None,
759
+ ) -> dict[str, str]:
760
+ addopts = ["--max-worker-restart=4"]
761
+ # A serial fallback is already a complete second execution. Re-running each
762
+ # failing test two more times makes large, failure-heavy suites prohibitively
763
+ # slow and adds little signal.
764
+ if has_rerunfailures and not serial:
765
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
766
+ env = {
767
+ "PYTEST_ADDOPTS": " ".join(addopts),
768
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
769
+ "NO_COLOR": "1",
770
+ "TERM": "dumb",
771
+ "CLICOLOR": "0",
772
+ "CLICOLOR_FORCE": "0",
773
+ "COLORTERM": "",
774
+ }
775
+ if extras:
776
+ env.update(extras)
777
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
778
+ if serial:
779
+ xdist_workers = "1"
780
+ if xdist_workers:
781
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
782
+ return env
783
+
784
+
785
+ _SERIAL_RUN_SH = ".programgym_run_serial.sh"
786
+ # ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
787
+ # ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
788
+ _RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
789
+
790
+
791
+ def prepare_serial_run_sh(run_sh: Path) -> Path:
792
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
793
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
794
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
795
+ serial_sh.write_text(patched)
796
+ serial_sh.chmod(0o755)
797
+ return serial_sh
798
+
799
+
800
+ def run_tests_command(*, serial: bool) -> str:
801
+ if serial:
802
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
803
+ else:
804
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
805
+ if use_script_pty() and script_pty_available():
806
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
807
+ return inner
808
+
809
+
810
+ BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
811
+
812
+
813
+ def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
814
+ """Locate the per-instance blob directory.
815
+
816
+ Resolution order:
817
+
818
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
819
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
820
+ agent never sees these.
821
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
822
+ tree on disk (``<dir>/<instance_id>/tests/<branch>.tar.gz``). Useful
823
+ for offline reruns sharing a cache across many tasks.
824
+ 3. ``huggingface_hub.snapshot_download`` from
825
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
826
+
827
+ The returned directory contains ``tests/<branch>.tar.gz`` per active
828
+ branch — same shape as ``programgym/ProgramGym-Tests/<instance_id>/``
829
+ on HF.
830
+ """
831
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
832
+ return BAKED_BLOB_DIR
833
+
834
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
835
+ if local:
836
+ candidate = Path(local) / instance_id
837
+ if candidate.exists():
838
+ return candidate
839
+ raise FileNotFoundError(
840
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
841
+ )
842
+
843
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
844
+ "hf_repo_id", DEFAULT_HF_REPO_ID
845
+ )
846
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
847
+ "hf_revision", DEFAULT_HF_REVISION
848
+ )
849
+
850
+ from huggingface_hub import snapshot_download
851
+
852
+ cache_root = Path(
853
+ snapshot_download(
854
+ repo_id,
855
+ repo_type="dataset",
856
+ revision=revision,
857
+ allow_patterns=f"{instance_id}/**",
858
+ )
859
+ )
860
+ blob_dir = cache_root / instance_id
861
+ if not blob_dir.exists():
862
+ raise FileNotFoundError(
863
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
864
+ )
865
+ return blob_dir
866
+
867
+
868
+ def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
869
+ bootstrap_toolchain_path()
870
+ branches = metadata.get("branches", {})
871
+ active_branch_items = [
872
+ (name, info) for name, info in branches.items() if not info.get("ignored")
873
+ ]
874
+ result: dict[str, Any] = {
875
+ "test_results": [],
876
+ "error_code": None,
877
+ "error_details": None,
878
+ "log": [],
879
+ "solution_branch": "submission",
880
+ "test_branches": [name for name, _ in active_branch_items],
881
+ "test_branch_errors": {},
882
+ "executable_hash": None,
883
+ "warnings": [],
884
+ }
885
+
886
+ instance_id = metadata["instance_id"]
887
+
888
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
889
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
890
+
891
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
892
+ result["error_code"] = error_code
893
+ result["error_details"] = details
894
+ for branch, info in active_branch_items:
895
+ inject_not_run(result, branch, branch_tests(info), error_code)
896
+ return result
897
+
898
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
899
+ compiled_snapshot = Path(tmp) / "compiled"
900
+
901
+ started = time.monotonic()
902
+ removed = remove_hashed_files(
903
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
904
+ )
905
+ result["log"].append(
906
+ {
907
+ "step": "remove_hashed_files",
908
+ "command": "remove files matching eval_clean_hashes",
909
+ "wall_time": time.monotonic() - started,
910
+ "output": "".join(f"removed '{path}'\n" for path in removed),
911
+ "returncode": 0,
912
+ "exception_info": "",
913
+ }
914
+ )
915
+
916
+ compile_sh = WORKSPACE / "compile.sh"
917
+ if not compile_sh.exists():
918
+ return fail_all(
919
+ "missing_compile_sh", "submission did not contain compile.sh"
920
+ )
921
+
922
+ seed = (
923
+ "if [ ! -d .git ]; then "
924
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
925
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
926
+ "git -c init.defaultBranch=gold init -q && "
927
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
928
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
929
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
930
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
931
+ "fi"
932
+ )
933
+ try:
934
+ result["log"].append(
935
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
936
+ )
937
+ compile_log = run_step(
938
+ "chmod +x ./compile.sh && ./compile.sh",
939
+ WORKSPACE,
940
+ timeout=compile_timeout,
941
+ step="compile",
942
+ accept_failure=True,
943
+ )
944
+ result["log"].append(compile_log)
945
+ if compile_log["returncode"]:
946
+ return fail_all("compile_failed", compile_log["output"])
947
+ executable = WORKSPACE / "executable"
948
+ if not executable.exists():
949
+ return fail_all(
950
+ "missing_executable",
951
+ "compile.sh completed but did not create ./executable",
952
+ )
953
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
954
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
955
+ # the agent's executable during the stash→restore window. Mirrors
956
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
957
+ shutil.move(str(executable), STASHED_EXECUTABLE)
958
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
959
+ result["log"].append(
960
+ run_step(
961
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
962
+ WORKSPACE,
963
+ timeout=120,
964
+ step="install_rerunfailures",
965
+ accept_failure=True,
966
+ )
967
+ )
968
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
969
+ handoff_removed = remove_oracle_handoff_artifacts()
970
+ if handoff_removed:
971
+ result["log"].append(
972
+ {
973
+ "step": "remove_oracle_handoff",
974
+ "command": "remove oracle handoff artifacts from workspace",
975
+ "wall_time": 0.0,
976
+ "output": "".join(
977
+ f"removed '{name}'\n" for name in handoff_removed
978
+ ),
979
+ "returncode": 0,
980
+ "exception_info": "",
981
+ }
982
+ )
983
+ snapshot_workspace(compiled_snapshot)
984
+ except Exception as exc:
985
+ return fail_all(type(exc).__name__, str(exc))
986
+
987
+ try:
988
+ blob_dir = resolve_blob_dir(instance_id, metadata)
989
+ except Exception as exc:
990
+ details = f"{type(exc).__name__}: {exc}"
991
+ for branch, info in active_branch_items:
992
+ result["test_branch_errors"][branch] = [
993
+ {
994
+ "error_code": "blob_resolution_failed",
995
+ "error_details": details,
996
+ }
997
+ ]
998
+ inject_not_run(
999
+ result, branch, branch_tests(info), "blob_resolution_failed"
1000
+ )
1001
+ return result
1002
+
1003
+ for branch, info in active_branch_items:
1004
+ tests = branch_tests(info)
1005
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
1006
+ if not blob.exists():
1007
+ result["test_branch_errors"][branch] = [
1008
+ {"error_code": "missing_test_blob", "error_details": blob.name}
1009
+ ]
1010
+ inject_not_run(result, branch, tests, "missing_test_blob")
1011
+ continue
1012
+
1013
+ best_xml = ""
1014
+ # Prefer a complete, clean XML result, then the result covering the
1015
+ # most expected tests, and only then the one with the most passes.
1016
+ # Pass-count-only ranking can retain a partial xdist result over a
1017
+ # complete serial result.
1018
+ best_quality = (-1, -1, -1)
1019
+ serial = bool(metadata.get("force_serial_branches"))
1020
+ branch_log: list[dict[str, Any]] = []
1021
+ branch_ignored = {
1022
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
1023
+ }
1024
+ n_expected = len([name for name in tests if name not in branch_ignored])
1025
+
1026
+ def merge_best_xml(raw_xml: str) -> None:
1027
+ try:
1028
+ parsed, warnings = parse_junit(
1029
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
1030
+ )
1031
+ except Exception as exc:
1032
+ result["test_branch_errors"][branch] = [
1033
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
1034
+ ]
1035
+ inject_not_run(result, branch, tests, "xml_parse_error")
1036
+ else:
1037
+ result["test_results"].extend(parsed)
1038
+ result["warnings"].extend(warnings)
1039
+
1040
+ while True:
1041
+ branch_log.append(cleanup_lingering_processes())
1042
+ restore_workspace(compiled_snapshot)
1043
+ extract_trusted_blob(blob, WORKSPACE)
1044
+ restore_reference_executable()
1045
+ actual_hash = sha256(WORKSPACE / "executable")
1046
+ if actual_hash != result["executable_hash"]:
1047
+ result["test_branch_errors"][branch] = [
1048
+ {
1049
+ "error_code": "executable_hash_mismatch",
1050
+ "error_details": (
1051
+ f"expected {result['executable_hash']}, got {actual_hash}"
1052
+ ),
1053
+ }
1054
+ ]
1055
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
1056
+ break
1057
+ run_sh = WORKSPACE / "eval" / "run.sh"
1058
+ if not run_sh.exists():
1059
+ result["test_branch_errors"][branch] = [
1060
+ {
1061
+ "error_code": "missing_run_sh",
1062
+ "error_details": "eval/run.sh missing",
1063
+ }
1064
+ ]
1065
+ inject_not_run(result, branch, tests, "missing_run_sh")
1066
+ break
1067
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
1068
+ # instead of os._exit(1) on timeout. That works in fresh
1069
+ # containers per branch; here we reuse one container and
1070
+ # signal timeouts leave TUI/log-watcher subprocesses alive
1071
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
1072
+ # branch_timeout. Keep the blob's thread method and rely on
1073
+ # cleanup_lingering_processes + serial fallback after crashes.
1074
+ env = branch_env(
1075
+ serial=serial,
1076
+ has_rerunfailures=has_rerunfailures,
1077
+ extras=metadata.get("branch_env"),
1078
+ )
1079
+ branch_log.append(
1080
+ run_step(
1081
+ "rm -f eval/results.xml results.xml",
1082
+ WORKSPACE,
1083
+ timeout=120,
1084
+ step="clean_stale_results",
1085
+ accept_failure=True,
1086
+ )
1087
+ )
1088
+ if serial:
1089
+ prepare_serial_run_sh(run_sh)
1090
+ run_entry = run_step(
1091
+ run_tests_command(serial=serial),
1092
+ WORKSPACE,
1093
+ timeout=branch_timeout,
1094
+ env=env,
1095
+ step="run_tests",
1096
+ accept_failure=True,
1097
+ )
1098
+ branch_log.append(run_entry)
1099
+ branch_log.append(cleanup_lingering_processes())
1100
+ xml_path = find_results_xml()
1101
+ if xml_path is None:
1102
+ if best_xml:
1103
+ merge_best_xml(best_xml)
1104
+ break
1105
+ if serial:
1106
+ result["test_branch_errors"][branch] = [
1107
+ {
1108
+ "error_code": "missing_results_xml",
1109
+ "error_details": "eval/results.xml was not produced",
1110
+ }
1111
+ ]
1112
+ inject_not_run(result, branch, tests, "missing_results_xml")
1113
+ break
1114
+ serial = True
1115
+ continue
1116
+ raw_xml = xml_path.read_text(errors="replace")
1117
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
1118
+ raw_xml,
1119
+ run_output=run_entry.get("output", ""),
1120
+ expected_tests=n_expected,
1121
+ )
1122
+ useful = count_junit_passed(raw_xml)
1123
+ quality = (
1124
+ int(crashes == 0 and missing == 0),
1125
+ n_tests,
1126
+ useful,
1127
+ )
1128
+ if quality > best_quality:
1129
+ best_xml = raw_xml
1130
+ best_quality = quality
1131
+ retry = needs_serial_retry(
1132
+ serial=serial,
1133
+ crashes=crashes,
1134
+ missing=missing,
1135
+ failures=failures,
1136
+ n_tests=n_tests,
1137
+ expected_tests=n_expected,
1138
+ run_output=run_entry.get("output", ""),
1139
+ )
1140
+ if not retry:
1141
+ merge_best_xml(best_xml)
1142
+ break
1143
+ serial = True
1144
+ for entry in branch_log:
1145
+ entry["branch"] = branch
1146
+ result["log"].extend(branch_log)
1147
+
1148
+ return result
1149
+
1150
+
1151
+ def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
1152
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
1153
+ write_json(LOG_DIR / "programgym_eval.json", result)
1154
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
1155
+ rewards = summarize(result, metadata)
1156
+ write_json(LOG_DIR / "reward.json", rewards)
1157
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
1158
+
1159
+
1160
+ def main() -> None:
1161
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
1162
+ log_path = LOG_DIR / "programgym_eval.log"
1163
+ metadata = json.loads(METADATA_PATH.read_text())
1164
+ branches = metadata.get("branches", {})
1165
+ try:
1166
+ result = evaluate(metadata)
1167
+ except Exception as exc:
1168
+ error_code = type(exc).__name__
1169
+ result = {
1170
+ "test_results": [],
1171
+ "error_code": error_code,
1172
+ "error_details": str(exc),
1173
+ "log": [
1174
+ {
1175
+ "step": "evaluator_exception",
1176
+ "exception_info": traceback.format_exc(),
1177
+ "returncode": 1,
1178
+ }
1179
+ ],
1180
+ "solution_branch": "submission",
1181
+ "test_branches": [
1182
+ name for name, info in branches.items() if not info.get("ignored")
1183
+ ],
1184
+ "test_branch_errors": {
1185
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
1186
+ },
1187
+ "executable_hash": None,
1188
+ "warnings": [],
1189
+ }
1190
+ for branch, info in branches.items():
1191
+ if info.get("ignored"):
1192
+ continue
1193
+ inject_not_run(result, branch, branch_tests(info), error_code)
1194
+ log_path.write_text(traceback.format_exc())
1195
+ else:
1196
+ log_path.write_text("")
1197
+ write_outputs(result, metadata)
1198
+
1199
+
1200
+ if __name__ == "__main__":
1201
+ main()
antirez--dump1090.efe64db/tests/programgym_task.json ADDED
@@ -0,0 +1,1431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [
7
+ {
8
+ "name": "eval.tests.test_cli.test_help_mentions_crc_and_error_fix",
9
+ "reasons": [
10
+ {
11
+ "id": "generic_keyword_oracle",
12
+ "message": "pytest test uses a generic keyword oracle",
13
+ "path": "eval/tests/test_cli.py",
14
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
15
+ "severity": "error",
16
+ "stage": "static_lint"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "name": "eval.tests.test_extended_squitter.test_crafted_frame_echoes_raw_and_crc",
22
+ "reasons": [
23
+ {
24
+ "id": "generic_keyword_oracle",
25
+ "message": "pytest test uses a generic keyword oracle",
26
+ "path": "eval/tests/test_extended_squitter.py",
27
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
28
+ "severity": "error",
29
+ "stage": "static_lint"
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "name": "eval.tests.test_extended_squitter.test_velocity_heading_sub4_same_decode",
35
+ "reasons": [
36
+ {
37
+ "id": "generic_keyword_oracle",
38
+ "message": "pytest test uses a generic keyword oracle",
39
+ "path": "eval/tests/test_extended_squitter.py",
40
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
41
+ "severity": "error",
42
+ "stage": "static_lint"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "name": "eval.tests.test_ifile.test_stats_reports_expected_counters",
48
+ "reasons": [
49
+ {
50
+ "id": "short_substring",
51
+ "message": "pytest test uses a too-short substring oracle",
52
+ "path": "eval/tests/test_ifile.py",
53
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
54
+ "severity": "error",
55
+ "stage": "static_lint"
56
+ },
57
+ {
58
+ "id": "generic_keyword_oracle",
59
+ "message": "pytest test uses a generic keyword oracle",
60
+ "path": "eval/tests/test_ifile.py",
61
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
62
+ "severity": "error",
63
+ "stage": "static_lint"
64
+ }
65
+ ]
66
+ }
67
+ ],
68
+ "tests": [
69
+ "eval.tests.test_cli.test_help_covers_all_documented_options",
70
+ "eval.tests.test_cli.test_help_exits_zero_on_stdout",
71
+ "eval.tests.test_cli.test_help_mentions_crc_and_error_fix",
72
+ "eval.tests.test_cli.test_help_writes_nothing_to_stderr",
73
+ "eval.tests.test_cli.test_no_argument_without_device_reports_rtlsdr_error",
74
+ "eval.tests.test_cli.test_no_crc_check_no_fix_flags_parsed",
75
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--debug]",
76
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--device-index]",
77
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--freq]",
78
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--gain]",
79
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--ifile]",
80
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--net-http-port]",
81
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--net-ri-port]",
82
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--net-ro-port]",
83
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--net-sbs-port]",
84
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--ppm]",
85
+ "eval.tests.test_cli.test_option_missing_value_is_rejected[--snip]",
86
+ "eval.tests.test_cli.test_rtlsdr_required_flags_fail_without_device[--aggressive]",
87
+ "eval.tests.test_cli.test_rtlsdr_required_flags_fail_without_device[--interactive]",
88
+ "eval.tests.test_cli.test_rtlsdr_required_flags_fail_without_device[--metric]",
89
+ "eval.tests.test_cli.test_rtlsdr_required_flags_fail_without_device[--net]",
90
+ "eval.tests.test_cli.test_rtlsdr_required_flags_fail_without_device[--onlyaddr]",
91
+ "eval.tests.test_cli.test_rtlsdr_required_flags_fail_without_device[--raw]",
92
+ "eval.tests.test_cli.test_rtlsdr_required_flags_fail_without_device[--stats]",
93
+ "eval.tests.test_cli.test_unknown_debug_flag_is_rejected[!]",
94
+ "eval.tests.test_cli.test_unknown_debug_flag_is_rejected[@]",
95
+ "eval.tests.test_cli.test_unknown_debug_flag_is_rejected[q]",
96
+ "eval.tests.test_cli.test_unknown_debug_flag_is_rejected[x]",
97
+ "eval.tests.test_cli.test_unknown_debug_flag_is_rejected[z]",
98
+ "eval.tests.test_cli.test_unknown_option_fails_with_usage[--bogus]",
99
+ "eval.tests.test_cli.test_unknown_option_fails_with_usage[--doesnotexist]",
100
+ "eval.tests.test_cli.test_unknown_option_fails_with_usage[--frobnicate]",
101
+ "eval.tests.test_cli.test_unknown_option_fails_with_usage[--interactivee]",
102
+ "eval.tests.test_cli.test_unknown_option_fails_with_usage[-x]",
103
+ "eval.tests.test_crafted.test_bruteforce_ap_recovers_goodcrc_only[16]",
104
+ "eval.tests.test_crafted.test_bruteforce_ap_recovers_goodcrc_only[24]",
105
+ "eval.tests.test_crafted.test_bruteforce_ap_recovers_seeded_icao[0]",
106
+ "eval.tests.test_crafted.test_bruteforce_ap_recovers_seeded_icao[20]",
107
+ "eval.tests.test_crafted.test_bruteforce_ap_recovers_seeded_icao[21]",
108
+ "eval.tests.test_crafted.test_bruteforce_ap_recovers_seeded_icao[4]",
109
+ "eval.tests.test_crafted.test_bruteforce_ap_recovers_seeded_icao[5]",
110
+ "eval.tests.test_crafted.test_bruteforce_ap_rejects_unknown_icao[0]",
111
+ "eval.tests.test_crafted.test_bruteforce_ap_rejects_unknown_icao[16]",
112
+ "eval.tests.test_crafted.test_bruteforce_ap_rejects_unknown_icao[20]",
113
+ "eval.tests.test_crafted.test_bruteforce_ap_rejects_unknown_icao[21]",
114
+ "eval.tests.test_crafted.test_bruteforce_ap_rejects_unknown_icao[24]",
115
+ "eval.tests.test_crafted.test_bruteforce_ap_rejects_unknown_icao[4]",
116
+ "eval.tests.test_crafted.test_bruteforce_ap_rejects_unknown_icao[5]",
117
+ "eval.tests.test_crafted.test_crafted_garbage_payload_does_not_crash",
118
+ "eval.tests.test_crafted.test_crafted_interrogation_frame_reaches_raw[0]",
119
+ "eval.tests.test_crafted.test_crafted_interrogation_frame_reaches_raw[16]",
120
+ "eval.tests.test_crafted.test_crafted_interrogation_frame_reaches_raw[20]",
121
+ "eval.tests.test_crafted.test_crafted_interrogation_frame_reaches_raw[21]",
122
+ "eval.tests.test_crafted.test_crafted_interrogation_frame_reaches_raw[24]",
123
+ "eval.tests.test_crafted.test_crafted_interrogation_frame_reaches_raw[4]",
124
+ "eval.tests.test_crafted.test_crafted_interrogation_frame_reaches_raw[5]",
125
+ "eval.tests.test_crafted.test_crafted_valid_frame_roundtrips_raw",
126
+ "eval.tests.test_crafted.test_decodeac13_field_mbit_meters[0]",
127
+ "eval.tests.test_crafted.test_decodeac13_field_mbit_meters[20]",
128
+ "eval.tests.test_crafted.test_decodeac13_field_mbit_meters[4]",
129
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[12-16-0]",
130
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[12-16-20]",
131
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[12-16-4]",
132
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[24-50-0]",
133
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[24-50-20]",
134
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[24-50-4]",
135
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[31-63-0]",
136
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[31-63-20]",
137
+ "eval.tests.test_crafted.test_decodeac13_field_qbit_feet[31-63-4]",
138
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[128]",
139
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[16]",
140
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[1]",
141
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[2]",
142
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[32]",
143
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[4]",
144
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[64]",
145
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_by_bitmask[8]",
146
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_corrects_df17",
147
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_various_positions[1-1]",
148
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_various_positions[3-16]",
149
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_various_positions[5-128]",
150
+ "eval.tests.test_crafted.test_fixbiterrors_single_bit_various_positions[8-2]",
151
+ "eval.tests.test_crafted.test_fixbiterrors_stats_accounting",
152
+ "eval.tests.test_crafted.test_fixbiterrors_two_bit_corrected_with_aggressive",
153
+ "eval.tests.test_debug.test_debug_frames_describe_zero_error_demod",
154
+ "eval.tests.test_debug.test_debug_frames_js_created[cdDnCj]",
155
+ "eval.tests.test_debug.test_debug_frames_js_created[jD]",
156
+ "eval.tests.test_debug.test_debug_frames_js_has_expected_structure",
157
+ "eval.tests.test_debug.test_debug_without_j_does_not_write_frames_js",
158
+ "eval.tests.test_debug.test_unknown_debug_flag_reports_and_exits",
159
+ "eval.tests.test_extended_squitter.test_airborne_altitude_feet[0]",
160
+ "eval.tests.test_extended_squitter.test_airborne_altitude_feet[10000]",
161
+ "eval.tests.test_extended_squitter.test_airborne_altitude_feet[1000]",
162
+ "eval.tests.test_extended_squitter.test_airborne_altitude_feet[25]",
163
+ "eval.tests.test_extended_squitter.test_airborne_altitude_feet[36000]",
164
+ "eval.tests.test_extended_squitter.test_airborne_altitude_feet[41000]",
165
+ "eval.tests.test_extended_squitter.test_airborne_altitude_grows_monotonically_with_n",
166
+ "eval.tests.test_extended_squitter.test_airborne_flags[0-0-even-non-UTC]",
167
+ "eval.tests.test_extended_squitter.test_airborne_flags[1-1-odd-UTC]",
168
+ "eval.tests.test_extended_squitter.test_aircraft_type_maps_metype[1-Aircraft Type D]",
169
+ "eval.tests.test_extended_squitter.test_aircraft_type_maps_metype[2-Aircraft Type C]",
170
+ "eval.tests.test_extended_squitter.test_aircraft_type_maps_metype[3-Aircraft Type B]",
171
+ "eval.tests.test_extended_squitter.test_aircraft_type_maps_metype[4-Aircraft Type A]",
172
+ "eval.tests.test_extended_squitter.test_callsign_decode_exact[1A2B3C4D]",
173
+ "eval.tests.test_extended_squitter.test_callsign_decode_exact[A ]",
174
+ "eval.tests.test_extended_squitter.test_callsign_decode_exact[AAL1234]",
175
+ "eval.tests.test_extended_squitter.test_callsign_decode_exact[ABC]",
176
+ "eval.tests.test_extended_squitter.test_callsign_decode_exact[QT99]",
177
+ "eval.tests.test_extended_squitter.test_callsign_full_length_preserved",
178
+ "eval.tests.test_extended_squitter.test_crafted_frame_echoes_raw_and_crc",
179
+ "eval.tests.test_extended_squitter.test_df18_control_field_and_me",
180
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[0]",
181
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[1]",
182
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[2]",
183
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[3]",
184
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[4]",
185
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[5]",
186
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[6]",
187
+ "eval.tests.test_extended_squitter.test_df18_control_field_roundtrip[7]",
188
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[1-0-Aircraft Identification and Category]",
189
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[19-1-Airborne Velocity]",
190
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[20-0-Airborne Position (GNSS Height)]",
191
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[23-0-Test Message]",
192
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[24-1-Surface System Status]",
193
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[28-1-Extended Squitter Aircraft Status (Emergency)]",
194
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[28-2-Extended Squitter Aircraft Status (1090ES TCAS RA)]",
195
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[29-0-Target State and Status Message]",
196
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[31-0-Aircraft Operational Status Message]",
197
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[5-0-Surface Position]",
198
+ "eval.tests.test_extended_squitter.test_me_type_name_mapping[9-0-Airborne Position (Baro Altitude)]",
199
+ "eval.tests.test_extended_squitter.test_onlyaddr_with_crafted_df17",
200
+ "eval.tests.test_extended_squitter.test_stats_counts_crafted_frame",
201
+ "eval.tests.test_extended_squitter.test_surface_flags[0-0-even-non-UTC]",
202
+ "eval.tests.test_extended_squitter.test_surface_flags[0-1-even-UTC]",
203
+ "eval.tests.test_extended_squitter.test_surface_flags[1-0-odd-non-UTC]",
204
+ "eval.tests.test_extended_squitter.test_surface_flags[1-1-odd-UTC]",
205
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[0-not available]",
206
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[1-0 kt]",
207
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[108-98 kt]",
208
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[109-100 kt]",
209
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[12-1 kt]",
210
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[123-170 kt]",
211
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[124-175 kt]",
212
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[13-2 kt]",
213
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[38-14 kt]",
214
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[39-15 kt]",
215
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[8-0 kt]",
216
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[9-1 kt]",
217
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[93-69 kt]",
218
+ "eval.tests.test_extended_squitter.test_surface_movement_knots[94-70 kt]",
219
+ "eval.tests.test_extended_squitter.test_surface_raw_lat_lon_reported_not_decoded",
220
+ "eval.tests.test_extended_squitter.test_surface_track_decode[0-0-Track : 0 degrees (not valid)]",
221
+ "eval.tests.test_extended_squitter.test_surface_track_decode[0-1-Track : 0 degrees]",
222
+ "eval.tests.test_extended_squitter.test_surface_track_decode[32-1-Track : 90 degrees]",
223
+ "eval.tests.test_extended_squitter.test_surface_track_decode[64-1-Track : 180 degrees]",
224
+ "eval.tests.test_extended_squitter.test_unknown_me_type_label[0-0]",
225
+ "eval.tests.test_extended_squitter.test_unknown_me_type_label[25-0]",
226
+ "eval.tests.test_extended_squitter.test_unknown_me_type_label[30-0]",
227
+ "eval.tests.test_extended_squitter.test_unknown_me_type_label[31-7]",
228
+ "eval.tests.test_extended_squitter.test_unrecognized_me_type_body[25-3]",
229
+ "eval.tests.test_extended_squitter.test_unrecognized_me_type_body[26-2]",
230
+ "eval.tests.test_extended_squitter.test_unrecognized_me_type_body[30-1]",
231
+ "eval.tests.test_extended_squitter.test_velocity_fields_decode[0-0-0-0-0-0-0]",
232
+ "eval.tests.test_extended_squitter.test_velocity_fields_decode[0-100-0-200-1-0-64]",
233
+ "eval.tests.test_extended_squitter.test_velocity_fields_decode[1-1023-1-1023-1-1-511]",
234
+ "eval.tests.test_extended_squitter.test_velocity_fields_decode[1-867-0-309-0-1-1]",
235
+ "eval.tests.test_extended_squitter.test_velocity_heading_decode[0-0-0]",
236
+ "eval.tests.test_extended_squitter.test_velocity_heading_decode[1-32-90]",
237
+ "eval.tests.test_extended_squitter.test_velocity_heading_decode[1-64-180]",
238
+ "eval.tests.test_extended_squitter.test_velocity_heading_decode[1-96-270]",
239
+ "eval.tests.test_extended_squitter.test_velocity_heading_sub4_same_decode",
240
+ "eval.tests.test_extended_squitter.test_velocity_sub2_uses_same_layout",
241
+ "eval.tests.test_ifile.test_aggressive_mode_decodes_sample",
242
+ "eval.tests.test_ifile.test_decoded_icao_address_consistent",
243
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[Airborne Position (Baro Altitude)]",
244
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[Airborne Velocity]",
245
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[All Call Reply]",
246
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[Altitude]",
247
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[Capability]",
248
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[DF 11]",
249
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[Latitude]",
250
+ "eval.tests.test_ifile.test_default_decode_contains_domain_fields[Longitude]",
251
+ "eval.tests.test_ifile.test_default_decode_reports_good_crc",
252
+ "eval.tests.test_ifile.test_default_decode_shows_df17_advertisement",
253
+ "eval.tests.test_ifile.test_default_decode_shows_velocity_components",
254
+ "eval.tests.test_ifile.test_garbage_prefix_does_not_hide_following_frame",
255
+ "eval.tests.test_ifile.test_ifile_empty_file_inputs_no_output",
256
+ "eval.tests.test_ifile.test_ifile_missing_file_reports_open_error",
257
+ "eval.tests.test_ifile.test_ifile_stdin_empty_input",
258
+ "eval.tests.test_ifile.test_ifile_stdin_same_raw_output",
259
+ "eval.tests.test_ifile.test_ifile_tiny_json_text_input_clean",
260
+ "eval.tests.test_ifile.test_metric_flag_preserves_hex_identify",
261
+ "eval.tests.test_ifile.test_no_crc_check_includes_bad_crc_frames",
262
+ "eval.tests.test_ifile.test_no_crc_check_reports_suspect_crc",
263
+ "eval.tests.test_ifile.test_no_fix_flag_accepted_for_decode",
264
+ "eval.tests.test_ifile.test_onlyaddr_emits_6_dash_hex_ids",
265
+ "eval.tests.test_ifile.test_onlyaddr_matches_golden",
266
+ "eval.tests.test_ifile.test_raw_all_lines_are_well_formed",
267
+ "eval.tests.test_ifile.test_raw_first_message_known",
268
+ "eval.tests.test_ifile.test_raw_frame_length_is_14_or_28_hex_digits",
269
+ "eval.tests.test_ifile.test_raw_hex_chars_are_hex_digits",
270
+ "eval.tests.test_ifile.test_raw_matches_golden",
271
+ "eval.tests.test_ifile.test_some_bad_crc_dropped_by_default",
272
+ "eval.tests.test_ifile.test_stats_matches_golden",
273
+ "eval.tests.test_ifile.test_stats_print_only",
274
+ "eval.tests.test_ifile.test_stats_reports_expected_counters",
275
+ "eval.tests.test_ifile.test_stats_total_is_sum_of_good_plus_fixed",
276
+ "eval.tests.test_loop.test_loop_child_is_reaped_after_sigterm",
277
+ "eval.tests.test_loop.test_loop_emits_only_well_formed_raw_lines",
278
+ "eval.tests.test_loop.test_loop_first_frame_matches_single_pass",
279
+ "eval.tests.test_loop.test_loop_repeats_a_deterministic_window",
280
+ "eval.tests.test_loop.test_loop_repeats_messages_beyond_single_pass",
281
+ "eval.tests.test_net.test_net_only_is_terminated_by_sigterm",
282
+ "eval.tests.test_net.test_net_only_reports_mode_on_stderr",
283
+ "eval.tests.test_net.test_net_port_option_missing_value_rejected[--net-http-port]",
284
+ "eval.tests.test_net.test_net_port_option_missing_value_rejected[--net-ri-port]",
285
+ "eval.tests.test_net.test_net_port_option_missing_value_rejected[--net-ro-port]",
286
+ "eval.tests.test_net.test_net_port_option_missing_value_rejected[--net-sbs-port]",
287
+ "eval.tests.test_snip.test_snip_alternating_signal_passes_everything[100]",
288
+ "eval.tests.test_snip.test_snip_alternating_signal_passes_everything[127]",
289
+ "eval.tests.test_snip.test_snip_alternating_signal_passes_everything[1]",
290
+ "eval.tests.test_snip.test_snip_alternating_signal_passes_everything[25]",
291
+ "eval.tests.test_snip.test_snip_alternating_signal_passes_everything[50]",
292
+ "eval.tests.test_snip.test_snip_empty_input_empty_output",
293
+ "eval.tests.test_snip.test_snip_high_then_long_noise_drops_noise[25]",
294
+ "eval.tests.test_snip.test_snip_high_then_long_noise_drops_noise[2]",
295
+ "eval.tests.test_snip.test_snip_high_then_long_noise_drops_noise[64]",
296
+ "eval.tests.test_snip.test_snip_level_zero_passes_signal",
297
+ "eval.tests.test_snip.test_snip_preserves_high_magnitude_stream[100]",
298
+ "eval.tests.test_snip.test_snip_preserves_high_magnitude_stream[127]",
299
+ "eval.tests.test_snip.test_snip_preserves_high_magnitude_stream[1]",
300
+ "eval.tests.test_snip.test_snip_preserves_high_magnitude_stream[25]",
301
+ "eval.tests.test_snip.test_snip_preserves_high_magnitude_stream[50]",
302
+ "eval.tests.test_snip.test_snip_short_noise_burst_is_below_threshold[1]",
303
+ "eval.tests.test_snip.test_snip_short_noise_burst_is_below_threshold[25]",
304
+ "eval.tests.test_snip.test_snip_strips_mid_scale_noise[100]",
305
+ "eval.tests.test_snip.test_snip_strips_mid_scale_noise[10]",
306
+ "eval.tests.test_snip.test_snip_strips_mid_scale_noise[1]",
307
+ "eval.tests.test_snip.test_snip_strips_mid_scale_noise[200]",
308
+ "eval.tests.test_snip.test_snip_strips_mid_scale_noise[25]"
309
+ ]
310
+ },
311
+ "generated_module_02": {
312
+ "ignore_reason": "",
313
+ "ignored": false,
314
+ "ignored_tests": [
315
+ {
316
+ "name": "eval.tests.test_anet_buffering.test_after_split_buffer_reset_valid_frame_still_echoes",
317
+ "reasons": [
318
+ {
319
+ "id": "test_network_dependency",
320
+ "message": "test appears to depend on networking",
321
+ "path": "eval/tests/test_anet_buffering.py",
322
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
323
+ "severity": "error",
324
+ "stage": "static_lint"
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "name": "eval.tests.test_anet_buffering.test_two_frames_each_split_in_order[12]",
330
+ "reasons": [
331
+ {
332
+ "detail": "AssertionError: assert b'' == b'*8D406B9020...2CE0576098;\\n' Full diff: - (b'*8D406B902015A678D4D220AA4BDA;\\n*8D4840D6202CC371C32CE0576098;\\n') + b''",
333
+ "id": "gold_fail",
334
+ "message": "test failed against the reference executable",
335
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
336
+ "severity": "error",
337
+ "stage": "gold_execution"
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ "name": "eval.tests.test_anet_buffering.test_two_frames_each_split_in_order[16]",
343
+ "reasons": [
344
+ {
345
+ "detail": "AssertionError: assert b'' == b'*8D406B9020...2CE0576098;\\n' Full diff: - (b'*8D406B902015A678D4D220AA4BDA;\\n*8D4840D6202CC371C32CE0576098;\\n') + b''",
346
+ "id": "gold_fail",
347
+ "message": "test failed against the reference executable",
348
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
349
+ "severity": "error",
350
+ "stage": "gold_execution"
351
+ }
352
+ ]
353
+ },
354
+ {
355
+ "name": "eval.tests.test_anet_buffering.test_two_frames_each_split_in_order[8]",
356
+ "reasons": [
357
+ {
358
+ "detail": "AssertionError: assert b'' == b'*8D406B9020...2CE0576098;\\n' Full diff: - (b'*8D406B902015A678D4D220AA4BDA;\\n*8D4840D6202CC371C32CE0576098;\\n') + b''",
359
+ "id": "gold_fail",
360
+ "message": "test failed against the reference executable",
361
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
362
+ "severity": "error",
363
+ "stage": "gold_execution"
364
+ }
365
+ ]
366
+ },
367
+ {
368
+ "name": "eval.tests.test_anet_connlife.test_http_keepalive_answers_exact_burst",
369
+ "reasons": [
370
+ {
371
+ "id": "test_network_dependency",
372
+ "message": "test appears to depend on networking",
373
+ "path": "eval/tests/test_anet_connlife.py",
374
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
375
+ "severity": "error",
376
+ "stage": "static_lint"
377
+ }
378
+ ]
379
+ },
380
+ {
381
+ "name": "eval.tests.test_anet_connlife.test_http_keepalive_then_close_on_same_socket",
382
+ "reasons": [
383
+ {
384
+ "id": "test_network_dependency",
385
+ "message": "test appears to depend on networking",
386
+ "path": "eval/tests/test_anet_connlife.py",
387
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
388
+ "severity": "error",
389
+ "stage": "static_lint"
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "name": "eval.tests.test_anet_http.test_gmap_html_served_from_working_dir",
395
+ "reasons": [
396
+ {
397
+ "id": "test_network_dependency",
398
+ "message": "test appears to depend on networking",
399
+ "path": "eval/tests/test_anet_http.py",
400
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
401
+ "severity": "error",
402
+ "stage": "static_lint"
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "name": "eval.tests.test_anet_http.test_http11_close_closes_connection",
408
+ "reasons": [
409
+ {
410
+ "id": "test_network_dependency",
411
+ "message": "test appears to depend on networking",
412
+ "path": "eval/tests/test_anet_http.py",
413
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
414
+ "severity": "error",
415
+ "stage": "static_lint"
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ "name": "eval.tests.test_anet_http.test_http11_keep_alive_answers_two_requests",
421
+ "reasons": [
422
+ {
423
+ "id": "test_network_dependency",
424
+ "message": "test appears to depend on networking",
425
+ "path": "eval/tests/test_anet_http.py",
426
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
427
+ "severity": "error",
428
+ "stage": "static_lint"
429
+ }
430
+ ]
431
+ },
432
+ {
433
+ "name": "eval.tests.test_anet_http.test_partial_request_receives_no_reply",
434
+ "reasons": [
435
+ {
436
+ "id": "test_network_dependency",
437
+ "message": "test appears to depend on networking",
438
+ "path": "eval/tests/test_anet_http.py",
439
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
440
+ "severity": "error",
441
+ "stage": "static_lint"
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "name": "eval.tests.test_anet_malformed.test_malformed_burst_does_not_terminate_server",
447
+ "reasons": [
448
+ {
449
+ "id": "no_assertions",
450
+ "message": "pytest test contains no assert statements",
451
+ "path": "eval/tests/test_anet_malformed.py",
452
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
453
+ "severity": "error",
454
+ "stage": "static_lint"
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "name": "eval.tests.test_anet_malformed.test_oversized_buffer_is_discarded_conn_stays_open",
460
+ "reasons": [
461
+ {
462
+ "id": "test_network_dependency",
463
+ "message": "test appears to depend on networking",
464
+ "path": "eval/tests/test_anet_malformed.py",
465
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
466
+ "severity": "error",
467
+ "stage": "static_lint"
468
+ }
469
+ ]
470
+ },
471
+ {
472
+ "name": "eval.tests.test_anet_malformed.test_valid_frame_after_malformed_still_broadcasts",
473
+ "reasons": [
474
+ {
475
+ "id": "test_network_dependency",
476
+ "message": "test appears to depend on networking",
477
+ "path": "eval/tests/test_anet_malformed.py",
478
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
479
+ "severity": "error",
480
+ "stage": "static_lint"
481
+ }
482
+ ]
483
+ },
484
+ {
485
+ "name": "eval.tests.test_anet_round4.test_http10_defaults_to_close_and_eof",
486
+ "reasons": [
487
+ {
488
+ "id": "test_network_dependency",
489
+ "message": "test appears to depend on networking",
490
+ "path": "eval/tests/test_anet_round4.py",
491
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
492
+ "severity": "error",
493
+ "stage": "static_lint"
494
+ }
495
+ ]
496
+ },
497
+ {
498
+ "name": "eval.tests.test_anet_round4.test_http11_keepalive_then_close_variant",
499
+ "reasons": [
500
+ {
501
+ "id": "test_network_dependency",
502
+ "message": "test appears to depend on networking",
503
+ "path": "eval/tests/test_anet_round4.py",
504
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
505
+ "severity": "error",
506
+ "stage": "static_lint"
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "name": "eval.tests.test_anet_round4.test_keepalive_parses_distinct_paths_in_order",
512
+ "reasons": [
513
+ {
514
+ "id": "test_network_dependency",
515
+ "message": "test appears to depend on networking",
516
+ "path": "eval/tests/test_anet_round4.py",
517
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
518
+ "severity": "error",
519
+ "stage": "static_lint"
520
+ }
521
+ ]
522
+ },
523
+ {
524
+ "name": "eval.tests.test_anet_round4.test_no_retro_broadcast_to_late_peer",
525
+ "reasons": [
526
+ {
527
+ "id": "test_network_dependency",
528
+ "message": "test appears to depend on networking",
529
+ "path": "eval/tests/test_anet_round4.py",
530
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
531
+ "severity": "error",
532
+ "stage": "static_lint"
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ "name": "eval.tests.test_anet_sbs_output.test_sbs_undersized_input_produces_no_line",
538
+ "reasons": [
539
+ {
540
+ "id": "test_network_dependency",
541
+ "message": "test appears to depend on networking",
542
+ "path": "eval/tests/test_anet_sbs_output.py",
543
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
544
+ "severity": "error",
545
+ "stage": "static_lint"
546
+ }
547
+ ]
548
+ },
549
+ {
550
+ "name": "eval.tests.test_anet_short_frames.test_short_frame_without_no_crc_check_is_dropped",
551
+ "reasons": [
552
+ {
553
+ "id": "test_network_dependency",
554
+ "message": "test appears to depend on networking",
555
+ "path": "eval/tests/test_anet_short_frames.py",
556
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
557
+ "severity": "error",
558
+ "stage": "static_lint"
559
+ }
560
+ ]
561
+ }
562
+ ],
563
+ "tests": [
564
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[1-http]",
565
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[1-ri]",
566
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[1-ro]",
567
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[1-sbs]",
568
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[3-http]",
569
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[3-ri]",
570
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[3-ro]",
571
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[3-sbs]",
572
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[6-http]",
573
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[6-ri]",
574
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[6-ro]",
575
+ "eval.tests.test_anet_accept.test_accept_multiple_clients_per_service[6-sbs]",
576
+ "eval.tests.test_anet_accept.test_accept_on_every_service_simultaneously",
577
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_fails_exactly[http---net-http-port-HTTP server]",
578
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_fails_exactly[ri---net-ri-port-Raw TCP input]",
579
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_fails_exactly[ro---net-ro-port-Raw TCP output]",
580
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_fails_exactly[sbs---net-sbs-port-Basestation TCP output]",
581
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_first_server_keeps_serving",
582
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_reports_only_conflicting_service[http---net-http-port-HTTP server]",
583
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_reports_only_conflicting_service[ri---net-ri-port-Raw TCP input]",
584
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_reports_only_conflicting_service[ro---net-ro-port-Raw TCP output]",
585
+ "eval.tests.test_anet_bind_conflict.test_bind_conflict_reports_only_conflicting_service[sbs---net-sbs-port-Basestation TCP output]",
586
+ "eval.tests.test_anet_buffering.test_after_split_buffer_reset_valid_frame_still_echoes",
587
+ "eval.tests.test_anet_buffering.test_frame_byte_by_byte_decodes_once",
588
+ "eval.tests.test_anet_buffering.test_frame_split_across_two_writes_decodes_once[13]",
589
+ "eval.tests.test_anet_buffering.test_frame_split_across_two_writes_decodes_once[14]",
590
+ "eval.tests.test_anet_buffering.test_frame_split_across_two_writes_decodes_once[15]",
591
+ "eval.tests.test_anet_buffering.test_frame_split_across_two_writes_decodes_once[26]",
592
+ "eval.tests.test_anet_buffering.test_frame_split_across_two_writes_decodes_once[4]",
593
+ "eval.tests.test_anet_buffering.test_frame_split_across_two_writes_decodes_once[8]",
594
+ "eval.tests.test_anet_buffering.test_split_inside_hex_then_two_more_writes",
595
+ "eval.tests.test_anet_buffering.test_two_frames_each_split_in_order[12]",
596
+ "eval.tests.test_anet_buffering.test_two_frames_each_split_in_order[16]",
597
+ "eval.tests.test_anet_buffering.test_two_frames_each_split_in_order[8]",
598
+ "eval.tests.test_anet_cli.test_help_lists_net_options",
599
+ "eval.tests.test_anet_cli.test_net_port_option_without_value_errors[--net-ro-port]",
600
+ "eval.tests.test_anet_cli.test_net_port_option_without_value_errors[--net-sbs-port]",
601
+ "eval.tests.test_anet_cli.test_short_help_flag_exits_zero",
602
+ "eval.tests.test_anet_cli.test_unknown_option_exits_one",
603
+ "eval.tests.test_anet_connlife.test_external_http_conflict_is_detected_before_services",
604
+ "eval.tests.test_anet_connlife.test_external_listener_bind_conflict_exits[--net-http-port-HTTP server]",
605
+ "eval.tests.test_anet_connlife.test_external_listener_bind_conflict_exits[--net-ri-port-Raw TCP input]",
606
+ "eval.tests.test_anet_connlife.test_external_listener_bind_conflict_exits[--net-ro-port-Raw TCP output]",
607
+ "eval.tests.test_anet_connlife.test_external_listener_bind_conflict_exits[--net-sbs-port-Basestation TCP output]",
608
+ "eval.tests.test_anet_connlife.test_http_keepalive_answers_exact_burst",
609
+ "eval.tests.test_anet_connlife.test_http_keepalive_then_close_on_same_socket",
610
+ "eval.tests.test_anet_connlife.test_valid_then_garbage_on_same_http_socket[GET /data.json HTTP/1.1\\r\\n\\r\\nGARBAGE]",
611
+ "eval.tests.test_anet_connlife.test_valid_then_garbage_on_same_http_socket[GET /data.json HTTP/1.1\\r\\n\\r\\n\\x00\\x01\\x02\\r\\n\\r\\n]",
612
+ "eval.tests.test_anet_http.test_arbitrary_url_served_as_html",
613
+ "eval.tests.test_anet_http.test_broken_request_closes_connection[0]",
614
+ "eval.tests.test_anet_http.test_broken_request_closes_connection[1]",
615
+ "eval.tests.test_anet_http.test_broken_request_closes_connection[2]",
616
+ "eval.tests.test_anet_http.test_broken_request_closes_connection[3]",
617
+ "eval.tests.test_anet_http.test_data_json_body_length_matches_header",
618
+ "eval.tests.test_anet_http.test_data_json_returns_exact_empty_array[/data.json#frag]",
619
+ "eval.tests.test_anet_http.test_data_json_returns_exact_empty_array[/data.json?ts=123]",
620
+ "eval.tests.test_anet_http.test_data_json_returns_exact_empty_array[/data.json?v=2&x=1]",
621
+ "eval.tests.test_anet_http.test_data_json_returns_exact_empty_array[/data.json]",
622
+ "eval.tests.test_anet_http.test_gmap_html_served_from_working_dir",
623
+ "eval.tests.test_anet_http.test_http10_defaults_to_close",
624
+ "eval.tests.test_anet_http.test_http10_keep_alive_keeps_capability",
625
+ "eval.tests.test_anet_http.test_http11_close_closes_connection",
626
+ "eval.tests.test_anet_http.test_http11_empty_reply_is_keep_alive",
627
+ "eval.tests.test_anet_http.test_http11_keep_alive_answers_two_requests",
628
+ "eval.tests.test_anet_http.test_non_json_urls_are_html[/]",
629
+ "eval.tests.test_anet_http.test_non_json_urls_are_html[/foobar]",
630
+ "eval.tests.test_anet_http.test_non_json_urls_are_html[/index.html]",
631
+ "eval.tests.test_anet_http.test_overlong_url_still_returns_html",
632
+ "eval.tests.test_anet_http.test_partial_request_receives_no_reply",
633
+ "eval.tests.test_anet_http.test_root_without_gmap_reports_exact_error",
634
+ "eval.tests.test_anet_http.test_urls_containing_data_json_are_json[/a/data.json]",
635
+ "eval.tests.test_anet_http.test_urls_containing_data_json_are_json[/data.json/x]",
636
+ "eval.tests.test_anet_http.test_urls_containing_data_json_are_json[/data.json]",
637
+ "eval.tests.test_anet_http.test_urls_containing_data_json_are_json[/sub/data.json]",
638
+ "eval.tests.test_anet_malformed.test_crlf_separated_frame_decodes",
639
+ "eval.tests.test_anet_malformed.test_malformed_burst_does_not_terminate_server",
640
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[*000000000000000000000000000000000000;]",
641
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[*8D406B902015A678D4D220AA ;]",
642
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[*8D406B902015A678D4D220AA4BDA2]",
643
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[*8D406B90ZZZZA678D4D220AA4BDA]",
644
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[*8D4]",
645
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[*;]",
646
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[*]",
647
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[8D406B902015A678D4D220AA4BDA]",
648
+ "eval.tests.test_anet_malformed.test_malformed_frame_dropped_no_echo[GARBAGE WITHOUT STAR]",
649
+ "eval.tests.test_anet_malformed.test_only_newline_separator_used",
650
+ "eval.tests.test_anet_malformed.test_oversized_buffer_is_discarded_conn_stays_open",
651
+ "eval.tests.test_anet_malformed.test_valid_frame_after_malformed_still_broadcasts",
652
+ "eval.tests.test_anet_raw_broadcast.test_frame_burst_echoed_in_order[1-*8D406B902015A678D4D220AA4BDA;\\n]",
653
+ "eval.tests.test_anet_raw_broadcast.test_frame_burst_echoed_in_order[2-*8D406B902015A678D4D220AA4BDA;\\n*8D4840D6202CC371C32CE0576098;\\n]",
654
+ "eval.tests.test_anet_raw_broadcast.test_frame_burst_echoed_in_order[3-*8D406B902015A678D4D220AA4BDA;\\n*8D4840D6202CC371C32CE0576098;\\n*8D40621D58C382D690C8AC2863A7;\\n]",
655
+ "eval.tests.test_anet_raw_broadcast.test_lowercase_hex_reencoded_uppercase",
656
+ "eval.tests.test_anet_raw_broadcast.test_multiple_raw_output_peers_each_receive_exact_frame",
657
+ "eval.tests.test_anet_raw_broadcast.test_raw_echo_excludes_control_prefix",
658
+ "eval.tests.test_anet_raw_broadcast.test_raw_frame_echoed_verbatim[8D40621D58C382D690C8AC2863A7-*8D40621D58C382D690C8AC2863A7;\\n]",
659
+ "eval.tests.test_anet_raw_broadcast.test_raw_frame_echoed_verbatim[8D406B902015A678D4D220AA4BDA-*8D406B902015A678D4D220AA4BDA;\\n]",
660
+ "eval.tests.test_anet_raw_broadcast.test_raw_frame_echoed_verbatim[8D4840D6202CC371C32CE0576098-*8D4840D6202CC371C32CE0576098;\\n]",
661
+ "eval.tests.test_anet_raw_broadcast.test_undecodable_frame_not_rebroadcast[8D406B90000000000000000000000000000000000000]",
662
+ "eval.tests.test_anet_raw_broadcast.test_undecodable_frame_not_rebroadcast[ZZ]",
663
+ "eval.tests.test_anet_raw_broadcast.test_undecodable_frame_not_rebroadcast[]",
664
+ "eval.tests.test_anet_round4.test_http10_defaults_to_close_and_eof",
665
+ "eval.tests.test_anet_round4.test_http11_keepalive_then_close_variant",
666
+ "eval.tests.test_anet_round4.test_http_url_token_match_is_case_sensitive[/DATA.JSON]",
667
+ "eval.tests.test_anet_round4.test_http_url_token_match_is_case_sensitive[/DAta.json]",
668
+ "eval.tests.test_anet_round4.test_http_url_token_match_is_case_sensitive[/Data.JSON?x=1]",
669
+ "eval.tests.test_anet_round4.test_keepalive_parses_distinct_paths_in_order",
670
+ "eval.tests.test_anet_round4.test_lowercase_data_json_token_yields_json[/a/data.json/b/d/c]",
671
+ "eval.tests.test_anet_round4.test_lowercase_data_json_token_yields_json[/data.json]",
672
+ "eval.tests.test_anet_round4.test_many_rapid_connect_disconnect_cycles",
673
+ "eval.tests.test_anet_round4.test_multi_service_integrity_on_one_server",
674
+ "eval.tests.test_anet_round4.test_no_retro_broadcast_to_late_peer",
675
+ "eval.tests.test_anet_sbs_output.test_distinct_icaos_produce_distinct_exact_lines",
676
+ "eval.tests.test_anet_sbs_output.test_no_sbs_line_for_bad_frames[8D406B900000000000000000000000000000000000000000]",
677
+ "eval.tests.test_anet_sbs_output.test_no_sbs_line_for_bad_frames[8D406B902015A678D4D220AA4BD0]",
678
+ "eval.tests.test_anet_sbs_output.test_no_sbs_line_for_bad_frames[8D406B902015A678D4D220AA4BD]",
679
+ "eval.tests.test_anet_sbs_output.test_sbs_line_for_frame[88406B904837800000000057C1BB-MSG,3,,,406B90,,,,,,,10000,,,,,,,0,0,0,0\\n]",
680
+ "eval.tests.test_anet_sbs_output.test_sbs_line_for_frame[88406B9088C90000000000B53299-MSG,3,,,406B90,,,,,,,39000,,,,,,,0,0,0,0\\n]",
681
+ "eval.tests.test_anet_sbs_output.test_sbs_line_for_frame[88406B9099000000010000D9976E-MSG,4,,,406B90,,,,,,,,0,0,,,4032,,0,0,0,0\\n]",
682
+ "eval.tests.test_anet_sbs_output.test_sbs_line_for_frame[884840D6202CC341C72CE099DE79-MSG,1,,,4840D6,,,,,,KLMA123 ,,,,,,,,0,0,0,0\\n]",
683
+ "eval.tests.test_anet_sbs_output.test_sbs_line_for_frame[8D40621D58C382D690C8AC2863A7-MSG,3,,,40621D,,,,,,,38000,,,,,,,0,0,0,0\\n]",
684
+ "eval.tests.test_anet_sbs_output.test_sbs_line_for_frame[8D406B902015A678D4D220AA4BDA-MSG,1,,,406B90,,,,,,EZY85MH ,,,,,,,,0,0,0,0\\n]",
685
+ "eval.tests.test_anet_sbs_output.test_sbs_line_for_frame[8D4840D6202CC371C32CE0576098-MSG,1,,,4840D6,,,,,,KLM1023 ,,,,,,,,0,0,0,0\\n]",
686
+ "eval.tests.test_anet_sbs_output.test_sbs_reaches_multiple_peers_exactly",
687
+ "eval.tests.test_anet_sbs_output.test_sbs_record_includes_type_one_for_callsign",
688
+ "eval.tests.test_anet_sbs_output.test_sbs_undersized_input_produces_no_line",
689
+ "eval.tests.test_anet_server.test_all_four_ports_distinct_and_bound",
690
+ "eval.tests.test_anet_server.test_custom_port_arg_binds_named_service[http---net-http-port]",
691
+ "eval.tests.test_anet_server.test_custom_port_arg_binds_named_service[ri---net-ri-port]",
692
+ "eval.tests.test_anet_server.test_custom_port_arg_binds_named_service[ro---net-ro-port]",
693
+ "eval.tests.test_anet_server.test_custom_port_arg_binds_named_service[sbs---net-sbs-port]",
694
+ "eval.tests.test_anet_server.test_each_service_port_listens[http]",
695
+ "eval.tests.test_anet_server.test_each_service_port_listens[ri]",
696
+ "eval.tests.test_anet_server.test_each_service_port_listens[ro]",
697
+ "eval.tests.test_anet_server.test_each_service_port_listens[sbs]",
698
+ "eval.tests.test_anet_server.test_server_remains_alive_after_client_disconnect",
699
+ "eval.tests.test_anet_short_frames.test_short_frame_sbs_and_raw_echo[00406B90001A74-*00406B90001A74;\\n-MSG,5,,,406B90,,,,,,,17400,,,,,,,,,,\\n]",
700
+ "eval.tests.test_anet_short_frames.test_short_frame_sbs_and_raw_echo[28406B90000000-*28406B90000000;\\n-MSG,6,,,406B90,,,,,,,,,,,,,7041,0,0,0,0\\n]",
701
+ "eval.tests.test_anet_short_frames.test_short_frame_sbs_and_raw_echo[5D406B90000000-*5D406B90000000;\\n-MSG,8,,,406B90,,,,,,,,,,,,,,,,,\\n]",
702
+ "eval.tests.test_anet_short_frames.test_short_frame_without_no_crc_check_is_dropped"
703
+ ]
704
+ },
705
+ "generated_module_03": {
706
+ "ignore_reason": "",
707
+ "ignored": false,
708
+ "ignored_tests": [
709
+ {
710
+ "name": "eval.tests.test_http_pipelining.test_pipelined_http10_close_header_then_html_default",
711
+ "reasons": [
712
+ {
713
+ "id": "test_network_dependency",
714
+ "message": "test appears to depend on networking",
715
+ "path": "eval/tests/test_http_pipelining.py",
716
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
717
+ "severity": "error",
718
+ "stage": "static_lint"
719
+ }
720
+ ]
721
+ },
722
+ {
723
+ "name": "eval.tests.test_http_pipelining.test_pipelined_http10_data_json_default_serves_only_first",
724
+ "reasons": [
725
+ {
726
+ "id": "test_network_dependency",
727
+ "message": "test appears to depend on networking",
728
+ "path": "eval/tests/test_http_pipelining.py",
729
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
730
+ "severity": "error",
731
+ "stage": "static_lint"
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "name": "eval.tests.test_http_pipelining.test_pipelined_http10_default_serves_only_first",
737
+ "reasons": [
738
+ {
739
+ "id": "test_network_dependency",
740
+ "message": "test appears to depend on networking",
741
+ "path": "eval/tests/test_http_pipelining.py",
742
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
743
+ "severity": "error",
744
+ "stage": "static_lint"
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ "name": "eval.tests.test_http_pipelining.test_pipelined_http10_keepalive_json_then_html",
750
+ "reasons": [
751
+ {
752
+ "id": "test_network_dependency",
753
+ "message": "test appears to depend on networking",
754
+ "path": "eval/tests/test_http_pipelining.py",
755
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
756
+ "severity": "error",
757
+ "stage": "static_lint"
758
+ }
759
+ ]
760
+ },
761
+ {
762
+ "name": "eval.tests.test_http_pipelining.test_pipelined_http10_keepalive_two_html",
763
+ "reasons": [
764
+ {
765
+ "id": "test_network_dependency",
766
+ "message": "test appears to depend on networking",
767
+ "path": "eval/tests/test_http_pipelining.py",
768
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
769
+ "severity": "error",
770
+ "stage": "static_lint"
771
+ }
772
+ ]
773
+ },
774
+ {
775
+ "name": "eval.tests.test_http_pipelining.test_pipelined_lowercase_close_header_has_no_effect",
776
+ "reasons": [
777
+ {
778
+ "id": "test_network_dependency",
779
+ "message": "test appears to depend on networking",
780
+ "path": "eval/tests/test_http_pipelining.py",
781
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
782
+ "severity": "error",
783
+ "stage": "static_lint"
784
+ }
785
+ ]
786
+ },
787
+ {
788
+ "name": "eval.tests.test_http_pipelining.test_pipelined_mixed_html_then_json_http11",
789
+ "reasons": [
790
+ {
791
+ "id": "test_network_dependency",
792
+ "message": "test appears to depend on networking",
793
+ "path": "eval/tests/test_http_pipelining.py",
794
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
795
+ "severity": "error",
796
+ "stage": "static_lint"
797
+ }
798
+ ]
799
+ },
800
+ {
801
+ "name": "eval.tests.test_http_pipelining.test_pipelined_mixed_json_then_html_http11",
802
+ "reasons": [
803
+ {
804
+ "id": "test_network_dependency",
805
+ "message": "test appears to depend on networking",
806
+ "path": "eval/tests/test_http_pipelining.py",
807
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
808
+ "severity": "error",
809
+ "stage": "static_lint"
810
+ }
811
+ ]
812
+ },
813
+ {
814
+ "name": "eval.tests.test_http_pipelining.test_pipelined_three_http11_data_json_keepalive",
815
+ "reasons": [
816
+ {
817
+ "id": "test_network_dependency",
818
+ "message": "test appears to depend on networking",
819
+ "path": "eval/tests/test_http_pipelining.py",
820
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
821
+ "severity": "error",
822
+ "stage": "static_lint"
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ "name": "eval.tests.test_http_pipelining.test_pipelined_two_http11_data_json_keepalive",
828
+ "reasons": [
829
+ {
830
+ "id": "test_network_dependency",
831
+ "message": "test appears to depend on networking",
832
+ "path": "eval/tests/test_http_pipelining.py",
833
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
834
+ "severity": "error",
835
+ "stage": "static_lint"
836
+ }
837
+ ]
838
+ },
839
+ {
840
+ "name": "eval.tests.test_http_pipelining.test_pipelined_two_http11_html_keepalive",
841
+ "reasons": [
842
+ {
843
+ "id": "test_network_dependency",
844
+ "message": "test appears to depend on networking",
845
+ "path": "eval/tests/test_http_pipelining.py",
846
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
847
+ "severity": "error",
848
+ "stage": "static_lint"
849
+ }
850
+ ]
851
+ }
852
+ ],
853
+ "tests": [
854
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_asset_served_by_real_server",
855
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_declares_frames_js",
856
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_distinct_from_gmap",
857
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_has_checksum_table",
858
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_has_frame_display_fn",
859
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_has_frame_div",
860
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_has_info_div",
861
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_has_modes_checksum_fn",
862
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_has_prev_next_buttons",
863
+ "eval.tests.test_debug_viewer_and_errors.test_debug_viewer_size_and_schema",
864
+ "eval.tests.test_debug_viewer_and_errors.test_request_empty_separator_only",
865
+ "eval.tests.test_debug_viewer_and_errors.test_request_method_only_row",
866
+ "eval.tests.test_debug_viewer_and_errors.test_request_method_without_version",
867
+ "eval.tests.test_debug_viewer_and_errors.test_request_with_no_url_terminator_closes",
868
+ "eval.tests.test_debug_viewer_and_errors.test_valid_after_invalid_request",
869
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[aggressive]",
870
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[enable_agc]",
871
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[freq]",
872
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[gain]",
873
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[interactive]",
874
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[metric]",
875
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[no_fix_no_crc]",
876
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[onlyaddr]",
877
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[ppm]",
878
+ "eval.tests.test_help_cli.test_extra_flags_accepted_with_net_only[raw]",
879
+ "eval.tests.test_help_cli.test_help_exit_zero_with_usage",
880
+ "eval.tests.test_help_cli.test_help_mentions_debug_js_flag",
881
+ "eval.tests.test_help_cli.test_help_mentions_http_port",
882
+ "eval.tests.test_help_cli.test_help_mentions_ifile",
883
+ "eval.tests.test_help_cli.test_help_mentions_interactive",
884
+ "eval.tests.test_help_cli.test_help_mentions_metric",
885
+ "eval.tests.test_help_cli.test_help_mentions_net_only",
886
+ "eval.tests.test_help_cli.test_help_mentions_no_crc_check",
887
+ "eval.tests.test_help_cli.test_help_mentions_raw",
888
+ "eval.tests.test_help_cli.test_help_mentions_snip",
889
+ "eval.tests.test_help_cli.test_help_printed_to_stdout",
890
+ "eval.tests.test_help_cli.test_ifile_empty_path_exits_one",
891
+ "eval.tests.test_help_cli.test_ifile_error_on_stderr_not_stdout",
892
+ "eval.tests.test_help_cli.test_ifile_missing_file_exits_one_with_error",
893
+ "eval.tests.test_help_cli.test_ifile_missing_help_not_emitted",
894
+ "eval.tests.test_help_cli.test_missing_arg_for_option_exit_one_with_error",
895
+ "eval.tests.test_help_cli.test_missing_arg_for_option_msg",
896
+ "eval.tests.test_help_cli.test_net_only_reports_mode",
897
+ "eval.tests.test_help_cli.test_net_only_serves_frontend",
898
+ "eval.tests.test_help_cli.test_short_dash_h_is_unknown_option",
899
+ "eval.tests.test_help_cli.test_snip_drops_samples_beyond_threshold",
900
+ "eval.tests.test_help_cli.test_snip_exact_boundary_threshold",
901
+ "eval.tests.test_help_cli.test_snip_level_zero_passthrough",
902
+ "eval.tests.test_help_cli.test_snip_passthrough_with_no_low_run",
903
+ "eval.tests.test_help_cli.test_snip_small_level_keeps_center",
904
+ "eval.tests.test_help_cli.test_unknown_debug_flag_exit_one_with_error",
905
+ "eval.tests.test_help_cli.test_unknown_debug_flag_reports_char",
906
+ "eval.tests.test_help_cli.test_unknown_debug_flag_reports_other_char",
907
+ "eval.tests.test_help_cli.test_unknown_option_error_on_stderr_not_stdout",
908
+ "eval.tests.test_help_cli.test_unknown_option_exit_one_with_error",
909
+ "eval.tests.test_help_cli.test_unknown_option_prints_error",
910
+ "eval.tests.test_http_connection.test_connection_header_lowercase_not_matched",
911
+ "eval.tests.test_http_connection.test_data_json_http10_close",
912
+ "eval.tests.test_http_connection.test_data_json_http11_keepalive",
913
+ "eval.tests.test_http_connection.test_http10_close_header_with_lowercase_keepalive_is_close",
914
+ "eval.tests.test_http_connection.test_http10_default_close",
915
+ "eval.tests.test_http_connection.test_http10_header_http11_substring_is_keepalive",
916
+ "eval.tests.test_http_connection.test_http10_keepalive_explicit",
917
+ "eval.tests.test_http_connection.test_http10_keepalive_in_url_makes_keepalive",
918
+ "eval.tests.test_http_connection.test_http10_keepalive_pipelined",
919
+ "eval.tests.test_http_connection.test_http10_keepalive_substring_anywhere_in_header",
920
+ "eval.tests.test_http_connection.test_http10_keepalive_substring_in_url_serves_exact_html",
921
+ "eval.tests.test_http_connection.test_http10_lowercase_keepalive_is_close",
922
+ "eval.tests.test_http_connection.test_http11_close_explicit",
923
+ "eval.tests.test_http_connection.test_http11_close_in_header_overrides_http10_token_in_url",
924
+ "eval.tests.test_http_connection.test_http11_default_keepalive",
925
+ "eval.tests.test_http_connection.test_http11_http10_header_still_keepalive",
926
+ "eval.tests.test_http_connection.test_http11_keepalive_with_other_header",
927
+ "eval.tests.test_http_connection.test_http11_query_param_http10_after_version_keeps_request_line_version",
928
+ "eval.tests.test_http_connection.test_http11_root_close_serves_exact_html",
929
+ "eval.tests.test_http_connection.test_http11_root_keepalive_serves_exact_html",
930
+ "eval.tests.test_http_connection.test_url_connection_close_substring_makes_close_http11",
931
+ "eval.tests.test_http_connection.test_url_http11_substring_makes_keepalive",
932
+ "eval.tests.test_http_data_json.test_data_json_accept_header_ignored",
933
+ "eval.tests.test_http_data_json.test_data_json_content_length",
934
+ "eval.tests.test_http_data_json.test_data_json_content_length_is_exact_four",
935
+ "eval.tests.test_http_data_json.test_data_json_content_type_json",
936
+ "eval.tests.test_http_data_json.test_data_json_cors_header",
937
+ "eval.tests.test_http_data_json.test_data_json_empty_is_array",
938
+ "eval.tests.test_http_data_json.test_data_json_extra_request_headers",
939
+ "eval.tests.test_http_data_json.test_data_json_header_terminator",
940
+ "eval.tests.test_http_data_json.test_data_json_http10_keepalive_in_url_serves_json",
941
+ "eval.tests.test_http_data_json.test_data_json_http10_keepalive_serves_json",
942
+ "eval.tests.test_http_data_json.test_data_json_http10_keepalive_substring_anywhere",
943
+ "eval.tests.test_http_data_json.test_data_json_http10_lowercase_keepalive_in_url_is_close",
944
+ "eval.tests.test_http_data_json.test_data_json_http10_lowercase_keepalive_is_close",
945
+ "eval.tests.test_http_data_json.test_data_json_http11_close_explicit",
946
+ "eval.tests.test_http_data_json.test_data_json_http11_close_substring_anywhere",
947
+ "eval.tests.test_http_data_json.test_data_json_http11_conflicting_headers_close_wins",
948
+ "eval.tests.test_http_data_json.test_data_json_http11_default_keepalive",
949
+ "eval.tests.test_http_data_json.test_data_json_http11_query_http10_after_version_keepalive",
950
+ "eval.tests.test_http_data_json.test_data_json_parses_as_array",
951
+ "eval.tests.test_http_data_json.test_data_json_query_string_ignored",
952
+ "eval.tests.test_http_data_json.test_data_json_server_header",
953
+ "eval.tests.test_http_data_json.test_data_json_slash_prefix_matches",
954
+ "eval.tests.test_http_data_json.test_data_json_status_ok",
955
+ "eval.tests.test_http_data_json.test_data_json_subpath_containing_match",
956
+ "eval.tests.test_http_data_json.test_head_data_json_returns_json_body",
957
+ "eval.tests.test_http_data_json.test_post_data_json_returns_json",
958
+ "eval.tests.test_http_errors.test_busy_slot_reports_service_descr[http]",
959
+ "eval.tests.test_http_errors.test_busy_slot_reports_service_descr[ri]",
960
+ "eval.tests.test_http_errors.test_busy_slot_reports_service_descr[ro]",
961
+ "eval.tests.test_http_errors.test_busy_slot_reports_service_descr[sbs]",
962
+ "eval.tests.test_http_errors.test_duplicate_port_bind_fails[http]",
963
+ "eval.tests.test_http_errors.test_duplicate_port_bind_fails[ri]",
964
+ "eval.tests.test_http_errors.test_duplicate_port_bind_fails[ro]",
965
+ "eval.tests.test_http_errors.test_duplicate_port_bind_fails[sbs]",
966
+ "eval.tests.test_http_errors.test_missing_asset_still_serves_data_json",
967
+ "eval.tests.test_http_errors.test_missing_gmap_html_errno_message",
968
+ "eval.tests.test_http_errors.test_missing_gmap_html_error_payload",
969
+ "eval.tests.test_http_pipelining.test_fragmented_data_json_request_served_once",
970
+ "eval.tests.test_http_pipelining.test_fragmented_html_request_served_once",
971
+ "eval.tests.test_http_pipelining.test_fragmented_request_with_extra_read_is_incomplete",
972
+ "eval.tests.test_http_pipelining.test_pipelined_http10_close_header_then_html_default",
973
+ "eval.tests.test_http_pipelining.test_pipelined_http10_data_json_default_serves_only_first",
974
+ "eval.tests.test_http_pipelining.test_pipelined_http10_default_serves_only_first",
975
+ "eval.tests.test_http_pipelining.test_pipelined_http10_keepalive_json_then_html",
976
+ "eval.tests.test_http_pipelining.test_pipelined_http10_keepalive_two_html",
977
+ "eval.tests.test_http_pipelining.test_pipelined_keepalive_then_close_http11",
978
+ "eval.tests.test_http_pipelining.test_pipelined_lowercase_close_header_has_no_effect",
979
+ "eval.tests.test_http_pipelining.test_pipelined_mixed_html_then_json_http11",
980
+ "eval.tests.test_http_pipelining.test_pipelined_mixed_json_then_html_http11",
981
+ "eval.tests.test_http_pipelining.test_pipelined_three_http11_data_json_keepalive",
982
+ "eval.tests.test_http_pipelining.test_pipelined_two_http11_data_json_keepalive",
983
+ "eval.tests.test_http_pipelining.test_pipelined_two_http11_html_keepalive",
984
+ "eval.tests.test_http_serve_html.test_double_space_between_request_tokens_serves_html",
985
+ "eval.tests.test_http_serve_html.test_http10_keepalive_serves_exact_html_single_request",
986
+ "eval.tests.test_http_serve_html.test_http_head_receives_html",
987
+ "eval.tests.test_http_serve_html.test_lowercase_method_still_serves_html",
988
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[debug]",
989
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[double_dot_traversal]",
990
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[favicon]",
991
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[framedata]",
992
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[gmaphtml]",
993
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[indexhtml]",
994
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[otherpage]",
995
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[planetslash]",
996
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[query]",
997
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[tools_debug]",
998
+ "eval.tests.test_http_serve_html.test_non_data_urls_are_html_content_type[wellknown]",
999
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[debug]",
1000
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[double_dot_traversal]",
1001
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[favicon]",
1002
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[framedata]",
1003
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[gmaphtml]",
1004
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[indexhtml]",
1005
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[otherpage]",
1006
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[planetslash]",
1007
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[query]",
1008
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[tools_debug]",
1009
+ "eval.tests.test_http_serve_html.test_non_data_urls_serve_gmap_html[wellknown]",
1010
+ "eval.tests.test_http_serve_html.test_post_still_returns_html",
1011
+ "eval.tests.test_http_serve_html.test_put_requesting_index_returns_html",
1012
+ "eval.tests.test_http_serve_html.test_request_extra_header_lines",
1013
+ "eval.tests.test_http_serve_html.test_root_body_len_matches_content_length",
1014
+ "eval.tests.test_http_serve_html.test_root_contains_info_panel",
1015
+ "eval.tests.test_http_serve_html.test_root_contains_map_canvas_div",
1016
+ "eval.tests.test_http_serve_html.test_root_contains_title",
1017
+ "eval.tests.test_http_serve_html.test_root_content_length_matches_file",
1018
+ "eval.tests.test_http_serve_html.test_root_content_type_is_html",
1019
+ "eval.tests.test_http_serve_html.test_root_cors_header",
1020
+ "eval.tests.test_http_serve_html.test_root_index_serves_gmap_html",
1021
+ "eval.tests.test_http_serve_html.test_root_references_data_json_fetch",
1022
+ "eval.tests.test_http_serve_html.test_root_references_leaflet_css",
1023
+ "eval.tests.test_http_serve_html.test_root_response_header_field_set",
1024
+ "eval.tests.test_http_serve_html.test_root_server_header",
1025
+ "eval.tests.test_http_serve_html.test_root_status_line_is_http11_even_for_http10",
1026
+ "eval.tests.test_http_serve_html.test_uppercase_data_json_selects_html",
1027
+ "eval.tests.test_snip_mode.test_snip_collapse_then_odd_tail_dropped",
1028
+ "eval.tests.test_snip_mode.test_snip_empty_level_string_is_zero_passthrough",
1029
+ "eval.tests.test_snip_mode.test_snip_level_100_below_threshold_byte_28_is_low",
1030
+ "eval.tests.test_snip_mode.test_snip_level_100_threshold_byte_27_eq_is_loud",
1031
+ "eval.tests.test_snip_mode.test_snip_level_127_mid_byte_is_low_collapses",
1032
+ "eval.tests.test_snip_mode.test_snip_level_128_extreme_loud_bytes_pass",
1033
+ "eval.tests.test_snip_mode.test_snip_level_129_all_samples_low_keeps_32",
1034
+ "eval.tests.test_snip_mode.test_snip_level_1_only_center_is_low",
1035
+ "eval.tests.test_snip_mode.test_snip_level_254_low_byte_collapses",
1036
+ "eval.tests.test_snip_mode.test_snip_level_255_all_low_keeps_first_32",
1037
+ "eval.tests.test_snip_mode.test_snip_level_256_long_run_collapses_to_32[fifty]",
1038
+ "eval.tests.test_snip_mode.test_snip_level_256_long_run_collapses_to_32[one_hundred]",
1039
+ "eval.tests.test_snip_mode.test_snip_level_256_long_run_collapses_to_32[thirty_three]",
1040
+ "eval.tests.test_snip_mode.test_snip_level_256_run_below_threshold_passes[one]",
1041
+ "eval.tests.test_snip_mode.test_snip_level_256_run_below_threshold_passes[thirty_one]",
1042
+ "eval.tests.test_snip_mode.test_snip_level_256_run_below_threshold_passes[thirty_two]",
1043
+ "eval.tests.test_snip_mode.test_snip_level_zero_passes_all_complete_pairs",
1044
+ "eval.tests.test_snip_mode.test_snip_lone_center_pair_at_level_1_passes",
1045
+ "eval.tests.test_snip_mode.test_snip_loud_sample_resets_counter",
1046
+ "eval.tests.test_snip_mode.test_snip_multi_burst_resets_exact",
1047
+ "eval.tests.test_snip_mode.test_snip_negative_level_passthrough",
1048
+ "eval.tests.test_snip_mode.test_snip_nonnumeric_level_is_zero_passthrough",
1049
+ "eval.tests.test_snip_mode.test_snip_odd_final_byte_is_dropped",
1050
+ "eval.tests.test_snip_mode.test_snip_short_run_within_threshold_passes[1-127]",
1051
+ "eval.tests.test_snip_mode.test_snip_short_run_within_threshold_passes[100-100]",
1052
+ "eval.tests.test_snip_mode.test_snip_short_run_within_threshold_passes[50-100]",
1053
+ "eval.tests.test_snip_mode.test_snip_single_pair_passthrough",
1054
+ "eval.tests.test_snip_mode.test_snip_threshold_exactly_32_pairs_kept",
1055
+ "eval.tests.test_snip_mode.test_snip_two_center_bursts_separated_by_loud_pair"
1056
+ ]
1057
+ },
1058
+ "generated_module_04": {
1059
+ "ignore_reason": "",
1060
+ "ignored": false,
1061
+ "ignored_tests": [
1062
+ {
1063
+ "name": "eval.tests.test_debug_and_options.test_clean_frame_display_reports_crc_ok",
1064
+ "reasons": [
1065
+ {
1066
+ "id": "missing_fixture_assets",
1067
+ "message": "pytest test references fixture assets that are not packaged",
1068
+ "path": "eval/tests/test_debug_and_options.py",
1069
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1070
+ "severity": "error",
1071
+ "stage": "static_lint"
1072
+ }
1073
+ ]
1074
+ },
1075
+ {
1076
+ "name": "eval.tests.test_debug_and_options.test_debug_C_shows_good_crc_block_for_clean_df17",
1077
+ "reasons": [
1078
+ {
1079
+ "id": "missing_fixture_assets",
1080
+ "message": "pytest test references fixture assets that are not packaged",
1081
+ "path": "eval/tests/test_debug_and_options.py",
1082
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1083
+ "severity": "error",
1084
+ "stage": "static_lint"
1085
+ }
1086
+ ]
1087
+ },
1088
+ {
1089
+ "name": "eval.tests.test_debug_and_options.test_debug_D_reports_fixable_minus1_for_reply_frame",
1090
+ "reasons": [
1091
+ {
1092
+ "id": "missing_fixture_assets",
1093
+ "message": "pytest test references fixture assets that are not packaged",
1094
+ "path": "eval/tests/test_debug_and_options.py",
1095
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1096
+ "severity": "error",
1097
+ "stage": "static_lint"
1098
+ }
1099
+ ]
1100
+ },
1101
+ {
1102
+ "name": "eval.tests.test_debug_and_options.test_debug_D_shows_zero_error_block_for_clean_df17",
1103
+ "reasons": [
1104
+ {
1105
+ "id": "missing_fixture_assets",
1106
+ "message": "pytest test references fixture assets that are not packaged",
1107
+ "path": "eval/tests/test_debug_and_options.py",
1108
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1109
+ "severity": "error",
1110
+ "stage": "static_lint"
1111
+ }
1112
+ ]
1113
+ },
1114
+ {
1115
+ "name": "eval.tests.test_debug_and_options.test_debug_c_shows_bad_crc_block_for_df17",
1116
+ "reasons": [
1117
+ {
1118
+ "id": "missing_fixture_assets",
1119
+ "message": "pytest test references fixture assets that are not packaged",
1120
+ "path": "eval/tests/test_debug_and_options.py",
1121
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1122
+ "severity": "error",
1123
+ "stage": "static_lint"
1124
+ }
1125
+ ]
1126
+ },
1127
+ {
1128
+ "name": "eval.tests.test_debug_and_options.test_debug_j_writes_frames_js",
1129
+ "reasons": [
1130
+ {
1131
+ "id": "missing_fixture_assets",
1132
+ "message": "pytest test references fixture assets that are not packaged",
1133
+ "path": "eval/tests/test_debug_and_options.py",
1134
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1135
+ "severity": "error",
1136
+ "stage": "static_lint"
1137
+ }
1138
+ ]
1139
+ },
1140
+ {
1141
+ "name": "eval.tests.test_debug_and_options.test_multiple_debug_flags_are_all_accepted",
1142
+ "reasons": [
1143
+ {
1144
+ "id": "missing_fixture_assets",
1145
+ "message": "pytest test references fixture assets that are not packaged",
1146
+ "path": "eval/tests/test_debug_and_options.py",
1147
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1148
+ "severity": "error",
1149
+ "stage": "static_lint"
1150
+ }
1151
+ ]
1152
+ },
1153
+ {
1154
+ "name": "eval.tests.test_rich_decode.test_debug_cC_prefers_good_crc_block_on_clean_df17",
1155
+ "reasons": [
1156
+ {
1157
+ "id": "missing_fixture_assets",
1158
+ "message": "pytest test references fixture assets that are not packaged",
1159
+ "path": "eval/tests/test_rich_decode.py",
1160
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1161
+ "severity": "error",
1162
+ "stage": "static_lint"
1163
+ }
1164
+ ]
1165
+ },
1166
+ {
1167
+ "name": "eval.tests.test_rich_decode.test_debug_j_writes_rich_airborne_frames_js",
1168
+ "reasons": [
1169
+ {
1170
+ "id": "missing_fixture_assets",
1171
+ "message": "pytest test references fixture assets that are not packaged",
1172
+ "path": "eval/tests/test_rich_decode.py",
1173
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
1174
+ "severity": "error",
1175
+ "stage": "static_lint"
1176
+ }
1177
+ ]
1178
+ }
1179
+ ],
1180
+ "tests": [
1181
+ "eval.tests.test_debug_and_options.test_aggressive_two_bit_fix_restores_raw_bytes",
1182
+ "eval.tests.test_debug_and_options.test_clean_frame_display_reports_crc_ok",
1183
+ "eval.tests.test_debug_and_options.test_debug_C_shows_good_crc_block_for_clean_df17",
1184
+ "eval.tests.test_debug_and_options.test_debug_D_reports_fixable_minus1_for_reply_frame",
1185
+ "eval.tests.test_debug_and_options.test_debug_D_shows_zero_error_block_for_clean_df17",
1186
+ "eval.tests.test_debug_and_options.test_debug_c_shows_bad_crc_block_for_df17",
1187
+ "eval.tests.test_debug_and_options.test_debug_j_writes_frames_js",
1188
+ "eval.tests.test_debug_and_options.test_debug_p_shows_bad_preamble_pattern_on_noise",
1189
+ "eval.tests.test_debug_and_options.test_multiple_debug_flags_are_all_accepted",
1190
+ "eval.tests.test_debug_and_options.test_onlyaddr_with_no_crc_check_shows_reply_address",
1191
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[debug]",
1192
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[device-index]",
1193
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[freq]",
1194
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[gain]",
1195
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[net-http-port]",
1196
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[net-ri-port]",
1197
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[net-ro-port]",
1198
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[net-sbs-port]",
1199
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[ppm]",
1200
+ "eval.tests.test_debug_and_options.test_option_missing_value_is_rejected[snip]",
1201
+ "eval.tests.test_debug_and_options.test_snip_keeps_interleaved_quiet_run",
1202
+ "eval.tests.test_debug_and_options.test_snip_resets_quiet_after_high_sample",
1203
+ "eval.tests.test_debug_and_options.test_snip_threshold_excludes_equal_low_magnitude",
1204
+ "eval.tests.test_debug_and_options.test_two_bit_error_fixed_with_aggressive",
1205
+ "eval.tests.test_debug_and_options.test_two_bit_error_not_fixed_by_default",
1206
+ "eval.tests.test_debug_and_options.test_unknown_debug_flag_is_rejected",
1207
+ "eval.tests.test_ifile_samples.test_all_reply_types_counted_badcrc_and_hidden[df0:badcrc]",
1208
+ "eval.tests.test_ifile_samples.test_all_reply_types_counted_badcrc_and_hidden[df16:badcrc]",
1209
+ "eval.tests.test_ifile_samples.test_all_reply_types_counted_badcrc_and_hidden[df19:badcrc]",
1210
+ "eval.tests.test_ifile_samples.test_all_reply_types_counted_badcrc_and_hidden[df20:badcrc]",
1211
+ "eval.tests.test_ifile_samples.test_all_reply_types_counted_badcrc_and_hidden[df21:badcrc]",
1212
+ "eval.tests.test_ifile_samples.test_all_reply_types_counted_badcrc_and_hidden[df4:badcrc]",
1213
+ "eval.tests.test_ifile_samples.test_all_reply_types_counted_badcrc_and_hidden[df5:badcrc]",
1214
+ "eval.tests.test_ifile_samples.test_all_reply_types_exact_raw_under_no_crc_check[df0:rawline]",
1215
+ "eval.tests.test_ifile_samples.test_all_reply_types_exact_raw_under_no_crc_check[df16:rawline]",
1216
+ "eval.tests.test_ifile_samples.test_all_reply_types_exact_raw_under_no_crc_check[df19:rawline]",
1217
+ "eval.tests.test_ifile_samples.test_all_reply_types_exact_raw_under_no_crc_check[df20:rawline]",
1218
+ "eval.tests.test_ifile_samples.test_all_reply_types_exact_raw_under_no_crc_check[df21:rawline]",
1219
+ "eval.tests.test_ifile_samples.test_all_reply_types_exact_raw_under_no_crc_check[df4:rawline]",
1220
+ "eval.tests.test_ifile_samples.test_all_reply_types_exact_raw_under_no_crc_check[df5:rawline]",
1221
+ "eval.tests.test_ifile_samples.test_corrupt_fixed_message_raw_equals_original",
1222
+ "eval.tests.test_ifile_samples.test_df11_full_decode_display",
1223
+ "eval.tests.test_ifile_samples.test_df17_full_decode_display",
1224
+ "eval.tests.test_ifile_samples.test_df5_full_decode_shown_with_no_crc_check",
1225
+ "eval.tests.test_ifile_samples.test_empty_file_through_ifile",
1226
+ "eval.tests.test_ifile_samples.test_help_exits_zero_and_lists_ifile[--help]",
1227
+ "eval.tests.test_ifile_samples.test_help_mentions_read_data_from_file",
1228
+ "eval.tests.test_ifile_samples.test_ifile_missing_argument_is_rejected",
1229
+ "eval.tests.test_ifile_samples.test_large_burst_five_frames",
1230
+ "eval.tests.test_ifile_samples.test_loop_replays_file_on_stdout",
1231
+ "eval.tests.test_ifile_samples.test_mixed_default_raw_shows_only_good",
1232
+ "eval.tests.test_ifile_samples.test_mixed_good_and_bad_stats",
1233
+ "eval.tests.test_ifile_samples.test_mixed_no_crc_check_raw_shows_all",
1234
+ "eval.tests.test_ifile_samples.test_multiple_icaos_onlyaddr_in_order",
1235
+ "eval.tests.test_ifile_samples.test_multiple_icaos_stats_counts",
1236
+ "eval.tests.test_ifile_samples.test_no_crc_check_shows_bad_messages[df0:nocrc]",
1237
+ "eval.tests.test_ifile_samples.test_no_crc_check_shows_bad_messages[df20:nocrc]",
1238
+ "eval.tests.test_ifile_samples.test_no_crc_check_shows_bad_messages[df5:nocrc]",
1239
+ "eval.tests.test_ifile_samples.test_no_fix_disables_error_correction",
1240
+ "eval.tests.test_ifile_samples.test_nonexistent_ifile_reports_open_error_and_exits",
1241
+ "eval.tests.test_ifile_samples.test_pure_noise_file_has_no_valid_preamble",
1242
+ "eval.tests.test_ifile_samples.test_reply_message_counts_as_badcrc_not_displayed[df0:badcrc]",
1243
+ "eval.tests.test_ifile_samples.test_reply_message_counts_as_badcrc_not_displayed[df20:badcrc]",
1244
+ "eval.tests.test_ifile_samples.test_reply_message_counts_as_badcrc_not_displayed[df5:badcrc]",
1245
+ "eval.tests.test_ifile_samples.test_single_bit_error_is_corrected",
1246
+ "eval.tests.test_ifile_samples.test_snip_keeps_high_signal_sample",
1247
+ "eval.tests.test_ifile_samples.test_snip_strips_quiet_run_but_keeps_preamble",
1248
+ "eval.tests.test_ifile_samples.test_snip_zero_level_is_passthrough",
1249
+ "eval.tests.test_ifile_samples.test_stats_counts_are_integers",
1250
+ "eval.tests.test_ifile_samples.test_stats_mode_prints_no_message_lines",
1251
+ "eval.tests.test_ifile_samples.test_stdin_empty_gives_zero_stats",
1252
+ "eval.tests.test_ifile_samples.test_stdin_raw_output",
1253
+ "eval.tests.test_ifile_samples.test_stdin_reads_raw_iq_capture",
1254
+ "eval.tests.test_ifile_samples.test_truncated_frame_counts_badcrc_and_usable_zero",
1255
+ "eval.tests.test_ifile_samples.test_two_valid_frames_onlyaddr",
1256
+ "eval.tests.test_ifile_samples.test_two_valid_frames_raw_order",
1257
+ "eval.tests.test_ifile_samples.test_two_valid_frames_stats_counts",
1258
+ "eval.tests.test_ifile_samples.test_unknown_option_prints_error_and_usage_to_stderr",
1259
+ "eval.tests.test_ifile_samples.test_valid_message_onlyaddr_exact[df11:onlyaddr]",
1260
+ "eval.tests.test_ifile_samples.test_valid_message_onlyaddr_exact[df17:onlyaddr]",
1261
+ "eval.tests.test_ifile_samples.test_valid_message_onlyaddr_exact[df18:onlyaddr]",
1262
+ "eval.tests.test_ifile_samples.test_valid_message_raw_output_exact[df11:raw]",
1263
+ "eval.tests.test_ifile_samples.test_valid_message_raw_output_exact[df17:raw]",
1264
+ "eval.tests.test_ifile_samples.test_valid_message_raw_output_exact[df18:raw]",
1265
+ "eval.tests.test_ifile_samples.test_valid_message_stats_goodcrc_usable[df11]",
1266
+ "eval.tests.test_ifile_samples.test_valid_message_stats_goodcrc_usable[df17]",
1267
+ "eval.tests.test_ifile_samples.test_valid_message_stats_goodcrc_usable[df18]",
1268
+ "eval.tests.test_rich_decode.test_debug_cC_prefers_good_crc_block_on_clean_df17",
1269
+ "eval.tests.test_rich_decode.test_debug_j_writes_rich_airborne_frames_js",
1270
+ "eval.tests.test_rich_decode.test_ifile_directory_reads_as_empty_capture",
1271
+ "eval.tests.test_rich_decode.test_ifile_equals_syntax_is_rejected",
1272
+ "eval.tests.test_rich_decode.test_multi_rich_capture_onlyaddr_order",
1273
+ "eval.tests.test_rich_decode.test_multi_rich_capture_raw_order",
1274
+ "eval.tests.test_rich_decode.test_multi_rich_capture_stats",
1275
+ "eval.tests.test_rich_decode.test_noise_prefix_is_ignored_before_rich_frame",
1276
+ "eval.tests.test_rich_decode.test_receiver_options_are_accepted_alongside_ifile[device_index]",
1277
+ "eval.tests.test_rich_decode.test_receiver_options_are_accepted_alongside_ifile[enable_agc]",
1278
+ "eval.tests.test_rich_decode.test_receiver_options_are_accepted_alongside_ifile[freq]",
1279
+ "eval.tests.test_rich_decode.test_receiver_options_are_accepted_alongside_ifile[gain_auto]",
1280
+ "eval.tests.test_rich_decode.test_receiver_options_are_accepted_alongside_ifile[gain_positive]",
1281
+ "eval.tests.test_rich_decode.test_receiver_options_are_accepted_alongside_ifile[ppm]",
1282
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[airborne10000]",
1283
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[airborne11600]",
1284
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[airborne3000]",
1285
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[airborne500]",
1286
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[df18_tc11]",
1287
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[ident_n123abc]",
1288
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[ident_swa1234]",
1289
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[surface_10_0]",
1290
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[unrecognized_tc21]",
1291
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[velocity_0_0]",
1292
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[velocity_200_100]",
1293
+ "eval.tests.test_rich_decode.test_rich_frame_display_exact[velocity_heading_sub4]",
1294
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[airborne10000]",
1295
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[airborne11600]",
1296
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[airborne3000]",
1297
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[airborne500]",
1298
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[df18_tc11]",
1299
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[ident_n123abc]",
1300
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[ident_swa1234]",
1301
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[surface_10_0]",
1302
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[unrecognized_tc21]",
1303
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[velocity_0_0]",
1304
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[velocity_200_100]",
1305
+ "eval.tests.test_rich_decode.test_rich_frame_raw_line_exact[velocity_heading_sub4]",
1306
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[airborne10000]",
1307
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[airborne11600]",
1308
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[airborne3000]",
1309
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[airborne500]",
1310
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[df18_tc11]",
1311
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[ident_n123abc]",
1312
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[ident_swa1234]",
1313
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[surface_10_0]",
1314
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[unrecognized_tc21]",
1315
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[velocity_0_0]",
1316
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[velocity_200_100]",
1317
+ "eval.tests.test_rich_decode.test_rich_frame_stats_exact[velocity_heading_sub4]",
1318
+ "eval.tests.test_rich_decode.test_two_identical_rich_frames_raw_twice"
1319
+ ]
1320
+ }
1321
+ },
1322
+ "commit": "efe64db3c6ba1520291331628a33c1e208e851a6",
1323
+ "data_source": "synthetic_programgym",
1324
+ "difficulty": "easy",
1325
+ "difficulty_score": 1.5381965783494542,
1326
+ "eval_clean_hashes": [
1327
+ "b237781836918e24918bdc75d755d2be85cd9c9041491b7804352139e867dd00"
1328
+ ],
1329
+ "input_record": {
1330
+ "commit": "efe64db3c6ba1520291331628a33c1e208e851a6",
1331
+ "commits": 118,
1332
+ "contributors": 12,
1333
+ "difficulty": "easy",
1334
+ "difficulty_code_lines": 3453,
1335
+ "difficulty_has_tests": false,
1336
+ "difficulty_product_code_lines": 3453,
1337
+ "difficulty_runtime_deps": 0,
1338
+ "difficulty_score": 1.5381965783494542,
1339
+ "difficulty_test_code_lines": 0,
1340
+ "full_name": "antirez/dump1090",
1341
+ "github_stars": 2913,
1342
+ "input_joern_zip": "c_joern/antirez__dump1090.zip",
1343
+ "joern_status": true,
1344
+ "joern_time": 5.314150752965361,
1345
+ "language": "c",
1346
+ "pb_match": [
1347
+ {
1348
+ "pb_fullname": "jqlang/jq",
1349
+ "rank": 736,
1350
+ "similarity": 0.36451995372772217
1351
+ },
1352
+ {
1353
+ "pb_fullname": "doxygen/doxygen",
1354
+ "rank": 820,
1355
+ "similarity": 0.41693419218063354
1356
+ },
1357
+ {
1358
+ "pb_fullname": "samtools/samtools",
1359
+ "rank": 512,
1360
+ "similarity": 0.42326080799102783
1361
+ },
1362
+ {
1363
+ "pb_fullname": "FFmpeg/FFmpeg",
1364
+ "rank": 552,
1365
+ "similarity": 0.4868832230567932
1366
+ },
1367
+ {
1368
+ "pb_fullname": "robertdavidgraham/masscan",
1369
+ "rank": 814,
1370
+ "similarity": 0.4323575496673584
1371
+ },
1372
+ {
1373
+ "pb_fullname": "lh3/seqtk",
1374
+ "rank": 403,
1375
+ "similarity": 0.4088709056377411
1376
+ },
1377
+ {
1378
+ "pb_fullname": "chirlu/sox",
1379
+ "rank": 317,
1380
+ "similarity": 0.453732430934906
1381
+ },
1382
+ {
1383
+ "pb_fullname": "facebook/zstd",
1384
+ "rank": 543,
1385
+ "similarity": 0.4779285192489624
1386
+ }
1387
+ ],
1388
+ "repo_age": 13.58,
1389
+ "repo_path": "c/antirez__dump1090",
1390
+ "source": "commit:efe64db3c6ba1520291331628a33c1e208e851a6",
1391
+ "status": "done",
1392
+ "url": "https://github.com/antirez/dump1090"
1393
+ },
1394
+ "instance_id": "antirez__dump1090.efe64db",
1395
+ "language": "c",
1396
+ "module_iterations": [
1397
+ {
1398
+ "actual_iterations": 5,
1399
+ "branch_name": "generated_module_01",
1400
+ "iteration_limit": 5,
1401
+ "module_index": 1,
1402
+ "module_kind": "source",
1403
+ "termination_reason": "max_iterations"
1404
+ },
1405
+ {
1406
+ "actual_iterations": 5,
1407
+ "branch_name": "generated_module_02",
1408
+ "iteration_limit": 5,
1409
+ "module_index": 2,
1410
+ "module_kind": "source",
1411
+ "termination_reason": "max_iterations"
1412
+ },
1413
+ {
1414
+ "actual_iterations": 5,
1415
+ "branch_name": "generated_module_03",
1416
+ "iteration_limit": 5,
1417
+ "module_index": 3,
1418
+ "module_kind": "source",
1419
+ "termination_reason": "early_stopping"
1420
+ },
1421
+ {
1422
+ "actual_iterations": 5,
1423
+ "branch_name": "generated_module_04",
1424
+ "iteration_limit": 5,
1425
+ "module_index": 4,
1426
+ "module_kind": "source",
1427
+ "termination_reason": "early_stopping"
1428
+ }
1429
+ ],
1430
+ "repository": "antirez/dump1090"
1431
+ }
antirez--dump1090.efe64db/tests/test.sh ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
5
+ export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
6
+
7
+ mkdir -p /logs/verifier /logs/artifacts
8
+
9
+ write_failure() {
10
+ local code="$1"
11
+ local details="$2"
12
+ python3 - "$code" "$details" <<'PY'
13
+ import json
14
+ import sys
15
+ from pathlib import Path
16
+
17
+ code, details = sys.argv[1:3]
18
+ try:
19
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
20
+ n_tests = sum(
21
+ len([
22
+ name for name in info.get("tests", [])
23
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
24
+ ])
25
+ for branch, info in metadata.get("branches", {}).items()
26
+ if not info.get("ignored")
27
+ )
28
+ except Exception:
29
+ n_tests = 0
30
+ result = {
31
+ "test_results": [],
32
+ "error_code": code,
33
+ "error_details": details,
34
+ "log": [],
35
+ "solution_branch": "submission",
36
+ "test_branches": [],
37
+ "test_branch_errors": {
38
+ "__infra__": [{"error_code": code, "error_details": details}]
39
+ },
40
+ "executable_hash": None,
41
+ "warnings": [],
42
+ }
43
+ diagnostics = {
44
+ "pass_rate": 0.0,
45
+ "resolved": 0,
46
+ "n_passed": 0,
47
+ "n_tests": n_tests,
48
+ "n_branch_errors": 1,
49
+ "infra_error": 1,
50
+ "executable_hash_present": 0,
51
+ }
52
+ Path("/logs/verifier/programgym_eval.json").write_text(
53
+ json.dumps(result, indent=2, sort_keys=True)
54
+ )
55
+ Path("/logs/verifier/harbor_diagnostics.json").write_text(
56
+ json.dumps(diagnostics, indent=2, sort_keys=True)
57
+ )
58
+ Path("/logs/verifier/reward.json").write_text(
59
+ json.dumps(
60
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
61
+ indent=2,
62
+ sort_keys=True,
63
+ )
64
+ )
65
+ Path("/logs/verifier/reward.txt").write_text("0.0")
66
+ Path("/logs/verifier/programgym_eval.log").write_text(details)
67
+ PY
68
+ }
69
+
70
+ if ! command -v python3 >/dev/null 2>&1; then
71
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
72
+ exit 0
73
+ fi
74
+
75
+ if ! python3 /tests/programgym_evaluator.py; then
76
+ if [ ! -s /logs/verifier/reward.txt ]; then
77
+ write_failure "evaluator_crashed" \
78
+ "programgym_evaluator.py exited non-zero with no reward written"
79
+ fi
80
+ fi
81
+
82
+ exit 0
antirez--dump1090.efe64db/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf599d1dfbbccae8e6e831dd371c64b9ca95cf3778c47f2a88dc7cad55dc3a8c
3
+ size 488493
antirez--linenoise.a473823/environment/Dockerfile CHANGED
@@ -54,3 +54,4 @@ RUN mkdir -p /home/agent \
54
  && chmod 111 /workspace/executable
55
  ENV HOME=/home/agent
56
  WORKDIR /workspace
 
 
54
  && chmod 111 /workspace/executable
55
  ENV HOME=/home/agent
56
  WORKDIR /workspace
57
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
antirez--linenoise.a473823/tests/Dockerfile CHANGED
@@ -68,3 +68,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
68
  COPY programgym_task.json /tests/programgym_task.json
69
  COPY blobs/ /tests/blobs/
70
  RUN chmod +x /tests/test.sh
 
 
68
  COPY programgym_task.json /tests/programgym_task.json
69
  COPY blobs/ /tests/blobs/
70
  RUN chmod +x /tests/test.sh
71
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
antirez--qwen-asr.b00b789/environment/Dockerfile ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV PAGER=cat
57
+ ENV MANPAGER=cat
58
+ ENV LESS=-R
59
+ ENV TQDM_DISABLE=1
60
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
61
+ ARG CMAKE_VERSION=3.31.10
62
+ RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
63
+ # programgym_quota_aware_nproc=1
64
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
65
+ WORKDIR /workspace
66
+ ADD workspace.tar.gz /workspace/
67
+ COPY executable /workspace/executable
68
+ COPY download.sh /workspace/download.sh
69
+ RUN chmod 755 /workspace/download.sh
70
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
71
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
72
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
73
+ && rm -f /workspace/download.sh \
74
+ && rm -f /tmp/harbor_prepare_download_env.sh
75
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
76
+ RUN chmod 111 /workspace/executable
77
+ WORKDIR /workspace
78
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
79
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
80
+ # submission handed to the separate verifier. Keep the reference executable
81
+ # execute-only; the oracle temporarily restores owner read permission.
82
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
83
+ RUN mkdir -p /home/agent \
84
+ && chown -R agent:agent /home/agent /workspace \
85
+ && chown agent:agent /workspace/executable \
86
+ && chmod 111 /workspace/executable
87
+ ENV HOME=/home/agent
88
+ WORKDIR /workspace
89
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
antirez--qwen-asr.b00b789/environment/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
antirez--qwen-asr.b00b789/environment/download.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh — ProgramGym network/download stage for antirez/qwen-asr.
3
+ #
4
+ # This script ONLY provisions dependencies and sets up the environment for the
5
+ # offline build stage. It does NOT compile, link, test, or package anything.
6
+ # It is sourced (never executed) from the repository root: `source download.sh`.
7
+ #
8
+ # The qwen_asr product (C inference engine) is built with `make blas`, which
9
+ # enables the OpenBLAS backend (-DUSE_BLAS -DUSE_OPENBLAS -lopenblas) and needs
10
+ # the OpenBLAS development headers as well as the shared library at run time.
11
+ # Everything needed by the build is therefore provided here explicitly.
12
+ #
13
+ # Properties:
14
+ # - standalone: does not read any repository file (source tree is not mounted
15
+ # during this stage anyway).
16
+ # - idempotent: apt-get leaves already-installed packages untouched.
17
+ # - source-safe: uses export and explicit branches, no bare `exit`.
18
+
19
+ set -e
20
+
21
+ echo "[download.sh] Provisioning dependencies for qwen_asr (OpenBLAS backend)..."
22
+
23
+ export DEBIAN_FRONTEND=noninteractive
24
+
25
+ # apt-get install is idempotent: already-installed packages are simply kept.
26
+ # libopenblas0 provides libopenblas.so (needed by ./executable at run time) and
27
+ # libopenblas-dev provides the OpenBLAS headers used by the Makefile blas
28
+ # backend (-I/usr/include/openblas).
29
+ echo "[download.sh] Installing OpenBLAS runtime and dev packages..."
30
+ apt-get update
31
+ apt-get install -y libopenblas0 libopenblas-dev
32
+ echo "[download.sh] Installed libopenblas-dev / libopenblas0."
33
+
34
+ # Export the include path expected by the Makefile blas backend
35
+ # (-I/usr/include/openblas). build.sh and the build rely on this.
36
+ export OPENBLAS_INCLUDE_DIR=/usr/include/openblas
37
+
38
+ echo "[download.sh] Dependency provisioning complete."
antirez--qwen-asr.b00b789/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:059734ccee2762e8294d2de7c0f72b6b8355594458e2d771d895f523425a5e22
3
+ size 162472