Marquis03 commited on
Commit
743dd60
·
verified ·
1 Parent(s): 1615a60

commit (part 39)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +8 -0
  2. evaera--moonwave.ff90433/environment/Dockerfile +93 -0
  3. evaera--moonwave.ff90433/environment/docker-compose.yaml +22 -0
  4. evaera--moonwave.ff90433/environment/download.sh +714 -0
  5. evaera--moonwave.ff90433/environment/executable +3 -0
  6. evaera--moonwave.ff90433/environment/harbor_configure_apt_mirror.sh +37 -0
  7. evaera--moonwave.ff90433/environment/harbor_configure_java_mirrors.sh +50 -0
  8. evaera--moonwave.ff90433/environment/harbor_prepare_download_env.sh +47 -0
  9. evaera--moonwave.ff90433/environment/workspace.tar.gz +3 -0
  10. evaera--moonwave.ff90433/instruction.md +98 -0
  11. evaera--moonwave.ff90433/solution/solve.sh +33 -0
  12. evaera--moonwave.ff90433/task.toml +69 -0
  13. evaera--moonwave.ff90433/tests/Dockerfile +107 -0
  14. evaera--moonwave.ff90433/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  15. evaera--moonwave.ff90433/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  16. evaera--moonwave.ff90433/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  17. evaera--moonwave.ff90433/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  18. evaera--moonwave.ff90433/tests/docker-compose.yaml +22 -0
  19. evaera--moonwave.ff90433/tests/download.sh +714 -0
  20. evaera--moonwave.ff90433/tests/executable +3 -0
  21. evaera--moonwave.ff90433/tests/harbor_configure_apt_mirror.sh +37 -0
  22. evaera--moonwave.ff90433/tests/harbor_configure_java_mirrors.sh +50 -0
  23. evaera--moonwave.ff90433/tests/harbor_prepare_download_env.sh +47 -0
  24. evaera--moonwave.ff90433/tests/programgym_evaluator.py +1201 -0
  25. evaera--moonwave.ff90433/tests/programgym_task.json +1497 -0
  26. evaera--moonwave.ff90433/tests/test.sh +82 -0
  27. evaera--moonwave.ff90433/tests/workspace.tar.gz +3 -0
  28. evansmurithi--cloak.a4dac97/environment/Dockerfile +1 -0
  29. evansmurithi--cloak.a4dac97/tests/Dockerfile +1 -0
  30. evidlo--remarkable_news.ad146bb/environment/Dockerfile +98 -0
  31. evidlo--remarkable_news.ad146bb/environment/docker-compose.yaml +22 -0
  32. evidlo--remarkable_news.ad146bb/environment/download.sh +240 -0
  33. evidlo--remarkable_news.ad146bb/environment/executable +3 -0
  34. evidlo--remarkable_news.ad146bb/environment/harbor_configure_apt_mirror.sh +37 -0
  35. evidlo--remarkable_news.ad146bb/environment/harbor_configure_java_mirrors.sh +50 -0
  36. evidlo--remarkable_news.ad146bb/environment/harbor_prepare_download_env.sh +44 -0
  37. evidlo--remarkable_news.ad146bb/environment/programgym-go.tar.gz +3 -0
  38. evidlo--remarkable_news.ad146bb/environment/workspace.tar.gz +3 -0
  39. evidlo--remarkable_news.ad146bb/instruction.md +98 -0
  40. evidlo--remarkable_news.ad146bb/solution/solve.sh +33 -0
  41. evidlo--remarkable_news.ad146bb/task.toml +69 -0
  42. evidlo--remarkable_news.ad146bb/tests/Dockerfile +112 -0
  43. evidlo--remarkable_news.ad146bb/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  44. evidlo--remarkable_news.ad146bb/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  45. evidlo--remarkable_news.ad146bb/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  46. evidlo--remarkable_news.ad146bb/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  47. evidlo--remarkable_news.ad146bb/tests/docker-compose.yaml +22 -0
  48. evidlo--remarkable_news.ad146bb/tests/download.sh +240 -0
  49. evidlo--remarkable_news.ad146bb/tests/executable +3 -0
  50. evidlo--remarkable_news.ad146bb/tests/harbor_configure_apt_mirror.sh +37 -0
.gitattributes CHANGED
@@ -3206,3 +3206,11 @@ ethanalmloff--unwrap_or_ai.17e39c5/environment/executable filter=lfs diff=lfs me
3206
  ethanalmloff--unwrap_or_ai.17e39c5/tests/executable filter=lfs diff=lfs merge=lfs -text
3207
  ethicalhackingplayground--bxss.ad0b296/environment/executable filter=lfs diff=lfs merge=lfs -text
3208
  ethicalhackingplayground--bxss.ad0b296/tests/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
3206
  ethanalmloff--unwrap_or_ai.17e39c5/tests/executable filter=lfs diff=lfs merge=lfs -text
3207
  ethicalhackingplayground--bxss.ad0b296/environment/executable filter=lfs diff=lfs merge=lfs -text
3208
  ethicalhackingplayground--bxss.ad0b296/tests/executable filter=lfs diff=lfs merge=lfs -text
