Marquis03 commited on
Commit
4a6a317
·
verified ·
1 Parent(s): 433f00c

commit (part 98)

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 +6 -0
  2. plankcipher--kabmat.0251870/tests/Dockerfile +1 -0
  3. plibither8--2048.cpp.ad931d9/environment/Dockerfile +1 -0
  4. plibither8--2048.cpp.ad931d9/tests/Dockerfile +1 -0
  5. pmp-library--pmp-library.2a2ad50/environment/Dockerfile +1 -0
  6. pmp-library--pmp-library.2a2ad50/tests/Dockerfile +1 -0
  7. pointlander--peg.792d23c/environment/Dockerfile +98 -0
  8. pointlander--peg.792d23c/environment/docker-compose.yaml +22 -0
  9. pointlander--peg.792d23c/environment/download.sh +147 -0
  10. pointlander--peg.792d23c/environment/executable +3 -0
  11. pointlander--peg.792d23c/environment/harbor_configure_apt_mirror.sh +37 -0
  12. pointlander--peg.792d23c/environment/harbor_configure_java_mirrors.sh +50 -0
  13. pointlander--peg.792d23c/environment/harbor_prepare_download_env.sh +44 -0
  14. pointlander--peg.792d23c/environment/programgym-go.tar.gz +3 -0
  15. pointlander--peg.792d23c/environment/workspace.tar.gz +3 -0
  16. pointlander--peg.792d23c/instruction.md +98 -0
  17. pointlander--peg.792d23c/solution/solve.sh +33 -0
  18. pointlander--peg.792d23c/task.toml +69 -0
  19. pointlander--peg.792d23c/tests/Dockerfile +112 -0
  20. pointlander--peg.792d23c/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  21. pointlander--peg.792d23c/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  22. pointlander--peg.792d23c/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  23. pointlander--peg.792d23c/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  24. pointlander--peg.792d23c/tests/docker-compose.yaml +22 -0
  25. pointlander--peg.792d23c/tests/download.sh +147 -0
  26. pointlander--peg.792d23c/tests/executable +3 -0
  27. pointlander--peg.792d23c/tests/harbor_configure_apt_mirror.sh +37 -0
  28. pointlander--peg.792d23c/tests/harbor_configure_java_mirrors.sh +50 -0
  29. pointlander--peg.792d23c/tests/harbor_prepare_download_env.sh +44 -0
  30. pointlander--peg.792d23c/tests/programgym-go.tar.gz +3 -0
  31. pointlander--peg.792d23c/tests/programgym_evaluator.py +1201 -0
  32. pointlander--peg.792d23c/tests/programgym_task.json +400 -0
  33. pointlander--peg.792d23c/tests/test.sh +82 -0
  34. pointlander--peg.792d23c/tests/workspace.tar.gz +3 -0
  35. polachok--fahrenheit.3f2f133/environment/Dockerfile +1 -0
  36. polachok--fahrenheit.3f2f133/tests/Dockerfile +1 -0
  37. poseidon-fan--gung.73b990c/environment/Dockerfile +101 -0
  38. poseidon-fan--gung.73b990c/environment/docker-compose.yaml +22 -0
  39. poseidon-fan--gung.73b990c/environment/download.sh +3500 -0
  40. poseidon-fan--gung.73b990c/environment/executable +3 -0
  41. poseidon-fan--gung.73b990c/environment/harbor_configure_apt_mirror.sh +37 -0
  42. poseidon-fan--gung.73b990c/environment/harbor_configure_java_mirrors.sh +50 -0
  43. poseidon-fan--gung.73b990c/environment/harbor_prepare_download_env.sh +44 -0
  44. poseidon-fan--gung.73b990c/environment/harbor_prepare_rust_env.sh +54 -0
  45. poseidon-fan--gung.73b990c/environment/workspace.tar.gz +3 -0
  46. poseidon-fan--gung.73b990c/instruction.md +98 -0
  47. poseidon-fan--gung.73b990c/solution/solve.sh +33 -0
  48. poseidon-fan--gung.73b990c/task.toml +69 -0
  49. poseidon-fan--gung.73b990c/tests/Dockerfile +115 -0
  50. poseidon-fan--gung.73b990c/tests/blobs/tests/generated_module_02.tar.gz +3 -0
.gitattributes CHANGED
@@ -3574,3 +3574,9 @@ pjsip--pjproject.3923fad/environment/executable filter=lfs diff=lfs merge=lfs -t
3574
  pjsip--pjproject.3923fad/tests/executable filter=lfs diff=lfs merge=lfs -text
3575
  pksunkara--cargo-workspaces.4165711/environment/executable filter=lfs diff=lfs merge=lfs -text
3576
  pksunkara--cargo-workspaces.4165711/tests/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
3574
  pjsip--pjproject.3923fad/tests/executable filter=lfs diff=lfs merge=lfs -text
3575
  pksunkara--cargo-workspaces.4165711/environment/executable filter=lfs diff=lfs merge=lfs -text
3576
  pksunkara--cargo-workspaces.4165711/tests/executable filter=lfs diff=lfs merge=lfs -text
3577
+ pointlander--peg.792d23c/environment/executable filter=lfs diff=lfs merge=lfs -text
3578
+ pointlander--peg.792d23c/tests/executable filter=lfs diff=lfs merge=lfs -text
3579
+ poseidon-fan--gung.73b990c/environment/executable filter=lfs diff=lfs merge=lfs -text
3580
+ poseidon-fan--gung.73b990c/tests/executable filter=lfs diff=lfs merge=lfs -text
3581
+ postcss-rs--postcss-rs.838f444/environment/executable filter=lfs diff=lfs merge=lfs -text
3582
+ postcss-rs--postcss-rs.838f444/tests/executable filter=lfs diff=lfs merge=lfs -text
plankcipher--kabmat.0251870/tests/Dockerfile CHANGED
@@ -61,3 +61,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
61
  COPY programgym_task.json /tests/programgym_task.json
62
  COPY blobs/ /tests/blobs/
63
  RUN chmod +x /tests/test.sh
 
 
61
  COPY programgym_task.json /tests/programgym_task.json
62
  COPY blobs/ /tests/blobs/
63
  RUN chmod +x /tests/test.sh
64
+ 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"]
plibither8--2048.cpp.ad931d9/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"]
plibither8--2048.cpp.ad931d9/tests/Dockerfile CHANGED
@@ -65,3 +65,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
65
  COPY programgym_task.json /tests/programgym_task.json
66
  COPY blobs/ /tests/blobs/
67
  RUN chmod +x /tests/test.sh
 
 
65
  COPY programgym_task.json /tests/programgym_task.json
66
  COPY blobs/ /tests/blobs/
67
  RUN chmod +x /tests/test.sh
68
+ 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"]
pmp-library--pmp-library.2a2ad50/environment/Dockerfile CHANGED
@@ -64,3 +64,4 @@ RUN mkdir -p /home/agent \
64
  && chmod 111 /workspace/executable
65
  ENV HOME=/home/agent
66
  WORKDIR /workspace
 
 
64
  && chmod 111 /workspace/executable
65
  ENV HOME=/home/agent
66
  WORKDIR /workspace
67
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
pmp-library--pmp-library.2a2ad50/tests/Dockerfile CHANGED
@@ -72,3 +72,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
72
  COPY programgym_task.json /tests/programgym_task.json
73
  COPY blobs/ /tests/blobs/
74
  RUN chmod +x /tests/test.sh
 
 
72
  COPY programgym_task.json /tests/programgym_task.json
73
  COPY blobs/ /tests/blobs/
74
  RUN chmod +x /tests/test.sh
75
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
pointlander--peg.792d23c/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"]
pointlander--peg.792d23c/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}
pointlander--peg.792d23c/environment/download.sh ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/pointlander/peg
9
+
10
+ go 1.25
11
+
12
+ tool github.com/pointlander/peg
13
+ PROGRAMGYM_GO_MOD_EOF
14
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
15
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
16
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
17
+ *"|"*|*","*)
18
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
19
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
20
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
21
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
22
+ fi
23
+ ;;
24
+ esac
25
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
26
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
27
+ fi
28
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
29
+ import os
30
+ import signal
31
+ import subprocess
32
+ import sys
33
+ import time
34
+
35
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
36
+ if not command:
37
+ raise SystemExit(125)
38
+ environment = os.environ.copy()
39
+ environment["GOPROXY"] = proxy
40
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
41
+ try:
42
+ returncode = process.wait(timeout=float(timeout_text))
43
+ except subprocess.TimeoutExpired:
44
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
45
+ sentinel.write("expired\n")
46
+ try:
47
+ os.killpg(process.pid, signal.SIGTERM)
48
+ except ProcessLookupError:
49
+ pass
50
+ deadline = time.monotonic() + float(grace_text)
51
+ group_alive = True
52
+ while time.monotonic() < deadline:
53
+ process.poll()
54
+ try:
55
+ os.killpg(process.pid, 0)
56
+ except ProcessLookupError:
57
+ group_alive = False
58
+ break
59
+ time.sleep(0.05)
60
+ if group_alive:
61
+ try:
62
+ os.killpg(process.pid, signal.SIGKILL)
63
+ except ProcessLookupError:
64
+ pass
65
+ process.wait()
66
+ raise SystemExit(124)
67
+ if returncode < 0:
68
+ returncode = 128 - returncode
69
+ raise SystemExit(returncode)
70
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
71
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
72
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
73
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
74
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
75
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
76
+ return 1
77
+ else
78
+ exit 1
79
+ fi
80
+ fi
81
+ if ! command -v python3 >/dev/null 2>&1; then
82
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
83
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
84
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
85
+ return 1
86
+ else
87
+ exit 1
88
+ fi
89
+ fi
90
+ _programgym_go_with_nexus_timeout() {
91
+ local programgym_go_rc
92
+ local programgym_go_timeout_sentinel
93
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
94
+ return 1
95
+ fi
96
+ 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
97
+ programgym_go_rc=0
98
+ else
99
+ programgym_go_rc=$?
100
+ fi
101
+ programgym_go_timed_out=0
102
+ if [ -s "$programgym_go_timeout_sentinel" ]; then
103
+ programgym_go_timed_out=1
104
+ fi
105
+ rm -f "$programgym_go_timeout_sentinel"
106
+ if [ "$programgym_go_rc" -eq 0 ]; then
107
+ return 0
108
+ fi
109
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
110
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; GOPROXY has no explicit non-empty fallback remainder" >&2
111
+ return "$programgym_go_rc"
112
+ fi
113
+ if [ "$programgym_go_timed_out" -eq 1 ]; then
114
+ 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
115
+ else
116
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
117
+ fi
118
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
119
+ }
120
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
121
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
122
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
123
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
124
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
125
+ return 1
126
+ else
127
+ exit 1
128
+ fi
129
+ fi
130
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
131
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
132
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
133
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
134
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
135
+ else
136
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
137
+ fi
138
+ export PATH="$GOROOT/bin:$PATH"
139
+ export GOTOOLCHAIN=local
140
+ # No external Go module dependencies to prefetch.
141
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
142
+ unset -f _programgym_go_with_nexus_timeout
143
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
144
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
145
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
146
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
147
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
pointlander--peg.792d23c/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ea689fa2c5ea022d124401b845f5c6045b19403781ee681202ad035d13a6318
3
+ size 5508393
pointlander--peg.792d23c/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
pointlander--peg.792d23c/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
pointlander--peg.792d23c/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
pointlander--peg.792d23c/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
pointlander--peg.792d23c/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:020527b5e0ba53a70b16ea07fb96a645330c9b5b729737cea1c0502c2aa5a440
3
+ size 3434
pointlander--peg.792d23c/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
pointlander--peg.792d23c/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
pointlander--peg.792d23c/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/pointlander--peg.792d23c"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for pointlander/peg"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "pointlander__peg.792d23c"
32
+ repository = "pointlander/peg"
33
+ commit = "792d23c3bf85af878faf2541feef19a66cf4363a"
34
+ language = "go"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.7581546219673898
37
+ test_branches = 4
38
+ test_count = 279
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"
pointlander--peg.792d23c/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"]
pointlander--peg.792d23c/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:df5ba18e237042b077f11b3b1cadd480e588fc14448ad52843202d60634c31d4
3
+ size 7508
pointlander--peg.792d23c/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:49e716e6d0b8b3c24bb7b51a30930bb105b62e29572a1ceb5b8a40b967a0df7b
3
+ size 9844
pointlander--peg.792d23c/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:f14adce83c0e91afd4e0e9fdec79de60628f910588b37811133b4828662f4ca3
3
+ size 6793
pointlander--peg.792d23c/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:f840d0ef50ef02d5f753147a15de62344e50fd88d07bad9cb468965b858e0ac6
3
+ size 11435
pointlander--peg.792d23c/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}
pointlander--peg.792d23c/tests/download.sh ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/pointlander/peg
9
+
10
+ go 1.25
11
+
12
+ tool github.com/pointlander/peg
13
+ PROGRAMGYM_GO_MOD_EOF
14
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
15
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
16
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
17
+ *"|"*|*","*)
18
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
19
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
20
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
21
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
22
+ fi
23
+ ;;
24
+ esac
25
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
26
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
27
+ fi
28
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
29
+ import os
30
+ import signal
31
+ import subprocess
32
+ import sys
33
+ import time
34
+
35
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
36
+ if not command:
37
+ raise SystemExit(125)
38
+ environment = os.environ.copy()
39
+ environment["GOPROXY"] = proxy
40
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
41
+ try:
42
+ returncode = process.wait(timeout=float(timeout_text))
43
+ except subprocess.TimeoutExpired:
44
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
45
+ sentinel.write("expired\n")
46
+ try:
47
+ os.killpg(process.pid, signal.SIGTERM)
48
+ except ProcessLookupError:
49
+ pass
50
+ deadline = time.monotonic() + float(grace_text)
51
+ group_alive = True
52
+ while time.monotonic() < deadline:
53
+ process.poll()
54
+ try:
55
+ os.killpg(process.pid, 0)
56
+ except ProcessLookupError:
57
+ group_alive = False
58
+ break
59
+ time.sleep(0.05)
60
+ if group_alive:
61
+ try:
62
+ os.killpg(process.pid, signal.SIGKILL)
63
+ except ProcessLookupError:
64
+ pass
65
+ process.wait()
66
+ raise SystemExit(124)
67
+ if returncode < 0:
68
+ returncode = 128 - returncode
69
+ raise SystemExit(returncode)
70
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
71
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
72
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
73
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
74
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
75
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
76
+ return 1
77
+ else
78
+ exit 1
79
+ fi
80
+ fi
81
+ if ! command -v python3 >/dev/null 2>&1; then
82
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
83
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
84
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
85
+ return 1
86
+ else
87
+ exit 1
88
+ fi
89
+ fi
90
+ _programgym_go_with_nexus_timeout() {
91
+ local programgym_go_rc
92
+ local programgym_go_timeout_sentinel
93
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
94
+ return 1
95
+ fi
96
+ 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
97
+ programgym_go_rc=0
98
+ else
99
+ programgym_go_rc=$?
100
+ fi
101
+ programgym_go_timed_out=0
102
+ if [ -s "$programgym_go_timeout_sentinel" ]; then
103
+ programgym_go_timed_out=1
104
+ fi
105
+ rm -f "$programgym_go_timeout_sentinel"
106
+ if [ "$programgym_go_rc" -eq 0 ]; then
107
+ return 0
108
+ fi
109
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
110
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; GOPROXY has no explicit non-empty fallback remainder" >&2
111
+ return "$programgym_go_rc"
112
+ fi
113
+ if [ "$programgym_go_timed_out" -eq 1 ]; then
114
+ 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
115
+ else
116
+ printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
117
+ fi
118
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
119
+ }
120
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
121
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
122
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
123
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
124
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
125
+ return 1
126
+ else
127
+ exit 1
128
+ fi
129
+ fi
130
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
131
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
132
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
133
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
134
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
135
+ else
136
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
137
+ fi
138
+ export PATH="$GOROOT/bin:$PATH"
139
+ export GOTOOLCHAIN=local
140
+ # No external Go module dependencies to prefetch.
141
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
142
+ unset -f _programgym_go_with_nexus_timeout
143
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
144
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
145
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
146
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
147
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
pointlander--peg.792d23c/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ea689fa2c5ea022d124401b845f5c6045b19403781ee681202ad035d13a6318
3
+ size 5508393
pointlander--peg.792d23c/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
pointlander--peg.792d23c/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
pointlander--peg.792d23c/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
pointlander--peg.792d23c/tests/programgym-go.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
3
+ size 59908810
pointlander--peg.792d23c/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()
pointlander--peg.792d23c/tests/programgym_task.json ADDED
@@ -0,0 +1,400 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [],
7
+ "tests": [
8
+ "eval.tests.test_peg_main.test_default_output_file_content_semantics",
9
+ "eval.tests.test_peg_main.test_default_output_file_is_input_name_plus_go",
10
+ "eval.tests.test_peg_main.test_empty_grammar_strict_exits_1",
11
+ "eval.tests.test_peg_main.test_empty_grammar_warning_non_strict",
12
+ "eval.tests.test_peg_main.test_generated_source_is_valid_formatted_go",
13
+ "eval.tests.test_peg_main.test_header_embeds_compiler_flag_vector[f0]",
14
+ "eval.tests.test_peg_main.test_header_embeds_compiler_flag_vector[f1]",
15
+ "eval.tests.test_peg_main.test_header_embeds_compiler_flag_vector[f2]",
16
+ "eval.tests.test_peg_main.test_header_embeds_compiler_flag_vector[f3]",
17
+ "eval.tests.test_peg_main.test_header_embeds_compiler_flag_vector[f4]",
18
+ "eval.tests.test_peg_main.test_header_embeds_compiler_flag_vector[f5]",
19
+ "eval.tests.test_peg_main.test_header_embeds_compiler_flag_vector[f6]",
20
+ "eval.tests.test_peg_main.test_help_prints_usage_to_stderr",
21
+ "eval.tests.test_peg_main.test_input_file_vs_stdin_selection",
22
+ "eval.tests.test_peg_main.test_left_recursion_action_generation",
23
+ "eval.tests.test_peg_main.test_literal_and_class_rules_generate",
24
+ "eval.tests.test_peg_main.test_malformed_grammar_strict_exits_1",
25
+ "eval.tests.test_peg_main.test_malformed_grammar_warning_non_strict",
26
+ "eval.tests.test_peg_main.test_missing_input_file_strict_exits_1",
27
+ "eval.tests.test_peg_main.test_missing_input_file_warning_non_strict",
28
+ "eval.tests.test_peg_main.test_multi_rule_grammar_generates_rule_constants",
29
+ "eval.tests.test_peg_main.test_output_file_is_truncated_before_write",
30
+ "eval.tests.test_peg_main.test_output_file_specified_writes_to_it",
31
+ "eval.tests.test_peg_main.test_print_flag_dumps_parse_tree",
32
+ "eval.tests.test_peg_main.test_print_flag_parse_tree_reports_positions",
33
+ "eval.tests.test_peg_main.test_print_with_output_file",
34
+ "eval.tests.test_peg_main.test_stdin_no_positional_writes_to_stdout",
35
+ "eval.tests.test_peg_main.test_stdin_positional_dash_with_output_flag",
36
+ "eval.tests.test_peg_main.test_stdin_positional_dash_writes_to_stdout",
37
+ "eval.tests.test_peg_main.test_strict_success_still_exits_0",
38
+ "eval.tests.test_peg_main.test_syntax_and_print_trees_are_distinct",
39
+ "eval.tests.test_peg_main.test_syntax_flag_dumps_syntax_tree",
40
+ "eval.tests.test_peg_main.test_syntax_tree_contains_peg_text_values",
41
+ "eval.tests.test_peg_main.test_syntax_with_output_file",
42
+ "eval.tests.test_peg_main.test_undefined_rule_strict_exits_1",
43
+ "eval.tests.test_peg_main.test_undefined_rule_warning_non_strict_still_generates",
44
+ "eval.tests.test_peg_main.test_undefined_rule_warning_non_strict_to_stdout",
45
+ "eval.tests.test_peg_main.test_unwritable_output_strict_exits_1",
46
+ "eval.tests.test_peg_main.test_unwritable_output_warning_non_strict",
47
+ "eval.tests.test_peg_main.test_valid_grammar_writes_generated_source_to_stdout",
48
+ "eval.tests.test_peg_main.test_version_prints_version",
49
+ "eval.tests.test_peg_main.test_version_short_circuits_input_processing"
50
+ ]
51
+ },
52
+ "generated_module_02": {
53
+ "ignore_reason": "",
54
+ "ignored": false,
55
+ "ignored_tests": [],
56
+ "tests": [
57
+ "eval.tests.test_cli.test_empty_stdin_is_parse_failure_not_crash",
58
+ "eval.tests.test_cli.test_help_lists_parser_flags[double-help]",
59
+ "eval.tests.test_cli.test_help_lists_parser_flags[short-h]",
60
+ "eval.tests.test_cli.test_help_lists_parser_flags[single-help]",
61
+ "eval.tests.test_cli.test_input_dash_reads_stdin",
62
+ "eval.tests.test_cli.test_unknown_flag_rejected",
63
+ "eval.tests.test_cli.test_valid_grammar_produces_no_warning",
64
+ "eval.tests.test_cli.test_version_banner",
65
+ "eval.tests.test_cli.test_whitespace_only_stdin_fails_to_parse",
66
+ "eval.tests.test_constructs.test_class_with_escaped_dash",
67
+ "eval.tests.test_constructs.test_double_multi_range_flips_case",
68
+ "eval.tests.test_constructs.test_empty_parenthesized_group",
69
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\\"]",
70
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\']",
71
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\-]",
72
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\[]",
73
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\\\\\]",
74
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\]]",
75
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\a]",
76
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\b]",
77
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\e]",
78
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\f]",
79
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\r]",
80
+ "eval.tests.test_constructs.test_escape_literal_rune_compare[\\\\v]",
81
+ "eval.tests.test_constructs.test_hash_header_comment_accepted",
82
+ "eval.tests.test_constructs.test_import_alias_surfaces_in_import_block",
83
+ "eval.tests.test_constructs.test_inline_flag_generates_parser",
84
+ "eval.tests.test_constructs.test_malformed_construct_reports_parse_error[bad_escape]",
85
+ "eval.tests.test_constructs.test_malformed_construct_reports_parse_error[stray_close_paren]",
86
+ "eval.tests.test_constructs.test_malformed_construct_reports_parse_error[unclosed_double_class]",
87
+ "eval.tests.test_constructs.test_malformed_construct_reports_parse_error[unclosed_dquote_literal]",
88
+ "eval.tests.test_constructs.test_malformed_construct_reports_parse_error[unclosed_group]",
89
+ "eval.tests.test_constructs.test_multi_range_lowers_to_two_ranges",
90
+ "eval.tests.test_constructs.test_multiple_definitions_connect",
91
+ "eval.tests.test_constructs.test_negated_multi_range_class",
92
+ "eval.tests.test_constructs.test_nested_action_braces",
93
+ "eval.tests.test_constructs.test_noast_removes_syntax_tree_methods",
94
+ "eval.tests.test_constructs.test_noast_still_dumps_syntax",
95
+ "eval.tests.test_constructs.test_slash_slash_comment_accepted",
96
+ "eval.tests.test_constructs.test_switch_flag_emits_switch",
97
+ "eval.tests.test_constructs.test_trailing_slash_alternation_is_nil",
98
+ "eval.tests.test_constructs.test_unicode_left_arrow_as_assignment",
99
+ "eval.tests.test_errors.test_directory_as_input_reread_error",
100
+ "eval.tests.test_errors.test_malformed_grammar_reports_parse_error[missing_type_body-package main\\ntype T Peg\\nGrammar <- 'a'\\n-parse error]",
101
+ "eval.tests.test_errors.test_malformed_grammar_reports_parse_error[no_space_package-package\\ntype T Peg {}\\nGrammar <- 'a'\\n-parse error]",
102
+ "eval.tests.test_errors.test_malformed_grammar_reports_parse_error[unclosed_action-package main\\ntype T Peg {}\\nGrammar <- { not closed\\n-Action]",
103
+ "eval.tests.test_errors.test_missing_input_file_reports_warning",
104
+ "eval.tests.test_errors.test_parse_error_mentions_rule_and_line",
105
+ "eval.tests.test_errors.test_strict_missing_input_is_fatal",
106
+ "eval.tests.test_errors.test_unterminated_class_is_rejected",
107
+ "eval.tests.test_errors.test_unterminated_literal_is_rejected",
108
+ "eval.tests.test_io.test_default_output_file_created",
109
+ "eval.tests.test_io.test_imports_declared_in_grammar_emitted",
110
+ "eval.tests.test_io.test_multi_import_block",
111
+ "eval.tests.test_io.test_output_dash_writes_stdout_not_file",
112
+ "eval.tests.test_io.test_output_overwrites_existing_file",
113
+ "eval.tests.test_io.test_output_to_specific_file",
114
+ "eval.tests.test_parse_success.test_alternation_decision_labels",
115
+ "eval.tests.test_parse_success.test_char_class_range_checks",
116
+ "eval.tests.test_parse_success.test_double_quote_literal_codegen",
117
+ "eval.tests.test_parse_success.test_predicates_lookahead",
118
+ "eval.tests.test_parse_success.test_sequence_literals_lowered",
119
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[action_body]",
120
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[alternation]",
121
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[and_predicate]",
122
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[char_class]",
123
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[dot_rule]",
124
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[double_char_class]",
125
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[double_inverted_class]",
126
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[double_quote_literal]",
127
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[hex_escape]",
128
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[inverted_class]",
129
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[minimal_single_quote]",
130
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[nested_quantifiers]",
131
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[newline_escape]",
132
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[not_predicate]",
133
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[octal_escape]",
134
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[one_or_more]",
135
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[optional]",
136
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[parenthesized]",
137
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[push_begin_end]",
138
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[sequence]",
139
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[tab_escape]",
140
+ "eval.tests.test_parse_success.test_valid_grammar_compiles[zero_or_more]",
141
+ "eval.tests.test_syntax.test_print_dump_maps_classes",
142
+ "eval.tests.test_syntax.test_print_dump_maps_escapes",
143
+ "eval.tests.test_syntax.test_print_dump_token_positions_recorded",
144
+ "eval.tests.test_syntax.test_syntax_tree_contains_grammar_rules",
145
+ "eval.tests.test_syntax.test_syntax_tree_pretty_uses_ansi",
146
+ "eval.tests.test_warnings.test_defined_but_not_used_warning",
147
+ "eval.tests.test_warnings.test_left_recursion_warning",
148
+ "eval.tests.test_warnings.test_strict_defined_but_unused_is_fatal",
149
+ "eval.tests.test_warnings.test_strict_left_recursion_is_fatal",
150
+ "eval.tests.test_warnings.test_strict_turns_warning_into_failure",
151
+ "eval.tests.test_warnings.test_used_but_not_defined_warning",
152
+ "eval.tests.test_warnings.test_warnings_output_directed_to_stderr_not_stdout"
153
+ ]
154
+ },
155
+ "generated_module_03": {
156
+ "ignore_reason": "",
157
+ "ignored": false,
158
+ "ignored_tests": [],
159
+ "tests": [
160
+ "eval.tests.test_peg_tree.test_action_block_is_embedded_in_generated_parser",
161
+ "eval.tests.test_peg_tree.test_adversarial_input_always_terminates[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]",
162
+ "eval.tests.test_peg_tree.test_adversarial_input_always_terminates[\\x00]",
163
+ "eval.tests.test_peg_tree.test_adversarial_input_always_terminates[]",
164
+ "eval.tests.test_peg_tree.test_adversarial_input_always_terminates[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]",
165
+ "eval.tests.test_peg_tree.test_adversarial_input_always_terminates[package p\\ntype T Peg {}\\nGrammar <- [unclosed.\\n]",
166
+ "eval.tests.test_peg_tree.test_default_output_writes_input_dot_go_file",
167
+ "eval.tests.test_peg_tree.test_defined_but_not_used_is_a_warning",
168
+ "eval.tests.test_peg_tree.test_empty_stdin_emits_parse_error",
169
+ "eval.tests.test_peg_tree.test_explicit_output_flag_writes_named_file",
170
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags0]",
171
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags1]",
172
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags2]",
173
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags3]",
174
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags4]",
175
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags5]",
176
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags6]",
177
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags7]",
178
+ "eval.tests.test_peg_tree.test_flag_combinations_compile_and_record_flags_in_header[flags8]",
179
+ "eval.tests.test_peg_tree.test_generated_code_is_deterministic",
180
+ "eval.tests.test_peg_tree.test_generated_package_and_parser_type_preserved",
181
+ "eval.tests.test_peg_tree.test_generated_source_contains_parser_rule_dispatching",
182
+ "eval.tests.test_peg_tree.test_grammar_from_stdin_compiles",
183
+ "eval.tests.test_peg_tree.test_help_flag_lists_all_compiler_flags[--help]",
184
+ "eval.tests.test_peg_tree.test_help_flag_lists_all_compiler_flags[-h]",
185
+ "eval.tests.test_peg_tree.test_help_flag_lists_all_compiler_flags[-help]",
186
+ "eval.tests.test_peg_tree.test_malformed_reader_input_emits_parse_error[Garbage here\\n]",
187
+ "eval.tests.test_peg_tree.test_malformed_reader_input_emits_parse_error[package p\\n]",
188
+ "eval.tests.test_peg_tree.test_malformed_reader_input_emits_parse_error[type T Peg {}\\n]",
189
+ "eval.tests.test_peg_tree.test_missing_input_file_warns_but_does_not_crash",
190
+ "eval.tests.test_peg_tree.test_noast_disables_ast_support_dependencies",
191
+ "eval.tests.test_peg_tree.test_output_dash_writes_to_stdout_not_file",
192
+ "eval.tests.test_peg_tree.test_print_dump_lists_tokens_and_offsets",
193
+ "eval.tests.test_peg_tree.test_rule_alternates_generate_separate_rule_constants",
194
+ "eval.tests.test_peg_tree.test_strict_promotes_warning_to_fatal[package p\\ntype T Peg {}\\nA <- A 'x'.\\n-possible infinite left recursion]",
195
+ "eval.tests.test_peg_tree.test_strict_promotes_warning_to_fatal[package p\\ntype T Peg {}\\nGrammar <- 'x'.\\nUnused <- 'y'.\\n-defined but not used]",
196
+ "eval.tests.test_peg_tree.test_strict_promotes_warning_to_fatal[package p\\ntype T Peg {}\\nGrammar <- Missing.\\n-used but not defined]",
197
+ "eval.tests.test_peg_tree.test_switch_flag_rewrites_if_else_to_switch_blocks",
198
+ "eval.tests.test_peg_tree.test_syntax_dump_lists_rules",
199
+ "eval.tests.test_peg_tree.test_unreached_and_undefined_combined_warnings",
200
+ "eval.tests.test_peg_tree.test_valid_grammar_compiles_generated_go_to_stdout[min-package p-ruleUnknown pegRule]",
201
+ "eval.tests.test_peg_tree.test_valid_grammar_compiles_generated_go_to_stdout[ops-package ops-ruleUnknown pegRule]",
202
+ "eval.tests.test_peg_tree.test_valid_grammar_compiles_generated_go_to_stdout[simple-package mypkg-ruleUnknown pegRule]",
203
+ "eval.tests.test_peg_tree.test_version_flag_prints_exact_version",
204
+ "eval.tests.test_peg_tree.test_warning_strict_is_fatal_wherease_non_strict_succeeds",
205
+ "eval.tests.test_peg_tree.test_warnings_emitted_and_non_fatal[package p\\ntype T Peg {}\\nA <- A 'x'.\\n-possible infinite left recursion-left-recursion]",
206
+ "eval.tests.test_peg_tree.test_warnings_emitted_and_non_fatal[package p\\ntype T Peg {}\\nGrammar <- Missing.\\n-used but not defined-undefined-reference]"
207
+ ]
208
+ },
209
+ "generated_module_04": {
210
+ "ignore_reason": "",
211
+ "ignored": false,
212
+ "ignored_tests": [],
213
+ "tests": [
214
+ "eval.tests.test_cli_args_help_io.test_default_output_file_side_effect",
215
+ "eval.tests.test_cli_args_help_io.test_help_flag_long",
216
+ "eval.tests.test_cli_args_help_io.test_help_flag_short",
217
+ "eval.tests.test_cli_args_help_io.test_inline_and_noast_flags_generate",
218
+ "eval.tests.test_cli_args_help_io.test_missing_file_fatal_with_strict",
219
+ "eval.tests.test_cli_args_help_io.test_missing_file_warns_nonfatal",
220
+ "eval.tests.test_cli_args_help_io.test_multi_rule_grammar_switch",
221
+ "eval.tests.test_cli_args_help_io.test_output_flag_writes_named_file",
222
+ "eval.tests.test_cli_args_help_io.test_parse_error_fatal_with_strict",
223
+ "eval.tests.test_cli_args_help_io.test_parse_error_warns_nonfatal",
224
+ "eval.tests.test_cli_args_help_io.test_print_dumps_tokens_to_stdout",
225
+ "eval.tests.test_cli_args_help_io.test_stdin_grammar_output_stdout",
226
+ "eval.tests.test_cli_args_help_io.test_stdin_switch_runs_optimizer",
227
+ "eval.tests.test_cli_args_help_io.test_syntax_dumps_tree_to_stdout",
228
+ "eval.tests.test_cli_args_help_io.test_unknown_flag_rejected",
229
+ "eval.tests.test_cli_args_help_io.test_version_flag",
230
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_notpeek_char]",
231
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_notpeek_dot]",
232
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_notpeek_leading]",
233
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_notpeek_mid]",
234
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_notpeek_of_sequence]",
235
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_notpeek_with_range]",
236
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_after_sequence]",
237
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_among_ranges]",
238
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_between_two]",
239
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_dot]",
240
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_five_branches]",
241
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_four_branches]",
242
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_leading_range]",
243
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_of_alternate]",
244
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_of_range]",
245
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_of_seq_leading]",
246
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_of_sequence]",
247
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_peek_with_range]",
248
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_two_leading_peeks]",
249
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyset_two_peek_branches]",
250
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyunion_peek_char_mid]",
251
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyunion_peek_char_second]",
252
+ "eval.tests.test_set_empty_and_intersects.test_empty_branch_set_rewrite[set_emptyunion_peek_char_third]",
253
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_char_in_own_range_ordered]",
254
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_char_inside_leading_range]",
255
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_char_overlap_three_ranges]",
256
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_contained_char_kept_ordered]",
257
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_contained_char_mid_hybrid]",
258
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_containment_middle]",
259
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_dot_and_peek_ordered]",
260
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_edge_continuity_three]",
261
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_end_inside_chain]",
262
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_end_inside_reversed_edge]",
263
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_end_inside_three_branches]",
264
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_leading_char_hybrid]",
265
+ "eval.tests.test_set_empty_and_intersects.test_end_inside_overlap_ordered[set_intersects_reversed_containment]",
266
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_addrange_adjacent_touching_ranges_disjoint]",
267
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_five_branch_mixed_chars_and_range]",
268
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_has_char_plus_ranges_distinct_spans]",
269
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_intersects_false_four_disjoint_ranges]",
270
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_intersects_false_three_disjoint_ranges]",
271
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_len_orders_descending_chars_with_range]",
272
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_len_orders_digit_range_lower_chars]",
273
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_mixed_hybrid_disjoint_ordered]",
274
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_mixed_ordered_overlap_char_in_sequence]",
275
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_mixed_ordered_then_unordered_hybrid]",
276
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_mixed_single_char_plus_sequence_overlap]",
277
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_two_disjoint_ranges_below_rewrite_gate]",
278
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_union_digit_and_alpha_ranges]",
279
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_union_three_ranges_with_char]",
280
+ "eval.tests.test_set_rewrite_extended.test_extended_switch_rewrite[set_union_wide_range_narrow_range_char]",
281
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_add_single_char_is_then_detectable]",
282
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_addrange_digit_range]",
283
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_addrange_single_range_preserved]",
284
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_addrange_three_ranges_split_to_predicates]",
285
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_addrange_unicode_runes]",
286
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_dot_complement_single_dot_untouched]",
287
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_dot_overlaps_everything_ordered]",
288
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_dot_overlaps_range_ordered]",
289
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_followset_of_sequence_branches]",
290
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_followset_sequence_among_disjoint_branches]",
291
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_has_len_mixed_char_and_range_branches]",
292
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_false_three_disjoint]",
293
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_3way_shared_prefix]",
294
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_adjacent_ranges_share_edge]",
295
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_char_in_range]",
296
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_char_over_big_range]",
297
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_duplicate_char]",
298
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_overlapping_ranges]",
299
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_seq_and_char_share_first]",
300
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_intersects_true_shared_prefix_keeps_order]",
301
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_len_orders_five_disjoint_predicates]",
302
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_len_orders_seven_disjoint_predicates]",
303
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_single_branch_alternate_collapses]",
304
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_two_disjoint_branches_below_gate_range]",
305
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_two_disjoint_branches_below_rewrite_gate]",
306
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_two_disjoint_case_branches_below_gate]",
307
+ "eval.tests.test_set_switch_behavior.test_switch_rewrite[set_union_memberwise_predicates_two_ranges]"
308
+ ]
309
+ }
310
+ },
311
+ "commit": "792d23c3bf85af878faf2541feef19a66cf4363a",
312
+ "data_source": "synthetic_programgym",
313
+ "difficulty": "easy",
314
+ "difficulty_score": 1.7581546219673898,
315
+ "eval_clean_hashes": [
316
+ "3ea689fa2c5ea022d124401b845f5c6045b19403781ee681202ad035d13a6318"
317
+ ],
318
+ "input_record": {
319
+ "commit": "792d23c3bf85af878faf2541feef19a66cf4363a",
320
+ "commits": 338,
321
+ "contributors": 40,
322
+ "difficulty": "easy",
323
+ "difficulty_code_lines": 5730,
324
+ "difficulty_has_tests": false,
325
+ "difficulty_product_code_lines": 5730,
326
+ "difficulty_runtime_deps": 0,
327
+ "difficulty_score": 1.7581546219673898,
328
+ "difficulty_test_code_lines": 951,
329
+ "full_name": "pointlander/peg",
330
+ "github_stars": 1113,
331
+ "input_joern_zip": "go_joern/pointlander__peg.zip",
332
+ "joern_status": true,
333
+ "joern_time": 14.223653289023787,
334
+ "language": "go",
335
+ "pb_match": [
336
+ {
337
+ "pb_fullname": "alecthomas/chroma",
338
+ "rank": 784,
339
+ "similarity": 0.46113184094429016
340
+ },
341
+ {
342
+ "pb_fullname": "noborus/ov",
343
+ "rank": 809,
344
+ "similarity": 0.49112311005592346
345
+ },
346
+ {
347
+ "pb_fullname": "sibprogrammer/xq",
348
+ "rank": 521,
349
+ "similarity": 0.4930620491504669
350
+ },
351
+ {
352
+ "pb_fullname": "tomnomnom/gron",
353
+ "rank": 599,
354
+ "similarity": 0.48763078451156616
355
+ }
356
+ ],
357
+ "repo_age": 16.28,
358
+ "repo_path": "go/pointlander__peg",
359
+ "source": "commit:792d23c3bf85af878faf2541feef19a66cf4363a",
360
+ "status": "done",
361
+ "url": "https://github.com/pointlander/peg"
362
+ },
363
+ "instance_id": "pointlander__peg.792d23c",
364
+ "language": "go",
365
+ "module_iterations": [
366
+ {
367
+ "actual_iterations": 2,
368
+ "branch_name": "generated_module_01",
369
+ "iteration_limit": 5,
370
+ "module_index": 1,
371
+ "module_kind": "source",
372
+ "termination_reason": "module_coverage_threshold_reached"
373
+ },
374
+ {
375
+ "actual_iterations": 3,
376
+ "branch_name": "generated_module_02",
377
+ "iteration_limit": 5,
378
+ "module_index": 2,
379
+ "module_kind": "source",
380
+ "termination_reason": "module_coverage_threshold_reached"
381
+ },
382
+ {
383
+ "actual_iterations": 2,
384
+ "branch_name": "generated_module_03",
385
+ "iteration_limit": 5,
386
+ "module_index": 3,
387
+ "module_kind": "source",
388
+ "termination_reason": "module_coverage_threshold_reached"
389
+ },
390
+ {
391
+ "actual_iterations": 5,
392
+ "branch_name": "generated_module_04",
393
+ "iteration_limit": 5,
394
+ "module_index": 4,
395
+ "module_kind": "source",
396
+ "termination_reason": "max_iterations"
397
+ }
398
+ ],
399
+ "repository": "pointlander/peg"
400
+ }
pointlander--peg.792d23c/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
pointlander--peg.792d23c/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:020527b5e0ba53a70b16ea07fb96a645330c9b5b729737cea1c0502c2aa5a440
3
+ size 3434
polachok--fahrenheit.3f2f133/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"]
polachok--fahrenheit.3f2f133/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"]
poseidon-fan--gung.73b990c/environment/Dockerfile ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
57
+ ENV PAGER=cat
58
+ ENV MANPAGER=cat
59
+ ENV LESS=-R
60
+ ENV TQDM_DISABLE=1
61
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
62
+ # programgym_quota_aware_nproc=1
63
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
64
+ WORKDIR /workspace
65
+ ADD workspace.tar.gz /workspace/
66
+ COPY executable /workspace/executable
67
+ COPY download.sh /workspace/download.sh
68
+ RUN chmod 755 /workspace/download.sh
69
+ ENV HOME=/rust_env
70
+ ENV CARGO_HOME=/rust_env/.cargo
71
+ ENV RUSTUP_HOME=/rust_env/.rustup
72
+ ENV XDG_CACHE_HOME=/rust_env/.cache
73
+ ENV CARGO_TARGET_DIR=/workspace/target
74
+ ENV PROGRAMGYM_RUST_ENV_ROOT=/rust_env
75
+ ENV PROGRAMGYM_RUST_BOOTSTRAP=1
76
+ ENV PROGRAMGYM_RUST_INSTANCE_ID=Poseidon-fan__Gung.73b990c
77
+ ENV PATH=/rust_env/.cargo/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
78
+ RUN mkdir -p /rust_env/.cargo /rust_env/.rustup /rust_env/.cache
79
+ COPY harbor_prepare_rust_env.sh /tmp/harbor_prepare_rust_env.sh
80
+ RUN /bin/bash /tmp/harbor_prepare_rust_env.sh \
81
+ && rm -f /tmp/harbor_prepare_rust_env.sh
82
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
83
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
84
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
85
+ && rm -f /workspace/download.sh \
86
+ && rm -f /tmp/harbor_prepare_download_env.sh
87
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
88
+ RUN chmod 111 /workspace/executable
89
+ WORKDIR /workspace
90
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
91
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
92
+ # submission handed to the separate verifier. Keep the reference executable
93
+ # execute-only; the oracle temporarily restores owner read permission.
94
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
95
+ RUN mkdir -p /home/agent \
96
+ && chown -R agent:agent /home/agent /workspace \
97
+ && chown agent:agent /workspace/executable \
98
+ && chmod 111 /workspace/executable
99
+ ENV HOME=/home/agent
100
+ WORKDIR /workspace
101
+ 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"]
poseidon-fan--gung.73b990c/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}
poseidon-fan--gung.73b990c/environment/download.sh ADDED
@@ -0,0 +1,3500 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh — ProgramGym networked dependency-prefetch stage for the Gung Rust workspace.
3
+ #
4
+ # Runs via `source /source_ro/download.sh` in a read-only mount while networked.
5
+ # It must NOT compile/link/test the project, must NOT read any repository file, and must
6
+ # be source-safe (no `exit` in normal control flow; failures use an explicit sourced-return
7
+ # branch).
8
+ #
9
+ # Strategy: replicate the repository's Cargo workspace tree (member manifests + workspace
10
+ # dependency constraints) AND its exact Cargo.lock from inline here-docs into a temporary
11
+ # directory, then run
12
+ # cargo fetch --manifest-path "$FETCH_DIR/Cargo.toml" --locked
13
+ # so the shared CARGO_HOME registry cache is populated with exactly the dependency closure
14
+ # (locked versions) the offline build of the "client" binary (gungc) will need. The offline
15
+ # build (build.sh) runs in /workspace/source with the same CARGO_HOME and +--offline.
16
+
17
+ # ---- environment the offline build stage relies on -------------------------
18
+ export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
19
+ mkdir -p "$CARGO_HOME"
20
+
21
+ FETCH_DIR="${PROGRAMGYM_FETCH_DIR:-/tmp/programgym_fetch}"
22
+
23
+ # ---- (re)create a clean, faithful copy of the workspace manifests ----------
24
+ rm -rf "$FETCH_DIR"
25
+ mkdir -p "$FETCH_DIR/client/src" \
26
+ "$FETCH_DIR/server/src" \
27
+ "$FETCH_DIR/components/transport/src" \
28
+ "$FETCH_DIR/components/config/src" \
29
+ "$FETCH_DIR/components/auth/src" \
30
+ "$FETCH_DIR/components/cert/src" \
31
+ "$FETCH_DIR/components/protocol/src" \
32
+ "$FETCH_DIR/components/plugin/src"
33
+
34
+ # ---- root workspace manifest ------------------------------------------------
35
+ cat > "$FETCH_DIR/Cargo.toml" <<'ROOT_CARGO'
36
+ [workspace]
37
+ members = ["server", "client", "components/*"]
38
+ exclude = ["pylib"]
39
+ resolver = "2"
40
+
41
+ [workspace.package]
42
+ version = "0.1.0"
43
+ edition = "2024"
44
+ authors = ["Poseidon <18646154381@163.com>"]
45
+ license = "MIT"
46
+
47
+ [workspace.dependencies]
48
+ clap = { version = "4", features = ["derive"] }
49
+ serde = { version = "1", features = ["derive"] }
50
+ serde_json = "1.0.149"
51
+ toml = "1.0.7"
52
+ anyhow = "1.0"
53
+ tokio = { version = "1", features = ["full"] }
54
+ pyo3 = { version = "0.26.0", features = ["auto-initialize", "serde"] }
55
+ pythonize = "0.26.0"
56
+ async-trait = "0.1.89"
57
+ semver = "1.0.28"
58
+ uuid = { version = "1.22.0", features = ["v4"] }
59
+ rustls = { version = "0.23.37", default-features = false, features = ["std"] }
60
+ quinn = "0.11.9"
61
+ directories-next = "2"
62
+ rcgen = "0.14"
63
+ tracing = "0.1"
64
+ tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
65
+ net-mux = "0.2.4"
66
+ rustls-native-certs = "0.8.3"
67
+ rand_set = "0.1.2"
68
+ parking_lot = "0.12.5"
69
+ tokio-util = { version = "0.7.18", features = ["codec", "io"] }
70
+ futures-util = "0.3.32"
71
+ strum = { version = "0.28.0", features = ["derive"] }
72
+ bincode = "2.0.1"
73
+ atty = "0.2.14"
74
+ hyper = { version = "1", features = ["full"] }
75
+ http-body-util = "0.1"
76
+ hyper-util = { version = "0.1", features = ["full"] }
77
+ multi_index_map = "0.15.1"
78
+ url = "2.5.8"
79
+ rand = "0.10.1"
80
+ base32 = "0.5.1"
81
+ tokio_kcp = "0.9.8"
82
+ tokio-tungstenite = "0.29.0"
83
+ bytes = "1.11.1"
84
+ tokio-rustls = { version = "0.26.4", features = ["aws-lc-rs"] }
85
+ ROOT_CARGO
86
+
87
+ # ---- server crate -----------------------------------------------------------
88
+ cat > "$FETCH_DIR/server/Cargo.toml" <<'SERVER_CARGO'
89
+ [package]
90
+ name = "server"
91
+ version.workspace = true
92
+ edition.workspace = true
93
+ authors.workspace = true
94
+ license.workspace = true
95
+
96
+ [dependencies]
97
+ clap = { workspace = true }
98
+ serde_json = { workspace = true }
99
+ toml = { workspace = true }
100
+ anyhow = { workspace = true }
101
+ tokio = { workspace = true }
102
+ rustls = { workspace = true }
103
+ tracing = { workspace = true }
104
+ tracing-subscriber = { workspace = true }
105
+ rand_set = { workspace = true }
106
+ parking_lot = { workspace = true }
107
+ async-trait = { workspace = true }
108
+ tokio-util = { workspace = true }
109
+ futures-util = { workspace = true }
110
+ semver = { workspace = true }
111
+ atty = { workspace = true }
112
+ pyo3 = { workspace = true }
113
+ hyper = { workspace = true }
114
+ hyper-util = { workspace = true }
115
+ multi_index_map = { workspace = true }
116
+ url = { workspace = true }
117
+ rand = { workspace = true }
118
+ base32 = { workspace = true }
119
+ transport = { path = "../components/transport" }
120
+ config = { path = "../components/config" }
121
+ auth = { path = "../components/auth" }
122
+ protocol = { path = "../components/protocol" }
123
+ plugin = { path = "../components/plugin" }
124
+
125
+ [[bin]]
126
+ name = "gungs"
127
+ path = "src/main.rs"
128
+ SERVER_CARGO
129
+ printf 'fn main() {}\n' > "$FETCH_DIR/server/src/main.rs"
130
+
131
+ # ---- client crate -----------------------------------------------------------
132
+ cat > "$FETCH_DIR/client/Cargo.toml" <<'CLIENT_CARGO'
133
+ [package]
134
+ name = "client"
135
+ version.workspace = true
136
+ edition.workspace = true
137
+ authors.workspace = true
138
+ license.workspace = true
139
+
140
+ [dependencies]
141
+ clap = { workspace = true }
142
+ tokio = { workspace = true }
143
+ anyhow = { workspace = true }
144
+ tokio-util = { workspace = true }
145
+ serde_json = { workspace = true }
146
+ futures-util = { workspace = true }
147
+ async-trait = { workspace = true }
148
+ tracing = { workspace = true }
149
+ tracing-subscriber = { workspace = true }
150
+ atty = { workspace = true }
151
+ hyper = { workspace = true }
152
+ hyper-util = { workspace = true }
153
+ rustls = { workspace = true }
154
+ config = { path = "../components/config" }
155
+ transport = { path = "../components/transport" }
156
+ auth = { path = "../components/auth" }
157
+ protocol = { path = "../components/protocol" }
158
+
159
+ [[bin]]
160
+ name = "gungc"
161
+ path = "src/main.rs"
162
+ CLIENT_CARGO
163
+ printf 'fn main() {}\n' > "$FETCH_DIR/client/src/main.rs"
164
+
165
+ # ---- components -------------------------------------------------------------
166
+ cat > "$FETCH_DIR/components/transport/Cargo.toml" <<'TRANSPORT_CARGO'
167
+ [package]
168
+ name = "transport"
169
+ version.workspace = true
170
+ edition.workspace = true
171
+ authors.workspace = true
172
+ license.workspace = true
173
+
174
+ [dependencies]
175
+ async-trait = { workspace = true }
176
+ tokio = { workspace = true }
177
+ anyhow = { workspace = true }
178
+ quinn = { workspace = true }
179
+ net-mux = { workspace = true }
180
+ rustls = { workspace = true }
181
+ rustls-native-certs = { workspace = true }
182
+ tokio_kcp = { workspace = true }
183
+ tokio-tungstenite = { workspace = true }
184
+ futures-util = { workspace = true }
185
+ bytes = { workspace = true }
186
+ tokio-util = { workspace = true }
187
+ tokio-rustls = { workspace = true }
188
+ config = { path = "../config" }
189
+ cert = { path = "../cert" }
190
+ TRANSPORT_CARGO
191
+ printf '' > "$FETCH_DIR/components/transport/src/lib.rs"
192
+
193
+ cat > "$FETCH_DIR/components/config/Cargo.toml" <<'CONFIG_CARGO'
194
+ [package]
195
+ name = "config"
196
+ version.workspace = true
197
+ edition.workspace = true
198
+ authors.workspace = true
199
+ license.workspace = true
200
+
201
+ [dependencies]
202
+ clap = { workspace = true }
203
+ serde = { workspace = true }
204
+ serde_json = { workspace = true }
205
+ pyo3 = { workspace = true }
206
+ strum = { workspace = true }
207
+ CONFIG_CARGO
208
+ printf '' > "$FETCH_DIR/components/config/src/lib.rs"
209
+
210
+ cat > "$FETCH_DIR/components/auth/Cargo.toml" <<'AUTH_CARGO'
211
+ [package]
212
+ name = "auth"
213
+ version.workspace = true
214
+ edition.workspace = true
215
+ authors.workspace = true
216
+ license.workspace = true
217
+
218
+ [dependencies]
219
+ serde_json = { workspace = true }
220
+ serde = { workspace = true }
221
+ pyo3 = { workspace = true }
222
+ pythonize = { workspace = true }
223
+ async-trait = { workspace = true }
224
+ anyhow = { workspace = true }
225
+ semver = { workspace = true }
226
+ uuid = { workspace = true }
227
+ tokio-util = { workspace = true }
228
+ config = { path = "../config" }
229
+ AUTH_CARGO
230
+ printf '' > "$FETCH_DIR/components/auth/src/lib.rs"
231
+
232
+ cat > "$FETCH_DIR/components/cert/Cargo.toml" <<'CERT_CARGO'
233
+ [package]
234
+ name = "cert"
235
+ version.workspace = true
236
+ edition.workspace = true
237
+ authors.workspace = true
238
+ license.workspace = true
239
+
240
+ [dependencies]
241
+ anyhow = { workspace = true }
242
+ directories-next = { workspace = true }
243
+ rustls = { workspace = true }
244
+ tracing = { workspace = true }
245
+ rcgen = { workspace = true }
246
+ CERT_CARGO
247
+ printf '' > "$FETCH_DIR/components/cert/src/lib.rs"
248
+
249
+ cat > "$FETCH_DIR/components/protocol/Cargo.toml" <<'PROTOCOL_CARGO'
250
+ [package]
251
+ name = "protocol"
252
+ version.workspace = true
253
+ edition.workspace = true
254
+ authors.workspace = true
255
+ license.workspace = true
256
+
257
+ [dependencies]
258
+ bincode = { workspace = true }
259
+ tokio-util = { workspace = true }
260
+ anyhow = { workspace = true }
261
+ PROTOCOL_CARGO
262
+ printf '' > "$FETCH_DIR/components/protocol/src/lib.rs"
263
+
264
+ cat > "$FETCH_DIR/components/plugin/Cargo.toml" <<'PLUGIN_CARGO'
265
+ [package]
266
+ name = "plugin"
267
+ version.workspace = true
268
+ edition.workspace = true
269
+ authors.workspace = true
270
+ license.workspace = true
271
+
272
+ [dependencies]
273
+ anyhow = { workspace = true }
274
+ pyo3 = { workspace = true }
275
+ config = { path = "../config" }
276
+ PLUGIN_CARGO
277
+ printf '' > "$FETCH_DIR/components/plugin/src/lib.rs"
278
+
279
+ # ---- exact locked dependency versions (mirrors the repository Cargo.lock) ----
280
+ cat > "$FETCH_DIR/Cargo.lock" <<'PBLOCK_LOCK_EOF'
281
+ # This file is automatically @generated by Cargo.
282
+ # It is not intended for manual editing.
283
+ version = 4
284
+
285
+ [[package]]
286
+ name = "aho-corasick"
287
+ version = "1.1.4"
288
+ source = "registry+https://github.com/rust-lang/crates.io-index"
289
+ checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
290
+ dependencies = [
291
+ "memchr",
292
+ ]
293
+
294
+ [[package]]
295
+ name = "anstream"
296
+ version = "0.6.21"
297
+ source = "registry+https://github.com/rust-lang/crates.io-index"
298
+ checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
299
+ dependencies = [
300
+ "anstyle",
301
+ "anstyle-parse",
302
+ "anstyle-query",
303
+ "anstyle-wincon",
304
+ "colorchoice",
305
+ "is_terminal_polyfill",
306
+ "utf8parse",
307
+ ]
308
+
309
+ [[package]]
310
+ name = "anstyle"
311
+ version = "1.0.13"
312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
313
+ checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
314
+
315
+ [[package]]
316
+ name = "anstyle-parse"
317
+ version = "0.2.7"
318
+ source = "registry+https://github.com/rust-lang/crates.io-index"
319
+ checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
320
+ dependencies = [
321
+ "utf8parse",
322
+ ]
323
+
324
+ [[package]]
325
+ name = "anstyle-query"
326
+ version = "1.1.4"
327
+ source = "registry+https://github.com/rust-lang/crates.io-index"
328
+ checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2"
329
+ dependencies = [
330
+ "windows-sys 0.60.2",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "anstyle-wincon"
335
+ version = "3.0.10"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a"
338
+ dependencies = [
339
+ "anstyle",
340
+ "once_cell_polyfill",
341
+ "windows-sys 0.60.2",
342
+ ]
343
+
344
+ [[package]]
345
+ name = "anyhow"
346
+ version = "1.0.102"
347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
348
+ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
349
+
350
+ [[package]]
351
+ name = "asn1-rs"
352
+ version = "0.7.1"
353
+ source = "registry+https://github.com/rust-lang/crates.io-index"
354
+ checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60"
355
+ dependencies = [
356
+ "asn1-rs-derive",
357
+ "asn1-rs-impl",
358
+ "displaydoc",
359
+ "nom",
360
+ "num-traits",
361
+ "rusticata-macros",
362
+ "thiserror 2.0.17",
363
+ "time",
364
+ ]
365
+
366
+ [[package]]
367
+ name = "asn1-rs-derive"
368
+ version = "0.6.0"
369
+ source = "registry+https://github.com/rust-lang/crates.io-index"
370
+ checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c"
371
+ dependencies = [
372
+ "proc-macro2",
373
+ "quote",
374
+ "syn 2.0.106",
375
+ "synstructure",
376
+ ]
377
+
378
+ [[package]]
379
+ name = "asn1-rs-impl"
380
+ version = "0.2.0"
381
+ source = "registry+https://github.com/rust-lang/crates.io-index"
382
+ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7"
383
+ dependencies = [
384
+ "proc-macro2",
385
+ "quote",
386
+ "syn 2.0.106",
387
+ ]
388
+
389
+ [[package]]
390
+ name = "async-trait"
391
+ version = "0.1.89"
392
+ source = "registry+https://github.com/rust-lang/crates.io-index"
393
+ checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
394
+ dependencies = [
395
+ "proc-macro2",
396
+ "quote",
397
+ "syn 2.0.106",
398
+ ]
399
+
400
+ [[package]]
401
+ name = "atomic-waker"
402
+ version = "1.1.2"
403
+ source = "registry+https://github.com/rust-lang/crates.io-index"
404
+ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
405
+
406
+ [[package]]
407
+ name = "atty"
408
+ version = "0.2.14"
409
+ source = "registry+https://github.com/rust-lang/crates.io-index"
410
+ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
411
+ dependencies = [
412
+ "hermit-abi",
413
+ "libc",
414
+ "winapi",
415
+ ]
416
+
417
+ [[package]]
418
+ name = "auth"
419
+ version = "0.1.0"
420
+ dependencies = [
421
+ "anyhow",
422
+ "async-trait",
423
+ "config",
424
+ "pyo3",
425
+ "pythonize",
426
+ "semver",
427
+ "serde",
428
+ "serde_json",
429
+ "tokio-util",
430
+ "uuid",
431
+ ]
432
+
433
+ [[package]]
434
+ name = "autocfg"
435
+ version = "1.5.0"
436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
437
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
438
+
439
+ [[package]]
440
+ name = "aws-lc-rs"
441
+ version = "1.15.1"
442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
443
+ checksum = "6b5ce75405893cd713f9ab8e297d8e438f624dde7d706108285f7e17a25a180f"
444
+ dependencies = [
445
+ "aws-lc-sys",
446
+ "zeroize",
447
+ ]
448
+
449
+ [[package]]
450
+ name = "aws-lc-sys"
451
+ version = "0.34.0"
452
+ source = "registry+https://github.com/rust-lang/crates.io-index"
453
+ checksum = "179c3777a8b5e70e90ea426114ffc565b2c1a9f82f6c4a0c5a34aa6ef5e781b6"
454
+ dependencies = [
455
+ "cc",
456
+ "cmake",
457
+ "dunce",
458
+ "fs_extra",
459
+ ]
460
+
461
+ [[package]]
462
+ name = "base32"
463
+ version = "0.5.1"
464
+ source = "registry+https://github.com/rust-lang/crates.io-index"
465
+ checksum = "022dfe9eb35f19ebbcb51e0b40a5ab759f46ad60cadf7297e0bd085afb50e076"
466
+
467
+ [[package]]
468
+ name = "base64"
469
+ version = "0.22.1"
470
+ source = "registry+https://github.com/rust-lang/crates.io-index"
471
+ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
472
+
473
+ [[package]]
474
+ name = "bincode"
475
+ version = "2.0.1"
476
+ source = "registry+https://github.com/rust-lang/crates.io-index"
477
+ checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740"
478
+ dependencies = [
479
+ "bincode_derive",
480
+ "serde",
481
+ "unty",
482
+ ]
483
+
484
+ [[package]]
485
+ name = "bincode_derive"
486
+ version = "2.0.1"
487
+ source = "registry+https://github.com/rust-lang/crates.io-index"
488
+ checksum = "bf95709a440f45e986983918d0e8a1f30a9b1df04918fc828670606804ac3c09"
489
+ dependencies = [
490
+ "virtue",
491
+ ]
492
+
493
+ [[package]]
494
+ name = "bitflags"
495
+ version = "2.10.0"
496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
497
+ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
498
+
499
+ [[package]]
500
+ name = "block-buffer"
501
+ version = "0.10.4"
502
+ source = "registry+https://github.com/rust-lang/crates.io-index"
503
+ checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
504
+ dependencies = [
505
+ "generic-array",
506
+ ]
507
+
508
+ [[package]]
509
+ name = "bumpalo"
510
+ version = "3.19.0"
511
+ source = "registry+https://github.com/rust-lang/crates.io-index"
512
+ checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
513
+
514
+ [[package]]
515
+ name = "byte_string"
516
+ version = "1.0.0"
517
+ source = "registry+https://github.com/rust-lang/crates.io-index"
518
+ checksum = "11aade7a05aa8c3a351cedc44c3fc45806430543382fcc4743a9b757a2a0b4ed"
519
+
520
+ [[package]]
521
+ name = "bytes"
522
+ version = "1.11.1"
523
+ source = "registry+https://github.com/rust-lang/crates.io-index"
524
+ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
525
+
526
+ [[package]]
527
+ name = "cc"
528
+ version = "1.2.40"
529
+ source = "registry+https://github.com/rust-lang/crates.io-index"
530
+ checksum = "e1d05d92f4b1fd76aad469d46cdd858ca761576082cd37df81416691e50199fb"
531
+ dependencies = [
532
+ "find-msvc-tools",
533
+ "jobserver",
534
+ "libc",
535
+ "shlex",
536
+ ]
537
+
538
+ [[package]]
539
+ name = "cert"
540
+ version = "0.1.0"
541
+ dependencies = [
542
+ "anyhow",
543
+ "directories-next",
544
+ "rcgen",
545
+ "rustls",
546
+ "tracing",
547
+ ]
548
+
549
+ [[package]]
550
+ name = "cesu8"
551
+ version = "1.1.0"
552
+ source = "registry+https://github.com/rust-lang/crates.io-index"
553
+ checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
554
+
555
+ [[package]]
556
+ name = "cfg-if"
557
+ version = "1.0.3"
558
+ source = "registry+https://github.com/rust-lang/crates.io-index"
559
+ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
560
+
561
+ [[package]]
562
+ name = "cfg_aliases"
563
+ version = "0.2.1"
564
+ source = "registry+https://github.com/rust-lang/crates.io-index"
565
+ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
566
+
567
+ [[package]]
568
+ name = "chacha20"
569
+ version = "0.10.0"
570
+ source = "registry+https://github.com/rust-lang/crates.io-index"
571
+ checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601"
572
+ dependencies = [
573
+ "cfg-if",
574
+ "cpufeatures 0.3.0",
575
+ "rand_core 0.10.0",
576
+ ]
577
+
578
+ [[package]]
579
+ name = "clap"
580
+ version = "4.5.60"
581
+ source = "registry+https://github.com/rust-lang/crates.io-index"
582
+ checksum = "2797f34da339ce31042b27d23607e051786132987f595b02ba4f6a6dffb7030a"
583
+ dependencies = [
584
+ "clap_builder",
585
+ "clap_derive",
586
+ ]
587
+
588
+ [[package]]
589
+ name = "clap_builder"
590
+ version = "4.5.60"
591
+ source = "registry+https://github.com/rust-lang/crates.io-index"
592
+ checksum = "24a241312cea5059b13574bb9b3861cabf758b879c15190b37b6d6fd63ab6876"
593
+ dependencies = [
594
+ "anstream",
595
+ "anstyle",
596
+ "clap_lex",
597
+ "strsim",
598
+ ]
599
+
600
+ [[package]]
601
+ name = "clap_derive"
602
+ version = "4.5.55"
603
+ source = "registry+https://github.com/rust-lang/crates.io-index"
604
+ checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5"
605
+ dependencies = [
606
+ "heck",
607
+ "proc-macro2",
608
+ "quote",
609
+ "syn 2.0.106",
610
+ ]
611
+
612
+ [[package]]
613
+ name = "clap_lex"
614
+ version = "1.0.0"
615
+ source = "registry+https://github.com/rust-lang/crates.io-index"
616
+ checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
617
+
618
+ [[package]]
619
+ name = "client"
620
+ version = "0.1.0"
621
+ dependencies = [
622
+ "anyhow",
623
+ "async-trait",
624
+ "atty",
625
+ "auth",
626
+ "clap",
627
+ "config",
628
+ "futures-util",
629
+ "hyper",
630
+ "hyper-util",
631
+ "protocol",
632
+ "rustls",
633
+ "serde_json",
634
+ "tokio",
635
+ "tokio-util",
636
+ "tracing",
637
+ "tracing-subscriber",
638
+ "transport",
639
+ ]
640
+
641
+ [[package]]
642
+ name = "cmake"
643
+ version = "0.1.54"
644
+ source = "registry+https://github.com/rust-lang/crates.io-index"
645
+ checksum = "e7caa3f9de89ddbe2c607f4101924c5abec803763ae9534e4f4d7d8f84aa81f0"
646
+ dependencies = [
647
+ "cc",
648
+ ]
649
+
650
+ [[package]]
651
+ name = "colorchoice"
652
+ version = "1.0.4"
653
+ source = "registry+https://github.com/rust-lang/crates.io-index"
654
+ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
655
+
656
+ [[package]]
657
+ name = "combine"
658
+ version = "4.6.7"
659
+ source = "registry+https://github.com/rust-lang/crates.io-index"
660
+ checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
661
+ dependencies = [
662
+ "bytes",
663
+ "memchr",
664
+ ]
665
+
666
+ [[package]]
667
+ name = "config"
668
+ version = "0.1.0"
669
+ dependencies = [
670
+ "clap",
671
+ "pyo3",
672
+ "serde",
673
+ "serde_json",
674
+ "strum",
675
+ ]
676
+
677
+ [[package]]
678
+ name = "convert_case"
679
+ version = "0.8.0"
680
+ source = "registry+https://github.com/rust-lang/crates.io-index"
681
+ checksum = "baaaa0ecca5b51987b9423ccdc971514dd8b0bb7b4060b983d3664dad3f1f89f"
682
+ dependencies = [
683
+ "unicode-segmentation",
684
+ ]
685
+
686
+ [[package]]
687
+ name = "core-foundation"
688
+ version = "0.9.4"
689
+ source = "registry+https://github.com/rust-lang/crates.io-index"
690
+ checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
691
+ dependencies = [
692
+ "core-foundation-sys",
693
+ "libc",
694
+ ]
695
+
696
+ [[package]]
697
+ name = "core-foundation"
698
+ version = "0.10.1"
699
+ source = "registry+https://github.com/rust-lang/crates.io-index"
700
+ checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
701
+ dependencies = [
702
+ "core-foundation-sys",
703
+ "libc",
704
+ ]
705
+
706
+ [[package]]
707
+ name = "core-foundation-sys"
708
+ version = "0.8.7"
709
+ source = "registry+https://github.com/rust-lang/crates.io-index"
710
+ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
711
+
712
+ [[package]]
713
+ name = "cpufeatures"
714
+ version = "0.2.17"
715
+ source = "registry+https://github.com/rust-lang/crates.io-index"
716
+ checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
717
+ dependencies = [
718
+ "libc",
719
+ ]
720
+
721
+ [[package]]
722
+ name = "cpufeatures"
723
+ version = "0.3.0"
724
+ source = "registry+https://github.com/rust-lang/crates.io-index"
725
+ checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
726
+ dependencies = [
727
+ "libc",
728
+ ]
729
+
730
+ [[package]]
731
+ name = "crypto-common"
732
+ version = "0.1.7"
733
+ source = "registry+https://github.com/rust-lang/crates.io-index"
734
+ checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
735
+ dependencies = [
736
+ "generic-array",
737
+ "typenum",
738
+ ]
739
+
740
+ [[package]]
741
+ name = "data-encoding"
742
+ version = "2.9.0"
743
+ source = "registry+https://github.com/rust-lang/crates.io-index"
744
+ checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476"
745
+
746
+ [[package]]
747
+ name = "der-parser"
748
+ version = "10.0.0"
749
+ source = "registry+https://github.com/rust-lang/crates.io-index"
750
+ checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6"
751
+ dependencies = [
752
+ "asn1-rs",
753
+ "displaydoc",
754
+ "nom",
755
+ "num-bigint",
756
+ "num-traits",
757
+ "rusticata-macros",
758
+ ]
759
+
760
+ [[package]]
761
+ name = "deranged"
762
+ version = "0.5.4"
763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
764
+ checksum = "a41953f86f8a05768a6cda24def994fd2f424b04ec5c719cf89989779f199071"
765
+ dependencies = [
766
+ "powerfmt",
767
+ ]
768
+
769
+ [[package]]
770
+ name = "digest"
771
+ version = "0.10.7"
772
+ source = "registry+https://github.com/rust-lang/crates.io-index"
773
+ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
774
+ dependencies = [
775
+ "block-buffer",
776
+ "crypto-common",
777
+ ]
778
+
779
+ [[package]]
780
+ name = "directories-next"
781
+ version = "2.0.0"
782
+ source = "registry+https://github.com/rust-lang/crates.io-index"
783
+ checksum = "339ee130d97a610ea5a5872d2bbb130fdf68884ff09d3028b81bec8a1ac23bbc"
784
+ dependencies = [
785
+ "cfg-if",
786
+ "dirs-sys-next",
787
+ ]
788
+
789
+ [[package]]
790
+ name = "dirs-sys-next"
791
+ version = "0.1.2"
792
+ source = "registry+https://github.com/rust-lang/crates.io-index"
793
+ checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
794
+ dependencies = [
795
+ "libc",
796
+ "redox_users",
797
+ "winapi",
798
+ ]
799
+
800
+ [[package]]
801
+ name = "displaydoc"
802
+ version = "0.2.5"
803
+ source = "registry+https://github.com/rust-lang/crates.io-index"
804
+ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
805
+ dependencies = [
806
+ "proc-macro2",
807
+ "quote",
808
+ "syn 2.0.106",
809
+ ]
810
+
811
+ [[package]]
812
+ name = "dunce"
813
+ version = "1.0.5"
814
+ source = "registry+https://github.com/rust-lang/crates.io-index"
815
+ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
816
+
817
+ [[package]]
818
+ name = "equivalent"
819
+ version = "1.0.2"
820
+ source = "registry+https://github.com/rust-lang/crates.io-index"
821
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
822
+
823
+ [[package]]
824
+ name = "fastbloom"
825
+ version = "0.14.0"
826
+ source = "registry+https://github.com/rust-lang/crates.io-index"
827
+ checksum = "18c1ddb9231d8554c2d6bdf4cfaabf0c59251658c68b6c95cd52dd0c513a912a"
828
+ dependencies = [
829
+ "getrandom 0.3.3",
830
+ "libm",
831
+ "rand 0.9.2",
832
+ "siphasher",
833
+ ]
834
+
835
+ [[package]]
836
+ name = "find-msvc-tools"
837
+ version = "0.1.3"
838
+ source = "registry+https://github.com/rust-lang/crates.io-index"
839
+ checksum = "0399f9d26e5191ce32c498bebd31e7a3ceabc2745f0ac54af3f335126c3f24b3"
840
+
841
+ [[package]]
842
+ name = "fnv"
843
+ version = "1.0.7"
844
+ source = "registry+https://github.com/rust-lang/crates.io-index"
845
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
846
+
847
+ [[package]]
848
+ name = "foldhash"
849
+ version = "0.1.5"
850
+ source = "registry+https://github.com/rust-lang/crates.io-index"
851
+ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
852
+
853
+ [[package]]
854
+ name = "form_urlencoded"
855
+ version = "1.2.2"
856
+ source = "registry+https://github.com/rust-lang/crates.io-index"
857
+ checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
858
+ dependencies = [
859
+ "percent-encoding",
860
+ ]
861
+
862
+ [[package]]
863
+ name = "fs_extra"
864
+ version = "1.3.0"
865
+ source = "registry+https://github.com/rust-lang/crates.io-index"
866
+ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
867
+
868
+ [[package]]
869
+ name = "futures-channel"
870
+ version = "0.3.31"
871
+ source = "registry+https://github.com/rust-lang/crates.io-index"
872
+ checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
873
+ dependencies = [
874
+ "futures-core",
875
+ ]
876
+
877
+ [[package]]
878
+ name = "futures-core"
879
+ version = "0.3.32"
880
+ source = "registry+https://github.com/rust-lang/crates.io-index"
881
+ checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
882
+
883
+ [[package]]
884
+ name = "futures-macro"
885
+ version = "0.3.32"
886
+ source = "registry+https://github.com/rust-lang/crates.io-index"
887
+ checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
888
+ dependencies = [
889
+ "proc-macro2",
890
+ "quote",
891
+ "syn 2.0.106",
892
+ ]
893
+
894
+ [[package]]
895
+ name = "futures-sink"
896
+ version = "0.3.32"
897
+ source = "registry+https://github.com/rust-lang/crates.io-index"
898
+ checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
899
+
900
+ [[package]]
901
+ name = "futures-task"
902
+ version = "0.3.32"
903
+ source = "registry+https://github.com/rust-lang/crates.io-index"
904
+ checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
905
+
906
+ [[package]]
907
+ name = "futures-util"
908
+ version = "0.3.32"
909
+ source = "registry+https://github.com/rust-lang/crates.io-index"
910
+ checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
911
+ dependencies = [
912
+ "futures-core",
913
+ "futures-macro",
914
+ "futures-sink",
915
+ "futures-task",
916
+ "pin-project-lite",
917
+ "slab",
918
+ ]
919
+
920
+ [[package]]
921
+ name = "generic-array"
922
+ version = "0.14.7"
923
+ source = "registry+https://github.com/rust-lang/crates.io-index"
924
+ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
925
+ dependencies = [
926
+ "typenum",
927
+ "version_check",
928
+ ]
929
+
930
+ [[package]]
931
+ name = "getrandom"
932
+ version = "0.2.16"
933
+ source = "registry+https://github.com/rust-lang/crates.io-index"
934
+ checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
935
+ dependencies = [
936
+ "cfg-if",
937
+ "js-sys",
938
+ "libc",
939
+ "wasi 0.11.1+wasi-snapshot-preview1",
940
+ "wasm-bindgen",
941
+ ]
942
+
943
+ [[package]]
944
+ name = "getrandom"
945
+ version = "0.3.3"
946
+ source = "registry+https://github.com/rust-lang/crates.io-index"
947
+ checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
948
+ dependencies = [
949
+ "cfg-if",
950
+ "js-sys",
951
+ "libc",
952
+ "r-efi",
953
+ "wasi 0.14.7+wasi-0.2.4",
954
+ "wasm-bindgen",
955
+ ]
956
+
957
+ [[package]]
958
+ name = "getrandom"
959
+ version = "0.4.1"
960
+ source = "registry+https://github.com/rust-lang/crates.io-index"
961
+ checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec"
962
+ dependencies = [
963
+ "cfg-if",
964
+ "libc",
965
+ "r-efi",
966
+ "rand_core 0.10.0",
967
+ "wasip2",
968
+ "wasip3",
969
+ ]
970
+
971
+ [[package]]
972
+ name = "h2"
973
+ version = "0.4.12"
974
+ source = "registry+https://github.com/rust-lang/crates.io-index"
975
+ checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386"
976
+ dependencies = [
977
+ "atomic-waker",
978
+ "bytes",
979
+ "fnv",
980
+ "futures-core",
981
+ "futures-sink",
982
+ "http",
983
+ "indexmap",
984
+ "slab",
985
+ "tokio",
986
+ "tokio-util",
987
+ "tracing",
988
+ ]
989
+
990
+ [[package]]
991
+ name = "hashbrown"
992
+ version = "0.15.5"
993
+ source = "registry+https://github.com/rust-lang/crates.io-index"
994
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
995
+ dependencies = [
996
+ "foldhash",
997
+ ]
998
+
999
+ [[package]]
1000
+ name = "heck"
1001
+ version = "0.5.0"
1002
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1003
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
1004
+
1005
+ [[package]]
1006
+ name = "hermit-abi"
1007
+ version = "0.1.19"
1008
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1009
+ checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
1010
+ dependencies = [
1011
+ "libc",
1012
+ ]
1013
+
1014
+ [[package]]
1015
+ name = "http"
1016
+ version = "1.3.1"
1017
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1018
+ checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
1019
+ dependencies = [
1020
+ "bytes",
1021
+ "fnv",
1022
+ "itoa",
1023
+ ]
1024
+
1025
+ [[package]]
1026
+ name = "http-body"
1027
+ version = "1.0.1"
1028
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1029
+ checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
1030
+ dependencies = [
1031
+ "bytes",
1032
+ "http",
1033
+ ]
1034
+
1035
+ [[package]]
1036
+ name = "httparse"
1037
+ version = "1.10.1"
1038
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1039
+ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
1040
+
1041
+ [[package]]
1042
+ name = "httpdate"
1043
+ version = "1.0.3"
1044
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1045
+ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
1046
+
1047
+ [[package]]
1048
+ name = "hyper"
1049
+ version = "1.9.0"
1050
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1051
+ checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca"
1052
+ dependencies = [
1053
+ "atomic-waker",
1054
+ "bytes",
1055
+ "futures-channel",
1056
+ "futures-core",
1057
+ "h2",
1058
+ "http",
1059
+ "http-body",
1060
+ "httparse",
1061
+ "httpdate",
1062
+ "itoa",
1063
+ "pin-project-lite",
1064
+ "smallvec",
1065
+ "tokio",
1066
+ "want",
1067
+ ]
1068
+
1069
+ [[package]]
1070
+ name = "hyper-util"
1071
+ version = "0.1.20"
1072
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1073
+ checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
1074
+ dependencies = [
1075
+ "base64",
1076
+ "bytes",
1077
+ "futures-channel",
1078
+ "futures-util",
1079
+ "http",
1080
+ "http-body",
1081
+ "hyper",
1082
+ "ipnet",
1083
+ "libc",
1084
+ "percent-encoding",
1085
+ "pin-project-lite",
1086
+ "socket2",
1087
+ "system-configuration",
1088
+ "tokio",
1089
+ "tower-layer",
1090
+ "tower-service",
1091
+ "tracing",
1092
+ "windows-registry",
1093
+ ]
1094
+
1095
+ [[package]]
1096
+ name = "icu_collections"
1097
+ version = "2.1.1"
1098
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1099
+ checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43"
1100
+ dependencies = [
1101
+ "displaydoc",
1102
+ "potential_utf",
1103
+ "yoke",
1104
+ "zerofrom",
1105
+ "zerovec",
1106
+ ]
1107
+
1108
+ [[package]]
1109
+ name = "icu_locale_core"
1110
+ version = "2.1.1"
1111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1112
+ checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6"
1113
+ dependencies = [
1114
+ "displaydoc",
1115
+ "litemap",
1116
+ "tinystr",
1117
+ "writeable",
1118
+ "zerovec",
1119
+ ]
1120
+
1121
+ [[package]]
1122
+ name = "icu_normalizer"
1123
+ version = "2.1.1"
1124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1125
+ checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599"
1126
+ dependencies = [
1127
+ "icu_collections",
1128
+ "icu_normalizer_data",
1129
+ "icu_properties",
1130
+ "icu_provider",
1131
+ "smallvec",
1132
+ "zerovec",
1133
+ ]
1134
+
1135
+ [[package]]
1136
+ name = "icu_normalizer_data"
1137
+ version = "2.1.1"
1138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1139
+ checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a"
1140
+
1141
+ [[package]]
1142
+ name = "icu_properties"
1143
+ version = "2.1.1"
1144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1145
+ checksum = "e93fcd3157766c0c8da2f8cff6ce651a31f0810eaa1c51ec363ef790bbb5fb99"
1146
+ dependencies = [
1147
+ "icu_collections",
1148
+ "icu_locale_core",
1149
+ "icu_properties_data",
1150
+ "icu_provider",
1151
+ "zerotrie",
1152
+ "zerovec",
1153
+ ]
1154
+
1155
+ [[package]]
1156
+ name = "icu_properties_data"
1157
+ version = "2.1.1"
1158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1159
+ checksum = "02845b3647bb045f1100ecd6480ff52f34c35f82d9880e029d329c21d1054899"
1160
+
1161
+ [[package]]
1162
+ name = "icu_provider"
1163
+ version = "2.1.1"
1164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1165
+ checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614"
1166
+ dependencies = [
1167
+ "displaydoc",
1168
+ "icu_locale_core",
1169
+ "writeable",
1170
+ "yoke",
1171
+ "zerofrom",
1172
+ "zerotrie",
1173
+ "zerovec",
1174
+ ]
1175
+
1176
+ [[package]]
1177
+ name = "id-arena"
1178
+ version = "2.3.0"
1179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1180
+ checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
1181
+
1182
+ [[package]]
1183
+ name = "idna"
1184
+ version = "1.1.0"
1185
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1186
+ checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
1187
+ dependencies = [
1188
+ "idna_adapter",
1189
+ "smallvec",
1190
+ "utf8_iter",
1191
+ ]
1192
+
1193
+ [[package]]
1194
+ name = "idna_adapter"
1195
+ version = "1.2.1"
1196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1197
+ checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
1198
+ dependencies = [
1199
+ "icu_normalizer",
1200
+ "icu_properties",
1201
+ ]
1202
+
1203
+ [[package]]
1204
+ name = "indexmap"
1205
+ version = "2.11.4"
1206
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1207
+ checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
1208
+ dependencies = [
1209
+ "equivalent",
1210
+ "hashbrown",
1211
+ "serde",
1212
+ "serde_core",
1213
+ ]
1214
+
1215
+ [[package]]
1216
+ name = "indoc"
1217
+ version = "2.0.6"
1218
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1219
+ checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd"
1220
+
1221
+ [[package]]
1222
+ name = "ipnet"
1223
+ version = "2.11.0"
1224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1225
+ checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
1226
+
1227
+ [[package]]
1228
+ name = "is_terminal_polyfill"
1229
+ version = "1.70.1"
1230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1231
+ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
1232
+
1233
+ [[package]]
1234
+ name = "itoa"
1235
+ version = "1.0.15"
1236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1237
+ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
1238
+
1239
+ [[package]]
1240
+ name = "jni"
1241
+ version = "0.21.1"
1242
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1243
+ checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
1244
+ dependencies = [
1245
+ "cesu8",
1246
+ "cfg-if",
1247
+ "combine",
1248
+ "jni-sys",
1249
+ "log",
1250
+ "thiserror 1.0.69",
1251
+ "walkdir",
1252
+ "windows-sys 0.45.0",
1253
+ ]
1254
+
1255
+ [[package]]
1256
+ name = "jni-sys"
1257
+ version = "0.3.0"
1258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1259
+ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
1260
+
1261
+ [[package]]
1262
+ name = "jobserver"
1263
+ version = "0.1.34"
1264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1265
+ checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
1266
+ dependencies = [
1267
+ "getrandom 0.3.3",
1268
+ "libc",
1269
+ ]
1270
+
1271
+ [[package]]
1272
+ name = "js-sys"
1273
+ version = "0.3.81"
1274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1275
+ checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305"
1276
+ dependencies = [
1277
+ "once_cell",
1278
+ "wasm-bindgen",
1279
+ ]
1280
+
1281
+ [[package]]
1282
+ name = "kcp"
1283
+ version = "0.5.3"
1284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1285
+ checksum = "0e387a924f42063d380be14857714a2f0c177e44dbeab8895244e5370d8a8e68"
1286
+ dependencies = [
1287
+ "bytes",
1288
+ "log",
1289
+ "thiserror 1.0.69",
1290
+ ]
1291
+
1292
+ [[package]]
1293
+ name = "lazy_static"
1294
+ version = "1.5.0"
1295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1296
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
1297
+
1298
+ [[package]]
1299
+ name = "leb128fmt"
1300
+ version = "0.1.0"
1301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1302
+ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
1303
+
1304
+ [[package]]
1305
+ name = "libc"
1306
+ version = "0.2.176"
1307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1308
+ checksum = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174"
1309
+
1310
+ [[package]]
1311
+ name = "libm"
1312
+ version = "0.2.15"
1313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1314
+ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de"
1315
+
1316
+ [[package]]
1317
+ name = "libredox"
1318
+ version = "0.1.10"
1319
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1320
+ checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb"
1321
+ dependencies = [
1322
+ "bitflags",
1323
+ "libc",
1324
+ ]
1325
+
1326
+ [[package]]
1327
+ name = "litemap"
1328
+ version = "0.8.1"
1329
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1330
+ checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77"
1331
+
1332
+ [[package]]
1333
+ name = "lock_api"
1334
+ version = "0.4.14"
1335
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1336
+ checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
1337
+ dependencies = [
1338
+ "scopeguard",
1339
+ ]
1340
+
1341
+ [[package]]
1342
+ name = "log"
1343
+ version = "0.4.28"
1344
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1345
+ checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
1346
+
1347
+ [[package]]
1348
+ name = "lru-slab"
1349
+ version = "0.1.2"
1350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1351
+ checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
1352
+
1353
+ [[package]]
1354
+ name = "matchers"
1355
+ version = "0.2.0"
1356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1357
+ checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
1358
+ dependencies = [
1359
+ "regex-automata",
1360
+ ]
1361
+
1362
+ [[package]]
1363
+ name = "memchr"
1364
+ version = "2.7.6"
1365
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1366
+ checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
1367
+
1368
+ [[package]]
1369
+ name = "memoffset"
1370
+ version = "0.9.1"
1371
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1372
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
1373
+ dependencies = [
1374
+ "autocfg",
1375
+ ]
1376
+
1377
+ [[package]]
1378
+ name = "minimal-lexical"
1379
+ version = "0.2.1"
1380
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1381
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
1382
+
1383
+ [[package]]
1384
+ name = "mio"
1385
+ version = "1.0.4"
1386
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1387
+ checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
1388
+ dependencies = [
1389
+ "libc",
1390
+ "wasi 0.11.1+wasi-snapshot-preview1",
1391
+ "windows-sys 0.59.0",
1392
+ ]
1393
+
1394
+ [[package]]
1395
+ name = "multi_index_map"
1396
+ version = "0.15.1"
1397
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1398
+ checksum = "7a6c1f22ca32737a420c91da81efce8e17678eadbe3878d860bee879c0d2c593"
1399
+ dependencies = [
1400
+ "multi_index_map_derive",
1401
+ "rustc-hash",
1402
+ "slab",
1403
+ ]
1404
+
1405
+ [[package]]
1406
+ name = "multi_index_map_derive"
1407
+ version = "0.15.1"
1408
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1409
+ checksum = "12a678f8fa5da39f72d16380791208f8924d3b9f6c5cc5e2a85a62a927402851"
1410
+ dependencies = [
1411
+ "convert_case",
1412
+ "proc-macro-error2",
1413
+ "proc-macro2",
1414
+ "quote",
1415
+ "syn 1.0.109",
1416
+ ]
1417
+
1418
+ [[package]]
1419
+ name = "net-mux"
1420
+ version = "0.2.4"
1421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1422
+ checksum = "247c9cf2bb1c65e32d5dfeecb1b1febe8c007373f30b4551559887299a227c52"
1423
+ dependencies = [
1424
+ "bitflags",
1425
+ "futures-util",
1426
+ "parking_lot",
1427
+ "thiserror 2.0.17",
1428
+ "tokio",
1429
+ "tokio-util",
1430
+ ]
1431
+
1432
+ [[package]]
1433
+ name = "nom"
1434
+ version = "7.1.3"
1435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1436
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
1437
+ dependencies = [
1438
+ "memchr",
1439
+ "minimal-lexical",
1440
+ ]
1441
+
1442
+ [[package]]
1443
+ name = "nu-ansi-term"
1444
+ version = "0.50.3"
1445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1446
+ checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
1447
+ dependencies = [
1448
+ "windows-sys 0.60.2",
1449
+ ]
1450
+
1451
+ [[package]]
1452
+ name = "num-bigint"
1453
+ version = "0.4.6"
1454
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1455
+ checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
1456
+ dependencies = [
1457
+ "num-integer",
1458
+ "num-traits",
1459
+ ]
1460
+
1461
+ [[package]]
1462
+ name = "num-conv"
1463
+ version = "0.1.0"
1464
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1465
+ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
1466
+
1467
+ [[package]]
1468
+ name = "num-integer"
1469
+ version = "0.1.46"
1470
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1471
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
1472
+ dependencies = [
1473
+ "num-traits",
1474
+ ]
1475
+
1476
+ [[package]]
1477
+ name = "num-traits"
1478
+ version = "0.2.19"
1479
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1480
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
1481
+ dependencies = [
1482
+ "autocfg",
1483
+ ]
1484
+
1485
+ [[package]]
1486
+ name = "oid-registry"
1487
+ version = "0.8.1"
1488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1489
+ checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7"
1490
+ dependencies = [
1491
+ "asn1-rs",
1492
+ ]
1493
+
1494
+ [[package]]
1495
+ name = "once_cell"
1496
+ version = "1.21.3"
1497
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1498
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
1499
+
1500
+ [[package]]
1501
+ name = "once_cell_polyfill"
1502
+ version = "1.70.1"
1503
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1504
+ checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad"
1505
+
1506
+ [[package]]
1507
+ name = "openssl-probe"
1508
+ version = "0.2.0"
1509
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1510
+ checksum = "9f50d9b3dabb09ecd771ad0aa242ca6894994c130308ca3d7684634df8037391"
1511
+
1512
+ [[package]]
1513
+ name = "parking_lot"
1514
+ version = "0.12.5"
1515
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1516
+ checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
1517
+ dependencies = [
1518
+ "lock_api",
1519
+ "parking_lot_core",
1520
+ ]
1521
+
1522
+ [[package]]
1523
+ name = "parking_lot_core"
1524
+ version = "0.9.12"
1525
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1526
+ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
1527
+ dependencies = [
1528
+ "cfg-if",
1529
+ "libc",
1530
+ "redox_syscall",
1531
+ "smallvec",
1532
+ "windows-link 0.2.0",
1533
+ ]
1534
+
1535
+ [[package]]
1536
+ name = "pem"
1537
+ version = "3.0.5"
1538
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1539
+ checksum = "38af38e8470ac9dee3ce1bae1af9c1671fffc44ddfd8bd1d0a3445bf349a8ef3"
1540
+ dependencies = [
1541
+ "base64",
1542
+ "serde",
1543
+ ]
1544
+
1545
+ [[package]]
1546
+ name = "percent-encoding"
1547
+ version = "2.3.2"
1548
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1549
+ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
1550
+
1551
+ [[package]]
1552
+ name = "pin-project-lite"
1553
+ version = "0.2.16"
1554
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1555
+ checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
1556
+
1557
+ [[package]]
1558
+ name = "plugin"
1559
+ version = "0.1.0"
1560
+ dependencies = [
1561
+ "anyhow",
1562
+ "config",
1563
+ "pyo3",
1564
+ ]
1565
+
1566
+ [[package]]
1567
+ name = "portable-atomic"
1568
+ version = "1.11.1"
1569
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1570
+ checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
1571
+
1572
+ [[package]]
1573
+ name = "potential_utf"
1574
+ version = "0.1.4"
1575
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1576
+ checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77"
1577
+ dependencies = [
1578
+ "zerovec",
1579
+ ]
1580
+
1581
+ [[package]]
1582
+ name = "powerfmt"
1583
+ version = "0.2.0"
1584
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1585
+ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
1586
+
1587
+ [[package]]
1588
+ name = "ppv-lite86"
1589
+ version = "0.2.21"
1590
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1591
+ checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
1592
+ dependencies = [
1593
+ "zerocopy",
1594
+ ]
1595
+
1596
+ [[package]]
1597
+ name = "prettyplease"
1598
+ version = "0.2.37"
1599
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1600
+ checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
1601
+ dependencies = [
1602
+ "proc-macro2",
1603
+ "syn 2.0.106",
1604
+ ]
1605
+
1606
+ [[package]]
1607
+ name = "proc-macro-error-attr2"
1608
+ version = "2.0.0"
1609
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1610
+ checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5"
1611
+ dependencies = [
1612
+ "proc-macro2",
1613
+ "quote",
1614
+ ]
1615
+
1616
+ [[package]]
1617
+ name = "proc-macro-error2"
1618
+ version = "2.0.1"
1619
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1620
+ checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802"
1621
+ dependencies = [
1622
+ "proc-macro-error-attr2",
1623
+ "proc-macro2",
1624
+ "quote",
1625
+ "syn 2.0.106",
1626
+ ]
1627
+
1628
+ [[package]]
1629
+ name = "proc-macro2"
1630
+ version = "1.0.101"
1631
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1632
+ checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
1633
+ dependencies = [
1634
+ "unicode-ident",
1635
+ ]
1636
+
1637
+ [[package]]
1638
+ name = "protocol"
1639
+ version = "0.1.0"
1640
+ dependencies = [
1641
+ "anyhow",
1642
+ "bincode",
1643
+ "tokio-util",
1644
+ ]
1645
+
1646
+ [[package]]
1647
+ name = "pyo3"
1648
+ version = "0.26.0"
1649
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1650
+ checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
1651
+ dependencies = [
1652
+ "indoc",
1653
+ "libc",
1654
+ "memoffset",
1655
+ "once_cell",
1656
+ "portable-atomic",
1657
+ "pyo3-build-config",
1658
+ "pyo3-ffi",
1659
+ "pyo3-macros",
1660
+ "serde",
1661
+ "unindent",
1662
+ ]
1663
+
1664
+ [[package]]
1665
+ name = "pyo3-build-config"
1666
+ version = "0.26.0"
1667
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1668
+ checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
1669
+ dependencies = [
1670
+ "target-lexicon",
1671
+ ]
1672
+
1673
+ [[package]]
1674
+ name = "pyo3-ffi"
1675
+ version = "0.26.0"
1676
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1677
+ checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105"
1678
+ dependencies = [
1679
+ "libc",
1680
+ "pyo3-build-config",
1681
+ ]
1682
+
1683
+ [[package]]
1684
+ name = "pyo3-macros"
1685
+ version = "0.26.0"
1686
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1687
+ checksum = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded"
1688
+ dependencies = [
1689
+ "proc-macro2",
1690
+ "pyo3-macros-backend",
1691
+ "quote",
1692
+ "syn 2.0.106",
1693
+ ]
1694
+
1695
+ [[package]]
1696
+ name = "pyo3-macros-backend"
1697
+ version = "0.26.0"
1698
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1699
+ checksum = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf"
1700
+ dependencies = [
1701
+ "heck",
1702
+ "proc-macro2",
1703
+ "pyo3-build-config",
1704
+ "quote",
1705
+ "syn 2.0.106",
1706
+ ]
1707
+
1708
+ [[package]]
1709
+ name = "pythonize"
1710
+ version = "0.26.0"
1711
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1712
+ checksum = "11e06e4cff9be2bbf2bddf28a486ae619172ea57e79787f856572878c62dcfe2"
1713
+ dependencies = [
1714
+ "pyo3",
1715
+ "serde",
1716
+ ]
1717
+
1718
+ [[package]]
1719
+ name = "quinn"
1720
+ version = "0.11.9"
1721
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1722
+ checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20"
1723
+ dependencies = [
1724
+ "bytes",
1725
+ "cfg_aliases",
1726
+ "pin-project-lite",
1727
+ "quinn-proto",
1728
+ "quinn-udp",
1729
+ "rustc-hash",
1730
+ "rustls",
1731
+ "socket2",
1732
+ "thiserror 2.0.17",
1733
+ "tokio",
1734
+ "tracing",
1735
+ "web-time",
1736
+ ]
1737
+
1738
+ [[package]]
1739
+ name = "quinn-proto"
1740
+ version = "0.11.13"
1741
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1742
+ checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31"
1743
+ dependencies = [
1744
+ "bytes",
1745
+ "fastbloom",
1746
+ "getrandom 0.3.3",
1747
+ "lru-slab",
1748
+ "rand 0.9.2",
1749
+ "ring",
1750
+ "rustc-hash",
1751
+ "rustls",
1752
+ "rustls-pki-types",
1753
+ "rustls-platform-verifier",
1754
+ "slab",
1755
+ "thiserror 2.0.17",
1756
+ "tinyvec",
1757
+ "tracing",
1758
+ "web-time",
1759
+ ]
1760
+
1761
+ [[package]]
1762
+ name = "quinn-udp"
1763
+ version = "0.5.14"
1764
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1765
+ checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd"
1766
+ dependencies = [
1767
+ "cfg_aliases",
1768
+ "libc",
1769
+ "once_cell",
1770
+ "socket2",
1771
+ "tracing",
1772
+ "windows-sys 0.60.2",
1773
+ ]
1774
+
1775
+ [[package]]
1776
+ name = "quote"
1777
+ version = "1.0.41"
1778
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1779
+ checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
1780
+ dependencies = [
1781
+ "proc-macro2",
1782
+ ]
1783
+
1784
+ [[package]]
1785
+ name = "r-efi"
1786
+ version = "5.3.0"
1787
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1788
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
1789
+
1790
+ [[package]]
1791
+ name = "rand"
1792
+ version = "0.8.5"
1793
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1794
+ checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
1795
+ dependencies = [
1796
+ "libc",
1797
+ "rand_chacha 0.3.1",
1798
+ "rand_core 0.6.4",
1799
+ ]
1800
+
1801
+ [[package]]
1802
+ name = "rand"
1803
+ version = "0.9.2"
1804
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1805
+ checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
1806
+ dependencies = [
1807
+ "rand_chacha 0.9.0",
1808
+ "rand_core 0.9.3",
1809
+ ]
1810
+
1811
+ [[package]]
1812
+ name = "rand"
1813
+ version = "0.10.1"
1814
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1815
+ checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207"
1816
+ dependencies = [
1817
+ "chacha20",
1818
+ "getrandom 0.4.1",
1819
+ "rand_core 0.10.0",
1820
+ ]
1821
+
1822
+ [[package]]
1823
+ name = "rand_chacha"
1824
+ version = "0.3.1"
1825
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1826
+ checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1827
+ dependencies = [
1828
+ "ppv-lite86",
1829
+ "rand_core 0.6.4",
1830
+ ]
1831
+
1832
+ [[package]]
1833
+ name = "rand_chacha"
1834
+ version = "0.9.0"
1835
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1836
+ checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
1837
+ dependencies = [
1838
+ "ppv-lite86",
1839
+ "rand_core 0.9.3",
1840
+ ]
1841
+
1842
+ [[package]]
1843
+ name = "rand_core"
1844
+ version = "0.6.4"
1845
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1846
+ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
1847
+ dependencies = [
1848
+ "getrandom 0.2.16",
1849
+ ]
1850
+
1851
+ [[package]]
1852
+ name = "rand_core"
1853
+ version = "0.9.3"
1854
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1855
+ checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38"
1856
+ dependencies = [
1857
+ "getrandom 0.3.3",
1858
+ ]
1859
+
1860
+ [[package]]
1861
+ name = "rand_core"
1862
+ version = "0.10.0"
1863
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1864
+ checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba"
1865
+
1866
+ [[package]]
1867
+ name = "rand_set"
1868
+ version = "0.1.2"
1869
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1870
+ checksum = "3b50c614540fcc35e8506d2afc295d52b1136c0e5c8d49087c7bc296075a0891"
1871
+ dependencies = [
1872
+ "rand 0.9.2",
1873
+ ]
1874
+
1875
+ [[package]]
1876
+ name = "rcgen"
1877
+ version = "0.14.7"
1878
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1879
+ checksum = "10b99e0098aa4082912d4c649628623db6aba77335e4f4569ff5083a6448b32e"
1880
+ dependencies = [
1881
+ "pem",
1882
+ "ring",
1883
+ "rustls-pki-types",
1884
+ "time",
1885
+ "x509-parser",
1886
+ "yasna",
1887
+ ]
1888
+
1889
+ [[package]]
1890
+ name = "redox_syscall"
1891
+ version = "0.5.18"
1892
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1893
+ checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
1894
+ dependencies = [
1895
+ "bitflags",
1896
+ ]
1897
+
1898
+ [[package]]
1899
+ name = "redox_users"
1900
+ version = "0.4.6"
1901
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1902
+ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
1903
+ dependencies = [
1904
+ "getrandom 0.2.16",
1905
+ "libredox",
1906
+ "thiserror 1.0.69",
1907
+ ]
1908
+
1909
+ [[package]]
1910
+ name = "regex-automata"
1911
+ version = "0.4.13"
1912
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1913
+ checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
1914
+ dependencies = [
1915
+ "aho-corasick",
1916
+ "memchr",
1917
+ "regex-syntax",
1918
+ ]
1919
+
1920
+ [[package]]
1921
+ name = "regex-syntax"
1922
+ version = "0.8.8"
1923
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1924
+ checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
1925
+
1926
+ [[package]]
1927
+ name = "ring"
1928
+ version = "0.17.14"
1929
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1930
+ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
1931
+ dependencies = [
1932
+ "cc",
1933
+ "cfg-if",
1934
+ "getrandom 0.2.16",
1935
+ "libc",
1936
+ "untrusted",
1937
+ "windows-sys 0.52.0",
1938
+ ]
1939
+
1940
+ [[package]]
1941
+ name = "rustc-hash"
1942
+ version = "2.1.1"
1943
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1944
+ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
1945
+
1946
+ [[package]]
1947
+ name = "rusticata-macros"
1948
+ version = "4.1.0"
1949
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1950
+ checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632"
1951
+ dependencies = [
1952
+ "nom",
1953
+ ]
1954
+
1955
+ [[package]]
1956
+ name = "rustls"
1957
+ version = "0.23.37"
1958
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1959
+ checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4"
1960
+ dependencies = [
1961
+ "aws-lc-rs",
1962
+ "log",
1963
+ "once_cell",
1964
+ "ring",
1965
+ "rustls-pki-types",
1966
+ "rustls-webpki",
1967
+ "subtle",
1968
+ "zeroize",
1969
+ ]
1970
+
1971
+ [[package]]
1972
+ name = "rustls-native-certs"
1973
+ version = "0.8.3"
1974
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1975
+ checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63"
1976
+ dependencies = [
1977
+ "openssl-probe",
1978
+ "rustls-pki-types",
1979
+ "schannel",
1980
+ "security-framework",
1981
+ ]
1982
+
1983
+ [[package]]
1984
+ name = "rustls-pki-types"
1985
+ version = "1.12.0"
1986
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1987
+ checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79"
1988
+ dependencies = [
1989
+ "web-time",
1990
+ "zeroize",
1991
+ ]
1992
+
1993
+ [[package]]
1994
+ name = "rustls-platform-verifier"
1995
+ version = "0.6.1"
1996
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1997
+ checksum = "be59af91596cac372a6942530653ad0c3a246cdd491aaa9dcaee47f88d67d5a0"
1998
+ dependencies = [
1999
+ "core-foundation 0.10.1",
2000
+ "core-foundation-sys",
2001
+ "jni",
2002
+ "log",
2003
+ "once_cell",
2004
+ "rustls",
2005
+ "rustls-native-certs",
2006
+ "rustls-platform-verifier-android",
2007
+ "rustls-webpki",
2008
+ "security-framework",
2009
+ "security-framework-sys",
2010
+ "webpki-root-certs",
2011
+ "windows-sys 0.52.0",
2012
+ ]
2013
+
2014
+ [[package]]
2015
+ name = "rustls-platform-verifier-android"
2016
+ version = "0.1.1"
2017
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2018
+ checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"
2019
+
2020
+ [[package]]
2021
+ name = "rustls-webpki"
2022
+ version = "0.103.7"
2023
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2024
+ checksum = "e10b3f4191e8a80e6b43eebabfac91e5dcecebb27a71f04e820c47ec41d314bf"
2025
+ dependencies = [
2026
+ "aws-lc-rs",
2027
+ "ring",
2028
+ "rustls-pki-types",
2029
+ "untrusted",
2030
+ ]
2031
+
2032
+ [[package]]
2033
+ name = "rustversion"
2034
+ version = "1.0.22"
2035
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2036
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
2037
+
2038
+ [[package]]
2039
+ name = "same-file"
2040
+ version = "1.0.6"
2041
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2042
+ checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
2043
+ dependencies = [
2044
+ "winapi-util",
2045
+ ]
2046
+
2047
+ [[package]]
2048
+ name = "schannel"
2049
+ version = "0.1.28"
2050
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2051
+ checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1"
2052
+ dependencies = [
2053
+ "windows-sys 0.61.1",
2054
+ ]
2055
+
2056
+ [[package]]
2057
+ name = "scopeguard"
2058
+ version = "1.2.0"
2059
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2060
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
2061
+
2062
+ [[package]]
2063
+ name = "security-framework"
2064
+ version = "3.5.1"
2065
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2066
+ checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef"
2067
+ dependencies = [
2068
+ "bitflags",
2069
+ "core-foundation 0.10.1",
2070
+ "core-foundation-sys",
2071
+ "libc",
2072
+ "security-framework-sys",
2073
+ ]
2074
+
2075
+ [[package]]
2076
+ name = "security-framework-sys"
2077
+ version = "2.15.0"
2078
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2079
+ checksum = "cc1f0cbffaac4852523ce30d8bd3c5cdc873501d96ff467ca09b6767bb8cd5c0"
2080
+ dependencies = [
2081
+ "core-foundation-sys",
2082
+ "libc",
2083
+ ]
2084
+
2085
+ [[package]]
2086
+ name = "semver"
2087
+ version = "1.0.28"
2088
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2089
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
2090
+
2091
+ [[package]]
2092
+ name = "serde"
2093
+ version = "1.0.228"
2094
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2095
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
2096
+ dependencies = [
2097
+ "serde_core",
2098
+ "serde_derive",
2099
+ ]
2100
+
2101
+ [[package]]
2102
+ name = "serde_core"
2103
+ version = "1.0.228"
2104
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2105
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
2106
+ dependencies = [
2107
+ "serde_derive",
2108
+ ]
2109
+
2110
+ [[package]]
2111
+ name = "serde_derive"
2112
+ version = "1.0.228"
2113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2114
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
2115
+ dependencies = [
2116
+ "proc-macro2",
2117
+ "quote",
2118
+ "syn 2.0.106",
2119
+ ]
2120
+
2121
+ [[package]]
2122
+ name = "serde_json"
2123
+ version = "1.0.149"
2124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2125
+ checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
2126
+ dependencies = [
2127
+ "itoa",
2128
+ "memchr",
2129
+ "serde",
2130
+ "serde_core",
2131
+ "zmij",
2132
+ ]
2133
+
2134
+ [[package]]
2135
+ name = "serde_spanned"
2136
+ version = "1.0.4"
2137
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2138
+ checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776"
2139
+ dependencies = [
2140
+ "serde_core",
2141
+ ]
2142
+
2143
+ [[package]]
2144
+ name = "server"
2145
+ version = "0.1.0"
2146
+ dependencies = [
2147
+ "anyhow",
2148
+ "async-trait",
2149
+ "atty",
2150
+ "auth",
2151
+ "base32",
2152
+ "clap",
2153
+ "config",
2154
+ "futures-util",
2155
+ "hyper",
2156
+ "hyper-util",
2157
+ "multi_index_map",
2158
+ "parking_lot",
2159
+ "plugin",
2160
+ "protocol",
2161
+ "pyo3",
2162
+ "rand 0.10.1",
2163
+ "rand_set",
2164
+ "rustls",
2165
+ "semver",
2166
+ "serde_json",
2167
+ "tokio",
2168
+ "tokio-util",
2169
+ "toml",
2170
+ "tracing",
2171
+ "tracing-subscriber",
2172
+ "transport",
2173
+ "url",
2174
+ ]
2175
+
2176
+ [[package]]
2177
+ name = "sha1"
2178
+ version = "0.10.6"
2179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2180
+ checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
2181
+ dependencies = [
2182
+ "cfg-if",
2183
+ "cpufeatures 0.2.17",
2184
+ "digest",
2185
+ ]
2186
+
2187
+ [[package]]
2188
+ name = "sharded-slab"
2189
+ version = "0.1.7"
2190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2191
+ checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
2192
+ dependencies = [
2193
+ "lazy_static",
2194
+ ]
2195
+
2196
+ [[package]]
2197
+ name = "shlex"
2198
+ version = "1.3.0"
2199
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2200
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
2201
+
2202
+ [[package]]
2203
+ name = "signal-hook-registry"
2204
+ version = "1.4.6"
2205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2206
+ checksum = "b2a4719bff48cee6b39d12c020eeb490953ad2443b7055bd0b21fca26bd8c28b"
2207
+ dependencies = [
2208
+ "libc",
2209
+ ]
2210
+
2211
+ [[package]]
2212
+ name = "siphasher"
2213
+ version = "1.0.1"
2214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2215
+ checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
2216
+
2217
+ [[package]]
2218
+ name = "slab"
2219
+ version = "0.4.11"
2220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2221
+ checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
2222
+
2223
+ [[package]]
2224
+ name = "smallvec"
2225
+ version = "1.15.1"
2226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2227
+ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
2228
+
2229
+ [[package]]
2230
+ name = "socket2"
2231
+ version = "0.6.0"
2232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2233
+ checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
2234
+ dependencies = [
2235
+ "libc",
2236
+ "windows-sys 0.59.0",
2237
+ ]
2238
+
2239
+ [[package]]
2240
+ name = "spin"
2241
+ version = "0.9.8"
2242
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2243
+ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
2244
+ dependencies = [
2245
+ "lock_api",
2246
+ ]
2247
+
2248
+ [[package]]
2249
+ name = "stable_deref_trait"
2250
+ version = "1.2.1"
2251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2252
+ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
2253
+
2254
+ [[package]]
2255
+ name = "strsim"
2256
+ version = "0.11.1"
2257
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2258
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
2259
+
2260
+ [[package]]
2261
+ name = "strum"
2262
+ version = "0.28.0"
2263
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2264
+ checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd"
2265
+ dependencies = [
2266
+ "strum_macros",
2267
+ ]
2268
+
2269
+ [[package]]
2270
+ name = "strum_macros"
2271
+ version = "0.28.0"
2272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2273
+ checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664"
2274
+ dependencies = [
2275
+ "heck",
2276
+ "proc-macro2",
2277
+ "quote",
2278
+ "syn 2.0.106",
2279
+ ]
2280
+
2281
+ [[package]]
2282
+ name = "subtle"
2283
+ version = "2.6.1"
2284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2285
+ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
2286
+
2287
+ [[package]]
2288
+ name = "syn"
2289
+ version = "1.0.109"
2290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2291
+ checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
2292
+ dependencies = [
2293
+ "proc-macro2",
2294
+ "quote",
2295
+ "unicode-ident",
2296
+ ]
2297
+
2298
+ [[package]]
2299
+ name = "syn"
2300
+ version = "2.0.106"
2301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2302
+ checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
2303
+ dependencies = [
2304
+ "proc-macro2",
2305
+ "quote",
2306
+ "unicode-ident",
2307
+ ]
2308
+
2309
+ [[package]]
2310
+ name = "synstructure"
2311
+ version = "0.13.2"
2312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2313
+ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
2314
+ dependencies = [
2315
+ "proc-macro2",
2316
+ "quote",
2317
+ "syn 2.0.106",
2318
+ ]
2319
+
2320
+ [[package]]
2321
+ name = "system-configuration"
2322
+ version = "0.7.0"
2323
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2324
+ checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
2325
+ dependencies = [
2326
+ "bitflags",
2327
+ "core-foundation 0.9.4",
2328
+ "system-configuration-sys",
2329
+ ]
2330
+
2331
+ [[package]]
2332
+ name = "system-configuration-sys"
2333
+ version = "0.6.0"
2334
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2335
+ checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
2336
+ dependencies = [
2337
+ "core-foundation-sys",
2338
+ "libc",
2339
+ ]
2340
+
2341
+ [[package]]
2342
+ name = "target-lexicon"
2343
+ version = "0.13.3"
2344
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2345
+ checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
2346
+
2347
+ [[package]]
2348
+ name = "thiserror"
2349
+ version = "1.0.69"
2350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2351
+ checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
2352
+ dependencies = [
2353
+ "thiserror-impl 1.0.69",
2354
+ ]
2355
+
2356
+ [[package]]
2357
+ name = "thiserror"
2358
+ version = "2.0.17"
2359
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2360
+ checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
2361
+ dependencies = [
2362
+ "thiserror-impl 2.0.17",
2363
+ ]
2364
+
2365
+ [[package]]
2366
+ name = "thiserror-impl"
2367
+ version = "1.0.69"
2368
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2369
+ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
2370
+ dependencies = [
2371
+ "proc-macro2",
2372
+ "quote",
2373
+ "syn 2.0.106",
2374
+ ]
2375
+
2376
+ [[package]]
2377
+ name = "thiserror-impl"
2378
+ version = "2.0.17"
2379
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2380
+ checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
2381
+ dependencies = [
2382
+ "proc-macro2",
2383
+ "quote",
2384
+ "syn 2.0.106",
2385
+ ]
2386
+
2387
+ [[package]]
2388
+ name = "thread_local"
2389
+ version = "1.1.9"
2390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2391
+ checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
2392
+ dependencies = [
2393
+ "cfg-if",
2394
+ ]
2395
+
2396
+ [[package]]
2397
+ name = "time"
2398
+ version = "0.3.44"
2399
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2400
+ checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d"
2401
+ dependencies = [
2402
+ "deranged",
2403
+ "itoa",
2404
+ "num-conv",
2405
+ "powerfmt",
2406
+ "serde",
2407
+ "time-core",
2408
+ "time-macros",
2409
+ ]
2410
+
2411
+ [[package]]
2412
+ name = "time-core"
2413
+ version = "0.1.6"
2414
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2415
+ checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b"
2416
+
2417
+ [[package]]
2418
+ name = "time-macros"
2419
+ version = "0.2.24"
2420
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2421
+ checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3"
2422
+ dependencies = [
2423
+ "num-conv",
2424
+ "time-core",
2425
+ ]
2426
+
2427
+ [[package]]
2428
+ name = "tinystr"
2429
+ version = "0.8.2"
2430
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2431
+ checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869"
2432
+ dependencies = [
2433
+ "displaydoc",
2434
+ "zerovec",
2435
+ ]
2436
+
2437
+ [[package]]
2438
+ name = "tinyvec"
2439
+ version = "1.10.0"
2440
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2441
+ checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
2442
+ dependencies = [
2443
+ "tinyvec_macros",
2444
+ ]
2445
+
2446
+ [[package]]
2447
+ name = "tinyvec_macros"
2448
+ version = "0.1.1"
2449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2450
+ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
2451
+
2452
+ [[package]]
2453
+ name = "tokio"
2454
+ version = "1.50.0"
2455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2456
+ checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d"
2457
+ dependencies = [
2458
+ "bytes",
2459
+ "libc",
2460
+ "mio",
2461
+ "parking_lot",
2462
+ "pin-project-lite",
2463
+ "signal-hook-registry",
2464
+ "socket2",
2465
+ "tokio-macros",
2466
+ "windows-sys 0.61.1",
2467
+ ]
2468
+
2469
+ [[package]]
2470
+ name = "tokio-macros"
2471
+ version = "2.6.0"
2472
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2473
+ checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5"
2474
+ dependencies = [
2475
+ "proc-macro2",
2476
+ "quote",
2477
+ "syn 2.0.106",
2478
+ ]
2479
+
2480
+ [[package]]
2481
+ name = "tokio-rustls"
2482
+ version = "0.26.4"
2483
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2484
+ checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
2485
+ dependencies = [
2486
+ "rustls",
2487
+ "tokio",
2488
+ ]
2489
+
2490
+ [[package]]
2491
+ name = "tokio-tungstenite"
2492
+ version = "0.29.0"
2493
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2494
+ checksum = "8f72a05e828585856dacd553fba484c242c46e391fb0e58917c942ee9202915c"
2495
+ dependencies = [
2496
+ "futures-util",
2497
+ "log",
2498
+ "tokio",
2499
+ "tungstenite",
2500
+ ]
2501
+
2502
+ [[package]]
2503
+ name = "tokio-util"
2504
+ version = "0.7.18"
2505
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2506
+ checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
2507
+ dependencies = [
2508
+ "bytes",
2509
+ "futures-core",
2510
+ "futures-sink",
2511
+ "pin-project-lite",
2512
+ "tokio",
2513
+ ]
2514
+
2515
+ [[package]]
2516
+ name = "tokio_kcp"
2517
+ version = "0.9.8"
2518
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2519
+ checksum = "e29e2ec62565bc70b02413615745fede2eb72e0e29843f60e7206c1f633659cb"
2520
+ dependencies = [
2521
+ "byte_string",
2522
+ "bytes",
2523
+ "futures-util",
2524
+ "kcp",
2525
+ "log",
2526
+ "rand 0.8.5",
2527
+ "spin",
2528
+ "tokio",
2529
+ ]
2530
+
2531
+ [[package]]
2532
+ name = "toml"
2533
+ version = "1.0.7+spec-1.1.0"
2534
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2535
+ checksum = "dd28d57d8a6f6e458bc0b8784f8fdcc4b99a437936056fa122cb234f18656a96"
2536
+ dependencies = [
2537
+ "indexmap",
2538
+ "serde_core",
2539
+ "serde_spanned",
2540
+ "toml_datetime",
2541
+ "toml_parser",
2542
+ "toml_writer",
2543
+ "winnow",
2544
+ ]
2545
+
2546
+ [[package]]
2547
+ name = "toml_datetime"
2548
+ version = "1.0.1+spec-1.1.0"
2549
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2550
+ checksum = "9b320e741db58cac564e26c607d3cc1fdc4a88fd36c879568c07856ed83ff3e9"
2551
+ dependencies = [
2552
+ "serde_core",
2553
+ ]
2554
+
2555
+ [[package]]
2556
+ name = "toml_parser"
2557
+ version = "1.0.10+spec-1.1.0"
2558
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2559
+ checksum = "7df25b4befd31c4816df190124375d5a20c6b6921e2cad937316de3fccd63420"
2560
+ dependencies = [
2561
+ "winnow",
2562
+ ]
2563
+
2564
+ [[package]]
2565
+ name = "toml_writer"
2566
+ version = "1.0.7+spec-1.1.0"
2567
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2568
+ checksum = "f17aaa1c6e3dc22b1da4b6bba97d066e354c7945cac2f7852d4e4e7ca7a6b56d"
2569
+
2570
+ [[package]]
2571
+ name = "tower-layer"
2572
+ version = "0.3.3"
2573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2574
+ checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
2575
+
2576
+ [[package]]
2577
+ name = "tower-service"
2578
+ version = "0.3.3"
2579
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2580
+ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
2581
+
2582
+ [[package]]
2583
+ name = "tracing"
2584
+ version = "0.1.44"
2585
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2586
+ checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
2587
+ dependencies = [
2588
+ "log",
2589
+ "pin-project-lite",
2590
+ "tracing-attributes",
2591
+ "tracing-core",
2592
+ ]
2593
+
2594
+ [[package]]
2595
+ name = "tracing-attributes"
2596
+ version = "0.1.31"
2597
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2598
+ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
2599
+ dependencies = [
2600
+ "proc-macro2",
2601
+ "quote",
2602
+ "syn 2.0.106",
2603
+ ]
2604
+
2605
+ [[package]]
2606
+ name = "tracing-core"
2607
+ version = "0.1.36"
2608
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2609
+ checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
2610
+ dependencies = [
2611
+ "once_cell",
2612
+ "valuable",
2613
+ ]
2614
+
2615
+ [[package]]
2616
+ name = "tracing-log"
2617
+ version = "0.2.0"
2618
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2619
+ checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
2620
+ dependencies = [
2621
+ "log",
2622
+ "once_cell",
2623
+ "tracing-core",
2624
+ ]
2625
+
2626
+ [[package]]
2627
+ name = "tracing-subscriber"
2628
+ version = "0.3.23"
2629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2630
+ checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
2631
+ dependencies = [
2632
+ "matchers",
2633
+ "nu-ansi-term",
2634
+ "once_cell",
2635
+ "regex-automata",
2636
+ "sharded-slab",
2637
+ "smallvec",
2638
+ "thread_local",
2639
+ "tracing",
2640
+ "tracing-core",
2641
+ "tracing-log",
2642
+ ]
2643
+
2644
+ [[package]]
2645
+ name = "transport"
2646
+ version = "0.1.0"
2647
+ dependencies = [
2648
+ "anyhow",
2649
+ "async-trait",
2650
+ "bytes",
2651
+ "cert",
2652
+ "config",
2653
+ "futures-util",
2654
+ "net-mux",
2655
+ "quinn",
2656
+ "rustls",
2657
+ "rustls-native-certs",
2658
+ "tokio",
2659
+ "tokio-rustls",
2660
+ "tokio-tungstenite",
2661
+ "tokio-util",
2662
+ "tokio_kcp",
2663
+ ]
2664
+
2665
+ [[package]]
2666
+ name = "try-lock"
2667
+ version = "0.2.5"
2668
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2669
+ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
2670
+
2671
+ [[package]]
2672
+ name = "tungstenite"
2673
+ version = "0.29.0"
2674
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2675
+ checksum = "6c01152af293afb9c7c2a57e4b559c5620b421f6d133261c60dd2d0cdb38e6b8"
2676
+ dependencies = [
2677
+ "bytes",
2678
+ "data-encoding",
2679
+ "http",
2680
+ "httparse",
2681
+ "log",
2682
+ "rand 0.9.2",
2683
+ "sha1",
2684
+ "thiserror 2.0.17",
2685
+ ]
2686
+
2687
+ [[package]]
2688
+ name = "typenum"
2689
+ version = "1.19.0"
2690
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2691
+ checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
2692
+
2693
+ [[package]]
2694
+ name = "unicode-ident"
2695
+ version = "1.0.19"
2696
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2697
+ checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
2698
+
2699
+ [[package]]
2700
+ name = "unicode-segmentation"
2701
+ version = "1.12.0"
2702
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2703
+ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
2704
+
2705
+ [[package]]
2706
+ name = "unicode-xid"
2707
+ version = "0.2.6"
2708
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2709
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
2710
+
2711
+ [[package]]
2712
+ name = "unindent"
2713
+ version = "0.2.4"
2714
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2715
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
2716
+
2717
+ [[package]]
2718
+ name = "untrusted"
2719
+ version = "0.9.0"
2720
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2721
+ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2722
+
2723
+ [[package]]
2724
+ name = "unty"
2725
+ version = "0.0.4"
2726
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2727
+ checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae"
2728
+
2729
+ [[package]]
2730
+ name = "url"
2731
+ version = "2.5.8"
2732
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2733
+ checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
2734
+ dependencies = [
2735
+ "form_urlencoded",
2736
+ "idna",
2737
+ "percent-encoding",
2738
+ "serde",
2739
+ ]
2740
+
2741
+ [[package]]
2742
+ name = "utf8_iter"
2743
+ version = "1.0.4"
2744
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2745
+ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
2746
+
2747
+ [[package]]
2748
+ name = "utf8parse"
2749
+ version = "0.2.2"
2750
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2751
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
2752
+
2753
+ [[package]]
2754
+ name = "uuid"
2755
+ version = "1.22.0"
2756
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2757
+ checksum = "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37"
2758
+ dependencies = [
2759
+ "getrandom 0.4.1",
2760
+ "js-sys",
2761
+ "wasm-bindgen",
2762
+ ]
2763
+
2764
+ [[package]]
2765
+ name = "valuable"
2766
+ version = "0.1.1"
2767
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2768
+ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
2769
+
2770
+ [[package]]
2771
+ name = "version_check"
2772
+ version = "0.9.5"
2773
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2774
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
2775
+
2776
+ [[package]]
2777
+ name = "virtue"
2778
+ version = "0.0.18"
2779
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2780
+ checksum = "051eb1abcf10076295e815102942cc58f9d5e3b4560e46e53c21e8ff6f3af7b1"
2781
+
2782
+ [[package]]
2783
+ name = "walkdir"
2784
+ version = "2.5.0"
2785
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2786
+ checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
2787
+ dependencies = [
2788
+ "same-file",
2789
+ "winapi-util",
2790
+ ]
2791
+
2792
+ [[package]]
2793
+ name = "want"
2794
+ version = "0.3.1"
2795
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2796
+ checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
2797
+ dependencies = [
2798
+ "try-lock",
2799
+ ]
2800
+
2801
+ [[package]]
2802
+ name = "wasi"
2803
+ version = "0.11.1+wasi-snapshot-preview1"
2804
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2805
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
2806
+
2807
+ [[package]]
2808
+ name = "wasi"
2809
+ version = "0.14.7+wasi-0.2.4"
2810
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2811
+ checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c"
2812
+ dependencies = [
2813
+ "wasip2",
2814
+ ]
2815
+
2816
+ [[package]]
2817
+ name = "wasip2"
2818
+ version = "1.0.1+wasi-0.2.4"
2819
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2820
+ checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
2821
+ dependencies = [
2822
+ "wit-bindgen 0.46.0",
2823
+ ]
2824
+
2825
+ [[package]]
2826
+ name = "wasip3"
2827
+ version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
2828
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2829
+ checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
2830
+ dependencies = [
2831
+ "wit-bindgen 0.51.0",
2832
+ ]
2833
+
2834
+ [[package]]
2835
+ name = "wasm-bindgen"
2836
+ version = "0.2.104"
2837
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2838
+ checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d"
2839
+ dependencies = [
2840
+ "cfg-if",
2841
+ "once_cell",
2842
+ "rustversion",
2843
+ "wasm-bindgen-macro",
2844
+ "wasm-bindgen-shared",
2845
+ ]
2846
+
2847
+ [[package]]
2848
+ name = "wasm-bindgen-backend"
2849
+ version = "0.2.104"
2850
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2851
+ checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19"
2852
+ dependencies = [
2853
+ "bumpalo",
2854
+ "log",
2855
+ "proc-macro2",
2856
+ "quote",
2857
+ "syn 2.0.106",
2858
+ "wasm-bindgen-shared",
2859
+ ]
2860
+
2861
+ [[package]]
2862
+ name = "wasm-bindgen-macro"
2863
+ version = "0.2.104"
2864
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2865
+ checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119"
2866
+ dependencies = [
2867
+ "quote",
2868
+ "wasm-bindgen-macro-support",
2869
+ ]
2870
+
2871
+ [[package]]
2872
+ name = "wasm-bindgen-macro-support"
2873
+ version = "0.2.104"
2874
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2875
+ checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7"
2876
+ dependencies = [
2877
+ "proc-macro2",
2878
+ "quote",
2879
+ "syn 2.0.106",
2880
+ "wasm-bindgen-backend",
2881
+ "wasm-bindgen-shared",
2882
+ ]
2883
+
2884
+ [[package]]
2885
+ name = "wasm-bindgen-shared"
2886
+ version = "0.2.104"
2887
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2888
+ checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1"
2889
+ dependencies = [
2890
+ "unicode-ident",
2891
+ ]
2892
+
2893
+ [[package]]
2894
+ name = "wasm-encoder"
2895
+ version = "0.244.0"
2896
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2897
+ checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
2898
+ dependencies = [
2899
+ "leb128fmt",
2900
+ "wasmparser",
2901
+ ]
2902
+
2903
+ [[package]]
2904
+ name = "wasm-metadata"
2905
+ version = "0.244.0"
2906
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2907
+ checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
2908
+ dependencies = [
2909
+ "anyhow",
2910
+ "indexmap",
2911
+ "wasm-encoder",
2912
+ "wasmparser",
2913
+ ]
2914
+
2915
+ [[package]]
2916
+ name = "wasmparser"
2917
+ version = "0.244.0"
2918
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2919
+ checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
2920
+ dependencies = [
2921
+ "bitflags",
2922
+ "hashbrown",
2923
+ "indexmap",
2924
+ "semver",
2925
+ ]
2926
+
2927
+ [[package]]
2928
+ name = "web-time"
2929
+ version = "1.1.0"
2930
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2931
+ checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
2932
+ dependencies = [
2933
+ "js-sys",
2934
+ "wasm-bindgen",
2935
+ ]
2936
+
2937
+ [[package]]
2938
+ name = "webpki-root-certs"
2939
+ version = "1.0.2"
2940
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2941
+ checksum = "4e4ffd8df1c57e87c325000a3d6ef93db75279dc3a231125aac571650f22b12a"
2942
+ dependencies = [
2943
+ "rustls-pki-types",
2944
+ ]
2945
+
2946
+ [[package]]
2947
+ name = "winapi"
2948
+ version = "0.3.9"
2949
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2950
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
2951
+ dependencies = [
2952
+ "winapi-i686-pc-windows-gnu",
2953
+ "winapi-x86_64-pc-windows-gnu",
2954
+ ]
2955
+
2956
+ [[package]]
2957
+ name = "winapi-i686-pc-windows-gnu"
2958
+ version = "0.4.0"
2959
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2960
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
2961
+
2962
+ [[package]]
2963
+ name = "winapi-util"
2964
+ version = "0.1.11"
2965
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2966
+ checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
2967
+ dependencies = [
2968
+ "windows-sys 0.52.0",
2969
+ ]
2970
+
2971
+ [[package]]
2972
+ name = "winapi-x86_64-pc-windows-gnu"
2973
+ version = "0.4.0"
2974
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2975
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
2976
+
2977
+ [[package]]
2978
+ name = "windows-link"
2979
+ version = "0.1.3"
2980
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2981
+ checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
2982
+
2983
+ [[package]]
2984
+ name = "windows-link"
2985
+ version = "0.2.0"
2986
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2987
+ checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
2988
+
2989
+ [[package]]
2990
+ name = "windows-registry"
2991
+ version = "0.5.3"
2992
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2993
+ checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"
2994
+ dependencies = [
2995
+ "windows-link 0.1.3",
2996
+ "windows-result",
2997
+ "windows-strings",
2998
+ ]
2999
+
3000
+ [[package]]
3001
+ name = "windows-result"
3002
+ version = "0.3.4"
3003
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3004
+ checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
3005
+ dependencies = [
3006
+ "windows-link 0.1.3",
3007
+ ]
3008
+
3009
+ [[package]]
3010
+ name = "windows-strings"
3011
+ version = "0.4.2"
3012
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3013
+ checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
3014
+ dependencies = [
3015
+ "windows-link 0.1.3",
3016
+ ]
3017
+
3018
+ [[package]]
3019
+ name = "windows-sys"
3020
+ version = "0.45.0"
3021
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3022
+ checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
3023
+ dependencies = [
3024
+ "windows-targets 0.42.2",
3025
+ ]
3026
+
3027
+ [[package]]
3028
+ name = "windows-sys"
3029
+ version = "0.52.0"
3030
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3031
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
3032
+ dependencies = [
3033
+ "windows-targets 0.52.6",
3034
+ ]
3035
+
3036
+ [[package]]
3037
+ name = "windows-sys"
3038
+ version = "0.59.0"
3039
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3040
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
3041
+ dependencies = [
3042
+ "windows-targets 0.52.6",
3043
+ ]
3044
+
3045
+ [[package]]
3046
+ name = "windows-sys"
3047
+ version = "0.60.2"
3048
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3049
+ checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
3050
+ dependencies = [
3051
+ "windows-targets 0.53.4",
3052
+ ]
3053
+
3054
+ [[package]]
3055
+ name = "windows-sys"
3056
+ version = "0.61.1"
3057
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3058
+ checksum = "6f109e41dd4a3c848907eb83d5a42ea98b3769495597450cf6d153507b166f0f"
3059
+ dependencies = [
3060
+ "windows-link 0.2.0",
3061
+ ]
3062
+
3063
+ [[package]]
3064
+ name = "windows-targets"
3065
+ version = "0.42.2"
3066
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3067
+ checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
3068
+ dependencies = [
3069
+ "windows_aarch64_gnullvm 0.42.2",
3070
+ "windows_aarch64_msvc 0.42.2",
3071
+ "windows_i686_gnu 0.42.2",
3072
+ "windows_i686_msvc 0.42.2",
3073
+ "windows_x86_64_gnu 0.42.2",
3074
+ "windows_x86_64_gnullvm 0.42.2",
3075
+ "windows_x86_64_msvc 0.42.2",
3076
+ ]
3077
+
3078
+ [[package]]
3079
+ name = "windows-targets"
3080
+ version = "0.52.6"
3081
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3082
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
3083
+ dependencies = [
3084
+ "windows_aarch64_gnullvm 0.52.6",
3085
+ "windows_aarch64_msvc 0.52.6",
3086
+ "windows_i686_gnu 0.52.6",
3087
+ "windows_i686_gnullvm 0.52.6",
3088
+ "windows_i686_msvc 0.52.6",
3089
+ "windows_x86_64_gnu 0.52.6",
3090
+ "windows_x86_64_gnullvm 0.52.6",
3091
+ "windows_x86_64_msvc 0.52.6",
3092
+ ]
3093
+
3094
+ [[package]]
3095
+ name = "windows-targets"
3096
+ version = "0.53.4"
3097
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3098
+ checksum = "2d42b7b7f66d2a06854650af09cfdf8713e427a439c97ad65a6375318033ac4b"
3099
+ dependencies = [
3100
+ "windows-link 0.2.0",
3101
+ "windows_aarch64_gnullvm 0.53.0",
3102
+ "windows_aarch64_msvc 0.53.0",
3103
+ "windows_i686_gnu 0.53.0",
3104
+ "windows_i686_gnullvm 0.53.0",
3105
+ "windows_i686_msvc 0.53.0",
3106
+ "windows_x86_64_gnu 0.53.0",
3107
+ "windows_x86_64_gnullvm 0.53.0",
3108
+ "windows_x86_64_msvc 0.53.0",
3109
+ ]
3110
+
3111
+ [[package]]
3112
+ name = "windows_aarch64_gnullvm"
3113
+ version = "0.42.2"
3114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3115
+ checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
3116
+
3117
+ [[package]]
3118
+ name = "windows_aarch64_gnullvm"
3119
+ version = "0.52.6"
3120
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3121
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
3122
+
3123
+ [[package]]
3124
+ name = "windows_aarch64_gnullvm"
3125
+ version = "0.53.0"
3126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3127
+ checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
3128
+
3129
+ [[package]]
3130
+ name = "windows_aarch64_msvc"
3131
+ version = "0.42.2"
3132
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3133
+ checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
3134
+
3135
+ [[package]]
3136
+ name = "windows_aarch64_msvc"
3137
+ version = "0.52.6"
3138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3139
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
3140
+
3141
+ [[package]]
3142
+ name = "windows_aarch64_msvc"
3143
+ version = "0.53.0"
3144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3145
+ checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
3146
+
3147
+ [[package]]
3148
+ name = "windows_i686_gnu"
3149
+ version = "0.42.2"
3150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3151
+ checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
3152
+
3153
+ [[package]]
3154
+ name = "windows_i686_gnu"
3155
+ version = "0.52.6"
3156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3157
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
3158
+
3159
+ [[package]]
3160
+ name = "windows_i686_gnu"
3161
+ version = "0.53.0"
3162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3163
+ checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3"
3164
+
3165
+ [[package]]
3166
+ name = "windows_i686_gnullvm"
3167
+ version = "0.52.6"
3168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3169
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
3170
+
3171
+ [[package]]
3172
+ name = "windows_i686_gnullvm"
3173
+ version = "0.53.0"
3174
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3175
+ checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
3176
+
3177
+ [[package]]
3178
+ name = "windows_i686_msvc"
3179
+ version = "0.42.2"
3180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3181
+ checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
3182
+
3183
+ [[package]]
3184
+ name = "windows_i686_msvc"
3185
+ version = "0.52.6"
3186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3187
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
3188
+
3189
+ [[package]]
3190
+ name = "windows_i686_msvc"
3191
+ version = "0.53.0"
3192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3193
+ checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
3194
+
3195
+ [[package]]
3196
+ name = "windows_x86_64_gnu"
3197
+ version = "0.42.2"
3198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3199
+ checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
3200
+
3201
+ [[package]]
3202
+ name = "windows_x86_64_gnu"
3203
+ version = "0.52.6"
3204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3205
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
3206
+
3207
+ [[package]]
3208
+ name = "windows_x86_64_gnu"
3209
+ version = "0.53.0"
3210
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3211
+ checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
3212
+
3213
+ [[package]]
3214
+ name = "windows_x86_64_gnullvm"
3215
+ version = "0.42.2"
3216
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3217
+ checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
3218
+
3219
+ [[package]]
3220
+ name = "windows_x86_64_gnullvm"
3221
+ version = "0.52.6"
3222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3223
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
3224
+
3225
+ [[package]]
3226
+ name = "windows_x86_64_gnullvm"
3227
+ version = "0.53.0"
3228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3229
+ checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
3230
+
3231
+ [[package]]
3232
+ name = "windows_x86_64_msvc"
3233
+ version = "0.42.2"
3234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3235
+ checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
3236
+
3237
+ [[package]]
3238
+ name = "windows_x86_64_msvc"
3239
+ version = "0.52.6"
3240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3241
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
3242
+
3243
+ [[package]]
3244
+ name = "windows_x86_64_msvc"
3245
+ version = "0.53.0"
3246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3247
+ checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
3248
+
3249
+ [[package]]
3250
+ name = "winnow"
3251
+ version = "1.0.0"
3252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3253
+ checksum = "a90e88e4667264a994d34e6d1ab2d26d398dcdca8b7f52bec8668957517fc7d8"
3254
+
3255
+ [[package]]
3256
+ name = "wit-bindgen"
3257
+ version = "0.46.0"
3258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3259
+ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
3260
+
3261
+ [[package]]
3262
+ name = "wit-bindgen"
3263
+ version = "0.51.0"
3264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3265
+ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
3266
+ dependencies = [
3267
+ "wit-bindgen-rust-macro",
3268
+ ]
3269
+
3270
+ [[package]]
3271
+ name = "wit-bindgen-core"
3272
+ version = "0.51.0"
3273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3274
+ checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
3275
+ dependencies = [
3276
+ "anyhow",
3277
+ "heck",
3278
+ "wit-parser",
3279
+ ]
3280
+
3281
+ [[package]]
3282
+ name = "wit-bindgen-rust"
3283
+ version = "0.51.0"
3284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3285
+ checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
3286
+ dependencies = [
3287
+ "anyhow",
3288
+ "heck",
3289
+ "indexmap",
3290
+ "prettyplease",
3291
+ "syn 2.0.106",
3292
+ "wasm-metadata",
3293
+ "wit-bindgen-core",
3294
+ "wit-component",
3295
+ ]
3296
+
3297
+ [[package]]
3298
+ name = "wit-bindgen-rust-macro"
3299
+ version = "0.51.0"
3300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3301
+ checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
3302
+ dependencies = [
3303
+ "anyhow",
3304
+ "prettyplease",
3305
+ "proc-macro2",
3306
+ "quote",
3307
+ "syn 2.0.106",
3308
+ "wit-bindgen-core",
3309
+ "wit-bindgen-rust",
3310
+ ]
3311
+
3312
+ [[package]]
3313
+ name = "wit-component"
3314
+ version = "0.244.0"
3315
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3316
+ checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
3317
+ dependencies = [
3318
+ "anyhow",
3319
+ "bitflags",
3320
+ "indexmap",
3321
+ "log",
3322
+ "serde",
3323
+ "serde_derive",
3324
+ "serde_json",
3325
+ "wasm-encoder",
3326
+ "wasm-metadata",
3327
+ "wasmparser",
3328
+ "wit-parser",
3329
+ ]
3330
+
3331
+ [[package]]
3332
+ name = "wit-parser"
3333
+ version = "0.244.0"
3334
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3335
+ checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
3336
+ dependencies = [
3337
+ "anyhow",
3338
+ "id-arena",
3339
+ "indexmap",
3340
+ "log",
3341
+ "semver",
3342
+ "serde",
3343
+ "serde_derive",
3344
+ "serde_json",
3345
+ "unicode-xid",
3346
+ "wasmparser",
3347
+ ]
3348
+
3349
+ [[package]]
3350
+ name = "writeable"
3351
+ version = "0.6.2"
3352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3353
+ checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"
3354
+
3355
+ [[package]]
3356
+ name = "x509-parser"
3357
+ version = "0.18.0"
3358
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3359
+ checksum = "eb3e137310115a65136898d2079f003ce33331a6c4b0d51f1531d1be082b6425"
3360
+ dependencies = [
3361
+ "asn1-rs",
3362
+ "data-encoding",
3363
+ "der-parser",
3364
+ "lazy_static",
3365
+ "nom",
3366
+ "oid-registry",
3367
+ "ring",
3368
+ "rusticata-macros",
3369
+ "thiserror 2.0.17",
3370
+ "time",
3371
+ ]
3372
+
3373
+ [[package]]
3374
+ name = "yasna"
3375
+ version = "0.5.2"
3376
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3377
+ checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd"
3378
+ dependencies = [
3379
+ "time",
3380
+ ]
3381
+
3382
+ [[package]]
3383
+ name = "yoke"
3384
+ version = "0.8.1"
3385
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3386
+ checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954"
3387
+ dependencies = [
3388
+ "stable_deref_trait",
3389
+ "yoke-derive",
3390
+ "zerofrom",
3391
+ ]
3392
+
3393
+ [[package]]
3394
+ name = "yoke-derive"
3395
+ version = "0.8.1"
3396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3397
+ checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d"
3398
+ dependencies = [
3399
+ "proc-macro2",
3400
+ "quote",
3401
+ "syn 2.0.106",
3402
+ "synstructure",
3403
+ ]
3404
+
3405
+ [[package]]
3406
+ name = "zerocopy"
3407
+ version = "0.8.27"
3408
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3409
+ checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"
3410
+ dependencies = [
3411
+ "zerocopy-derive",
3412
+ ]
3413
+
3414
+ [[package]]
3415
+ name = "zerocopy-derive"
3416
+ version = "0.8.27"
3417
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3418
+ checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"
3419
+ dependencies = [
3420
+ "proc-macro2",
3421
+ "quote",
3422
+ "syn 2.0.106",
3423
+ ]
3424
+
3425
+ [[package]]
3426
+ name = "zerofrom"
3427
+ version = "0.1.6"
3428
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3429
+ checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
3430
+ dependencies = [
3431
+ "zerofrom-derive",
3432
+ ]
3433
+
3434
+ [[package]]
3435
+ name = "zerofrom-derive"
3436
+ version = "0.1.6"
3437
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3438
+ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
3439
+ dependencies = [
3440
+ "proc-macro2",
3441
+ "quote",
3442
+ "syn 2.0.106",
3443
+ "synstructure",
3444
+ ]
3445
+
3446
+ [[package]]
3447
+ name = "zeroize"
3448
+ version = "1.8.2"
3449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3450
+ checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
3451
+
3452
+ [[package]]
3453
+ name = "zerotrie"
3454
+ version = "0.2.3"
3455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3456
+ checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851"
3457
+ dependencies = [
3458
+ "displaydoc",
3459
+ "yoke",
3460
+ "zerofrom",
3461
+ ]
3462
+
3463
+ [[package]]
3464
+ name = "zerovec"
3465
+ version = "0.11.5"
3466
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3467
+ checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002"
3468
+ dependencies = [
3469
+ "yoke",
3470
+ "zerofrom",
3471
+ "zerovec-derive",
3472
+ ]
3473
+
3474
+ [[package]]
3475
+ name = "zerovec-derive"
3476
+ version = "0.11.2"
3477
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3478
+ checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3"
3479
+ dependencies = [
3480
+ "proc-macro2",
3481
+ "quote",
3482
+ "syn 2.0.106",
3483
+ ]
3484
+
3485
+ [[package]]
3486
+ name = "zmij"
3487
+ version = "1.0.2"
3488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3489
+ checksum = "0f4a4e8e9dc5c62d159f04fcdbe07f4c3fb710415aab4754bf11505501e3251d"
3490
+ PBLOCK_LOCK_EOF
3491
+
3492
+ # ---- prefetch the full locked dependency closure into CARGO_HOME -------------
3493
+ cargo fetch --manifest-path "$FETCH_DIR/Cargo.toml" --locked
3494
+ if [ $? -ne 0 ]; then
3495
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
3496
+ return 1
3497
+ else
3498
+ exit 1
3499
+ fi
3500
+ fi
poseidon-fan--gung.73b990c/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0ee545b707a9adfe990936de54dc268fa7de3e3485a5aebbc5ea17056ce0f19
3
+ size 12191968
poseidon-fan--gung.73b990c/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
poseidon-fan--gung.73b990c/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
poseidon-fan--gung.73b990c/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
poseidon-fan--gung.73b990c/environment/harbor_prepare_rust_env.sh ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ if [ "${PROGRAMGYM_RUST_BOOTSTRAP:-0}" = "1" ]; then
4
+ programgym_rust_log() {
5
+ printf "%s\n" "$1"
6
+ }
7
+ programgym_rust_log "bootstrap requested for instance=${PROGRAMGYM_RUST_INSTANCE_ID:-unknown}"
8
+ programgym_rust_log "using HOME=${HOME:?} CARGO_HOME=${CARGO_HOME:?} RUSTUP_HOME=${RUSTUP_HOME:?} XDG_CACHE_HOME=${XDG_CACHE_HOME:?}"
9
+ mkdir -p "${HOME:?}" "${CARGO_HOME:?}" "${CARGO_HOME:?}/bin" "${RUSTUP_HOME:?}" "${XDG_CACHE_HOME:?}"
10
+ programgym_rust_log "ensured Rust cache directories exist"
11
+ PROGRAMGYM_RUSTUP_BIN="${CARGO_HOME}/bin/rustup"
12
+ if [ ! -x "${PROGRAMGYM_RUSTUP_BIN}" ]; then
13
+ programgym_rust_log "rustup binary is missing from ${CARGO_HOME}/bin; searching fallback locations"
14
+ PROGRAMGYM_RUSTUP_SOURCE=""
15
+ for PROGRAMGYM_CANDIDATE in "$(command -v rustup 2>/dev/null || true)" /usr/local/cargo/bin/rustup /root/.cargo/bin/rustup; do
16
+ if [ -n "${PROGRAMGYM_CANDIDATE}" ] && [ -x "${PROGRAMGYM_CANDIDATE}" ]; then
17
+ PROGRAMGYM_RUSTUP_SOURCE="${PROGRAMGYM_CANDIDATE}"
18
+ programgym_rust_log "selected rustup source: ${PROGRAMGYM_RUSTUP_SOURCE}"
19
+ break
20
+ fi
21
+ done
22
+ if [ -n "${PROGRAMGYM_RUSTUP_SOURCE}" ]; then
23
+ cp -fL "${PROGRAMGYM_RUSTUP_SOURCE}" "${PROGRAMGYM_RUSTUP_BIN}"
24
+ chmod +x "${PROGRAMGYM_RUSTUP_BIN}"
25
+ programgym_rust_log "copied rustup into ${PROGRAMGYM_RUSTUP_BIN}"
26
+ else
27
+ echo "rustup binary is not available for bootstrap into ${CARGO_HOME}/bin" >&2
28
+ exit 1
29
+ fi
30
+ else
31
+ programgym_rust_log "reusing existing rustup binary at ${PROGRAMGYM_RUSTUP_BIN}"
32
+ fi
33
+ for PROGRAMGYM_PROXY in cargo rustc rustdoc; do
34
+ ln -sf rustup "${CARGO_HOME}/bin/${PROGRAMGYM_PROXY}"
35
+ done
36
+ programgym_rust_log "linked cargo/rustc/rustdoc proxies to rustup"
37
+ PROGRAMGYM_RUST_TOOLCHAIN="${PROGRAMGYM_RUST_TOOLCHAIN:?}"
38
+ PROGRAMGYM_CARGO_BIN="${CARGO_HOME}/bin/cargo"
39
+ PROGRAMGYM_RUSTC_BIN="${CARGO_HOME}/bin/rustc"
40
+ if ! "${PROGRAMGYM_RUSTUP_BIN}" run "${PROGRAMGYM_RUST_TOOLCHAIN}" cargo --version >/dev/null 2>&1 || ! "${PROGRAMGYM_RUSTUP_BIN}" run "${PROGRAMGYM_RUST_TOOLCHAIN}" rustc --version >/dev/null 2>&1; then
41
+ programgym_rust_log "installing Rust ${PROGRAMGYM_RUST_TOOLCHAIN} with minimal profile"
42
+ if ! "${PROGRAMGYM_RUSTUP_BIN}" set profile minimal >/dev/null 2>&1; then
43
+ programgym_rust_log "rustup set profile minimal reported a non-fatal error; continuing"
44
+ fi
45
+ "${PROGRAMGYM_RUSTUP_BIN}" toolchain install "${PROGRAMGYM_RUST_TOOLCHAIN}" --profile minimal
46
+ else
47
+ programgym_rust_log "Rust ${PROGRAMGYM_RUST_TOOLCHAIN} is already available; skipping toolchain installation"
48
+ fi
49
+ "${PROGRAMGYM_RUSTUP_BIN}" default "${PROGRAMGYM_RUST_TOOLCHAIN}"
50
+ programgym_rust_log "cargo version: $("${PROGRAMGYM_CARGO_BIN}" --version)"
51
+ programgym_rust_log "rustc version: $("${PROGRAMGYM_RUSTC_BIN}" --version)"
52
+ programgym_rust_log "active toolchain: $("${PROGRAMGYM_RUSTUP_BIN}" show active-toolchain)"
53
+ programgym_rust_log "Rust bootstrap completed successfully"
54
+ fi
poseidon-fan--gung.73b990c/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:876195bdfb76452ef0bc505ef25f434d21eb09cada02dff639df6861e9d810a6
3
+ size 6802
poseidon-fan--gung.73b990c/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
poseidon-fan--gung.73b990c/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
poseidon-fan--gung.73b990c/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/poseidon-fan--gung.73b990c"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for Poseidon-fan/Gung"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "Poseidon-fan__Gung.73b990c"
32
+ repository = "Poseidon-fan/Gung"
33
+ commit = "73b990c7f45fb95569a9df35cca32c9216f5a02e"
34
+ language = "rust"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.5332635167787148
37
+ test_branches = 3
38
+ test_count = 166
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"
poseidon-fan--gung.73b990c/tests/Dockerfile ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
57
+ ENV PAGER=cat
58
+ ENV MANPAGER=cat
59
+ ENV LESS=-R
60
+ ENV TQDM_DISABLE=1
61
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
62
+ # programgym_quota_aware_nproc=1
63
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
64
+ WORKDIR /workspace
65
+ ADD workspace.tar.gz /workspace/
66
+ COPY executable /workspace/executable
67
+ COPY download.sh /workspace/download.sh
68
+ RUN chmod 755 /workspace/download.sh
69
+ ENV HOME=/rust_env
70
+ ENV CARGO_HOME=/rust_env/.cargo
71
+ ENV RUSTUP_HOME=/rust_env/.rustup
72
+ ENV XDG_CACHE_HOME=/rust_env/.cache
73
+ ENV CARGO_TARGET_DIR=/workspace/target
74
+ ENV PROGRAMGYM_RUST_ENV_ROOT=/rust_env
75
+ ENV PROGRAMGYM_RUST_BOOTSTRAP=1
76
+ ENV PROGRAMGYM_RUST_INSTANCE_ID=Poseidon-fan__Gung.73b990c
77
+ ENV PATH=/rust_env/.cargo/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
78
+ RUN mkdir -p /rust_env/.cargo /rust_env/.rustup /rust_env/.cache
79
+ COPY harbor_prepare_rust_env.sh /tmp/harbor_prepare_rust_env.sh
80
+ RUN /bin/bash /tmp/harbor_prepare_rust_env.sh \
81
+ && rm -f /tmp/harbor_prepare_rust_env.sh
82
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
83
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
84
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
85
+ && rm -f /workspace/download.sh \
86
+ && rm -f /tmp/harbor_prepare_download_env.sh
87
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
88
+ RUN chmod 111 /workspace/executable
89
+ WORKDIR /workspace
90
+ # Harbor uses tests/ as the separate verifier build context. Start with the
91
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
92
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
93
+ && mkdir -p /workspace /tests
94
+
95
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
96
+ # Installing a newer pytest alone leaves that apt package importable and creates
97
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
98
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
99
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
100
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
101
+ RUN set -eu; \
102
+ pip_break_system_packages=""; \
103
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
104
+ pip_break_system_packages="--break-system-packages"; \
105
+ fi; \
106
+ python3 -m pip install ${pip_break_system_packages} \
107
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
108
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
109
+
110
+ COPY test.sh /tests/test.sh
111
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
112
+ COPY programgym_task.json /tests/programgym_task.json
113
+ COPY blobs/ /tests/blobs/
114
+ RUN chmod +x /tests/test.sh
115
+ 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"]
poseidon-fan--gung.73b990c/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:db161370685c33dfc5ccbaa3353af4e0202e1062d3cc15b75d6fb029550cf667
3
+ size 188491483