Marquis03 commited on
Commit
3dea8c2
·
verified ·
1 Parent(s): 1825314

commit (part 107)

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 +4 -0
  2. rubengooj--stvo-pl.baecb5f/tests/Dockerfile +1 -0
  3. rubiojr--awesome-restic.ef61f3c/environment/Dockerfile +1 -0
  4. rubiojr--awesome-restic.ef61f3c/tests/Dockerfile +1 -0
  5. rust-cli--confy.b5319f6/environment/Dockerfile +1 -0
  6. rust-cli--confy.b5319f6/tests/Dockerfile +1 -0
  7. rust-db--refinery.bc1a829/environment/Dockerfile +1 -0
  8. rust-db--refinery.bc1a829/tests/Dockerfile +1 -0
  9. rust-github--template.daf20b3/environment/Dockerfile +1 -0
  10. rust-github--template.daf20b3/tests/Dockerfile +1 -0
  11. rust-ml--book.a7e764b/environment/Dockerfile +1 -0
  12. rust-ml--book.a7e764b/tests/Dockerfile +1 -0
  13. rust-scraper--scraper.07e485f/environment/Dockerfile +1 -0
  14. rust-scraper--scraper.07e485f/tests/Dockerfile +1 -0
  15. rustaudio--dsp-chain.b9838d0/environment/Dockerfile +93 -0
  16. rustaudio--dsp-chain.b9838d0/environment/docker-compose.yaml +22 -0
  17. rustaudio--dsp-chain.b9838d0/environment/download.sh +76 -0
  18. rustaudio--dsp-chain.b9838d0/environment/executable +3 -0
  19. rustaudio--dsp-chain.b9838d0/environment/harbor_configure_apt_mirror.sh +37 -0
  20. rustaudio--dsp-chain.b9838d0/environment/harbor_configure_java_mirrors.sh +50 -0
  21. rustaudio--dsp-chain.b9838d0/environment/harbor_prepare_download_env.sh +47 -0
  22. rustaudio--dsp-chain.b9838d0/environment/workspace.tar.gz +3 -0
  23. rustaudio--dsp-chain.b9838d0/instruction.md +98 -0
  24. rustaudio--dsp-chain.b9838d0/solution/solve.sh +33 -0
  25. rustaudio--dsp-chain.b9838d0/task.toml +69 -0
  26. rustaudio--dsp-chain.b9838d0/tests/Dockerfile +107 -0
  27. rustaudio--dsp-chain.b9838d0/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  28. rustaudio--dsp-chain.b9838d0/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  29. rustaudio--dsp-chain.b9838d0/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  30. rustaudio--dsp-chain.b9838d0/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  31. rustaudio--dsp-chain.b9838d0/tests/docker-compose.yaml +22 -0
  32. rustaudio--dsp-chain.b9838d0/tests/download.sh +76 -0
  33. rustaudio--dsp-chain.b9838d0/tests/executable +3 -0
  34. rustaudio--dsp-chain.b9838d0/tests/harbor_configure_apt_mirror.sh +37 -0
  35. rustaudio--dsp-chain.b9838d0/tests/harbor_configure_java_mirrors.sh +50 -0
  36. rustaudio--dsp-chain.b9838d0/tests/harbor_prepare_download_env.sh +47 -0
  37. rustaudio--dsp-chain.b9838d0/tests/programgym_evaluator.py +1201 -0
  38. rustaudio--dsp-chain.b9838d0/tests/programgym_task.json +848 -0
  39. rustaudio--dsp-chain.b9838d0/tests/test.sh +82 -0
  40. rustaudio--dsp-chain.b9838d0/tests/workspace.tar.gz +3 -0
  41. rustaudio--vst3-sys.f3e8f01/environment/Dockerfile +1 -0
  42. rustaudio--vst3-sys.f3e8f01/tests/Dockerfile +1 -0
  43. rusticstuff--simdutf8.641d57f/environment/Dockerfile +1 -0
  44. rusticstuff--simdutf8.641d57f/tests/Dockerfile +1 -0
  45. rustls--rustls-native-certs.c13fbd6/environment/Dockerfile +60 -0
  46. rustls--rustls-native-certs.c13fbd6/environment/download.sh +1242 -0
  47. rustls--rustls-native-certs.c13fbd6/environment/executable +3 -0
  48. rustls--rustls-native-certs.c13fbd6/environment/harbor_prepare_download_env.sh +37 -0
  49. rustls--rustls-native-certs.c13fbd6/environment/workspace.tar.gz +3 -0
  50. rustls--rustls-native-certs.c13fbd6/instruction.md +98 -0
.gitattributes CHANGED
@@ -3616,3 +3616,7 @@ rsasaki0109--li_slam_ros2.6f44808/environment/executable filter=lfs diff=lfs mer
3616
  rsasaki0109--li_slam_ros2.6f44808/tests/executable filter=lfs diff=lfs merge=lfs -text
3617
  rub-nds--terrapin-scanner.e50b408/environment/executable filter=lfs diff=lfs merge=lfs -text
3618
  rub-nds--terrapin-scanner.e50b408/tests/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
3616
  rsasaki0109--li_slam_ros2.6f44808/tests/executable filter=lfs diff=lfs merge=lfs -text
3617
  rub-nds--terrapin-scanner.e50b408/environment/executable filter=lfs diff=lfs merge=lfs -text
3618
  rub-nds--terrapin-scanner.e50b408/tests/executable filter=lfs diff=lfs merge=lfs -text
3619
+ rustaudio--dsp-chain.b9838d0/environment/executable filter=lfs diff=lfs merge=lfs -text
3620
+ rustaudio--dsp-chain.b9838d0/tests/executable filter=lfs diff=lfs merge=lfs -text
3621
+ rustls--rustls-native-certs.c13fbd6/environment/executable filter=lfs diff=lfs merge=lfs -text
3622
+ rustls--rustls-native-certs.c13fbd6/tests/executable filter=lfs diff=lfs merge=lfs -text
rubengooj--stvo-pl.baecb5f/tests/Dockerfile CHANGED
@@ -70,3 +70,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
70
  COPY programgym_task.json /tests/programgym_task.json
71
  COPY blobs/ /tests/blobs/
72
  RUN chmod +x /tests/test.sh
 
 
70
  COPY programgym_task.json /tests/programgym_task.json
71
  COPY blobs/ /tests/blobs/
72
  RUN chmod +x /tests/test.sh
73
+ 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"]
rubiojr--awesome-restic.ef61f3c/environment/Dockerfile CHANGED
@@ -58,3 +58,4 @@ RUN mkdir -p /home/agent \
58
  && chmod 111 /workspace/executable
59
  ENV HOME=/home/agent
60
  WORKDIR /workspace
 
 
58
  && chmod 111 /workspace/executable
59
  ENV HOME=/home/agent
60
  WORKDIR /workspace
61
+ 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"]
rubiojr--awesome-restic.ef61f3c/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rust-cli--confy.b5319f6/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ 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"]
rust-cli--confy.b5319f6/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rust-db--refinery.bc1a829/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ 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"]
rust-db--refinery.bc1a829/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rust-github--template.daf20b3/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ 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"]
rust-github--template.daf20b3/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rust-ml--book.a7e764b/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ 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"]
rust-ml--book.a7e764b/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rust-scraper--scraper.07e485f/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ 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"]
rust-scraper--scraper.07e485f/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rustaudio--dsp-chain.b9838d0/environment/Dockerfile ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
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 CARGO_HOME=/usr/local/cargo
57
+ ENV RUSTUP_HOME=/usr/local/rustup
58
+ ENV RUSTUP_TOOLCHAIN=1.97.1
59
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
60
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
61
+ ENV PAGER=cat
62
+ ENV MANPAGER=cat
63
+ ENV LESS=-R
64
+ ENV TQDM_DISABLE=1
65
+ 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/*
66
+ RUN set -eux; for attempt in 1 2 3 4 5; do rustup component add llvm-tools-preview --toolchain 1.97.1 && break; [ "$attempt" -lt 5 ] || exit 1; sleep $((attempt * 2)); done
67
+ 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"
68
+ RUN rustc --version && cargo --version && rustup show active-toolchain
69
+ WORKDIR /workspace
70
+ ADD workspace.tar.gz /workspace/
71
+ COPY executable /workspace/executable
72
+ COPY download.sh /tmp/programgym-download.sh
73
+ RUN chmod 755 /tmp/programgym-download.sh
74
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
75
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
76
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
77
+ && rm -f /tmp/programgym-download.sh \
78
+ && rm -f /tmp/harbor_prepare_download_env.sh
79
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
80
+ RUN chmod 111 /workspace/executable
81
+ WORKDIR /workspace
82
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
83
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
84
+ # submission handed to the separate verifier. Keep the reference executable
85
+ # execute-only; the oracle temporarily restores owner read permission.
86
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
87
+ RUN mkdir -p /home/agent \
88
+ && chown -R agent:agent /home/agent /workspace \
89
+ && chown agent:agent /workspace/executable \
90
+ && chmod 111 /workspace/executable
91
+ ENV HOME=/home/agent
92
+ WORKDIR /workspace
93
+ 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"]
rustaudio--dsp-chain.b9838d0/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}
rustaudio--dsp-chain.b9838d0/environment/download.sh ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh - ProgramGym dependency prefetch for RustAudio/dsp-chain.
3
+ #
4
+ # This is a standalone, source-safe dependency/download stage ONLY. It does not
5
+ # compile, link, test, package, or install any built artifact. It is meant to be
6
+ # run via `source /source_ro/download.sh` inside the networked container, then the
7
+ # repository is copied to an offline workspace where build.sh compiles the selected
8
+ # `synth` example target.
9
+ #
10
+ # It performs two tasks:
11
+ # 1. Install the native PortAudio library the examples link against.
12
+ # dsp-chain's `portaudio` dev-dependency (0.6.4) resolves PortAudio via
13
+ # pkg-config at build time and only falls back to downloading the PortAudio
14
+ # source tarball when no system library is found. Installing the Debian
15
+ # development package up front guarantees pkg-config finds `portaudio-2.0`
16
+ # (>= v19) so the offline build needs no network.
17
+ # 2. Prefetch every Cargo dependency (including dev-dependencies) into the
18
+ # local cargo registry cache using an inline-generated manifest.
19
+
20
+ # ---- Install the native PortAudio development library so pkg-config resolves it.
21
+ apt-get update
22
+ if apt-get install -y portaudio19-dev libportaudio2; then
23
+ :
24
+ else
25
+ echo "download.sh: failed to install system PortAudio packages" >&2
26
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
27
+ return 1
28
+ else
29
+ exit 1
30
+ fi
31
+ fi
32
+
33
+ # ---- Prefetch Cargo dependencies with an inline-generated manifest.
34
+ # Built-in echo of the crate name so there is no dependency on any repository file.
35
+ FETCH_DIR=$(mktemp -d)
36
+ mkdir -p "$FETCH_DIR/src"
37
+
38
+ # The manifest mirrors dsp-chain 0.13.1's Cargo.toml: dependencies daggy / dasp,
39
+ # plus the portaudio dev-dependency required by the synth example.
40
+ cat > "$FETCH_DIR/Cargo.toml" <<'EOF'
41
+ [package]
42
+ name = "dsp-chain-fetch"
43
+ version = "0.0.0"
44
+ edition = "2018"
45
+
46
+ [dependencies]
47
+ daggy = "0.4.0"
48
+ dasp = { version = "0.11.0", features = ["slice", "interpolate", "signal"] }
49
+
50
+ [dev-dependencies]
51
+ portaudio = "0.6.4"
52
+ EOF
53
+
54
+ # An empty lib stub so the generated manifest has a valid buildable shape.
55
+ # cargo fetch only downloads crates in the dependency graph; it never compiles it.
56
+ : > "$FETCH_DIR/src/lib.rs"
57
+
58
+ if cargo fetch --manifest-path "$FETCH_DIR/Cargo.toml"; then
59
+ :
60
+ else
61
+ echo "download.sh: cargo dependency prefetch failed" >&2
62
+ rm -rf "$FETCH_DIR"
63
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
64
+ return 1
65
+ else
66
+ exit 1
67
+ fi
68
+ fi
69
+
70
+ # Clean up the temporary prefetch manifest; the registry cache persists.
71
+ rm -rf "$FETCH_DIR"
72
+
73
+ echo "download.sh: dependencies prefetched (apt PortAudio + cargo registry)."
74
+
75
+ # build.sh resolves the system-installed PortAudio via pkg-config automatically, so
76
+ # no additional environment variables need to be exported here.
rustaudio--dsp-chain.b9838d0/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fac1d8aece5dab7fc240821e9783d1b1cbf6353a0be5e68bffde6ae3fc4cea3d
3
+ size 471440
rustaudio--dsp-chain.b9838d0/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
rustaudio--dsp-chain.b9838d0/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
rustaudio--dsp-chain.b9838d0/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
9
+ 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" /tmp/programgym-download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
12
+ 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" /tmp/programgym-download.sh
13
+ fi
14
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
15
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /tmp/programgym-download.sh
16
+ fi
17
+ source /tmp/programgym-download.sh
18
+ set +a
19
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
20
+ import os
21
+ import shlex
22
+
23
+ ignored = {
24
+ "ALL_PROXY",
25
+ "HTTP_PROXY",
26
+ "HTTPS_PROXY",
27
+ "NO_PROXY",
28
+ "OLDPWD",
29
+ "PIP_PROXY",
30
+ "PWD",
31
+ "SHLVL",
32
+ "_",
33
+ "all_proxy",
34
+ "http_proxy",
35
+ "https_proxy",
36
+ "no_proxy",
37
+ "pip_proxy",
38
+ }
39
+ for key in sorted(os.environ):
40
+ if key in ignored or key.startswith("BASH_FUNC_"):
41
+ continue
42
+ value = os.environ[key]
43
+ if "\n" in value:
44
+ continue
45
+ print(f"export {key}={shlex.quote(value)}")
46
+ PY
47
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
rustaudio--dsp-chain.b9838d0/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e993b56833a5c06ebc19e5e3260b2bee3fda5aa15dac712178bb466a4314e14
3
+ size 1118
rustaudio--dsp-chain.b9838d0/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
rustaudio--dsp-chain.b9838d0/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
rustaudio--dsp-chain.b9838d0/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/rustaudio--dsp-chain.b9838d0"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for RustAudio/dsp-chain"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "RustAudio__dsp-chain.b9838d0"
32
+ repository = "RustAudio/dsp-chain"
33
+ commit = "b9838d078adedf4cfdfd2ae06e14972797d0ee87"
34
+ language = "rust"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.4323277922616042
37
+ test_branches = 4
38
+ test_count = 552
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"
rustaudio--dsp-chain.b9838d0/tests/Dockerfile ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
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 CARGO_HOME=/usr/local/cargo
57
+ ENV RUSTUP_HOME=/usr/local/rustup
58
+ ENV RUSTUP_TOOLCHAIN=1.97.1
59
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
60
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
61
+ ENV PAGER=cat
62
+ ENV MANPAGER=cat
63
+ ENV LESS=-R
64
+ ENV TQDM_DISABLE=1
65
+ 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/*
66
+ RUN set -eux; for attempt in 1 2 3 4 5; do rustup component add llvm-tools-preview --toolchain 1.97.1 && break; [ "$attempt" -lt 5 ] || exit 1; sleep $((attempt * 2)); done
67
+ 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"
68
+ RUN rustc --version && cargo --version && rustup show active-toolchain
69
+ WORKDIR /workspace
70
+ ADD workspace.tar.gz /workspace/
71
+ COPY executable /workspace/executable
72
+ COPY download.sh /tmp/programgym-download.sh
73
+ RUN chmod 755 /tmp/programgym-download.sh
74
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
75
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
76
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
77
+ && rm -f /tmp/programgym-download.sh \
78
+ && rm -f /tmp/harbor_prepare_download_env.sh
79
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
80
+ RUN chmod 111 /workspace/executable
81
+ WORKDIR /workspace
82
+ # Harbor uses tests/ as the separate verifier build context. Start with the
83
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
84
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
85
+ && mkdir -p /workspace /tests
86
+
87
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
88
+ # Installing a newer pytest alone leaves that apt package importable and creates
89
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
90
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
91
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
92
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
93
+ RUN set -eu; \
94
+ pip_break_system_packages=""; \
95
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
96
+ pip_break_system_packages="--break-system-packages"; \
97
+ fi; \
98
+ python3 -m pip install ${pip_break_system_packages} \
99
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
100
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
101
+
102
+ COPY test.sh /tests/test.sh
103
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
104
+ COPY programgym_task.json /tests/programgym_task.json
105
+ COPY blobs/ /tests/blobs/
106
+ RUN chmod +x /tests/test.sh
107
+ 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"]
rustaudio--dsp-chain.b9838d0/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:9d519e3c8a19d5a3eea63a0e036fa661ef6442eb40d755294859b70f23480be7
3
+ size 18243
rustaudio--dsp-chain.b9838d0/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:31b54a631b8d0038a6f576b1c569ee0fc1e87be288b5d2a397aece389162bdf6
3
+ size 11971
rustaudio--dsp-chain.b9838d0/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:a08cf1390c2c89fbf861e11796518b0cdc3c04578408d5787151f5914345060e
3
+ size 27384
rustaudio--dsp-chain.b9838d0/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:d3f816046a31201d005b5eaacecab080b18b134eab0a92ab9dc97e9bc0856c43
3
+ size 21175
rustaudio--dsp-chain.b9838d0/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}
rustaudio--dsp-chain.b9838d0/tests/download.sh ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh - ProgramGym dependency prefetch for RustAudio/dsp-chain.
3
+ #
4
+ # This is a standalone, source-safe dependency/download stage ONLY. It does not
5
+ # compile, link, test, package, or install any built artifact. It is meant to be
6
+ # run via `source /source_ro/download.sh` inside the networked container, then the
7
+ # repository is copied to an offline workspace where build.sh compiles the selected
8
+ # `synth` example target.
9
+ #
10
+ # It performs two tasks:
11
+ # 1. Install the native PortAudio library the examples link against.
12
+ # dsp-chain's `portaudio` dev-dependency (0.6.4) resolves PortAudio via
13
+ # pkg-config at build time and only falls back to downloading the PortAudio
14
+ # source tarball when no system library is found. Installing the Debian
15
+ # development package up front guarantees pkg-config finds `portaudio-2.0`
16
+ # (>= v19) so the offline build needs no network.
17
+ # 2. Prefetch every Cargo dependency (including dev-dependencies) into the
18
+ # local cargo registry cache using an inline-generated manifest.
19
+
20
+ # ---- Install the native PortAudio development library so pkg-config resolves it.
21
+ apt-get update
22
+ if apt-get install -y portaudio19-dev libportaudio2; then
23
+ :
24
+ else
25
+ echo "download.sh: failed to install system PortAudio packages" >&2
26
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
27
+ return 1
28
+ else
29
+ exit 1
30
+ fi
31
+ fi
32
+
33
+ # ---- Prefetch Cargo dependencies with an inline-generated manifest.
34
+ # Built-in echo of the crate name so there is no dependency on any repository file.
35
+ FETCH_DIR=$(mktemp -d)
36
+ mkdir -p "$FETCH_DIR/src"
37
+
38
+ # The manifest mirrors dsp-chain 0.13.1's Cargo.toml: dependencies daggy / dasp,
39
+ # plus the portaudio dev-dependency required by the synth example.
40
+ cat > "$FETCH_DIR/Cargo.toml" <<'EOF'
41
+ [package]
42
+ name = "dsp-chain-fetch"
43
+ version = "0.0.0"
44
+ edition = "2018"
45
+
46
+ [dependencies]
47
+ daggy = "0.4.0"
48
+ dasp = { version = "0.11.0", features = ["slice", "interpolate", "signal"] }
49
+
50
+ [dev-dependencies]
51
+ portaudio = "0.6.4"
52
+ EOF
53
+
54
+ # An empty lib stub so the generated manifest has a valid buildable shape.
55
+ # cargo fetch only downloads crates in the dependency graph; it never compiles it.
56
+ : > "$FETCH_DIR/src/lib.rs"
57
+
58
+ if cargo fetch --manifest-path "$FETCH_DIR/Cargo.toml"; then
59
+ :
60
+ else
61
+ echo "download.sh: cargo dependency prefetch failed" >&2
62
+ rm -rf "$FETCH_DIR"
63
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
64
+ return 1
65
+ else
66
+ exit 1
67
+ fi
68
+ fi
69
+
70
+ # Clean up the temporary prefetch manifest; the registry cache persists.
71
+ rm -rf "$FETCH_DIR"
72
+
73
+ echo "download.sh: dependencies prefetched (apt PortAudio + cargo registry)."
74
+
75
+ # build.sh resolves the system-installed PortAudio via pkg-config automatically, so
76
+ # no additional environment variables need to be exported here.
rustaudio--dsp-chain.b9838d0/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fac1d8aece5dab7fc240821e9783d1b1cbf6353a0be5e68bffde6ae3fc4cea3d
3
+ size 471440
rustaudio--dsp-chain.b9838d0/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
rustaudio--dsp-chain.b9838d0/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
rustaudio--dsp-chain.b9838d0/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
9
+ 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" /tmp/programgym-download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
12
+ 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" /tmp/programgym-download.sh
13
+ fi
14
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
15
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /tmp/programgym-download.sh
16
+ fi
17
+ source /tmp/programgym-download.sh
18
+ set +a
19
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
20
+ import os
21
+ import shlex
22
+
23
+ ignored = {
24
+ "ALL_PROXY",
25
+ "HTTP_PROXY",
26
+ "HTTPS_PROXY",
27
+ "NO_PROXY",
28
+ "OLDPWD",
29
+ "PIP_PROXY",
30
+ "PWD",
31
+ "SHLVL",
32
+ "_",
33
+ "all_proxy",
34
+ "http_proxy",
35
+ "https_proxy",
36
+ "no_proxy",
37
+ "pip_proxy",
38
+ }
39
+ for key in sorted(os.environ):
40
+ if key in ignored or key.startswith("BASH_FUNC_"):
41
+ continue
42
+ value = os.environ[key]
43
+ if "\n" in value:
44
+ continue
45
+ print(f"export {key}={shlex.quote(value)}")
46
+ PY
47
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
rustaudio--dsp-chain.b9838d0/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()
rustaudio--dsp-chain.b9838d0/tests/programgym_task.json ADDED
@@ -0,0 +1,848 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [
7
+ {
8
+ "name": "eval.tests.test_synth_stderr_full_golden.test_backtrace_frames_embedded_in_full_stderr_golden",
9
+ "reasons": [
10
+ {
11
+ "detail": "empty executable run failed as expected with returncode=1",
12
+ "id": "dummy_pass",
13
+ "message": "test passed against the empty executable",
14
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
15
+ "severity": "error",
16
+ "stage": "dummy_execution"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "name": "eval.tests.test_synth_stderr_full_golden.test_default_stderr_golden_ends_with_guidance_note",
22
+ "reasons": [
23
+ {
24
+ "detail": "empty executable run failed as expected with returncode=1",
25
+ "id": "dummy_pass",
26
+ "message": "test passed against the empty executable",
27
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
28
+ "severity": "error",
29
+ "stage": "dummy_execution"
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "name": "eval.tests.test_synth_stderr_full_golden.test_stderr_golden_probe_prefix_matches_probe_fixture",
35
+ "reasons": [
36
+ {
37
+ "detail": "empty executable run failed as expected with returncode=1",
38
+ "id": "dummy_pass",
39
+ "message": "test passed against the empty executable",
40
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
41
+ "severity": "error",
42
+ "stage": "dummy_execution"
43
+ }
44
+ ]
45
+ }
46
+ ],
47
+ "tests": [
48
+ "eval.tests.test_executable_identity.test_binary_live_output_is_byte_identical_to_golden_fixture_on_disk",
49
+ "eval.tests.test_executable_identity.test_executable_is_a_real_elf_binary_and_produces_cycle_output",
50
+ "eval.tests.test_executable_identity.test_executable_is_a_regular_file_that_is_executable_and_runs",
51
+ "eval.tests.test_executable_identity.test_golden_fixture_is_present_and_matches_binary_output",
52
+ "eval.tests.test_synth_backtrace_surface.test_backtrace_block_header_present_under_backtrace_1",
53
+ "eval.tests.test_synth_backtrace_surface.test_backtrace_short_form_ordered_frames_match_golden",
54
+ "eval.tests.test_synth_backtrace_surface.test_backtrace_short_omit_note_exact_under_backtrace_1",
55
+ "eval.tests.test_synth_backtrace_surface.test_default_backtrace_has_no_frame_dump_and_short_guidance_only",
56
+ "eval.tests.test_synth_backtrace_surface.test_exit_code_101_across_all_backtrace_verbosities",
57
+ "eval.tests.test_synth_backtrace_surface.test_full_backtrace_omits_short_omit_note",
58
+ "eval.tests.test_synth_backtrace_surface.test_full_backtrace_prints_full_frame_dump",
59
+ "eval.tests.test_synth_backtrace_surface.test_panic_header_and_message_present_under_backtrace_1",
60
+ "eval.tests.test_synth_backtrace_surface.test_panic_header_and_message_present_under_backtrace_full",
61
+ "eval.tests.test_synth_cwd_isolation.test_no_output_files_created_in_cwd",
62
+ "eval.tests.test_synth_cwd_isolation.test_repeated_runs_from_same_cwd_are_stable",
63
+ "eval.tests.test_synth_cwd_isolation.test_stdout_identical_from_deep_isolated_tree",
64
+ "eval.tests.test_synth_cwd_isolation.test_stdout_identical_when_run_from_isolated_tmp_path",
65
+ "eval.tests.test_synth_determinism.test_output_is_deterministic_across_repeated_runs",
66
+ "eval.tests.test_synth_determinism.test_process_terminates_promptly_with_expected_output",
67
+ "eval.tests.test_synth_determinism.test_stdout_identical_under_rust_backtrace_1",
68
+ "eval.tests.test_synth_determinism.test_stdout_identical_under_rust_backtrace_full",
69
+ "eval.tests.test_synth_determinism.test_stdout_identical_under_sample_rate_env_noise",
70
+ "eval.tests.test_synth_determinism.test_stdout_identical_with_inject_stdin",
71
+ "eval.tests.test_synth_determinism.test_stdout_identical_with_large_binary_stdin",
72
+ "eval.tests.test_synth_determinism.test_stdout_identical_with_many_argv",
73
+ "eval.tests.test_synth_determinism.test_stdout_identical_with_single_bogus_argv",
74
+ "eval.tests.test_synth_error_format.test_alsa_diagnostics_precede_panic_block_in_stderr",
75
+ "eval.tests.test_synth_error_format.test_exit_code_101_with_precise_stdout_and_stderr",
76
+ "eval.tests.test_synth_error_format.test_panic_source_site_ends_with_exact_colon_suffix",
77
+ "eval.tests.test_synth_error_format.test_stdout_contains_exactly_one_cycle_diagnostic_line",
78
+ "eval.tests.test_synth_error_format.test_stdout_stable_and_error_surfaces_separated_across_backtrace_full",
79
+ "eval.tests.test_synth_error_format.test_unwrap_message_line_is_exact_content",
80
+ "eval.tests.test_synth_exit.test_audio_stage_fails_after_graph_stage_completes",
81
+ "eval.tests.test_synth_exit.test_graph_output_survives_audio_abort",
82
+ "eval.tests.test_synth_exit.test_nonzero_panic_exit_code_with_semantic_stderr",
83
+ "eval.tests.test_synth_exit.test_panic_marker_present_on_stderr_with_exact_stdout",
84
+ "eval.tests.test_synth_exit.test_panic_originates_in_portaudio_audio_setup",
85
+ "eval.tests.test_synth_invocation_surface.test_many_arguments_and_stdin_together",
86
+ "eval.tests.test_synth_invocation_surface.test_no_extra_args_still_emits_cycle_diagnostic",
87
+ "eval.tests.test_synth_invocation_surface.test_non_utf8_argument_bytes_do_not_disturb_output",
88
+ "eval.tests.test_synth_invocation_surface.test_unsupported_help_flag_is_ignored_not_acted_upon",
89
+ "eval.tests.test_synth_invocation_surface.test_very_long_single_argument_keeps_output",
90
+ "eval.tests.test_synth_stderr_full_golden.test_backtrace1_run_full_normalized_stderr_equals_golden",
91
+ "eval.tests.test_synth_stderr_full_golden.test_backtrace_frames_embedded_in_full_stderr_golden",
92
+ "eval.tests.test_synth_stderr_full_golden.test_default_run_full_normalized_stderr_equals_golden",
93
+ "eval.tests.test_synth_stderr_full_golden.test_default_stderr_golden_ends_with_guidance_note",
94
+ "eval.tests.test_synth_stderr_full_golden.test_repeated_default_runs_have_identical_normalized_stderr",
95
+ "eval.tests.test_synth_stderr_full_golden.test_stderr_golden_probe_prefix_matches_probe_fixture",
96
+ "eval.tests.test_synth_stderr_probe_sequence.test_alsa_config_evaluate_error_line_present",
97
+ "eval.tests.test_synth_stderr_probe_sequence.test_alsa_parse_card_phase_reports_missing_card_0",
98
+ "eval.tests.test_synth_stderr_probe_sequence.test_device_probe_diagnostics_are_stable_across_runs",
99
+ "eval.tests.test_synth_stderr_probe_sequence.test_device_probe_exhausts_every_backend_before_abort",
100
+ "eval.tests.test_synth_stderr_probe_sequence.test_jack_shm_cleanup_lines_present_and_stable",
101
+ "eval.tests.test_synth_stderr_probe_sequence.test_pcm_probe_reaches_named_device_aliases",
102
+ "eval.tests.test_synth_stderr_probe_sequence.test_probe_phase_order_is_card_then_pcm_then_jack",
103
+ "eval.tests.test_synth_stderr_probe_sequence.test_probe_prefix_ends_before_abort_panic_block",
104
+ "eval.tests.test_synth_stderr_probe_sequence.test_stderr_none_of_the_probe_diagnostics_leak_to_stdout",
105
+ "eval.tests.test_synth_stderr_structure.test_message_line_immediately_follows_panic_header",
106
+ "eval.tests.test_synth_stderr_structure.test_only_one_orchestrating_main_panic_line",
107
+ "eval.tests.test_synth_stderr_structure.test_panic_abort_exits_with_code_101",
108
+ "eval.tests.test_synth_stderr_structure.test_panic_header_is_anchored_to_portaudio_audio_setup",
109
+ "eval.tests.test_synth_stderr_structure.test_panic_tail_includes_backtrace_guidance_line",
110
+ "eval.tests.test_synth_stderr_structure.test_stderr_reports_missing_alsa_output_device",
111
+ "eval.tests.test_synth_stdout.test_cycle_diagnostic_absent_from_stderr",
112
+ "eval.tests.test_synth_stdout.test_stdout_does_not_leak_audio_panic_diagnostics",
113
+ "eval.tests.test_synth_stdout.test_stdout_exact_equal_to_golden_cycle_message",
114
+ "eval.tests.test_synth_stdout.test_stdout_has_37_bytes_and_no_extra_whitespace",
115
+ "eval.tests.test_synth_stdout.test_stdout_has_no_alsa_or_audio_lines",
116
+ "eval.tests.test_synth_stdout.test_stdout_is_exactly_two_newline_terminated_lines",
117
+ "eval.tests.test_synth_stdout.test_stdout_reports_would_cycle_once_then_blank_line",
118
+ "eval.tests.test_synth_stdout.test_stdout_text_and_golden_are_identical_strings"
119
+ ]
120
+ },
121
+ "generated_module_02": {
122
+ "ignore_reason": "",
123
+ "ignored": false,
124
+ "ignored_tests": [],
125
+ "tests": [
126
+ "eval.tests.test_cli_surface.test_argv_does_not_suppress_panic_markers_on_no_device[double-dash]",
127
+ "eval.tests.test_cli_surface.test_argv_does_not_suppress_panic_markers_on_no_device[empty-arg]",
128
+ "eval.tests.test_cli_surface.test_argv_does_not_suppress_panic_markers_on_no_device[help-flag]",
129
+ "eval.tests.test_cli_surface.test_argv_does_not_suppress_panic_markers_on_no_device[junk-positionals]",
130
+ "eval.tests.test_cli_surface.test_argv_does_not_suppress_panic_markers_on_no_device[short-help-flag]",
131
+ "eval.tests.test_cli_surface.test_argv_does_not_suppress_panic_markers_on_no_device[unknown-flags]",
132
+ "eval.tests.test_cli_surface.test_argv_does_not_suppress_panic_markers_on_no_device[version-flag]",
133
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[False-101-double-dash]",
134
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[False-101-empty-arg]",
135
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[False-101-help-flag]",
136
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[False-101-junk-positionals]",
137
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[False-101-short-help-flag]",
138
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[False-101-unknown-flags]",
139
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[False-101-version-flag]",
140
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[True-0-double-dash]",
141
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[True-0-empty-arg]",
142
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[True-0-help-flag]",
143
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[True-0-junk-positionals]",
144
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[True-0-short-help-flag]",
145
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[True-0-unknown-flags]",
146
+ "eval.tests.test_cli_surface.test_argv_is_ignored_stdout_and_exit_unchanged[True-0-version-flag]",
147
+ "eval.tests.test_cli_surface.test_argv_tolerance_preserves_full_graph_render_window",
148
+ "eval.tests.test_cli_surface.test_help_flag_does_not_print_usage_or_help_text",
149
+ "eval.tests.test_cli_surface.test_stdin_feed_on_null_device_leaves_success_path_exact[binary-stdin]",
150
+ "eval.tests.test_cli_surface.test_stdin_feed_on_null_device_leaves_success_path_exact[empty-stdin]",
151
+ "eval.tests.test_cli_surface.test_stdin_feed_on_null_device_leaves_success_path_exact[text-stdin]",
152
+ "eval.tests.test_cli_surface.test_supplied_stdin_is_never_consumed_by_the_graph[binary-stdin]",
153
+ "eval.tests.test_cli_surface.test_supplied_stdin_is_never_consumed_by_the_graph[empty-stdin]",
154
+ "eval.tests.test_cli_surface.test_supplied_stdin_is_never_consumed_by_the_graph[text-stdin]",
155
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_failure_contract[dumb-term]",
156
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_failure_contract[no-color]",
157
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_failure_contract[posix-locale]",
158
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_failure_contract[unrelated-var]",
159
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_success_contract[dumb-term]",
160
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_success_contract[no-color]",
161
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_success_contract[posix-locale]",
162
+ "eval.tests.test_cli_surface.test_unrelated_environment_does_not_alter_success_contract[unrelated-var]",
163
+ "eval.tests.test_cli_surface.test_version_flag_does_not_emit_a_version_line",
164
+ "eval.tests.test_determinism.test_failure_channel_segregation_is_exact_round_trip",
165
+ "eval.tests.test_determinism.test_stdout_is_pure_of_device_discovery_chatter_on_success",
166
+ "eval.tests.test_determinism.test_stdout_never_carries_backtrace_section",
167
+ "eval.tests.test_determinism.test_stdout_never_carries_panic_root_cause",
168
+ "eval.tests.test_determinism.test_stdout_stable_across_backtrace_toggle[no-device]",
169
+ "eval.tests.test_determinism.test_stdout_stable_across_backtrace_toggle[null-device]",
170
+ "eval.tests.test_determinism.test_stdout_stable_across_two_repeat_runs[no-device]",
171
+ "eval.tests.test_determinism.test_stdout_stable_across_two_repeat_runs[null-device]",
172
+ "eval.tests.test_device_switch.test_device_presence_decides_between_clean_and_panic_termination",
173
+ "eval.tests.test_device_switch.test_failure_path_returns_panic_code_on_no_device",
174
+ "eval.tests.test_device_switch.test_null_device_flag_is_required_for_success_termination",
175
+ "eval.tests.test_device_switch.test_success_path_renders_for_most_of_the_timer_window[at-least-2.5s]",
176
+ "eval.tests.test_device_switch.test_success_path_renders_for_most_of_the_timer_window[at-least-2s]",
177
+ "eval.tests.test_device_switch.test_success_path_terminates_well_under_ten_seconds",
178
+ "eval.tests.test_device_switch.test_success_runs_are_stable_in_duration",
179
+ "eval.tests.test_exit_contract.test_empty_alsa_config_path_still_reaches_panic_on_no_device",
180
+ "eval.tests.test_exit_contract.test_exit_code_101_is_the_rust_panic_code",
181
+ "eval.tests.test_exit_contract.test_exit_code_zero_is_clean_success",
182
+ "eval.tests.test_exit_contract.test_exit_codes_differ_across_device_presence",
183
+ "eval.tests.test_exit_contract.test_no_device_panics_exit_101_and_reports_root_cause[bt-unset]",
184
+ "eval.tests.test_exit_contract.test_no_device_panics_exit_101_and_reports_root_cause[bt0]",
185
+ "eval.tests.test_exit_contract.test_no_device_panics_exit_101_and_reports_root_cause[bt1]",
186
+ "eval.tests.test_exit_contract.test_null_device_succeeds_exit_0_without_root_cause[bt-unset]",
187
+ "eval.tests.test_exit_contract.test_null_device_succeeds_exit_0_without_root_cause[bt0]",
188
+ "eval.tests.test_exit_contract.test_null_device_succeeds_exit_0_without_root_cause[bt1]",
189
+ "eval.tests.test_exit_contract.test_plain_run_still_prints_stdout_before_panicking",
190
+ "eval.tests.test_exit_contract.test_run_terminates_on_its_own_within_generous_bound[no-device]",
191
+ "eval.tests.test_exit_contract.test_run_terminates_on_its_own_within_generous_bound[null-device]",
192
+ "eval.tests.test_exit_contract.test_stdout_and_dev_state_toggle_is_stable[no-device]",
193
+ "eval.tests.test_exit_contract.test_stdout_and_dev_state_toggle_is_stable[null-device]",
194
+ "eval.tests.test_panic_semantics.test_backtrace_disabled_no_stack_trace_section",
195
+ "eval.tests.test_panic_semantics.test_backtrace_enabled_emits_stack_trace_section",
196
+ "eval.tests.test_panic_semantics.test_backtrace_enabled_suppresses_the_hint_line",
197
+ "eval.tests.test_panic_semantics.test_failure_root_cause_present_in_both_backtrace_modes[bt0]",
198
+ "eval.tests.test_panic_semantics.test_failure_root_cause_present_in_both_backtrace_modes[bt1]",
199
+ "eval.tests.test_panic_semantics.test_failure_stderr_has_backtrace_hint_when_backtrace_unset",
200
+ "eval.tests.test_panic_semantics.test_failure_stderr_has_thread_main_signature_line",
201
+ "eval.tests.test_panic_semantics.test_failure_stderr_reports_unwrap_root_cause",
202
+ "eval.tests.test_panic_semantics.test_success_stderr_absence_of_panic_is_device_caused",
203
+ "eval.tests.test_panic_semantics.test_success_stderr_has_no_backtrace_section",
204
+ "eval.tests.test_panic_semantics.test_success_stderr_has_no_panic_root_cause",
205
+ "eval.tests.test_render_forwarder_evidence.test_exit_code_maps_to_device_alone_across_grid[no-device-bt-unset]",
206
+ "eval.tests.test_render_forwarder_evidence.test_exit_code_maps_to_device_alone_across_grid[no-device-bt0]",
207
+ "eval.tests.test_render_forwarder_evidence.test_exit_code_maps_to_device_alone_across_grid[no-device-bt1]",
208
+ "eval.tests.test_render_forwarder_evidence.test_exit_code_maps_to_device_alone_across_grid[null-device-bt-unset]",
209
+ "eval.tests.test_render_forwarder_evidence.test_exit_code_maps_to_device_alone_across_grid[null-device-bt0]",
210
+ "eval.tests.test_render_forwarder_evidence.test_exit_code_maps_to_device_alone_across_grid[null-device-bt1]",
211
+ "eval.tests.test_render_forwarder_evidence.test_failure_backtrace_markers_never_leak_onto_stdout[bt-unset]",
212
+ "eval.tests.test_render_forwarder_evidence.test_failure_backtrace_markers_never_leak_onto_stdout[bt0]",
213
+ "eval.tests.test_render_forwarder_evidence.test_failure_backtrace_markers_never_leak_onto_stdout[bt1]",
214
+ "eval.tests.test_render_forwarder_evidence.test_panic_root_cause_appears_iff_no_device[no-device-bt-unset]",
215
+ "eval.tests.test_render_forwarder_evidence.test_panic_root_cause_appears_iff_no_device[no-device-bt0]",
216
+ "eval.tests.test_render_forwarder_evidence.test_panic_root_cause_appears_iff_no_device[no-device-bt1]",
217
+ "eval.tests.test_render_forwarder_evidence.test_panic_root_cause_appears_iff_no_device[null-device-bt-unset]",
218
+ "eval.tests.test_render_forwarder_evidence.test_panic_root_cause_appears_iff_no_device[null-device-bt0]",
219
+ "eval.tests.test_render_forwarder_evidence.test_panic_root_cause_appears_iff_no_device[null-device-bt1]",
220
+ "eval.tests.test_render_forwarder_evidence.test_stdout_golden_is_grid_frame_across_device_and_backtrace[no-device-bt-unset]",
221
+ "eval.tests.test_render_forwarder_evidence.test_stdout_golden_is_grid_frame_across_device_and_backtrace[no-device-bt0]",
222
+ "eval.tests.test_render_forwarder_evidence.test_stdout_golden_is_grid_frame_across_device_and_backtrace[no-device-bt1]",
223
+ "eval.tests.test_render_forwarder_evidence.test_stdout_golden_is_grid_frame_across_device_and_backtrace[null-device-bt-unset]",
224
+ "eval.tests.test_render_forwarder_evidence.test_stdout_golden_is_grid_frame_across_device_and_backtrace[null-device-bt0]",
225
+ "eval.tests.test_render_forwarder_evidence.test_stdout_golden_is_grid_frame_across_device_and_backtrace[null-device-bt1]",
226
+ "eval.tests.test_render_forwarder_evidence.test_success_exit_zero_never_accompanies_root_cause_across_grid_closure",
227
+ "eval.tests.test_render_forwarder_evidence.test_success_render_runs_for_full_window_across_backtrace",
228
+ "eval.tests.test_render_forwarder_evidence.test_success_stdout_and_stderr_are_pure_of_any_panic_marker[bt-unset]",
229
+ "eval.tests.test_render_forwarder_evidence.test_success_stdout_and_stderr_are_pure_of_any_panic_marker[bt0]",
230
+ "eval.tests.test_render_forwarder_evidence.test_success_stdout_and_stderr_are_pure_of_any_panic_marker[bt1]",
231
+ "eval.tests.test_stdout_contract.test_stdout_card_confined_to_stdout_stream[no-device]",
232
+ "eval.tests.test_stdout_contract.test_stdout_card_confined_to_stdout_stream[null-device]",
233
+ "eval.tests.test_stdout_contract.test_stdout_equals_golden_on_both_device_paths[no-device]",
234
+ "eval.tests.test_stdout_contract.test_stdout_equals_golden_on_both_device_paths[null-device]",
235
+ "eval.tests.test_stdout_contract.test_stdout_has_no_alsa_or_jack_chatter_on_null_device",
236
+ "eval.tests.test_stdout_contract.test_stdout_is_expected_literal_constant",
237
+ "eval.tests.test_stdout_contract.test_stdout_is_identical_across_device_presence",
238
+ "eval.tests.test_stdout_contract.test_stdout_line_structure_is_single_labelled_line[no-device]",
239
+ "eval.tests.test_stdout_contract.test_stdout_line_structure_is_single_labelled_line[null-device]",
240
+ "eval.tests.test_stdout_contract.test_stdout_unchanged_by_backtrace_mode_on_success[across-bt0]",
241
+ "eval.tests.test_stdout_contract.test_stdout_unchanged_by_backtrace_mode_on_success[across-bt1]",
242
+ "eval.tests.test_stdout_contract.test_stdout_would_cycle_token_appears_exactly_once_at_end[no-device]",
243
+ "eval.tests.test_stdout_contract.test_stdout_would_cycle_token_appears_exactly_once_at_end[null-device]"
244
+ ]
245
+ },
246
+ "generated_module_03": {
247
+ "ignore_reason": "",
248
+ "ignored": false,
249
+ "ignored_tests": [
250
+ {
251
+ "name": "eval.tests.test_backtrace_exactness.test_only_exact_lowercase_full_is_verbose",
252
+ "reasons": [
253
+ {
254
+ "id": "short_substring",
255
+ "message": "pytest test uses a too-short substring oracle",
256
+ "path": "eval/tests/test_backtrace_exactness.py",
257
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
258
+ "severity": "error",
259
+ "stage": "static_lint"
260
+ }
261
+ ]
262
+ },
263
+ {
264
+ "name": "eval.tests.test_backtrace_matrix.test_backtrace_mode_does_not_change_exit_code",
265
+ "reasons": [
266
+ {
267
+ "id": "missing_fixture_assets",
268
+ "message": "pytest test references fixture assets that are not packaged",
269
+ "path": "eval/tests/test_backtrace_matrix.py",
270
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
271
+ "severity": "error",
272
+ "stage": "static_lint"
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "name": "eval.tests.test_env_variants.test_backtrace_garbage_value_enables_short_frames",
278
+ "reasons": [
279
+ {
280
+ "id": "short_substring",
281
+ "message": "pytest test uses a too-short substring oracle",
282
+ "path": "eval/tests/test_env_variants.py",
283
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
284
+ "severity": "error",
285
+ "stage": "static_lint"
286
+ },
287
+ {
288
+ "id": "generic_keyword_oracle",
289
+ "message": "pytest test uses a generic keyword oracle",
290
+ "path": "eval/tests/test_env_variants.py",
291
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
292
+ "severity": "error",
293
+ "stage": "static_lint"
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "name": "eval.tests.test_env_variants.test_backtrace_zero_disables_frames",
299
+ "reasons": [
300
+ {
301
+ "id": "generic_keyword_oracle",
302
+ "message": "pytest test uses a generic keyword oracle",
303
+ "path": "eval/tests/test_env_variants.py",
304
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
305
+ "severity": "error",
306
+ "stage": "static_lint"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "name": "eval.tests.test_panic_signal.test_stderr_has_source_location",
312
+ "reasons": [
313
+ {
314
+ "id": "short_substring",
315
+ "message": "pytest test uses a too-short substring oracle",
316
+ "path": "eval/tests/test_panic_signal.py",
317
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
318
+ "severity": "error",
319
+ "stage": "static_lint"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "name": "eval.tests.test_robustness.test_no_profile_clobber_of_deliverables",
325
+ "reasons": [
326
+ {
327
+ "id": "missing_fixture_assets",
328
+ "message": "pytest test references fixture assets that are not packaged",
329
+ "path": "eval/tests/test_robustness.py",
330
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
331
+ "severity": "error",
332
+ "stage": "static_lint"
333
+ }
334
+ ]
335
+ }
336
+ ],
337
+ "tests": [
338
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[bare_word]",
339
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[clustered_short_flags]",
340
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[dash_dash_dash]",
341
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[double_dash]",
342
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[empty_string_arg]",
343
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[equals_value]",
344
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[long_english_phrase]",
345
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[mixed_flag_and_word]",
346
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[no_args]",
347
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[numeric_arg]",
348
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[repeated_flag]",
349
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[single_dash_word]",
350
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[space_split_option]",
351
+ "eval.tests.test_arg_combinations.test_argv_variants_keep_stdout_and_exit[triple_flag]",
352
+ "eval.tests.test_arg_combinations.test_help_text_never_reaches_stdout",
353
+ "eval.tests.test_arg_combinations.test_many_positional_values_ignored",
354
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[00]",
355
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[0_]",
356
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[1]",
357
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[1_1]",
358
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[2]",
359
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[FULL]",
360
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[Full]",
361
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[_full]",
362
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[fUlL]",
363
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[full,frames]",
364
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[full_]",
365
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[off]",
366
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[on]",
367
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[true]",
368
+ "eval.tests.test_backtrace_exactness.test_non_full_values_are_short_mode[yes]",
369
+ "eval.tests.test_backtrace_exactness.test_only_exact_lowercase_full_is_verbose",
370
+ "eval.tests.test_backtrace_exactness.test_only_exact_zero_is_hint_mode",
371
+ "eval.tests.test_backtrace_matrix.test_backtrace_mode_does_not_change_exit_code",
372
+ "eval.tests.test_backtrace_matrix.test_empty_string_backtrace_is_short_mode",
373
+ "eval.tests.test_backtrace_matrix.test_full_backtrace_frames_have_hex_addresses",
374
+ "eval.tests.test_backtrace_matrix.test_full_backtrace_has_no_trailing_note",
375
+ "eval.tests.test_backtrace_matrix.test_full_backtrace_has_twenty_three_frames",
376
+ "eval.tests.test_backtrace_matrix.test_full_backtrace_traces_to_main",
377
+ "eval.tests.test_backtrace_matrix.test_full_first_frame_is_display_backtrace",
378
+ "eval.tests.test_backtrace_matrix.test_full_keeps_cycle_diagnostic_on_stdout",
379
+ "eval.tests.test_backtrace_matrix.test_garbage_backtrace_is_short_mode",
380
+ "eval.tests.test_backtrace_matrix.test_one_backtrace_pins_ordered_frames",
381
+ "eval.tests.test_backtrace_matrix.test_short_backtrace_has_exactly_seven_frames",
382
+ "eval.tests.test_backtrace_matrix.test_short_backtrace_header_and_footer",
383
+ "eval.tests.test_backtrace_matrix.test_short_keeps_cycle_diagnostic_on_stdout",
384
+ "eval.tests.test_backtrace_matrix.test_two_variants_both_short_and_identical",
385
+ "eval.tests.test_backtrace_matrix.test_unset_and_zero_are_identical_reports",
386
+ "eval.tests.test_backtrace_matrix.test_unset_backtrace_shows_hint_not_frames",
387
+ "eval.tests.test_backtrace_matrix.test_zero_backtrace_shows_hint_not_frames",
388
+ "eval.tests.test_combined_invariance.test_all_backtrace_modes_keep_golden_stdout",
389
+ "eval.tests.test_combined_invariance.test_args_stdin_backtrace_all_at_once",
390
+ "eval.tests.test_combined_invariance.test_backtrace_does_not_leak_onto_stdout",
391
+ "eval.tests.test_combined_invariance.test_backtrace_mode_scoped_to_stderr_only",
392
+ "eval.tests.test_combined_invariance.test_backtrace_with_profile_capture_coexist",
393
+ "eval.tests.test_combined_invariance.test_cwd_and_backtrace_combined",
394
+ "eval.tests.test_combined_invariance.test_empty_argv_with_stdin_and_full_backtrace",
395
+ "eval.tests.test_combined_invariance.test_stdin_arg_combos_keep_ascii_stdout",
396
+ "eval.tests.test_determinism.test_deterministic_across_workers",
397
+ "eval.tests.test_determinism.test_exit_code_identical_over_ten_runs",
398
+ "eval.tests.test_determinism.test_panic_block_identical_over_ten_runs",
399
+ "eval.tests.test_determinism.test_stdout_byte_identical_over_ten_runs",
400
+ "eval.tests.test_determinism.test_stdout_then_stdout_not_separable",
401
+ "eval.tests.test_env_variants.test_backtrace_full_variant_emits_backtrace",
402
+ "eval.tests.test_env_variants.test_backtrace_garbage_value_enables_short_frames",
403
+ "eval.tests.test_env_variants.test_backtrace_zero_disables_frames",
404
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[audio_env]",
405
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[c_locale]",
406
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[dsp_chain_var]",
407
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[empty_env_override]",
408
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[en_us_locale]",
409
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[home_set]",
410
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[no_color]",
411
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[path_only]",
412
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[posix]",
413
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[rust_log]",
414
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[terminal]",
415
+ "eval.tests.test_env_variants.test_invariant_env_keeps_stdout_and_exit[wordy]",
416
+ "eval.tests.test_env_variants.test_profile_env_passthrough_preserves_pipeline_var",
417
+ "eval.tests.test_exact_stdout_bytes.test_stdout_contains_both_tokens_once_each",
418
+ "eval.tests.test_exact_stdout_bytes.test_stdout_ends_with_double_newline",
419
+ "eval.tests.test_exact_stdout_bytes.test_stdout_exact_byte_length",
420
+ "eval.tests.test_exact_stdout_bytes.test_stdout_full_run_consistency",
421
+ "eval.tests.test_exact_stdout_bytes.test_stdout_no_leading_whitespace",
422
+ "eval.tests.test_exact_stdout_bytes.test_stdout_no_trailing_garbage",
423
+ "eval.tests.test_exact_stdout_bytes.test_stdout_second_newline_is_blank_terminator",
424
+ "eval.tests.test_exit_behavior.test_exit_code_is_not_signal_kill",
425
+ "eval.tests.test_exit_behavior.test_exit_code_is_not_success",
426
+ "eval.tests.test_exit_behavior.test_exit_code_not_segfault",
427
+ "eval.tests.test_exit_behavior.test_exit_code_on_headless_run",
428
+ "eval.tests.test_exit_behavior.test_exit_code_stable_across_repeated_runs",
429
+ "eval.tests.test_exit_behavior.test_stderr_nonempty_on_panic",
430
+ "eval.tests.test_exit_behavior.test_stdout_is_bytes_not_garbage",
431
+ "eval.tests.test_exit_behavior.test_stdout_present_when_exit_code_is_101",
432
+ "eval.tests.test_golden_integrity.test_all_golden_fixtures_present_and_nonempty",
433
+ "eval.tests.test_golden_integrity.test_backtrace_frames_golden_matches_live_short_frames",
434
+ "eval.tests.test_golden_integrity.test_panic_block_golden_matches_live_stderr",
435
+ "eval.tests.test_golden_integrity.test_panic_block_golden_uses_thread_placeholder",
436
+ "eval.tests.test_golden_integrity.test_synth_stdout_golden_matches_live_stdout",
437
+ "eval.tests.test_invocation_variation.test_backtrace_disabled_by_default",
438
+ "eval.tests.test_invocation_variation.test_backtrace_enabled_removes_hint_line",
439
+ "eval.tests.test_invocation_variation.test_backtrace_enabled_shows_frames",
440
+ "eval.tests.test_invocation_variation.test_backtrace_enabled_shows_portaudio_frame",
441
+ "eval.tests.test_invocation_variation.test_backtrace_enabled_shows_synth_main_frame",
442
+ "eval.tests.test_invocation_variation.test_backtrace_keeps_cycle_diagnostic_on_stdout",
443
+ "eval.tests.test_invocation_variation.test_dash_h_flag_is_ignored",
444
+ "eval.tests.test_invocation_variation.test_help_flag_does_not_print_usage",
445
+ "eval.tests.test_invocation_variation.test_llvm_profile_env_is_preserved",
446
+ "eval.tests.test_invocation_variation.test_lowering_lc_all_keeps_ascii_stdout",
447
+ "eval.tests.test_invocation_variation.test_multiple_positional_args_ignored",
448
+ "eval.tests.test_invocation_variation.test_option_like_arg_ignored",
449
+ "eval.tests.test_invocation_variation.test_random_env_var_is_ignored",
450
+ "eval.tests.test_invocation_variation.test_runs_from_any_working_directory",
451
+ "eval.tests.test_invocation_variation.test_stdin_is_not_consumed",
452
+ "eval.tests.test_invocation_variation.test_unknown_flag_does_not_change_stdout",
453
+ "eval.tests.test_lifecycle.test_audio_request_pipeline_entered",
454
+ "eval.tests.test_lifecycle.test_device_discovery_occurred_before_panic",
455
+ "eval.tests.test_lifecycle.test_full_lifecycle_order_unique",
456
+ "eval.tests.test_lifecycle.test_graph_stage_completes_before_audio_panic",
457
+ "eval.tests.test_lifecycle.test_no_audio_sample_output_on_stdout",
458
+ "eval.tests.test_panic_block_golden.test_backtrace_first_frame_is_rust_begin_unwind",
459
+ "eval.tests.test_panic_block_golden.test_backtrace_frames_match_golden",
460
+ "eval.tests.test_panic_block_golden.test_backtrace_traces_entry_to_origin",
461
+ "eval.tests.test_panic_block_golden.test_panic_block_ends_with_full_hint",
462
+ "eval.tests.test_panic_block_golden.test_panic_block_has_stable_cause_and_span",
463
+ "eval.tests.test_panic_block_golden.test_panic_block_matches_golden",
464
+ "eval.tests.test_panic_signal.test_stderr_ascii_crash_payload",
465
+ "eval.tests.test_panic_signal.test_stderr_contains_panicked",
466
+ "eval.tests.test_panic_signal.test_stderr_has_multiple_lines",
467
+ "eval.tests.test_panic_signal.test_stderr_has_source_location",
468
+ "eval.tests.test_panic_signal.test_stderr_mentions_portaudio_crate",
469
+ "eval.tests.test_panic_signal.test_stderr_mentions_tagged_mark",
470
+ "eval.tests.test_panic_signal.test_stderr_mentions_thread_main",
471
+ "eval.tests.test_panic_signal.test_stderr_mentions_unwrap_on_none",
472
+ "eval.tests.test_profile_capture.test_profile_does_not_leak_into_stdout_stderr",
473
+ "eval.tests.test_profile_capture.test_profile_is_binary_payload",
474
+ "eval.tests.test_profile_capture.test_profile_is_written_and_substantial",
475
+ "eval.tests.test_profile_capture.test_profile_module_hash_is_deterministic_across_runs",
476
+ "eval.tests.test_profile_capture.test_profile_module_hash_modifier_naming",
477
+ "eval.tests.test_profile_capture.test_profile_pid_modifier_yields_perprocess_files",
478
+ "eval.tests.test_robustness.test_concurrent_backtrace_stable",
479
+ "eval.tests.test_robustness.test_concurrent_runs_identical_exit",
480
+ "eval.tests.test_robustness.test_concurrent_runs_identical_stderr_marker",
481
+ "eval.tests.test_robustness.test_concurrent_runs_identical_stdout",
482
+ "eval.tests.test_robustness.test_cwd_isolation_holds",
483
+ "eval.tests.test_robustness.test_executable_is_executable",
484
+ "eval.tests.test_robustness.test_executable_present",
485
+ "eval.tests.test_robustness.test_no_profile_clobber_of_deliverables",
486
+ "eval.tests.test_robustness.test_terminates_within_bounded_time",
487
+ "eval.tests.test_signal_termination.test_not_negative_signal_indicator",
488
+ "eval.tests.test_signal_termination.test_not_sigsegv_sigabrt_sigkill_sigterm",
489
+ "eval.tests.test_signal_termination.test_not_wrapped_signal_code",
490
+ "eval.tests.test_signal_termination.test_positive_exit_code_not_signal",
491
+ "eval.tests.test_signal_termination.test_returncode_is_exact_panic_code",
492
+ "eval.tests.test_signal_termination.test_stdout_stable_under_status_probe",
493
+ "eval.tests.test_stderr_layout.test_panic_block_is_suffix_of_stderr",
494
+ "eval.tests.test_stderr_layout.test_panic_block_orders_header_cause_hint",
495
+ "eval.tests.test_stderr_layout.test_stderr_blank_line_separates_noise_from_panic",
496
+ "eval.tests.test_stderr_layout.test_stderr_has_pre_panic_noise_phase",
497
+ "eval.tests.test_stderr_layout.test_stderr_not_stripped_of_crash_tail",
498
+ "eval.tests.test_stdin_variants.test_stdin_does_not_hang_on_large_input",
499
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[binary_bytes]",
500
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[commands_like]",
501
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[crlf_line_endings]",
502
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[empty]",
503
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[high_unicode]",
504
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[large_repeated]",
505
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[multi_line]",
506
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[no_trailing_newline]",
507
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[null_bytes]",
508
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[plain_text]",
509
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[single_keypress]",
510
+ "eval.tests.test_stdin_variants.test_stdin_payloads_are_ignored[single_newline]",
511
+ "eval.tests.test_stdout_golden.test_stdout_ascii_only",
512
+ "eval.tests.test_stdout_golden.test_stdout_contains_message_prefix",
513
+ "eval.tests.test_stdout_golden.test_stdout_contains_wouldcycle_value",
514
+ "eval.tests.test_stdout_golden.test_stdout_exactly_matches_golden",
515
+ "eval.tests.test_stdout_golden.test_stdout_first_line_mentions_cycle_error",
516
+ "eval.tests.test_stdout_golden.test_stdout_has_exactly_two_lines",
517
+ "eval.tests.test_stdout_golden.test_stdout_length_matches_golden_length",
518
+ "eval.tests.test_stdout_golden.test_stdout_not_empty",
519
+ "eval.tests.test_stdout_golden.test_stdout_second_line_is_empty_terminator",
520
+ "eval.tests.test_stdout_golden.test_stdout_stable_across_runs",
521
+ "eval.tests.test_stream_separation.test_cycle_message_on_stdout_not_stderr",
522
+ "eval.tests.test_stream_separation.test_panic_report_on_stderr_not_stdout",
523
+ "eval.tests.test_stream_separation.test_portaudio_reference_only_on_stderr",
524
+ "eval.tests.test_stream_separation.test_stderr_has_no_graph_diagnostic",
525
+ "eval.tests.test_stream_separation.test_stdout_decodes_without_crash_bytes",
526
+ "eval.tests.test_stream_separation.test_stdout_has_only_graph_diagnostic_payload",
527
+ "eval.tests.test_stream_separation.test_stdout_line_is_not_repeated_on_stderr",
528
+ "eval.tests.test_stream_separation.test_wouldcycle_only_on_stdout"
529
+ ]
530
+ },
531
+ "generated_module_04": {
532
+ "ignore_reason": "",
533
+ "ignored": false,
534
+ "ignored_tests": [
535
+ {
536
+ "name": "eval.tests.test_process_termination.test_repeated_panic_exit_is_always_positive_101",
537
+ "reasons": [
538
+ {
539
+ "id": "all_assertions_weak",
540
+ "message": "pytest test uses only weak assertions",
541
+ "path": "eval/tests/test_process_termination.py",
542
+ "repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
543
+ "severity": "error",
544
+ "stage": "static_lint"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "name": "eval.tests.test_stream_fd_semantics.test_merged_stream_no_graph_status_after_first_line",
550
+ "reasons": [
551
+ {
552
+ "id": "golden_no_equality",
553
+ "message": "pytest test references golden data without equality comparison",
554
+ "path": "eval/tests/test_stream_fd_semantics.py",
555
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
556
+ "severity": "error",
557
+ "stage": "static_lint"
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "name": "eval.tests.test_stream_fd_semantics.test_merged_stream_starts_with_exact_stdout_golden",
563
+ "reasons": [
564
+ {
565
+ "id": "golden_no_equality",
566
+ "message": "pytest test references golden data without equality comparison",
567
+ "path": "eval/tests/test_stream_fd_semantics.py",
568
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
569
+ "severity": "error",
570
+ "stage": "static_lint"
571
+ }
572
+ ]
573
+ }
574
+ ],
575
+ "tests": [
576
+ "eval.tests.test_backtrace_literal_parsing.test_all_near_miss_variants_preserve_exact_stdout",
577
+ "eval.tests.test_backtrace_literal_parsing.test_exact_full_literal_is_the_only_verbose_mode",
578
+ "eval.tests.test_backtrace_literal_parsing.test_exact_zero_literal_is_off_while_near_miss_is_short",
579
+ "eval.tests.test_backtrace_literal_parsing.test_full_near_miss_resolves_to_short_block[full_leading_space]",
580
+ "eval.tests.test_backtrace_literal_parsing.test_full_near_miss_resolves_to_short_block[full_mixed_case]",
581
+ "eval.tests.test_backtrace_literal_parsing.test_full_near_miss_resolves_to_short_block[full_trailing_space]",
582
+ "eval.tests.test_backtrace_literal_parsing.test_full_near_miss_resolves_to_short_block[full_upper_F]",
583
+ "eval.tests.test_backtrace_literal_parsing.test_full_near_miss_resolves_to_short_block[full_upper_all]",
584
+ "eval.tests.test_backtrace_literal_parsing.test_near_miss_blocks_share_the_exact_short_frame_list",
585
+ "eval.tests.test_backtrace_literal_parsing.test_near_miss_surfaces_short_escape_hatch_note",
586
+ "eval.tests.test_backtrace_literal_parsing.test_other_present_values_resolve_to_short_block[comma_suffix]",
587
+ "eval.tests.test_backtrace_literal_parsing.test_other_present_values_resolve_to_short_block[flag_like]",
588
+ "eval.tests.test_backtrace_literal_parsing.test_other_present_values_resolve_to_short_block[whitespace_only]",
589
+ "eval.tests.test_backtrace_literal_parsing.test_other_present_values_resolve_to_short_block[word_no]",
590
+ "eval.tests.test_backtrace_literal_parsing.test_other_present_values_resolve_to_short_block[word_off]",
591
+ "eval.tests.test_backtrace_literal_parsing.test_zero_near_miss_resolves_to_short_block[zero_double]",
592
+ "eval.tests.test_backtrace_literal_parsing.test_zero_near_miss_resolves_to_short_block[zero_leading_space]",
593
+ "eval.tests.test_backtrace_literal_parsing.test_zero_near_miss_resolves_to_short_block[zero_trailing_space]",
594
+ "eval.tests.test_backtrace_value_parsing.test_all_off_values_keep_exact_stdout",
595
+ "eval.tests.test_backtrace_value_parsing.test_all_on_values_keep_exact_stdout",
596
+ "eval.tests.test_backtrace_value_parsing.test_full_value_produces_canonical_full_frames",
597
+ "eval.tests.test_backtrace_value_parsing.test_off_values_produce_default_block[absent]",
598
+ "eval.tests.test_backtrace_value_parsing.test_off_values_produce_default_block[zero]",
599
+ "eval.tests.test_backtrace_value_parsing.test_on_off_differential_is_only_the_stack",
600
+ "eval.tests.test_backtrace_value_parsing.test_on_values_produce_short_stack_block[empty]",
601
+ "eval.tests.test_backtrace_value_parsing.test_on_values_produce_short_stack_block[one]",
602
+ "eval.tests.test_backtrace_value_parsing.test_on_values_produce_short_stack_block[true]",
603
+ "eval.tests.test_backtrace_value_parsing.test_on_values_produce_short_stack_block[two]",
604
+ "eval.tests.test_backtrace_value_parsing.test_on_values_produce_short_stack_block[word]",
605
+ "eval.tests.test_backtrace_value_parsing.test_on_values_produce_short_stack_block[yes]",
606
+ "eval.tests.test_determinism.test_determinism_of_stdout_across_cwd_and_env",
607
+ "eval.tests.test_determinism.test_determinism_under_backtrace_off",
608
+ "eval.tests.test_determinism.test_exit_code_constant_across_runs",
609
+ "eval.tests.test_determinism.test_multiple_runs_are_independent_processes",
610
+ "eval.tests.test_determinism.test_panic_golden_is_identical_to_live_tail",
611
+ "eval.tests.test_determinism.test_repeated_frame_contract_is_stable",
612
+ "eval.tests.test_determinism.test_stdout_and_panic_deterministic_over_runs",
613
+ "eval.tests.test_determinism.test_stdout_append_is_deterministic",
614
+ "eval.tests.test_determinism.test_stdout_deterministic_over_four_runs",
615
+ "eval.tests.test_environment_invariance.test_common_env_does_not_perturb_contract[combined]",
616
+ "eval.tests.test_environment_invariance.test_common_env_does_not_perturb_contract[lang]",
617
+ "eval.tests.test_environment_invariance.test_common_env_does_not_perturb_contract[lc_all]",
618
+ "eval.tests.test_environment_invariance.test_common_env_does_not_perturb_contract[no_color]",
619
+ "eval.tests.test_environment_invariance.test_common_env_does_not_perturb_contract[rust_log]",
620
+ "eval.tests.test_environment_invariance.test_common_env_does_not_perturb_contract[rust_min_stack]",
621
+ "eval.tests.test_environment_invariance.test_common_env_does_not_perturb_contract[tz]",
622
+ "eval.tests.test_environment_invariance.test_env_matrix_exit_is_invariant_101",
623
+ "eval.tests.test_environment_invariance.test_env_matrix_stdout_is_single_golden_set",
624
+ "eval.tests.test_environment_invariance.test_no_color_has_no_effect_on_panic_text",
625
+ "eval.tests.test_environment_invariance.test_rust_stdout_buffering_env_does_not_change_stream",
626
+ "eval.tests.test_exit_and_stderr.test_backtrace_enabled_still_fails_with_unwrap_frame",
627
+ "eval.tests.test_exit_and_stderr.test_backtrace_full_keeps_exit_and_stdout_exact",
628
+ "eval.tests.test_exit_and_stderr.test_backtrace_opt_out_keeps_exact_contract",
629
+ "eval.tests.test_exit_and_stderr.test_backtrace_short_pins_synth_main_frame_exact",
630
+ "eval.tests.test_exit_and_stderr.test_backtrace_short_pins_unwrap_failed_frame_exact",
631
+ "eval.tests.test_exit_and_stderr.test_default_failure_reproduces_full_golden",
632
+ "eval.tests.test_exit_and_stderr.test_exit_code_stable_across_repeated_runs",
633
+ "eval.tests.test_exit_and_stderr.test_exit_status_is_101_and_panic_contract",
634
+ "eval.tests.test_exit_and_stderr.test_exit_status_is_nonzero_with_panic_message",
635
+ "eval.tests.test_exit_and_stderr.test_panic_message_names_unwrap_on_none_exact",
636
+ "eval.tests.test_exit_and_stderr.test_panic_source_location_line_col_exact",
637
+ "eval.tests.test_exit_and_stderr.test_stderr_contains_no_numeric_audio_payload",
638
+ "eval.tests.test_exit_and_stderr.test_stderr_has_device_noise_before_panic_tail",
639
+ "eval.tests.test_exit_and_stderr.test_stderr_has_no_graph_status_line",
640
+ "eval.tests.test_exit_and_stderr.test_stdout_emitted_before_failure",
641
+ "eval.tests.test_golden_integrity.test_branch_golden_path_is_portable",
642
+ "eval.tests.test_golden_integrity.test_golden_panic_matches_live_normalized_tail",
643
+ "eval.tests.test_golden_integrity.test_golden_stdout_matches_live_stdout",
644
+ "eval.tests.test_golden_integrity.test_live_panic_tail_uses_the_recorded_golden",
645
+ "eval.tests.test_golden_integrity.test_live_stdout_pins_the_exact_golden_bytes",
646
+ "eval.tests.test_graph_cycle_semantics.test_cycle_error_is_nonfatal_and_flow_continues",
647
+ "eval.tests.test_graph_cycle_semantics.test_cycle_keyword_anchored_in_exact_sentence",
648
+ "eval.tests.test_graph_cycle_semantics.test_cycle_verdict_emitted_exactly_once",
649
+ "eval.tests.test_graph_cycle_semantics.test_error_is_graceful_not_surfaced_as_stdout_panic",
650
+ "eval.tests.test_graph_cycle_semantics.test_master_synth_wiring_proceeds_past_cycle_check",
651
+ "eval.tests.test_graph_cycle_semantics.test_message_is_first_and_only_nonblank_line",
652
+ "eval.tests.test_graph_cycle_semantics.test_no_audio_sample_values_leak_to_stdout",
653
+ "eval.tests.test_graph_cycle_semantics.test_observable_proves_graph_rejects_cyclic_edge",
654
+ "eval.tests.test_graph_cycle_semantics.test_three_oscillator_inputs_stay_internal",
655
+ "eval.tests.test_graph_cycle_semantics.test_would_cycle_token_renders_with_no_extra_digits",
656
+ "eval.tests.test_invocation_robustness.test_env_var_added_does_not_alter_stdout",
657
+ "eval.tests.test_invocation_robustness.test_failure_contract_stable_under_env_perturbation",
658
+ "eval.tests.test_invocation_robustness.test_home_dir_is_not_required_for_stdout",
659
+ "eval.tests.test_invocation_robustness.test_llvm_pipeline_var_inherited_not_redirected",
660
+ "eval.tests.test_invocation_robustness.test_no_usage_message_on_help_flag",
661
+ "eval.tests.test_invocation_robustness.test_stdin_is_ignored",
662
+ "eval.tests.test_invocation_robustness.test_stdin_null_bytes_ignored",
663
+ "eval.tests.test_invocation_robustness.test_stdout_identical_across_adjacent_runs",
664
+ "eval.tests.test_invocation_robustness.test_stdout_independent_of_working_directory",
665
+ "eval.tests.test_invocation_robustness.test_stdout_same_across_all_arg_variants",
666
+ "eval.tests.test_invocation_robustness.test_stdout_same_for_arg_variant[--help]",
667
+ "eval.tests.test_invocation_robustness.test_stdout_same_for_arg_variant[--unknown-flag]",
668
+ "eval.tests.test_invocation_robustness.test_stdout_same_for_arg_variant[--version]",
669
+ "eval.tests.test_invocation_robustness.test_stdout_same_for_arg_variant[-h]",
670
+ "eval.tests.test_invocation_robustness.test_stdout_same_for_arg_variant[440]",
671
+ "eval.tests.test_invocation_robustness.test_stdout_same_for_arg_variant[default]",
672
+ "eval.tests.test_invocation_robustness.test_stdout_same_for_arg_variant[some_positional_args]",
673
+ "eval.tests.test_invocation_robustness.test_wide_argument_count_preserves_stdout[100]",
674
+ "eval.tests.test_invocation_robustness.test_wide_argument_count_preserves_stdout[1]",
675
+ "eval.tests.test_invocation_robustness.test_wide_argument_count_preserves_stdout[25]",
676
+ "eval.tests.test_invocation_robustness.test_wide_argument_count_preserves_stdout[5]",
677
+ "eval.tests.test_mode_matrix.test_banner_occurs_exactly_once_per_mode[full]",
678
+ "eval.tests.test_mode_matrix.test_banner_occurs_exactly_once_per_mode[unset]",
679
+ "eval.tests.test_mode_matrix.test_each_mode_pins_exact_exit_stdout_and_block[one-env_extra2-backtrace_golden]",
680
+ "eval.tests.test_mode_matrix.test_each_mode_pins_exact_exit_stdout_and_block[unset-env_extra0-panic_golden]",
681
+ "eval.tests.test_mode_matrix.test_each_mode_pins_exact_exit_stdout_and_block[zero-env_extra1-panic_golden]",
682
+ "eval.tests.test_mode_matrix.test_full_canonical_roots_pin_unwrap_and_synth",
683
+ "eval.tests.test_mode_matrix.test_full_frame_signature_is_canonical_structurally",
684
+ "eval.tests.test_mode_matrix.test_full_mode_pins_exit_stdout_and_canonical_frames",
685
+ "eval.tests.test_mode_matrix.test_short_stack_is_inner_slice_of_full_frames",
686
+ "eval.tests.test_mode_matrix.test_single_line_modes_share_exact_junction_point",
687
+ "eval.tests.test_mode_matrix.test_three_modes_share_normalized_banner_and_message",
688
+ "eval.tests.test_panic_block_structure.test_backtrace_block_has_exact_frame_list",
689
+ "eval.tests.test_panic_block_structure.test_backtrace_block_is_newline_terminated_exact",
690
+ "eval.tests.test_panic_block_structure.test_backtrace_off_and_full_share_exit_101",
691
+ "eval.tests.test_panic_block_structure.test_backtrace_off_block_equals_default_block",
692
+ "eval.tests.test_panic_block_structure.test_backtrace_on_differs_by_adding_stack_only",
693
+ "eval.tests.test_panic_block_structure.test_banner_line_pins_exact_crate_location",
694
+ "eval.tests.test_panic_block_structure.test_default_panic_block_is_exactly_three_lines",
695
+ "eval.tests.test_panic_block_structure.test_message_line_is_exact_unwrap_on_none_contract",
696
+ "eval.tests.test_panic_block_structure.test_mode_note_references_matching_golden",
697
+ "eval.tests.test_panic_block_structure.test_panic_block_is_exact_suffix_of_whole_stderr",
698
+ "eval.tests.test_panic_block_structure.test_stderr_is_valid_utf8_without_nul",
699
+ "eval.tests.test_process_termination.test_binary_failure_is_a_panic_exit_not_a_signal[full]",
700
+ "eval.tests.test_process_termination.test_binary_failure_is_a_panic_exit_not_a_signal[one]",
701
+ "eval.tests.test_process_termination.test_binary_failure_is_a_panic_exit_not_a_signal[unset]",
702
+ "eval.tests.test_process_termination.test_binary_failure_is_a_panic_exit_not_a_signal[zero]",
703
+ "eval.tests.test_process_termination.test_exit_101_is_panic_contract_not_generic_failure",
704
+ "eval.tests.test_process_termination.test_exit_verbosity_never_becomes_abort_signal",
705
+ "eval.tests.test_process_termination.test_near_miss_exit_still_101_positive",
706
+ "eval.tests.test_process_termination.test_repeated_panic_exit_is_always_positive_101",
707
+ "eval.tests.test_process_termination.test_stdout_survives_the_panic_exit",
708
+ "eval.tests.test_stderr_shape.test_both_streams_preserve_lf_when_merged",
709
+ "eval.tests.test_stderr_shape.test_redirect_full_mode_preserves_canonical_frames",
710
+ "eval.tests.test_stderr_shape.test_redirect_to_real_files_preserves_exact_output[one]",
711
+ "eval.tests.test_stderr_shape.test_redirect_to_real_files_preserves_exact_output[unset]",
712
+ "eval.tests.test_stderr_shape.test_stderr_banner_from_first_thread_line_only[full]",
713
+ "eval.tests.test_stderr_shape.test_stderr_banner_from_first_thread_line_only[one]",
714
+ "eval.tests.test_stderr_shape.test_stderr_banner_from_first_thread_line_only[unset]",
715
+ "eval.tests.test_stderr_shape.test_stderr_banner_from_first_thread_line_only[zero]",
716
+ "eval.tests.test_stderr_shape.test_stderr_block_has_no_tab_or_formfeed_in_panic_tail",
717
+ "eval.tests.test_stderr_shape.test_stderr_block_has_no_trailing_whitespace[full]",
718
+ "eval.tests.test_stderr_shape.test_stderr_block_has_no_trailing_whitespace[one]",
719
+ "eval.tests.test_stderr_shape.test_stderr_block_has_no_trailing_whitespace[unset]",
720
+ "eval.tests.test_stderr_shape.test_stderr_block_has_no_trailing_whitespace[zero]",
721
+ "eval.tests.test_stderr_shape.test_stderr_block_uses_only_lf_newlines[full]",
722
+ "eval.tests.test_stderr_shape.test_stderr_block_uses_only_lf_newlines[one]",
723
+ "eval.tests.test_stderr_shape.test_stderr_block_uses_only_lf_newlines[unset]",
724
+ "eval.tests.test_stderr_shape.test_stderr_block_uses_only_lf_newlines[zero]",
725
+ "eval.tests.test_stderr_shape.test_stdout_bytes_are_pure_ascii_plus_newlines",
726
+ "eval.tests.test_stderr_shape.test_stdout_uses_only_lf_and_is_exact[full]",
727
+ "eval.tests.test_stderr_shape.test_stdout_uses_only_lf_and_is_exact[one]",
728
+ "eval.tests.test_stderr_shape.test_stdout_uses_only_lf_and_is_exact[unset]",
729
+ "eval.tests.test_stderr_shape.test_stdout_uses_only_lf_and_is_exact[zero]",
730
+ "eval.tests.test_stdout_contract.test_stdout_byte_length_is_exactly_37",
731
+ "eval.tests.test_stdout_contract.test_stdout_contains_no_alsa_or_device_noise",
732
+ "eval.tests.test_stdout_contract.test_stdout_contains_no_panic_or_unwrap_text",
733
+ "eval.tests.test_stdout_contract.test_stdout_equals_golden_file_exactly",
734
+ "eval.tests.test_stdout_contract.test_stdout_equals_known_constant",
735
+ "eval.tests.test_stdout_contract.test_stdout_first_line_is_exact_sentence",
736
+ "eval.tests.test_stdout_contract.test_stdout_has_exactly_two_physical_lines",
737
+ "eval.tests.test_stdout_contract.test_stdout_matches_golden_after_normalization_identity",
738
+ "eval.tests.test_stdout_contract.test_stdout_render_has_no_debug_suffix",
739
+ "eval.tests.test_stdout_contract.test_stdout_second_physical_line_is_blank",
740
+ "eval.tests.test_stdout_contract.test_stdout_single_line_content_no_control_chars",
741
+ "eval.tests.test_stdout_contract.test_stdout_trailing_newline_is_single_double_terminator",
742
+ "eval.tests.test_stream_fd_semantics.test_closed_stdin_produces_exact_stdout",
743
+ "eval.tests.test_stream_fd_semantics.test_closed_stdin_with_backtrace_preserves_panic_tail",
744
+ "eval.tests.test_stream_fd_semantics.test_merged_and_closed_stdin_share_stdout_contract",
745
+ "eval.tests.test_stream_fd_semantics.test_merged_stream_no_graph_status_after_first_line",
746
+ "eval.tests.test_stream_fd_semantics.test_merged_stream_preserves_mode_contract_after_prefix[full]",
747
+ "eval.tests.test_stream_fd_semantics.test_merged_stream_preserves_mode_contract_after_prefix[one]",
748
+ "eval.tests.test_stream_fd_semantics.test_merged_stream_preserves_mode_contract_after_prefix[unset]",
749
+ "eval.tests.test_stream_fd_semantics.test_merged_stream_starts_with_exact_stdout_golden",
750
+ "eval.tests.test_stream_isolation.test_combined_output_recovers_stdout_verbatim",
751
+ "eval.tests.test_stream_isolation.test_stderr_does_not_absorb_graph_status",
752
+ "eval.tests.test_stream_isolation.test_stderr_panic_banner_names_main_thread_exact",
753
+ "eval.tests.test_stream_isolation.test_stderr_panic_tail_pins_crate_source_reference",
754
+ "eval.tests.test_stream_isolation.test_stderr_spans_device_noise_and_panic_tail",
755
+ "eval.tests.test_stream_isolation.test_stdout_first_line_is_free_of_frequency_digits",
756
+ "eval.tests.test_stream_isolation.test_stdout_has_no_interactive_prompt_tokens",
757
+ "eval.tests.test_stream_isolation.test_stdout_is_single_ascii_graphical_row",
758
+ "eval.tests.test_stream_isolation.test_stdout_matches_exact_wording_stripped",
759
+ "eval.tests.test_stream_isolation.test_streams_are_disjoint_domains"
760
+ ]
761
+ }
762
+ },
763
+ "commit": "b9838d078adedf4cfdfd2ae06e14972797d0ee87",
764
+ "data_source": "synthetic_programgym",
765
+ "difficulty": "easy",
766
+ "difficulty_score": 1.4323277922616042,
767
+ "eval_clean_hashes": [
768
+ "fac1d8aece5dab7fc240821e9783d1b1cbf6353a0be5e68bffde6ae3fc4cea3d"
769
+ ],
770
+ "input_record": {
771
+ "codeql_db_mb": 84.17,
772
+ "codeql_status": true,
773
+ "codeql_time": 52.83204533997923,
774
+ "commit": "b9838d078adedf4cfdfd2ae06e14972797d0ee87",
775
+ "commits": 279,
776
+ "contributors": 12,
777
+ "difficulty": "easy",
778
+ "difficulty_code_lines": 902,
779
+ "difficulty_has_tests": false,
780
+ "difficulty_product_code_lines": 902,
781
+ "difficulty_runtime_deps": 2,
782
+ "difficulty_score": 1.4323277922616042,
783
+ "difficulty_test_code_lines": 226,
784
+ "full_name": "RustAudio/dsp-chain",
785
+ "github_stars": 314,
786
+ "input_codeql_db": "rust_codeql/RustAudio__dsp-chain",
787
+ "language": "rs",
788
+ "pb_match": [
789
+ {
790
+ "pb_fullname": "sharkdp/pastel",
791
+ "rank": 980,
792
+ "similarity": 0.4516199231147766
793
+ },
794
+ {
795
+ "pb_fullname": "quinn-rs/quinn",
796
+ "rank": 575,
797
+ "similarity": 0.45038291811943054
798
+ }
799
+ ],
800
+ "repo_age": 12.13,
801
+ "repo_path": "rust/RustAudio__dsp-chain",
802
+ "rust_channel": "stable",
803
+ "rust_edition": "2018",
804
+ "rust_release_date": "2018-12-06",
805
+ "rust_version": "1.31.0",
806
+ "rust_version_source": "edition",
807
+ "source": "commit:b9838d078adedf4cfdfd2ae06e14972797d0ee87",
808
+ "status": "done",
809
+ "url": "https://github.com/RustAudio/dsp-chain"
810
+ },
811
+ "instance_id": "RustAudio__dsp-chain.b9838d0",
812
+ "language": "rust",
813
+ "module_iterations": [
814
+ {
815
+ "actual_iterations": 5,
816
+ "branch_name": "generated_module_01",
817
+ "iteration_limit": 5,
818
+ "module_index": 1,
819
+ "module_kind": "source",
820
+ "termination_reason": "early_stopping"
821
+ },
822
+ {
823
+ "actual_iterations": 5,
824
+ "branch_name": "generated_module_02",
825
+ "iteration_limit": 5,
826
+ "module_index": 2,
827
+ "module_kind": "source",
828
+ "termination_reason": "early_stopping"
829
+ },
830
+ {
831
+ "actual_iterations": 5,
832
+ "branch_name": "generated_module_03",
833
+ "iteration_limit": 5,
834
+ "module_index": 3,
835
+ "module_kind": "source",
836
+ "termination_reason": "max_iterations"
837
+ },
838
+ {
839
+ "actual_iterations": 5,
840
+ "branch_name": "generated_module_04",
841
+ "iteration_limit": 5,
842
+ "module_index": 4,
843
+ "module_kind": "source",
844
+ "termination_reason": "early_stopping"
845
+ }
846
+ ],
847
+ "repository": "RustAudio/dsp-chain"
848
+ }
rustaudio--dsp-chain.b9838d0/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
rustaudio--dsp-chain.b9838d0/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e993b56833a5c06ebc19e5e3260b2bee3fda5aa15dac712178bb466a4314e14
3
+ size 1118
rustaudio--vst3-sys.f3e8f01/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ 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"]
rustaudio--vst3-sys.f3e8f01/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rusticstuff--simdutf8.641d57f/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ 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"]
rusticstuff--simdutf8.641d57f/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ 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
 
 
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"]
rustls--rustls-native-certs.c13fbd6/environment/Dockerfile ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 synthetic ProgramGym adapter: run the agent as an unprivileged user.
50
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
51
+ # submission handed to the separate verifier. Keep the reference executable
52
+ # execute-only; the oracle temporarily restores owner read permission.
53
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
54
+ RUN mkdir -p /home/agent \
55
+ && chown -R agent:agent /home/agent /workspace \
56
+ && chown agent:agent /workspace/executable \
57
+ && chmod 111 /workspace/executable
58
+ ENV HOME=/home/agent
59
+ WORKDIR /workspace
60
+ 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"]
rustls--rustls-native-certs.c13fbd6/environment/download.sh ADDED
@@ -0,0 +1,1242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh — ProgramGym dependency prefetch stage for rustls-native-certs.
3
+ # This script is `source`d (not executed) from /source_ro with network available.
4
+ # It only downloads/prefetches Cargo dependencies and exports environment
5
+ # variables. It must NOT compile, link, test, or build the project.
6
+ #
7
+ # Strategy: rustls-native-certs is a library. Its offline build in build.sh
8
+ # produces the print-trust-anchors example, which requires the crate's full
9
+ # dependency closure (regular deps + dev-deps + target deps). To guarantee the
10
+ # offline build resolves the EXACT locked versions, we reproduce the repository
11
+ # manifest and its Cargo.lock from inline heredoc data (download.sh cannot read
12
+ # any repository file) and run `cargo fetch --locked --manifest-path` against
13
+ # the generated manifest. This populates the shared ~/.cargo/registry cache with
14
+ # every crate at its pinned version for build.sh to consume offline. Re-running
15
+ # this script is idempotent: cargo skips crates already present in the cache.
16
+
17
+ set -u
18
+
19
+ # --- Locate the network fetch work directory ---------------------------------
20
+ # Run cargo from a writable temp dir, never from the read-only /source_ro mount.
21
+ _gen_dir=$(mktemp -d "${TMPDIR:-/tmp}/rnc-fetch.XXXXXX")
22
+ export RNC_FETCH_DIR="${_gen_dir}"
23
+
24
+ # --- Generate the Cargo manifest from inline data -----------------------------
25
+ # Mirrors the repository's Cargo.toml dependency requirements so that, combined
26
+ # with the embedded Cargo.lock below and --locked, resolution matches the exact
27
+ # pinned versions used by build.sh.
28
+ cat > "${_gen_dir}/Cargo.toml" <<'RNC_MANIFEST'
29
+ [package]
30
+ name = "rustls-native-certs"
31
+ version = "0.8.4"
32
+ edition = "2021"
33
+ rust-version = "1.71"
34
+
35
+ [lib]
36
+ name = "rustls_native_certs"
37
+ path = "src/lib.rs"
38
+
39
+ [dependencies]
40
+ pki-types = { package = "rustls-pki-types", version = "1.10", features = ["std"] }
41
+
42
+ [dev-dependencies]
43
+ ring = "0.17"
44
+ rustls = "0.23"
45
+ rustls-webpki = "0.103"
46
+ serial_test = "3"
47
+ tempfile = "3.5"
48
+ untrusted = "0.9"
49
+ webpki-roots = "1"
50
+ x509-parser = "0.18"
51
+
52
+ [target.'cfg(windows)'.dependencies]
53
+ schannel = "0.1"
54
+
55
+ [target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
56
+ openssl-probe = "0.2"
57
+
58
+ [target.'cfg(target_os = "macos")'.dependencies]
59
+ security-framework = "3"
60
+ RNC_MANIFEST
61
+
62
+ # Cargo requires a [lib] target source file to exist in order to resolve the
63
+ # manifest for `cargo fetch`. It is only used for dependency resolution, so a
64
+ # minimal stub is sufficient (it is never compiled or linked).
65
+ mkdir -p "${_gen_dir}/src"
66
+ cat > "${_gen_dir}/src/lib.rs" <<'RNC_STUB'
67
+ // Stub lib target for offline dependency resolution; never compiled.
68
+ RNC_STUB
69
+
70
+ # --- Generate the Cargo.lock from inline data ---------------------------------
71
+ # A verbatim reproduction of the repository's resolved dependency graph
72
+ # (version 3). Embedding it lets `cargo fetch --locked` populate the registry
73
+ # cache with the exact versions the offline build will request.
74
+ cat > "${_gen_dir}/Cargo.lock" <<'RNC_LOCK'
75
+ # This file is automatically @generated by Cargo.
76
+ # It is not intended for manual editing.
77
+ version = 3
78
+
79
+ [[package]]
80
+ name = "anyhow"
81
+ version = "1.0.102"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
84
+
85
+ [[package]]
86
+ name = "asn1-rs"
87
+ version = "0.7.2"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "b7f43a50ac4fdca5df8e885c21b835997f0a1cdee65494a6847694a98652d9d8"
90
+ dependencies = [
91
+ "asn1-rs-derive",
92
+ "asn1-rs-impl",
93
+ "displaydoc",
94
+ "nom",
95
+ "num-traits",
96
+ "rusticata-macros",
97
+ "thiserror",
98
+ "time",
99
+ ]
100
+
101
+ [[package]]
102
+ name = "asn1-rs-derive"
103
+ version = "0.6.0"
104
+ source = "registry+https://github.com/rust-lang/crates.io-index"
105
+ checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c"
106
+ dependencies = [
107
+ "proc-macro2",
108
+ "quote",
109
+ "syn",
110
+ "synstructure",
111
+ ]
112
+
113
+ [[package]]
114
+ name = "asn1-rs-impl"
115
+ version = "0.2.0"
116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
117
+ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7"
118
+ dependencies = [
119
+ "proc-macro2",
120
+ "quote",
121
+ "syn",
122
+ ]
123
+
124
+ [[package]]
125
+ name = "autocfg"
126
+ version = "1.5.1"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
129
+
130
+ [[package]]
131
+ name = "aws-lc-rs"
132
+ version = "1.17.0"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "5ec2f1fc3ec205783a5da9a7e6c1509cc69dedf09a1949e412c1e18469326d00"
135
+ dependencies = [
136
+ "aws-lc-sys",
137
+ "zeroize",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "aws-lc-sys"
142
+ version = "0.41.0"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "1a2f9779ce85b93ab6170dd940ad0169b5766ff848247aff13bb788b832fe3f4"
145
+ dependencies = [
146
+ "cc",
147
+ "cmake",
148
+ "dunce",
149
+ "fs_extra",
150
+ ]
151
+
152
+ [[package]]
153
+ name = "bitflags"
154
+ version = "2.11.1"
155
+ source = "registry+https://github.com/rust-lang/crates.io-index"
156
+ checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
157
+
158
+ [[package]]
159
+ name = "cc"
160
+ version = "1.2.63"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "556e016178bb5662a08681bbe0f00f8e17631781a4dfc8c45e466e4b185ec27f"
163
+ dependencies = [
164
+ "find-msvc-tools",
165
+ "jobserver",
166
+ "libc",
167
+ "shlex",
168
+ ]
169
+
170
+ [[package]]
171
+ name = "cfg-if"
172
+ version = "1.0.4"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
175
+
176
+ [[package]]
177
+ name = "cmake"
178
+ version = "0.1.58"
179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
180
+ checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
181
+ dependencies = [
182
+ "cc",
183
+ ]
184
+
185
+ [[package]]
186
+ name = "core-foundation"
187
+ version = "0.10.1"
188
+ source = "registry+https://github.com/rust-lang/crates.io-index"
189
+ checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
190
+ dependencies = [
191
+ "core-foundation-sys",
192
+ "libc",
193
+ ]
194
+
195
+ [[package]]
196
+ name = "core-foundation-sys"
197
+ version = "0.8.7"
198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
199
+ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
200
+
201
+ [[package]]
202
+ name = "data-encoding"
203
+ version = "2.11.0"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8"
206
+
207
+ [[package]]
208
+ name = "der-parser"
209
+ version = "10.0.0"
210
+ source = "registry+https://github.com/rust-lang/crates.io-index"
211
+ checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6"
212
+ dependencies = [
213
+ "asn1-rs",
214
+ "displaydoc",
215
+ "nom",
216
+ "num-bigint",
217
+ "num-traits",
218
+ "rusticata-macros",
219
+ ]
220
+
221
+ [[package]]
222
+ name = "deranged"
223
+ version = "0.5.8"
224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
225
+ checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
226
+ dependencies = [
227
+ "powerfmt",
228
+ ]
229
+
230
+ [[package]]
231
+ name = "displaydoc"
232
+ version = "0.2.6"
233
+ source = "registry+https://github.com/rust-lang/crates.io-index"
234
+ checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f"
235
+ dependencies = [
236
+ "proc-macro2",
237
+ "quote",
238
+ "syn",
239
+ ]
240
+
241
+ [[package]]
242
+ name = "dunce"
243
+ version = "1.0.5"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
246
+
247
+ [[package]]
248
+ name = "equivalent"
249
+ version = "1.0.2"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
252
+
253
+ [[package]]
254
+ name = "errno"
255
+ version = "0.3.14"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
258
+ dependencies = [
259
+ "libc",
260
+ "windows-sys 0.61.2",
261
+ ]
262
+
263
+ [[package]]
264
+ name = "fastrand"
265
+ version = "2.4.1"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
268
+
269
+ [[package]]
270
+ name = "find-msvc-tools"
271
+ version = "0.1.9"
272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
273
+ checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
274
+
275
+ [[package]]
276
+ name = "foldhash"
277
+ version = "0.1.5"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
280
+
281
+ [[package]]
282
+ name = "fs_extra"
283
+ version = "1.3.0"
284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
285
+ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
286
+
287
+ [[package]]
288
+ name = "futures-core"
289
+ version = "0.3.32"
290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
291
+ checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
292
+
293
+ [[package]]
294
+ name = "futures-executor"
295
+ version = "0.3.32"
296
+ source = "registry+https://github.com/rust-lang/crates.io-index"
297
+ checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"
298
+ dependencies = [
299
+ "futures-core",
300
+ "futures-task",
301
+ "futures-util",
302
+ ]
303
+
304
+ [[package]]
305
+ name = "futures-task"
306
+ version = "0.3.32"
307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
308
+ checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
309
+
310
+ [[package]]
311
+ name = "futures-util"
312
+ version = "0.3.32"
313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
314
+ checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
315
+ dependencies = [
316
+ "futures-core",
317
+ "futures-task",
318
+ "pin-project-lite",
319
+ "slab",
320
+ ]
321
+
322
+ [[package]]
323
+ name = "getrandom"
324
+ version = "0.2.17"
325
+ source = "registry+https://github.com/rust-lang/crates.io-index"
326
+ checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
327
+ dependencies = [
328
+ "cfg-if",
329
+ "libc",
330
+ "wasi",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "getrandom"
335
+ version = "0.3.4"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
338
+ dependencies = [
339
+ "cfg-if",
340
+ "libc",
341
+ "r-efi 5.3.0",
342
+ "wasip2",
343
+ ]
344
+
345
+ [[package]]
346
+ name = "getrandom"
347
+ version = "0.4.2"
348
+ source = "registry+https://github.com/rust-lang/crates.io-index"
349
+ checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
350
+ dependencies = [
351
+ "cfg-if",
352
+ "libc",
353
+ "r-efi 6.0.0",
354
+ "wasip2",
355
+ "wasip3",
356
+ ]
357
+
358
+ [[package]]
359
+ name = "hashbrown"
360
+ version = "0.15.5"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
363
+ dependencies = [
364
+ "foldhash",
365
+ ]
366
+
367
+ [[package]]
368
+ name = "hashbrown"
369
+ version = "0.17.1"
370
+ source = "registry+https://github.com/rust-lang/crates.io-index"
371
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
372
+
373
+ [[package]]
374
+ name = "heck"
375
+ version = "0.5.0"
376
+ source = "registry+https://github.com/rust-lang/crates.io-index"
377
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
378
+
379
+ [[package]]
380
+ name = "id-arena"
381
+ version = "2.3.0"
382
+ source = "registry+https://github.com/rust-lang/crates.io-index"
383
+ checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
384
+
385
+ [[package]]
386
+ name = "indexmap"
387
+ version = "2.14.0"
388
+ source = "registry+https://github.com/rust-lang/crates.io-index"
389
+ checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
390
+ dependencies = [
391
+ "equivalent",
392
+ "hashbrown 0.17.1",
393
+ "serde",
394
+ "serde_core",
395
+ ]
396
+
397
+ [[package]]
398
+ name = "itoa"
399
+ version = "1.0.18"
400
+ source = "registry+https://github.com/rust-lang/crates.io-index"
401
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
402
+
403
+ [[package]]
404
+ name = "jobserver"
405
+ version = "0.1.34"
406
+ source = "registry+https://github.com/rust-lang/crates.io-index"
407
+ checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
408
+ dependencies = [
409
+ "getrandom 0.3.4",
410
+ "libc",
411
+ ]
412
+
413
+ [[package]]
414
+ name = "lazy_static"
415
+ version = "1.5.0"
416
+ source = "registry+https://github.com/rust-lang/crates.io-index"
417
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
418
+
419
+ [[package]]
420
+ name = "leb128fmt"
421
+ version = "0.1.0"
422
+ source = "registry+https://github.com/rust-lang/crates.io-index"
423
+ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
424
+
425
+ [[package]]
426
+ name = "libc"
427
+ version = "0.2.186"
428
+ source = "registry+https://github.com/rust-lang/crates.io-index"
429
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
430
+
431
+ [[package]]
432
+ name = "linux-raw-sys"
433
+ version = "0.12.1"
434
+ source = "registry+https://github.com/rust-lang/crates.io-index"
435
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
436
+
437
+ [[package]]
438
+ name = "lock_api"
439
+ version = "0.4.14"
440
+ source = "registry+https://github.com/rust-lang/crates.io-index"
441
+ checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
442
+ dependencies = [
443
+ "scopeguard",
444
+ ]
445
+
446
+ [[package]]
447
+ name = "log"
448
+ version = "0.4.30"
449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
450
+ checksum = "616ec5685824bcc94416c6d4a7a446eea774a31efd7062c8480ba6fd06d7a6e5"
451
+
452
+ [[package]]
453
+ name = "memchr"
454
+ version = "2.8.1"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
457
+
458
+ [[package]]
459
+ name = "minimal-lexical"
460
+ version = "0.2.1"
461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
462
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
463
+
464
+ [[package]]
465
+ name = "nom"
466
+ version = "7.1.3"
467
+ source = "registry+https://github.com/rust-lang/crates.io-index"
468
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
469
+ dependencies = [
470
+ "memchr",
471
+ "minimal-lexical",
472
+ ]
473
+
474
+ [[package]]
475
+ name = "num-bigint"
476
+ version = "0.4.6"
477
+ source = "registry+https://github.com/rust-lang/crates.io-index"
478
+ checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
479
+ dependencies = [
480
+ "num-integer",
481
+ "num-traits",
482
+ ]
483
+
484
+ [[package]]
485
+ name = "num-conv"
486
+ version = "0.2.2"
487
+ source = "registry+https://github.com/rust-lang/crates.io-index"
488
+ checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
489
+
490
+ [[package]]
491
+ name = "num-integer"
492
+ version = "0.1.46"
493
+ source = "registry+https://github.com/rust-lang/crates.io-index"
494
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
495
+ dependencies = [
496
+ "num-traits",
497
+ ]
498
+
499
+ [[package]]
500
+ name = "num-traits"
501
+ version = "0.2.19"
502
+ source = "registry+https://github.com/rust-lang/crates.io-index"
503
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
504
+ dependencies = [
505
+ "autocfg",
506
+ ]
507
+
508
+ [[package]]
509
+ name = "oid-registry"
510
+ version = "0.8.1"
511
+ source = "registry+https://github.com/rust-lang/crates.io-index"
512
+ checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7"
513
+ dependencies = [
514
+ "asn1-rs",
515
+ ]
516
+
517
+ [[package]]
518
+ name = "once_cell"
519
+ version = "1.21.4"
520
+ source = "registry+https://github.com/rust-lang/crates.io-index"
521
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
522
+
523
+ [[package]]
524
+ name = "openssl-probe"
525
+ version = "0.2.1"
526
+ source = "registry+https://github.com/rust-lang/crates.io-index"
527
+ checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
528
+
529
+ [[package]]
530
+ name = "parking_lot"
531
+ version = "0.12.5"
532
+ source = "registry+https://github.com/rust-lang/crates.io-index"
533
+ checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
534
+ dependencies = [
535
+ "lock_api",
536
+ "parking_lot_core",
537
+ ]
538
+
539
+ [[package]]
540
+ name = "parking_lot_core"
541
+ version = "0.9.12"
542
+ source = "registry+https://github.com/rust-lang/crates.io-index"
543
+ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
544
+ dependencies = [
545
+ "cfg-if",
546
+ "libc",
547
+ "redox_syscall",
548
+ "smallvec",
549
+ "windows-link",
550
+ ]
551
+
552
+ [[package]]
553
+ name = "pin-project-lite"
554
+ version = "0.2.17"
555
+ source = "registry+https://github.com/rust-lang/crates.io-index"
556
+ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
557
+
558
+ [[package]]
559
+ name = "powerfmt"
560
+ version = "0.2.0"
561
+ source = "registry+https://github.com/rust-lang/crates.io-index"
562
+ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
563
+
564
+ [[package]]
565
+ name = "prettyplease"
566
+ version = "0.2.37"
567
+ source = "registry+https://github.com/rust-lang/crates.io-index"
568
+ checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
569
+ dependencies = [
570
+ "proc-macro2",
571
+ "syn",
572
+ ]
573
+
574
+ [[package]]
575
+ name = "proc-macro2"
576
+ version = "1.0.106"
577
+ source = "registry+https://github.com/rust-lang/crates.io-index"
578
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
579
+ dependencies = [
580
+ "unicode-ident",
581
+ ]
582
+
583
+ [[package]]
584
+ name = "quote"
585
+ version = "1.0.45"
586
+ source = "registry+https://github.com/rust-lang/crates.io-index"
587
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
588
+ dependencies = [
589
+ "proc-macro2",
590
+ ]
591
+
592
+ [[package]]
593
+ name = "r-efi"
594
+ version = "5.3.0"
595
+ source = "registry+https://github.com/rust-lang/crates.io-index"
596
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
597
+
598
+ [[package]]
599
+ name = "r-efi"
600
+ version = "6.0.0"
601
+ source = "registry+https://github.com/rust-lang/crates.io-index"
602
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
603
+
604
+ [[package]]
605
+ name = "redox_syscall"
606
+ version = "0.5.18"
607
+ source = "registry+https://github.com/rust-lang/crates.io-index"
608
+ checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
609
+ dependencies = [
610
+ "bitflags",
611
+ ]
612
+
613
+ [[package]]
614
+ name = "ring"
615
+ version = "0.17.14"
616
+ source = "registry+https://github.com/rust-lang/crates.io-index"
617
+ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
618
+ dependencies = [
619
+ "cc",
620
+ "cfg-if",
621
+ "getrandom 0.2.17",
622
+ "libc",
623
+ "untrusted",
624
+ "windows-sys 0.52.0",
625
+ ]
626
+
627
+ [[package]]
628
+ name = "rusticata-macros"
629
+ version = "4.1.0"
630
+ source = "registry+https://github.com/rust-lang/crates.io-index"
631
+ checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632"
632
+ dependencies = [
633
+ "nom",
634
+ ]
635
+
636
+ [[package]]
637
+ name = "rustix"
638
+ version = "1.1.4"
639
+ source = "registry+https://github.com/rust-lang/crates.io-index"
640
+ checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
641
+ dependencies = [
642
+ "bitflags",
643
+ "errno",
644
+ "libc",
645
+ "linux-raw-sys",
646
+ "windows-sys 0.61.2",
647
+ ]
648
+
649
+ [[package]]
650
+ name = "rustls"
651
+ version = "0.23.40"
652
+ source = "registry+https://github.com/rust-lang/crates.io-index"
653
+ checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b"
654
+ dependencies = [
655
+ "aws-lc-rs",
656
+ "log",
657
+ "once_cell",
658
+ "rustls-pki-types",
659
+ "rustls-webpki",
660
+ "subtle",
661
+ "zeroize",
662
+ ]
663
+
664
+ [[package]]
665
+ name = "rustls-native-certs"
666
+ version = "0.8.4"
667
+ dependencies = [
668
+ "openssl-probe",
669
+ "ring",
670
+ "rustls",
671
+ "rustls-pki-types",
672
+ "rustls-webpki",
673
+ "schannel",
674
+ "security-framework",
675
+ "serial_test",
676
+ "tempfile",
677
+ "untrusted",
678
+ "webpki-roots",
679
+ "x509-parser",
680
+ ]
681
+
682
+ [[package]]
683
+ name = "rustls-pki-types"
684
+ version = "1.14.1"
685
+ source = "registry+https://github.com/rust-lang/crates.io-index"
686
+ checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9"
687
+ dependencies = [
688
+ "zeroize",
689
+ ]
690
+
691
+ [[package]]
692
+ name = "rustls-webpki"
693
+ version = "0.103.13"
694
+ source = "registry+https://github.com/rust-lang/crates.io-index"
695
+ checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
696
+ dependencies = [
697
+ "aws-lc-rs",
698
+ "ring",
699
+ "rustls-pki-types",
700
+ "untrusted",
701
+ ]
702
+
703
+ [[package]]
704
+ name = "schannel"
705
+ version = "0.1.29"
706
+ source = "registry+https://github.com/rust-lang/crates.io-index"
707
+ checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
708
+ dependencies = [
709
+ "windows-sys 0.61.2",
710
+ ]
711
+
712
+ [[package]]
713
+ name = "scopeguard"
714
+ version = "1.2.0"
715
+ source = "registry+https://github.com/rust-lang/crates.io-index"
716
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
717
+
718
+ [[package]]
719
+ name = "security-framework"
720
+ version = "3.5.1"
721
+ source = "registry+https://github.com/rust-lang/crates.io-index"
722
+ checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef"
723
+ dependencies = [
724
+ "bitflags",
725
+ "core-foundation",
726
+ "core-foundation-sys",
727
+ "libc",
728
+ "security-framework-sys",
729
+ ]
730
+
731
+ [[package]]
732
+ name = "security-framework-sys"
733
+ version = "2.17.0"
734
+ source = "registry+https://github.com/rust-lang/crates.io-index"
735
+ checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
736
+ dependencies = [
737
+ "core-foundation-sys",
738
+ "libc",
739
+ ]
740
+
741
+ [[package]]
742
+ name = "semver"
743
+ version = "1.0.28"
744
+ source = "registry+https://github.com/rust-lang/crates.io-index"
745
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
746
+
747
+ [[package]]
748
+ name = "serde"
749
+ version = "1.0.228"
750
+ source = "registry+https://github.com/rust-lang/crates.io-index"
751
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
752
+ dependencies = [
753
+ "serde_core",
754
+ ]
755
+
756
+ [[package]]
757
+ name = "serde_core"
758
+ version = "1.0.228"
759
+ source = "registry+https://github.com/rust-lang/crates.io-index"
760
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
761
+ dependencies = [
762
+ "serde_derive",
763
+ ]
764
+
765
+ [[package]]
766
+ name = "serde_derive"
767
+ version = "1.0.228"
768
+ source = "registry+https://github.com/rust-lang/crates.io-index"
769
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
770
+ dependencies = [
771
+ "proc-macro2",
772
+ "quote",
773
+ "syn",
774
+ ]
775
+
776
+ [[package]]
777
+ name = "serde_json"
778
+ version = "1.0.150"
779
+ source = "registry+https://github.com/rust-lang/crates.io-index"
780
+ checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
781
+ dependencies = [
782
+ "itoa",
783
+ "memchr",
784
+ "serde",
785
+ "serde_core",
786
+ "zmij",
787
+ ]
788
+
789
+ [[package]]
790
+ name = "serial_test"
791
+ version = "3.5.0"
792
+ source = "registry+https://github.com/rust-lang/crates.io-index"
793
+ checksum = "699f4197115b8a7e7ff19c9a315a4bd6fffec26cc4626ef45ecaea389e081c6d"
794
+ dependencies = [
795
+ "futures-executor",
796
+ "futures-util",
797
+ "log",
798
+ "once_cell",
799
+ "parking_lot",
800
+ "serial_test_derive",
801
+ ]
802
+
803
+ [[package]]
804
+ name = "serial_test_derive"
805
+ version = "3.5.0"
806
+ source = "registry+https://github.com/rust-lang/crates.io-index"
807
+ checksum = "94e153fc76e1c6a068703d6d29c508a0b15c061c4b7e43da59cc097bc342673c"
808
+ dependencies = [
809
+ "proc-macro2",
810
+ "quote",
811
+ "syn",
812
+ ]
813
+
814
+ [[package]]
815
+ name = "shlex"
816
+ version = "2.0.1"
817
+ source = "registry+https://github.com/rust-lang/crates.io-index"
818
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
819
+
820
+ [[package]]
821
+ name = "slab"
822
+ version = "0.4.12"
823
+ source = "registry+https://github.com/rust-lang/crates.io-index"
824
+ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
825
+
826
+ [[package]]
827
+ name = "smallvec"
828
+ version = "1.15.1"
829
+ source = "registry+https://github.com/rust-lang/crates.io-index"
830
+ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
831
+
832
+ [[package]]
833
+ name = "subtle"
834
+ version = "2.6.1"
835
+ source = "registry+https://github.com/rust-lang/crates.io-index"
836
+ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
837
+
838
+ [[package]]
839
+ name = "syn"
840
+ version = "2.0.117"
841
+ source = "registry+https://github.com/rust-lang/crates.io-index"
842
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
843
+ dependencies = [
844
+ "proc-macro2",
845
+ "quote",
846
+ "unicode-ident",
847
+ ]
848
+
849
+ [[package]]
850
+ name = "synstructure"
851
+ version = "0.13.2"
852
+ source = "registry+https://github.com/rust-lang/crates.io-index"
853
+ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
854
+ dependencies = [
855
+ "proc-macro2",
856
+ "quote",
857
+ "syn",
858
+ ]
859
+
860
+ [[package]]
861
+ name = "tempfile"
862
+ version = "3.27.0"
863
+ source = "registry+https://github.com/rust-lang/crates.io-index"
864
+ checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
865
+ dependencies = [
866
+ "fastrand",
867
+ "getrandom 0.4.2",
868
+ "once_cell",
869
+ "rustix",
870
+ "windows-sys 0.61.2",
871
+ ]
872
+
873
+ [[package]]
874
+ name = "thiserror"
875
+ version = "2.0.18"
876
+ source = "registry+https://github.com/rust-lang/crates.io-index"
877
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
878
+ dependencies = [
879
+ "thiserror-impl",
880
+ ]
881
+
882
+ [[package]]
883
+ name = "thiserror-impl"
884
+ version = "2.0.18"
885
+ source = "registry+https://github.com/rust-lang/crates.io-index"
886
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
887
+ dependencies = [
888
+ "proc-macro2",
889
+ "quote",
890
+ "syn",
891
+ ]
892
+
893
+ [[package]]
894
+ name = "time"
895
+ version = "0.3.47"
896
+ source = "registry+https://github.com/rust-lang/crates.io-index"
897
+ checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c"
898
+ dependencies = [
899
+ "deranged",
900
+ "itoa",
901
+ "num-conv",
902
+ "powerfmt",
903
+ "serde_core",
904
+ "time-core",
905
+ "time-macros",
906
+ ]
907
+
908
+ [[package]]
909
+ name = "time-core"
910
+ version = "0.1.8"
911
+ source = "registry+https://github.com/rust-lang/crates.io-index"
912
+ checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca"
913
+
914
+ [[package]]
915
+ name = "time-macros"
916
+ version = "0.2.27"
917
+ source = "registry+https://github.com/rust-lang/crates.io-index"
918
+ checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215"
919
+ dependencies = [
920
+ "num-conv",
921
+ "time-core",
922
+ ]
923
+
924
+ [[package]]
925
+ name = "unicode-ident"
926
+ version = "1.0.24"
927
+ source = "registry+https://github.com/rust-lang/crates.io-index"
928
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
929
+
930
+ [[package]]
931
+ name = "unicode-xid"
932
+ version = "0.2.6"
933
+ source = "registry+https://github.com/rust-lang/crates.io-index"
934
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
935
+
936
+ [[package]]
937
+ name = "untrusted"
938
+ version = "0.9.0"
939
+ source = "registry+https://github.com/rust-lang/crates.io-index"
940
+ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
941
+
942
+ [[package]]
943
+ name = "wasi"
944
+ version = "0.11.1+wasi-snapshot-preview1"
945
+ source = "registry+https://github.com/rust-lang/crates.io-index"
946
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
947
+
948
+ [[package]]
949
+ name = "wasip2"
950
+ version = "1.0.3+wasi-0.2.9"
951
+ source = "registry+https://github.com/rust-lang/crates.io-index"
952
+ checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
953
+ dependencies = [
954
+ "wit-bindgen 0.57.1",
955
+ ]
956
+
957
+ [[package]]
958
+ name = "wasip3"
959
+ version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
960
+ source = "registry+https://github.com/rust-lang/crates.io-index"
961
+ checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
962
+ dependencies = [
963
+ "wit-bindgen 0.51.0",
964
+ ]
965
+
966
+ [[package]]
967
+ name = "wasm-encoder"
968
+ version = "0.244.0"
969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
970
+ checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
971
+ dependencies = [
972
+ "leb128fmt",
973
+ "wasmparser",
974
+ ]
975
+
976
+ [[package]]
977
+ name = "wasm-metadata"
978
+ version = "0.244.0"
979
+ source = "registry+https://github.com/rust-lang/crates.io-index"
980
+ checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
981
+ dependencies = [
982
+ "anyhow",
983
+ "indexmap",
984
+ "wasm-encoder",
985
+ "wasmparser",
986
+ ]
987
+
988
+ [[package]]
989
+ name = "wasmparser"
990
+ version = "0.244.0"
991
+ source = "registry+https://github.com/rust-lang/crates.io-index"
992
+ checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
993
+ dependencies = [
994
+ "bitflags",
995
+ "hashbrown 0.15.5",
996
+ "indexmap",
997
+ "semver",
998
+ ]
999
+
1000
+ [[package]]
1001
+ name = "webpki-roots"
1002
+ version = "1.0.8"
1003
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1004
+ checksum = "bf85cb06032201fa7c6f829d7db5a7e5aa45bcc0655327713065f6f0576731bf"
1005
+ dependencies = [
1006
+ "rustls-pki-types",
1007
+ ]
1008
+
1009
+ [[package]]
1010
+ name = "windows-link"
1011
+ version = "0.2.1"
1012
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1013
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
1014
+
1015
+ [[package]]
1016
+ name = "windows-sys"
1017
+ version = "0.52.0"
1018
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1019
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1020
+ dependencies = [
1021
+ "windows-targets",
1022
+ ]
1023
+
1024
+ [[package]]
1025
+ name = "windows-sys"
1026
+ version = "0.61.2"
1027
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1028
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
1029
+ dependencies = [
1030
+ "windows-link",
1031
+ ]
1032
+
1033
+ [[package]]
1034
+ name = "windows-targets"
1035
+ version = "0.52.6"
1036
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1037
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1038
+ dependencies = [
1039
+ "windows_aarch64_gnullvm",
1040
+ "windows_aarch64_msvc",
1041
+ "windows_i686_gnu",
1042
+ "windows_i686_gnullvm",
1043
+ "windows_i686_msvc",
1044
+ "windows_x86_64_gnu",
1045
+ "windows_x86_64_gnullvm",
1046
+ "windows_x86_64_msvc",
1047
+ ]
1048
+
1049
+ [[package]]
1050
+ name = "windows_aarch64_gnullvm"
1051
+ version = "0.52.6"
1052
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1053
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1054
+
1055
+ [[package]]
1056
+ name = "windows_aarch64_msvc"
1057
+ version = "0.52.6"
1058
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1059
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1060
+
1061
+ [[package]]
1062
+ name = "windows_i686_gnu"
1063
+ version = "0.52.6"
1064
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1065
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1066
+
1067
+ [[package]]
1068
+ name = "windows_i686_gnullvm"
1069
+ version = "0.52.6"
1070
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1071
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1072
+
1073
+ [[package]]
1074
+ name = "windows_i686_msvc"
1075
+ version = "0.52.6"
1076
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1077
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1078
+
1079
+ [[package]]
1080
+ name = "windows_x86_64_gnu"
1081
+ version = "0.52.6"
1082
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1083
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1084
+
1085
+ [[package]]
1086
+ name = "windows_x86_64_gnullvm"
1087
+ version = "0.52.6"
1088
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1089
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1090
+
1091
+ [[package]]
1092
+ name = "windows_x86_64_msvc"
1093
+ version = "0.52.6"
1094
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1095
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1096
+
1097
+ [[package]]
1098
+ name = "wit-bindgen"
1099
+ version = "0.51.0"
1100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1101
+ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
1102
+ dependencies = [
1103
+ "wit-bindgen-rust-macro",
1104
+ ]
1105
+
1106
+ [[package]]
1107
+ name = "wit-bindgen"
1108
+ version = "0.57.1"
1109
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1110
+ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
1111
+
1112
+ [[package]]
1113
+ name = "wit-bindgen-core"
1114
+ version = "0.51.0"
1115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1116
+ checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
1117
+ dependencies = [
1118
+ "anyhow",
1119
+ "heck",
1120
+ "wit-parser",
1121
+ ]
1122
+
1123
+ [[package]]
1124
+ name = "wit-bindgen-rust"
1125
+ version = "0.51.0"
1126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1127
+ checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
1128
+ dependencies = [
1129
+ "anyhow",
1130
+ "heck",
1131
+ "indexmap",
1132
+ "prettyplease",
1133
+ "syn",
1134
+ "wasm-metadata",
1135
+ "wit-bindgen-core",
1136
+ "wit-component",
1137
+ ]
1138
+
1139
+ [[package]]
1140
+ name = "wit-bindgen-rust-macro"
1141
+ version = "0.51.0"
1142
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1143
+ checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
1144
+ dependencies = [
1145
+ "anyhow",
1146
+ "prettyplease",
1147
+ "proc-macro2",
1148
+ "quote",
1149
+ "syn",
1150
+ "wit-bindgen-core",
1151
+ "wit-bindgen-rust",
1152
+ ]
1153
+
1154
+ [[package]]
1155
+ name = "wit-component"
1156
+ version = "0.244.0"
1157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1158
+ checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
1159
+ dependencies = [
1160
+ "anyhow",
1161
+ "bitflags",
1162
+ "indexmap",
1163
+ "log",
1164
+ "serde",
1165
+ "serde_derive",
1166
+ "serde_json",
1167
+ "wasm-encoder",
1168
+ "wasm-metadata",
1169
+ "wasmparser",
1170
+ "wit-parser",
1171
+ ]
1172
+
1173
+ [[package]]
1174
+ name = "wit-parser"
1175
+ version = "0.244.0"
1176
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1177
+ checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
1178
+ dependencies = [
1179
+ "anyhow",
1180
+ "id-arena",
1181
+ "indexmap",
1182
+ "log",
1183
+ "semver",
1184
+ "serde",
1185
+ "serde_derive",
1186
+ "serde_json",
1187
+ "unicode-xid",
1188
+ "wasmparser",
1189
+ ]
1190
+
1191
+ [[package]]
1192
+ name = "x509-parser"
1193
+ version = "0.18.1"
1194
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1195
+ checksum = "d43b0f71ce057da06bc0851b23ee24f3f86190b07203dd8f567d0b706a185202"
1196
+ dependencies = [
1197
+ "asn1-rs",
1198
+ "data-encoding",
1199
+ "der-parser",
1200
+ "lazy_static",
1201
+ "nom",
1202
+ "oid-registry",
1203
+ "rusticata-macros",
1204
+ "thiserror",
1205
+ "time",
1206
+ ]
1207
+
1208
+ [[package]]
1209
+ name = "zeroize"
1210
+ version = "1.8.2"
1211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1212
+ checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
1213
+
1214
+ [[package]]
1215
+ name = "zmij"
1216
+ version = "1.0.21"
1217
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1218
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
1219
+ RNC_LOCK
1220
+
1221
+ # --- Prefetch all dependencies into the shared Cargo cache --------------------
1222
+ # Run cargo only against the generated manifest in the temp dir. This populates
1223
+ # ~/.cargo/registry (the CARGO_HOME visible to build.sh) so the offline build
1224
+ # can resolve every crate without network.
1225
+ cargo fetch --locked --manifest-path "${_gen_dir}/Cargo.toml"
1226
+ _rc=$?
1227
+ if [ "${_rc}" -ne 0 ]; then
1228
+ echo "download.sh: cargo fetch failed with exit code ${_rc}" >&2
1229
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
1230
+ return 1
1231
+ else
1232
+ exit 1
1233
+ fi
1234
+ fi
1235
+
1236
+ # --- Export build-time environment variables -----------------------------------
1237
+ # build.sh builds the library + print-trust-anchors example into the repo-local
1238
+ # target dir. These exports carry over into the current shell when sourced.
1239
+ export RNC_CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-target}"
1240
+ export RNC_OFFLINE="1"
1241
+
1242
+ echo "download.sh: rustls-native-certs Cargo dependencies prefetched into Cargo registry cache."
rustls--rustls-native-certs.c13fbd6/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be0b74c8920f4915e138a6c1e08072c61940423498c4e1db7f922a8ce4b1d72e
3
+ size 15783800
rustls--rustls-native-certs.c13fbd6/environment/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
rustls--rustls-native-certs.c13fbd6/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4f4cb9b4b98e1d16f297af8d970171902c5b83638a62cc8f634a4751869727b
3
+ size 8825
rustls--rustls-native-certs.c13fbd6/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