3209
+ evaera--moonwave.ff90433/environment/executable filter=lfs diff=lfs merge=lfs -text
3210
+ evaera--moonwave.ff90433/tests/executable filter=lfs diff=lfs merge=lfs -text
3211
+ evidlo--remarkable_news.ad146bb/environment/executable filter=lfs diff=lfs merge=lfs -text
3212
+ evidlo--remarkable_news.ad146bb/tests/executable filter=lfs diff=lfs merge=lfs -text
3213
+ extremecoders-re--nuitka-extractor.a0a50f9/environment/executable filter=lfs diff=lfs merge=lfs -text
3214
+ extremecoders-re--nuitka-extractor.a0a50f9/tests/executable filter=lfs diff=lfs merge=lfs -text
3215
+ ezh0v--weather-mcp-server.e0f212a/environment/executable filter=lfs diff=lfs merge=lfs -text
3216
+ ezh0v--weather-mcp-server.e0f212a/tests/executable filter=lfs diff=lfs merge=lfs -text
evaera--moonwave.ff90433/environment/Dockerfile ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV CARGO_HOME=/usr/local/cargo
57
+ ENV RUSTUP_HOME=/usr/local/rustup
58
+ ENV RUSTUP_TOOLCHAIN=1.97.1
59
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
60
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
61
+ ENV PAGER=cat
62
+ ENV MANPAGER=cat
63
+ ENV LESS=-R
64
+ ENV TQDM_DISABLE=1
65
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
66
+ RUN set -eux; for attempt in 1 2 3 4 5; do rustup component add llvm-tools-preview --toolchain 1.97.1 && break; [ "$attempt" -lt 5 ] || exit 1; sleep $((attempt * 2)); done
67
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
68
+ RUN rustc --version && cargo --version && rustup show active-toolchain
69
+ WORKDIR /workspace
70
+ ADD workspace.tar.gz /workspace/
71
+ COPY executable /workspace/executable
72
+ COPY download.sh /tmp/programgym-download.sh
73
+ RUN chmod 755 /tmp/programgym-download.sh
74
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
75
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
76
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
77
+ && rm -f /tmp/programgym-download.sh \
78
+ && rm -f /tmp/harbor_prepare_download_env.sh
79
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
80
+ RUN chmod 111 /workspace/executable
81
+ WORKDIR /workspace
82
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
83
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
84
+ # submission handed to the separate verifier. Keep the reference executable
85
+ # execute-only; the oracle temporarily restores owner read permission.
86
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
87
+ RUN mkdir -p /home/agent \
88
+ && chown -R agent:agent /home/agent /workspace \
89
+ && chown agent:agent /workspace/executable \
90
+ && chmod 111 /workspace/executable
91
+ ENV HOME=/home/agent
92
+ WORKDIR /workspace
93
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
evaera--moonwave.ff90433/environment/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
evaera--moonwave.ff90433/environment/download.sh ADDED
@@ -0,0 +1,714 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh for moonwave (evaera/moonwave)
3
+ #
4
+ # This script is sourced (not executed): `source /source_ro/download.sh`.
5
+ # It only prefetches every Cargo dependency needed to build the moonwave-extractor
6
+ # bin target offline. It does NOT compile anything.
7
+ #
8
+ # The extractor crate is a standalone package whose manifest lives at
9
+ # extractor/Cargo.toml. To keep this download stage fully standalone (the source
10
+ # tree is not mounted here), we generate a byte-for-byte copy of that package from
11
+ # inline data: the exact Cargo.toml (including dev-dependencies) and the exact
12
+ # complete Cargo.lock are embedded below, together with the minimal source stubs
13
+ # that the [[lib]] and [[bin]] targets point at. We then run
14
+ # `cargo fetch --manifest-path <scratch>/Cargo.toml` against that generated
15
+ # package so the offline `--locked` build in build.sh finds every pinned crate —
16
+ # including the insta dev-dependency tree that the repository lock records — in the
17
+ # local CARGO_HOME cache.
18
+
19
+ set -u
20
+
21
+ umask 077
22
+
23
+ # Scratch working directory. We control it so we never depend on repository files
24
+ # (which are absent during this stage).
25
+ DL_TMPDIR="${TMPDIR:-/tmp}/moonwave-download-$$"
26
+
27
+ mkdir -p "$DL_TMPDIR/src"
28
+
29
+ # --- Generate the manifest (identical to extractor/Cargo.toml) ---
30
+ cat > "$DL_TMPDIR/Cargo.toml" <<'EOF'
31
+ [package]
32
+ name = "moonwave"
33
+ description = "Moonwave is a tool for generating documentation from comments in Lua source code."
34
+ version = "1.4.2"
35
+ authors = ["eryn L. K. <eryn@eryn.io>"]
36
+ license = "MPL-2.0"
37
+ homepage = "https://eryn.io/moonwave/"
38
+ repository = "https://github.com/evaera/moonwave"
39
+ edition = "2021"
40
+
41
+ [lib]
42
+ name = "libmoonwave"
43
+ path = "src/lib.rs"
44
+
45
+ [[bin]]
46
+ name = "moonwave-extractor"
47
+ path = "src/main.rs"
48
+
49
+ [profile.dev]
50
+ opt-level = 1
51
+
52
+ [dependencies]
53
+ full_moon = "2.2.0"
54
+ walkdir = "2.5.0"
55
+ anyhow = "1.0.86"
56
+ codespan-reporting = "0.11.1"
57
+ structopt = "0.3.26"
58
+ serde = { version = "1.0.204", features = ["derive"] }
59
+ serde_json = "1.0.120"
60
+ pathdiff = "0.2.1"
61
+ fs-err = "3.0.0"
62
+
63
+ [dev-dependencies]
64
+ insta = { version = "1.39.0", features = ["yaml"] }
65
+
66
+ [features]
67
+ default = ["roblox"]
68
+ roblox = ["full_moon/roblox"]
69
+ EOF
70
+
71
+ # --- Generate the complete lockfile (identical to extractor/Cargo.lock) ---
72
+ cat > "$DL_TMPDIR/Cargo.lock" <<'EOF'
73
+ # This file is automatically @generated by Cargo.
74
+ # It is not intended for manual editing.
75
+ version = 4
76
+
77
+ [[package]]
78
+ name = "ansi_term"
79
+ version = "0.12.1"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
82
+ dependencies = [
83
+ "winapi",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "anyhow"
88
+ version = "1.0.93"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775"
91
+
92
+ [[package]]
93
+ name = "atty"
94
+ version = "0.2.14"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
97
+ dependencies = [
98
+ "hermit-abi",
99
+ "libc",
100
+ "winapi",
101
+ ]
102
+
103
+ [[package]]
104
+ name = "autocfg"
105
+ version = "1.4.0"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
108
+
109
+ [[package]]
110
+ name = "bitflags"
111
+ version = "1.3.2"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
114
+
115
+ [[package]]
116
+ name = "borsh"
117
+ version = "1.5.3"
118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
119
+ checksum = "2506947f73ad44e344215ccd6403ac2ae18cd8e046e581a441bf8d199f257f03"
120
+ dependencies = [
121
+ "cfg_aliases",
122
+ ]
123
+
124
+ [[package]]
125
+ name = "bytecount"
126
+ version = "0.6.8"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "5ce89b21cab1437276d2650d57e971f9d548a2d9037cc231abdc0562b97498ce"
129
+
130
+ [[package]]
131
+ name = "cfg-if"
132
+ version = "1.0.0"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
135
+
136
+ [[package]]
137
+ name = "cfg_aliases"
138
+ version = "0.2.1"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
141
+
142
+ [[package]]
143
+ name = "clap"
144
+ version = "2.34.0"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
147
+ dependencies = [
148
+ "ansi_term",
149
+ "atty",
150
+ "bitflags",
151
+ "strsim",
152
+ "textwrap",
153
+ "unicode-width",
154
+ "vec_map",
155
+ ]
156
+
157
+ [[package]]
158
+ name = "codespan-reporting"
159
+ version = "0.11.1"
160
+ source = "registry+https://github.com/rust-lang/crates.io-index"
161
+ checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
162
+ dependencies = [
163
+ "termcolor",
164
+ "unicode-width",
165
+ ]
166
+
167
+ [[package]]
168
+ name = "console"
169
+ version = "0.15.8"
170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb"
172
+ dependencies = [
173
+ "encode_unicode",
174
+ "lazy_static",
175
+ "libc",
176
+ "windows-sys 0.52.0",
177
+ ]
178
+
179
+ [[package]]
180
+ name = "derive_more"
181
+ version = "1.0.0"
182
+ source = "registry+https://github.com/rust-lang/crates.io-index"
183
+ checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05"
184
+ dependencies = [
185
+ "derive_more-impl",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "derive_more-impl"
190
+ version = "1.0.0"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22"
193
+ dependencies = [
194
+ "proc-macro2",
195
+ "quote",
196
+ "syn 2.0.87",
197
+ "unicode-xid",
198
+ ]
199
+
200
+ [[package]]
201
+ name = "encode_unicode"
202
+ version = "0.3.6"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
205
+
206
+ [[package]]
207
+ name = "fs-err"
208
+ version = "3.0.0"
209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
210
+ checksum = "8bb60e7409f34ef959985bc9d9c5ee8f5db24ee46ed9775850548021710f807f"
211
+ dependencies = [
212
+ "autocfg",
213
+ ]
214
+
215
+ [[package]]
216
+ name = "full_moon"
217
+ version = "2.2.0"
218
+ source = "registry+https://github.com/rust-lang/crates.io-index"
219
+ checksum = "a083d6f598bbe9d70e694f2a5cf78f0354678a8c13528da2df6467b089586404"
220
+ dependencies = [
221
+ "bytecount",
222
+ "cfg-if",
223
+ "derive_more",
224
+ "full_moon_derive",
225
+ "paste",
226
+ "serde",
227
+ "smol_str",
228
+ ]
229
+
230
+ [[package]]
231
+ name = "full_moon_derive"
232
+ version = "0.11.0"
233
+ source = "registry+https://github.com/rust-lang/crates.io-index"
234
+ checksum = "99b4bd12ce56927d1dc5478d21528ea8c4b93ca85ff8f8043b6a5351a2a3c6f7"
235
+ dependencies = [
236
+ "indexmap",
237
+ "proc-macro2",
238
+ "quote",
239
+ "syn 1.0.109",
240
+ ]
241
+
242
+ [[package]]
243
+ name = "hashbrown"
244
+ version = "0.12.3"
245
+ source = "registry+https://github.com/rust-lang/crates.io-index"
246
+ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
247
+
248
+ [[package]]
249
+ name = "heck"
250
+ version = "0.3.3"
251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
252
+ checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
253
+ dependencies = [
254
+ "unicode-segmentation",
255
+ ]
256
+
257
+ [[package]]
258
+ name = "hermit-abi"
259
+ version = "0.1.19"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
262
+ dependencies = [
263
+ "libc",
264
+ ]
265
+
266
+ [[package]]
267
+ name = "indexmap"
268
+ version = "1.9.3"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
271
+ dependencies = [
272
+ "autocfg",
273
+ "hashbrown",
274
+ ]
275
+
276
+ [[package]]
277
+ name = "insta"
278
+ version = "1.41.1"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "7e9ffc4d4892617c50a928c52b2961cb5174b6fc6ebf252b2fac9d21955c48b8"
281
+ dependencies = [
282
+ "console",
283
+ "lazy_static",
284
+ "linked-hash-map",
285
+ "serde",
286
+ "similar",
287
+ ]
288
+
289
+ [[package]]
290
+ name = "itoa"
291
+ version = "1.0.11"
292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
293
+ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
294
+
295
+ [[package]]
296
+ name = "lazy_static"
297
+ version = "1.5.0"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
300
+
301
+ [[package]]
302
+ name = "libc"
303
+ version = "0.2.162"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
306
+
307
+ [[package]]
308
+ name = "linked-hash-map"
309
+ version = "0.5.6"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
312
+
313
+ [[package]]
314
+ name = "memchr"
315
+ version = "2.7.4"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
318
+
319
+ [[package]]
320
+ name = "moonwave"
321
+ version = "1.4.2"
322
+ dependencies = [
323
+ "anyhow",
324
+ "codespan-reporting",
325
+ "fs-err",
326
+ "full_moon",
327
+ "insta",
328
+ "pathdiff",
329
+ "serde",
330
+ "serde_json",
331
+ "structopt",
332
+ "walkdir",
333
+ ]
334
+
335
+ [[package]]
336
+ name = "paste"
337
+ version = "1.0.15"
338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
339
+ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
340
+
341
+ [[package]]
342
+ name = "pathdiff"
343
+ version = "0.2.2"
344
+ source = "registry+https://github.com/rust-lang/crates.io-index"
345
+ checksum = "d61c5ce1153ab5b689d0c074c4e7fc613e942dfb7dd9eea5ab202d2ad91fe361"
346
+
347
+ [[package]]
348
+ name = "proc-macro-error"
349
+ version = "1.0.4"
350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
351
+ checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
352
+ dependencies = [
353
+ "proc-macro-error-attr",
354
+ "proc-macro2",
355
+ "quote",
356
+ "syn 1.0.109",
357
+ "version_check",
358
+ ]
359
+
360
+ [[package]]
361
+ name = "proc-macro-error-attr"
362
+ version = "1.0.4"
363
+ source = "registry+https://github.com/rust-lang/crates.io-index"
364
+ checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
365
+ dependencies = [
366
+ "proc-macro2",
367
+ "quote",
368
+ "version_check",
369
+ ]
370
+
371
+ [[package]]
372
+ name = "proc-macro2"
373
+ version = "1.0.89"
374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
376
+ dependencies = [
377
+ "unicode-ident",
378
+ ]
379
+
380
+ [[package]]
381
+ name = "quote"
382
+ version = "1.0.37"
383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
385
+ dependencies = [
386
+ "proc-macro2",
387
+ ]
388
+
389
+ [[package]]
390
+ name = "ryu"
391
+ version = "1.0.18"
392
+ source = "registry+https://github.com/rust-lang/crates.io-index"
393
+ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
394
+
395
+ [[package]]
396
+ name = "same-file"
397
+ version = "1.0.6"
398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
399
+ checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
400
+ dependencies = [
401
+ "winapi-util",
402
+ ]
403
+
404
+ [[package]]
405
+ name = "serde"
406
+ version = "1.0.215"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f"
409
+ dependencies = [
410
+ "serde_derive",
411
+ ]
412
+
413
+ [[package]]
414
+ name = "serde_derive"
415
+ version = "1.0.215"
416
+ source = "registry+https://github.com/rust-lang/crates.io-index"
417
+ checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0"
418
+ dependencies = [
419
+ "proc-macro2",
420
+ "quote",
421
+ "syn 2.0.87",
422
+ ]
423
+
424
+ [[package]]
425
+ name = "serde_json"
426
+ version = "1.0.132"
427
+ source = "registry+https://github.com/rust-lang/crates.io-index"
428
+ checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03"
429
+ dependencies = [
430
+ "itoa",
431
+ "memchr",
432
+ "ryu",
433
+ "serde",
434
+ ]
435
+
436
+ [[package]]
437
+ name = "similar"
438
+ version = "2.6.0"
439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
440
+ checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e"
441
+
442
+ [[package]]
443
+ name = "smol_str"
444
+ version = "0.3.2"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "9676b89cd56310a87b93dec47b11af744f34d5fc9f367b829474eec0a891350d"
447
+ dependencies = [
448
+ "borsh",
449
+ "serde",
450
+ ]
451
+
452
+ [[package]]
453
+ name = "strsim"
454
+ version = "0.8.0"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
457
+
458
+ [[package]]
459
+ name = "structopt"
460
+ version = "0.3.26"
461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
462
+ checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
463
+ dependencies = [
464
+ "clap",
465
+ "lazy_static",
466
+ "structopt-derive",
467
+ ]
468
+
469
+ [[package]]
470
+ name = "structopt-derive"
471
+ version = "0.4.18"
472
+ source = "registry+https://github.com/rust-lang/crates.io-index"
473
+ checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
474
+ dependencies = [
475
+ "heck",
476
+ "proc-macro-error",
477
+ "proc-macro2",
478
+ "quote",
479
+ "syn 1.0.109",
480
+ ]
481
+
482
+ [[package]]
483
+ name = "syn"
484
+ version = "1.0.109"
485
+ source = "registry+https://github.com/rust-lang/crates.io-index"
486
+ checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
487
+ dependencies = [
488
+ "proc-macro2",
489
+ "quote",
490
+ "unicode-ident",
491
+ ]
492
+
493
+ [[package]]
494
+ name = "syn"
495
+ version = "2.0.87"
496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
497
+ checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
498
+ dependencies = [
499
+ "proc-macro2",
500
+ "quote",
501
+ "unicode-ident",
502
+ ]
503
+
504
+ [[package]]
505
+ name = "termcolor"
506
+ version = "1.4.1"
507
+ source = "registry+https://github.com/rust-lang/crates.io-index"
508
+ checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
509
+ dependencies = [
510
+ "winapi-util",
511
+ ]
512
+
513
+ [[package]]
514
+ name = "textwrap"
515
+ version = "0.11.0"
516
+ source = "registry+https://github.com/rust-lang/crates.io-index"
517
+ checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
518
+ dependencies = [
519
+ "unicode-width",
520
+ ]
521
+
522
+ [[package]]
523
+ name = "unicode-ident"
524
+ version = "1.0.13"
525
+ source = "registry+https://github.com/rust-lang/crates.io-index"
526
+ checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
527
+
528
+ [[package]]
529
+ name = "unicode-segmentation"
530
+ version = "1.12.0"
531
+ source = "registry+https://github.com/rust-lang/crates.io-index"
532
+ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
533
+
534
+ [[package]]
535
+ name = "unicode-width"
536
+ version = "0.1.14"
537
+ source = "registry+https://github.com/rust-lang/crates.io-index"
538
+ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
539
+
540
+ [[package]]
541
+ name = "unicode-xid"
542
+ version = "0.2.6"
543
+ source = "registry+https://github.com/rust-lang/crates.io-index"
544
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
545
+
546
+ [[package]]
547
+ name = "vec_map"
548
+ version = "0.8.2"
549
+ source = "registry+https://github.com/rust-lang/crates.io-index"
550
+ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
551
+
552
+ [[package]]
553
+ name = "version_check"
554
+ version = "0.9.5"
555
+ source = "registry+https://github.com/rust-lang/crates.io-index"
556
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
557
+
558
+ [[package]]
559
+ name = "walkdir"
560
+ version = "2.5.0"
561
+ source = "registry+https://github.com/rust-lang/crates.io-index"
562
+ checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
563
+ dependencies = [
564
+ "same-file",
565
+ "winapi-util",
566
+ ]
567
+
568
+ [[package]]
569
+ name = "winapi"
570
+ version = "0.3.9"
571
+ source = "registry+https://github.com/rust-lang/crates.io-index"
572
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
573
+ dependencies = [
574
+ "winapi-i686-pc-windows-gnu",
575
+ "winapi-x86_64-pc-windows-gnu",
576
+ ]
577
+
578
+ [[package]]
579
+ name = "winapi-i686-pc-windows-gnu"
580
+ version = "0.4.0"
581
+ source = "registry+https://github.com/rust-lang/crates.io-index"
582
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
583
+
584
+ [[package]]
585
+ name = "winapi-util"
586
+ version = "0.1.9"
587
+ source = "registry+https://github.com/rust-lang/crates.io-index"
588
+ checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
589
+ dependencies = [
590
+ "windows-sys 0.59.0",
591
+ ]
592
+
593
+ [[package]]
594
+ name = "winapi-x86_64-pc-windows-gnu"
595
+ version = "0.4.0"
596
+ source = "registry+https://github.com/rust-lang/crates.io-index"
597
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
598
+
599
+ [[package]]
600
+ name = "windows-sys"
601
+ version = "0.52.0"
602
+ source = "registry+https://github.com/rust-lang/crates.io-index"
603
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
604
+ dependencies = [
605
+ "windows-targets",
606
+ ]
607
+
608
+ [[package]]
609
+ name = "windows-sys"
610
+ version = "0.59.0"
611
+ source = "registry+https://github.com/rust-lang/crates.io-index"
612
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
613
+ dependencies = [
614
+ "windows-targets",
615
+ ]
616
+
617
+ [[package]]
618
+ name = "windows-targets"
619
+ version = "0.52.6"
620
+ source = "registry+https://github.com/rust-lang/crates.io-index"
621
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
622
+ dependencies = [
623
+ "windows_aarch64_gnullvm",
624
+ "windows_aarch64_msvc",
625
+ "windows_i686_gnu",
626
+ "windows_i686_gnullvm",
627
+ "windows_i686_msvc",
628
+ "windows_x86_64_gnu",
629
+ "windows_x86_64_gnullvm",
630
+ "windows_x86_64_msvc",
631
+ ]
632
+
633
+ [[package]]
634
+ name = "windows_aarch64_gnullvm"
635
+ version = "0.52.6"
636
+ source = "registry+https://github.com/rust-lang/crates.io-index"
637
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
638
+
639
+ [[package]]
640
+ name = "windows_aarch64_msvc"
641
+ version = "0.52.6"
642
+ source = "registry+https://github.com/rust-lang/crates.io-index"
643
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
644
+
645
+ [[package]]
646
+ name = "windows_i686_gnu"
647
+ version = "0.52.6"
648
+ source = "registry+https://github.com/rust-lang/crates.io-index"
649
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
650
+
651
+ [[package]]
652
+ name = "windows_i686_gnullvm"
653
+ version = "0.52.6"
654
+ source = "registry+https://github.com/rust-lang/crates.io-index"
655
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
656
+
657
+ [[package]]
658
+ name = "windows_i686_msvc"
659
+ version = "0.52.6"
660
+ source = "registry+https://github.com/rust-lang/crates.io-index"
661
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
662
+
663
+ [[package]]
664
+ name = "windows_x86_64_gnu"
665
+ version = "0.52.6"
666
+ source = "registry+https://github.com/rust-lang/crates.io-index"
667
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
668
+
669
+ [[package]]
670
+ name = "windows_x86_64_gnullvm"
671
+ version = "0.52.6"
672
+ source = "registry+https://github.com/rust-lang/crates.io-index"
673
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
674
+
675
+ [[package]]
676
+ name = "windows_x86_64_msvc"
677
+ version = "0.52.6"
678
+ source = "registry+https://github.com/rust-lang/crates.io-index"
679
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
680
+ EOF
681
+
682
+ # --- Generate minimal source stubs so cargo fetch can resolve the targets ---
683
+ cat > "$DL_TMPDIR/src/lib.rs" <<'EOF'
684
+ // Stub lib used only to allow `cargo fetch` during the download stage.
685
+ EOF
686
+
687
+ cat > "$DL_TMPDIR/src/main.rs" <<'EOF'
688
+ // Stub bin used only to allow `cargo fetch` during the download stage.
689
+ fn main() {}
690
+ EOF
691
+
692
+ # --- Prefetch all dependencies for the pinned build ---
693
+ # We embed the repository's complete Cargo.lock verbatim so that Cargo reuses
694
+ # exactly the pinned versions needed by build.sh's `--locked` build, including
695
+ # the insta dev-dependency tree recorded in that lock. We deliberately do not
696
+ # pass --locked here; with the embedded lock present, cargo resolves to those
697
+ # exact versions (verified to match the repository lock). Real failures are
698
+ # surfaced via this script's return value.
699
+ cargo fetch --manifest-path "$DL_TMPDIR/Cargo.toml"
700
+
701
+ fetch_status=$?
702
+
703
+ rm -rf "$DL_TMPDIR"
704
+
705
+ if [ "$fetch_status" -ne 0 ]; then
706
+ echo "download.sh: cargo fetch failed" >&2
707
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
708
+ return 1
709
+ else
710
+ exit 1
711
+ fi
712
+ fi
713
+
714
+ echo "download.sh: cargo dependencies prefetched successfully"
evaera--moonwave.ff90433/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5335a77b0879f917d49a63fc0ee060b1197b5a7d5e6a348c510399f88c65f8e6
3
+ size 3119936
evaera--moonwave.ff90433/environment/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
evaera--moonwave.ff90433/environment/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
evaera--moonwave.ff90433/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
9
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /tmp/programgym-download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
12
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /tmp/programgym-download.sh
13
+ fi
14
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
15
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /tmp/programgym-download.sh
16
+ fi
17
+ source /tmp/programgym-download.sh
18
+ set +a
19
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
20
+ import os
21
+ import shlex
22
+
23
+ ignored = {
24
+ "ALL_PROXY",
25
+ "HTTP_PROXY",
26
+ "HTTPS_PROXY",
27
+ "NO_PROXY",
28
+ "OLDPWD",
29
+ "PIP_PROXY",
30
+ "PWD",
31
+ "SHLVL",
32
+ "_",
33
+ "all_proxy",
34
+ "http_proxy",
35
+ "https_proxy",
36
+ "no_proxy",
37
+ "pip_proxy",
38
+ }
39
+ for key in sorted(os.environ):
40
+ if key in ignored or key.startswith("BASH_FUNC_"):
41
+ continue
42
+ value = os.environ[key]
43
+ if "\n" in value:
44
+ continue
45
+ print(f"export {key}={shlex.quote(value)}")
46
+ PY
47
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
evaera--moonwave.ff90433/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cfeb69ce47518308947451574a997853ee08c1019ac566e9457dcde023d6263
3
+ size 7733
evaera--moonwave.ff90433/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
evaera--moonwave.ff90433/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
evaera--moonwave.ff90433/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/evaera--moonwave.ff90433"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for evaera/moonwave"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "evaera__moonwave.ff90433"
32
+ repository = "evaera/moonwave"
33
+ commit = "ff90433b85d992d00804cd00056f9b4cfe900e54"
34
+ language = "rust"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.8468935433166251
37
+ test_branches = 4
38
+ test_count = 730
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"
evaera--moonwave.ff90433/tests/Dockerfile ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV CARGO_HOME=/usr/local/cargo
57
+ ENV RUSTUP_HOME=/usr/local/rustup
58
+ ENV RUSTUP_TOOLCHAIN=1.97.1
59
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
60
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
61
+ ENV PAGER=cat
62
+ ENV MANPAGER=cat
63
+ ENV LESS=-R
64
+ ENV TQDM_DISABLE=1
65
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
66
+ RUN set -eux; for attempt in 1 2 3 4 5; do rustup component add llvm-tools-preview --toolchain 1.97.1 && break; [ "$attempt" -lt 5 ] || exit 1; sleep $((attempt * 2)); done
67
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
68
+ RUN rustc --version && cargo --version && rustup show active-toolchain
69
+ WORKDIR /workspace
70
+ ADD workspace.tar.gz /workspace/
71
+ COPY executable /workspace/executable
72
+ COPY download.sh /tmp/programgym-download.sh
73
+ RUN chmod 755 /tmp/programgym-download.sh
74
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
75
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
76
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
77
+ && rm -f /tmp/programgym-download.sh \
78
+ && rm -f /tmp/harbor_prepare_download_env.sh
79
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
80
+ RUN chmod 111 /workspace/executable
81
+ WORKDIR /workspace
82
+ # Harbor uses tests/ as the separate verifier build context. Start with the
83
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
84
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
85
+ && mkdir -p /workspace /tests
86
+
87
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
88
+ # Installing a newer pytest alone leaves that apt package importable and creates
89
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
90
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
91
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
92
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
93
+ RUN set -eu; \
94
+ pip_break_system_packages=""; \
95
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
96
+ pip_break_system_packages="--break-system-packages"; \
97
+ fi; \
98
+ python3 -m pip install ${pip_break_system_packages} \
99
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
100
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
101
+
102
+ COPY test.sh /tests/test.sh
103
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
104
+ COPY programgym_task.json /tests/programgym_task.json
105
+ COPY blobs/ /tests/blobs/
106
+ RUN chmod +x /tests/test.sh
107
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
evaera--moonwave.ff90433/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:3491b4d7a202f247d4ee2e49d6e498cdb87668ffcf295d7e9874f3dd9b7b8412
3
+ size 31553
evaera--moonwave.ff90433/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:79c4802bd9b663049160889d026169898dcd7655c1f78c80957c13b833ab8392
3
+ size 40441
evaera--moonwave.ff90433/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:8d0240ceb3af61b5564e186aa42ae2de9e0c9351b7e9611314c5a937130e5c0b
3
+ size 23322
evaera--moonwave.ff90433/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:f4ef355e4506f1218d343799a396982288ca6d01847a73687968fecc19c07d49
3
+ size 16822
evaera--moonwave.ff90433/tests/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
evaera--moonwave.ff90433/tests/download.sh ADDED
@@ -0,0 +1,714 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh for moonwave (evaera/moonwave)
3
+ #
4
+ # This script is sourced (not executed): `source /source_ro/download.sh`.
5
+ # It only prefetches every Cargo dependency needed to build the moonwave-extractor
6
+ # bin target offline. It does NOT compile anything.
7
+ #
8
+ # The extractor crate is a standalone package whose manifest lives at
9
+ # extractor/Cargo.toml. To keep this download stage fully standalone (the source
10
+ # tree is not mounted here), we generate a byte-for-byte copy of that package from
11
+ # inline data: the exact Cargo.toml (including dev-dependencies) and the exact
12
+ # complete Cargo.lock are embedded below, together with the minimal source stubs
13
+ # that the [[lib]] and [[bin]] targets point at. We then run
14
+ # `cargo fetch --manifest-path <scratch>/Cargo.toml` against that generated
15
+ # package so the offline `--locked` build in build.sh finds every pinned crate —
16
+ # including the insta dev-dependency tree that the repository lock records — in the
17
+ # local CARGO_HOME cache.
18
+
19
+ set -u
20
+
21
+ umask 077
22
+
23
+ # Scratch working directory. We control it so we never depend on repository files
24
+ # (which are absent during this stage).
25
+ DL_TMPDIR="${TMPDIR:-/tmp}/moonwave-download-$$"
26
+
27
+ mkdir -p "$DL_TMPDIR/src"
28
+
29
+ # --- Generate the manifest (identical to extractor/Cargo.toml) ---
30
+ cat > "$DL_TMPDIR/Cargo.toml" <<'EOF'
31
+ [package]
32
+ name = "moonwave"
33
+ description = "Moonwave is a tool for generating documentation from comments in Lua source code."
34
+ version = "1.4.2"
35
+ authors = ["eryn L. K. <eryn@eryn.io>"]
36
+ license = "MPL-2.0"
37
+ homepage = "https://eryn.io/moonwave/"
38
+ repository = "https://github.com/evaera/moonwave"
39
+ edition = "2021"
40
+
41
+ [lib]
42
+ name = "libmoonwave"
43
+ path = "src/lib.rs"
44
+
45
+ [[bin]]
46
+ name = "moonwave-extractor"
47
+ path = "src/main.rs"
48
+
49
+ [profile.dev]
50
+ opt-level = 1
51
+
52
+ [dependencies]
53
+ full_moon = "2.2.0"
54
+ walkdir = "2.5.0"
55
+ anyhow = "1.0.86"
56
+ codespan-reporting = "0.11.1"
57
+ structopt = "0.3.26"
58
+ serde = { version = "1.0.204", features = ["derive"] }
59
+ serde_json = "1.0.120"
60
+ pathdiff = "0.2.1"
61
+ fs-err = "3.0.0"
62
+
63
+ [dev-dependencies]
64
+ insta = { version = "1.39.0", features = ["yaml"] }
65
+
66
+ [features]
67
+ default = ["roblox"]
68
+ roblox = ["full_moon/roblox"]
69
+ EOF
70
+
71
+ # --- Generate the complete lockfile (identical to extractor/Cargo.lock) ---
72
+ cat > "$DL_TMPDIR/Cargo.lock" <<'EOF'
73
+ # This file is automatically @generated by Cargo.
74
+ # It is not intended for manual editing.
75
+ version = 4
76
+
77
+ [[package]]
78
+ name = "ansi_term"
79
+ version = "0.12.1"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
82
+ dependencies = [
83
+ "winapi",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "anyhow"
88
+ version = "1.0.93"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775"
91
+
92
+ [[package]]
93
+ name = "atty"
94
+ version = "0.2.14"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
97
+ dependencies = [
98
+ "hermit-abi",
99
+ "libc",
100
+ "winapi",
101
+ ]
102
+
103
+ [[package]]
104
+ name = "autocfg"
105
+ version = "1.4.0"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
108
+
109
+ [[package]]
110
+ name = "bitflags"
111
+ version = "1.3.2"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
114
+
115
+ [[package]]
116
+ name = "borsh"
117
+ version = "1.5.3"
118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
119
+ checksum = "2506947f73ad44e344215ccd6403ac2ae18cd8e046e581a441bf8d199f257f03"
120
+ dependencies = [
121
+ "cfg_aliases",
122
+ ]
123
+
124
+ [[package]]
125
+ name = "bytecount"
126
+ version = "0.6.8"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "5ce89b21cab1437276d2650d57e971f9d548a2d9037cc231abdc0562b97498ce"
129
+
130
+ [[package]]
131
+ name = "cfg-if"
132
+ version = "1.0.0"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
135
+
136
+ [[package]]
137
+ name = "cfg_aliases"
138
+ version = "0.2.1"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
141
+
142
+ [[package]]
143
+ name = "clap"
144
+ version = "2.34.0"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
147
+ dependencies = [
148
+ "ansi_term",
149
+ "atty",
150
+ "bitflags",
151
+ "strsim",
152
+ "textwrap",
153
+ "unicode-width",
154
+ "vec_map",
155
+ ]
156
+
157
+ [[package]]
158
+ name = "codespan-reporting"
159
+ version = "0.11.1"
160
+ source = "registry+https://github.com/rust-lang/crates.io-index"
161
+ checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
162
+ dependencies = [
163
+ "termcolor",
164
+ "unicode-width",
165
+ ]
166
+
167
+ [[package]]
168
+ name = "console"
169
+ version = "0.15.8"
170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb"
172
+ dependencies = [
173
+ "encode_unicode",
174
+ "lazy_static",
175
+ "libc",
176
+ "windows-sys 0.52.0",
177
+ ]
178
+
179
+ [[package]]
180
+ name = "derive_more"
181
+ version = "1.0.0"
182
+ source = "registry+https://github.com/rust-lang/crates.io-index"
183
+ checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05"
184
+ dependencies = [
185
+ "derive_more-impl",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "derive_more-impl"
190
+ version = "1.0.0"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22"
193
+ dependencies = [
194
+ "proc-macro2",
195
+ "quote",
196
+ "syn 2.0.87",
197
+ "unicode-xid",
198
+ ]
199
+
200
+ [[package]]
201
+ name = "encode_unicode"
202
+ version = "0.3.6"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
205
+
206
+ [[package]]
207
+ name = "fs-err"
208
+ version = "3.0.0"
209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
210
+ checksum = "8bb60e7409f34ef959985bc9d9c5ee8f5db24ee46ed9775850548021710f807f"
211
+ dependencies = [
212
+ "autocfg",
213
+ ]
214
+
215
+ [[package]]
216
+ name = "full_moon"
217
+ version = "2.2.0"
218
+ source = "registry+https://github.com/rust-lang/crates.io-index"
219
+ checksum = "a083d6f598bbe9d70e694f2a5cf78f0354678a8c13528da2df6467b089586404"
220
+ dependencies = [
221
+ "bytecount",
222
+ "cfg-if",
223
+ "derive_more",
224
+ "full_moon_derive",
225
+ "paste",
226
+ "serde",
227
+ "smol_str",
228
+ ]
229
+
230
+ [[package]]
231
+ name = "full_moon_derive"
232
+ version = "0.11.0"
233
+ source = "registry+https://github.com/rust-lang/crates.io-index"
234
+ checksum = "99b4bd12ce56927d1dc5478d21528ea8c4b93ca85ff8f8043b6a5351a2a3c6f7"
235
+ dependencies = [
236
+ "indexmap",
237
+ "proc-macro2",
238
+ "quote",
239
+ "syn 1.0.109",
240
+ ]
241
+
242
+ [[package]]
243
+ name = "hashbrown"
244
+ version = "0.12.3"
245
+ source = "registry+https://github.com/rust-lang/crates.io-index"
246
+ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
247
+
248
+ [[package]]
249
+ name = "heck"
250
+ version = "0.3.3"
251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
252
+ checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
253
+ dependencies = [
254
+ "unicode-segmentation",
255
+ ]
256
+
257
+ [[package]]
258
+ name = "hermit-abi"
259
+ version = "0.1.19"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
262
+ dependencies = [
263
+ "libc",
264
+ ]
265
+
266
+ [[package]]
267
+ name = "indexmap"
268
+ version = "1.9.3"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
271
+ dependencies = [
272
+ "autocfg",
273
+ "hashbrown",
274
+ ]
275
+
276
+ [[package]]
277
+ name = "insta"
278
+ version = "1.41.1"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "7e9ffc4d4892617c50a928c52b2961cb5174b6fc6ebf252b2fac9d21955c48b8"
281
+ dependencies = [
282
+ "console",
283
+ "lazy_static",
284
+ "linked-hash-map",
285
+ "serde",
286
+ "similar",
287
+ ]
288
+
289
+ [[package]]
290
+ name = "itoa"
291
+ version = "1.0.11"
292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
293
+ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
294
+
295
+ [[package]]
296
+ name = "lazy_static"
297
+ version = "1.5.0"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
300
+
301
+ [[package]]
302
+ name = "libc"
303
+ version = "0.2.162"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
306
+
307
+ [[package]]
308
+ name = "linked-hash-map"
309
+ version = "0.5.6"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
312
+
313
+ [[package]]
314
+ name = "memchr"
315
+ version = "2.7.4"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
318
+
319
+ [[package]]
320
+ name = "moonwave"
321
+ version = "1.4.2"
322
+ dependencies = [
323
+ "anyhow",
324
+ "codespan-reporting",
325
+ "fs-err",
326
+ "full_moon",
327
+ "insta",
328
+ "pathdiff",
329
+ "serde",
330
+ "serde_json",
331
+ "structopt",
332
+ "walkdir",
333
+ ]
334
+
335
+ [[package]]
336
+ name = "paste"
337
+ version = "1.0.15"
338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
339
+ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
340
+
341
+ [[package]]
342
+ name = "pathdiff"
343
+ version = "0.2.2"
344
+ source = "registry+https://github.com/rust-lang/crates.io-index"
345
+ checksum = "d61c5ce1153ab5b689d0c074c4e7fc613e942dfb7dd9eea5ab202d2ad91fe361"
346
+
347
+ [[package]]
348
+ name = "proc-macro-error"
349
+ version = "1.0.4"
350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
351
+ checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
352
+ dependencies = [
353
+ "proc-macro-error-attr",
354
+ "proc-macro2",
355
+ "quote",
356
+ "syn 1.0.109",
357
+ "version_check",
358
+ ]
359
+
360
+ [[package]]
361
+ name = "proc-macro-error-attr"
362
+ version = "1.0.4"
363
+ source = "registry+https://github.com/rust-lang/crates.io-index"
364
+ checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
365
+ dependencies = [
366
+ "proc-macro2",
367
+ "quote",
368
+ "version_check",
369
+ ]
370
+
371
+ [[package]]
372
+ name = "proc-macro2"
373
+ version = "1.0.89"
374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
376
+ dependencies = [
377
+ "unicode-ident",
378
+ ]
379
+
380
+ [[package]]
381
+ name = "quote"
382
+ version = "1.0.37"
383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
385
+ dependencies = [
386
+ "proc-macro2",
387
+ ]
388
+
389
+ [[package]]
390
+ name = "ryu"
391
+ version = "1.0.18"
392
+ source = "registry+https://github.com/rust-lang/crates.io-index"
393
+ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
394
+
395
+ [[package]]
396
+ name = "same-file"
397
+ version = "1.0.6"
398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
399
+ checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
400
+ dependencies = [
401
+ "winapi-util",
402
+ ]
403
+
404
+ [[package]]
405
+ name = "serde"
406
+ version = "1.0.215"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f"
409
+ dependencies = [
410
+ "serde_derive",
411
+ ]
412
+
413
+ [[package]]
414
+ name = "serde_derive"
415
+ version = "1.0.215"
416
+ source = "registry+https://github.com/rust-lang/crates.io-index"
417
+ checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0"
418
+ dependencies = [
419
+ "proc-macro2",
420
+ "quote",
421
+ "syn 2.0.87",
422
+ ]
423
+
424
+ [[package]]
425
+ name = "serde_json"
426
+ version = "1.0.132"
427
+ source = "registry+https://github.com/rust-lang/crates.io-index"
428
+ checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03"
429
+ dependencies = [
430
+ "itoa",
431
+ "memchr",
432
+ "ryu",
433
+ "serde",
434
+ ]
435
+
436
+ [[package]]
437
+ name = "similar"
438
+ version = "2.6.0"
439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
440
+ checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e"
441
+
442
+ [[package]]
443
+ name = "smol_str"
444
+ version = "0.3.2"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "9676b89cd56310a87b93dec47b11af744f34d5fc9f367b829474eec0a891350d"
447
+ dependencies = [
448
+ "borsh",
449
+ "serde",
450
+ ]
451
+
452
+ [[package]]
453
+ name = "strsim"
454
+ version = "0.8.0"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
457
+
458
+ [[package]]
459
+ name = "structopt"
460
+ version = "0.3.26"
461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
462
+ checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
463
+ dependencies = [
464
+ "clap",
465
+ "lazy_static",
466
+ "structopt-derive",
467
+ ]
468
+
469
+ [[package]]
470
+ name = "structopt-derive"
471
+ version = "0.4.18"
472
+ source = "registry+https://github.com/rust-lang/crates.io-index"
473
+ checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
474
+ dependencies = [
475
+ "heck",
476
+ "proc-macro-error",
477
+ "proc-macro2",
478
+ "quote",
479
+ "syn 1.0.109",
480
+ ]
481
+
482
+ [[package]]
483
+ name = "syn"
484
+ version = "1.0.109"
485
+ source = "registry+https://github.com/rust-lang/crates.io-index"
486
+ checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
487
+ dependencies = [
488
+ "proc-macro2",
489
+ "quote",
490
+ "unicode-ident",
491
+ ]
492
+
493
+ [[package]]
494
+ name = "syn"
495
+ version = "2.0.87"
496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
497
+ checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
498
+ dependencies = [
499
+ "proc-macro2",
500
+ "quote",
501
+ "unicode-ident",
502
+ ]
503
+
504
+ [[package]]
505
+ name = "termcolor"
506
+ version = "1.4.1"
507
+ source = "registry+https://github.com/rust-lang/crates.io-index"
508
+ checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
509
+ dependencies = [
510
+ "winapi-util",
511
+ ]
512
+
513
+ [[package]]
514
+ name = "textwrap"
515
+ version = "0.11.0"
516
+ source = "registry+https://github.com/rust-lang/crates.io-index"
517
+ checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
518
+ dependencies = [
519
+ "unicode-width",
520
+ ]
521
+
522
+ [[package]]
523
+ name = "unicode-ident"
524
+ version = "1.0.13"
525
+ source = "registry+https://github.com/rust-lang/crates.io-index"
526
+ checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
527
+
528
+ [[package]]
529
+ name = "unicode-segmentation"
530
+ version = "1.12.0"
531
+ source = "registry+https://github.com/rust-lang/crates.io-index"
532
+ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
533
+
534
+ [[package]]
535
+ name = "unicode-width"
536
+ version = "0.1.14"
537
+ source = "registry+https://github.com/rust-lang/crates.io-index"
538
+ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
539
+
540
+ [[package]]
541
+ name = "unicode-xid"
542
+ version = "0.2.6"
543
+ source = "registry+https://github.com/rust-lang/crates.io-index"
544
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
545
+
546
+ [[package]]
547
+ name = "vec_map"
548
+ version = "0.8.2"
549
+ source = "registry+https://github.com/rust-lang/crates.io-index"
550
+ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
551
+
552
+ [[package]]
553
+ name = "version_check"
554
+ version = "0.9.5"
555
+ source = "registry+https://github.com/rust-lang/crates.io-index"
556
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
557
+
558
+ [[package]]
559
+ name = "walkdir"
560
+ version = "2.5.0"
561
+ source = "registry+https://github.com/rust-lang/crates.io-index"
562
+ checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
563
+ dependencies = [
564
+ "same-file",
565
+ "winapi-util",
566
+ ]
567
+
568
+ [[package]]
569
+ name = "winapi"
570
+ version = "0.3.9"
571
+ source = "registry+https://github.com/rust-lang/crates.io-index"
572
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
573
+ dependencies = [
574
+ "winapi-i686-pc-windows-gnu",
575
+ "winapi-x86_64-pc-windows-gnu",
576
+ ]
577
+
578
+ [[package]]
579
+ name = "winapi-i686-pc-windows-gnu"
580
+ version = "0.4.0"
581
+ source = "registry+https://github.com/rust-lang/crates.io-index"
582
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
583
+
584
+ [[package]]
585
+ name = "winapi-util"
586
+ version = "0.1.9"
587
+ source = "registry+https://github.com/rust-lang/crates.io-index"
588
+ checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
589
+ dependencies = [
590
+ "windows-sys 0.59.0",
591
+ ]
592
+
593
+ [[package]]
594
+ name = "winapi-x86_64-pc-windows-gnu"
595
+ version = "0.4.0"
596
+ source = "registry+https://github.com/rust-lang/crates.io-index"
597
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
598
+
599
+ [[package]]
600
+ name = "windows-sys"
601
+ version = "0.52.0"
602
+ source = "registry+https://github.com/rust-lang/crates.io-index"
603
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
604
+ dependencies = [
605
+ "windows-targets",
606
+ ]
607
+
608
+ [[package]]
609
+ name = "windows-sys"
610
+ version = "0.59.0"
611
+ source = "registry+https://github.com/rust-lang/crates.io-index"
612
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
613
+ dependencies = [
614
+ "windows-targets",
615
+ ]
616
+
617
+ [[package]]
618
+ name = "windows-targets"
619
+ version = "0.52.6"
620
+ source = "registry+https://github.com/rust-lang/crates.io-index"
621
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
622
+ dependencies = [
623
+ "windows_aarch64_gnullvm",
624
+ "windows_aarch64_msvc",
625
+ "windows_i686_gnu",
626
+ "windows_i686_gnullvm",
627
+ "windows_i686_msvc",
628
+ "windows_x86_64_gnu",
629
+ "windows_x86_64_gnullvm",
630
+ "windows_x86_64_msvc",
631
+ ]
632
+
633
+ [[package]]
634
+ name = "windows_aarch64_gnullvm"
635
+ version = "0.52.6"
636
+ source = "registry+https://github.com/rust-lang/crates.io-index"
637
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
638
+
639
+ [[package]]
640
+ name = "windows_aarch64_msvc"
641
+ version = "0.52.6"
642
+ source = "registry+https://github.com/rust-lang/crates.io-index"
643
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
644
+
645
+ [[package]]
646
+ name = "windows_i686_gnu"
647
+ version = "0.52.6"
648
+ source = "registry+https://github.com/rust-lang/crates.io-index"
649
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
650
+
651
+ [[package]]
652
+ name = "windows_i686_gnullvm"
653
+ version = "0.52.6"
654
+ source = "registry+https://github.com/rust-lang/crates.io-index"
655
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
656
+
657
+ [[package]]
658
+ name = "windows_i686_msvc"
659
+ version = "0.52.6"
660
+ source = "registry+https://github.com/rust-lang/crates.io-index"
661
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
662
+
663
+ [[package]]
664
+ name = "windows_x86_64_gnu"
665
+ version = "0.52.6"
666
+ source = "registry+https://github.com/rust-lang/crates.io-index"
667
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
668
+
669
+ [[package]]
670
+ name = "windows_x86_64_gnullvm"
671
+ version = "0.52.6"
672
+ source = "registry+https://github.com/rust-lang/crates.io-index"
673
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
674
+
675
+ [[package]]
676
+ name = "windows_x86_64_msvc"
677
+ version = "0.52.6"
678
+ source = "registry+https://github.com/rust-lang/crates.io-index"
679
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
680
+ EOF
681
+
682
+ # --- Generate minimal source stubs so cargo fetch can resolve the targets ---
683
+ cat > "$DL_TMPDIR/src/lib.rs" <<'EOF'
684
+ // Stub lib used only to allow `cargo fetch` during the download stage.
685
+ EOF
686
+
687
+ cat > "$DL_TMPDIR/src/main.rs" <<'EOF'
688
+ // Stub bin used only to allow `cargo fetch` during the download stage.
689
+ fn main() {}
690
+ EOF
691
+
692
+ # --- Prefetch all dependencies for the pinned build ---
693
+ # We embed the repository's complete Cargo.lock verbatim so that Cargo reuses
694
+ # exactly the pinned versions needed by build.sh's `--locked` build, including
695
+ # the insta dev-dependency tree recorded in that lock. We deliberately do not
696
+ # pass --locked here; with the embedded lock present, cargo resolves to those
697
+ # exact versions (verified to match the repository lock). Real failures are
698
+ # surfaced via this script's return value.
699
+ cargo fetch --manifest-path "$DL_TMPDIR/Cargo.toml"
700
+
701
+ fetch_status=$?
702
+
703
+ rm -rf "$DL_TMPDIR"
704
+
705
+ if [ "$fetch_status" -ne 0 ]; then
706
+ echo "download.sh: cargo fetch failed" >&2
707
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
708
+ return 1
709
+ else
710
+ exit 1
711
+ fi
712
+ fi
713
+
714
+ echo "download.sh: cargo dependencies prefetched successfully"
evaera--moonwave.ff90433/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5335a77b0879f917d49a63fc0ee060b1197b5a7d5e6a348c510399f88c65f8e6
3
+ size 3119936
evaera--moonwave.ff90433/tests/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
evaera--moonwave.ff90433/tests/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
evaera--moonwave.ff90433/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
9
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /tmp/programgym-download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
12
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /tmp/programgym-download.sh
13
+ fi
14
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
15
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /tmp/programgym-download.sh
16
+ fi
17
+ source /tmp/programgym-download.sh
18
+ set +a
19
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
20
+ import os
21
+ import shlex
22
+
23
+ ignored = {
24
+ "ALL_PROXY",
25
+ "HTTP_PROXY",
26
+ "HTTPS_PROXY",
27
+ "NO_PROXY",
28
+ "OLDPWD",
29
+ "PIP_PROXY",
30
+ "PWD",
31
+ "SHLVL",
32
+ "_",
33
+ "all_proxy",
34
+ "http_proxy",
35
+ "https_proxy",
36
+ "no_proxy",
37
+ "pip_proxy",
38
+ }
39
+ for key in sorted(os.environ):
40
+ if key in ignored or key.startswith("BASH_FUNC_"):
41
+ continue
42
+ value = os.environ[key]
43
+ if "\n" in value:
44
+ continue
45
+ print(f"export {key}={shlex.quote(value)}")
46
+ PY
47
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
evaera--moonwave.ff90433/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()
evaera--moonwave.ff90433/tests/programgym_task.json ADDED
@@ -0,0 +1,1497 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [],
7
+ "tests": [
8
+ "eval.tests.test_base_path.test_base_defaults_to_input_dir",
9
+ "eval.tests.test_base_path.test_base_equal_to_input_dir_is_default",
10
+ "eval.tests.test_base_path.test_base_narrower_than_input_dir",
11
+ "eval.tests.test_base_path.test_base_outside_yields_dotdot_prefix",
12
+ "eval.tests.test_base_path.test_base_short_flag_equivalent",
13
+ "eval.tests.test_base_path.test_base_wider_than_input_dir",
14
+ "eval.tests.test_class_grouping.test_cross_file_members_grouped_into_their_class",
15
+ "eval.tests.test_class_grouping.test_empty_class_emits_empty_member_arrays",
16
+ "eval.tests.test_class_grouping.test_index_alias_resolves_property_and_type_members",
17
+ "eval.tests.test_class_grouping.test_many_classes_with_members_sorted_alphabetically",
18
+ "eval.tests.test_class_grouping.test_members_accumulate_in_declaration_order_across_files",
19
+ "eval.tests.test_class_grouping.test_only_property_and_only_type_classes_emit_independently",
20
+ "eval.tests.test_class_grouping.test_orphan_prop_and_type_emit_two_diagnostics",
21
+ "eval.tests.test_class_grouping.test_orphan_property_suppresses_output_despite_valid_class",
22
+ "eval.tests.test_class_grouping.test_orphan_type_suppresses_output_despite_valid_class",
23
+ "eval.tests.test_class_grouping.test_within_file_members_keep_source_order",
24
+ "eval.tests.test_cli.test_base_option_requires_a_value[argv0-cli_err_base_missing_value.stderr]",
25
+ "eval.tests.test_cli.test_base_option_requires_a_value[argv1-cli_err_base_missing_value.stderr]",
26
+ "eval.tests.test_cli.test_extract_help_matches_golden",
27
+ "eval.tests.test_cli.test_extract_help_short_flag[--help]",
28
+ "eval.tests.test_cli.test_extract_help_short_flag[-h]",
29
+ "eval.tests.test_cli.test_extract_subcommand_version",
30
+ "eval.tests.test_cli.test_help_extract_subcommand_prints_extract_help",
31
+ "eval.tests.test_cli.test_help_subcommand_prints_main_help",
32
+ "eval.tests.test_cli.test_main_help_matches_golden[--help]",
33
+ "eval.tests.test_cli.test_main_help_matches_golden[-h]",
34
+ "eval.tests.test_cli.test_main_version_matches_golden[--version]",
35
+ "eval.tests.test_cli.test_main_version_matches_golden[-V]",
36
+ "eval.tests.test_cli.test_no_arguments_prints_help_and_fails",
37
+ "eval.tests.test_cli.test_unknown_argument_reports_usage_error[argv0-cli_err_unknown_subcommand.stderr]",
38
+ "eval.tests.test_cli.test_unknown_argument_reports_usage_error[argv1-cli_err_bogus_flag.stderr]",
39
+ "eval.tests.test_cli.test_unknown_argument_reports_usage_error[argv2-cli_err_extract_bogus.stderr]",
40
+ "eval.tests.test_directory_edges.test_follow_symlinked_lua_file",
41
+ "eval.tests.test_directory_edges.test_multiline_block_doc_comment",
42
+ "eval.tests.test_directory_edges.test_no_input_path_scans_current_directory",
43
+ "eval.tests.test_directory_edges.test_no_input_path_scans_relative_person_alias",
44
+ "eval.tests.test_directory_edges.test_roblox_module_comment_is_dropped",
45
+ "eval.tests.test_error_diagnostics.test_abort_plural_for_multiple_errors",
46
+ "eval.tests.test_error_diagnostics.test_class_extra_content_accepted",
47
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_assign_no_vars]",
48
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_class_no_text]",
49
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_class_within_mutex]",
50
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_deprecated_no_text]",
51
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_double_doc]",
52
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_dup_class]",
53
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_error_no_text]",
54
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_explicit_kind]",
55
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_external_no_url]",
56
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_field_no_name]",
57
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_field_no_type]",
58
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_missing_parent]",
59
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_missing_prop_parent]",
60
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_missing_type_parent]",
61
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_mixed_indent]",
62
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_multi_vars]",
63
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_multiline_no_newline]",
64
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_param_no_name]",
65
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_param_no_type]",
66
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_prop_no_type]",
67
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_return_no_type]",
68
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_since_no_text]",
69
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_syntax]",
70
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_tag_no_text]",
71
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_type_no_name]",
72
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_unknown_tag]",
73
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_within_required]",
74
+ "eval.tests.test_error_diagnostics.test_diagnostic_matches_golden_stderr[e_within_stuff]",
75
+ "eval.tests.test_error_diagnostics.test_empty_first_line_comment_dropped",
76
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_assign_no_vars]",
77
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_class_no_text]",
78
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_class_within_mutex]",
79
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_deprecated_no_text]",
80
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_double_doc]",
81
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_dup_class]",
82
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_error_no_text]",
83
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_explicit_kind]",
84
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_external_no_url]",
85
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_field_no_name]",
86
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_field_no_type]",
87
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_missing_parent]",
88
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_missing_prop_parent]",
89
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_missing_type_parent]",
90
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_mixed_indent]",
91
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_multi_vars]",
92
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_multiline_no_newline]",
93
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_param_no_name]",
94
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_param_no_type]",
95
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_prop_no_type]",
96
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_return_no_type]",
97
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_since_no_text]",
98
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_syntax]",
99
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_tag_no_text]",
100
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_type_no_name]",
101
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_unknown_tag]",
102
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_within_required]",
103
+ "eval.tests.test_error_diagnostics.test_error_one_diagnostic_abort_line[e_within_stuff]",
104
+ "eval.tests.test_error_diagnostics.test_explicit_class_tag_on_expression_works",
105
+ "eval.tests.test_error_diagnostics.test_explicit_kind_required_for_non_function_assignment",
106
+ "eval.tests.test_error_diagnostics.test_full_moon_error_among_valid_files_suppresses_json",
107
+ "eval.tests.test_error_diagnostics.test_full_moon_syntax_error_reported",
108
+ "eval.tests.test_error_diagnostics.test_mixed_valid_and_invalid_file_emits_no_json",
109
+ "eval.tests.test_error_diagnostics.test_unclosed_multiline_comment_reports_tokenizer_error",
110
+ "eval.tests.test_external_custom_tags.test_class_deprecated_and_since_alongside_external",
111
+ "eval.tests.test_external_custom_tags.test_external_types_serialized_on_class",
112
+ "eval.tests.test_external_custom_tags.test_extwidget_fixture_matches_golden",
113
+ "eval.tests.test_external_custom_tags.test_function_custom_tag_serialized",
114
+ "eval.tests.test_external_custom_tags.test_function_yields_flag",
115
+ "eval.tests.test_external_custom_tags.test_member_source_line_numbers_precise",
116
+ "eval.tests.test_external_custom_tags.test_multiple_custom_tags_preserve_declaration_order",
117
+ "eval.tests.test_external_custom_tags.test_multiple_errors_preserve_order_and_text",
118
+ "eval.tests.test_external_custom_tags.test_plain_class_omits_external_types_and_custom_tags",
119
+ "eval.tests.test_extract_success.test_base_tag_serialization",
120
+ "eval.tests.test_extract_success.test_bracket_assignment_function_name",
121
+ "eval.tests.test_extract_success.test_class_merge_functions_from_multiple_within",
122
+ "eval.tests.test_extract_success.test_directory_scan_sorted_classes_matches_golden",
123
+ "eval.tests.test_extract_success.test_directory_without_lua_files_emits_empty_array",
124
+ "eval.tests.test_extract_success.test_empty_directory_emits_empty_array",
125
+ "eval.tests.test_extract_success.test_index_tag_accepted_on_class",
126
+ "eval.tests.test_extract_success.test_index_tag_maps_within_to_owning_class",
127
+ "eval.tests.test_extract_success.test_local_function_assignment",
128
+ "eval.tests.test_extract_success.test_luau_extension_is_scanned",
129
+ "eval.tests.test_extract_success.test_luau_type_annotations_supply_param_types",
130
+ "eval.tests.test_extract_success.test_method_tag_forces_method_type",
131
+ "eval.tests.test_extract_success.test_multiple_classes_sorted_alphabetically",
132
+ "eval.tests.test_extract_success.test_nested_directory_recursion_matches_golden",
133
+ "eval.tests.test_extract_success.test_output_is_valid_pretty_json_person",
134
+ "eval.tests.test_extract_success.test_output_is_valid_pretty_json_status",
135
+ "eval.tests.test_extract_success.test_plain_module_produces_no_classes",
136
+ "eval.tests.test_extract_success.test_qualified_function_name_provides_implicit_within",
137
+ "eval.tests.test_extract_success.test_single_class_matches_golden[Base.lua-single_base.json]",
138
+ "eval.tests.test_extract_success.test_single_class_matches_golden[Person.lua-single_person.json]",
139
+ "eval.tests.test_extract_success.test_single_class_matches_golden[Status.lua-single_status.json]",
140
+ "eval.tests.test_extract_success.test_single_class_matches_golden[Widget.lua-single_widget.json]",
141
+ "eval.tests.test_extract_success.test_single_class_matches_golden[bracket.lua-single_bracket.json]",
142
+ "eval.tests.test_extract_success.test_single_class_matches_golden[fn_annotation.lua-single_fn_annotation.json]",
143
+ "eval.tests.test_extract_success.test_single_class_matches_golden[fn_local.lua-single_fn_local.json]",
144
+ "eval.tests.test_extract_success.test_single_class_matches_golden[fn_qualified.lua-single_fn_qualified.json]",
145
+ "eval.tests.test_extract_success.test_single_class_matches_golden[index.lua-single_index.json]",
146
+ "eval.tests.test_extract_success.test_single_class_matches_golden[index_alias.lua-single_index_alias.json]",
147
+ "eval.tests.test_extract_success.test_single_class_matches_golden[method_tag.lua-single_method_tag.json]",
148
+ "eval.tests.test_extract_success.test_single_file_path_argument",
149
+ "eval.tests.test_extract_success.test_widget_rich_tags_serialized",
150
+ "eval.tests.test_function_forms.test_method_declaration_implies_within",
151
+ "eval.tests.test_function_forms.test_method_owning_class_is_deduced",
152
+ "eval.tests.test_function_forms.test_multiple_properties_in_source_order",
153
+ "eval.tests.test_function_forms.test_params_and_returns_preserve_order_and_descriptions",
154
+ "eval.tests.test_function_forms.test_readonly_property_serialized",
155
+ "eval.tests.test_function_forms.test_static_and_method_distinguished_in_same_class",
156
+ "eval.tests.test_global_validation.test_duplicate_class_name_across_files_rejected",
157
+ "eval.tests.test_global_validation.test_duplicate_class_name_in_one_file_rejected",
158
+ "eval.tests.test_global_validation.test_existing_file_as_input_path",
159
+ "eval.tests.test_global_validation.test_explicit_within_shortname",
160
+ "eval.tests.test_global_validation.test_nonexistent_base_falls_back_to_relative",
161
+ "eval.tests.test_global_validation.test_nonexistent_input_path_yields_empty",
162
+ "eval.tests.test_global_validation.test_within_anywhere_supplies_class",
163
+ "eval.tests.test_human_path_relative.test_absolute_input_produces_relative_path_not_raw",
164
+ "eval.tests.test_human_path_relative.test_relative_input_keeps_raw_path_with_ancestor_abs_base",
165
+ "eval.tests.test_human_path_relative.test_relative_input_keeps_raw_path_with_disjoint_abs_base",
166
+ "eval.tests.test_human_path_relative.test_relative_input_keeps_raw_path_with_relative_base",
167
+ "eval.tests.test_human_path_relative.test_relative_nested_input_keeps_subdir_prefix",
168
+ "eval.tests.test_human_path_relative.test_relative_single_file_input_keeps_raw_name",
169
+ "eval.tests.test_markers.test_deprecated_and_since_class_markers",
170
+ "eval.tests.test_markers.test_ignore_class_marker",
171
+ "eval.tests.test_markers.test_multiple_realms_sorted_by_realm_enum",
172
+ "eval.tests.test_markers.test_mutually_exclusive_tags_rejected[--- C\\n--- @class P\\n--- @param x number\\nlocal P = {}\\nreturn P\\n]",
173
+ "eval.tests.test_markers.test_mutually_exclusive_tags_rejected[--- C\\n--- @class Q\\n--- @within Q\\n--- @prop p number\\n--- @error e\\nlocal Q = {}\\nreturn Q\\n]",
174
+ "eval.tests.test_markers.test_mutually_exclusive_tags_rejected[--- C\\n--- @class W\\n--- @within W\\nlocal W = {}\\nreturn W\\n]",
175
+ "eval.tests.test_markers.test_mutually_exclusive_tags_rejected[--- C\\n--- @class Y\\n--- @unreleased\\n--- @since 1.0\\nlocal Y = {}\\nreturn Y\\n]",
176
+ "eval.tests.test_markers.test_mutually_exclusive_tags_rejected[--- C\\n--- @class Z\\n--- @return string\\nlocal Z = {}\\nreturn Z\\n]",
177
+ "eval.tests.test_markers.test_mutually_exclusive_tags_rejected[--- F\\n--- @class R\\n--- @within R\\n--- @readonly\\nfunction R.f() end\\nreturn {}\\n]",
178
+ "eval.tests.test_markers.test_no_realm_marker_leaves_realm_absent",
179
+ "eval.tests.test_markers.test_private_class_marker",
180
+ "eval.tests.test_markers.test_realm_marker_reflected_in_json[@client-realm1]",
181
+ "eval.tests.test_markers.test_realm_marker_reflected_in_json[@plugin-realm2]",
182
+ "eval.tests.test_markers.test_realm_marker_reflected_in_json[@server-realm0]",
183
+ "eval.tests.test_markers.test_unreleased_class_marker",
184
+ "eval.tests.test_member_markers.test_plain_property_has_no_redundant_marker_fields",
185
+ "eval.tests.test_member_markers.test_plain_type_keeps_only_lua_type_body",
186
+ "eval.tests.test_member_markers.test_property_deprecated_and_since_markers",
187
+ "eval.tests.test_member_markers.test_property_marks_fixture_matches_golden",
188
+ "eval.tests.test_member_markers.test_property_private_unreleased_ignore_markers",
189
+ "eval.tests.test_member_markers.test_property_realm_marker",
190
+ "eval.tests.test_member_markers.test_type_marks_fixture_matches_golden",
191
+ "eval.tests.test_member_markers.test_type_private_unreleased_ignore_serialized",
192
+ "eval.tests.test_member_markers.test_type_since_deprecated_serialized",
193
+ "eval.tests.test_order_independence.test_distinct_external_names_do_not_collide",
194
+ "eval.tests.test_order_independence.test_external_duplicate_name_across_files_rejected",
195
+ "eval.tests.test_order_independence.test_member_and_prop_across_two_early_files_group",
196
+ "eval.tests.test_order_independence.test_member_file_scanned_before_class_file_still_groups",
197
+ "eval.tests.test_rich_members.test_all_member_buckets_populated_in_one_class",
198
+ "eval.tests.test_rich_members.test_function_metadata_since_deprecated_params_returns",
199
+ "eval.tests.test_rich_members.test_interface_fields_serialized_in_order",
200
+ "eval.tests.test_rich_members.test_properties_distinguish_readonly",
201
+ "eval.tests.test_rich_members.test_rich_fixture_matches_golden",
202
+ "eval.tests.test_rich_members.test_type_alias_keeps_structured_lua_type_body",
203
+ "eval.tests.test_rich_members.test_type_and_interface_buckets_are_distinct",
204
+ "eval.tests.test_structured_member_details.test_function_without_return_emits_empty_returns_array",
205
+ "eval.tests.test_structured_member_details.test_multiple_returns_preserve_order_with_desc",
206
+ "eval.tests.test_structured_member_details.test_optional_suffix_on_param_type_round_trips",
207
+ "eval.tests.test_structured_member_details.test_param_complex_nested_callable_type_round_trips",
208
+ "eval.tests.test_structured_member_details.test_param_double_dash_separator_populates_desc",
209
+ "eval.tests.test_structured_member_details.test_param_mismatch_is_reported_and_suppresses_all_json",
210
+ "eval.tests.test_structured_member_details.test_param_not_matching_actual_argument_fails",
211
+ "eval.tests.test_structured_member_details.test_prop_with_optional_object_type_preserved",
212
+ "eval.tests.test_structured_member_details.test_structured_fixture_matches_golden"
213
+ ]
214
+ },
215
+ "generated_module_02": {
216
+ "ignore_reason": "",
217
+ "ignored": false,
218
+ "ignored_tests": [
219
+ {
220
+ "name": "eval.tests.test_errors_stderr.test_trailing_eof_comment_requires_kind_tag",
221
+ "reasons": [
222
+ {
223
+ "id": "generic_keyword_oracle",
224
+ "message": "pytest test uses a generic keyword oracle",
225
+ "path": "eval/tests/test_errors_stderr.py",
226
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
227
+ "severity": "error",
228
+ "stage": "static_lint"
229
+ }
230
+ ]
231
+ }
232
+ ],
233
+ "tests": [
234
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[before_return-0]",
235
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[between_stmts-0]",
236
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[blank_flush-0]",
237
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[class_block-0]",
238
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[class_lifecycle-0]",
239
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[class_table_stmt-0]",
240
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[cls_within-1]",
241
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[control_flow-1]",
242
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[custom_tags_valid-0]",
243
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[dashes_skip-0]",
244
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[dep_unreleased-1]",
245
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[do_block-0]",
246
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[dup_within-1]",
247
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[duplicate_names-1]",
248
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[empty_block-0]",
249
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[eof_kind_single-0]",
250
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[error_notype-1]",
251
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[error_prop-1]",
252
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[ext_nourl-1]",
253
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[ext_valid-0]",
254
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[field_noname-1]",
255
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[field_notype-1]",
256
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[fn_readonly-1]",
257
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[free_method-0]",
258
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[generic_type_params-0]",
259
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[generic_types-0]",
260
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[index_prop-1]",
261
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[interface_entries-0]",
262
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[interface_fields-0]",
263
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[local_statement-0]",
264
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[method_tag-0]",
265
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[missing_parent-1]",
266
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[module_drop-0]",
267
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[module_mixed-0]",
268
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[multi_errors-1]",
269
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[multi_mutex_errors-1]",
270
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[nested_interface-0]",
271
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[no_newline_mlc-1]",
272
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[no_within-1]",
273
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[param_class-1]",
274
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[param_noname-1]",
275
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[param_opt-0]",
276
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[prop_notype-1]",
277
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[prop_status-0]",
278
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[ret_notype-1]",
279
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[return_class-1]",
280
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[return_variants-0]",
281
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[rich_entries-0]",
282
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[singleline_class-0]",
283
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[singleline_entries-0]",
284
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[singleline_fn-1]",
285
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[singleline_method-0]",
286
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[syntax_error-1]",
287
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[tags_and_types-0]",
288
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[trailing_eof-1]",
289
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[type_notext-1]",
290
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[type_notype-1]",
291
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[unknown_tag-1]",
292
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[unknown_within_valid-0]",
293
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[within_crossref-0]",
294
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[within_stuff-1]",
295
+ "eval.tests.test_all_fixtures_golden.test_exact_golden_oracle[within_three_dup-1]",
296
+ "eval.tests.test_cli_surface.test_extract_help_documents_base_flag",
297
+ "eval.tests.test_cli_surface.test_help_lists_subcommands",
298
+ "eval.tests.test_cli_surface.test_help_subcommand_matches_help_flag",
299
+ "eval.tests.test_cli_surface.test_missing_subcommand_prints_usage_to_stderr",
300
+ "eval.tests.test_cli_surface.test_unknown_subcommand_is_rejected",
301
+ "eval.tests.test_cli_surface.test_version_reports_name_and_version",
302
+ "eval.tests.test_collection_edges.test_interface_fields_extract_typed_schema",
303
+ "eval.tests.test_collection_edges.test_kind_tagged_class_at_eof_collected",
304
+ "eval.tests.test_collection_edges.test_method_doc_on_local_function",
305
+ "eval.tests.test_collection_edges.test_single_line_class_with_realm_and_table",
306
+ "eval.tests.test_collection_edges.test_single_line_method_collection",
307
+ "eval.tests.test_collection_edges.test_within_overrides_dotted_name_for_classic_scope",
308
+ "eval.tests.test_errors_stderr.test_abort_message_is_singular_for_one_diagnostic",
309
+ "eval.tests.test_errors_stderr.test_class_doc_on_table_assignment_is_literal_table",
310
+ "eval.tests.test_errors_stderr.test_doc_block_without_kind_tag_in_control_flow",
311
+ "eval.tests.test_errors_stderr.test_duplicate_class_names_use_secondary_label",
312
+ "eval.tests.test_errors_stderr.test_function_requires_within_diagnostic",
313
+ "eval.tests.test_errors_stderr.test_lua_syntax_error_produces_fullmoon_on_stderr",
314
+ "eval.tests.test_errors_stderr.test_missing_parent_class_diagnostic",
315
+ "eval.tests.test_errors_stderr.test_multi_file_project_aggregates_both_error_families",
316
+ "eval.tests.test_errors_stderr.test_multiline_needs_newline_after_open_bracket",
317
+ "eval.tests.test_errors_stderr.test_multiple_errors_collected_in_one_file",
318
+ "eval.tests.test_errors_stderr.test_param_not_in_function_diagnostic",
319
+ "eval.tests.test_errors_stderr.test_trailing_eof_comment_requires_kind_tag",
320
+ "eval.tests.test_errors_stderr.test_unknown_tag_diagnostic",
321
+ "eval.tests.test_paths_files.test_base_path_controls_output_relative_paths",
322
+ "eval.tests.test_paths_files.test_empty_directory_yields_empty_document",
323
+ "eval.tests.test_paths_files.test_line_numbers_are_source_line_of_collected_doc",
324
+ "eval.tests.test_paths_files.test_luau_extension_accepted",
325
+ "eval.tests.test_paths_files.test_nested_directory_path_is_relative_to_base",
326
+ "eval.tests.test_paths_files.test_nonexistent_input_path_yields_empty_document",
327
+ "eval.tests.test_paths_files.test_recursive_walk_collects_lua_and_luau",
328
+ "eval.tests.test_source_collection.test_blank_line_flushes_collected_doc",
329
+ "eval.tests.test_source_collection.test_collection_of_docs_attached_to_index_function",
330
+ "eval.tests.test_source_collection.test_comment_between_members_attaches_to_next",
331
+ "eval.tests.test_source_collection.test_consecutive_single_line_tags_form_one_doc",
332
+ "eval.tests.test_source_collection.test_doc_before_return_uses_last_stmt_trivia",
333
+ "eval.tests.test_source_collection.test_doc_inside_do_block",
334
+ "eval.tests.test_source_collection.test_empty_nested_block_comment_is_harmless",
335
+ "eval.tests.test_source_collection.test_generic_and_union_types_are_span_literal",
336
+ "eval.tests.test_source_collection.test_interface_entry_collects_fields",
337
+ "eval.tests.test_source_collection.test_leading_module_drop_then_class",
338
+ "eval.tests.test_source_collection.test_many_class_tags_collect",
339
+ "eval.tests.test_source_collection.test_module_tag_line_is_dropped",
340
+ "eval.tests.test_source_collection.test_multiline_comment_collects_static_and_method_entries",
341
+ "eval.tests.test_source_collection.test_multiple_returns_and_self_param",
342
+ "eval.tests.test_source_collection.test_pure_dash_lines_are_skipped",
343
+ "eval.tests.test_source_collection.test_rich_tags_collect_params_returns_props_types",
344
+ "eval.tests.test_source_collection.test_single_block_multiline_comment_collects_class",
345
+ "eval.tests.test_source_collection.test_single_line_class_doc_with_backing_table",
346
+ "eval.tests.test_source_collection.test_single_line_doc_attached_to_index_method",
347
+ "eval.tests.test_tag_edges.test_external_tag_serializes_external_types",
348
+ "eval.tests.test_tag_edges.test_external_without_url_is_a_diagnostic",
349
+ "eval.tests.test_tag_edges.test_optional_and_nullable_param_types_preserved",
350
+ "eval.tests.test_tag_edges.test_return_without_type_is_a_diagnostic",
351
+ "eval.tests.test_tag_parse_errors.test_error_tag_requires_a_type",
352
+ "eval.tests.test_tag_parse_errors.test_field_requires_a_name",
353
+ "eval.tests.test_tag_parse_errors.test_field_requires_a_type",
354
+ "eval.tests.test_tag_parse_errors.test_param_requires_a_name",
355
+ "eval.tests.test_tag_parse_errors.test_prop_requires_a_type",
356
+ "eval.tests.test_tag_parse_errors.test_type_requires_a_type_lexeme",
357
+ "eval.tests.test_tag_parse_errors.test_value_tag_requires_following_text",
358
+ "eval.tests.test_tag_parse_errors.test_within_with_trailing_garbage_is_rejected",
359
+ "eval.tests.test_tag_validations.test_class_level_deprecated_and_since_valid",
360
+ "eval.tests.test_tag_validations.test_class_tag_with_param_mutually_exclusive",
361
+ "eval.tests.test_tag_validations.test_class_tag_with_return_mutually_exclusive",
362
+ "eval.tests.test_tag_validations.test_class_tag_within_tag_mutually_exclusive",
363
+ "eval.tests.test_tag_validations.test_deprecated_with_unreleased_mutually_exclusive",
364
+ "eval.tests.test_tag_validations.test_duplicate_within_in_single_entry",
365
+ "eval.tests.test_tag_validations.test_duplicate_within_three_times_two_secondary_labels",
366
+ "eval.tests.test_tag_validations.test_function_tag_readonly_tag_mutually_exclusive",
367
+ "eval.tests.test_tag_validations.test_generic_and_optional_parameter_types_preserved",
368
+ "eval.tests.test_tag_validations.test_index_tag_on_property_mutually_exclusive",
369
+ "eval.tests.test_tag_validations.test_interface_type_references_collect_as_types",
370
+ "eval.tests.test_tag_validations.test_method_tag_produces_method_function_type",
371
+ "eval.tests.test_tag_validations.test_multiple_mutually_exclusive_errors_aggregate_plural",
372
+ "eval.tests.test_tag_validations.test_property_tag_with_error_mutually_exclusive",
373
+ "eval.tests.test_tag_validations.test_property_with_lifecycle_and_server_realm",
374
+ "eval.tests.test_tag_validations.test_repeatable_custom_tags_and_multiple_errors_valid",
375
+ "eval.tests.test_tag_validations.test_within_tag_scopes_static_function_into_class"
376
+ ]
377
+ },
378
+ "generated_module_03": {
379
+ "ignore_reason": "",
380
+ "ignored": false,
381
+ "ignored_tests": [
382
+ {
383
+ "name": "eval.tests.test_doc_entry_coverage5.test_global_assignment_function_without_within_is_error",
384
+ "reasons": [
385
+ {
386
+ "id": "golden_no_equality",
387
+ "message": "pytest test references golden data without equality comparison",
388
+ "path": "eval/tests/test_doc_entry_coverage5.py",
389
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
390
+ "severity": "error",
391
+ "stage": "static_lint"
392
+ }
393
+ ]
394
+ }
395
+ ],
396
+ "tests": [
397
+ "eval.tests.test_basepath.test_base_flags_equivalent[--base]",
398
+ "eval.tests.test_basepath.test_base_flags_equivalent[-b]",
399
+ "eval.tests.test_basepath.test_base_path_deeper_then_input",
400
+ "eval.tests.test_basepath.test_base_path_produces_relative_from_ancestor",
401
+ "eval.tests.test_basepath.test_base_path_reduces_to_relative",
402
+ "eval.tests.test_basepath.test_base_path_trims_one_ancestor_component",
403
+ "eval.tests.test_basepath.test_extract_help_documents_base",
404
+ "eval.tests.test_class.test_class_custom_index_alias",
405
+ "eval.tests.test_class.test_class_custom_tag_absent_when_empty",
406
+ "eval.tests.test_class.test_class_custom_tag_list",
407
+ "eval.tests.test_class.test_class_default_index_is___index",
408
+ "eval.tests.test_class.test_class_deprecated_no_desc",
409
+ "eval.tests.test_class.test_class_deprecated_with_version_and_desc",
410
+ "eval.tests.test_class.test_class_desc_ignores_trailing_blank_lines",
411
+ "eval.tests.test_class.test_class_description_serialized",
412
+ "eval.tests.test_class.test_class_empty_desc_present",
413
+ "eval.tests.test_class.test_class_empty_members_are_present_arrays",
414
+ "eval.tests.test_class.test_class_external_types_present",
415
+ "eval.tests.test_class.test_class_full_golden_exact",
416
+ "eval.tests.test_class.test_class_ignore_flag",
417
+ "eval.tests.test_class.test_class_name_serialized",
418
+ "eval.tests.test_class.test_class_not_private_by_default",
419
+ "eval.tests.test_class.test_class_param_mutually_exclusive",
420
+ "eval.tests.test_class.test_class_private_flag",
421
+ "eval.tests.test_class.test_class_qualified_class_definition_sets_name",
422
+ "eval.tests.test_class.test_class_realm_ordering_server_plugin",
423
+ "eval.tests.test_class.test_class_realm_serialization_all_three",
424
+ "eval.tests.test_class.test_class_since",
425
+ "eval.tests.test_class.test_class_single_realm[@client-Client]",
426
+ "eval.tests.test_class.test_class_single_realm[@plugin-Plugin]",
427
+ "eval.tests.test_class.test_class_single_realm[@server-Server]",
428
+ "eval.tests.test_class.test_class_source_has_line_and_path",
429
+ "eval.tests.test_class.test_class_source_line_tracks_block_position",
430
+ "eval.tests.test_class.test_class_unreleased_flag",
431
+ "eval.tests.test_class.test_class_with_function_member_base_case",
432
+ "eval.tests.test_class.test_classes_sorted_by_name",
433
+ "eval.tests.test_class.test_missing_parent_class_is_diagnostic",
434
+ "eval.tests.test_class.test_triple_dash_class_syntax",
435
+ "eval.tests.test_class.test_unused_tag_in_class_is_error",
436
+ "eval.tests.test_cli.test_executable_is_runnable",
437
+ "eval.tests.test_cli.test_extract_help_documents_base_flag",
438
+ "eval.tests.test_cli.test_extract_help_documents_input_positional",
439
+ "eval.tests.test_cli.test_extract_help_short_and_long_equivalent",
440
+ "eval.tests.test_cli.test_extract_subcommand_help_matches_golden",
441
+ "eval.tests.test_cli.test_extract_unknown_flag_is_usage_error",
442
+ "eval.tests.test_cli.test_help_short_flag_equals_long_help",
443
+ "eval.tests.test_cli.test_help_subcommand_exists",
444
+ "eval.tests.test_cli.test_no_subcommand_is_usage_error",
445
+ "eval.tests.test_cli.test_output_is_pretty_json_multiline",
446
+ "eval.tests.test_cli.test_summary_stdout_is_json_array_empty_for_empty_input",
447
+ "eval.tests.test_cli.test_top_level_help_matches_version_first_line",
448
+ "eval.tests.test_cli.test_top_level_help_stdout_matches_golden",
449
+ "eval.tests.test_cli.test_unknown_flag_is_usage_error",
450
+ "eval.tests.test_cli.test_unknown_subcommand_is_usage_error",
451
+ "eval.tests.test_cli.test_version_flag_on_extract",
452
+ "eval.tests.test_cli.test_version_output_matches_golden",
453
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_assign_multi_var-assignmvar]",
454
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_assign_notfunc-assignnotfunc]",
455
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_class_unused-classunused]",
456
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_dup_within-dupwithin]",
457
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_missing_parent-missingparent]",
458
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_mixed_indent-mixedindent]",
459
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_param_notexist-paramnotexist]",
460
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_param_notype-paramnotype]",
461
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_prop_no_type-propnotype]",
462
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_prop_unused-propunused]",
463
+ "eval.tests.test_diagnostics_golden.test_diagnostic_golden[err_unknown_tag-unknowntag]",
464
+ "eval.tests.test_diagnostics_golden.test_missing_within_function_diagnostic",
465
+ "eval.tests.test_diagnostics_golden.test_nodefault_multiple_variable_assignment_diagnostic",
466
+ "eval.tests.test_doc_entry_boundary.test_colon_method_without_within_uses_declared_receiver",
467
+ "eval.tests.test_doc_entry_boundary.test_dotted_declaration_without_within_joins_prefix",
468
+ "eval.tests.test_doc_entry_boundary.test_function_qualified_name_double_qualified_within_wins",
469
+ "eval.tests.test_doc_entry_boundary.test_function_qualified_name_missing_parent_is_error",
470
+ "eval.tests.test_doc_entry_boundary.test_function_qualified_name_splits_within",
471
+ "eval.tests.test_doc_entry_boundary.test_global_assignment_bracket_nonstring_name_is_error",
472
+ "eval.tests.test_doc_entry_boundary.test_global_assignment_bracket_string_name",
473
+ "eval.tests.test_doc_entry_boundary.test_global_assignment_multiple_expressions_is_error",
474
+ "eval.tests.test_doc_entry_boundary.test_global_assignment_multiple_variables_is_error",
475
+ "eval.tests.test_doc_entry_boundary.test_global_assignment_nonfunction_expression_is_error",
476
+ "eval.tests.test_doc_entry_boundary.test_local_assignment_empty_expression_sequence_is_error",
477
+ "eval.tests.test_doc_entry_boundary.test_local_assignment_function_within_parses",
478
+ "eval.tests.test_doc_entry_boundary.test_local_assignment_function_without_within_is_error",
479
+ "eval.tests.test_doc_entry_boundary.test_local_assignment_multiple_variables_is_error",
480
+ "eval.tests.test_doc_entry_boundary.test_local_assignment_non_function_expression_is_error",
481
+ "eval.tests.test_doc_entry_boundary.test_local_function_within_routes_to_class",
482
+ "eval.tests.test_doc_entry_boundary.test_local_function_without_within_is_error",
483
+ "eval.tests.test_doc_entry_boundary.test_plain_declaration_without_within_and_no_prefix_is_error",
484
+ "eval.tests.test_doc_entry_boundary.test_prop_qualified_name_splits_within",
485
+ "eval.tests.test_doc_entry_boundary.test_triple_dash_first_line_without_text_is_error",
486
+ "eval.tests.test_doc_entry_boundary.test_triple_dash_then_text_first_line_is_desc",
487
+ "eval.tests.test_doc_entry_boundary.test_type_qualified_name_splits_within",
488
+ "eval.tests.test_doc_entry_coverage5.test_block_desc_internal_blanks_preserved_trailing_trimmed",
489
+ "eval.tests.test_doc_entry_coverage5.test_block_desc_trailing_blank_trimmed",
490
+ "eval.tests.test_doc_entry_coverage5.test_block_empty_first_line_with_desc_parses",
491
+ "eval.tests.test_doc_entry_coverage5.test_class_with_many_members_source_order",
492
+ "eval.tests.test_doc_entry_coverage5.test_global_assignment_bare_name_var",
493
+ "eval.tests.test_doc_entry_coverage5.test_global_assignment_bare_name_within_parses",
494
+ "eval.tests.test_doc_entry_coverage5.test_global_assignment_bracket_string_multi_suffix",
495
+ "eval.tests.test_doc_entry_coverage5.test_global_assignment_function_with_explicit_kind_without_within_ok",
496
+ "eval.tests.test_doc_entry_coverage5.test_global_assignment_function_without_within_is_error",
497
+ "eval.tests.test_doc_entry_coverage5.test_qualified_name_empty_part_without_within_is_error[@function helper.-function anything() end\\n-g_qual_within_trailing]",
498
+ "eval.tests.test_doc_entry_coverage5.test_qualified_name_empty_part_without_within_is_error[@prop .count number--g_qual_within_leading]",
499
+ "eval.tests.test_doc_entry_coverage5.test_qualified_name_empty_part_without_within_is_error[@type .Shape table--g_qual_within_type_leading]",
500
+ "eval.tests.test_doc_entry_parse.test_assignment_expression_must_be_function",
501
+ "eval.tests.test_doc_entry_parse.test_blank_line_after_open_block_accepted",
502
+ "eval.tests.test_doc_entry_parse.test_block_comment_requires_blank_line_after_open",
503
+ "eval.tests.test_doc_entry_parse.test_desc_line_after_explicit_kind",
504
+ "eval.tests.test_doc_entry_parse.test_double_bracket_comment_not_parseable",
505
+ "eval.tests.test_doc_entry_parse.test_empty_comment_yields_no_entries",
506
+ "eval.tests.test_doc_entry_parse.test_explicit_kind_overrides_statement",
507
+ "eval.tests.test_doc_entry_parse.test_kind_detection_global_assignment_dot",
508
+ "eval.tests.test_doc_entry_parse.test_kind_detection_global_assignment_indexed",
509
+ "eval.tests.test_doc_entry_parse.test_kind_detection_local_assignment",
510
+ "eval.tests.test_doc_entry_parse.test_kind_detection_local_function",
511
+ "eval.tests.test_doc_entry_parse.test_mixed_indentation_rejected",
512
+ "eval.tests.test_doc_entry_parse.test_module_line_dropped",
513
+ "eval.tests.test_doc_entry_parse.test_non_function_assignment_with_explicit_kind",
514
+ "eval.tests.test_doc_entry_parse.test_tab_indented_block_accepted",
515
+ "eval.tests.test_function.test_body_no_return_annotation_empty",
516
+ "eval.tests.test_function.test_body_param_desc_override",
517
+ "eval.tests.test_function.test_body_param_types_inferred",
518
+ "eval.tests.test_function.test_body_param_with_body_type_and_tag_desc_merged",
519
+ "eval.tests.test_function.test_body_single_return_type_inferred",
520
+ "eval.tests.test_function.test_body_tuple_return_types_split",
521
+ "eval.tests.test_function.test_explicit_function_type_via_tag[@function-static]",
522
+ "eval.tests.test_function.test_explicit_function_type_via_tag[@method-method]",
523
+ "eval.tests.test_function.test_function_custom_tags",
524
+ "eval.tests.test_function.test_function_deprecated",
525
+ "eval.tests.test_function.test_function_errors_focus",
526
+ "eval.tests.test_function.test_function_external_types",
527
+ "eval.tests.test_function.test_function_ignore_flag",
528
+ "eval.tests.test_function.test_function_missing_within_error",
529
+ "eval.tests.test_function.test_function_multiple_errors",
530
+ "eval.tests.test_function.test_function_name_from_colon_declaration",
531
+ "eval.tests.test_function.test_function_name_from_dotted_declaration",
532
+ "eval.tests.test_function.test_function_omit_yields_when_false",
533
+ "eval.tests.test_function.test_function_param_does_not_exist_error",
534
+ "eval.tests.test_function.test_function_param_no_type_error",
535
+ "eval.tests.test_function.test_function_private_flag",
536
+ "eval.tests.test_function.test_function_realm_all_three_sorted",
537
+ "eval.tests.test_function.test_function_requires_within_for_named_statement",
538
+ "eval.tests.test_function.test_function_since",
539
+ "eval.tests.test_function.test_function_source_object",
540
+ "eval.tests.test_function.test_function_unreleased_flag",
541
+ "eval.tests.test_function.test_function_unused_tag_error",
542
+ "eval.tests.test_function.test_function_yields_flag",
543
+ "eval.tests.test_function.test_method_type_from_colon_declaration",
544
+ "eval.tests.test_function.test_multiple_params_preserve_order",
545
+ "eval.tests.test_function.test_param_question_suffix_renamed",
546
+ "eval.tests.test_function.test_param_with_optional_marker_type",
547
+ "eval.tests.test_function.test_params_default_empty",
548
+ "eval.tests.test_function.test_params_from_tags_and_returns",
549
+ "eval.tests.test_function.test_returns_default_empty",
550
+ "eval.tests.test_function.test_static_type_from_dot_declaration",
551
+ "eval.tests.test_function.test_static_type_from_global_assignment",
552
+ "eval.tests.test_function.test_static_type_from_local_assignment",
553
+ "eval.tests.test_function.test_static_type_from_local_function",
554
+ "eval.tests.test_golden_outputs.test_golden_stdout_exact[class_full]",
555
+ "eval.tests.test_golden_outputs.test_golden_stdout_exact[explicit_function]",
556
+ "eval.tests.test_golden_outputs.test_golden_stdout_exact[method_declaration]",
557
+ "eval.tests.test_golden_outputs.test_golden_stdout_exact[multi_class]",
558
+ "eval.tests.test_golden_outputs.test_golden_stdout_exact[props]",
559
+ "eval.tests.test_golden_outputs.test_golden_stdout_exact[qualified]",
560
+ "eval.tests.test_golden_outputs.test_golden_stdout_exact[types]",
561
+ "eval.tests.test_property.test_prop_boolean_flags[@ignore-ignore]",
562
+ "eval.tests.test_property.test_prop_boolean_flags[@private-private]",
563
+ "eval.tests.test_property.test_prop_boolean_flags[@unreleased-unreleased]",
564
+ "eval.tests.test_property.test_prop_custom_tags",
565
+ "eval.tests.test_property.test_prop_deprecated",
566
+ "eval.tests.test_property.test_prop_desc_field_absent_or_empty",
567
+ "eval.tests.test_property.test_prop_external_types",
568
+ "eval.tests.test_property.test_prop_human_desc_line_collected",
569
+ "eval.tests.test_property.test_prop_multiple_members_preserve_order",
570
+ "eval.tests.test_property.test_prop_name_and_type",
571
+ "eval.tests.test_property.test_prop_not_readonly_by_default",
572
+ "eval.tests.test_property.test_prop_qualified_name_within",
573
+ "eval.tests.test_property.test_prop_readonly_flag",
574
+ "eval.tests.test_property.test_prop_realm",
575
+ "eval.tests.test_property.test_prop_since",
576
+ "eval.tests.test_property.test_prop_source_object",
577
+ "eval.tests.test_property.test_prop_trailing_comment_kept_in_type",
578
+ "eval.tests.test_property.test_prop_unused_tag_error",
579
+ "eval.tests.test_realm_serde.test_false_booleans_omitted_by_default[True-ignore-@ignore]",
580
+ "eval.tests.test_realm_serde.test_false_booleans_omitted_by_default[True-private-@private]",
581
+ "eval.tests.test_realm_serde.test_false_booleans_omitted_by_default[True-unreleased-@unreleased]",
582
+ "eval.tests.test_realm_serde.test_private_true_serialized",
583
+ "eval.tests.test_realm_serde.test_realm_empty_is_omitted",
584
+ "eval.tests.test_realm_serde.test_realm_key_absent_on_method",
585
+ "eval.tests.test_realm_serde.test_realm_ordering_is_stable_client_server_plugin",
586
+ "eval.tests.test_realm_serde.test_realm_serialization_matches_golden_class_full",
587
+ "eval.tests.test_realm_serde.test_realm_single_on_property[Client-@client]",
588
+ "eval.tests.test_realm_serde.test_realm_single_on_property[Plugin-@plugin]",
589
+ "eval.tests.test_realm_serde.test_realm_single_on_property[Server-@server]",
590
+ "eval.tests.test_type.test_field_requires_type",
591
+ "eval.tests.test_type.test_interface_desc_before_fields",
592
+ "eval.tests.test_type.test_interface_dot_field_syntax",
593
+ "eval.tests.test_type.test_interface_lua_type_omitted",
594
+ "eval.tests.test_type.test_interface_maintains_fields_order_and_empty_desc",
595
+ "eval.tests.test_type.test_interface_maps_to_type_kind",
596
+ "eval.tests.test_type.test_multiple_types_same_class_ordered",
597
+ "eval.tests.test_type.test_type_boolean_flags[@ignore-ignore]",
598
+ "eval.tests.test_type.test_type_boolean_flags[@private-private]",
599
+ "eval.tests.test_type.test_type_boolean_flags[@unreleased-unreleased]",
600
+ "eval.tests.test_type.test_type_custom_tags",
601
+ "eval.tests.test_type.test_type_deprecated",
602
+ "eval.tests.test_type.test_type_external_types",
603
+ "eval.tests.test_type.test_type_name_type_and_fields",
604
+ "eval.tests.test_type.test_type_requires_type_after_name",
605
+ "eval.tests.test_type.test_type_since",
606
+ "eval.tests.test_type.test_type_source_object",
607
+ "eval.tests.test_type.test_type_unused_tag_error"
608
+ ]
609
+ },
610
+ "generated_module_04": {
611
+ "ignore_reason": "",
612
+ "ignored": false,
613
+ "ignored_tests": [
614
+ {
615
+ "name": "eval.tests.test_cli.test_extract_help_exits_zero",
616
+ "reasons": [
617
+ {
618
+ "id": "generic_keyword_oracle",
619
+ "message": "pytest test uses a generic keyword oracle",
620
+ "path": "eval/tests/test_cli.py",
621
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
622
+ "severity": "error",
623
+ "stage": "static_lint"
624
+ }
625
+ ]
626
+ },
627
+ {
628
+ "name": "eval.tests.test_tag_data.test_case_sensitive_tag_names",
629
+ "reasons": [
630
+ {
631
+ "id": "short_substring",
632
+ "message": "pytest test uses a too-short substring oracle",
633
+ "path": "eval/tests/test_tag_data.py",
634
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
635
+ "severity": "error",
636
+ "stage": "static_lint"
637
+ }
638
+ ]
639
+ },
640
+ {
641
+ "name": "eval.tests.test_tag_errors.test_error_type_required",
642
+ "reasons": [
643
+ {
644
+ "id": "generic_keyword_oracle",
645
+ "message": "pytest test uses a generic keyword oracle",
646
+ "path": "eval/tests/test_tag_errors.py",
647
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
648
+ "severity": "error",
649
+ "stage": "static_lint"
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "name": "eval.tests.test_tag_exclusion_extra.test_error_with_property_mutually_exclusive",
655
+ "reasons": [
656
+ {
657
+ "id": "no_assertions",
658
+ "message": "pytest test contains no assert statements",
659
+ "path": "eval/tests/test_tag_exclusion_extra.py",
660
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
661
+ "severity": "error",
662
+ "stage": "static_lint"
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ "name": "eval.tests.test_tag_exclusion_extra.test_index_with_function_mutually_exclusive",
668
+ "reasons": [
669
+ {
670
+ "id": "no_assertions",
671
+ "message": "pytest test contains no assert statements",
672
+ "path": "eval/tests/test_tag_exclusion_extra.py",
673
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
674
+ "severity": "error",
675
+ "stage": "static_lint"
676
+ }
677
+ ]
678
+ },
679
+ {
680
+ "name": "eval.tests.test_tag_exclusion_extra.test_index_with_type_mutually_exclusive",
681
+ "reasons": [
682
+ {
683
+ "id": "no_assertions",
684
+ "message": "pytest test contains no assert statements",
685
+ "path": "eval/tests/test_tag_exclusion_extra.py",
686
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
687
+ "severity": "error",
688
+ "stage": "static_lint"
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "name": "eval.tests.test_tag_exclusion_extra.test_param_with_class_mutually_exclusive",
694
+ "reasons": [
695
+ {
696
+ "id": "no_assertions",
697
+ "message": "pytest test contains no assert statements",
698
+ "path": "eval/tests/test_tag_exclusion_extra.py",
699
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
700
+ "severity": "error",
701
+ "stage": "static_lint"
702
+ }
703
+ ]
704
+ },
705
+ {
706
+ "name": "eval.tests.test_tag_exclusion_extra.test_param_with_type_mutually_exclusive",
707
+ "reasons": [
708
+ {
709
+ "id": "no_assertions",
710
+ "message": "pytest test contains no assert statements",
711
+ "path": "eval/tests/test_tag_exclusion_extra.py",
712
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
713
+ "severity": "error",
714
+ "stage": "static_lint"
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ "name": "eval.tests.test_tag_exclusion_extra.test_return_with_property_mutually_exclusive",
720
+ "reasons": [
721
+ {
722
+ "id": "no_assertions",
723
+ "message": "pytest test contains no assert statements",
724
+ "path": "eval/tests/test_tag_exclusion_extra.py",
725
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
726
+ "severity": "error",
727
+ "stage": "static_lint"
728
+ }
729
+ ]
730
+ },
731
+ {
732
+ "name": "eval.tests.test_tag_exclusion_extra.test_return_with_type_mutually_exclusive",
733
+ "reasons": [
734
+ {
735
+ "id": "no_assertions",
736
+ "message": "pytest test contains no assert statements",
737
+ "path": "eval/tests/test_tag_exclusion_extra.py",
738
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
739
+ "severity": "error",
740
+ "stage": "static_lint"
741
+ }
742
+ ]
743
+ },
744
+ {
745
+ "name": "eval.tests.test_tag_exclusion_extra.test_yields_with_class_mutually_exclusive",
746
+ "reasons": [
747
+ {
748
+ "id": "no_assertions",
749
+ "message": "pytest test contains no assert statements",
750
+ "path": "eval/tests/test_tag_exclusion_extra.py",
751
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
752
+ "severity": "error",
753
+ "stage": "static_lint"
754
+ }
755
+ ]
756
+ }
757
+ ],
758
+ "tests": [
759
+ "eval.tests.test_cli.test_empty_directory_returns_empty_array",
760
+ "eval.tests.test_cli.test_exact_golden_full_output",
761
+ "eval.tests.test_cli.test_extract_help_exits_zero",
762
+ "eval.tests.test_cli.test_non_lua_files_ignored",
763
+ "eval.tests.test_cli.test_nonexistent_path_yields_empty_array",
764
+ "eval.tests.test_cli.test_recursive_discovery_and_base_path",
765
+ "eval.tests.test_tag_data.test_case_sensitive_tag_names",
766
+ "eval.tests.test_tag_data.test_deprecated_no_version",
767
+ "eval.tests.test_tag_data.test_field_leading_dot_and_desc",
768
+ "eval.tests.test_tag_data.test_field_no_desc",
769
+ "eval.tests.test_tag_data.test_param_no_type_flagged",
770
+ "eval.tests.test_tag_data.test_param_value_split[\\t@param spaced string -- trimmed \\n-trimmed-spaced-string]",
771
+ "eval.tests.test_tag_data.test_param_value_split[\\t@param fn (a: number) => string -- fn\\n-fn-fn-(a: number) => string]",
772
+ "eval.tests.test_tag_data.test_param_value_split[\\t@param lone number\\n--lone-number]",
773
+ "eval.tests.test_tag_data.test_param_value_split[\\t@param x string -- a description\\n-a description-x-string]",
774
+ "eval.tests.test_tag_data.test_prop_value_split[\\t@prop callback (string) => nil\\n-type_names2]",
775
+ "eval.tests.test_tag_data.test_prop_value_split[\\t@prop hp number\\n-type_names0]",
776
+ "eval.tests.test_tag_data.test_prop_value_split[\\t@prop maxHp number | nil\\n-type_names1]",
777
+ "eval.tests.test_tag_data.test_return_value_split[\\t@return string -- trimmed \\n-trimmed-string]",
778
+ "eval.tests.test_tag_data.test_return_value_split[\\t@return (x: string) => number -- fn\\n-fn-(x: string) => number]",
779
+ "eval.tests.test_tag_data.test_return_value_split[\\t@return boolean\\n--boolean]",
780
+ "eval.tests.test_tag_data.test_return_value_split[\\t@return number -- the count\\n-the count-number]",
781
+ "eval.tests.test_tag_data.test_tag_text_extra_whitespace_trimmed",
782
+ "eval.tests.test_tag_data.test_type_with_union_preserved",
783
+ "eval.tests.test_tag_edgecases.test_deprecated_version_round_trips[\\t@deprecated -- old stuff\\n-expected2]",
784
+ "eval.tests.test_tag_edgecases.test_deprecated_version_round_trips[\\t@deprecated 2.0.0 -- superceded\\n-expected0]",
785
+ "eval.tests.test_tag_edgecases.test_deprecated_version_round_trips[\\t@deprecated 9.9.9\\n-expected1]",
786
+ "eval.tests.test_tag_edgecases.test_external_missing_url_exact_error",
787
+ "eval.tests.test_tag_edgecases.test_external_name_url_split[\\t@external Http https://httpbin.org/anything\\n-Http-https://httpbin.org/anything]",
788
+ "eval.tests.test_tag_edgecases.test_external_name_url_split[\\t@external Promise https://eryn.io/promise\\n-Promise-https://eryn.io/promise]",
789
+ "eval.tests.test_tag_edgecases.test_external_name_url_split[\\t@external Raw /docs/api.md\\n-Raw-/docs/api.md]",
790
+ "eval.tests.test_tag_edgecases.test_function_type_static_method[\\t@function work\\n-static]",
791
+ "eval.tests.test_tag_edgecases.test_function_type_static_method[\\t@method proc\\n-method]",
792
+ "eval.tests.test_tag_edgecases.test_interface_field_compound_types[\\t.comp string | nil -- optional\\n-comp-string | nil-optional]",
793
+ "eval.tests.test_tag_edgecases.test_interface_field_compound_types[\\t.flag boolean\\n-flag-boolean-]",
794
+ "eval.tests.test_tag_edgecases.test_interface_field_compound_types[\\t.onReady (string, number) => nil -- fires\\n-onReady-(string, number) => nil-fires]",
795
+ "eval.tests.test_tag_edgecases.test_interface_field_compound_types[\\t.payload { a: string } -- body\\n-payload-{ a: string }-body]",
796
+ "eval.tests.test_tag_edgecases.test_interface_golden_exact_output",
797
+ "eval.tests.test_tag_edgecases.test_multiple_yields_tag_rejected",
798
+ "eval.tests.test_tag_edgecases.test_param_desc_with_inner_dashes[\\t@param y table -- spaced\\n-y-table-spaced]",
799
+ "eval.tests.test_tag_edgecases.test_param_desc_with_inner_dashes[\\t@param cb (a: number) => string -- returns -- but documented\\n-cb-(a: number) => string-returns -- but documented]",
800
+ "eval.tests.test_tag_edgecases.test_param_desc_with_inner_dashes[\\t@param lone number \\n-lone-number-]",
801
+ "eval.tests.test_tag_edgecases.test_param_desc_with_inner_dashes[\\t@param x string -- first -- second\\n-x-string-first -- second]",
802
+ "eval.tests.test_tag_edgecases.test_param_empty_name_error[\\t@param \\n-]",
803
+ "eval.tests.test_tag_edgecases.test_param_empty_name_error[\\t@param -- only a description\\n-only a description]",
804
+ "eval.tests.test_tag_edgecases.test_readonly_on_property_accepted",
805
+ "eval.tests.test_tag_edgecases.test_realm_markers_on_property_entry",
806
+ "eval.tests.test_tag_edgecases.test_return_union_and_arrow_types[\\t@return (a: string, b: number) => nil\\n-(a: string, b: number) => nil-]",
807
+ "eval.tests.test_tag_edgecases.test_return_union_and_arrow_types[\\t@return mynumber\\n-mynumber-]",
808
+ "eval.tests.test_tag_edgecases.test_return_union_and_arrow_types[\\t@return nil | (string) => number -- callback\\n-nil | (string) => number-callback]",
809
+ "eval.tests.test_tag_edgecases.test_return_union_and_arrow_types[\\t@return { x: number } -- shape\\n-{ x: number }-shape]",
810
+ "eval.tests.test_tag_edgecases.test_since_version_round_trip[1.0.0-alpha.1]",
811
+ "eval.tests.test_tag_edgecases.test_since_version_round_trip[3.4.5]",
812
+ "eval.tests.test_tag_edgecases.test_since_version_round_trip[next-release]",
813
+ "eval.tests.test_tag_edgecases.test_since_version_round_trip[v0.1.2]",
814
+ "eval.tests.test_tag_edgecases.test_type_compound_kept_verbatim[\\t@type Cb (string) => nil | nil\\n-(string) => nil | nil]",
815
+ "eval.tests.test_tag_edgecases.test_type_compound_kept_verbatim[\\t@type Opt { x: number, y: string }\\n-{ x: number, y: string }]",
816
+ "eval.tests.test_tag_edgecases.test_type_compound_kept_verbatim[\\t@type S string | number\\n-string | number]",
817
+ "eval.tests.test_tag_edgecases.test_within_multi_word_class_routing",
818
+ "eval.tests.test_tag_edgecases.test_yields_on_property_mutually_exclusive",
819
+ "eval.tests.test_tag_entries.test_class_tag_produces_top_level_entry",
820
+ "eval.tests.test_tag_entries.test_field_tag_with_desc",
821
+ "eval.tests.test_tag_entries.test_function_tag_multiple_word_name_preserved",
822
+ "eval.tests.test_tag_entries.test_function_tag_static_function_type",
823
+ "eval.tests.test_tag_entries.test_index_tag_routes_index_alias_method",
824
+ "eval.tests.test_tag_entries.test_interface_field_leading_dot",
825
+ "eval.tests.test_tag_entries.test_interface_tag_emits_type_entry_with_fields",
826
+ "eval.tests.test_tag_entries.test_method_tag_function_type_method",
827
+ "eval.tests.test_tag_entries.test_prop_tag_name_and_type",
828
+ "eval.tests.test_tag_entries.test_prop_tag_optional_type",
829
+ "eval.tests.test_tag_entries.test_two_classes_both_emitted_in_sorted_order",
830
+ "eval.tests.test_tag_entries.test_type_tag_emits_type_entry",
831
+ "eval.tests.test_tag_entry_extra.test_class_full_tag_payload",
832
+ "eval.tests.test_tag_entry_extra.test_custom_tag_multiword_value[\\t@tag a b c \\n-a b c]",
833
+ "eval.tests.test_tag_entry_extra.test_custom_tag_multiword_value[\\t@tag lua51\\n-lua51]",
834
+ "eval.tests.test_tag_entry_extra.test_custom_tag_multiword_value[\\t@tag my custom value\\n-my custom value]",
835
+ "eval.tests.test_tag_entry_extra.test_custom_tag_repeated_collected",
836
+ "eval.tests.test_tag_entry_extra.test_duplicate_function_blocks_produce_separate_entries",
837
+ "eval.tests.test_tag_entry_extra.test_error_without_desc[\\t@error \"boom\"\\n-\"boom\"]",
838
+ "eval.tests.test_tag_entry_extra.test_error_without_desc[\\t@error number\\n-number]",
839
+ "eval.tests.test_tag_entry_extra.test_prop_inline_desc_kept_in_type[\\t@prop cb (a) => b -- callback\\n-(a) => b -- callback]",
840
+ "eval.tests.test_tag_entry_extra.test_prop_inline_desc_kept_in_type[\\t@prop hp number -- hitpoints\\n-number -- hitpoints]",
841
+ "eval.tests.test_tag_entry_extra.test_prop_inline_desc_kept_in_type[\\t@prop raw string--inline\\n-string--inline]",
842
+ "eval.tests.test_tag_entry_extra.test_status_tags_on_type_entry",
843
+ "eval.tests.test_tag_errors.test_error_type_required",
844
+ "eval.tests.test_tag_errors.test_external_url_required",
845
+ "eval.tests.test_tag_errors.test_field_empty_name_via_dot",
846
+ "eval.tests.test_tag_errors.test_field_type_required",
847
+ "eval.tests.test_tag_errors.test_param_empty_name",
848
+ "eval.tests.test_tag_errors.test_property_type_required",
849
+ "eval.tests.test_tag_errors.test_return_type_required",
850
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@__index-This tag requires text following it]",
851
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@class-This tag requires text following it]",
852
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@deprecated-This tag requires text following it]",
853
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@error-This tag requires text following it]",
854
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@external-This tag requires text following it]",
855
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@field-This tag requires text following it]",
856
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@function-This tag requires text following it]",
857
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@interface-This tag requires text following it]",
858
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@method-This tag requires text following it]",
859
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@param-This tag requires text following it]",
860
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@prop-This tag requires text following it]",
861
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@return-This tag requires text following it]",
862
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@since-This tag requires text following it]",
863
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@tag-This tag requires text following it]",
864
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@type-This tag requires text following it]",
865
+ "eval.tests.test_tag_errors.test_tag_requiring_text_without_text[\\t@within-This tag requires text following it]",
866
+ "eval.tests.test_tag_errors.test_unknown_tag[\\t@bogus x y-Unknown tag]",
867
+ "eval.tests.test_tag_errors.test_unknown_tag[\\t@huh-Unknown tag]",
868
+ "eval.tests.test_tag_errors.test_unknown_tag[\\t@what asdf-Unknown tag]",
869
+ "eval.tests.test_tag_exclusion_extra.test_error_with_property_mutually_exclusive",
870
+ "eval.tests.test_tag_exclusion_extra.test_index_with_function_mutually_exclusive",
871
+ "eval.tests.test_tag_exclusion_extra.test_index_with_type_mutually_exclusive",
872
+ "eval.tests.test_tag_exclusion_extra.test_param_with_class_mutually_exclusive",
873
+ "eval.tests.test_tag_exclusion_extra.test_param_with_type_mutually_exclusive",
874
+ "eval.tests.test_tag_exclusion_extra.test_return_with_property_mutually_exclusive",
875
+ "eval.tests.test_tag_exclusion_extra.test_return_with_type_mutually_exclusive",
876
+ "eval.tests.test_tag_exclusion_extra.test_yields_with_class_mutually_exclusive",
877
+ "eval.tests.test_tag_markers.test_custom_tag_repeated",
878
+ "eval.tests.test_tag_markers.test_custom_tags_on_property",
879
+ "eval.tests.test_tag_markers.test_deprecated_and_since_on_property",
880
+ "eval.tests.test_tag_markers.test_deprecated_with_version_and_desc",
881
+ "eval.tests.test_tag_markers.test_deprecated_without_desc_gives_null_desc",
882
+ "eval.tests.test_tag_markers.test_error_tag_on_function",
883
+ "eval.tests.test_tag_markers.test_external_tag_emits_external_types",
884
+ "eval.tests.test_tag_markers.test_ignore_marker_accepted",
885
+ "eval.tests.test_tag_markers.test_ignore_tag_on_type",
886
+ "eval.tests.test_tag_markers.test_index_tag_within_class",
887
+ "eval.tests.test_tag_markers.test_plugin_marker_enters_realm",
888
+ "eval.tests.test_tag_markers.test_private_and_ignore_do_not_enter_realm",
889
+ "eval.tests.test_tag_markers.test_private_tag_on_property",
890
+ "eval.tests.test_tag_markers.test_readonly_marker_on_property",
891
+ "eval.tests.test_tag_markers.test_realm_sorted_regardless_of_tag_order",
892
+ "eval.tests.test_tag_markers.test_server_and_client_realm",
893
+ "eval.tests.test_tag_markers.test_server_client_on_property_realm",
894
+ "eval.tests.test_tag_markers.test_since_on_type_entry",
895
+ "eval.tests.test_tag_markers.test_since_tag_version",
896
+ "eval.tests.test_tag_markers.test_unreleased_marker",
897
+ "eval.tests.test_tag_markers.test_unreleased_on_type_entry",
898
+ "eval.tests.test_tag_markers.test_yields_marker",
899
+ "eval.tests.test_tag_parse_extra.test_class_empty_name_succeeds",
900
+ "eval.tests.test_tag_parse_extra.test_custom_tag_keeps_dash_text",
901
+ "eval.tests.test_tag_parse_extra.test_deprecated_multiword_version",
902
+ "eval.tests.test_tag_parse_extra.test_since_keeps_dash_text",
903
+ "eval.tests.test_tag_parse_extra.test_since_leading_trailing_whitespace_trimmed",
904
+ "eval.tests.test_tag_parse_extra.test_type_tag_missing_type_errors",
905
+ "eval.tests.test_tag_parse_extra.test_within_empty_span_errors",
906
+ "eval.tests.test_tag_unused.test_entry_without_within_requires_class[\\t@function f\\n]",
907
+ "eval.tests.test_tag_unused.test_entry_without_within_requires_class[\\t@interface I\\n]",
908
+ "eval.tests.test_tag_unused.test_entry_without_within_requires_class[\\t@prop hp number\\n]",
909
+ "eval.tests.test_tag_unused.test_entry_without_within_requires_class[\\t@type T number\\n]",
910
+ "eval.tests.test_tag_unused.test_unused_tag_on_class[-\\t@readonly\\n]",
911
+ "eval.tests.test_tag_unused.test_unused_tag_on_class[-\\t@type T number\\n]",
912
+ "eval.tests.test_tag_unused.test_unused_tag_on_function[\\t.field x string\\n]",
913
+ "eval.tests.test_tag_unused.test_unused_tag_on_function[\\t@type T number\\n]",
914
+ "eval.tests.test_tag_unused.test_unused_tag_on_property",
915
+ "eval.tests.test_tag_unused.test_unused_tag_on_type[\\t@client\\n]",
916
+ "eval.tests.test_tag_unused.test_unused_tag_on_type[\\t@plugin\\n]",
917
+ "eval.tests.test_tag_unused.test_unused_tag_on_type[\\t@prop q number\\n]",
918
+ "eval.tests.test_tag_unused.test_unused_tag_on_type[\\t@readonly\\n]",
919
+ "eval.tests.test_tag_unused.test_unused_tag_on_type[\\t@server\\n]",
920
+ "eval.tests.test_tag_unused.test_unused_tag_on_type[\\t@yields\\n]",
921
+ "eval.tests.test_tag_validation.test_class_within_mutually_exclusive",
922
+ "eval.tests.test_tag_validation.test_distinct_class_names_global_ok",
923
+ "eval.tests.test_tag_validation.test_duplicate_class_name_global_error",
924
+ "eval.tests.test_tag_validation.test_duplicate_external_name_global_error",
925
+ "eval.tests.test_tag_validation.test_error_with_class_mutually_exclusive",
926
+ "eval.tests.test_tag_validation.test_function_with_readonly_mutually_exclusive",
927
+ "eval.tests.test_tag_validation.test_index_with_property_mutually_exclusive",
928
+ "eval.tests.test_tag_validation.test_kind_tags_mutually_exclusive[\\t@function f\\n\\t@class A\\n]",
929
+ "eval.tests.test_tag_validation.test_kind_tags_mutually_exclusive[\\t@prop x number\\n\\t@class A\\n]",
930
+ "eval.tests.test_tag_validation.test_kind_tags_mutually_exclusive[\\t@prop x number\\n\\t@function f\\n]",
931
+ "eval.tests.test_tag_validation.test_multiple_error_tags_allowed",
932
+ "eval.tests.test_tag_validation.test_multiple_external_tags_allowed",
933
+ "eval.tests.test_tag_validation.test_multiple_param_tags_allowed",
934
+ "eval.tests.test_tag_validation.test_multiple_return_tags_allowed",
935
+ "eval.tests.test_tag_validation.test_non_multiple_tag_repeated_errors[\\t@prop x number\\n\\t@prop y number\\n]",
936
+ "eval.tests.test_tag_validation.test_non_multiple_tag_repeated_errors[\\t@server\\n\\t@server\\n]",
937
+ "eval.tests.test_tag_validation.test_non_multiple_tag_repeated_errors[\\t@since v1\\n\\t@since v2\\n]",
938
+ "eval.tests.test_tag_validation.test_non_multiple_tag_repeated_errors[\\t@unreleased\\n\\t@unreleased\\n]",
939
+ "eval.tests.test_tag_validation.test_param_with_property_mutually_exclusive",
940
+ "eval.tests.test_tag_validation.test_return_with_class_mutually_exclusive",
941
+ "eval.tests.test_tag_validation.test_unreleased_with_deprecated_mutually_exclusive",
942
+ "eval.tests.test_tag_validation.test_unreleased_with_since_mutually_exclusive",
943
+ "eval.tests.test_tag_validation.test_yields_with_property_mutually_exclusive"
944
+ ]
945
+ }
946
+ },
947
+ "commit": "ff90433b85d992d00804cd00056f9b4cfe900e54",
948
+ "data_source": "synthetic_programgym",
949
+ "difficulty": "easy",
950
+ "difficulty_score": 1.8468935433166251,
951
+ "eval_clean_hashes": [
952
+ "5335a77b0879f917d49a63fc0ee060b1197b5a7d5e6a348c510399f88c65f8e6"
953
+ ],
954
+ "input_record": {
955
+ "codeql_db_mb": 83.82,
956
+ "codeql_status": true,
957
+ "codeql_time": 54.90467445878312,
958
+ "commit": "ff90433b85d992d00804cd00056f9b4cfe900e54",
959
+ "commits": 328,
960
+ "contributors": 13,
961
+ "difficulty": "easy",
962
+ "difficulty_code_lines": 7029,
963
+ "difficulty_has_tests": false,
964
+ "difficulty_product_code_lines": 7029,
965
+ "difficulty_runtime_deps": 0,
966
+ "difficulty_score": 1.8468935433166251,
967
+ "difficulty_test_code_lines": 161,
968
+ "full_name": "evaera/moonwave",
969
+ "github_stars": 241,
970
+ "input_codeql_db": "rust_codeql/evaera__moonwave",
971
+ "language": "rs",
972
+ "pb_match": [
973
+ {
974
+ "pb_fullname": "BurntSushi/xsv",
975
+ "rank": 719,
976
+ "similarity": 0.47148019075393677
977
+ },
978
+ {
979
+ "pb_fullname": "AmmarAbouZor/tui-journal",
980
+ "rank": 665,
981
+ "similarity": 0.4849183261394501
982
+ },
983
+ {
984
+ "pb_fullname": "pemistahl/grex",
985
+ "rank": 44,
986
+ "similarity": 0.5500813126564026
987
+ },
988
+ {
989
+ "pb_fullname": "Miserlou/Loop",
990
+ "rank": 396,
991
+ "similarity": 0.46596217155456543
992
+ },
993
+ {
994
+ "pb_fullname": "Drew-Alleman/DataSurgeon",
995
+ "rank": 689,
996
+ "similarity": 0.4832172095775604
997
+ },
998
+ {
999
+ "pb_fullname": "BurntSushi/ripgrep",
1000
+ "rank": 498,
1001
+ "similarity": 0.4258739948272705
1002
+ },
1003
+ {
1004
+ "pb_fullname": "nachoparker/dutree",
1005
+ "rank": 689,
1006
+ "similarity": 0.4696938395500183
1007
+ },
1008
+ {
1009
+ "pb_fullname": "Canop/rhit",
1010
+ "rank": 141,
1011
+ "similarity": 0.4893687665462494
1012
+ },
1013
+ {
1014
+ "pb_fullname": "sharkdp/hexyl",
1015
+ "rank": 399,
1016
+ "similarity": 0.45852580666542053
1017
+ },
1018
+ {
1019
+ "pb_fullname": "altdesktop/i3-style",
1020
+ "rank": 423,
1021
+ "similarity": 0.46220383048057556
1022
+ },
1023
+ {
1024
+ "pb_fullname": "brocode/fblog",
1025
+ "rank": 136,
1026
+ "similarity": 0.50947105884552
1027
+ },
1028
+ {
1029
+ "pb_fullname": "svenstaro/miniserve",
1030
+ "rank": 755,
1031
+ "similarity": 0.4794790744781494
1032
+ },
1033
+ {
1034
+ "pb_fullname": "sayanarijit/xplr",
1035
+ "rank": 906,
1036
+ "similarity": 0.496917724609375
1037
+ },
1038
+ {
1039
+ "pb_fullname": "alexpovel/srgn",
1040
+ "rank": 96,
1041
+ "similarity": 0.5664849281311035
1042
+ },
1043
+ {
1044
+ "pb_fullname": "git-bahn/git-graph",
1045
+ "rank": 597,
1046
+ "similarity": 0.4628080427646637
1047
+ },
1048
+ {
1049
+ "pb_fullname": "Stranger6667/jsonschema",
1050
+ "rank": 324,
1051
+ "similarity": 0.40201514959335327
1052
+ },
1053
+ {
1054
+ "pb_fullname": "rvben/rumdl",
1055
+ "rank": 46,
1056
+ "similarity": 0.602037787437439
1057
+ },
1058
+ {
1059
+ "pb_fullname": "dandavison/delta",
1060
+ "rank": 180,
1061
+ "similarity": 0.538142204284668
1062
+ },
1063
+ {
1064
+ "pb_fullname": "bootandy/dust",
1065
+ "rank": 859,
1066
+ "similarity": 0.46440473198890686
1067
+ },
1068
+ {
1069
+ "pb_fullname": "sharkdp/hyperfine",
1070
+ "rank": 317,
1071
+ "similarity": 0.4890816807746887
1072
+ },
1073
+ {
1074
+ "pb_fullname": "jhspetersson/fselect",
1075
+ "rank": 663,
1076
+ "similarity": 0.43441009521484375
1077
+ },
1078
+ {
1079
+ "pb_fullname": "BLAKE3-team/BLAKE3",
1080
+ "rank": 738,
1081
+ "similarity": 0.40362265706062317
1082
+ },
1083
+ {
1084
+ "pb_fullname": "rust-lang/mdBook",
1085
+ "rank": 9,
1086
+ "similarity": 0.6326302289962769
1087
+ },
1088
+ {
1089
+ "pb_fullname": "kaushiksrini/parqeye",
1090
+ "rank": 836,
1091
+ "similarity": 0.44703686237335205
1092
+ },
1093
+ {
1094
+ "pb_fullname": "dalance/amber",
1095
+ "rank": 227,
1096
+ "similarity": 0.5188081860542297
1097
+ },
1098
+ {
1099
+ "pb_fullname": "ajeetdsouza/zoxide",
1100
+ "rank": 745,
1101
+ "similarity": 0.4827665388584137
1102
+ },
1103
+ {
1104
+ "pb_fullname": "stacked-git/stgit",
1105
+ "rank": 427,
1106
+ "similarity": 0.4720781445503235
1107
+ },
1108
+ {
1109
+ "pb_fullname": "rust-ethereum/ethabi",
1110
+ "rank": 654,
1111
+ "similarity": 0.4888010025024414
1112
+ },
1113
+ {
1114
+ "pb_fullname": "blacknon/hwatch",
1115
+ "rank": 232,
1116
+ "similarity": 0.5749150514602661
1117
+ },
1118
+ {
1119
+ "pb_fullname": "foriequal0/git-trim",
1120
+ "rank": 982,
1121
+ "similarity": 0.3677819073200226
1122
+ },
1123
+ {
1124
+ "pb_fullname": "oppiliappan/statix",
1125
+ "rank": 177,
1126
+ "similarity": 0.5208672285079956
1127
+ },
1128
+ {
1129
+ "pb_fullname": "sstadick/hck",
1130
+ "rank": 453,
1131
+ "similarity": 0.4478384256362915
1132
+ },
1133
+ {
1134
+ "pb_fullname": "paradigmxyz/solar",
1135
+ "rank": 819,
1136
+ "similarity": 0.45929965376853943
1137
+ },
1138
+ {
1139
+ "pb_fullname": "rust-embedded/svd2rust",
1140
+ "rank": 931,
1141
+ "similarity": 0.49311041831970215
1142
+ },
1143
+ {
1144
+ "pb_fullname": "bensadeh/tailspin",
1145
+ "rank": 57,
1146
+ "similarity": 0.5621724128723145
1147
+ },
1148
+ {
1149
+ "pb_fullname": "oppiliappan/eva",
1150
+ "rank": 136,
1151
+ "similarity": 0.5392764806747437
1152
+ },
1153
+ {
1154
+ "pb_fullname": "WGUNDERWOOD/tex-fmt",
1155
+ "rank": 19,
1156
+ "similarity": 0.5905243158340454
1157
+ },
1158
+ {
1159
+ "pb_fullname": "axodotdev/oranda",
1160
+ "rank": 36,
1161
+ "similarity": 0.5925777554512024
1162
+ },
1163
+ {
1164
+ "pb_fullname": "cordx56/rustowl",
1165
+ "rank": 573,
1166
+ "similarity": 0.5965832471847534
1167
+ },
1168
+ {
1169
+ "pb_fullname": "Isona/dirble",
1170
+ "rank": 261,
1171
+ "similarity": 0.497417688369751
1172
+ },
1173
+ {
1174
+ "pb_fullname": "o2sh/onefetch",
1175
+ "rank": 196,
1176
+ "similarity": 0.531948447227478
1177
+ },
1178
+ {
1179
+ "pb_fullname": "sitkevij/hex",
1180
+ "rank": 256,
1181
+ "similarity": 0.5053839683532715
1182
+ },
1183
+ {
1184
+ "pb_fullname": "codesnap-rs/codesnap",
1185
+ "rank": 46,
1186
+ "similarity": 0.6499632000923157
1187
+ },
1188
+ {
1189
+ "pb_fullname": "ismaelgv/rnr",
1190
+ "rank": 622,
1191
+ "similarity": 0.40485018491744995
1192
+ },
1193
+ {
1194
+ "pb_fullname": "nuta/nsh",
1195
+ "rank": 629,
1196
+ "similarity": 0.5023157596588135
1197
+ },
1198
+ {
1199
+ "pb_fullname": "sirwart/ripsecrets",
1200
+ "rank": 234,
1201
+ "similarity": 0.5286374092102051
1202
+ },
1203
+ {
1204
+ "pb_fullname": "sharkdp/pastel",
1205
+ "rank": 176,
1206
+ "similarity": 0.5054566264152527
1207
+ },
1208
+ {
1209
+ "pb_fullname": "astro/deadnix",
1210
+ "rank": 135,
1211
+ "similarity": 0.5413248538970947
1212
+ },
1213
+ {
1214
+ "pb_fullname": "wfxr/code-minimap",
1215
+ "rank": 7,
1216
+ "similarity": 0.653795063495636
1217
+ },
1218
+ {
1219
+ "pb_fullname": "eudoxia0/hashcards",
1220
+ "rank": 106,
1221
+ "similarity": 0.5749789476394653
1222
+ },
1223
+ {
1224
+ "pb_fullname": "riquito/tuc",
1225
+ "rank": 943,
1226
+ "similarity": 0.4079152047634125
1227
+ },
1228
+ {
1229
+ "pb_fullname": "crowdagger/crowbook",
1230
+ "rank": 57,
1231
+ "similarity": 0.5262646675109863
1232
+ },
1233
+ {
1234
+ "pb_fullname": "simeg/eureka",
1235
+ "rank": 373,
1236
+ "similarity": 0.510668158531189
1237
+ },
1238
+ {
1239
+ "pb_fullname": "Esubaalew/run",
1240
+ "rank": 154,
1241
+ "similarity": 0.5967356562614441
1242
+ },
1243
+ {
1244
+ "pb_fullname": "clog-tool/clog-cli",
1245
+ "rank": 75,
1246
+ "similarity": 0.5256915092468262
1247
+ },
1248
+ {
1249
+ "pb_fullname": "rhysd/kiro-editor",
1250
+ "rank": 257,
1251
+ "similarity": 0.5592658519744873
1252
+ },
1253
+ {
1254
+ "pb_fullname": "sigoden/argc",
1255
+ "rank": 148,
1256
+ "similarity": 0.5180643796920776
1257
+ },
1258
+ {
1259
+ "pb_fullname": "ast-grep/ast-grep",
1260
+ "rank": 111,
1261
+ "similarity": 0.5932904481887817
1262
+ },
1263
+ {
1264
+ "pb_fullname": "unhappychoice/gittype",
1265
+ "rank": 276,
1266
+ "similarity": 0.5608640909194946
1267
+ },
1268
+ {
1269
+ "pb_fullname": "hush-shell/hush",
1270
+ "rank": 11,
1271
+ "similarity": 0.6075884103775024
1272
+ },
1273
+ {
1274
+ "pb_fullname": "chmln/sd",
1275
+ "rank": 159,
1276
+ "similarity": 0.5256844162940979
1277
+ },
1278
+ {
1279
+ "pb_fullname": "rcoh/angle-grinder",
1280
+ "rank": 427,
1281
+ "similarity": 0.49207547307014465
1282
+ },
1283
+ {
1284
+ "pb_fullname": "kyoheiu/felix",
1285
+ "rank": 498,
1286
+ "similarity": 0.5262168645858765
1287
+ },
1288
+ {
1289
+ "pb_fullname": "Epistates/treemd",
1290
+ "rank": 64,
1291
+ "similarity": 0.6376001834869385
1292
+ },
1293
+ {
1294
+ "pb_fullname": "typst/typst",
1295
+ "rank": 55,
1296
+ "similarity": 0.5629626512527466
1297
+ },
1298
+ {
1299
+ "pb_fullname": "chmln/handlr",
1300
+ "rank": 783,
1301
+ "similarity": 0.47847864031791687
1302
+ },
1303
+ {
1304
+ "pb_fullname": "rbakbashev/elfcat",
1305
+ "rank": 128,
1306
+ "similarity": 0.5330008864402771
1307
+ },
1308
+ {
1309
+ "pb_fullname": "elkowar/pipr",
1310
+ "rank": 303,
1311
+ "similarity": 0.5848568677902222
1312
+ },
1313
+ {
1314
+ "pb_fullname": "mgdm/htmlq",
1315
+ "rank": 166,
1316
+ "similarity": 0.4972570538520813
1317
+ },
1318
+ {
1319
+ "pb_fullname": "nikolassv/bartib",
1320
+ "rank": 259,
1321
+ "similarity": 0.47298580408096313
1322
+ },
1323
+ {
1324
+ "pb_fullname": "shashwatah/jot",
1325
+ "rank": 211,
1326
+ "similarity": 0.5479884743690491
1327
+ },
1328
+ {
1329
+ "pb_fullname": "KSXGitHub/parallel-disk-usage",
1330
+ "rank": 588,
1331
+ "similarity": 0.46951064467430115
1332
+ },
1333
+ {
1334
+ "pb_fullname": "parcel-bundler/lightningcss",
1335
+ "rank": 354,
1336
+ "similarity": 0.4768563508987427
1337
+ },
1338
+ {
1339
+ "pb_fullname": "rochacbruno/marmite",
1340
+ "rank": 209,
1341
+ "similarity": 0.4680030941963196
1342
+ },
1343
+ {
1344
+ "pb_fullname": "konradsz/igrep",
1345
+ "rank": 451,
1346
+ "similarity": 0.4982326924800873
1347
+ },
1348
+ {
1349
+ "pb_fullname": "hatoo/oha",
1350
+ "rank": 327,
1351
+ "similarity": 0.5354537963867188
1352
+ },
1353
+ {
1354
+ "pb_fullname": "ivanceras/svgbob",
1355
+ "rank": 179,
1356
+ "similarity": 0.5288337469100952
1357
+ },
1358
+ {
1359
+ "pb_fullname": "trasta298/keifu",
1360
+ "rank": 706,
1361
+ "similarity": 0.4833473563194275
1362
+ },
1363
+ {
1364
+ "pb_fullname": "Canop/broot",
1365
+ "rank": 701,
1366
+ "similarity": 0.4911130368709564
1367
+ },
1368
+ {
1369
+ "pb_fullname": "sharkdp/fd",
1370
+ "rank": 459,
1371
+ "similarity": 0.44835150241851807
1372
+ },
1373
+ {
1374
+ "pb_fullname": "pls-rs/pls",
1375
+ "rank": 320,
1376
+ "similarity": 0.47302621603012085
1377
+ },
1378
+ {
1379
+ "pb_fullname": "Byron/dua-cli",
1380
+ "rank": 875,
1381
+ "similarity": 0.42534661293029785
1382
+ },
1383
+ {
1384
+ "pb_fullname": "mookid/diffr",
1385
+ "rank": 88,
1386
+ "similarity": 0.5930579900741577
1387
+ },
1388
+ {
1389
+ "pb_fullname": "anordal/shellharden",
1390
+ "rank": 79,
1391
+ "similarity": 0.5814889669418335
1392
+ },
1393
+ {
1394
+ "pb_fullname": "pier-cli/pier",
1395
+ "rank": 150,
1396
+ "similarity": 0.5635820627212524
1397
+ },
1398
+ {
1399
+ "pb_fullname": "sharkdp/bat",
1400
+ "rank": 103,
1401
+ "similarity": 0.5912108421325684
1402
+ },
1403
+ {
1404
+ "pb_fullname": "jrnxf/thokr",
1405
+ "rank": 757,
1406
+ "similarity": 0.48456916213035583
1407
+ },
1408
+ {
1409
+ "pb_fullname": "XAMPPRocky/tokei",
1410
+ "rank": 25,
1411
+ "similarity": 0.5604822635650635
1412
+ },
1413
+ {
1414
+ "pb_fullname": "wfxr/csview",
1415
+ "rank": 623,
1416
+ "similarity": 0.4546060562133789
1417
+ },
1418
+ {
1419
+ "pb_fullname": "Y2Z/monolith",
1420
+ "rank": 450,
1421
+ "similarity": 0.47919803857803345
1422
+ },
1423
+ {
1424
+ "pb_fullname": "yassinebridi/serpl",
1425
+ "rank": 198,
1426
+ "similarity": 0.5961002111434937
1427
+ },
1428
+ {
1429
+ "pb_fullname": "yoav-lavi/melody",
1430
+ "rank": 86,
1431
+ "similarity": 0.5286211967468262
1432
+ },
1433
+ {
1434
+ "pb_fullname": "tree-sitter/tree-sitter",
1435
+ "rank": 225,
1436
+ "similarity": 0.505023717880249
1437
+ },
1438
+ {
1439
+ "pb_fullname": "yaa110/nomino",
1440
+ "rank": 433,
1441
+ "similarity": 0.45441481471061707
1442
+ },
1443
+ {
1444
+ "pb_fullname": "YS-L/flamelens",
1445
+ "rank": 429,
1446
+ "similarity": 0.5027313232421875
1447
+ }
1448
+ ],
1449
+ "repo_age": 5.78,
1450
+ "repo_path": "rust/evaera__moonwave",
1451
+ "rust_channel": "stable",
1452
+ "rust_edition": "2021",
1453
+ "rust_release_date": "2021-10-21",
1454
+ "rust_version": "1.56.0",
1455
+ "rust_version_source": "edition",
1456
+ "source": "commit:ff90433b85d992d00804cd00056f9b4cfe900e54",
1457
+ "status": "done",
1458
+ "url": "https://github.com/evaera/moonwave"
1459
+ },
1460
+ "instance_id": "evaera__moonwave.ff90433",
1461
+ "language": "rust",
1462
+ "module_iterations": [
1463
+ {
1464
+ "actual_iterations": 5,
1465
+ "branch_name": "generated_module_01",
1466
+ "iteration_limit": 5,
1467
+ "module_index": 1,
1468
+ "module_kind": "source",
1469
+ "termination_reason": "module_coverage_threshold_reached"
1470
+ },
1471
+ {
1472
+ "actual_iterations": 5,
1473
+ "branch_name": "generated_module_02",
1474
+ "iteration_limit": 5,
1475
+ "module_index": 2,
1476
+ "module_kind": "source",
1477
+ "termination_reason": "early_stopping"
1478
+ },
1479
+ {
1480
+ "actual_iterations": 5,
1481
+ "branch_name": "generated_module_03",
1482
+ "iteration_limit": 5,
1483
+ "module_index": 3,
1484
+ "module_kind": "source",
1485
+ "termination_reason": "max_iterations"
1486
+ },
1487
+ {
1488
+ "actual_iterations": 5,
1489
+ "branch_name": "generated_module_04",
1490
+ "iteration_limit": 5,
1491
+ "module_index": 4,
1492
+ "module_kind": "source",
1493
+ "termination_reason": "max_iterations"
1494
+ }
1495
+ ],
1496
+ "repository": "evaera/moonwave"
1497
+ }
evaera--moonwave.ff90433/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
evaera--moonwave.ff90433/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cfeb69ce47518308947451574a997853ee08c1019ac566e9457dcde023d6263
3
+ size 7733
evansmurithi--cloak.a4dac97/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
evansmurithi--cloak.a4dac97/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"]
evidlo--remarkable_news.ad146bb/environment/Dockerfile ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
51
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
52
+ ENV npm_config_cache=/workspace/.cache/npm
53
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
54
+ ENV HOME=/workspace
55
+ ENV XDG_CACHE_HOME=/workspace/.cache
56
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
57
+ ENV PYTHONUSERBASE=/workspace/.local
58
+ ENV GOROOT=/usr/local/go
59
+ ENV GOPATH=/workspace/.go
60
+ ENV GOCACHE=/workspace/.cache/go-build
61
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
62
+ 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
63
+ ENV PAGER=cat
64
+ ENV MANPAGER=cat
65
+ ENV LESS=-R
66
+ ENV TQDM_DISABLE=1
67
+ ENV VIRTUAL_ENV=/opt/programgym-venv
68
+ 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/*
69
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
70
+ 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
71
+ 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
72
+ WORKDIR /workspace
73
+ ADD workspace.tar.gz /workspace/
74
+ COPY executable /workspace/executable
75
+ COPY download.sh /workspace/download.sh
76
+ RUN chmod 755 /workspace/download.sh
77
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
78
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
79
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
80
+ && rm -f /workspace/download.sh \
81
+ && rm -f /tmp/harbor_prepare_download_env.sh
82
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
83
+ RUN chmod 111 /workspace/executable
84
+ WORKDIR /workspace
85
+ # programgym-runtime-workspace-cleanup: v1
86
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
87
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
88
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
89
+ # submission handed to the separate verifier. Keep the reference executable
90
+ # execute-only; the oracle temporarily restores owner read permission.
91
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
92
+ RUN mkdir -p /home/agent \
93
+ && chown -R agent:agent /home/agent /workspace \
94
+ && chown agent:agent /workspace/executable \
95
+ && chmod 111 /workspace/executable
96
+ ENV HOME=/home/agent
97
+ WORKDIR /workspace
98
+ 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"]
evidlo--remarkable_news.ad146bb/environment/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
evidlo--remarkable_news.ad146bb/environment/download.sh ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/evidlo/remarkable_news/v1.0.2
9
+
10
+ go 1.22
11
+
12
+ require (
13
+ github.com/antchfx/htmlquery v1.3.0
14
+ github.com/antchfx/jsonquery v1.3.2
15
+ github.com/disintegration/imaging v1.6.2
16
+ github.com/godbus/dbus v4.1.0+incompatible
17
+ github.com/lestrrat-go/strftime v1.0.6
18
+ github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
19
+ )
20
+
21
+ require github.com/stretchr/testify v1.6.1 // indirect
22
+
23
+ require (
24
+ github.com/antchfx/xpath v1.2.3 // indirect
25
+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
26
+ github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
27
+ github.com/pkg/errors v0.9.1 // indirect
28
+ golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
29
+ golang.org/x/net v0.5.0 // indirect
30
+ golang.org/x/text v0.6.0 // indirect
31
+ )
32
+ PROGRAMGYM_GO_MOD_EOF
33
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
34
+ github.com/antchfx/htmlquery v1.3.0 h1:5I5yNFOVI+egyia5F2s/5Do2nFWxJz41Tr3DyfKD25E=
35
+ github.com/antchfx/htmlquery v1.3.0/go.mod h1:zKPDVTMhfOmcwxheXUsx4rKJy8KEY/PU6eXr/2SebQ8=
36
+ github.com/antchfx/jsonquery v1.3.2 h1:/BgHv1le9CCkqDe7t1x5BRlCg6DQmXTsztnMQFG5Hoc=
37
+ github.com/antchfx/jsonquery v1.3.2/go.mod h1:VsW9O/sNgHoUVvhoMEjR+opjIOjKOViNFTpAlxcI4Ws=
38
+ github.com/antchfx/xpath v1.2.3 h1:CCZWOzv5bAqjVv0offZ2LVgVYFbeldKQVuLNbViZdes=
39
+ github.com/antchfx/xpath v1.2.3/go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs=
40
+ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
41
+ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
42
+ github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
43
+ github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
44
+ github.com/godbus/dbus v4.1.0+incompatible h1:WqqLRTsQic3apZUK9qC5sGNfXthmPXzUZ7nQPrNITa4=
45
+ github.com/godbus/dbus v4.1.0+incompatible/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw=
46
+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
47
+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
48
+ github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
49
+ github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
50
+ github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc h1:RKf14vYWi2ttpEmkA4aQ3j4u9dStX2t4M8UM6qqNsG8=
51
+ github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc/go.mod h1:kopuH9ugFRkIXf3YoqHKyrJ9YfUFsckUU9S7B+XP+is=
52
+ github.com/lestrrat-go/strftime v1.0.6 h1:CFGsDEt1pOpFNU+TJB0nhz9jl+K0hZSLE205AhTIGQQ=
53
+ github.com/lestrrat-go/strftime v1.0.6/go.mod h1:f7jQKgV5nnJpYgdEasS+/y7EsTb8ykN2z68n3TtcTaw=
54
+ github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
55
+ github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
56
+ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
57
+ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
58
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
59
+ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
60
+ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
61
+ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
62
+ github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
63
+ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
64
+ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
65
+ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
66
+ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
67
+ golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U=
68
+ golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
69
+ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
70
+ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
71
+ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
72
+ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
73
+ golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw=
74
+ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
75
+ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
76
+ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
77
+ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
78
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
79
+ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
80
+ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
81
+ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
82
+ golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
83
+ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
84
+ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
85
+ golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
86
+ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
87
+ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
88
+ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
89
+ golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k=
90
+ golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
91
+ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
92
+ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
93
+ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
94
+ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
95
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
96
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
97
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
98
+ PROGRAMGYM_GO_SUM_EOF
99
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
100
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
101
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
102
+ *"|"*|*","*)
103
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
104
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
105
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
106
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
107
+ fi
108
+ ;;
109
+ esac
110
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
111
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
112
+ fi
113
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
114
+ import os
115
+ import signal
116
+ import subprocess
117
+ import sys
118
+ import time
119
+
120
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
121
+ if not command:
122
+ raise SystemExit(125)
123
+ environment = os.environ.copy()
124
+ environment["GOPROXY"] = proxy
125
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
126
+ try:
127
+ returncode = process.wait(timeout=float(timeout_text))
128
+ except subprocess.TimeoutExpired:
129
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
130
+ sentinel.write("expired\n")
131
+ try:
132
+ os.killpg(process.pid, signal.SIGTERM)
133
+ except ProcessLookupError:
134
+ pass
135
+ deadline = time.monotonic() + float(grace_text)
136
+ group_alive = True
137
+ while time.monotonic() < deadline:
138
+ process.poll()
139
+ try:
140
+ os.killpg(process.pid, 0)
141
+ except ProcessLookupError:
142
+ group_alive = False
143
+ break
144
+ time.sleep(0.05)
145
+ if group_alive:
146
+ try:
147
+ os.killpg(process.pid, signal.SIGKILL)
148
+ except ProcessLookupError:
149
+ pass
150
+ process.wait()
151
+ raise SystemExit(124)
152
+ if returncode < 0:
153
+ returncode = 128 - returncode
154
+ raise SystemExit(returncode)
155
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
156
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
157
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
158
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
159
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
160
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
161
+ return 1
162
+ else
163
+ exit 1
164
+ fi
165
+ fi
166
+ if ! command -v python3 >/dev/null 2>&1; then
167
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
168
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
169
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
170
+ return 1
171
+ else
172
+ exit 1
173
+ fi
174
+ fi
175
+ _programgym_go_with_nexus_timeout() {
176
+ local programgym_go_rc
177
+ local programgym_go_timeout_sentinel
178
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
179
+ return 1
180
+ fi
181
+ 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
182
+ programgym_go_rc=0
183
+ else
184
+ programgym_go_rc=$?
185
+ fi
186
+ programgym_go_timed_out=0
187
+ if [ -s "$programgym_go_timeout_sentinel" ]; then
188
+ programgym_go_timed_out=1
189
+ fi
190
+ rm -f "$programgym_go_timeout_sentinel"
191
+ if [ "$programgym_go_rc" -eq 0 ]; then
192
+ return 0
193
+ fi
194
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
195
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; GOPROXY has no explicit non-empty fallback remainder" >&2
196
+ return "$programgym_go_rc"
197
+ fi
198
+ if [ "$programgym_go_timed_out" -eq 1 ]; then
199
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
200
+ else
201
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
202
+ fi
203
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
204
+ }
205
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
206
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
207
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
208
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
209
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
210
+ return 1
211
+ else
212
+ exit 1
213
+ fi
214
+ fi
215
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
216
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
217
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
218
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
219
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
220
+ else
221
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
222
+ fi
223
+ export PATH="$GOROOT/bin:$PATH"
224
+ export GOTOOLCHAIN=local
225
+ 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
226
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
227
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
228
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
229
+ return 1
230
+ else
231
+ exit 1
232
+ fi
233
+ fi
234
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
235
+ unset -f _programgym_go_with_nexus_timeout
236
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
237
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
238
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
239
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
240
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
evidlo--remarkable_news.ad146bb/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c718ad8d3f69ac3b45291bee07047347f426b9b7904f112b3df8e350b410007
3
+ size 12219607
evidlo--remarkable_news.ad146bb/environment/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
evidlo--remarkable_news.ad146bb/environment/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
evidlo--remarkable_news.ad146bb/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
evidlo--remarkable_news.ad146bb/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
evidlo--remarkable_news.ad146bb/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f126ed1ca7a4a2bba53293e406e2fcd2c66f5ed5a7ac65971c1defaca157acdc
3
+ size 414886
evidlo--remarkable_news.ad146bb/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
evidlo--remarkable_news.ad146bb/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
evidlo--remarkable_news.ad146bb/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/evidlo--remarkable_news.ad146bb"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for Evidlo/remarkable_news"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "Evidlo__remarkable_news.ad146bb"
32
+ repository = "Evidlo/remarkable_news"
33
+ commit = "ad146bb1a36d6e4fddf024a5d1fc1c53579a589c"
34
+ language = "go"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.994317152669637
37
+ test_branches = 4
38
+ test_count = 235
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"
evidlo--remarkable_news.ad146bb/tests/Dockerfile ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
51
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
52
+ ENV npm_config_cache=/workspace/.cache/npm
53
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
54
+ ENV HOME=/workspace
55
+ ENV XDG_CACHE_HOME=/workspace/.cache
56
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
57
+ ENV PYTHONUSERBASE=/workspace/.local
58
+ ENV GOROOT=/usr/local/go
59
+ ENV GOPATH=/workspace/.go
60
+ ENV GOCACHE=/workspace/.cache/go-build
61
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
62
+ 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
63
+ ENV PAGER=cat
64
+ ENV MANPAGER=cat
65
+ ENV LESS=-R
66
+ ENV TQDM_DISABLE=1
67
+ ENV VIRTUAL_ENV=/opt/programgym-venv
68
+ 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/*
69
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
70
+ 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
71
+ 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
72
+ WORKDIR /workspace
73
+ ADD workspace.tar.gz /workspace/
74
+ COPY executable /workspace/executable
75
+ COPY download.sh /workspace/download.sh
76
+ RUN chmod 755 /workspace/download.sh
77
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
78
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
79
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
80
+ && rm -f /workspace/download.sh \
81
+ && rm -f /tmp/harbor_prepare_download_env.sh
82
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
83
+ RUN chmod 111 /workspace/executable
84
+ WORKDIR /workspace
85
+ # programgym-runtime-workspace-cleanup: v1
86
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
87
+ # Harbor uses tests/ as the separate verifier build context. Start with the
88
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
89
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
90
+ && mkdir -p /workspace /tests
91
+
92
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
93
+ # Installing a newer pytest alone leaves that apt package importable and creates
94
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
95
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
96
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
97
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
98
+ RUN set -eu; \
99
+ pip_break_system_packages=""; \
100
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
101
+ pip_break_system_packages="--break-system-packages"; \
102
+ fi; \
103
+ python3 -m pip install ${pip_break_system_packages} \
104
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
105
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
106
+
107
+ COPY test.sh /tests/test.sh
108
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
109
+ COPY programgym_task.json /tests/programgym_task.json
110
+ COPY blobs/ /tests/blobs/
111
+ RUN chmod +x /tests/test.sh
112
+ 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"]
evidlo--remarkable_news.ad146bb/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:cda359d3097f1c131b31f0d6483b7f270a4cc6992340693b7eeea4d2b06cc8ac
3
+ size 687602
evidlo--remarkable_news.ad146bb/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:db9ded40ff8aab2f5718a3fd1cc08d536133b1f10a0c61d11b4201939b8c72b2
3
+ size 501405
evidlo--remarkable_news.ad146bb/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:e496fc11c9d92233454b2c67197b263c6203d21fed500cd430519447a5a63450
3
+ size 191614
evidlo--remarkable_news.ad146bb/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:64294fefca3e0c7613dd4553f732958415796e528a221993f5ead40c4350d0b9
3
+ size 6476
evidlo--remarkable_news.ad146bb/tests/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
evidlo--remarkable_news.ad146bb/tests/download.sh ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/evidlo/remarkable_news/v1.0.2
9
+
10
+ go 1.22
11
+
12
+ require (
13
+ github.com/antchfx/htmlquery v1.3.0
14
+ github.com/antchfx/jsonquery v1.3.2
15
+ github.com/disintegration/imaging v1.6.2
16
+ github.com/godbus/dbus v4.1.0+incompatible
17
+ github.com/lestrrat-go/strftime v1.0.6
18
+ github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
19
+ )
20
+
21
+ require github.com/stretchr/testify v1.6.1 // indirect
22
+
23
+ require (
24
+ github.com/antchfx/xpath v1.2.3 // indirect
25
+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
26
+ github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
27
+ github.com/pkg/errors v0.9.1 // indirect
28
+ golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
29
+ golang.org/x/net v0.5.0 // indirect
30
+ golang.org/x/text v0.6.0 // indirect
31
+ )
32
+ PROGRAMGYM_GO_MOD_EOF
33
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
34
+ github.com/antchfx/htmlquery v1.3.0 h1:5I5yNFOVI+egyia5F2s/5Do2nFWxJz41Tr3DyfKD25E=
35
+ github.com/antchfx/htmlquery v1.3.0/go.mod h1:zKPDVTMhfOmcwxheXUsx4rKJy8KEY/PU6eXr/2SebQ8=
36
+ github.com/antchfx/jsonquery v1.3.2 h1:/BgHv1le9CCkqDe7t1x5BRlCg6DQmXTsztnMQFG5Hoc=
37
+ github.com/antchfx/jsonquery v1.3.2/go.mod h1:VsW9O/sNgHoUVvhoMEjR+opjIOjKOViNFTpAlxcI4Ws=
38
+ github.com/antchfx/xpath v1.2.3 h1:CCZWOzv5bAqjVv0offZ2LVgVYFbeldKQVuLNbViZdes=
39
+ github.com/antchfx/xpath v1.2.3/go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs=
40
+ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
41
+ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
42
+ github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
43
+ github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
44
+ github.com/godbus/dbus v4.1.0+incompatible h1:WqqLRTsQic3apZUK9qC5sGNfXthmPXzUZ7nQPrNITa4=
45
+ github.com/godbus/dbus v4.1.0+incompatible/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw=
46
+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
47
+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
48
+ github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
49
+ github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
50
+ github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc h1:RKf14vYWi2ttpEmkA4aQ3j4u9dStX2t4M8UM6qqNsG8=
51
+ github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc/go.mod h1:kopuH9ugFRkIXf3YoqHKyrJ9YfUFsckUU9S7B+XP+is=
52
+ github.com/lestrrat-go/strftime v1.0.6 h1:CFGsDEt1pOpFNU+TJB0nhz9jl+K0hZSLE205AhTIGQQ=
53
+ github.com/lestrrat-go/strftime v1.0.6/go.mod h1:f7jQKgV5nnJpYgdEasS+/y7EsTb8ykN2z68n3TtcTaw=
54
+ github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
55
+ github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
56
+ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
57
+ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
58
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
59
+ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
60
+ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
61
+ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
62
+ github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
63
+ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
64
+ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
65
+ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
66
+ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
67
+ golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U=
68
+ golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
69
+ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
70
+ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
71
+ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
72
+ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
73
+ golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw=
74
+ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
75
+ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
76
+ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
77
+ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
78
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
79
+ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
80
+ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
81
+ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
82
+ golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
83
+ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
84
+ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
85
+ golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
86
+ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
87
+ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
88
+ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
89
+ golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k=
90
+ golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
91
+ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
92
+ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
93
+ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
94
+ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
95
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
96
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
97
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
98
+ PROGRAMGYM_GO_SUM_EOF
99
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
100
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
101
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
102
+ *"|"*|*","*)
103
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
104
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
105
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
106
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
107
+ fi
108
+ ;;
109
+ esac
110
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
111
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
112
+ fi
113
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
114
+ import os
115
+ import signal
116
+ import subprocess
117
+ import sys
118
+ import time
119
+
120
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
121
+ if not command:
122
+ raise SystemExit(125)
123
+ environment = os.environ.copy()
124
+ environment["GOPROXY"] = proxy
125
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
126
+ try:
127
+ returncode = process.wait(timeout=float(timeout_text))
128
+ except subprocess.TimeoutExpired:
129
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
130
+ sentinel.write("expired\n")
131
+ try:
132
+ os.killpg(process.pid, signal.SIGTERM)
133
+ except ProcessLookupError:
134
+ pass
135
+ deadline = time.monotonic() + float(grace_text)
136
+ group_alive = True
137
+ while time.monotonic() < deadline:
138
+ process.poll()
139
+ try:
140
+ os.killpg(process.pid, 0)
141
+ except ProcessLookupError:
142
+ group_alive = False
143
+ break
144
+ time.sleep(0.05)
145
+ if group_alive:
146
+ try:
147
+ os.killpg(process.pid, signal.SIGKILL)
148
+ except ProcessLookupError:
149
+ pass
150
+ process.wait()
151
+ raise SystemExit(124)
152
+ if returncode < 0:
153
+ returncode = 128 - returncode
154
+ raise SystemExit(returncode)
155
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
156
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
157
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
158
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
159
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
160
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
161
+ return 1
162
+ else
163
+ exit 1
164
+ fi
165
+ fi
166
+ if ! command -v python3 >/dev/null 2>&1; then
167
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
168
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
169
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
170
+ return 1
171
+ else
172
+ exit 1
173
+ fi
174
+ fi
175
+ _programgym_go_with_nexus_timeout() {
176
+ local programgym_go_rc
177
+ local programgym_go_timeout_sentinel
178
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
179
+ return 1
180
+ fi
181
+ 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
182
+ programgym_go_rc=0
183
+ else
184
+ programgym_go_rc=$?
185
+ fi
186
+ programgym_go_timed_out=0
187
+ if [ -s "$programgym_go_timeout_sentinel" ]; then
188
+ programgym_go_timed_out=1
189
+ fi
190
+ rm -f "$programgym_go_timeout_sentinel"
191
+ if [ "$programgym_go_rc" -eq 0 ]; then
192
+ return 0
193
+ fi
194
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
195
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; GOPROXY has no explicit non-empty fallback remainder" >&2
196
+ return "$programgym_go_rc"
197
+ fi
198
+ if [ "$programgym_go_timed_out" -eq 1 ]; then
199
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
200
+ else
201
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
202
+ fi
203
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
204
+ }
205
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
206
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
207
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
208
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
209
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
210
+ return 1
211
+ else
212
+ exit 1
213
+ fi
214
+ fi
215
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
216
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
217
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
218
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
219
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
220
+ else
221
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
222
+ fi
223
+ export PATH="$GOROOT/bin:$PATH"
224
+ export GOTOOLCHAIN=local
225
+ 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
226
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
227
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
228
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
229
+ return 1
230
+ else
231
+ exit 1
232
+ fi
233
+ fi
234
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
235
+ unset -f _programgym_go_with_nexus_timeout
236
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
237
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
238
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
239
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
240
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
evidlo--remarkable_news.ad146bb/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c718ad8d3f69ac3b45291bee07047347f426b9b7904f112b3df8e350b410007
3
+ size 12219607
evidlo--remarkable_news.ad146bb/tests/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi