Marquis03 commited on
Commit
f8abcba
·
verified ·
1 Parent(s): 640caea

commit (part 56)

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 +10 -0
  2. hybridgroup--gort.4b56fad/environment/Dockerfile +1 -0
  3. hybridgroup--gort.4b56fad/tests/Dockerfile +1 -0
  4. hydro-project--rust-sitter.c262f29/environment/Dockerfile +60 -0
  5. hydro-project--rust-sitter.c262f29/environment/download.sh +180 -0
  6. hydro-project--rust-sitter.c262f29/environment/executable +3 -0
  7. hydro-project--rust-sitter.c262f29/environment/harbor_prepare_download_env.sh +37 -0
  8. hydro-project--rust-sitter.c262f29/environment/workspace.tar.gz +3 -0
  9. hydro-project--rust-sitter.c262f29/instruction.md +98 -0
  10. hydro-project--rust-sitter.c262f29/solution/solve.sh +33 -0
  11. hydro-project--rust-sitter.c262f29/task.toml +69 -0
  12. hydro-project--rust-sitter.c262f29/tests/Dockerfile +69 -0
  13. hydro-project--rust-sitter.c262f29/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  14. hydro-project--rust-sitter.c262f29/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  15. hydro-project--rust-sitter.c262f29/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  16. hydro-project--rust-sitter.c262f29/tests/download.sh +180 -0
  17. hydro-project--rust-sitter.c262f29/tests/executable +3 -0
  18. hydro-project--rust-sitter.c262f29/tests/harbor_prepare_download_env.sh +37 -0
  19. hydro-project--rust-sitter.c262f29/tests/programgym_evaluator.py +1201 -0
  20. hydro-project--rust-sitter.c262f29/tests/programgym_task.json +809 -0
  21. hydro-project--rust-sitter.c262f29/tests/test.sh +82 -0
  22. hydro-project--rust-sitter.c262f29/tests/workspace.tar.gz +3 -0
  23. hyperboloide--lk.b291812/environment/Dockerfile +1 -0
  24. hyperboloide--lk.b291812/tests/Dockerfile +1 -0
  25. hyperion-cs--dpi-checkers.4420e07/environment/Dockerfile +61 -0
  26. hyperion-cs--dpi-checkers.4420e07/environment/download.sh +368 -0
  27. hyperion-cs--dpi-checkers.4420e07/environment/executable +3 -0
  28. hyperion-cs--dpi-checkers.4420e07/environment/programgym-go.tar.gz +3 -0
  29. hyperion-cs--dpi-checkers.4420e07/environment/workspace.tar.gz +3 -0
  30. hyperion-cs--dpi-checkers.4420e07/instruction.md +98 -0
  31. hyperion-cs--dpi-checkers.4420e07/solution/solve.sh +33 -0
  32. hyperion-cs--dpi-checkers.4420e07/task.toml +69 -0
  33. hyperion-cs--dpi-checkers.4420e07/tests/Dockerfile +69 -0
  34. hyperion-cs--dpi-checkers.4420e07/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  35. hyperion-cs--dpi-checkers.4420e07/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  36. hyperion-cs--dpi-checkers.4420e07/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  37. hyperion-cs--dpi-checkers.4420e07/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  38. hyperion-cs--dpi-checkers.4420e07/tests/download.sh +368 -0
  39. hyperion-cs--dpi-checkers.4420e07/tests/executable +3 -0
  40. hyperion-cs--dpi-checkers.4420e07/tests/programgym-go.tar.gz +3 -0
  41. hyperion-cs--dpi-checkers.4420e07/tests/programgym_evaluator.py +1201 -0
  42. hyperion-cs--dpi-checkers.4420e07/tests/programgym_task.json +268 -0
  43. hyperion-cs--dpi-checkers.4420e07/tests/test.sh +82 -0
  44. hyperion-cs--dpi-checkers.4420e07/tests/workspace.tar.gz +3 -0
  45. i5ting--learn-rust-for-fe.678e26a/environment/Dockerfile +60 -0
  46. i5ting--learn-rust-for-fe.678e26a/environment/download.sh +2041 -0
  47. i5ting--learn-rust-for-fe.678e26a/environment/executable +3 -0
  48. i5ting--learn-rust-for-fe.678e26a/environment/harbor_prepare_download_env.sh +37 -0
  49. i5ting--learn-rust-for-fe.678e26a/environment/workspace.tar.gz +3 -0
  50. i5ting--learn-rust-for-fe.678e26a/instruction.md +98 -0
.gitattributes CHANGED
@@ -3324,3 +3324,13 @@ huderlem--poryscript.d9bc56b/environment/executable filter=lfs diff=lfs merge=lf
3324
  huderlem--poryscript.d9bc56b/tests/executable filter=lfs diff=lfs merge=lfs -text
3325
  hugo-dz--spritefusion-pixel-snapper.5c20a0f/environment/executable filter=lfs diff=lfs merge=lfs -text
3326
  hugo-dz--spritefusion-pixel-snapper.5c20a0f/tests/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
3324
  huderlem--poryscript.d9bc56b/tests/executable filter=lfs diff=lfs merge=lfs -text
3325
  hugo-dz--spritefusion-pixel-snapper.5c20a0f/environment/executable filter=lfs diff=lfs merge=lfs -text
3326
  hugo-dz--spritefusion-pixel-snapper.5c20a0f/tests/executable filter=lfs diff=lfs merge=lfs -text
3327
+ hydro-project--rust-sitter.c262f29/environment/executable filter=lfs diff=lfs merge=lfs -text
3328
+ hydro-project--rust-sitter.c262f29/tests/executable filter=lfs diff=lfs merge=lfs -text
3329
+ hyperion-cs--dpi-checkers.4420e07/environment/executable filter=lfs diff=lfs merge=lfs -text
3330
+ hyperion-cs--dpi-checkers.4420e07/tests/executable filter=lfs diff=lfs merge=lfs -text
3331
+ i5ting--learn-rust-for-fe.678e26a/environment/executable filter=lfs diff=lfs merge=lfs -text
3332
+ i5ting--learn-rust-for-fe.678e26a/tests/executable filter=lfs diff=lfs merge=lfs -text
3333
+ iangcarroll--cookiemonster.074e770/environment/executable filter=lfs diff=lfs merge=lfs -text
3334
+ iangcarroll--cookiemonster.074e770/tests/executable filter=lfs diff=lfs merge=lfs -text
3335
+ icecrime--poule.8fb4044/environment/executable filter=lfs diff=lfs merge=lfs -text
3336
+ icecrime--poule.8fb4044/tests/executable filter=lfs diff=lfs merge=lfs -text
hybridgroup--gort.4b56fad/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"]
hybridgroup--gort.4b56fad/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"]
hydro-project--rust-sitter.c262f29/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"]
hydro-project--rust-sitter.c262f29/environment/download.sh ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # ProgramGym download.sh for hydro-project/rust-sitter
3
+ #
4
+ # Standalone dependency prefetch for the offline build of the
5
+ # rust-sitter-example demo binary. It is sourced (source /source_ro/download.sh)
6
+ # so it must be source-safe and idempotent, and it must NOT compile, link,
7
+ # test, package, or install any built artifacts. It only resolves the Cargo
8
+ # dependency graph into the local cargo cache using a manifest generated from
9
+ # inline data, so that build.sh can later run `cargo build --offline`.
10
+ #
11
+ # This file is a standalone single source: it never reads repository files
12
+ # (Cargo.toml / Cargo.lock are not available during the download stage). All
13
+ # dependency versions are pinned inline below to the EXACT versions recorded in
14
+ # the repository's committed Cargo.lock.
15
+ #
16
+ # The exact-pin strategy matters: the offline build runs against the
17
+ # repository's own committed Cargo.lock. Cargo resolves `cargo fetch` from the
18
+ # generated manifest *without* that lock, so loose `^` constraints would pull
19
+ # the newest matching crates, leaving the cached set mismatched with the locked
20
+ # versions the offline build needs. Every crate below is therefore pinned with
21
+ # an `=` exact version taken from the committed Cargo.lock so the prefetched
22
+ # cache is byte-for-byte the set the offline build resolves.
23
+
24
+ # Use a fixed, literal scratch directory so the generated manifest path is
25
+ # statically verifiable and never collides with the read-only repo root.
26
+ pbfetch_dir="/tmp/rust-sitter-fetch"
27
+ mkdir -p "$pbfetch_dir/src"
28
+
29
+ manifest="$pbfetch_dir/Cargo.toml"
30
+ cat > "$manifest" <<'TOML'
31
+ [package]
32
+ name = "rust-sitter-fetch"
33
+ version = "0.0.0"
34
+ edition = "2021"
35
+
36
+ [lib]
37
+ path = "src/lib.rs"
38
+
39
+ # Exact (=) version pins of the full transitive external-crate closure recorded
40
+ # in the repository Cargo.lock. Duplicate crate versions are disambiguated with
41
+ # renamed deps (syn 1 vs syn 2).
42
+ [dependencies]
43
+ aho-corasick = "=1.1.3"
44
+ anyhow = "=1.0.96"
45
+ bitflags = "=2.8.0"
46
+ bumpalo = "=3.17.0"
47
+ c2rust-bitfields = "=0.3.0"
48
+ c2rust-bitfields-derive = "=0.2.1"
49
+ cc = "=1.2.14"
50
+ cfg-if = "=1.0.0"
51
+ codemap = "=0.1.3"
52
+ codemap-diagnostic = "=0.1.2"
53
+ console = "=0.15.10"
54
+ displaydoc = "=0.2.5"
55
+ encode_unicode = "=1.0.0"
56
+ equivalent = "=1.0.2"
57
+ errno = "=0.3.10"
58
+ fastrand = "=2.3.0"
59
+ form_urlencoded = "=1.2.1"
60
+ getrandom = "=0.3.1"
61
+ hashbrown = "=0.15.2"
62
+ heck = "=0.5.0"
63
+ icu_collections = "=1.5.0"
64
+ icu_locid = "=1.5.0"
65
+ icu_locid_transform = "=1.5.0"
66
+ icu_locid_transform_data = "=1.5.0"
67
+ icu_normalizer = "=1.5.0"
68
+ icu_normalizer_data = "=1.5.0"
69
+ icu_properties = "=1.5.1"
70
+ icu_properties_data = "=1.5.0"
71
+ icu_provider = "=1.5.0"
72
+ icu_provider_macros = "=1.5.0"
73
+ idna = "=1.0.3"
74
+ idna_adapter = "=1.2.0"
75
+ indexmap = "=2.7.1"
76
+ indoc = "=2.0.5"
77
+ insta = "=1.42.1"
78
+ itoa = "=1.0.14"
79
+ js-sys = "=0.3.77"
80
+ libc = "=0.2.169"
81
+ linked-hash-map = "=0.5.6"
82
+ linux-raw-sys = "=0.4.15"
83
+ litemap = "=0.7.4"
84
+ log = "=0.4.25"
85
+ memchr = "=2.7.4"
86
+ minicov = "=0.3.7"
87
+ once_cell = "=1.20.3"
88
+ percent-encoding = "=2.3.1"
89
+ pin-project = "=1.1.9"
90
+ pin-project-internal = "=1.1.9"
91
+ proc-macro2 = "=1.0.93"
92
+ quote = "=1.0.38"
93
+ regex = "=1.11.1"
94
+ regex-automata = "=0.4.9"
95
+ regex-syntax = "=0.8.5"
96
+ rustc-hash = "=2.1.1"
97
+ rustix = "=0.38.44"
98
+ ryu = "=1.0.19"
99
+ same-file = "=1.0.6"
100
+ semver = "=1.0.25"
101
+ serde = "=1.0.218"
102
+ serde_derive = "=1.0.218"
103
+ serde_json = "=1.0.139"
104
+ shlex = "=1.3.0"
105
+ similar = "=2.7.0"
106
+ smallbitvec = "=2.6.0"
107
+ smallvec = "=1.14.0"
108
+ stable_deref_trait = "=1.2.0"
109
+ streaming-iterator = "=0.1.9"
110
+ syn-inline-mod = "=0.6.0"
111
+ synstructure = "=0.13.1"
112
+ tempfile = "=3.17.1"
113
+ termcolor = "=1.4.1"
114
+ thiserror = "=2.0.11"
115
+ thiserror-impl = "=2.0.11"
116
+ tinystr = "=0.7.6"
117
+ tree-sitter = "=0.25.2"
118
+ tree-sitter-c2rust = "=0.25.2"
119
+ tree-sitter-generate = "=0.25.1"
120
+ tree-sitter-language = "=0.1.5"
121
+ unicode-ident = "=1.0.17"
122
+ url = "=2.5.4"
123
+ utf16_iter = "=1.0.5"
124
+ utf8_iter = "=1.0.4"
125
+ walkdir = "=2.5.0"
126
+ wasi = "=0.13.3+wasi-0.2.2"
127
+ wasm-bindgen = "=0.2.100"
128
+ wasm-bindgen-backend = "=0.2.100"
129
+ wasm-bindgen-futures = "=0.4.50"
130
+ wasm-bindgen-macro = "=0.2.100"
131
+ wasm-bindgen-macro-support = "=0.2.100"
132
+ wasm-bindgen-shared = "=0.2.100"
133
+ wasm-bindgen-test = "=0.3.50"
134
+ wasm-bindgen-test-macro = "=0.3.50"
135
+ web-sys = "=0.3.77"
136
+ winapi-util = "=0.1.9"
137
+ windows-sys = "=0.59.0"
138
+ windows-targets = "=0.52.6"
139
+ windows_aarch64_gnullvm = "=0.52.6"
140
+ windows_aarch64_msvc = "=0.52.6"
141
+ windows_i686_gnu = "=0.52.6"
142
+ windows_i686_gnullvm = "=0.52.6"
143
+ windows_i686_msvc = "=0.52.6"
144
+ windows_x86_64_gnu = "=0.52.6"
145
+ windows_x86_64_gnullvm = "=0.52.6"
146
+ windows_x86_64_msvc = "=0.52.6"
147
+ wit-bindgen-rt = "=0.33.0"
148
+ write16 = "=1.0.0"
149
+ writeable = "=0.5.5"
150
+ yoke = "=0.7.5"
151
+ yoke-derive = "=0.7.5"
152
+ zerofrom = "=0.1.5"
153
+ zerofrom-derive = "=0.1.5"
154
+ zerovec = "=0.10.4"
155
+ zerovec-derive = "=0.10.3"
156
+
157
+ # Duplicate crate versions are not allowed as two plain deps with the same
158
+ # name; use the same registry crate under two renamed keys to cover both
159
+ # locked syn versions.
160
+ syn_1 = { package = "syn", version = "=1.0.109" }
161
+ syn_2 = { package = "syn", version = "=2.0.98" }
162
+
163
+ [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
164
+ wasm-bindgen-test = "=0.3.50"
165
+ TOML
166
+
167
+ # The generated manifest declares a [lib]; provide the matching minimal stub so
168
+ # cargo can resolve the dependency graph (only dependency resolution/fetching
169
+ # happens here, never compilation of these temporary sources).
170
+ cat > "$pbfetch_dir/src/lib.rs" <<'RS'
171
+ // Empty stub: this temporary crate exists only so `cargo fetch` can resolve
172
+ // and prefetch the dependency graph. It is never built.
173
+ pub fn pbfetch_stub() {}
174
+ RS
175
+
176
+ # Fetch the full dependency graph into the local cargo cache. Run with an
177
+ # explicit --manifest-path pointing at the inline-generated manifest above, from
178
+ # a writable scratch dir, never from the read-only repository root or
179
+ # /source_ro. Idempotent: cargo reuses already-cached crates.
180
+ cargo fetch --manifest-path "$pbfetch_dir/Cargo.toml"
hydro-project--rust-sitter.c262f29/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa4b171821e5ff4b17ded0694a9189bf6e01d67afb7fe98f29347d173ce79ab1
3
+ size 863992
hydro-project--rust-sitter.c262f29/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
hydro-project--rust-sitter.c262f29/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e8ba49bc3c19532a73122bd1585aa0f3d95d1b3bae7afe3c0669f7c90ef9530
3
+ size 6402
hydro-project--rust-sitter.c262f29/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
hydro-project--rust-sitter.c262f29/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
hydro-project--rust-sitter.c262f29/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/hydro-project--rust-sitter.c262f29"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for hydro-project/rust-sitter"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "hydro-project__rust-sitter.c262f29"
32
+ repository = "hydro-project/rust-sitter"
33
+ commit = "c262f29b816eb66b2a9777dca1c9f67f94de6bc9"
34
+ language = "rust"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.3818367999983434
37
+ test_branches = 3
38
+ test_count = 542
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"
hydro-project--rust-sitter.c262f29/tests/Dockerfile ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
14
+ ENV npm_config_registry="https://registry.npmjs.org/"
15
+ ENV npm_config_strict_ssl=false
16
+ ENV npm_config_cache=/workspace/.cache/npm
17
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
18
+ ENV PIP_TRUSTED_HOST=""
19
+ ENV HOME=/workspace
20
+ ENV XDG_CACHE_HOME=/workspace/.cache
21
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
22
+ ENV PYTHONUSERBASE=/workspace/.local
23
+ ENV CARGO_HOME=/usr/local/cargo
24
+ ENV RUSTUP_HOME=/usr/local/rustup
25
+ ENV RUSTUP_TOOLCHAIN=1.97.1
26
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
27
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
28
+ ENV PAGER=cat
29
+ ENV MANPAGER=cat
30
+ ENV LESS=-R
31
+ ENV TQDM_DISABLE=1
32
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
33
+ RUN rustup component add llvm-tools-preview --toolchain 1.97.1
34
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
35
+ RUN rustc --version && cargo --version && rustup show active-toolchain
36
+ WORKDIR /workspace
37
+ ADD workspace.tar.gz /workspace/
38
+ COPY executable /workspace/executable
39
+ COPY download.sh /tmp/programgym-download.sh
40
+ RUN chmod 755 /tmp/programgym-download.sh
41
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
42
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
43
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
44
+ && rm -f /tmp/programgym-download.sh \
45
+ && rm -f /tmp/harbor_prepare_download_env.sh
46
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
47
+ RUN chmod 111 /workspace/executable
48
+ WORKDIR /workspace
49
+ # Harbor uses tests/ as the separate verifier build context. Start with the
50
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
51
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
52
+ && mkdir -p /workspace /tests
53
+
54
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
55
+ # Installing a newer pytest alone leaves that apt package importable and creates
56
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
57
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
58
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
59
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
60
+ RUN python3 -m pip install --break-system-packages \
61
+ --no-cache-dir --disable-pip-version-check \
62
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
63
+
64
+ COPY test.sh /tests/test.sh
65
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
66
+ COPY programgym_task.json /tests/programgym_task.json
67
+ COPY blobs/ /tests/blobs/
68
+ RUN chmod +x /tests/test.sh
69
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
hydro-project--rust-sitter.c262f29/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:99c95b36aca3d64696def705bf2336c87002d01d98d18868328b203df6fa9339
3
+ size 16421
hydro-project--rust-sitter.c262f29/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:c3ae21c279b878cd13734df0b41334aae15f696e87a4c931e3a759cd3dfeb6e9
3
+ size 21892
hydro-project--rust-sitter.c262f29/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:eabe58cbca5cb6449ee9b313ec93fc03c2be6a7ff234a54f87b16da540780d67
3
+ size 17998
hydro-project--rust-sitter.c262f29/tests/download.sh ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # ProgramGym download.sh for hydro-project/rust-sitter
3
+ #
4
+ # Standalone dependency prefetch for the offline build of the
5
+ # rust-sitter-example demo binary. It is sourced (source /source_ro/download.sh)
6
+ # so it must be source-safe and idempotent, and it must NOT compile, link,
7
+ # test, package, or install any built artifacts. It only resolves the Cargo
8
+ # dependency graph into the local cargo cache using a manifest generated from
9
+ # inline data, so that build.sh can later run `cargo build --offline`.
10
+ #
11
+ # This file is a standalone single source: it never reads repository files
12
+ # (Cargo.toml / Cargo.lock are not available during the download stage). All
13
+ # dependency versions are pinned inline below to the EXACT versions recorded in
14
+ # the repository's committed Cargo.lock.
15
+ #
16
+ # The exact-pin strategy matters: the offline build runs against the
17
+ # repository's own committed Cargo.lock. Cargo resolves `cargo fetch` from the
18
+ # generated manifest *without* that lock, so loose `^` constraints would pull
19
+ # the newest matching crates, leaving the cached set mismatched with the locked
20
+ # versions the offline build needs. Every crate below is therefore pinned with
21
+ # an `=` exact version taken from the committed Cargo.lock so the prefetched
22
+ # cache is byte-for-byte the set the offline build resolves.
23
+
24
+ # Use a fixed, literal scratch directory so the generated manifest path is
25
+ # statically verifiable and never collides with the read-only repo root.
26
+ pbfetch_dir="/tmp/rust-sitter-fetch"
27
+ mkdir -p "$pbfetch_dir/src"
28
+
29
+ manifest="$pbfetch_dir/Cargo.toml"
30
+ cat > "$manifest" <<'TOML'
31
+ [package]
32
+ name = "rust-sitter-fetch"
33
+ version = "0.0.0"
34
+ edition = "2021"
35
+
36
+ [lib]
37
+ path = "src/lib.rs"
38
+
39
+ # Exact (=) version pins of the full transitive external-crate closure recorded
40
+ # in the repository Cargo.lock. Duplicate crate versions are disambiguated with
41
+ # renamed deps (syn 1 vs syn 2).
42
+ [dependencies]
43
+ aho-corasick = "=1.1.3"
44
+ anyhow = "=1.0.96"
45
+ bitflags = "=2.8.0"
46
+ bumpalo = "=3.17.0"
47
+ c2rust-bitfields = "=0.3.0"
48
+ c2rust-bitfields-derive = "=0.2.1"
49
+ cc = "=1.2.14"
50
+ cfg-if = "=1.0.0"
51
+ codemap = "=0.1.3"
52
+ codemap-diagnostic = "=0.1.2"
53
+ console = "=0.15.10"
54
+ displaydoc = "=0.2.5"
55
+ encode_unicode = "=1.0.0"
56
+ equivalent = "=1.0.2"
57
+ errno = "=0.3.10"
58
+ fastrand = "=2.3.0"
59
+ form_urlencoded = "=1.2.1"
60
+ getrandom = "=0.3.1"
61
+ hashbrown = "=0.15.2"
62
+ heck = "=0.5.0"
63
+ icu_collections = "=1.5.0"
64
+ icu_locid = "=1.5.0"
65
+ icu_locid_transform = "=1.5.0"
66
+ icu_locid_transform_data = "=1.5.0"
67
+ icu_normalizer = "=1.5.0"
68
+ icu_normalizer_data = "=1.5.0"
69
+ icu_properties = "=1.5.1"
70
+ icu_properties_data = "=1.5.0"
71
+ icu_provider = "=1.5.0"
72
+ icu_provider_macros = "=1.5.0"
73
+ idna = "=1.0.3"
74
+ idna_adapter = "=1.2.0"
75
+ indexmap = "=2.7.1"
76
+ indoc = "=2.0.5"
77
+ insta = "=1.42.1"
78
+ itoa = "=1.0.14"
79
+ js-sys = "=0.3.77"
80
+ libc = "=0.2.169"
81
+ linked-hash-map = "=0.5.6"
82
+ linux-raw-sys = "=0.4.15"
83
+ litemap = "=0.7.4"
84
+ log = "=0.4.25"
85
+ memchr = "=2.7.4"
86
+ minicov = "=0.3.7"
87
+ once_cell = "=1.20.3"
88
+ percent-encoding = "=2.3.1"
89
+ pin-project = "=1.1.9"
90
+ pin-project-internal = "=1.1.9"
91
+ proc-macro2 = "=1.0.93"
92
+ quote = "=1.0.38"
93
+ regex = "=1.11.1"
94
+ regex-automata = "=0.4.9"
95
+ regex-syntax = "=0.8.5"
96
+ rustc-hash = "=2.1.1"
97
+ rustix = "=0.38.44"
98
+ ryu = "=1.0.19"
99
+ same-file = "=1.0.6"
100
+ semver = "=1.0.25"
101
+ serde = "=1.0.218"
102
+ serde_derive = "=1.0.218"
103
+ serde_json = "=1.0.139"
104
+ shlex = "=1.3.0"
105
+ similar = "=2.7.0"
106
+ smallbitvec = "=2.6.0"
107
+ smallvec = "=1.14.0"
108
+ stable_deref_trait = "=1.2.0"
109
+ streaming-iterator = "=0.1.9"
110
+ syn-inline-mod = "=0.6.0"
111
+ synstructure = "=0.13.1"
112
+ tempfile = "=3.17.1"
113
+ termcolor = "=1.4.1"
114
+ thiserror = "=2.0.11"
115
+ thiserror-impl = "=2.0.11"
116
+ tinystr = "=0.7.6"
117
+ tree-sitter = "=0.25.2"
118
+ tree-sitter-c2rust = "=0.25.2"
119
+ tree-sitter-generate = "=0.25.1"
120
+ tree-sitter-language = "=0.1.5"
121
+ unicode-ident = "=1.0.17"
122
+ url = "=2.5.4"
123
+ utf16_iter = "=1.0.5"
124
+ utf8_iter = "=1.0.4"
125
+ walkdir = "=2.5.0"
126
+ wasi = "=0.13.3+wasi-0.2.2"
127
+ wasm-bindgen = "=0.2.100"
128
+ wasm-bindgen-backend = "=0.2.100"
129
+ wasm-bindgen-futures = "=0.4.50"
130
+ wasm-bindgen-macro = "=0.2.100"
131
+ wasm-bindgen-macro-support = "=0.2.100"
132
+ wasm-bindgen-shared = "=0.2.100"
133
+ wasm-bindgen-test = "=0.3.50"
134
+ wasm-bindgen-test-macro = "=0.3.50"
135
+ web-sys = "=0.3.77"
136
+ winapi-util = "=0.1.9"
137
+ windows-sys = "=0.59.0"
138
+ windows-targets = "=0.52.6"
139
+ windows_aarch64_gnullvm = "=0.52.6"
140
+ windows_aarch64_msvc = "=0.52.6"
141
+ windows_i686_gnu = "=0.52.6"
142
+ windows_i686_gnullvm = "=0.52.6"
143
+ windows_i686_msvc = "=0.52.6"
144
+ windows_x86_64_gnu = "=0.52.6"
145
+ windows_x86_64_gnullvm = "=0.52.6"
146
+ windows_x86_64_msvc = "=0.52.6"
147
+ wit-bindgen-rt = "=0.33.0"
148
+ write16 = "=1.0.0"
149
+ writeable = "=0.5.5"
150
+ yoke = "=0.7.5"
151
+ yoke-derive = "=0.7.5"
152
+ zerofrom = "=0.1.5"
153
+ zerofrom-derive = "=0.1.5"
154
+ zerovec = "=0.10.4"
155
+ zerovec-derive = "=0.10.3"
156
+
157
+ # Duplicate crate versions are not allowed as two plain deps with the same
158
+ # name; use the same registry crate under two renamed keys to cover both
159
+ # locked syn versions.
160
+ syn_1 = { package = "syn", version = "=1.0.109" }
161
+ syn_2 = { package = "syn", version = "=2.0.98" }
162
+
163
+ [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
164
+ wasm-bindgen-test = "=0.3.50"
165
+ TOML
166
+
167
+ # The generated manifest declares a [lib]; provide the matching minimal stub so
168
+ # cargo can resolve the dependency graph (only dependency resolution/fetching
169
+ # happens here, never compilation of these temporary sources).
170
+ cat > "$pbfetch_dir/src/lib.rs" <<'RS'
171
+ // Empty stub: this temporary crate exists only so `cargo fetch` can resolve
172
+ // and prefetch the dependency graph. It is never built.
173
+ pub fn pbfetch_stub() {}
174
+ RS
175
+
176
+ # Fetch the full dependency graph into the local cargo cache. Run with an
177
+ # explicit --manifest-path pointing at the inline-generated manifest above, from
178
+ # a writable scratch dir, never from the read-only repository root or
179
+ # /source_ro. Idempotent: cargo reuses already-cached crates.
180
+ cargo fetch --manifest-path "$pbfetch_dir/Cargo.toml"
hydro-project--rust-sitter.c262f29/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa4b171821e5ff4b17ded0694a9189bf6e01d67afb7fe98f29347d173ce79ab1
3
+ size 863992
hydro-project--rust-sitter.c262f29/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ source /tmp/programgym-download.sh
9
+ set +a
10
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
11
+ import os
12
+ import shlex
13
+
14
+ ignored = {
15
+ "ALL_PROXY",
16
+ "HTTP_PROXY",
17
+ "HTTPS_PROXY",
18
+ "NO_PROXY",
19
+ "OLDPWD",
20
+ "PIP_PROXY",
21
+ "PWD",
22
+ "SHLVL",
23
+ "_",
24
+ "all_proxy",
25
+ "http_proxy",
26
+ "https_proxy",
27
+ "no_proxy",
28
+ "pip_proxy",
29
+ }
30
+ for key in sorted(os.environ):
31
+ if key in ignored or key.startswith("BASH_FUNC_"):
32
+ continue
33
+ value = os.environ[key]
34
+ if "\n" in value:
35
+ continue
36
+ print(f"export {key}={shlex.quote(value)}")
37
+ PY
hydro-project--rust-sitter.c262f29/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()
hydro-project--rust-sitter.c262f29/tests/programgym_task.json ADDED
@@ -0,0 +1,809 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_02": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [],
7
+ "tests": [
8
+ "eval.tests.test_errors.test_error_diagnostics_go_to_stderr",
9
+ "eval.tests.test_errors.test_error_stdout_is_only_prompts_no_ast",
10
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_2]",
11
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_2_3]",
12
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_2_3_4_5]",
13
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_dash_2_star]",
14
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_dash_dash_2]",
15
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_dash_dash_dash_2]",
16
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_dash_star_2]",
17
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_1_star_star_2]",
18
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_3_star_star_star_4]",
19
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_999_999]",
20
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_bare_dash]",
21
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_bare_star]",
22
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_dash_1]",
23
+ "eval.tests.test_errors.test_failed_node_golden[err_failed_star_1]",
24
+ "eval.tests.test_errors.test_missing_token_golden[err_missing_1_dash]",
25
+ "eval.tests.test_errors.test_missing_token_golden[err_missing_1_dash_2_dash]",
26
+ "eval.tests.test_errors.test_missing_token_golden[err_missing_1_star]",
27
+ "eval.tests.test_errors.test_triple_error_three_diagnostic_blocks_golden",
28
+ "eval.tests.test_errors.test_two_errors_reported_on_two_lines_golden",
29
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_1_dash_2_plus_3]",
30
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_1_plus]",
31
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_1_plus_2]",
32
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_1_plus_plus_2]",
33
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_1_space_a]",
34
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_1a]",
35
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_a1]",
36
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_a]",
37
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_bare_plus]",
38
+ "eval.tests.test_errors.test_unexpected_token_golden[err_unexpected_plus_1]",
39
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_failed_1_dash_2_dash_unspaced]",
40
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_failed_2_star_minus_3]",
41
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_failed_5_dash_dash_3]",
42
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_failed_mixed_wild_ff_vt_tab]",
43
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_unexpected_1_emspace_2]",
44
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_unexpected_1_nbsp_2]",
45
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_unexpected_1_nbsp_star_2]",
46
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_error_golden[err_unexpected_1_plus_minus_plus_minus_2]",
47
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_only_line_ends_loop[emspace]",
48
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_only_line_ends_loop[formfeed]",
49
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_only_line_ends_loop[nbsp]",
50
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_only_line_ends_loop[vtab]",
51
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_separator_consumed[double_formfeed_sep]",
52
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_separator_consumed[formfeed_padded_number]",
53
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_separator_consumed[formfeed_sep]",
54
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_separator_consumed[formfeed_tab_sep]",
55
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_separator_consumed[vtab_both_ops]",
56
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_separator_consumed[vtab_sep]",
57
+ "eval.tests.test_exotic_whitespace.test_exotic_whitespace_session_golden",
58
+ "eval.tests.test_exotic_whitespace.test_nbsp_between_numbers_is_distinct_from_failed_node",
59
+ "eval.tests.test_exotic_whitespace.test_trim_vs_grammar_whitespace_distinction",
60
+ "eval.tests.test_extension_coverage.test_error_golden[err_failed_1_2_3_4]",
61
+ "eval.tests.test_extension_coverage.test_error_golden[err_failed_padded_star]",
62
+ "eval.tests.test_extension_coverage.test_error_golden[err_missing_1_dash_2_dash_3_dash]",
63
+ "eval.tests.test_extension_coverage.test_error_golden[err_unexpected_1_dash_2_star_plus_3]",
64
+ "eval.tests.test_extension_coverage.test_error_golden[err_unexpected_1_plus_2_plus_3]",
65
+ "eval.tests.test_extension_coverage.test_error_golden[err_unexpected_1_plus_a1]",
66
+ "eval.tests.test_extension_coverage.test_error_golden[err_unexpected_1_star_plus_2]",
67
+ "eval.tests.test_extension_coverage.test_failed_node_spans_multiple_columns_golden",
68
+ "eval.tests.test_extension_coverage.test_failed_node_with_surrounding_whitespace_golden",
69
+ "eval.tests.test_extension_coverage.test_long_chain_ast[alt_grouped_spines]",
70
+ "eval.tests.test_extension_coverage.test_long_chain_ast[deep_mul_in_sub_right]",
71
+ "eval.tests.test_extension_coverage.test_long_chain_ast[mixed_deep_mul_then_sub]",
72
+ "eval.tests.test_extension_coverage.test_long_chain_ast[mixed_mul_and_mul_chain]",
73
+ "eval.tests.test_extension_coverage.test_long_chain_ast[mixed_sub_of_two_mul]",
74
+ "eval.tests.test_extension_coverage.test_long_chain_ast[mul_chain_5]",
75
+ "eval.tests.test_extension_coverage.test_long_chain_ast[mul_chain_7]",
76
+ "eval.tests.test_extension_coverage.test_long_chain_ast[sub_chain_5]",
77
+ "eval.tests.test_extension_coverage.test_long_chain_ast[sub_chain_7]",
78
+ "eval.tests.test_extension_coverage.test_missing_token_at_eof_column_golden",
79
+ "eval.tests.test_extension_coverage.test_mixed_session_stderr_diagnostics_position",
80
+ "eval.tests.test_extension_coverage.test_mixed_session_stdout_golden",
81
+ "eval.tests.test_extension_coverage.test_two_unexpected_tokens_in_one_line_two_blocks",
82
+ "eval.tests.test_precedence.test_mixed_operator_chain_distinct[alt_mixed_a]",
83
+ "eval.tests.test_precedence.test_mixed_operator_chain_distinct[alt_mixed_b]",
84
+ "eval.tests.test_precedence.test_mixed_operator_chain_distinct[alt_mixed_c]",
85
+ "eval.tests.test_precedence.test_mixed_operator_chain_distinct[mixed_five]",
86
+ "eval.tests.test_precedence.test_mixed_operator_chain_distinct[ones_mixed]",
87
+ "eval.tests.test_precedence.test_mul_binding_deeper_inside_sub_golden",
88
+ "eval.tests.test_precedence.test_prec_left_binding[alternating]",
89
+ "eval.tests.test_precedence.test_prec_left_binding[mixed_deep]",
90
+ "eval.tests.test_precedence.test_prec_left_binding[mul_chain_4]",
91
+ "eval.tests.test_precedence.test_prec_left_binding[mul_grouped_in_sub_chain]",
92
+ "eval.tests.test_precedence.test_prec_left_binding[mul_lassoc]",
93
+ "eval.tests.test_precedence.test_prec_left_binding[mul_tighter_sub]",
94
+ "eval.tests.test_precedence.test_prec_left_binding[sub_after_mul]",
95
+ "eval.tests.test_precedence.test_prec_left_binding[sub_chain_4]",
96
+ "eval.tests.test_precedence.test_prec_left_binding[sub_lassoc]",
97
+ "eval.tests.test_repl_state.test_empty_line_terminates_loop",
98
+ "eval.tests.test_repl_state.test_empty_stdin_exits_zero_with_prompt",
99
+ "eval.tests.test_repl_state.test_final_empty_line_with_prior_errors_exits_zero_golden",
100
+ "eval.tests.test_repl_state.test_long_batch_many_parsed_lines_prompt_count",
101
+ "eval.tests.test_repl_state.test_multi_error_batch_aggregates_diagnostics",
102
+ "eval.tests.test_repl_state.test_parsed_lines_sequenced_in_order_golden",
103
+ "eval.tests.test_repl_state.test_prompt_emitted_per_input_line_golden",
104
+ "eval.tests.test_repl_state.test_repeated_batch_is_byte_identical_deterministic",
105
+ "eval.tests.test_repl_state.test_session_recovers_after_failure_continues_parsing",
106
+ "eval.tests.test_repl_state.test_state_persists_across_separate_lines[mul_then_number]",
107
+ "eval.tests.test_repl_state.test_state_persists_across_separate_lines[numbers_then_sub]",
108
+ "eval.tests.test_repl_state.test_state_persists_across_separate_lines[sub_after_hundred]",
109
+ "eval.tests.test_repl_state.test_success_then_error_then_success_golden",
110
+ "eval.tests.test_repl_state.test_whitespace_only_line_terminates_loop",
111
+ "eval.tests.test_stream_behavior.test_crlf_batch_stdout_byte_identical_to_lf_batch",
112
+ "eval.tests.test_stream_behavior.test_crlf_line_endings_parse_identically_to_lf",
113
+ "eval.tests.test_stream_behavior.test_deeper_chain_exact_ast[four_sub_then_mul]",
114
+ "eval.tests.test_stream_behavior.test_deeper_chain_exact_ast[six_term_mul_chain]",
115
+ "eval.tests.test_stream_behavior.test_mixed_crlf_and_lf_line_endings_one_session",
116
+ "eval.tests.test_stream_behavior.test_panic_after_prompt_but_no_ast_emitted",
117
+ "eval.tests.test_stream_behavior.test_panic_mid_batch_aborts_remaining_lines",
118
+ "eval.tests.test_stream_behavior.test_panic_on_first_line_aborts_before_any_success",
119
+ "eval.tests.test_success_parsing.test_executable_parses_a_real_grammar_expression",
120
+ "eval.tests.test_success_parsing.test_huge_valid_number_parses_in_i32_range",
121
+ "eval.tests.test_success_parsing.test_leading_zero_transform_in_expressions[padded_both_zero]",
122
+ "eval.tests.test_success_parsing.test_leading_zero_transform_in_expressions[padded_mul]",
123
+ "eval.tests.test_success_parsing.test_leading_zero_transform_in_expressions[padded_sub]",
124
+ "eval.tests.test_success_parsing.test_recursive_ast_shape[deep_mul]",
125
+ "eval.tests.test_success_parsing.test_recursive_ast_shape[mul_binds_tighter_sub]",
126
+ "eval.tests.test_success_parsing.test_recursive_ast_shape[mul_lassoc]",
127
+ "eval.tests.test_success_parsing.test_recursive_ast_shape[sub_after_mul]",
128
+ "eval.tests.test_success_parsing.test_recursive_ast_shape[sub_lassoc]",
129
+ "eval.tests.test_success_parsing.test_recursive_ast_shape[zero_deep_mul]",
130
+ "eval.tests.test_success_parsing.test_single_number_leaf[fivedigit]",
131
+ "eval.tests.test_success_parsing.test_single_number_leaf[forty_two]",
132
+ "eval.tests.test_success_parsing.test_single_number_leaf[hundred]",
133
+ "eval.tests.test_success_parsing.test_single_number_leaf[i32_max_minus_one]",
134
+ "eval.tests.test_success_parsing.test_single_number_leaf[million]",
135
+ "eval.tests.test_success_parsing.test_single_number_leaf[nine]",
136
+ "eval.tests.test_success_parsing.test_single_number_leaf[one]",
137
+ "eval.tests.test_success_parsing.test_single_number_leaf[zero]",
138
+ "eval.tests.test_success_parsing.test_transform_identity_zero_pad_golden",
139
+ "eval.tests.test_success_parsing.test_two_operand_binary[multiply]",
140
+ "eval.tests.test_success_parsing.test_two_operand_binary[nine_minus_nine]",
141
+ "eval.tests.test_success_parsing.test_two_operand_binary[one_minus_zero]",
142
+ "eval.tests.test_success_parsing.test_two_operand_binary[one_mul_one]",
143
+ "eval.tests.test_success_parsing.test_two_operand_binary[seven_minus_zero]",
144
+ "eval.tests.test_success_parsing.test_two_operand_binary[subtract]",
145
+ "eval.tests.test_success_parsing.test_two_operand_binary[tens]",
146
+ "eval.tests.test_success_parsing.test_two_operand_binary[zero_minus_zero]",
147
+ "eval.tests.test_success_parsing.test_two_operand_binary[zero_mul_one]",
148
+ "eval.tests.test_success_parsing.test_two_operand_binary[zero_mul_zero]",
149
+ "eval.tests.test_success_parsing.test_whitespace_combined_with_leading_zero_transform",
150
+ "eval.tests.test_success_parsing.test_zero_padded_i32_boundary_parses",
151
+ "eval.tests.test_transform_panic.test_i32_overflow_panics_with_status_101[i32_overflow_small]",
152
+ "eval.tests.test_transform_panic.test_i32_overflow_panics_with_status_101[overflow_huge]",
153
+ "eval.tests.test_transform_panic.test_i32_overflow_panics_with_status_101[overflow_large]",
154
+ "eval.tests.test_transform_panic.test_i32_overflow_panics_with_status_101[overflow_very_large]",
155
+ "eval.tests.test_transform_panic.test_i32_overflow_reports_push_message_before_exit",
156
+ "eval.tests.test_transform_panic.test_overflow_does_not_emit_ast_line",
157
+ "eval.tests.test_transform_panic.test_panic_output_streams",
158
+ "eval.tests.test_transform_panic.test_within_i32_range_parses[i32_max]",
159
+ "eval.tests.test_transform_panic.test_within_i32_range_parses[i32_max_minus_one]",
160
+ "eval.tests.test_whitespace_extra.test_additional_whitespace_variants[padded_deep_mul]",
161
+ "eval.tests.test_whitespace_extra.test_additional_whitespace_variants[padded_sub]",
162
+ "eval.tests.test_whitespace_extra.test_additional_whitespace_variants[padded_zero]",
163
+ "eval.tests.test_whitespace_extra.test_additional_whitespace_variants[tab_only_surround]",
164
+ "eval.tests.test_whitespace_extra.test_additional_whitespace_variants[tabbed_deep]",
165
+ "eval.tests.test_whitespace_extra.test_all_whitespace_keeps_each_line_parseable_golden",
166
+ "eval.tests.test_whitespace_extra.test_whitespace_between_all_three_binary_nodes",
167
+ "eval.tests.test_whitespace_extra.test_whitespace_skipped_around_tokens[internal_spaces]",
168
+ "eval.tests.test_whitespace_extra.test_whitespace_skipped_around_tokens[leading_space]",
169
+ "eval.tests.test_whitespace_extra.test_whitespace_skipped_around_tokens[mixed]",
170
+ "eval.tests.test_whitespace_extra.test_whitespace_skipped_around_tokens[surround_spaces]",
171
+ "eval.tests.test_whitespace_extra.test_whitespace_skipped_around_tokens[tabs]",
172
+ "eval.tests.test_whitespace_extra.test_whitespace_skipped_around_tokens[trailing_space]"
173
+ ]
174
+ },
175
+ "generated_module_03": {
176
+ "ignore_reason": "",
177
+ "ignored": false,
178
+ "ignored_tests": [],
179
+ "tests": [
180
+ "eval.tests.test_additional_behavior.test_additional_error_diagnostics[()]",
181
+ "eval.tests.test_additional_behavior.test_additional_error_diagnostics[(]",
182
+ "eval.tests.test_additional_behavior.test_additional_error_diagnostics[1_+]",
183
+ "eval.tests.test_additional_behavior.test_additional_error_diagnostics[1_-_-_2]",
184
+ "eval.tests.test_additional_behavior.test_additional_error_diagnostics[1_-_2_*]",
185
+ "eval.tests.test_additional_behavior.test_additional_error_diagnostics[1_2_3_4_5]",
186
+ "eval.tests.test_additional_behavior.test_additional_error_diagnostics[2_3_4]",
187
+ "eval.tests.test_additional_behavior.test_crlf_line_endings_parse",
188
+ "eval.tests.test_additional_behavior.test_deep_mixed_precedence_and_associativity_alt",
189
+ "eval.tests.test_additional_behavior.test_irregular_whitespace_and_tab_between_operators",
190
+ "eval.tests.test_additional_behavior.test_mul_chain_under_sub_right",
191
+ "eval.tests.test_additional_behavior.test_mul_equal_operands",
192
+ "eval.tests.test_additional_behavior.test_mul_identity_chain_four",
193
+ "eval.tests.test_additional_behavior.test_mul_left_of_sub_bounds_numbers",
194
+ "eval.tests.test_additional_behavior.test_zero_subtracted_from_zero",
195
+ "eval.tests.test_combined_diagnostics.test_alternating_mul_sub_six_terms",
196
+ "eval.tests.test_combined_diagnostics.test_combined_unexpected_plus_failed_on_one_line",
197
+ "eval.tests.test_combined_diagnostics.test_combined_unexpected_plus_missing_on_one_line",
198
+ "eval.tests.test_combined_diagnostics.test_compact_mixed_chain_with_plus_operator",
199
+ "eval.tests.test_combined_diagnostics.test_i32_max_in_sub_expression",
200
+ "eval.tests.test_combined_diagnostics.test_mixed_magnitude_precedence_chain",
201
+ "eval.tests.test_combined_diagnostics.test_near_max_product_operands",
202
+ "eval.tests.test_combined_diagnostics.test_nine_term_mul_chain",
203
+ "eval.tests.test_combined_diagnostics.test_ten_term_sub_chain",
204
+ "eval.tests.test_combined_diagnostics.test_two_consecutive_missing_then_good",
205
+ "eval.tests.test_errors.test_error_goes_to_stderr_not_stdout",
206
+ "eval.tests.test_errors.test_errors_accumulate_across_lines",
207
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[* *]",
208
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[*]",
209
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[- -]",
210
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[--]",
211
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[-0]",
212
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[-]",
213
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[1 * 2 * *]",
214
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[1 2 --]",
215
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[1 2]",
216
+ "eval.tests.test_errors.test_failed_parse_node_diagnostic[5 * *]",
217
+ "eval.tests.test_errors.test_missing_token_diagnostic[1 *]",
218
+ "eval.tests.test_errors.test_missing_token_diagnostic[1 - 2 -]",
219
+ "eval.tests.test_errors.test_missing_token_diagnostic[1 2 -]",
220
+ "eval.tests.test_errors.test_missing_token_diagnostic[2 -]",
221
+ "eval.tests.test_errors.test_parentheses_produce_two_unexpected_tokens",
222
+ "eval.tests.test_errors.test_three_plus_operators_all_reported",
223
+ "eval.tests.test_errors.test_two_plus_operators_are_both_unexpected",
224
+ "eval.tests.test_errors.test_unexpected_token_diagnostic[+ 3]",
225
+ "eval.tests.test_errors.test_unexpected_token_diagnostic[1 + 2]",
226
+ "eval.tests.test_errors.test_unexpected_token_diagnostic[1.0]",
227
+ "eval.tests.test_errors.test_unexpected_token_diagnostic[12 ab]",
228
+ "eval.tests.test_errors.test_unexpected_token_diagnostic[1a]",
229
+ "eval.tests.test_errors.test_unexpected_token_diagnostic[a1]",
230
+ "eval.tests.test_errors.test_unexpected_vs_missing_token_reasons_differ",
231
+ "eval.tests.test_extended_behavior.test_17_digit_run_also_overflows",
232
+ "eval.tests.test_extended_behavior.test_binary_only_operator_forms_rejected[+1]",
233
+ "eval.tests.test_extended_behavior.test_binary_only_operator_forms_rejected[-_1]",
234
+ "eval.tests.test_extended_behavior.test_binary_only_operator_forms_rejected[1_+_1]",
235
+ "eval.tests.test_extended_behavior.test_double_parentheses_pair_unexpected",
236
+ "eval.tests.test_extended_behavior.test_five_number_stream",
237
+ "eval.tests.test_extended_behavior.test_large_operand_mul",
238
+ "eval.tests.test_extended_behavior.test_left_mul_then_five_subs",
239
+ "eval.tests.test_extended_behavior.test_missing_operand_with_trailing_space",
240
+ "eval.tests.test_extended_behavior.test_mixed_large_operand_sub",
241
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[!]",
242
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[1@2]",
243
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[1_/_2]",
244
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[1_2]",
245
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[1_x_2]",
246
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[3#4]",
247
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[5$6]",
248
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[7%8]",
249
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[A]",
250
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[^]",
251
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[x]",
252
+ "eval.tests.test_extended_behavior.test_non_grammar_glyph_is_unexpected_token[~]",
253
+ "eval.tests.test_extended_behavior.test_padded_single_operand",
254
+ "eval.tests.test_extended_behavior.test_seven_term_mul_chain",
255
+ "eval.tests.test_extended_behavior.test_single_tab_is_terminator",
256
+ "eval.tests.test_extended_behavior.test_six_subs_then_right_mul_group",
257
+ "eval.tests.test_extended_behavior.test_tab_spaces_mixed_around_operator",
258
+ "eval.tests.test_extended_behavior.test_three_bare_words_all_reported",
259
+ "eval.tests.test_extended_behavior.test_two_mul_groups_between_subs",
260
+ "eval.tests.test_extended_behavior.test_zero_times_zero",
261
+ "eval.tests.test_midline_and_span_width_failed.test_failed_span_caret_width_scales_with_input[10_20]",
262
+ "eval.tests.test_midline_and_span_width_failed.test_failed_span_caret_width_scales_with_input[123_456]",
263
+ "eval.tests.test_midline_and_span_width_failed.test_failed_span_caret_width_scales_with_input[1_2_3_4]",
264
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[1*2_3]",
265
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[1*_-2]",
266
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[1_-_-2]",
267
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[1_-_2_3]",
268
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[1_2*3]",
269
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[1_dd_2]",
270
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[1_ds_2]",
271
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[5_*_6_7]",
272
+ "eval.tests.test_midline_and_span_width_failed.test_midline_failed_span_is_at_symptom_column[5_ds_6]",
273
+ "eval.tests.test_midline_and_span_width_failed.test_two_adjacent_failed_spans_accumulate",
274
+ "eval.tests.test_missing_after_operator_variants.test_failed_splice_then_missing_operand",
275
+ "eval.tests.test_missing_after_operator_variants.test_trailing_operator_missing_operand[5*]",
276
+ "eval.tests.test_missing_after_operator_variants.test_trailing_operator_missing_operand[9_*]",
277
+ "eval.tests.test_missing_after_operator_variants.test_trailing_operator_missing_operand[9_*_9_*]",
278
+ "eval.tests.test_missing_after_operator_variants.test_trailing_operator_missing_operand[9_-]",
279
+ "eval.tests.test_number_leaf.test_leading_zero_is_normalized",
280
+ "eval.tests.test_number_leaf.test_max_i32_boundary_parses",
281
+ "eval.tests.test_number_leaf.test_number_leaf_exact_stdout",
282
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-00042]",
283
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-0]",
284
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-100]",
285
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-10]",
286
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-1]",
287
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-2147483647]",
288
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-42]",
289
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-8675309]",
290
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-999999999]",
291
+ "eval.tests.test_number_leaf.test_number_leaf_parses[lead_ws-9]",
292
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-00042]",
293
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-0]",
294
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-100]",
295
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-10]",
296
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-1]",
297
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-2147483647]",
298
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-42]",
299
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-8675309]",
300
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-999999999]",
301
+ "eval.tests.test_number_leaf.test_number_leaf_parses[padded-9]",
302
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-00042]",
303
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-0]",
304
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-100]",
305
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-10]",
306
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-1]",
307
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-2147483647]",
308
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-42]",
309
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-8675309]",
310
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-999999999]",
311
+ "eval.tests.test_number_leaf.test_number_leaf_parses[plain-9]",
312
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-00042]",
313
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-0]",
314
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-100]",
315
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-10]",
316
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-1]",
317
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-2147483647]",
318
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-42]",
319
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-8675309]",
320
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-999999999]",
321
+ "eval.tests.test_number_leaf.test_number_leaf_parses[trail_ws-9]",
322
+ "eval.tests.test_number_leaf.test_single_digit_and_multi_digit_parses_distinct",
323
+ "eval.tests.test_number_leaf.test_tab_as_whitespace_extra",
324
+ "eval.tests.test_operators.test_mul_binary_tree[1 * 9]",
325
+ "eval.tests.test_operators.test_mul_binary_tree[2 * 3]",
326
+ "eval.tests.test_operators.test_mul_binary_tree[5 * 6]",
327
+ "eval.tests.test_operators.test_mul_five_term_left_associative",
328
+ "eval.tests.test_operators.test_mul_left_associative_chain",
329
+ "eval.tests.test_operators.test_nested_operand_inside_sub_right",
330
+ "eval.tests.test_operators.test_sub_binary_tree[1 - 2]",
331
+ "eval.tests.test_operators.test_sub_binary_tree[10 - 0]",
332
+ "eval.tests.test_operators.test_sub_binary_tree[7 - 3]",
333
+ "eval.tests.test_operators.test_sub_four_term_left_associative",
334
+ "eval.tests.test_operators.test_sub_left_associative_chain",
335
+ "eval.tests.test_precedence.test_deep_mixed_chain_precedence_and_associativity",
336
+ "eval.tests.test_precedence.test_mixed_left_of_mul_right_of_sub_deep",
337
+ "eval.tests.test_precedence.test_mul_binds_tighter_than_sub[1 * 2 - 3]",
338
+ "eval.tests.test_precedence.test_mul_binds_tighter_than_sub[1 - 2 * 3]",
339
+ "eval.tests.test_precedence.test_mul_binds_tighter_than_sub[10 - 2 * 3 - 4]",
340
+ "eval.tests.test_precedence.test_mul_binds_tighter_than_sub[5 * 6 - 7 * 8]",
341
+ "eval.tests.test_precedence.test_mul_left_of_sub_groups_first",
342
+ "eval.tests.test_precedence.test_mul_right_of_sub_groups_first",
343
+ "eval.tests.test_precedence.test_precedence_holds_without_whitespace[1*2-3]",
344
+ "eval.tests.test_precedence.test_precedence_holds_without_whitespace[1-2*3]",
345
+ "eval.tests.test_precedence.test_precedence_holds_without_whitespace[1-2-3]",
346
+ "eval.tests.test_precedence.test_precedence_holds_without_whitespace[5*6-7*8]",
347
+ "eval.tests.test_repl_blank_line_termination.test_blank_line_after_two_lines_stops_processing",
348
+ "eval.tests.test_repl_blank_line_termination.test_blank_line_midstream_stops_processing",
349
+ "eval.tests.test_repl_blank_line_termination.test_trailing_blank_line_terminates_after_last_number",
350
+ "eval.tests.test_repl_protocol.test_empty_line_output_exact",
351
+ "eval.tests.test_repl_protocol.test_executable_is_real_arithmetic_repl",
352
+ "eval.tests.test_repl_protocol.test_immediate_eof_output_exact",
353
+ "eval.tests.test_repl_protocol.test_multiline_stream_exact_stdout",
354
+ "eval.tests.test_repl_protocol.test_multiline_stream_is_stateful_loop",
355
+ "eval.tests.test_repl_protocol.test_prompt_precedes_each_result",
356
+ "eval.tests.test_repl_protocol.test_whitespace_only_line_breaks_loop",
357
+ "eval.tests.test_robustness.test_compact_mixed_operators_no_whitespace",
358
+ "eval.tests.test_robustness.test_deep_left_nested_chain_without_overflow",
359
+ "eval.tests.test_robustness.test_huge_digit_run_also_panics",
360
+ "eval.tests.test_robustness.test_i32_max_plus_one_panics",
361
+ "eval.tests.test_robustness.test_repeated_invalid_line_keeps_loop_alive",
362
+ "eval.tests.test_robustness.test_sub_of_mul_with_larger_operands",
363
+ "eval.tests.test_robustness.test_two_invalid_operators_are_both_unexpected",
364
+ "eval.tests.test_robustness.test_two_mul_groups_under_two_subs",
365
+ "eval.tests.test_robustness.test_unicode_char_is_unexpected_token_then_recovers",
366
+ "eval.tests.test_token_class_boundaries.test_carriage_return_between_operators",
367
+ "eval.tests.test_token_class_boundaries.test_form_feed_around_single_number",
368
+ "eval.tests.test_token_class_boundaries.test_form_feed_between_operators",
369
+ "eval.tests.test_token_class_boundaries.test_inner_nbsp_is_not_an_extra",
370
+ "eval.tests.test_token_class_boundaries.test_leading_and_trailing_nbsp_parse",
371
+ "eval.tests.test_token_class_boundaries.test_leading_nbsp_is_trimmed_before_parse",
372
+ "eval.tests.test_token_class_boundaries.test_nbsp_only_line_terminates_loop",
373
+ "eval.tests.test_token_class_boundaries.test_tab_and_form_feed_mixed",
374
+ "eval.tests.test_token_class_boundaries.test_trailing_nbsp_is_trimmed_before_parse",
375
+ "eval.tests.test_token_class_boundaries.test_two_inner_nbsps_around_operator",
376
+ "eval.tests.test_token_class_boundaries.test_vertical_tab_between_operators",
377
+ "eval.tests.test_token_grouping_multi_char.test_letter_in_operand_position_is_unexpected[1_-_a]",
378
+ "eval.tests.test_token_grouping_multi_char.test_letter_in_operand_position_is_unexpected[9_-_a]",
379
+ "eval.tests.test_token_grouping_multi_char.test_letter_in_operand_position_is_unexpected[a_-_1]",
380
+ "eval.tests.test_token_grouping_multi_char.test_letters_on_both_operand_sides",
381
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[+++]",
382
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[++]",
383
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[..]",
384
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[1..2]",
385
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[1_++_2]",
386
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[1_000]",
387
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[===]",
388
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[==]",
389
+ "eval.tests.test_token_grouping_multi_char.test_multi_char_token_grouping_is_single_diagnostic[__]",
390
+ "eval.tests.test_whitespace.test_horizontal_tab_around_operators",
391
+ "eval.tests.test_whitespace.test_mul_spacing_variants_parse_identically[2 * 3]",
392
+ "eval.tests.test_whitespace.test_mul_spacing_variants_parse_identically[2 *3]",
393
+ "eval.tests.test_whitespace.test_mul_spacing_variants_parse_identically[2* 3]",
394
+ "eval.tests.test_whitespace.test_mul_spacing_variants_parse_identically[2*3]",
395
+ "eval.tests.test_whitespace.test_repl_is_line_oriented",
396
+ "eval.tests.test_whitespace.test_sub_spacing_variants_parse_identically[ 1 - 2 ]",
397
+ "eval.tests.test_whitespace.test_sub_spacing_variants_parse_identically[ 1 - 2]",
398
+ "eval.tests.test_whitespace.test_sub_spacing_variants_parse_identically[1 - 2 ]",
399
+ "eval.tests.test_whitespace.test_sub_spacing_variants_parse_identically[1 - 2]",
400
+ "eval.tests.test_whitespace.test_sub_spacing_variants_parse_identically[1 -2]",
401
+ "eval.tests.test_whitespace.test_sub_spacing_variants_parse_identically[1- 2]",
402
+ "eval.tests.test_whitespace.test_sub_spacing_variants_parse_identically[1-2]",
403
+ "eval.tests.test_whitespace.test_whitespace_only_does_not_alter_wrapped_number"
404
+ ]
405
+ },
406
+ "generated_module_04": {
407
+ "ignore_reason": "",
408
+ "ignored": false,
409
+ "ignored_tests": [],
410
+ "tests": [
411
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[1 * 2 * 3 * 4-Mul(Mul(Mul(Number(1), (), Number(2)), (), Number(3)), (), Number(4))]",
412
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[1 - 2 - 3 - 4-Sub(Sub(Sub(Number(1), (), Number(2)), (), Number(3)), (), Number(4))]",
413
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[2 * 3 - 4-Sub(Mul(Number(2), (), Number(3)), (), Number(4))]",
414
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[2 - 3 * 4-Sub(Number(2), (), Mul(Number(3), (), Number(4)))]",
415
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[3 * 4 * 5-Mul(Mul(Number(3), (), Number(4)), (), Number(5))]",
416
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[3 * 4 - 5-Sub(Mul(Number(3), (), Number(4)), (), Number(5))]",
417
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[3 - 4 * 5-Sub(Number(3), (), Mul(Number(4), (), Number(5)))]",
418
+ "eval.tests.test_arithmetic_success.test_deep_operator_chain_precedence[3 - 4 - 5-Sub(Sub(Number(3), (), Number(4)), (), Number(5))]",
419
+ "eval.tests.test_arithmetic_success.test_extra_whitespace_ignored_as_extra_node",
420
+ "eval.tests.test_arithmetic_success.test_longest_reasonable_chain_runs",
421
+ "eval.tests.test_arithmetic_success.test_many_alternating_ops_left_assoc",
422
+ "eval.tests.test_arithmetic_success.test_newline_inside_expression_fails",
423
+ "eval.tests.test_arithmetic_success.test_operator_and_number_spacing_variants[ 5 * 7 -Mul(Number(5), (), Number(7))]",
424
+ "eval.tests.test_arithmetic_success.test_operator_and_number_spacing_variants[1 -2-Sub(Number(1), (), Number(2))]",
425
+ "eval.tests.test_arithmetic_success.test_operator_and_number_spacing_variants[1- 2-Sub(Number(1), (), Number(2))]",
426
+ "eval.tests.test_arithmetic_success.test_operator_and_number_spacing_variants[1-2-Sub(Number(1), (), Number(2))]",
427
+ "eval.tests.test_arithmetic_success.test_operator_and_number_spacing_variants[12*34-Mul(Number(12), (), Number(34))]",
428
+ "eval.tests.test_arithmetic_success.test_operator_and_number_spacing_variants[1\\t-\\t2-Sub(Number(1), (), Number(2))]",
429
+ "eval.tests.test_arithmetic_success.test_operator_and_number_spacing_variants[9 - 9-Sub(Number(9), (), Number(9))]",
430
+ "eval.tests.test_arithmetic_success.test_precedence_mixed_left_binding[1 * 2 * 3 - 4-Sub(Mul(Mul(Number(1), (), Number(2)), (), Number(3)), (), Number(4))]",
431
+ "eval.tests.test_arithmetic_success.test_precedence_mixed_left_binding[1 * 2 - 3-Sub(Mul(Number(1), (), Number(2)), (), Number(3))]",
432
+ "eval.tests.test_arithmetic_success.test_precedence_mixed_left_binding[1 - 2 * 3 * 4-Sub(Number(1), (), Mul(Mul(Number(2), (), Number(3)), (), Number(4)))]",
433
+ "eval.tests.test_arithmetic_success.test_precedence_mixed_left_binding[1 - 2 * 3 - 4-Sub(Sub(Number(1), (), Mul(Number(2), (), Number(3))), (), Number(4))]",
434
+ "eval.tests.test_arithmetic_success.test_precedence_mixed_left_binding[1 - 2 * 3-Sub(Number(1), (), Mul(Number(2), (), Number(3)))]",
435
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[0-Number(0)]",
436
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[1 - 2-Sub(Number(1), (), Number(2))]",
437
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[1-Number(1)]",
438
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[10 * 20-Mul(Number(10), (), Number(20))]",
439
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[11-Number(11)]",
440
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[2 * 3-Mul(Number(2), (), Number(3))]",
441
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[2-Number(2)]",
442
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[2147483647-Number(2147483647)]",
443
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[314159-Number(314159)]",
444
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[42-Number(42)]",
445
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[5-3-Sub(Number(5), (), Number(3))]",
446
+ "eval.tests.test_arithmetic_success.test_single_number_and_basic_ops[7-Number(7)]",
447
+ "eval.tests.test_error_tokens_exhaustive.test_two_char_percent_is_one_token",
448
+ "eval.tests.test_error_tokens_exhaustive.test_two_char_plusplus_is_one_token",
449
+ "eval.tests.test_error_tokens_exhaustive.test_unexpected_token_exact[+1-err_plus1_lead]",
450
+ "eval.tests.test_error_tokens_exhaustive.test_unexpected_token_exact[0x10-err_x_0x10]",
451
+ "eval.tests.test_error_tokens_exhaustive.test_unexpected_token_exact[1+-err_1plus_trail]",
452
+ "eval.tests.test_error_tokens_exhaustive.test_unexpected_token_exact[1.5-err_dot_1_5]",
453
+ "eval.tests.test_error_tokens_exhaustive.test_unexpected_token_exact[1e3-err_e_1e3]",
454
+ "eval.tests.test_error_tokens_exhaustive.test_unexpected_token_exact[=1-err_eq1]",
455
+ "eval.tests.test_error_tokens_exhaustive.test_unexpected_token_exact[_-err_underscore]",
456
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[*-err_star]",
457
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[---err_minusminus]",
458
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[1 * * 2-err_1starstar2]",
459
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[1 - - 2-err_1miminus2]",
460
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[1 - 2 *-err_1minus2star]",
461
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[1 - 2 3 4-err_1_2_3_4]",
462
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[2 ** 3-err_2starstar3]",
463
+ "eval.tests.test_failed_node_variants.test_failed_node_span_exact[5 - --err_5minusminus]",
464
+ "eval.tests.test_failed_node_variants.test_three_star_operators_still_single_failed_node",
465
+ "eval.tests.test_multi_error_collection.test_batch_error_then_deep_sub_chain",
466
+ "eval.tests.test_multi_error_collection.test_batch_mixed_success_and_error_lines",
467
+ "eval.tests.test_multi_error_collection.test_batch_three_successes_in_order",
468
+ "eval.tests.test_multi_error_collection.test_multi_error_line_collects_all_tokens[#not-an-expression-3-err_hash]",
469
+ "eval.tests.test_multi_error_collection.test_multi_error_line_collects_all_tokens[(1 + 2)-3-err_paren]",
470
+ "eval.tests.test_multi_error_collection.test_multi_error_line_collects_all_tokens[a + b-3-err_a_plus_b]",
471
+ "eval.tests.test_multi_error_collection.test_multi_error_line_collects_all_tokens[a1b2-2-err_a1b2]",
472
+ "eval.tests.test_multi_error_collection.test_quad_batch_randomized_valid_lines",
473
+ "eval.tests.test_number_boundaries.test_all_zero_leading_still_zero",
474
+ "eval.tests.test_number_boundaries.test_deep_number_chain_of_operators",
475
+ "eval.tests.test_number_boundaries.test_five_op_chain_counts_each_leaf",
476
+ "eval.tests.test_number_boundaries.test_i32_nearest_below_max",
477
+ "eval.tests.test_number_boundaries.test_i32_overflow_panics_in_leaf_transform",
478
+ "eval.tests.test_number_boundaries.test_large_valid_i32_in_expression",
479
+ "eval.tests.test_number_boundaries.test_leading_zeros_in_mid_multi_digit",
480
+ "eval.tests.test_number_boundaries.test_leading_zeros_with_following_digits",
481
+ "eval.tests.test_number_boundaries.test_max_i32_leaf_parses_exactly",
482
+ "eval.tests.test_number_boundaries.test_overflow_in_valid_expression_still_panics",
483
+ "eval.tests.test_number_boundaries.test_overflow_large_number_also_panics",
484
+ "eval.tests.test_number_boundaries.test_overflow_on_operand_left_of_operator",
485
+ "eval.tests.test_number_boundaries.test_single_digit_edge",
486
+ "eval.tests.test_number_boundaries.test_zero_and_leading_zeros_preserve_value",
487
+ "eval.tests.test_parse_errors.test_additive_with_two_invalid_tokens",
488
+ "eval.tests.test_parse_errors.test_bare_minus_failed_node",
489
+ "eval.tests.test_parse_errors.test_garbage_symbols_split_into_tokens",
490
+ "eval.tests.test_parse_errors.test_long_sub_chain_missing_trailing_operand",
491
+ "eval.tests.test_parse_errors.test_missing_operand_after_multiply_short",
492
+ "eval.tests.test_parse_errors.test_missing_operand_after_subtraction",
493
+ "eval.tests.test_parse_errors.test_negative_number_alone_failed_node",
494
+ "eval.tests.test_parse_errors.test_parentheses_yield_three_unexpected_tokens",
495
+ "eval.tests.test_parse_errors.test_plus_mid_expr_12p3_col4",
496
+ "eval.tests.test_parse_errors.test_single_unexpected_token_diagnostic[1 + 2-err_plus_1p2]",
497
+ "eval.tests.test_parse_errors.test_single_unexpected_token_diagnostic[8 / 2-err_slash]",
498
+ "eval.tests.test_parse_errors.test_star_star_failed_node",
499
+ "eval.tests.test_parse_errors.test_trailing_operand_without_operator_failed_node",
500
+ "eval.tests.test_parse_errors.test_two_adjacent_numbers_failed_node",
501
+ "eval.tests.test_parse_errors.test_unexpected_plus_span_and_caret",
502
+ "eval.tests.test_parse_errors.test_unexpected_token_a_leading",
503
+ "eval.tests.test_parse_errors.test_unexpected_token_a_trailing",
504
+ "eval.tests.test_parse_errors.test_valid_line_after_error_produces_no_error_output",
505
+ "eval.tests.test_precedence_and_complex.test_division_slash_is_unexpected_token",
506
+ "eval.tests.test_precedence_and_complex.test_empty_expression_after_trim_is_ok",
507
+ "eval.tests.test_precedence_and_complex.test_long_left_associative_chains[1 * 2 * 3 * 4 * 5-Mul(Mul(Mul(Mul(Number(1), (), Number(2)), (), Number(3)), (), Number(4)), (), Number(5))]",
508
+ "eval.tests.test_precedence_and_complex.test_long_left_associative_chains[1 - 2 - 3 - 4 - 5-Sub(Sub(Sub(Sub(Number(1), (), Number(2)), (), Number(3)), (), Number(4)), (), Number(5))]",
509
+ "eval.tests.test_precedence_and_complex.test_mixed_precedence_trees[2 * 3 * 4-Mul(Mul(Number(2), (), Number(3)), (), Number(4))]",
510
+ "eval.tests.test_precedence_and_complex.test_mixed_precedence_trees[2 * 3 - 4-Sub(Mul(Number(2), (), Number(3)), (), Number(4))]",
511
+ "eval.tests.test_precedence_and_complex.test_mixed_precedence_trees[2 - 3 * 4-Sub(Number(2), (), Mul(Number(3), (), Number(4)))]",
512
+ "eval.tests.test_precedence_and_complex.test_mixed_precedence_trees[2 - 3 - 4-Sub(Sub(Number(2), (), Number(3)), (), Number(4))]",
513
+ "eval.tests.test_precedence_and_complex.test_parentheses_not_in_grammar_are_errors",
514
+ "eval.tests.test_precedence_and_complex.test_unicode_operator_is_unexpected_token",
515
+ "eval.tests.test_repl_loop.test_blank_between_values_does_not_exit",
516
+ "eval.tests.test_repl_loop.test_empty_and_whitespace_only_line_exits",
517
+ "eval.tests.test_repl_loop.test_empty_line_exits_cleanly",
518
+ "eval.tests.test_repl_loop.test_eof_after_argument_terminates",
519
+ "eval.tests.test_repl_loop.test_eof_after_error_terminates",
520
+ "eval.tests.test_repl_loop.test_interleaved_valid_and_invalid_lines",
521
+ "eval.tests.test_repl_loop.test_multiple_valid_lines_each_produce_output",
522
+ "eval.tests.test_repl_loop.test_no_output_on_entirely_invalid_single_line",
523
+ "eval.tests.test_repl_loop.test_single_block_produces_one_success_line",
524
+ "eval.tests.test_repl_loop.test_success_only_immediately_before_blank",
525
+ "eval.tests.test_repl_loop.test_value_then_blank_exits_after_value",
526
+ "eval.tests.test_runtime_success_expansion.test_alternating_five_term_precedence",
527
+ "eval.tests.test_runtime_success_expansion.test_deep_sub_chain_ten_terms",
528
+ "eval.tests.test_runtime_success_expansion.test_four_successes_isolated_in_batch",
529
+ "eval.tests.test_runtime_success_expansion.test_multi_digit_compound_trees[1 - 10 - 100-Sub(Sub(Number(1), (), Number(10)), (), Number(100))]",
530
+ "eval.tests.test_runtime_success_expansion.test_multi_digit_compound_trees[1000*2000-Mul(Number(1000), (), Number(2000))]",
531
+ "eval.tests.test_runtime_success_expansion.test_multi_digit_compound_trees[20 * 30 * 40-Mul(Mul(Number(20), (), Number(30)), (), Number(40))]",
532
+ "eval.tests.test_runtime_success_expansion.test_single_number_max_output",
533
+ "eval.tests.test_runtime_surface.test_deep_mixed_precedence_alternating_a",
534
+ "eval.tests.test_runtime_surface.test_deep_nested_mul_inside_sub",
535
+ "eval.tests.test_runtime_surface.test_error_then_blank_keeps_working",
536
+ "eval.tests.test_runtime_surface.test_identical_left_right_operands",
537
+ "eval.tests.test_runtime_surface.test_many_leading_plus_is_errors",
538
+ "eval.tests.test_runtime_surface.test_number_alone_vs_expression_repr_distinct",
539
+ "eval.tests.test_runtime_surface.test_operator_missing_entirely",
540
+ "eval.tests.test_runtime_surface.test_single_operator_chain_has_two_leaves",
541
+ "eval.tests.test_runtime_surface.test_single_operator_chain_three_ops",
542
+ "eval.tests.test_runtime_surface.test_sub_chain_left_deep_ugly_spacing",
543
+ "eval.tests.test_runtime_surface.test_unknown_letter_at_operator_position",
544
+ "eval.tests.test_runtime_surface.test_valid_after_error_then_valid_again",
545
+ "eval.tests.test_runtime_surface.test_whitespace_only_between_ops",
546
+ "eval.tests.test_runtime_surface.test_zero_operand_trees[0 * 0 * 0-Mul(Mul(Number(0), (), Number(0)), (), Number(0))]",
547
+ "eval.tests.test_runtime_surface.test_zero_operand_trees[0 - 0 * 1-Sub(Number(0), (), Mul(Number(0), (), Number(1)))]",
548
+ "eval.tests.test_runtime_surface.test_zero_operand_trees[0 - 0 - 0-Sub(Sub(Number(0), (), Number(0)), (), Number(0))]",
549
+ "eval.tests.test_runtime_surface.test_zero_operand_trees[1 * 0 - 0-Sub(Mul(Number(1), (), Number(0)), (), Number(0))]",
550
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_all_zero_mixed_operator_expression",
551
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_batch_overflow_is_terminal_after_valid_prefix",
552
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_boundary_operand_in_multiplication_chain",
553
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_deep_mixed_digit_multiplication_chain",
554
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_glued_letters_are_multi_char_unexpected_token",
555
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_many_orphan_numbers_single_failed_node",
556
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_newline_terminates_expression_read",
557
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_tab_and_mixed_whitespace_around_tokens[1\\t*\\t2\\t-\\t3-Sub(Mul(Number(1), (), Number(2)), (), Number(3))]",
558
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_tab_and_mixed_whitespace_around_tokens[1\\t-\\t2-Sub(Number(1), (), Number(2))]",
559
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_tab_and_mixed_whitespace_around_tokens[\\t1 \\t*\\t 2\\t-Mul(Number(1), (), Number(2))]",
560
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_tab_and_mixed_whitespace_around_tokens[\\t\\t\\t7-Number(7)]",
561
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_tab_before_unknown_token_keeps_caret_aligned",
562
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_trailing_whitespace_only_exits_without_parse",
563
+ "eval.tests.test_runtime_whitespace_and_error_spans.test_two_max_boundary_operands_in_expression"
564
+ ]
565
+ }
566
+ },
567
+ "commit": "c262f29b816eb66b2a9777dca1c9f67f94de6bc9",
568
+ "data_source": "synthetic_programgym",
569
+ "difficulty": "easy",
570
+ "difficulty_score": 1.3818367999983434,
571
+ "eval_clean_hashes": [
572
+ "aa4b171821e5ff4b17ded0694a9189bf6e01d67afb7fe98f29347d173ce79ab1"
573
+ ],
574
+ "input_record": {
575
+ "codeql_db_mb": 84.37,
576
+ "codeql_status": true,
577
+ "codeql_time": 36.45689008804038,
578
+ "commit": "c262f29b816eb66b2a9777dca1c9f67f94de6bc9",
579
+ "commits": 106,
580
+ "contributors": 12,
581
+ "difficulty": "easy",
582
+ "difficulty_code_lines": 2409,
583
+ "difficulty_has_tests": false,
584
+ "difficulty_product_code_lines": 2409,
585
+ "difficulty_runtime_deps": 0,
586
+ "difficulty_score": 1.3818367999983434,
587
+ "difficulty_test_code_lines": 371,
588
+ "full_name": "hydro-project/rust-sitter",
589
+ "github_stars": 720,
590
+ "input_codeql_db": "rust_codeql/hydro-project__rust-sitter",
591
+ "language": "rs",
592
+ "pb_match": [
593
+ {
594
+ "pb_fullname": "pemistahl/grex",
595
+ "rank": 303,
596
+ "similarity": 0.4906797409057617
597
+ },
598
+ {
599
+ "pb_fullname": "BurntSushi/ripgrep",
600
+ "rank": 533,
601
+ "similarity": 0.4214809536933899
602
+ },
603
+ {
604
+ "pb_fullname": "nachoparker/dutree",
605
+ "rank": 529,
606
+ "similarity": 0.48121824860572815
607
+ },
608
+ {
609
+ "pb_fullname": "alexpovel/srgn",
610
+ "rank": 38,
611
+ "similarity": 0.6050302386283875
612
+ },
613
+ {
614
+ "pb_fullname": "git-bahn/git-graph",
615
+ "rank": 963,
616
+ "similarity": 0.43851909041404724
617
+ },
618
+ {
619
+ "pb_fullname": "Stranger6667/jsonschema",
620
+ "rank": 696,
621
+ "similarity": 0.3764690160751343
622
+ },
623
+ {
624
+ "pb_fullname": "rvben/rumdl",
625
+ "rank": 459,
626
+ "similarity": 0.4661443829536438
627
+ },
628
+ {
629
+ "pb_fullname": "dandavison/delta",
630
+ "rank": 601,
631
+ "similarity": 0.4687179625034332
632
+ },
633
+ {
634
+ "pb_fullname": "dalance/amber",
635
+ "rank": 596,
636
+ "similarity": 0.4742111563682556
637
+ },
638
+ {
639
+ "pb_fullname": "oppiliappan/statix",
640
+ "rank": 266,
641
+ "similarity": 0.4987374544143677
642
+ },
643
+ {
644
+ "pb_fullname": "paradigmxyz/solar",
645
+ "rank": 888,
646
+ "similarity": 0.455664724111557
647
+ },
648
+ {
649
+ "pb_fullname": "rust-embedded/svd2rust",
650
+ "rank": 501,
651
+ "similarity": 0.5149773359298706
652
+ },
653
+ {
654
+ "pb_fullname": "oppiliappan/eva",
655
+ "rank": 553,
656
+ "similarity": 0.4762844443321228
657
+ },
658
+ {
659
+ "pb_fullname": "WGUNDERWOOD/tex-fmt",
660
+ "rank": 447,
661
+ "similarity": 0.46331143379211426
662
+ },
663
+ {
664
+ "pb_fullname": "axodotdev/oranda",
665
+ "rank": 427,
666
+ "similarity": 0.5061917304992676
667
+ },
668
+ {
669
+ "pb_fullname": "cordx56/rustowl",
670
+ "rank": 144,
671
+ "similarity": 0.6527501344680786
672
+ },
673
+ {
674
+ "pb_fullname": "codesnap-rs/codesnap",
675
+ "rank": 540,
676
+ "similarity": 0.5442372560501099
677
+ },
678
+ {
679
+ "pb_fullname": "nuta/nsh",
680
+ "rank": 702,
681
+ "similarity": 0.4963935911655426
682
+ },
683
+ {
684
+ "pb_fullname": "astro/deadnix",
685
+ "rank": 455,
686
+ "similarity": 0.49552226066589355
687
+ },
688
+ {
689
+ "pb_fullname": "wfxr/code-minimap",
690
+ "rank": 660,
691
+ "similarity": 0.5141778588294983
692
+ },
693
+ {
694
+ "pb_fullname": "riquito/tuc",
695
+ "rank": 794,
696
+ "similarity": 0.41722145676612854
697
+ },
698
+ {
699
+ "pb_fullname": "Esubaalew/run",
700
+ "rank": 716,
701
+ "similarity": 0.5262030363082886
702
+ },
703
+ {
704
+ "pb_fullname": "rhysd/kiro-editor",
705
+ "rank": 621,
706
+ "similarity": 0.5067297220230103
707
+ },
708
+ {
709
+ "pb_fullname": "sigoden/argc",
710
+ "rank": 461,
711
+ "similarity": 0.47238534688949585
712
+ },
713
+ {
714
+ "pb_fullname": "ast-grep/ast-grep",
715
+ "rank": 37,
716
+ "similarity": 0.6438003778457642
717
+ },
718
+ {
719
+ "pb_fullname": "unhappychoice/gittype",
720
+ "rank": 425,
721
+ "similarity": 0.5389736890792847
722
+ },
723
+ {
724
+ "pb_fullname": "chmln/sd",
725
+ "rank": 813,
726
+ "similarity": 0.4548530876636505
727
+ },
728
+ {
729
+ "pb_fullname": "rcoh/angle-grinder",
730
+ "rank": 951,
731
+ "similarity": 0.45318931341171265
732
+ },
733
+ {
734
+ "pb_fullname": "Epistates/treemd",
735
+ "rank": 523,
736
+ "similarity": 0.5403353571891785
737
+ },
738
+ {
739
+ "pb_fullname": "typst/typst",
740
+ "rank": 706,
741
+ "similarity": 0.45467323064804077
742
+ },
743
+ {
744
+ "pb_fullname": "parcel-bundler/lightningcss",
745
+ "rank": 212,
746
+ "similarity": 0.49266916513442993
747
+ },
748
+ {
749
+ "pb_fullname": "rochacbruno/marmite",
750
+ "rank": 516,
751
+ "similarity": 0.42919474840164185
752
+ },
753
+ {
754
+ "pb_fullname": "konradsz/igrep",
755
+ "rank": 682,
756
+ "similarity": 0.47605228424072266
757
+ },
758
+ {
759
+ "pb_fullname": "Canop/broot",
760
+ "rank": 531,
761
+ "similarity": 0.5077687501907349
762
+ },
763
+ {
764
+ "pb_fullname": "mookid/diffr",
765
+ "rank": 647,
766
+ "similarity": 0.48715484142303467
767
+ },
768
+ {
769
+ "pb_fullname": "anordal/shellharden",
770
+ "rank": 279,
771
+ "similarity": 0.5212669968605042
772
+ },
773
+ {
774
+ "pb_fullname": "sharkdp/bat",
775
+ "rank": 595,
776
+ "similarity": 0.4887799024581909
777
+ },
778
+ {
779
+ "pb_fullname": "XAMPPRocky/tokei",
780
+ "rank": 261,
781
+ "similarity": 0.46918296813964844
782
+ },
783
+ {
784
+ "pb_fullname": "yoav-lavi/melody",
785
+ "rank": 103,
786
+ "similarity": 0.5232592225074768
787
+ },
788
+ {
789
+ "pb_fullname": "tree-sitter/tree-sitter",
790
+ "rank": 1,
791
+ "similarity": 0.6791806221008301
792
+ }
793
+ ],
794
+ "repo_age": 4.11,
795
+ "repo_path": "rust/hydro-project__rust-sitter",
796
+ "rust_channel": "stable",
797
+ "rust_edition": "2021",
798
+ "rust_release_date": "2021-10-21",
799
+ "rust_version": "1.56.0",
800
+ "rust_version_source": "edition",
801
+ "source": "commit:c262f29b816eb66b2a9777dca1c9f67f94de6bc9",
802
+ "status": "done",
803
+ "url": "https://github.com/hydro-project/rust-sitter"
804
+ },
805
+ "instance_id": "hydro-project__rust-sitter.c262f29",
806
+ "language": "rust",
807
+ "module_iterations": [],
808
+ "repository": "hydro-project/rust-sitter"
809
+ }
hydro-project--rust-sitter.c262f29/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
hydro-project--rust-sitter.c262f29/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e8ba49bc3c19532a73122bd1585aa0f3d95d1b3bae7afe3c0669f7c90ef9530
3
+ size 6402
hyperboloide--lk.b291812/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"]
hyperboloide--lk.b291812/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"]
hyperion-cs--dpi-checkers.4420e07/environment/Dockerfile ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
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_EXTRA_INDEX_URL=https://pypi.org/simple
14
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
15
+ ENV npm_config_registry="https://registry.npmjs.org/"
16
+ ENV npm_config_strict_ssl=false
17
+ ENV npm_config_cache=/workspace/.cache/npm
18
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
19
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
20
+ ENV PIP_TRUSTED_HOST=""
21
+ ENV HOME=/workspace
22
+ ENV XDG_CACHE_HOME=/workspace/.cache
23
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
24
+ ENV PYTHONUSERBASE=/workspace/.local
25
+ ENV GOROOT=/usr/local/go
26
+ ENV GOPATH=/workspace/.go
27
+ ENV GOCACHE=/workspace/.cache/go-build
28
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
29
+ ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30
+ ENV PAGER=cat
31
+ ENV MANPAGER=cat
32
+ ENV LESS=-R
33
+ ENV TQDM_DISABLE=1
34
+ ENV VIRTUAL_ENV=/opt/programgym-venv
35
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
36
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
37
+ RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
38
+ RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
39
+ WORKDIR /workspace
40
+ ADD workspace.tar.gz /workspace/
41
+ COPY executable /workspace/executable
42
+ COPY download.sh /workspace/download.sh
43
+ RUN chmod 755 /workspace/download.sh
44
+ RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
45
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
46
+ RUN chmod 111 /workspace/executable
47
+ WORKDIR /workspace
48
+ # programgym-runtime-workspace-cleanup: v1
49
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
50
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
51
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
52
+ # submission handed to the separate verifier. Keep the reference executable
53
+ # execute-only; the oracle temporarily restores owner read permission.
54
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
55
+ RUN mkdir -p /home/agent \
56
+ && chown -R agent:agent /home/agent /workspace \
57
+ && chown agent:agent /workspace/executable \
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"]
hyperion-cs--dpi-checkers.4420e07/environment/download.sh ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
3
+ # Generated deterministically from repository module metadata; do not edit.
4
+ set -u
5
+ export GOTOOLCHAIN=auto
6
+ mkdir -p /workspace/.programgym_build_env/go-prefetch
7
+ cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
8
+ module github.com/hyperion-cs/dpi-checkers/ru/dpi-ch
9
+
10
+ go 1.26
11
+
12
+ require (
13
+ charm.land/bubbles/v2 v2.1.0
14
+ charm.land/bubbletea/v2 v2.0.7
15
+ charm.land/lipgloss/v2 v2.0.3
16
+ github.com/creativeprojects/go-selfupdate v1.5.2
17
+ github.com/expr-lang/expr v1.17.8
18
+ github.com/refraction-networking/utls v1.8.2
19
+ github.com/spf13/viper v1.21.0
20
+ go.yaml.in/yaml/v3 v3.0.4
21
+ go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
22
+ golang.org/x/net v0.55.0
23
+ golang.org/x/sync v0.20.0
24
+ )
25
+
26
+ require (
27
+ code.gitea.io/sdk/gitea v0.25.1 // indirect
28
+ github.com/42wim/httpsig v1.2.4 // indirect
29
+ github.com/Masterminds/semver/v3 v3.5.0 // indirect
30
+ github.com/andybalholm/brotli v1.2.1 // indirect
31
+ github.com/charmbracelet/colorprofile v0.4.3 // indirect
32
+ github.com/charmbracelet/ultraviolet v0.0.0-20260608091853-35bcb7319efa // indirect
33
+ github.com/charmbracelet/x/ansi v0.11.7 // indirect
34
+ github.com/charmbracelet/x/term v0.2.2 // indirect
35
+ github.com/charmbracelet/x/termios v0.1.1 // indirect
36
+ github.com/charmbracelet/x/windows v0.2.2 // indirect
37
+ github.com/clipperhouse/displaywidth v0.11.0 // indirect
38
+ github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
39
+ github.com/davidmz/go-pageant v1.0.2 // indirect
40
+ github.com/fsnotify/fsnotify v1.10.1 // indirect
41
+ github.com/go-fed/httpsig v1.1.0 // indirect
42
+ github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
43
+ github.com/google/go-github/v74 v74.0.0 // indirect
44
+ github.com/google/go-querystring v1.2.0 // indirect
45
+ github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
46
+ github.com/hashicorp/go-retryablehttp v0.7.8 // indirect
47
+ github.com/hashicorp/go-version v1.9.0 // indirect
48
+ github.com/klauspost/compress v1.18.6 // indirect
49
+ github.com/lucasb-eyer/go-colorful v1.4.0 // indirect
50
+ github.com/mattn/go-runewidth v0.0.24 // indirect
51
+ github.com/muesli/cancelreader v0.2.2 // indirect
52
+ github.com/pelletier/go-toml/v2 v2.3.1 // indirect
53
+ github.com/rivo/uniseg v0.4.7 // indirect
54
+ github.com/rogpeppe/go-internal v1.15.0 // indirect
55
+ github.com/sagikazarmark/locafero v0.12.0 // indirect
56
+ github.com/spf13/afero v1.15.0 // indirect
57
+ github.com/spf13/cast v1.10.0 // indirect
58
+ github.com/spf13/pflag v1.0.10 // indirect
59
+ github.com/subosito/gotenv v1.6.0 // indirect
60
+ github.com/ulikunitz/xz v0.5.15 // indirect
61
+ github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
62
+ gitlab.com/gitlab-org/api/client-go v1.46.0 // indirect
63
+ golang.org/x/crypto v0.52.0 // indirect
64
+ golang.org/x/exp v0.0.0-20260603202125-055de637280b // indirect
65
+ golang.org/x/oauth2 v0.36.0 // indirect
66
+ golang.org/x/sys v0.45.0 // indirect
67
+ golang.org/x/text v0.37.0 // indirect
68
+ golang.org/x/time v0.15.0 // indirect
69
+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
70
+ gopkg.in/yaml.v3 v3.0.1 // indirect
71
+ )
72
+ PROGRAMGYM_GO_MOD_EOF
73
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
74
+ charm.land/bubbles/v2 v2.1.0 h1:YSnNh5cPYlYjPxRrzs5VEn3vwhtEn3jVGRBT3M7/I0g=
75
+ charm.land/bubbles/v2 v2.1.0/go.mod h1:l97h4hym2hvWBVfmJDtrEHHCtkIKeTEb3TTJ4ZOB3wY=
76
+ charm.land/bubbletea/v2 v2.0.7 h1:7qw2tTAVar7m7klOPBYfTB0mniv/RuexsYwMRNxSeL0=
77
+ charm.land/bubbletea/v2 v2.0.7/go.mod h1:DGW2q8gvzHnOpMpZTORs0aySVHCox5C+2Svk0fci1qs=
78
+ charm.land/lipgloss/v2 v2.0.3 h1:yM2zJ4Cf5Y51b7RHIwioil4ApI/aypFXXVHSwlM6RzU=
79
+ charm.land/lipgloss/v2 v2.0.3/go.mod h1:7myLU9iG/3xluAWzpY/fSxYYHCgoKTie7laxk6ATwXA=
80
+ code.gitea.io/sdk/gitea v0.25.1 h1:yywxWwoV+SdjHtbC6unBiXojWdZOtoHuGhEazEXeWuE=
81
+ code.gitea.io/sdk/gitea v0.25.1/go.mod h1:uDFWYBU8dgZsgOHwe6C/6olxvf8FHguNB3wW1i83fgg=
82
+ github.com/42wim/httpsig v1.2.4 h1:mI5bH0nm4xn7K18fo1K3okNDRq8CCJ0KbBYWyA6r8lU=
83
+ github.com/42wim/httpsig v1.2.4/go.mod h1:yKsYfSyTBEohkPik224QPFylmzEBtda/kjyIAJjh3ps=
84
+ github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE=
85
+ github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
86
+ github.com/andybalholm/brotli v1.2.1 h1:R+f5xP285VArJDRgowrfb9DqL18yVK0gKAW/F+eTWro=
87
+ github.com/andybalholm/brotli v1.2.1/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
88
+ github.com/aymanbagabas/go-udiff v0.4.1 h1:OEIrQ8maEeDBXQDoGCbbTTXYJMYRCRO1fnodZ12Gv5o=
89
+ github.com/aymanbagabas/go-udiff v0.4.1/go.mod h1:0L9PGwj20lrtmEMeyw4WKJ/TMyDtvAoK9bf2u/mNo3w=
90
+ github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q=
91
+ github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q=
92
+ github.com/charmbracelet/ultraviolet v0.0.0-20260608091853-35bcb7319efa h1:rRT2qwk9xbontVloCXEUIsl1ePz0XFcIWkGi2bvmSTY=
93
+ github.com/charmbracelet/ultraviolet v0.0.0-20260608091853-35bcb7319efa/go.mod h1:hFpumms29Smx3LStRfku8vcCTBe1Kq8aCXtHUJa3mjY=
94
+ github.com/charmbracelet/x/ansi v0.11.7 h1:kzv1kJvjg2S3r9KHo8hDdHFQLEqn4RBCb39dAYC84jI=
95
+ github.com/charmbracelet/x/ansi v0.11.7/go.mod h1:9qGpnAVYz+8ACONkZBUWPtL7lulP9No6p1epAihUZwQ=
96
+ github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f h1:pk6gmGpCE7F3FcjaOEKYriCvpmIN4+6OS/RD0vm4uIA=
97
+ github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f/go.mod h1:IfZAMTHB6XkZSeXUqriemErjAWCCzT0LwjKFYCZyw0I=
98
+ github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk=
99
+ github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI=
100
+ github.com/charmbracelet/x/termios v0.1.1 h1:o3Q2bT8eqzGnGPOYheoYS8eEleT5ZVNYNy8JawjaNZY=
101
+ github.com/charmbracelet/x/termios v0.1.1/go.mod h1:rB7fnv1TgOPOyyKRJ9o+AsTU/vK5WHJ2ivHeut/Pcwo=
102
+ github.com/charmbracelet/x/windows v0.2.2 h1:IofanmuvaxnKHuV04sC0eBy/smG6kIKrWG2/jYn2GuM=
103
+ github.com/charmbracelet/x/windows v0.2.2/go.mod h1:/8XtdKZzedat74NQFn0NGlGL4soHB0YQZrETF96h75k=
104
+ github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8=
105
+ github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0=
106
+ github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk=
107
+ github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
108
+ github.com/creativeprojects/go-selfupdate v1.5.2 h1:3KR3JLrq70oplb9yZzbmJ89qRP78D1AN/9u+l3k0LJ4=
109
+ github.com/creativeprojects/go-selfupdate v1.5.2/go.mod h1:BCOuwIl1dRRCmPNRPH0amULeZqayhKyY2mH/h4va7Dk=
110
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
111
+ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
112
+ github.com/davidmz/go-pageant v1.0.2 h1:bPblRCh5jGU+Uptpz6LgMZGD5hJoOt7otgT454WvHn0=
113
+ github.com/davidmz/go-pageant v1.0.2/go.mod h1:P2EDDnMqIwG5Rrp05dTRITj9z2zpGcD9efWSkTNKLIE=
114
+ github.com/expr-lang/expr v1.17.8 h1:W1loDTT+0PQf5YteHSTpju2qfUfNoBt4yw9+wOEU9VM=
115
+ github.com/expr-lang/expr v1.17.8/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
116
+ github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
117
+ github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
118
+ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
119
+ github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
120
+ github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho=
121
+ github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo=
122
+ github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI=
123
+ github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM=
124
+ github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro=
125
+ github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
126
+ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
127
+ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
128
+ github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
129
+ github.com/google/go-github/v74 v74.0.0 h1:yZcddTUn8DPbj11GxnMrNiAnXH14gNs559AsUpNpPgM=
130
+ github.com/google/go-github/v74 v74.0.0/go.mod h1:ubn/YdyftV80VPSI26nSJvaEsTOnsjrxG3o9kJhcyak=
131
+ github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0=
132
+ github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU=
133
+ github.com/graph-gophers/graphql-go v1.9.0 h1:yu0ucKHLc5qGpRwLYKIWtr9bOoxovkWasuBrPQwlHls=
134
+ github.com/graph-gophers/graphql-go v1.9.0/go.mod h1:23olKZ7duEvHlF/2ELEoSZaY1aNPfShjP782SOoNTyM=
135
+ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
136
+ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
137
+ github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
138
+ github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
139
+ github.com/hashicorp/go-retryablehttp v0.7.8 h1:ylXZWnqa7Lhqpk0L1P1LzDtGcCR0rPVUrx/c8Unxc48=
140
+ github.com/hashicorp/go-retryablehttp v0.7.8/go.mod h1:rjiScheydd+CxvumBsIrFKlx3iS0jrZ7LvzFGFmuKbw=
141
+ github.com/hashicorp/go-version v1.9.0 h1:CeOIz6k+LoN3qX9Z0tyQrPtiB1DFYRPfCIBtaXPSCnA=
142
+ github.com/hashicorp/go-version v1.9.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
143
+ github.com/klauspost/compress v1.18.6 h1:2jupLlAwFm95+YDR+NwD2MEfFO9d4z4Prjl1XXDjuao=
144
+ github.com/klauspost/compress v1.18.6/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
145
+ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
146
+ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
147
+ github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
148
+ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
149
+ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
150
+ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
151
+ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
152
+ github.com/lucasb-eyer/go-colorful v1.4.0 h1:UtrWVfLdarDgc44HcS7pYloGHJUjHV/4FwW4TvVgFr4=
153
+ github.com/lucasb-eyer/go-colorful v1.4.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
154
+ github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
155
+ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
156
+ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
157
+ github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
158
+ github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU=
159
+ github.com/mattn/go-runewidth v0.0.24/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
160
+ github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
161
+ github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
162
+ github.com/pelletier/go-toml/v2 v2.3.1 h1:MYEvvGnQjeNkRF1qUuGolNtNExTDwct51yp7olPtrEc=
163
+ github.com/pelletier/go-toml/v2 v2.3.1/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
164
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
165
+ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
166
+ github.com/refraction-networking/utls v1.8.2 h1:j4Q1gJj0xngdeH+Ox/qND11aEfhpgoEvV+S9iJ2IdQo=
167
+ github.com/refraction-networking/utls v1.8.2/go.mod h1:jkSOEkLqn+S/jtpEHPOsVv/4V4EVnelwbMQl4vCWXAM=
168
+ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
169
+ github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
170
+ github.com/rogpeppe/go-internal v1.15.0 h1:D0RCU5rMAp+SpgkiNdrjfJ+LX4J1M32V2NeCY7EJ6hc=
171
+ github.com/rogpeppe/go-internal v1.15.0/go.mod h1:DrUVZyrJU+txYW5/1kwtXQSMFio52ZOxX7yM1VHvnxs=
172
+ github.com/sagikazarmark/locafero v0.12.0 h1:/NQhBAkUb4+fH1jivKHWusDYFjMOOKU88eegjfxfHb4=
173
+ github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI=
174
+ github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
175
+ github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
176
+ github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
177
+ github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
178
+ github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
179
+ github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
180
+ github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU=
181
+ github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY=
182
+ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
183
+ github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
184
+ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
185
+ github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
186
+ github.com/ulikunitz/xz v0.5.15 h1:9DNdB5s+SgV3bQ2ApL10xRc35ck0DuIX/isZvIk+ubY=
187
+ github.com/ulikunitz/xz v0.5.15/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
188
+ github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
189
+ github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
190
+ github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
191
+ github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
192
+ gitlab.com/gitlab-org/api/client-go v1.46.0 h1:YxBWFZIFYKcGESCb9fpkwzouo+apyB9pr/XTWzNoL24=
193
+ gitlab.com/gitlab-org/api/client-go v1.46.0/go.mod h1:FtgyU6g2HS5+fMhw6nLK96GBEEBx5MzntOiJWfIaiN8=
194
+ go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
195
+ go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
196
+ go4.org/netipx v0.0.0-20231129151722-fdeea329fbba h1:0b9z3AuHCjxk0x/opv64kcgZLBseWJUpBw5I82+2U4M=
197
+ go4.org/netipx v0.0.0-20231129151722-fdeea329fbba/go.mod h1:PLyyIXexvUFg3Owu6p/WfdlivPbZJsZdgWZlrGope/Y=
198
+ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
199
+ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
200
+ golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
201
+ golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988=
202
+ golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc=
203
+ golang.org/x/exp v0.0.0-20260603202125-055de637280b h1:v1uXiEBHo8QA0LiGCo7UgHMzHT4Kdfpl2zmtH5vaP1Q=
204
+ golang.org/x/exp v0.0.0-20260603202125-055de637280b/go.mod h1:d2fgXJLVs4dYDHUk5lwMIfzRzSrWCfGZb0ZqeLa/Vcw=
205
+ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
206
+ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
207
+ golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8=
208
+ golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww=
209
+ golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=
210
+ golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=
211
+ golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
212
+ golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
213
+ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
214
+ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
215
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
216
+ golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY=
217
+ golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
218
+ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
219
+ golang.org/x/term v0.43.0 h1:S4RLU2sB31O/NCl+zFN9Aru9A/Cq2aqKpTZJ6B+DwT4=
220
+ golang.org/x/term v0.43.0/go.mod h1:lrhlHNdQJHO+1qVYiHfFKVuVioJIheAc3fBSMFYEIsk=
221
+ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
222
+ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
223
+ golang.org/x/text v0.37.0 h1:Cqjiwd9eSg8e0QAkyCaQTNHFIIzWtidPahFWR83rTrc=
224
+ golang.org/x/text v0.37.0/go.mod h1:a5sjxXGs9hsn/AJVwuElvCAo9v8QYLzvavO5z2PiM38=
225
+ golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U=
226
+ golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno=
227
+ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
228
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
229
+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
230
+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
231
+ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
232
+ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
233
+ PROGRAMGYM_GO_SUM_EOF
234
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
235
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
236
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
237
+ *"|"*|*","*)
238
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
239
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
240
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
241
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
242
+ fi
243
+ ;;
244
+ esac
245
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
246
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
247
+ fi
248
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
249
+ import os
250
+ import signal
251
+ import subprocess
252
+ import sys
253
+ import time
254
+
255
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
256
+ if not command:
257
+ raise SystemExit(125)
258
+ environment = os.environ.copy()
259
+ environment["GOPROXY"] = proxy
260
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
261
+ try:
262
+ returncode = process.wait(timeout=float(timeout_text))
263
+ except subprocess.TimeoutExpired:
264
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
265
+ sentinel.write("expired\n")
266
+ try:
267
+ os.killpg(process.pid, signal.SIGTERM)
268
+ except ProcessLookupError:
269
+ pass
270
+ deadline = time.monotonic() + float(grace_text)
271
+ group_alive = True
272
+ while time.monotonic() < deadline:
273
+ process.poll()
274
+ try:
275
+ os.killpg(process.pid, 0)
276
+ except ProcessLookupError:
277
+ group_alive = False
278
+ break
279
+ time.sleep(0.05)
280
+ if group_alive:
281
+ try:
282
+ os.killpg(process.pid, signal.SIGKILL)
283
+ except ProcessLookupError:
284
+ pass
285
+ process.wait()
286
+ raise SystemExit(124)
287
+ if returncode < 0:
288
+ returncode = 128 - returncode
289
+ raise SystemExit(returncode)
290
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
291
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
292
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
293
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
294
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
295
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
296
+ return 1
297
+ else
298
+ exit 1
299
+ fi
300
+ fi
301
+ if ! command -v python3 >/dev/null 2>&1; then
302
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
303
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
304
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
305
+ return 1
306
+ else
307
+ exit 1
308
+ fi
309
+ fi
310
+ _programgym_go_with_nexus_timeout() {
311
+ local programgym_go_rc
312
+ local programgym_go_timeout_sentinel
313
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
314
+ return 1
315
+ fi
316
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
317
+ programgym_go_rc=0
318
+ else
319
+ programgym_go_rc=$?
320
+ fi
321
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
322
+ rm -f "$programgym_go_timeout_sentinel"
323
+ return "$programgym_go_rc"
324
+ fi
325
+ rm -f "$programgym_go_timeout_sentinel"
326
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
327
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
328
+ return "$programgym_go_rc"
329
+ fi
330
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
331
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
332
+ }
333
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
334
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
335
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
336
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
337
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
338
+ return 1
339
+ else
340
+ exit 1
341
+ fi
342
+ fi
343
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
344
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
345
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
346
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
347
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
348
+ else
349
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
350
+ fi
351
+ export PATH="$GOROOT/bin:$PATH"
352
+ export GOTOOLCHAIN=local
353
+ if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
354
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
355
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
356
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
357
+ return 1
358
+ else
359
+ exit 1
360
+ fi
361
+ fi
362
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
363
+ unset -f _programgym_go_with_nexus_timeout
364
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
365
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
366
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
367
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
368
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
hyperion-cs--dpi-checkers.4420e07/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:846c672f9ec963bd20adbb0127028bafe94bc3757db4fc7ac2e27e40dcb3bb88
3
+ size 26772986
hyperion-cs--dpi-checkers.4420e07/environment/programgym-go.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
3
+ size 59908810
hyperion-cs--dpi-checkers.4420e07/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:575927102b5ef7fdf7e649dc02b1e211ab748e89ab27fe1d9ba73e358f640ed0
3
+ size 3176
hyperion-cs--dpi-checkers.4420e07/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
hyperion-cs--dpi-checkers.4420e07/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
hyperion-cs--dpi-checkers.4420e07/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/hyperion-cs--dpi-checkers.4420e07"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for hyperion-cs/dpi-checkers"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "hyperion-cs__dpi-checkers.4420e07"
32
+ repository = "hyperion-cs/dpi-checkers"
33
+ commit = "4420e07e97aacf5d3f0f6d2c88bbe430465a030b"
34
+ language = "go"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.8612953935266958
37
+ test_branches = 4
38
+ test_count = 127
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"
hyperion-cs--dpi-checkers.4420e07/tests/Dockerfile ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
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_EXTRA_INDEX_URL=https://pypi.org/simple
14
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
15
+ ENV npm_config_registry="https://registry.npmjs.org/"
16
+ ENV npm_config_strict_ssl=false
17
+ ENV npm_config_cache=/workspace/.cache/npm
18
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
19
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
20
+ ENV PIP_TRUSTED_HOST=""
21
+ ENV HOME=/workspace
22
+ ENV XDG_CACHE_HOME=/workspace/.cache
23
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
24
+ ENV PYTHONUSERBASE=/workspace/.local
25
+ ENV GOROOT=/usr/local/go
26
+ ENV GOPATH=/workspace/.go
27
+ ENV GOCACHE=/workspace/.cache/go-build
28
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
29
+ ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30
+ ENV PAGER=cat
31
+ ENV MANPAGER=cat
32
+ ENV LESS=-R
33
+ ENV TQDM_DISABLE=1
34
+ ENV VIRTUAL_ENV=/opt/programgym-venv
35
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
36
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
37
+ RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
38
+ RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
39
+ WORKDIR /workspace
40
+ ADD workspace.tar.gz /workspace/
41
+ COPY executable /workspace/executable
42
+ COPY download.sh /workspace/download.sh
43
+ RUN chmod 755 /workspace/download.sh
44
+ RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
45
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
46
+ RUN chmod 111 /workspace/executable
47
+ WORKDIR /workspace
48
+ # programgym-runtime-workspace-cleanup: v1
49
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
50
+ # Harbor uses tests/ as the separate verifier build context. Start with the
51
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
52
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
53
+ && mkdir -p /workspace /tests
54
+
55
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
56
+ # Installing a newer pytest alone leaves that apt package importable and creates
57
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
58
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
59
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
60
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
61
+ RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
62
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
63
+
64
+ COPY test.sh /tests/test.sh
65
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
66
+ COPY programgym_task.json /tests/programgym_task.json
67
+ COPY blobs/ /tests/blobs/
68
+ RUN chmod +x /tests/test.sh
69
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
hyperion-cs--dpi-checkers.4420e07/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:12bb48a4f1c6e986435f2c66572e1bc88bf852b95b7f09a6927319356de886aa
3
+ size 5553
hyperion-cs--dpi-checkers.4420e07/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:b1948f180a59bf26834f61d1fc8f2f950a2a257262f3eff044ba1b5f0b2e88f8
3
+ size 13217
hyperion-cs--dpi-checkers.4420e07/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:97dc860dd85dc899a529232912ecebac567f7d43adc98e3b22981637d50427fb
3
+ size 5393
hyperion-cs--dpi-checkers.4420e07/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:e2dfe438319108597dee387d162e706b9beb28488c947478d1973fe402c0e9c3
3
+ size 13619
hyperion-cs--dpi-checkers.4420e07/tests/download.sh ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
3
+ # Generated deterministically from repository module metadata; do not edit.
4
+ set -u
5
+ export GOTOOLCHAIN=auto
6
+ mkdir -p /workspace/.programgym_build_env/go-prefetch
7
+ cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
8
+ module github.com/hyperion-cs/dpi-checkers/ru/dpi-ch
9
+
10
+ go 1.26
11
+
12
+ require (
13
+ charm.land/bubbles/v2 v2.1.0
14
+ charm.land/bubbletea/v2 v2.0.7
15
+ charm.land/lipgloss/v2 v2.0.3
16
+ github.com/creativeprojects/go-selfupdate v1.5.2
17
+ github.com/expr-lang/expr v1.17.8
18
+ github.com/refraction-networking/utls v1.8.2
19
+ github.com/spf13/viper v1.21.0
20
+ go.yaml.in/yaml/v3 v3.0.4
21
+ go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
22
+ golang.org/x/net v0.55.0
23
+ golang.org/x/sync v0.20.0
24
+ )
25
+
26
+ require (
27
+ code.gitea.io/sdk/gitea v0.25.1 // indirect
28
+ github.com/42wim/httpsig v1.2.4 // indirect
29
+ github.com/Masterminds/semver/v3 v3.5.0 // indirect
30
+ github.com/andybalholm/brotli v1.2.1 // indirect
31
+ github.com/charmbracelet/colorprofile v0.4.3 // indirect
32
+ github.com/charmbracelet/ultraviolet v0.0.0-20260608091853-35bcb7319efa // indirect
33
+ github.com/charmbracelet/x/ansi v0.11.7 // indirect
34
+ github.com/charmbracelet/x/term v0.2.2 // indirect
35
+ github.com/charmbracelet/x/termios v0.1.1 // indirect
36
+ github.com/charmbracelet/x/windows v0.2.2 // indirect
37
+ github.com/clipperhouse/displaywidth v0.11.0 // indirect
38
+ github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
39
+ github.com/davidmz/go-pageant v1.0.2 // indirect
40
+ github.com/fsnotify/fsnotify v1.10.1 // indirect
41
+ github.com/go-fed/httpsig v1.1.0 // indirect
42
+ github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
43
+ github.com/google/go-github/v74 v74.0.0 // indirect
44
+ github.com/google/go-querystring v1.2.0 // indirect
45
+ github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
46
+ github.com/hashicorp/go-retryablehttp v0.7.8 // indirect
47
+ github.com/hashicorp/go-version v1.9.0 // indirect
48
+ github.com/klauspost/compress v1.18.6 // indirect
49
+ github.com/lucasb-eyer/go-colorful v1.4.0 // indirect
50
+ github.com/mattn/go-runewidth v0.0.24 // indirect
51
+ github.com/muesli/cancelreader v0.2.2 // indirect
52
+ github.com/pelletier/go-toml/v2 v2.3.1 // indirect
53
+ github.com/rivo/uniseg v0.4.7 // indirect
54
+ github.com/rogpeppe/go-internal v1.15.0 // indirect
55
+ github.com/sagikazarmark/locafero v0.12.0 // indirect
56
+ github.com/spf13/afero v1.15.0 // indirect
57
+ github.com/spf13/cast v1.10.0 // indirect
58
+ github.com/spf13/pflag v1.0.10 // indirect
59
+ github.com/subosito/gotenv v1.6.0 // indirect
60
+ github.com/ulikunitz/xz v0.5.15 // indirect
61
+ github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
62
+ gitlab.com/gitlab-org/api/client-go v1.46.0 // indirect
63
+ golang.org/x/crypto v0.52.0 // indirect
64
+ golang.org/x/exp v0.0.0-20260603202125-055de637280b // indirect
65
+ golang.org/x/oauth2 v0.36.0 // indirect
66
+ golang.org/x/sys v0.45.0 // indirect
67
+ golang.org/x/text v0.37.0 // indirect
68
+ golang.org/x/time v0.15.0 // indirect
69
+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
70
+ gopkg.in/yaml.v3 v3.0.1 // indirect
71
+ )
72
+ PROGRAMGYM_GO_MOD_EOF
73
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
74
+ charm.land/bubbles/v2 v2.1.0 h1:YSnNh5cPYlYjPxRrzs5VEn3vwhtEn3jVGRBT3M7/I0g=
75
+ charm.land/bubbles/v2 v2.1.0/go.mod h1:l97h4hym2hvWBVfmJDtrEHHCtkIKeTEb3TTJ4ZOB3wY=
76
+ charm.land/bubbletea/v2 v2.0.7 h1:7qw2tTAVar7m7klOPBYfTB0mniv/RuexsYwMRNxSeL0=
77
+ charm.land/bubbletea/v2 v2.0.7/go.mod h1:DGW2q8gvzHnOpMpZTORs0aySVHCox5C+2Svk0fci1qs=
78
+ charm.land/lipgloss/v2 v2.0.3 h1:yM2zJ4Cf5Y51b7RHIwioil4ApI/aypFXXVHSwlM6RzU=
79
+ charm.land/lipgloss/v2 v2.0.3/go.mod h1:7myLU9iG/3xluAWzpY/fSxYYHCgoKTie7laxk6ATwXA=
80
+ code.gitea.io/sdk/gitea v0.25.1 h1:yywxWwoV+SdjHtbC6unBiXojWdZOtoHuGhEazEXeWuE=
81
+ code.gitea.io/sdk/gitea v0.25.1/go.mod h1:uDFWYBU8dgZsgOHwe6C/6olxvf8FHguNB3wW1i83fgg=
82
+ github.com/42wim/httpsig v1.2.4 h1:mI5bH0nm4xn7K18fo1K3okNDRq8CCJ0KbBYWyA6r8lU=
83
+ github.com/42wim/httpsig v1.2.4/go.mod h1:yKsYfSyTBEohkPik224QPFylmzEBtda/kjyIAJjh3ps=
84
+ github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE=
85
+ github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
86
+ github.com/andybalholm/brotli v1.2.1 h1:R+f5xP285VArJDRgowrfb9DqL18yVK0gKAW/F+eTWro=
87
+ github.com/andybalholm/brotli v1.2.1/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
88
+ github.com/aymanbagabas/go-udiff v0.4.1 h1:OEIrQ8maEeDBXQDoGCbbTTXYJMYRCRO1fnodZ12Gv5o=
89
+ github.com/aymanbagabas/go-udiff v0.4.1/go.mod h1:0L9PGwj20lrtmEMeyw4WKJ/TMyDtvAoK9bf2u/mNo3w=
90
+ github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q=
91
+ github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q=
92
+ github.com/charmbracelet/ultraviolet v0.0.0-20260608091853-35bcb7319efa h1:rRT2qwk9xbontVloCXEUIsl1ePz0XFcIWkGi2bvmSTY=
93
+ github.com/charmbracelet/ultraviolet v0.0.0-20260608091853-35bcb7319efa/go.mod h1:hFpumms29Smx3LStRfku8vcCTBe1Kq8aCXtHUJa3mjY=
94
+ github.com/charmbracelet/x/ansi v0.11.7 h1:kzv1kJvjg2S3r9KHo8hDdHFQLEqn4RBCb39dAYC84jI=
95
+ github.com/charmbracelet/x/ansi v0.11.7/go.mod h1:9qGpnAVYz+8ACONkZBUWPtL7lulP9No6p1epAihUZwQ=
96
+ github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f h1:pk6gmGpCE7F3FcjaOEKYriCvpmIN4+6OS/RD0vm4uIA=
97
+ github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f/go.mod h1:IfZAMTHB6XkZSeXUqriemErjAWCCzT0LwjKFYCZyw0I=
98
+ github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk=
99
+ github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI=
100
+ github.com/charmbracelet/x/termios v0.1.1 h1:o3Q2bT8eqzGnGPOYheoYS8eEleT5ZVNYNy8JawjaNZY=
101
+ github.com/charmbracelet/x/termios v0.1.1/go.mod h1:rB7fnv1TgOPOyyKRJ9o+AsTU/vK5WHJ2ivHeut/Pcwo=
102
+ github.com/charmbracelet/x/windows v0.2.2 h1:IofanmuvaxnKHuV04sC0eBy/smG6kIKrWG2/jYn2GuM=
103
+ github.com/charmbracelet/x/windows v0.2.2/go.mod h1:/8XtdKZzedat74NQFn0NGlGL4soHB0YQZrETF96h75k=
104
+ github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8=
105
+ github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0=
106
+ github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk=
107
+ github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
108
+ github.com/creativeprojects/go-selfupdate v1.5.2 h1:3KR3JLrq70oplb9yZzbmJ89qRP78D1AN/9u+l3k0LJ4=
109
+ github.com/creativeprojects/go-selfupdate v1.5.2/go.mod h1:BCOuwIl1dRRCmPNRPH0amULeZqayhKyY2mH/h4va7Dk=
110
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
111
+ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
112
+ github.com/davidmz/go-pageant v1.0.2 h1:bPblRCh5jGU+Uptpz6LgMZGD5hJoOt7otgT454WvHn0=
113
+ github.com/davidmz/go-pageant v1.0.2/go.mod h1:P2EDDnMqIwG5Rrp05dTRITj9z2zpGcD9efWSkTNKLIE=
114
+ github.com/expr-lang/expr v1.17.8 h1:W1loDTT+0PQf5YteHSTpju2qfUfNoBt4yw9+wOEU9VM=
115
+ github.com/expr-lang/expr v1.17.8/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
116
+ github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
117
+ github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
118
+ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
119
+ github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
120
+ github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho=
121
+ github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo=
122
+ github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI=
123
+ github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM=
124
+ github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro=
125
+ github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
126
+ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
127
+ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
128
+ github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
129
+ github.com/google/go-github/v74 v74.0.0 h1:yZcddTUn8DPbj11GxnMrNiAnXH14gNs559AsUpNpPgM=
130
+ github.com/google/go-github/v74 v74.0.0/go.mod h1:ubn/YdyftV80VPSI26nSJvaEsTOnsjrxG3o9kJhcyak=
131
+ github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0=
132
+ github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU=
133
+ github.com/graph-gophers/graphql-go v1.9.0 h1:yu0ucKHLc5qGpRwLYKIWtr9bOoxovkWasuBrPQwlHls=
134
+ github.com/graph-gophers/graphql-go v1.9.0/go.mod h1:23olKZ7duEvHlF/2ELEoSZaY1aNPfShjP782SOoNTyM=
135
+ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
136
+ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
137
+ github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
138
+ github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
139
+ github.com/hashicorp/go-retryablehttp v0.7.8 h1:ylXZWnqa7Lhqpk0L1P1LzDtGcCR0rPVUrx/c8Unxc48=
140
+ github.com/hashicorp/go-retryablehttp v0.7.8/go.mod h1:rjiScheydd+CxvumBsIrFKlx3iS0jrZ7LvzFGFmuKbw=
141
+ github.com/hashicorp/go-version v1.9.0 h1:CeOIz6k+LoN3qX9Z0tyQrPtiB1DFYRPfCIBtaXPSCnA=
142
+ github.com/hashicorp/go-version v1.9.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
143
+ github.com/klauspost/compress v1.18.6 h1:2jupLlAwFm95+YDR+NwD2MEfFO9d4z4Prjl1XXDjuao=
144
+ github.com/klauspost/compress v1.18.6/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
145
+ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
146
+ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
147
+ github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
148
+ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
149
+ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
150
+ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
151
+ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
152
+ github.com/lucasb-eyer/go-colorful v1.4.0 h1:UtrWVfLdarDgc44HcS7pYloGHJUjHV/4FwW4TvVgFr4=
153
+ github.com/lucasb-eyer/go-colorful v1.4.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
154
+ github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
155
+ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
156
+ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
157
+ github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
158
+ github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU=
159
+ github.com/mattn/go-runewidth v0.0.24/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
160
+ github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
161
+ github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
162
+ github.com/pelletier/go-toml/v2 v2.3.1 h1:MYEvvGnQjeNkRF1qUuGolNtNExTDwct51yp7olPtrEc=
163
+ github.com/pelletier/go-toml/v2 v2.3.1/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
164
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
165
+ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
166
+ github.com/refraction-networking/utls v1.8.2 h1:j4Q1gJj0xngdeH+Ox/qND11aEfhpgoEvV+S9iJ2IdQo=
167
+ github.com/refraction-networking/utls v1.8.2/go.mod h1:jkSOEkLqn+S/jtpEHPOsVv/4V4EVnelwbMQl4vCWXAM=
168
+ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
169
+ github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
170
+ github.com/rogpeppe/go-internal v1.15.0 h1:D0RCU5rMAp+SpgkiNdrjfJ+LX4J1M32V2NeCY7EJ6hc=
171
+ github.com/rogpeppe/go-internal v1.15.0/go.mod h1:DrUVZyrJU+txYW5/1kwtXQSMFio52ZOxX7yM1VHvnxs=
172
+ github.com/sagikazarmark/locafero v0.12.0 h1:/NQhBAkUb4+fH1jivKHWusDYFjMOOKU88eegjfxfHb4=
173
+ github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI=
174
+ github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
175
+ github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
176
+ github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
177
+ github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
178
+ github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
179
+ github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
180
+ github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU=
181
+ github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY=
182
+ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
183
+ github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
184
+ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
185
+ github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
186
+ github.com/ulikunitz/xz v0.5.15 h1:9DNdB5s+SgV3bQ2ApL10xRc35ck0DuIX/isZvIk+ubY=
187
+ github.com/ulikunitz/xz v0.5.15/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
188
+ github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
189
+ github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
190
+ github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
191
+ github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
192
+ gitlab.com/gitlab-org/api/client-go v1.46.0 h1:YxBWFZIFYKcGESCb9fpkwzouo+apyB9pr/XTWzNoL24=
193
+ gitlab.com/gitlab-org/api/client-go v1.46.0/go.mod h1:FtgyU6g2HS5+fMhw6nLK96GBEEBx5MzntOiJWfIaiN8=
194
+ go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
195
+ go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
196
+ go4.org/netipx v0.0.0-20231129151722-fdeea329fbba h1:0b9z3AuHCjxk0x/opv64kcgZLBseWJUpBw5I82+2U4M=
197
+ go4.org/netipx v0.0.0-20231129151722-fdeea329fbba/go.mod h1:PLyyIXexvUFg3Owu6p/WfdlivPbZJsZdgWZlrGope/Y=
198
+ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
199
+ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
200
+ golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
201
+ golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988=
202
+ golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc=
203
+ golang.org/x/exp v0.0.0-20260603202125-055de637280b h1:v1uXiEBHo8QA0LiGCo7UgHMzHT4Kdfpl2zmtH5vaP1Q=
204
+ golang.org/x/exp v0.0.0-20260603202125-055de637280b/go.mod h1:d2fgXJLVs4dYDHUk5lwMIfzRzSrWCfGZb0ZqeLa/Vcw=
205
+ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
206
+ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
207
+ golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8=
208
+ golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww=
209
+ golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=
210
+ golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=
211
+ golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
212
+ golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
213
+ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
214
+ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
215
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
216
+ golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY=
217
+ golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
218
+ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
219
+ golang.org/x/term v0.43.0 h1:S4RLU2sB31O/NCl+zFN9Aru9A/Cq2aqKpTZJ6B+DwT4=
220
+ golang.org/x/term v0.43.0/go.mod h1:lrhlHNdQJHO+1qVYiHfFKVuVioJIheAc3fBSMFYEIsk=
221
+ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
222
+ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
223
+ golang.org/x/text v0.37.0 h1:Cqjiwd9eSg8e0QAkyCaQTNHFIIzWtidPahFWR83rTrc=
224
+ golang.org/x/text v0.37.0/go.mod h1:a5sjxXGs9hsn/AJVwuElvCAo9v8QYLzvavO5z2PiM38=
225
+ golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U=
226
+ golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno=
227
+ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
228
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
229
+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
230
+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
231
+ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
232
+ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
233
+ PROGRAMGYM_GO_SUM_EOF
234
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
235
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
236
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
237
+ *"|"*|*","*)
238
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
239
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
240
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
241
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
242
+ fi
243
+ ;;
244
+ esac
245
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
246
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
247
+ fi
248
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
249
+ import os
250
+ import signal
251
+ import subprocess
252
+ import sys
253
+ import time
254
+
255
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
256
+ if not command:
257
+ raise SystemExit(125)
258
+ environment = os.environ.copy()
259
+ environment["GOPROXY"] = proxy
260
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
261
+ try:
262
+ returncode = process.wait(timeout=float(timeout_text))
263
+ except subprocess.TimeoutExpired:
264
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
265
+ sentinel.write("expired\n")
266
+ try:
267
+ os.killpg(process.pid, signal.SIGTERM)
268
+ except ProcessLookupError:
269
+ pass
270
+ deadline = time.monotonic() + float(grace_text)
271
+ group_alive = True
272
+ while time.monotonic() < deadline:
273
+ process.poll()
274
+ try:
275
+ os.killpg(process.pid, 0)
276
+ except ProcessLookupError:
277
+ group_alive = False
278
+ break
279
+ time.sleep(0.05)
280
+ if group_alive:
281
+ try:
282
+ os.killpg(process.pid, signal.SIGKILL)
283
+ except ProcessLookupError:
284
+ pass
285
+ process.wait()
286
+ raise SystemExit(124)
287
+ if returncode < 0:
288
+ returncode = 128 - returncode
289
+ raise SystemExit(returncode)
290
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
291
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
292
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
293
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
294
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
295
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
296
+ return 1
297
+ else
298
+ exit 1
299
+ fi
300
+ fi
301
+ if ! command -v python3 >/dev/null 2>&1; then
302
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
303
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
304
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
305
+ return 1
306
+ else
307
+ exit 1
308
+ fi
309
+ fi
310
+ _programgym_go_with_nexus_timeout() {
311
+ local programgym_go_rc
312
+ local programgym_go_timeout_sentinel
313
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
314
+ return 1
315
+ fi
316
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
317
+ programgym_go_rc=0
318
+ else
319
+ programgym_go_rc=$?
320
+ fi
321
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
322
+ rm -f "$programgym_go_timeout_sentinel"
323
+ return "$programgym_go_rc"
324
+ fi
325
+ rm -f "$programgym_go_timeout_sentinel"
326
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
327
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
328
+ return "$programgym_go_rc"
329
+ fi
330
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
331
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
332
+ }
333
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
334
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
335
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
336
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
337
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
338
+ return 1
339
+ else
340
+ exit 1
341
+ fi
342
+ fi
343
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
344
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
345
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
346
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
347
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
348
+ else
349
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
350
+ fi
351
+ export PATH="$GOROOT/bin:$PATH"
352
+ export GOTOOLCHAIN=local
353
+ if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
354
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
355
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
356
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
357
+ return 1
358
+ else
359
+ exit 1
360
+ fi
361
+ fi
362
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
363
+ unset -f _programgym_go_with_nexus_timeout
364
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
365
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
366
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
367
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
368
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
hyperion-cs--dpi-checkers.4420e07/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:846c672f9ec963bd20adbb0127028bafe94bc3757db4fc7ac2e27e40dcb3bb88
3
+ size 26772986
hyperion-cs--dpi-checkers.4420e07/tests/programgym-go.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
3
+ size 59908810
hyperion-cs--dpi-checkers.4420e07/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()
hyperion-cs--dpi-checkers.4420e07/tests/programgym_task.json ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [],
7
+ "tests": [
8
+ "eval.tests.test_config.test_cfg_path_is_directory_is_error",
9
+ "eval.tests.test_config.test_common_valid_config_shapes[all:\\n format: yaml\\n]",
10
+ "eval.tests.test_config.test_common_valid_config_shapes[checkers:\\n webhost:\\n workers: 3\\n]",
11
+ "eval.tests.test_config.test_common_valid_config_shapes[checkers:\\n whoami:\\n timeout: 9s\\n]",
12
+ "eval.tests.test_config.test_common_valid_config_shapes[debug: true\\n]",
13
+ "eval.tests.test_config.test_config_load_error_precedes_version",
14
+ "eval.tests.test_config.test_debug_false_skips_debug_log",
15
+ "eval.tests.test_config.test_debug_true_creates_debug_log",
16
+ "eval.tests.test_config.test_default_config_yaml_picked_up",
17
+ "eval.tests.test_config.test_empty_user_config_valid",
18
+ "eval.tests.test_config.test_malformed_default_config_yaml_in_cwd",
19
+ "eval.tests.test_config.test_malformed_yaml_custom_cfg",
20
+ "eval.tests.test_config.test_no_config_file_uses_embedded_defaults",
21
+ "eval.tests.test_config.test_nonexistent_cfg_path_is_error",
22
+ "eval.tests.test_config.test_user_config_overrides_fields_valid",
23
+ "eval.tests.test_flag_errors.test_bool_flag_accepts_truthy_numeric[1]",
24
+ "eval.tests.test_flag_errors.test_bool_flag_accepts_truthy_numeric[t]",
25
+ "eval.tests.test_flag_errors.test_invalid_bool_value[-all]",
26
+ "eval.tests.test_flag_errors.test_invalid_bool_value[-force-update]",
27
+ "eval.tests.test_flag_errors.test_invalid_bool_value[-version]",
28
+ "eval.tests.test_flag_errors.test_missing_flag_argument[-cfg]",
29
+ "eval.tests.test_flag_errors.test_missing_flag_argument[-ui]",
30
+ "eval.tests.test_flag_errors.test_unknown_flag_rejected[-not-a-real-flag]",
31
+ "eval.tests.test_flag_errors.test_unknown_flag_rejected[-unknownflag]",
32
+ "eval.tests.test_ui_dispatch.test_config_failure_wins_over_dispatch",
33
+ "eval.tests.test_ui_dispatch.test_ui_default_is_t_in_help",
34
+ "eval.tests.test_ui_dispatch.test_ui_dispatch_reached_after_config_load",
35
+ "eval.tests.test_ui_dispatch.test_unknown_ui_exits_nonzero_without_config_error",
36
+ "eval.tests.test_version_help.test_help_lists_every_defined_flag[--help]",
37
+ "eval.tests.test_version_help.test_help_lists_every_defined_flag[-h]",
38
+ "eval.tests.test_version_help.test_help_survives_invalid_flag_combo",
39
+ "eval.tests.test_version_help.test_version_prints_value_and_exits_zero[--version]",
40
+ "eval.tests.test_version_help.test_version_prints_value_and_exits_zero[-version]",
41
+ "eval.tests.test_version_help.test_version_short_circuits_side_effect_flag[all]",
42
+ "eval.tests.test_version_help.test_version_short_circuits_side_effect_flag[force-inetlookup-update]",
43
+ "eval.tests.test_version_help.test_version_short_circuits_side_effect_flag[force-update]"
44
+ ]
45
+ },
46
+ "generated_module_02": {
47
+ "ignore_reason": "",
48
+ "ignored": false,
49
+ "ignored_tests": [],
50
+ "tests": [
51
+ "eval.tests.test_inetlookup_errors.test_geolite_files_resolved_via_branch_resource",
52
+ "eval.tests.test_inetlookup_errors.test_geolite_missing_causes_process_failure",
53
+ "eval.tests.test_inetlookup_errors.test_yaml_report_format",
54
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_identifies_ipv4_returned_by_yandex_after_json_decode",
55
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[1.1.1.10-1.1.1.0/24-AS13335-Cloudflare, Inc.-AU]",
56
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[1.179.112.5-1.179.112.0/20-AS15169-Google Cloud Platform-FR]",
57
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[10.15.20.25-0.0.0.0/0-AS0--DE]",
58
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[100.64.44.44-100.64.0.0/10-AS12345-Cgnat Operator-]",
59
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[172.16.0.5-0.0.0.0/0-AS0--]",
60
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[193.186.4.1-193.186.4.0/24-AS15169-Google LLC-BE]",
61
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[198.51.100.7-198.51.100.0/24-AS65000-ExampleNet Labs-]",
62
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[2.56.250.9-2.56.250.0/24-AS15169-Google Cloud Platform-CH]",
63
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[31.44.8.1-31.44.8.0/24-AS200351-Yandex.Cloud LLC-RU]",
64
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[31.44.8.24-31.44.8.0/24-AS200351-Yandex.Cloud LLC-RU]",
65
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[34.0.128.1-34.0.128.0/19-AS15169-Google LLC-US]",
66
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[34.0.140.9-34.0.140.0/24-AS12345-OverlapCorp-US]",
67
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[8.1.2.3-8.0.0.0/8-AS3356-Level3 Communications-US]",
68
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[8.8.8.8-8.8.8.0/24-AS15169-Google LLC-US]",
69
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[91.108.0.10-91.108.0.0/16-AS47542-Telegram Messenger-RU]",
70
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipinfo_lookup[95.108.128.1-95.108.0.0/16-AS3261-Rostelecom-RU]",
71
+ "eval.tests.test_inetlookup_ipinfo.test_whoami_ipv6_not_in_dataset",
72
+ "eval.tests.test_inetutil_http.test_both_endpoints_down_propagates_error",
73
+ "eval.tests.test_inetutil_http.test_both_endpoints_undecodable_reports_err",
74
+ "eval.tests.test_inetutil_http.test_browser_headers_are_sent_on_yandex_request",
75
+ "eval.tests.test_inetutil_http.test_browser_headers_default_from_embedded_config",
76
+ "eval.tests.test_inetutil_http.test_connection_refused_both_endpoints",
77
+ "eval.tests.test_inetutil_http.test_fallback_to_ripe_when_yandex_undecodable[\"not_an_ip\"-{\"data\":{\"ip\":\"95.108.128.1\"}}-95.108.128.1-Rostelecom]",
78
+ "eval.tests.test_inetutil_http.test_fallback_to_ripe_when_yandex_undecodable[31.44.8.1-{\"data\":{\"ip\":\"95.108.128.1\"}}-95.108.128.1-Rostelecom]",
79
+ "eval.tests.test_inetutil_http.test_iface_ignored_when_invalid[no-such-interface]",
80
+ "eval.tests.test_inetutil_http.test_iface_ignored_when_invalid[not-an-ip]",
81
+ "eval.tests.test_inetutil_http.test_ipv6_iface_value_ignored",
82
+ "eval.tests.test_inetutil_http.test_ripe_response_used_when_yandex_poisoned",
83
+ "eval.tests.test_inetutil_http.test_undecodable_yandex_shapes_fall_back_to_ripe[123-Rostelecom-True]",
84
+ "eval.tests.test_inetutil_http.test_undecodable_yandex_shapes_fall_back_to_ripe[[]-Rostelecom-True]",
85
+ "eval.tests.test_inetutil_http.test_undecodable_yandex_shapes_fall_back_to_ripe[{\"a\":1}-Rostelecom-True]",
86
+ "eval.tests.test_inetutil_http.test_working_yandex_ignores_broken_ripe",
87
+ "eval.tests.test_inetutil_http.test_yandex_500_with_valid_json_body_still_parsed",
88
+ "eval.tests.test_inetutil_http.test_yandex_http_error_falls_back_to_ripe"
89
+ ]
90
+ },
91
+ "generated_module_03": {
92
+ "ignore_reason": "",
93
+ "ignored": false,
94
+ "ignored_tests": [],
95
+ "tests": [
96
+ "eval.tests.test_fullcheck_engine.test_empty_checkers_writes_json_report[json]",
97
+ "eval.tests.test_fullcheck_engine.test_empty_checkers_writes_yaml_report[yaml]",
98
+ "eval.tests.test_fullcheck_engine.test_report_has_expected_file_extension[json-json]",
99
+ "eval.tests.test_fullcheck_engine.test_report_has_expected_file_extension[yaml-yaml]",
100
+ "eval.tests.test_fullcheck_engine.test_report_prefix_is_respected[]",
101
+ "eval.tests.test_fullcheck_engine.test_report_prefix_is_respected[_,x,]",
102
+ "eval.tests.test_fullcheck_engine.test_report_written_to_absolute_directory"
103
+ ]
104
+ },
105
+ "generated_module_04": {
106
+ "ignore_reason": "",
107
+ "ignored": false,
108
+ "ignored_tests": [],
109
+ "tests": [
110
+ "eval.tests.test_config.test_generated_config_merges_and_version_prints",
111
+ "eval.tests.test_config.test_valid_custom_config_merges_and_version_prints[all-flag-on]",
112
+ "eval.tests.test_config.test_valid_custom_config_merges_and_version_prints[updater-off]",
113
+ "eval.tests.test_config.test_valid_custom_config_merges_and_version_prints[updater-on]",
114
+ "eval.tests.test_config.test_valid_custom_config_merges_and_version_prints[whoami-timeout]",
115
+ "eval.tests.test_config.test_version_with_directory_as_config_fails",
116
+ "eval.tests.test_config.test_version_with_malformed_config_fails[bad-structure]",
117
+ "eval.tests.test_config.test_version_with_malformed_config_fails[malformed-bracket]",
118
+ "eval.tests.test_config.test_version_with_missing_custom_config_fails",
119
+ "eval.tests.test_dispatch_help.test_all_flag_accepted",
120
+ "eval.tests.test_dispatch_help.test_boolean_or_string_flag_missing_value[cfg-missing-value]",
121
+ "eval.tests.test_dispatch_help.test_boolean_or_string_flag_missing_value[ui-missing-value]",
122
+ "eval.tests.test_dispatch_help.test_force_inetlookup_update_flag_accepted",
123
+ "eval.tests.test_dispatch_help.test_force_update_flag_accepted",
124
+ "eval.tests.test_dispatch_help.test_help_flag_prints_usage[double-h]",
125
+ "eval.tests.test_dispatch_help.test_help_flag_prints_usage[h]",
126
+ "eval.tests.test_dispatch_help.test_help_flag_prints_usage[help]",
127
+ "eval.tests.test_dispatch_help.test_help_mentions_ui_default_t",
128
+ "eval.tests.test_dispatch_help.test_unknown_flag_is_flag_error[double-dash]",
129
+ "eval.tests.test_dispatch_help.test_unknown_flag_is_flag_error[single-dash]",
130
+ "eval.tests.test_dispatch_help.test_unknown_ui_value_is_fatal[curses]",
131
+ "eval.tests.test_dispatch_help.test_unknown_ui_value_is_fatal[empty]",
132
+ "eval.tests.test_dispatch_help.test_unknown_ui_value_is_fatal[garbage]",
133
+ "eval.tests.test_dispatch_help.test_unknown_ui_value_is_fatal[single-char]",
134
+ "eval.tests.test_dispatch_help.test_unknown_ui_value_is_fatal[webui]",
135
+ "eval.tests.test_tui.test_tui_init_calls_updater_timetoupdate_both_fresh",
136
+ "eval.tests.test_tui.test_tui_menu_backspace_then_quit",
137
+ "eval.tests.test_tui.test_tui_menu_cleanly_exits[ctrl-c]",
138
+ "eval.tests.test_tui.test_tui_menu_cleanly_exits[esc-key]",
139
+ "eval.tests.test_tui.test_tui_menu_cleanly_exits[q-key]",
140
+ "eval.tests.test_tui.test_tui_menu_down_arrow_then_quit",
141
+ "eval.tests.test_tui.test_tui_menu_m_key_then_quit",
142
+ "eval.tests.test_tui.test_tui_menu_navigation_then_quit[arrows-updown]",
143
+ "eval.tests.test_tui.test_tui_menu_navigation_then_quit[vim-down]",
144
+ "eval.tests.test_tui.test_tui_menu_navigation_then_quit[vim-up]",
145
+ "eval.tests.test_tui.test_tui_menu_repeated_navigation_stays_clean",
146
+ "eval.tests.test_tui.test_tui_missing_geolite_is_recoverable_panic",
147
+ "eval.tests.test_version_webui.test_version_flag_prints_default[dash]",
148
+ "eval.tests.test_version_webui.test_version_flag_prints_default[double-dash]",
149
+ "eval.tests.test_version_webui.test_version_flag_prints_default[version-ignores-bad-ui]",
150
+ "eval.tests.test_version_webui.test_version_flag_prints_default[version-wins-over-ui]",
151
+ "eval.tests.test_version_webui.test_version_is_printed_to_stdout_only[dash]",
152
+ "eval.tests.test_version_webui.test_version_is_printed_to_stdout_only[double-dash]",
153
+ "eval.tests.test_version_webui.test_web_ui_mode_equals_form",
154
+ "eval.tests.test_version_webui.test_web_ui_mode_prints_placeholder",
155
+ "eval.tests.test_version_webui.test_web_ui_with_custom_config_still_prints"
156
+ ]
157
+ }
158
+ },
159
+ "commit": "4420e07e97aacf5d3f0f6d2c88bbe430465a030b",
160
+ "data_source": "synthetic_programgym",
161
+ "difficulty": "easy",
162
+ "difficulty_score": 1.8612953935266958,
163
+ "eval_clean_hashes": [
164
+ "846c672f9ec963bd20adbb0127028bafe94bc3757db4fc7ac2e27e40dcb3bb88"
165
+ ],
166
+ "input_record": {
167
+ "commit": "4420e07e97aacf5d3f0f6d2c88bbe430465a030b",
168
+ "commits": 175,
169
+ "contributors": 7,
170
+ "difficulty": "easy",
171
+ "difficulty_code_lines": 7266,
172
+ "difficulty_has_tests": false,
173
+ "difficulty_product_code_lines": 7266,
174
+ "difficulty_runtime_deps": 0,
175
+ "difficulty_score": 1.8612953935266958,
176
+ "difficulty_test_code_lines": 298,
177
+ "full_name": "hyperion-cs/dpi-checkers",
178
+ "github_stars": 1925,
179
+ "input_joern_zip": "go_joern/hyperion-cs__dpi-checkers.zip",
180
+ "joern_status": true,
181
+ "joern_time": 14.103899986948818,
182
+ "language": "go",
183
+ "pb_match": [
184
+ {
185
+ "pb_fullname": "guumaster/hostctl",
186
+ "rank": 852,
187
+ "similarity": 0.4495493471622467
188
+ },
189
+ {
190
+ "pb_fullname": "noborus/ov",
191
+ "rank": 794,
192
+ "similarity": 0.49206432700157166
193
+ },
194
+ {
195
+ "pb_fullname": "sheepla/pingu",
196
+ "rank": 144,
197
+ "similarity": 0.5316569805145264
198
+ },
199
+ {
200
+ "pb_fullname": "raviqqe/muffet",
201
+ "rank": 212,
202
+ "similarity": 0.5216370224952698
203
+ },
204
+ {
205
+ "pb_fullname": "TheZoraiz/ascii-image-converter",
206
+ "rank": 874,
207
+ "similarity": 0.4663920998573303
208
+ },
209
+ {
210
+ "pb_fullname": "cheat/cheat",
211
+ "rank": 254,
212
+ "similarity": 0.5429481267929077
213
+ },
214
+ {
215
+ "pb_fullname": "dundee/gdu",
216
+ "rank": 983,
217
+ "similarity": 0.4735144376754761
218
+ },
219
+ {
220
+ "pb_fullname": "junegunn/fzf",
221
+ "rank": 658,
222
+ "similarity": 0.4654785692691803
223
+ }
224
+ ],
225
+ "repo_age": 1.1,
226
+ "repo_path": "go/hyperion-cs__dpi-checkers",
227
+ "source": "commit:4420e07e97aacf5d3f0f6d2c88bbe430465a030b",
228
+ "status": "done",
229
+ "url": "https://github.com/hyperion-cs/dpi-checkers"
230
+ },
231
+ "instance_id": "hyperion-cs__dpi-checkers.4420e07",
232
+ "language": "go",
233
+ "module_iterations": [
234
+ {
235
+ "actual_iterations": 2,
236
+ "branch_name": "generated_module_01",
237
+ "iteration_limit": 5,
238
+ "module_index": 1,
239
+ "module_kind": "source",
240
+ "termination_reason": "coverage_path_attribution_failure"
241
+ },
242
+ {
243
+ "actual_iterations": 1,
244
+ "branch_name": "generated_module_02",
245
+ "iteration_limit": 5,
246
+ "module_index": 2,
247
+ "module_kind": "source",
248
+ "termination_reason": "coverage_path_attribution_failure"
249
+ },
250
+ {
251
+ "actual_iterations": 3,
252
+ "branch_name": "generated_module_03",
253
+ "iteration_limit": 5,
254
+ "module_index": 3,
255
+ "module_kind": "source",
256
+ "termination_reason": "coverage_path_attribution_failure"
257
+ },
258
+ {
259
+ "actual_iterations": 2,
260
+ "branch_name": "generated_module_04",
261
+ "iteration_limit": 5,
262
+ "module_index": 4,
263
+ "module_kind": "source",
264
+ "termination_reason": "coverage_path_attribution_failure"
265
+ }
266
+ ],
267
+ "repository": "hyperion-cs/dpi-checkers"
268
+ }
hyperion-cs--dpi-checkers.4420e07/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
hyperion-cs--dpi-checkers.4420e07/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:575927102b5ef7fdf7e649dc02b1e211ab748e89ab27fe1d9ba73e358f640ed0
3
+ size 3176
i5ting--learn-rust-for-fe.678e26a/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"]
i5ting--learn-rust-for-fe.678e26a/environment/download.sh ADDED
@@ -0,0 +1,2041 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # ProgramGym DOWNLOAD stage for i5ting/learn-rust-for-fe (rust).
4
+ #
5
+ # This script is standalone and source-safe. It must be executed via:
6
+ # source /source_ro/download.sh
7
+ # during the networked validation stage. It ONLY prefetches the exact Rust
8
+ # crate versions pinned in the repository's Cargo.lock (embedded inline below)
9
+ # into CARGO_HOME so that the later offline build.sh can compile with
10
+ # `cargo build --offline`. It performs no compilation, linking, or testing:
11
+ # `cargo fetch` only downloads crate sources into the local cache.
12
+
13
+ # ---------------------------------------------------------------------------
14
+ # Environment defaults
15
+ # ---------------------------------------------------------------------------
16
+ export CARGO_HOME="${CARGO_HOME:-/usr/local/cargo}"
17
+
18
+ # ---------------------------------------------------------------------------
19
+ # Source-safe failure helper
20
+ # When this script is sourced (the validation does `source download.sh`), a
21
+ # failure should only `return` a nonzero status to the caller's shell rather
22
+ # than killing it. When executed directly, `exit` is appropriate.
23
+ # ---------------------------------------------------------------------------
24
+ _pb_sourced=0
25
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
26
+ _pb_sourced=1
27
+ fi
28
+
29
+ _pb_fail() {
30
+ if [ "$_pb_sourced" -eq 1 ]; then
31
+ return 1
32
+ else
33
+ exit 1
34
+ fi
35
+ }
36
+
37
+ # ---------------------------------------------------------------------------
38
+ # Create a self-contained temporary package so `cargo fetch` has a manifest
39
+ # and lockfile to resolve against. The manifest mirrors the repository root
40
+ # package (`rust-fe`) and the lockfile is the repository's committed
41
+ # Cargo.lock (embedded below verbatim). Fetching with `--locked` warms the
42
+ # cache with exactly the pinned versions, so the offline build never needs to
43
+ # contact the network.
44
+ # ---------------------------------------------------------------------------
45
+ _pb_tmp="$(mktemp -d)"
46
+ if [ -z "$_pb_tmp" ]; then
47
+ _pb_fail
48
+ fi
49
+
50
+ cat > "$_pb_tmp/Cargo.toml" <<'EOF'
51
+ [package]
52
+ name = "rust-fe"
53
+ version = "0.1.0"
54
+ edition = "2021"
55
+
56
+ [dependencies]
57
+
58
+ [build-dependencies]
59
+ mdbook = "0.4.21"
60
+ EOF
61
+ if [ $? -ne 0 ]; then
62
+ _pb_fail
63
+ fi
64
+
65
+ mkdir -p "$_pb_tmp/src"
66
+ printf 'fn main() {}\n' > "$_pb_tmp/src/main.rs"
67
+ if [ $? -ne 0 ]; then
68
+ _pb_fail
69
+ fi
70
+
71
+ cat > "$_pb_tmp/Cargo.lock" <<'LOCKEOF'
72
+ # This file is automatically @generated by Cargo.
73
+ # It is not intended for manual editing.
74
+ version = 3
75
+
76
+ [[package]]
77
+ name = "aho-corasick"
78
+ version = "0.7.19"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e"
81
+ dependencies = [
82
+ "memchr",
83
+ ]
84
+
85
+ [[package]]
86
+ name = "ammonia"
87
+ version = "3.2.1"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "4b477377562f3086b7778d241786e9406b883ccfaa03557c0fe0924b9349f13a"
90
+ dependencies = [
91
+ "html5ever",
92
+ "maplit",
93
+ "once_cell",
94
+ "tendril",
95
+ "url",
96
+ ]
97
+
98
+ [[package]]
99
+ name = "android_system_properties"
100
+ version = "0.1.5"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
103
+ dependencies = [
104
+ "libc",
105
+ ]
106
+
107
+ [[package]]
108
+ name = "anyhow"
109
+ version = "1.0.66"
110
+ source = "registry+https://github.com/rust-lang/crates.io-index"
111
+ checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6"
112
+
113
+ [[package]]
114
+ name = "atty"
115
+ version = "0.2.14"
116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
117
+ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
118
+ dependencies = [
119
+ "hermit-abi",
120
+ "libc",
121
+ "winapi 0.3.9",
122
+ ]
123
+
124
+ [[package]]
125
+ name = "autocfg"
126
+ version = "1.1.0"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
129
+
130
+ [[package]]
131
+ name = "base64"
132
+ version = "0.13.1"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
135
+
136
+ [[package]]
137
+ name = "bitflags"
138
+ version = "1.3.2"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
141
+
142
+ [[package]]
143
+ name = "block-buffer"
144
+ version = "0.10.3"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e"
147
+ dependencies = [
148
+ "generic-array",
149
+ ]
150
+
151
+ [[package]]
152
+ name = "bstr"
153
+ version = "0.2.17"
154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
155
+ checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223"
156
+ dependencies = [
157
+ "lazy_static",
158
+ "memchr",
159
+ "regex-automata",
160
+ ]
161
+
162
+ [[package]]
163
+ name = "bumpalo"
164
+ version = "3.11.1"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba"
167
+
168
+ [[package]]
169
+ name = "byteorder"
170
+ version = "1.4.3"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
173
+
174
+ [[package]]
175
+ name = "bytes"
176
+ version = "1.2.1"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db"
179
+
180
+ [[package]]
181
+ name = "cc"
182
+ version = "1.0.76"
183
+ source = "registry+https://github.com/rust-lang/crates.io-index"
184
+ checksum = "76a284da2e6fe2092f2353e51713435363112dfd60030e22add80be333fb928f"
185
+
186
+ [[package]]
187
+ name = "cfg-if"
188
+ version = "0.1.10"
189
+ source = "registry+https://github.com/rust-lang/crates.io-index"
190
+ checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
191
+
192
+ [[package]]
193
+ name = "cfg-if"
194
+ version = "1.0.0"
195
+ source = "registry+https://github.com/rust-lang/crates.io-index"
196
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
197
+
198
+ [[package]]
199
+ name = "chrono"
200
+ version = "0.4.23"
201
+ source = "registry+https://github.com/rust-lang/crates.io-index"
202
+ checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f"
203
+ dependencies = [
204
+ "iana-time-zone",
205
+ "js-sys",
206
+ "num-integer",
207
+ "num-traits",
208
+ "time",
209
+ "wasm-bindgen",
210
+ "winapi 0.3.9",
211
+ ]
212
+
213
+ [[package]]
214
+ name = "clap"
215
+ version = "3.2.23"
216
+ source = "registry+https://github.com/rust-lang/crates.io-index"
217
+ checksum = "71655c45cb9845d3270c9d6df84ebe72b4dad3c2ba3f7023ad47c144e4e473a5"
218
+ dependencies = [
219
+ "atty",
220
+ "bitflags",
221
+ "clap_lex",
222
+ "indexmap",
223
+ "once_cell",
224
+ "strsim",
225
+ "termcolor",
226
+ "textwrap",
227
+ ]
228
+
229
+ [[package]]
230
+ name = "clap_complete"
231
+ version = "3.2.5"
232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
233
+ checksum = "3f7a2e0a962c45ce25afce14220bc24f9dade0a1787f185cecf96bfba7847cd8"
234
+ dependencies = [
235
+ "clap",
236
+ ]
237
+
238
+ [[package]]
239
+ name = "clap_lex"
240
+ version = "0.2.4"
241
+ source = "registry+https://github.com/rust-lang/crates.io-index"
242
+ checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5"
243
+ dependencies = [
244
+ "os_str_bytes",
245
+ ]
246
+
247
+ [[package]]
248
+ name = "codespan-reporting"
249
+ version = "0.11.1"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
252
+ dependencies = [
253
+ "termcolor",
254
+ "unicode-width",
255
+ ]
256
+
257
+ [[package]]
258
+ name = "core-foundation-sys"
259
+ version = "0.8.3"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
262
+
263
+ [[package]]
264
+ name = "cpufeatures"
265
+ version = "0.2.5"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320"
268
+ dependencies = [
269
+ "libc",
270
+ ]
271
+
272
+ [[package]]
273
+ name = "crypto-common"
274
+ version = "0.1.6"
275
+ source = "registry+https://github.com/rust-lang/crates.io-index"
276
+ checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
277
+ dependencies = [
278
+ "generic-array",
279
+ "typenum",
280
+ ]
281
+
282
+ [[package]]
283
+ name = "cxx"
284
+ version = "1.0.81"
285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
286
+ checksum = "97abf9f0eca9e52b7f81b945524e76710e6cb2366aead23b7d4fbf72e281f888"
287
+ dependencies = [
288
+ "cc",
289
+ "cxxbridge-flags",
290
+ "cxxbridge-macro",
291
+ "link-cplusplus",
292
+ ]
293
+
294
+ [[package]]
295
+ name = "cxx-build"
296
+ version = "1.0.81"
297
+ source = "registry+https://github.com/rust-lang/crates.io-index"
298
+ checksum = "7cc32cc5fea1d894b77d269ddb9f192110069a8a9c1f1d441195fba90553dea3"
299
+ dependencies = [
300
+ "cc",
301
+ "codespan-reporting",
302
+ "once_cell",
303
+ "proc-macro2",
304
+ "quote",
305
+ "scratch",
306
+ "syn",
307
+ ]
308
+
309
+ [[package]]
310
+ name = "cxxbridge-flags"
311
+ version = "1.0.81"
312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
313
+ checksum = "8ca220e4794c934dc6b1207c3b42856ad4c302f2df1712e9f8d2eec5afaacf1f"
314
+
315
+ [[package]]
316
+ name = "cxxbridge-macro"
317
+ version = "1.0.81"
318
+ source = "registry+https://github.com/rust-lang/crates.io-index"
319
+ checksum = "b846f081361125bfc8dc9d3940c84e1fd83ba54bbca7b17cd29483c828be0704"
320
+ dependencies = [
321
+ "proc-macro2",
322
+ "quote",
323
+ "syn",
324
+ ]
325
+
326
+ [[package]]
327
+ name = "digest"
328
+ version = "0.10.5"
329
+ source = "registry+https://github.com/rust-lang/crates.io-index"
330
+ checksum = "adfbc57365a37acbd2ebf2b64d7e69bb766e2fea813521ed536f5d0520dcf86c"
331
+ dependencies = [
332
+ "block-buffer",
333
+ "crypto-common",
334
+ ]
335
+
336
+ [[package]]
337
+ name = "elasticlunr-rs"
338
+ version = "3.0.1"
339
+ source = "registry+https://github.com/rust-lang/crates.io-index"
340
+ checksum = "b94d9c8df0fe6879ca12e7633fdfe467c503722cc981fc463703472d2b876448"
341
+ dependencies = [
342
+ "regex",
343
+ "serde",
344
+ "serde_derive",
345
+ "serde_json",
346
+ ]
347
+
348
+ [[package]]
349
+ name = "env_logger"
350
+ version = "0.9.3"
351
+ source = "registry+https://github.com/rust-lang/crates.io-index"
352
+ checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7"
353
+ dependencies = [
354
+ "atty",
355
+ "humantime",
356
+ "log",
357
+ "regex",
358
+ "termcolor",
359
+ ]
360
+
361
+ [[package]]
362
+ name = "fastrand"
363
+ version = "1.8.0"
364
+ source = "registry+https://github.com/rust-lang/crates.io-index"
365
+ checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499"
366
+ dependencies = [
367
+ "instant",
368
+ ]
369
+
370
+ [[package]]
371
+ name = "filetime"
372
+ version = "0.2.18"
373
+ source = "registry+https://github.com/rust-lang/crates.io-index"
374
+ checksum = "4b9663d381d07ae25dc88dbdf27df458faa83a9b25336bcac83d5e452b5fc9d3"
375
+ dependencies = [
376
+ "cfg-if 1.0.0",
377
+ "libc",
378
+ "redox_syscall",
379
+ "windows-sys",
380
+ ]
381
+
382
+ [[package]]
383
+ name = "fnv"
384
+ version = "1.0.7"
385
+ source = "registry+https://github.com/rust-lang/crates.io-index"
386
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
387
+
388
+ [[package]]
389
+ name = "form_urlencoded"
390
+ version = "1.1.0"
391
+ source = "registry+https://github.com/rust-lang/crates.io-index"
392
+ checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8"
393
+ dependencies = [
394
+ "percent-encoding",
395
+ ]
396
+
397
+ [[package]]
398
+ name = "fsevent"
399
+ version = "0.4.0"
400
+ source = "registry+https://github.com/rust-lang/crates.io-index"
401
+ checksum = "5ab7d1bd1bd33cc98b0889831b72da23c0aa4df9cec7e0702f46ecea04b35db6"
402
+ dependencies = [
403
+ "bitflags",
404
+ "fsevent-sys",
405
+ ]
406
+
407
+ [[package]]
408
+ name = "fsevent-sys"
409
+ version = "2.0.1"
410
+ source = "registry+https://github.com/rust-lang/crates.io-index"
411
+ checksum = "f41b048a94555da0f42f1d632e2e19510084fb8e303b0daa2816e733fb3644a0"
412
+ dependencies = [
413
+ "libc",
414
+ ]
415
+
416
+ [[package]]
417
+ name = "fuchsia-zircon"
418
+ version = "0.3.3"
419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
420
+ checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
421
+ dependencies = [
422
+ "bitflags",
423
+ "fuchsia-zircon-sys",
424
+ ]
425
+
426
+ [[package]]
427
+ name = "fuchsia-zircon-sys"
428
+ version = "0.3.3"
429
+ source = "registry+https://github.com/rust-lang/crates.io-index"
430
+ checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
431
+
432
+ [[package]]
433
+ name = "futf"
434
+ version = "0.1.5"
435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
436
+ checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"
437
+ dependencies = [
438
+ "mac",
439
+ "new_debug_unreachable",
440
+ ]
441
+
442
+ [[package]]
443
+ name = "futures-channel"
444
+ version = "0.3.25"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed"
447
+ dependencies = [
448
+ "futures-core",
449
+ "futures-sink",
450
+ ]
451
+
452
+ [[package]]
453
+ name = "futures-core"
454
+ version = "0.3.25"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac"
457
+
458
+ [[package]]
459
+ name = "futures-macro"
460
+ version = "0.3.25"
461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
462
+ checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d"
463
+ dependencies = [
464
+ "proc-macro2",
465
+ "quote",
466
+ "syn",
467
+ ]
468
+
469
+ [[package]]
470
+ name = "futures-sink"
471
+ version = "0.3.25"
472
+ source = "registry+https://github.com/rust-lang/crates.io-index"
473
+ checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9"
474
+
475
+ [[package]]
476
+ name = "futures-task"
477
+ version = "0.3.25"
478
+ source = "registry+https://github.com/rust-lang/crates.io-index"
479
+ checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea"
480
+
481
+ [[package]]
482
+ name = "futures-util"
483
+ version = "0.3.25"
484
+ source = "registry+https://github.com/rust-lang/crates.io-index"
485
+ checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6"
486
+ dependencies = [
487
+ "futures-core",
488
+ "futures-macro",
489
+ "futures-sink",
490
+ "futures-task",
491
+ "pin-project-lite",
492
+ "pin-utils",
493
+ "slab",
494
+ ]
495
+
496
+ [[package]]
497
+ name = "generic-array"
498
+ version = "0.14.6"
499
+ source = "registry+https://github.com/rust-lang/crates.io-index"
500
+ checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9"
501
+ dependencies = [
502
+ "typenum",
503
+ "version_check",
504
+ ]
505
+
506
+ [[package]]
507
+ name = "getrandom"
508
+ version = "0.2.8"
509
+ source = "registry+https://github.com/rust-lang/crates.io-index"
510
+ checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
511
+ dependencies = [
512
+ "cfg-if 1.0.0",
513
+ "libc",
514
+ "wasi 0.11.0+wasi-snapshot-preview1",
515
+ ]
516
+
517
+ [[package]]
518
+ name = "gitignore"
519
+ version = "1.0.7"
520
+ source = "registry+https://github.com/rust-lang/crates.io-index"
521
+ checksum = "78aa90e4620c1498ac434c06ba6e521b525794bbdacf085d490cc794b4a2f9a4"
522
+ dependencies = [
523
+ "glob",
524
+ ]
525
+
526
+ [[package]]
527
+ name = "glob"
528
+ version = "0.3.0"
529
+ source = "registry+https://github.com/rust-lang/crates.io-index"
530
+ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
531
+
532
+ [[package]]
533
+ name = "h2"
534
+ version = "0.3.15"
535
+ source = "registry+https://github.com/rust-lang/crates.io-index"
536
+ checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4"
537
+ dependencies = [
538
+ "bytes",
539
+ "fnv",
540
+ "futures-core",
541
+ "futures-sink",
542
+ "futures-util",
543
+ "http",
544
+ "indexmap",
545
+ "slab",
546
+ "tokio",
547
+ "tokio-util",
548
+ "tracing",
549
+ ]
550
+
551
+ [[package]]
552
+ name = "handlebars"
553
+ version = "4.3.5"
554
+ source = "registry+https://github.com/rust-lang/crates.io-index"
555
+ checksum = "433e4ab33f1213cdc25b5fa45c76881240cfe79284cf2b395e8b9e312a30a2fd"
556
+ dependencies = [
557
+ "log",
558
+ "pest",
559
+ "pest_derive",
560
+ "serde",
561
+ "serde_json",
562
+ "thiserror",
563
+ ]
564
+
565
+ [[package]]
566
+ name = "hashbrown"
567
+ version = "0.12.3"
568
+ source = "registry+https://github.com/rust-lang/crates.io-index"
569
+ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
570
+
571
+ [[package]]
572
+ name = "headers"
573
+ version = "0.3.8"
574
+ source = "registry+https://github.com/rust-lang/crates.io-index"
575
+ checksum = "f3e372db8e5c0d213e0cd0b9be18be2aca3d44cf2fe30a9d46a65581cd454584"
576
+ dependencies = [
577
+ "base64",
578
+ "bitflags",
579
+ "bytes",
580
+ "headers-core",
581
+ "http",
582
+ "httpdate",
583
+ "mime",
584
+ "sha1",
585
+ ]
586
+
587
+ [[package]]
588
+ name = "headers-core"
589
+ version = "0.2.0"
590
+ source = "registry+https://github.com/rust-lang/crates.io-index"
591
+ checksum = "e7f66481bfee273957b1f20485a4ff3362987f85b2c236580d81b4eb7a326429"
592
+ dependencies = [
593
+ "http",
594
+ ]
595
+
596
+ [[package]]
597
+ name = "hermit-abi"
598
+ version = "0.1.19"
599
+ source = "registry+https://github.com/rust-lang/crates.io-index"
600
+ checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
601
+ dependencies = [
602
+ "libc",
603
+ ]
604
+
605
+ [[package]]
606
+ name = "html5ever"
607
+ version = "0.26.0"
608
+ source = "registry+https://github.com/rust-lang/crates.io-index"
609
+ checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7"
610
+ dependencies = [
611
+ "log",
612
+ "mac",
613
+ "markup5ever",
614
+ "proc-macro2",
615
+ "quote",
616
+ "syn",
617
+ ]
618
+
619
+ [[package]]
620
+ name = "http"
621
+ version = "0.2.8"
622
+ source = "registry+https://github.com/rust-lang/crates.io-index"
623
+ checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399"
624
+ dependencies = [
625
+ "bytes",
626
+ "fnv",
627
+ "itoa",
628
+ ]
629
+
630
+ [[package]]
631
+ name = "http-body"
632
+ version = "0.4.5"
633
+ source = "registry+https://github.com/rust-lang/crates.io-index"
634
+ checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1"
635
+ dependencies = [
636
+ "bytes",
637
+ "http",
638
+ "pin-project-lite",
639
+ ]
640
+
641
+ [[package]]
642
+ name = "httparse"
643
+ version = "1.8.0"
644
+ source = "registry+https://github.com/rust-lang/crates.io-index"
645
+ checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904"
646
+
647
+ [[package]]
648
+ name = "httpdate"
649
+ version = "1.0.2"
650
+ source = "registry+https://github.com/rust-lang/crates.io-index"
651
+ checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
652
+
653
+ [[package]]
654
+ name = "humantime"
655
+ version = "2.1.0"
656
+ source = "registry+https://github.com/rust-lang/crates.io-index"
657
+ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
658
+
659
+ [[package]]
660
+ name = "hyper"
661
+ version = "0.14.23"
662
+ source = "registry+https://github.com/rust-lang/crates.io-index"
663
+ checksum = "034711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3c"
664
+ dependencies = [
665
+ "bytes",
666
+ "futures-channel",
667
+ "futures-core",
668
+ "futures-util",
669
+ "h2",
670
+ "http",
671
+ "http-body",
672
+ "httparse",
673
+ "httpdate",
674
+ "itoa",
675
+ "pin-project-lite",
676
+ "socket2",
677
+ "tokio",
678
+ "tower-service",
679
+ "tracing",
680
+ "want",
681
+ ]
682
+
683
+ [[package]]
684
+ name = "iana-time-zone"
685
+ version = "0.1.53"
686
+ source = "registry+https://github.com/rust-lang/crates.io-index"
687
+ checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765"
688
+ dependencies = [
689
+ "android_system_properties",
690
+ "core-foundation-sys",
691
+ "iana-time-zone-haiku",
692
+ "js-sys",
693
+ "wasm-bindgen",
694
+ "winapi 0.3.9",
695
+ ]
696
+
697
+ [[package]]
698
+ name = "iana-time-zone-haiku"
699
+ version = "0.1.1"
700
+ source = "registry+https://github.com/rust-lang/crates.io-index"
701
+ checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca"
702
+ dependencies = [
703
+ "cxx",
704
+ "cxx-build",
705
+ ]
706
+
707
+ [[package]]
708
+ name = "idna"
709
+ version = "0.3.0"
710
+ source = "registry+https://github.com/rust-lang/crates.io-index"
711
+ checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6"
712
+ dependencies = [
713
+ "unicode-bidi",
714
+ "unicode-normalization",
715
+ ]
716
+
717
+ [[package]]
718
+ name = "indexmap"
719
+ version = "1.9.1"
720
+ source = "registry+https://github.com/rust-lang/crates.io-index"
721
+ checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e"
722
+ dependencies = [
723
+ "autocfg",
724
+ "hashbrown",
725
+ ]
726
+
727
+ [[package]]
728
+ name = "inotify"
729
+ version = "0.7.1"
730
+ source = "registry+https://github.com/rust-lang/crates.io-index"
731
+ checksum = "4816c66d2c8ae673df83366c18341538f234a26d65a9ecea5c348b453ac1d02f"
732
+ dependencies = [
733
+ "bitflags",
734
+ "inotify-sys",
735
+ "libc",
736
+ ]
737
+
738
+ [[package]]
739
+ name = "inotify-sys"
740
+ version = "0.1.5"
741
+ source = "registry+https://github.com/rust-lang/crates.io-index"
742
+ checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb"
743
+ dependencies = [
744
+ "libc",
745
+ ]
746
+
747
+ [[package]]
748
+ name = "instant"
749
+ version = "0.1.12"
750
+ source = "registry+https://github.com/rust-lang/crates.io-index"
751
+ checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
752
+ dependencies = [
753
+ "cfg-if 1.0.0",
754
+ ]
755
+
756
+ [[package]]
757
+ name = "iovec"
758
+ version = "0.1.4"
759
+ source = "registry+https://github.com/rust-lang/crates.io-index"
760
+ checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
761
+ dependencies = [
762
+ "libc",
763
+ ]
764
+
765
+ [[package]]
766
+ name = "itoa"
767
+ version = "1.0.4"
768
+ source = "registry+https://github.com/rust-lang/crates.io-index"
769
+ checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc"
770
+
771
+ [[package]]
772
+ name = "js-sys"
773
+ version = "0.3.60"
774
+ source = "registry+https://github.com/rust-lang/crates.io-index"
775
+ checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47"
776
+ dependencies = [
777
+ "wasm-bindgen",
778
+ ]
779
+
780
+ [[package]]
781
+ name = "kernel32-sys"
782
+ version = "0.2.2"
783
+ source = "registry+https://github.com/rust-lang/crates.io-index"
784
+ checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
785
+ dependencies = [
786
+ "winapi 0.2.8",
787
+ "winapi-build",
788
+ ]
789
+
790
+ [[package]]
791
+ name = "lazy_static"
792
+ version = "1.4.0"
793
+ source = "registry+https://github.com/rust-lang/crates.io-index"
794
+ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
795
+
796
+ [[package]]
797
+ name = "lazycell"
798
+ version = "1.3.0"
799
+ source = "registry+https://github.com/rust-lang/crates.io-index"
800
+ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
801
+
802
+ [[package]]
803
+ name = "libc"
804
+ version = "0.2.137"
805
+ source = "registry+https://github.com/rust-lang/crates.io-index"
806
+ checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89"
807
+
808
+ [[package]]
809
+ name = "link-cplusplus"
810
+ version = "1.0.7"
811
+ source = "registry+https://github.com/rust-lang/crates.io-index"
812
+ checksum = "9272ab7b96c9046fbc5bc56c06c117cb639fe2d509df0c421cad82d2915cf369"
813
+ dependencies = [
814
+ "cc",
815
+ ]
816
+
817
+ [[package]]
818
+ name = "lock_api"
819
+ version = "0.4.9"
820
+ source = "registry+https://github.com/rust-lang/crates.io-index"
821
+ checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df"
822
+ dependencies = [
823
+ "autocfg",
824
+ "scopeguard",
825
+ ]
826
+
827
+ [[package]]
828
+ name = "log"
829
+ version = "0.4.17"
830
+ source = "registry+https://github.com/rust-lang/crates.io-index"
831
+ checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
832
+ dependencies = [
833
+ "cfg-if 1.0.0",
834
+ ]
835
+
836
+ [[package]]
837
+ name = "mac"
838
+ version = "0.1.1"
839
+ source = "registry+https://github.com/rust-lang/crates.io-index"
840
+ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
841
+
842
+ [[package]]
843
+ name = "maplit"
844
+ version = "1.0.2"
845
+ source = "registry+https://github.com/rust-lang/crates.io-index"
846
+ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
847
+
848
+ [[package]]
849
+ name = "markup5ever"
850
+ version = "0.11.0"
851
+ source = "registry+https://github.com/rust-lang/crates.io-index"
852
+ checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016"
853
+ dependencies = [
854
+ "log",
855
+ "phf",
856
+ "phf_codegen",
857
+ "string_cache",
858
+ "string_cache_codegen",
859
+ "tendril",
860
+ ]
861
+
862
+ [[package]]
863
+ name = "mdbook"
864
+ version = "0.4.21"
865
+ source = "registry+https://github.com/rust-lang/crates.io-index"
866
+ checksum = "23f3e133c6d515528745ffd3b9f0c7d975ae039f0b6abb099f2168daa2afb4f9"
867
+ dependencies = [
868
+ "ammonia",
869
+ "anyhow",
870
+ "chrono",
871
+ "clap",
872
+ "clap_complete",
873
+ "elasticlunr-rs",
874
+ "env_logger",
875
+ "futures-util",
876
+ "gitignore",
877
+ "handlebars",
878
+ "lazy_static",
879
+ "log",
880
+ "memchr",
881
+ "notify",
882
+ "opener",
883
+ "pulldown-cmark",
884
+ "regex",
885
+ "serde",
886
+ "serde_json",
887
+ "shlex",
888
+ "tempfile",
889
+ "tokio",
890
+ "toml",
891
+ "topological-sort",
892
+ "warp",
893
+ ]
894
+
895
+ [[package]]
896
+ name = "memchr"
897
+ version = "2.5.0"
898
+ source = "registry+https://github.com/rust-lang/crates.io-index"
899
+ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
900
+
901
+ [[package]]
902
+ name = "mime"
903
+ version = "0.3.16"
904
+ source = "registry+https://github.com/rust-lang/crates.io-index"
905
+ checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
906
+
907
+ [[package]]
908
+ name = "mime_guess"
909
+ version = "2.0.4"
910
+ source = "registry+https://github.com/rust-lang/crates.io-index"
911
+ checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef"
912
+ dependencies = [
913
+ "mime",
914
+ "unicase",
915
+ ]
916
+
917
+ [[package]]
918
+ name = "mio"
919
+ version = "0.6.23"
920
+ source = "registry+https://github.com/rust-lang/crates.io-index"
921
+ checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
922
+ dependencies = [
923
+ "cfg-if 0.1.10",
924
+ "fuchsia-zircon",
925
+ "fuchsia-zircon-sys",
926
+ "iovec",
927
+ "kernel32-sys",
928
+ "libc",
929
+ "log",
930
+ "miow",
931
+ "net2",
932
+ "slab",
933
+ "winapi 0.2.8",
934
+ ]
935
+
936
+ [[package]]
937
+ name = "mio"
938
+ version = "0.8.5"
939
+ source = "registry+https://github.com/rust-lang/crates.io-index"
940
+ checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de"
941
+ dependencies = [
942
+ "libc",
943
+ "log",
944
+ "wasi 0.11.0+wasi-snapshot-preview1",
945
+ "windows-sys",
946
+ ]
947
+
948
+ [[package]]
949
+ name = "mio-extras"
950
+ version = "2.0.6"
951
+ source = "registry+https://github.com/rust-lang/crates.io-index"
952
+ checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19"
953
+ dependencies = [
954
+ "lazycell",
955
+ "log",
956
+ "mio 0.6.23",
957
+ "slab",
958
+ ]
959
+
960
+ [[package]]
961
+ name = "miow"
962
+ version = "0.2.2"
963
+ source = "registry+https://github.com/rust-lang/crates.io-index"
964
+ checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
965
+ dependencies = [
966
+ "kernel32-sys",
967
+ "net2",
968
+ "winapi 0.2.8",
969
+ "ws2_32-sys",
970
+ ]
971
+
972
+ [[package]]
973
+ name = "net2"
974
+ version = "0.2.38"
975
+ source = "registry+https://github.com/rust-lang/crates.io-index"
976
+ checksum = "74d0df99cfcd2530b2e694f6e17e7f37b8e26bb23983ac530c0c97408837c631"
977
+ dependencies = [
978
+ "cfg-if 0.1.10",
979
+ "libc",
980
+ "winapi 0.3.9",
981
+ ]
982
+
983
+ [[package]]
984
+ name = "new_debug_unreachable"
985
+ version = "1.0.4"
986
+ source = "registry+https://github.com/rust-lang/crates.io-index"
987
+ checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
988
+
989
+ [[package]]
990
+ name = "notify"
991
+ version = "4.0.17"
992
+ source = "registry+https://github.com/rust-lang/crates.io-index"
993
+ checksum = "ae03c8c853dba7bfd23e571ff0cff7bc9dceb40a4cd684cd1681824183f45257"
994
+ dependencies = [
995
+ "bitflags",
996
+ "filetime",
997
+ "fsevent",
998
+ "fsevent-sys",
999
+ "inotify",
1000
+ "libc",
1001
+ "mio 0.6.23",
1002
+ "mio-extras",
1003
+ "walkdir",
1004
+ "winapi 0.3.9",
1005
+ ]
1006
+
1007
+ [[package]]
1008
+ name = "num-integer"
1009
+ version = "0.1.45"
1010
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1011
+ checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
1012
+ dependencies = [
1013
+ "autocfg",
1014
+ "num-traits",
1015
+ ]
1016
+
1017
+ [[package]]
1018
+ name = "num-traits"
1019
+ version = "0.2.15"
1020
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1021
+ checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
1022
+ dependencies = [
1023
+ "autocfg",
1024
+ ]
1025
+
1026
+ [[package]]
1027
+ name = "num_cpus"
1028
+ version = "1.14.0"
1029
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1030
+ checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5"
1031
+ dependencies = [
1032
+ "hermit-abi",
1033
+ "libc",
1034
+ ]
1035
+
1036
+ [[package]]
1037
+ name = "once_cell"
1038
+ version = "1.16.0"
1039
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1040
+ checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860"
1041
+
1042
+ [[package]]
1043
+ name = "opener"
1044
+ version = "0.5.0"
1045
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1046
+ checksum = "4ea3ebcd72a54701f56345f16785a6d3ac2df7e986d273eb4395c0b01db17952"
1047
+ dependencies = [
1048
+ "bstr",
1049
+ "winapi 0.3.9",
1050
+ ]
1051
+
1052
+ [[package]]
1053
+ name = "os_str_bytes"
1054
+ version = "6.4.0"
1055
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1056
+ checksum = "7b5bf27447411e9ee3ff51186bf7a08e16c341efdde93f4d823e8844429bed7e"
1057
+
1058
+ [[package]]
1059
+ name = "parking_lot"
1060
+ version = "0.12.1"
1061
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1062
+ checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
1063
+ dependencies = [
1064
+ "lock_api",
1065
+ "parking_lot_core",
1066
+ ]
1067
+
1068
+ [[package]]
1069
+ name = "parking_lot_core"
1070
+ version = "0.9.4"
1071
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1072
+ checksum = "4dc9e0dc2adc1c69d09143aff38d3d30c5c3f0df0dad82e6d25547af174ebec0"
1073
+ dependencies = [
1074
+ "cfg-if 1.0.0",
1075
+ "libc",
1076
+ "redox_syscall",
1077
+ "smallvec",
1078
+ "windows-sys",
1079
+ ]
1080
+
1081
+ [[package]]
1082
+ name = "percent-encoding"
1083
+ version = "2.2.0"
1084
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1085
+ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e"
1086
+
1087
+ [[package]]
1088
+ name = "pest"
1089
+ version = "2.4.1"
1090
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1091
+ checksum = "a528564cc62c19a7acac4d81e01f39e53e25e17b934878f4c6d25cc2836e62f8"
1092
+ dependencies = [
1093
+ "thiserror",
1094
+ "ucd-trie",
1095
+ ]
1096
+
1097
+ [[package]]
1098
+ name = "pest_derive"
1099
+ version = "2.4.1"
1100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1101
+ checksum = "d5fd9bc6500181952d34bd0b2b0163a54d794227b498be0b7afa7698d0a7b18f"
1102
+ dependencies = [
1103
+ "pest",
1104
+ "pest_generator",
1105
+ ]
1106
+
1107
+ [[package]]
1108
+ name = "pest_generator"
1109
+ version = "2.4.1"
1110
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1111
+ checksum = "d2610d5ac5156217b4ff8e46ddcef7cdf44b273da2ac5bca2ecbfa86a330e7c4"
1112
+ dependencies = [
1113
+ "pest",
1114
+ "pest_meta",
1115
+ "proc-macro2",
1116
+ "quote",
1117
+ "syn",
1118
+ ]
1119
+
1120
+ [[package]]
1121
+ name = "pest_meta"
1122
+ version = "2.4.1"
1123
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1124
+ checksum = "824749bf7e21dd66b36fbe26b3f45c713879cccd4a009a917ab8e045ca8246fe"
1125
+ dependencies = [
1126
+ "once_cell",
1127
+ "pest",
1128
+ "sha1",
1129
+ ]
1130
+
1131
+ [[package]]
1132
+ name = "phf"
1133
+ version = "0.10.1"
1134
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1135
+ checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"
1136
+ dependencies = [
1137
+ "phf_shared",
1138
+ ]
1139
+
1140
+ [[package]]
1141
+ name = "phf_codegen"
1142
+ version = "0.10.0"
1143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1144
+ checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd"
1145
+ dependencies = [
1146
+ "phf_generator",
1147
+ "phf_shared",
1148
+ ]
1149
+
1150
+ [[package]]
1151
+ name = "phf_generator"
1152
+ version = "0.10.0"
1153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1154
+ checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6"
1155
+ dependencies = [
1156
+ "phf_shared",
1157
+ "rand",
1158
+ ]
1159
+
1160
+ [[package]]
1161
+ name = "phf_shared"
1162
+ version = "0.10.0"
1163
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1164
+ checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096"
1165
+ dependencies = [
1166
+ "siphasher",
1167
+ ]
1168
+
1169
+ [[package]]
1170
+ name = "pin-project"
1171
+ version = "1.0.12"
1172
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1173
+ checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc"
1174
+ dependencies = [
1175
+ "pin-project-internal",
1176
+ ]
1177
+
1178
+ [[package]]
1179
+ name = "pin-project-internal"
1180
+ version = "1.0.12"
1181
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1182
+ checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55"
1183
+ dependencies = [
1184
+ "proc-macro2",
1185
+ "quote",
1186
+ "syn",
1187
+ ]
1188
+
1189
+ [[package]]
1190
+ name = "pin-project-lite"
1191
+ version = "0.2.9"
1192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1193
+ checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
1194
+
1195
+ [[package]]
1196
+ name = "pin-utils"
1197
+ version = "0.1.0"
1198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1199
+ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
1200
+
1201
+ [[package]]
1202
+ name = "ppv-lite86"
1203
+ version = "0.2.17"
1204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1205
+ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
1206
+
1207
+ [[package]]
1208
+ name = "precomputed-hash"
1209
+ version = "0.1.1"
1210
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1211
+ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
1212
+
1213
+ [[package]]
1214
+ name = "proc-macro2"
1215
+ version = "1.0.47"
1216
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1217
+ checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725"
1218
+ dependencies = [
1219
+ "unicode-ident",
1220
+ ]
1221
+
1222
+ [[package]]
1223
+ name = "pulldown-cmark"
1224
+ version = "0.9.2"
1225
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1226
+ checksum = "2d9cc634bc78768157b5cbfe988ffcd1dcba95cd2b2f03a88316c08c6d00ed63"
1227
+ dependencies = [
1228
+ "bitflags",
1229
+ "memchr",
1230
+ "unicase",
1231
+ ]
1232
+
1233
+ [[package]]
1234
+ name = "quote"
1235
+ version = "1.0.21"
1236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1237
+ checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
1238
+ dependencies = [
1239
+ "proc-macro2",
1240
+ ]
1241
+
1242
+ [[package]]
1243
+ name = "rand"
1244
+ version = "0.8.5"
1245
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1246
+ checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
1247
+ dependencies = [
1248
+ "libc",
1249
+ "rand_chacha",
1250
+ "rand_core",
1251
+ ]
1252
+
1253
+ [[package]]
1254
+ name = "rand_chacha"
1255
+ version = "0.3.1"
1256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1257
+ checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1258
+ dependencies = [
1259
+ "ppv-lite86",
1260
+ "rand_core",
1261
+ ]
1262
+
1263
+ [[package]]
1264
+ name = "rand_core"
1265
+ version = "0.6.4"
1266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1267
+ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
1268
+ dependencies = [
1269
+ "getrandom",
1270
+ ]
1271
+
1272
+ [[package]]
1273
+ name = "redox_syscall"
1274
+ version = "0.2.16"
1275
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1276
+ checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
1277
+ dependencies = [
1278
+ "bitflags",
1279
+ ]
1280
+
1281
+ [[package]]
1282
+ name = "regex"
1283
+ version = "1.7.0"
1284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1285
+ checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a"
1286
+ dependencies = [
1287
+ "aho-corasick",
1288
+ "memchr",
1289
+ "regex-syntax",
1290
+ ]
1291
+
1292
+ [[package]]
1293
+ name = "regex-automata"
1294
+ version = "0.1.10"
1295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1296
+ checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
1297
+
1298
+ [[package]]
1299
+ name = "regex-syntax"
1300
+ version = "0.6.28"
1301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1302
+ checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
1303
+
1304
+ [[package]]
1305
+ name = "remove_dir_all"
1306
+ version = "0.5.3"
1307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1308
+ checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
1309
+ dependencies = [
1310
+ "winapi 0.3.9",
1311
+ ]
1312
+
1313
+ [[package]]
1314
+ name = "rust-fe"
1315
+ version = "0.1.0"
1316
+ dependencies = [
1317
+ "mdbook",
1318
+ ]
1319
+
1320
+ [[package]]
1321
+ name = "rustls-pemfile"
1322
+ version = "0.2.1"
1323
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1324
+ checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9"
1325
+ dependencies = [
1326
+ "base64",
1327
+ ]
1328
+
1329
+ [[package]]
1330
+ name = "ryu"
1331
+ version = "1.0.11"
1332
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1333
+ checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09"
1334
+
1335
+ [[package]]
1336
+ name = "same-file"
1337
+ version = "1.0.6"
1338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1339
+ checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
1340
+ dependencies = [
1341
+ "winapi-util",
1342
+ ]
1343
+
1344
+ [[package]]
1345
+ name = "scoped-tls"
1346
+ version = "1.0.1"
1347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1348
+ checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
1349
+
1350
+ [[package]]
1351
+ name = "scopeguard"
1352
+ version = "1.1.0"
1353
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1354
+ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
1355
+
1356
+ [[package]]
1357
+ name = "scratch"
1358
+ version = "1.0.2"
1359
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1360
+ checksum = "9c8132065adcfd6e02db789d9285a0deb2f3fcb04002865ab67d5fb103533898"
1361
+
1362
+ [[package]]
1363
+ name = "serde"
1364
+ version = "1.0.147"
1365
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1366
+ checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965"
1367
+ dependencies = [
1368
+ "serde_derive",
1369
+ ]
1370
+
1371
+ [[package]]
1372
+ name = "serde_derive"
1373
+ version = "1.0.147"
1374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1375
+ checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852"
1376
+ dependencies = [
1377
+ "proc-macro2",
1378
+ "quote",
1379
+ "syn",
1380
+ ]
1381
+
1382
+ [[package]]
1383
+ name = "serde_json"
1384
+ version = "1.0.87"
1385
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1386
+ checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45"
1387
+ dependencies = [
1388
+ "itoa",
1389
+ "ryu",
1390
+ "serde",
1391
+ ]
1392
+
1393
+ [[package]]
1394
+ name = "serde_urlencoded"
1395
+ version = "0.7.1"
1396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1397
+ checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
1398
+ dependencies = [
1399
+ "form_urlencoded",
1400
+ "itoa",
1401
+ "ryu",
1402
+ "serde",
1403
+ ]
1404
+
1405
+ [[package]]
1406
+ name = "sha-1"
1407
+ version = "0.10.0"
1408
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1409
+ checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f"
1410
+ dependencies = [
1411
+ "cfg-if 1.0.0",
1412
+ "cpufeatures",
1413
+ "digest",
1414
+ ]
1415
+
1416
+ [[package]]
1417
+ name = "sha1"
1418
+ version = "0.10.5"
1419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1420
+ checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3"
1421
+ dependencies = [
1422
+ "cfg-if 1.0.0",
1423
+ "cpufeatures",
1424
+ "digest",
1425
+ ]
1426
+
1427
+ [[package]]
1428
+ name = "shlex"
1429
+ version = "1.1.0"
1430
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1431
+ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
1432
+
1433
+ [[package]]
1434
+ name = "siphasher"
1435
+ version = "0.3.10"
1436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1437
+ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
1438
+
1439
+ [[package]]
1440
+ name = "slab"
1441
+ version = "0.4.7"
1442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1443
+ checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef"
1444
+ dependencies = [
1445
+ "autocfg",
1446
+ ]
1447
+
1448
+ [[package]]
1449
+ name = "smallvec"
1450
+ version = "1.10.0"
1451
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1452
+ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
1453
+
1454
+ [[package]]
1455
+ name = "socket2"
1456
+ version = "0.4.7"
1457
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1458
+ checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd"
1459
+ dependencies = [
1460
+ "libc",
1461
+ "winapi 0.3.9",
1462
+ ]
1463
+
1464
+ [[package]]
1465
+ name = "string_cache"
1466
+ version = "0.8.4"
1467
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1468
+ checksum = "213494b7a2b503146286049378ce02b482200519accc31872ee8be91fa820a08"
1469
+ dependencies = [
1470
+ "new_debug_unreachable",
1471
+ "once_cell",
1472
+ "parking_lot",
1473
+ "phf_shared",
1474
+ "precomputed-hash",
1475
+ "serde",
1476
+ ]
1477
+
1478
+ [[package]]
1479
+ name = "string_cache_codegen"
1480
+ version = "0.5.2"
1481
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1482
+ checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988"
1483
+ dependencies = [
1484
+ "phf_generator",
1485
+ "phf_shared",
1486
+ "proc-macro2",
1487
+ "quote",
1488
+ ]
1489
+
1490
+ [[package]]
1491
+ name = "strsim"
1492
+ version = "0.10.0"
1493
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1494
+ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
1495
+
1496
+ [[package]]
1497
+ name = "syn"
1498
+ version = "1.0.103"
1499
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1500
+ checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d"
1501
+ dependencies = [
1502
+ "proc-macro2",
1503
+ "quote",
1504
+ "unicode-ident",
1505
+ ]
1506
+
1507
+ [[package]]
1508
+ name = "tempfile"
1509
+ version = "3.3.0"
1510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1511
+ checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
1512
+ dependencies = [
1513
+ "cfg-if 1.0.0",
1514
+ "fastrand",
1515
+ "libc",
1516
+ "redox_syscall",
1517
+ "remove_dir_all",
1518
+ "winapi 0.3.9",
1519
+ ]
1520
+
1521
+ [[package]]
1522
+ name = "tendril"
1523
+ version = "0.4.3"
1524
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1525
+ checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"
1526
+ dependencies = [
1527
+ "futf",
1528
+ "mac",
1529
+ "utf-8",
1530
+ ]
1531
+
1532
+ [[package]]
1533
+ name = "termcolor"
1534
+ version = "1.1.3"
1535
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1536
+ checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
1537
+ dependencies = [
1538
+ "winapi-util",
1539
+ ]
1540
+
1541
+ [[package]]
1542
+ name = "textwrap"
1543
+ version = "0.16.0"
1544
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1545
+ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d"
1546
+
1547
+ [[package]]
1548
+ name = "thiserror"
1549
+ version = "1.0.37"
1550
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1551
+ checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e"
1552
+ dependencies = [
1553
+ "thiserror-impl",
1554
+ ]
1555
+
1556
+ [[package]]
1557
+ name = "thiserror-impl"
1558
+ version = "1.0.37"
1559
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1560
+ checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb"
1561
+ dependencies = [
1562
+ "proc-macro2",
1563
+ "quote",
1564
+ "syn",
1565
+ ]
1566
+
1567
+ [[package]]
1568
+ name = "time"
1569
+ version = "0.1.44"
1570
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1571
+ checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
1572
+ dependencies = [
1573
+ "libc",
1574
+ "wasi 0.10.0+wasi-snapshot-preview1",
1575
+ "winapi 0.3.9",
1576
+ ]
1577
+
1578
+ [[package]]
1579
+ name = "tinyvec"
1580
+ version = "1.6.0"
1581
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1582
+ checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
1583
+ dependencies = [
1584
+ "tinyvec_macros",
1585
+ ]
1586
+
1587
+ [[package]]
1588
+ name = "tinyvec_macros"
1589
+ version = "0.1.0"
1590
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1591
+ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
1592
+
1593
+ [[package]]
1594
+ name = "tokio"
1595
+ version = "1.21.2"
1596
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1597
+ checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099"
1598
+ dependencies = [
1599
+ "autocfg",
1600
+ "bytes",
1601
+ "libc",
1602
+ "memchr",
1603
+ "mio 0.8.5",
1604
+ "num_cpus",
1605
+ "pin-project-lite",
1606
+ "socket2",
1607
+ "tokio-macros",
1608
+ "winapi 0.3.9",
1609
+ ]
1610
+
1611
+ [[package]]
1612
+ name = "tokio-macros"
1613
+ version = "1.8.0"
1614
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1615
+ checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484"
1616
+ dependencies = [
1617
+ "proc-macro2",
1618
+ "quote",
1619
+ "syn",
1620
+ ]
1621
+
1622
+ [[package]]
1623
+ name = "tokio-stream"
1624
+ version = "0.1.11"
1625
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1626
+ checksum = "d660770404473ccd7bc9f8b28494a811bc18542b915c0855c51e8f419d5223ce"
1627
+ dependencies = [
1628
+ "futures-core",
1629
+ "pin-project-lite",
1630
+ "tokio",
1631
+ ]
1632
+
1633
+ [[package]]
1634
+ name = "tokio-tungstenite"
1635
+ version = "0.17.2"
1636
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1637
+ checksum = "f714dd15bead90401d77e04243611caec13726c2408afd5b31901dfcdcb3b181"
1638
+ dependencies = [
1639
+ "futures-util",
1640
+ "log",
1641
+ "tokio",
1642
+ "tungstenite",
1643
+ ]
1644
+
1645
+ [[package]]
1646
+ name = "tokio-util"
1647
+ version = "0.7.4"
1648
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1649
+ checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740"
1650
+ dependencies = [
1651
+ "bytes",
1652
+ "futures-core",
1653
+ "futures-sink",
1654
+ "pin-project-lite",
1655
+ "tokio",
1656
+ "tracing",
1657
+ ]
1658
+
1659
+ [[package]]
1660
+ name = "toml"
1661
+ version = "0.5.9"
1662
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1663
+ checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7"
1664
+ dependencies = [
1665
+ "serde",
1666
+ ]
1667
+
1668
+ [[package]]
1669
+ name = "topological-sort"
1670
+ version = "0.1.0"
1671
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1672
+ checksum = "aa7c7f42dea4b1b99439786f5633aeb9c14c1b53f75e282803c2ec2ad545873c"
1673
+
1674
+ [[package]]
1675
+ name = "tower-service"
1676
+ version = "0.3.2"
1677
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1678
+ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
1679
+
1680
+ [[package]]
1681
+ name = "tracing"
1682
+ version = "0.1.37"
1683
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1684
+ checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
1685
+ dependencies = [
1686
+ "cfg-if 1.0.0",
1687
+ "log",
1688
+ "pin-project-lite",
1689
+ "tracing-core",
1690
+ ]
1691
+
1692
+ [[package]]
1693
+ name = "tracing-core"
1694
+ version = "0.1.30"
1695
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1696
+ checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a"
1697
+ dependencies = [
1698
+ "once_cell",
1699
+ ]
1700
+
1701
+ [[package]]
1702
+ name = "try-lock"
1703
+ version = "0.2.3"
1704
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1705
+ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
1706
+
1707
+ [[package]]
1708
+ name = "tungstenite"
1709
+ version = "0.17.3"
1710
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1711
+ checksum = "e27992fd6a8c29ee7eef28fc78349aa244134e10ad447ce3b9f0ac0ed0fa4ce0"
1712
+ dependencies = [
1713
+ "base64",
1714
+ "byteorder",
1715
+ "bytes",
1716
+ "http",
1717
+ "httparse",
1718
+ "log",
1719
+ "rand",
1720
+ "sha-1",
1721
+ "thiserror",
1722
+ "url",
1723
+ "utf-8",
1724
+ ]
1725
+
1726
+ [[package]]
1727
+ name = "typenum"
1728
+ version = "1.15.0"
1729
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1730
+ checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
1731
+
1732
+ [[package]]
1733
+ name = "ucd-trie"
1734
+ version = "0.1.5"
1735
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1736
+ checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81"
1737
+
1738
+ [[package]]
1739
+ name = "unicase"
1740
+ version = "2.6.0"
1741
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1742
+ checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
1743
+ dependencies = [
1744
+ "version_check",
1745
+ ]
1746
+
1747
+ [[package]]
1748
+ name = "unicode-bidi"
1749
+ version = "0.3.8"
1750
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1751
+ checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992"
1752
+
1753
+ [[package]]
1754
+ name = "unicode-ident"
1755
+ version = "1.0.5"
1756
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1757
+ checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"
1758
+
1759
+ [[package]]
1760
+ name = "unicode-normalization"
1761
+ version = "0.1.22"
1762
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1763
+ checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
1764
+ dependencies = [
1765
+ "tinyvec",
1766
+ ]
1767
+
1768
+ [[package]]
1769
+ name = "unicode-width"
1770
+ version = "0.1.10"
1771
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1772
+ checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b"
1773
+
1774
+ [[package]]
1775
+ name = "url"
1776
+ version = "2.3.1"
1777
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1778
+ checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643"
1779
+ dependencies = [
1780
+ "form_urlencoded",
1781
+ "idna",
1782
+ "percent-encoding",
1783
+ ]
1784
+
1785
+ [[package]]
1786
+ name = "utf-8"
1787
+ version = "0.7.6"
1788
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1789
+ checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
1790
+
1791
+ [[package]]
1792
+ name = "version_check"
1793
+ version = "0.9.4"
1794
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1795
+ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
1796
+
1797
+ [[package]]
1798
+ name = "walkdir"
1799
+ version = "2.3.2"
1800
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1801
+ checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56"
1802
+ dependencies = [
1803
+ "same-file",
1804
+ "winapi 0.3.9",
1805
+ "winapi-util",
1806
+ ]
1807
+
1808
+ [[package]]
1809
+ name = "want"
1810
+ version = "0.3.0"
1811
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1812
+ checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
1813
+ dependencies = [
1814
+ "log",
1815
+ "try-lock",
1816
+ ]
1817
+
1818
+ [[package]]
1819
+ name = "warp"
1820
+ version = "0.3.3"
1821
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1822
+ checksum = "ed7b8be92646fc3d18b06147664ebc5f48d222686cb11a8755e561a735aacc6d"
1823
+ dependencies = [
1824
+ "bytes",
1825
+ "futures-channel",
1826
+ "futures-util",
1827
+ "headers",
1828
+ "http",
1829
+ "hyper",
1830
+ "log",
1831
+ "mime",
1832
+ "mime_guess",
1833
+ "percent-encoding",
1834
+ "pin-project",
1835
+ "rustls-pemfile",
1836
+ "scoped-tls",
1837
+ "serde",
1838
+ "serde_json",
1839
+ "serde_urlencoded",
1840
+ "tokio",
1841
+ "tokio-stream",
1842
+ "tokio-tungstenite",
1843
+ "tokio-util",
1844
+ "tower-service",
1845
+ "tracing",
1846
+ ]
1847
+
1848
+ [[package]]
1849
+ name = "wasi"
1850
+ version = "0.10.0+wasi-snapshot-preview1"
1851
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1852
+ checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
1853
+
1854
+ [[package]]
1855
+ name = "wasi"
1856
+ version = "0.11.0+wasi-snapshot-preview1"
1857
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1858
+ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
1859
+
1860
+ [[package]]
1861
+ name = "wasm-bindgen"
1862
+ version = "0.2.83"
1863
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1864
+ checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268"
1865
+ dependencies = [
1866
+ "cfg-if 1.0.0",
1867
+ "wasm-bindgen-macro",
1868
+ ]
1869
+
1870
+ [[package]]
1871
+ name = "wasm-bindgen-backend"
1872
+ version = "0.2.83"
1873
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1874
+ checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142"
1875
+ dependencies = [
1876
+ "bumpalo",
1877
+ "log",
1878
+ "once_cell",
1879
+ "proc-macro2",
1880
+ "quote",
1881
+ "syn",
1882
+ "wasm-bindgen-shared",
1883
+ ]
1884
+
1885
+ [[package]]
1886
+ name = "wasm-bindgen-macro"
1887
+ version = "0.2.83"
1888
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1889
+ checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810"
1890
+ dependencies = [
1891
+ "quote",
1892
+ "wasm-bindgen-macro-support",
1893
+ ]
1894
+
1895
+ [[package]]
1896
+ name = "wasm-bindgen-macro-support"
1897
+ version = "0.2.83"
1898
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1899
+ checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c"
1900
+ dependencies = [
1901
+ "proc-macro2",
1902
+ "quote",
1903
+ "syn",
1904
+ "wasm-bindgen-backend",
1905
+ "wasm-bindgen-shared",
1906
+ ]
1907
+
1908
+ [[package]]
1909
+ name = "wasm-bindgen-shared"
1910
+ version = "0.2.83"
1911
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1912
+ checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f"
1913
+
1914
+ [[package]]
1915
+ name = "winapi"
1916
+ version = "0.2.8"
1917
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1918
+ checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
1919
+
1920
+ [[package]]
1921
+ name = "winapi"
1922
+ version = "0.3.9"
1923
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1924
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1925
+ dependencies = [
1926
+ "winapi-i686-pc-windows-gnu",
1927
+ "winapi-x86_64-pc-windows-gnu",
1928
+ ]
1929
+
1930
+ [[package]]
1931
+ name = "winapi-build"
1932
+ version = "0.1.1"
1933
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1934
+ checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
1935
+
1936
+ [[package]]
1937
+ name = "winapi-i686-pc-windows-gnu"
1938
+ version = "0.4.0"
1939
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1940
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1941
+
1942
+ [[package]]
1943
+ name = "winapi-util"
1944
+ version = "0.1.5"
1945
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1946
+ checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
1947
+ dependencies = [
1948
+ "winapi 0.3.9",
1949
+ ]
1950
+
1951
+ [[package]]
1952
+ name = "winapi-x86_64-pc-windows-gnu"
1953
+ version = "0.4.0"
1954
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1955
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1956
+
1957
+ [[package]]
1958
+ name = "windows-sys"
1959
+ version = "0.42.0"
1960
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1961
+ checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7"
1962
+ dependencies = [
1963
+ "windows_aarch64_gnullvm",
1964
+ "windows_aarch64_msvc",
1965
+ "windows_i686_gnu",
1966
+ "windows_i686_msvc",
1967
+ "windows_x86_64_gnu",
1968
+ "windows_x86_64_gnullvm",
1969
+ "windows_x86_64_msvc",
1970
+ ]
1971
+
1972
+ [[package]]
1973
+ name = "windows_aarch64_gnullvm"
1974
+ version = "0.42.0"
1975
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1976
+ checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e"
1977
+
1978
+ [[package]]
1979
+ name = "windows_aarch64_msvc"
1980
+ version = "0.42.0"
1981
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1982
+ checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4"
1983
+
1984
+ [[package]]
1985
+ name = "windows_i686_gnu"
1986
+ version = "0.42.0"
1987
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1988
+ checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7"
1989
+
1990
+ [[package]]
1991
+ name = "windows_i686_msvc"
1992
+ version = "0.42.0"
1993
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1994
+ checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246"
1995
+
1996
+ [[package]]
1997
+ name = "windows_x86_64_gnu"
1998
+ version = "0.42.0"
1999
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2000
+ checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed"
2001
+
2002
+ [[package]]
2003
+ name = "windows_x86_64_gnullvm"
2004
+ version = "0.42.0"
2005
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2006
+ checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028"
2007
+
2008
+ [[package]]
2009
+ name = "windows_x86_64_msvc"
2010
+ version = "0.42.0"
2011
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2012
+ checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5"
2013
+
2014
+ [[package]]
2015
+ name = "ws2_32-sys"
2016
+ version = "0.2.1"
2017
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2018
+ checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
2019
+ dependencies = [
2020
+ "winapi 0.2.8",
2021
+ "winapi-build",
2022
+ ]
2023
+ LOCKEOF
2024
+ if [ $? -ne 0 ]; then
2025
+ _pb_fail
2026
+ fi
2027
+
2028
+
2029
+ # ---------------------------------------------------------------------------
2030
+ # Prefetch dependencies. The download stage has network access; `--locked`
2031
+ # guarantees we pull exactly the pinned versions (and their exact transitive
2032
+ # closures) into CARGO_HOME. No source of the repository is read here.
2033
+ # ---------------------------------------------------------------------------
2034
+ if ! cargo fetch --manifest-path "$_pb_tmp/Cargo.toml" --locked; then
2035
+ _pb_fail
2036
+ fi
2037
+
2038
+ rm -rf "$_pb_tmp"
2039
+
2040
+ # All dependencies are prefetched. CARGO_HOME persists into the offline stage
2041
+ # where build.sh compiles with `cargo build --offline`.
i5ting--learn-rust-for-fe.678e26a/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5994fd3c0545c07e52d4a570931db0bc8fc7dbe77fa570186211b33537dbb147
3
+ size 4362528
i5ting--learn-rust-for-fe.678e26a/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
i5ting--learn-rust-for-fe.678e26a/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1589aed61db457c5056b2d47162ed3b396cbef889fa45e3bd494799de294140a
3
+ size 17042
i5ting--learn-rust-for-fe.678e26a/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