Marquis03 commited on
Commit
84f4fdc
·
verified ·
1 Parent(s): 9753b8a

Upload folder using huggingface_hub (part 15)

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 +91 -0
  2. donuts-are-good--bearclaw.c86f29/environment/workspace.tar.gz +3 -0
  3. donuts-are-good--bearclaw.c86f29/instruction.md +98 -0
  4. donuts-are-good--bearclaw.c86f29/solution/solve.sh +33 -0
  5. donuts-are-good--bearclaw.c86f29/task.toml +69 -0
  6. donuts-are-good--bearclaw.c86f29/tests/Dockerfile +73 -0
  7. donuts-are-good--bearclaw.c86f29/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  8. donuts-are-good--bearclaw.c86f29/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  9. donuts-are-good--bearclaw.c86f29/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  10. donuts-are-good--bearclaw.c86f29/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  11. donuts-are-good--bearclaw.c86f29/tests/download.sh +157 -0
  12. donuts-are-good--bearclaw.c86f29/tests/executable +3 -0
  13. donuts-are-good--bearclaw.c86f29/tests/harbor_prepare_download_env.sh +34 -0
  14. donuts-are-good--bearclaw.c86f29/tests/programgym-go.tar.gz +3 -0
  15. donuts-are-good--bearclaw.c86f29/tests/programgym_evaluator.py +1201 -0
  16. donuts-are-good--bearclaw.c86f29/tests/programgym_task.json +303 -0
  17. donuts-are-good--bearclaw.c86f29/tests/test.sh +82 -0
  18. donuts-are-good--bearclaw.c86f29/tests/workspace.tar.gz +3 -0
  19. dopplerhq--cli.4e158b5/environment/Dockerfile +64 -0
  20. dopplerhq--cli.4e158b5/environment/download.sh +372 -0
  21. dopplerhq--cli.4e158b5/environment/executable +3 -0
  22. dopplerhq--cli.4e158b5/environment/harbor_prepare_download_env.sh +34 -0
  23. dopplerhq--cli.4e158b5/environment/programgym-go.tar.gz +3 -0
  24. dopplerhq--cli.4e158b5/environment/workspace.tar.gz +3 -0
  25. dopplerhq--cli.4e158b5/instruction.md +98 -0
  26. dopplerhq--cli.4e158b5/solution/solve.sh +33 -0
  27. dopplerhq--cli.4e158b5/task.toml +69 -0
  28. dopplerhq--cli.4e158b5/tests/Dockerfile +73 -0
  29. dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  30. dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  31. dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  32. dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  33. dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_05.tar.gz +3 -0
  34. dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_06.tar.gz +3 -0
  35. dopplerhq--cli.4e158b5/tests/blobs/tests/generated_upstream.tar.gz +3 -0
  36. dopplerhq--cli.4e158b5/tests/download.sh +372 -0
  37. dopplerhq--cli.4e158b5/tests/executable +3 -0
  38. dopplerhq--cli.4e158b5/tests/harbor_prepare_download_env.sh +34 -0
  39. dopplerhq--cli.4e158b5/tests/programgym-go.tar.gz +3 -0
  40. dopplerhq--cli.4e158b5/tests/programgym_evaluator.py +1201 -0
  41. dopplerhq--cli.4e158b5/tests/programgym_task.json +0 -0
  42. dopplerhq--cli.4e158b5/tests/test.sh +82 -0
  43. dopplerhq--cli.4e158b5/tests/workspace.tar.gz +3 -0
  44. dotenv-linter--dotenv-linter.36e/environment/Dockerfile +59 -0
  45. dotenv-linter--dotenv-linter.36e/environment/download.sh +2906 -0
  46. dotenv-linter--dotenv-linter.36e/environment/executable +3 -0
  47. dotenv-linter--dotenv-linter.36e/environment/harbor_prepare_download_env.sh +37 -0
  48. dotenv-linter--dotenv-linter.36e/environment/workspace.tar.gz +3 -0
  49. dotenv-linter--dotenv-linter.36e/instruction.md +98 -0
  50. dotenv-linter--dotenv-linter.36e/solution/solve.sh +33 -0
.gitattributes CHANGED
@@ -711,3 +711,94 @@ docopt--docopt.cpp.05d507d/tests/executable filter=lfs diff=lfs merge=lfs -text
711
  dongjing3309--gtsam-examples.c9c/environment/executable filter=lfs diff=lfs merge=lfs -text
712
  dongjing3309--gtsam-examples.c9c/tests/executable filter=lfs diff=lfs merge=lfs -text
713
  donuts-are-good--bearclaw.c86f29/environment/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
711
  dongjing3309--gtsam-examples.c9c/environment/executable filter=lfs diff=lfs merge=lfs -text
712
  dongjing3309--gtsam-examples.c9c/tests/executable filter=lfs diff=lfs merge=lfs -text
713
  donuts-are-good--bearclaw.c86f29/environment/executable filter=lfs diff=lfs merge=lfs -text
714
+ donuts-are-good--bearclaw.c86f29/tests/executable filter=lfs diff=lfs merge=lfs -text
715
+ dopplerhq--cli.4e158b5/environment/executable filter=lfs diff=lfs merge=lfs -text
716
+ dopplerhq--cli.4e158b5/tests/executable filter=lfs diff=lfs merge=lfs -text
717
+ dotenv-linter--dotenv-linter.36e/environment/executable filter=lfs diff=lfs merge=lfs -text
718
+ dotenv-linter--dotenv-linter.36e/tests/executable filter=lfs diff=lfs merge=lfs -text
719
+ doyubkim--fluid-engine-dev.94c30/environment/executable filter=lfs diff=lfs merge=lfs -text
720
+ doyubkim--fluid-engine-dev.94c30/tests/executable filter=lfs diff=lfs merge=lfs -text
721
+ dparrish--libcli.dcfd3b7/environment/executable filter=lfs diff=lfs merge=lfs -text
722
+ dparrish--libcli.dcfd3b7/tests/executable filter=lfs diff=lfs merge=lfs -text
723
+ dps--rust-raytracer.606f85f/environment/executable filter=lfs diff=lfs merge=lfs -text
724
+ dps--rust-raytracer.606f85f/tests/executable filter=lfs diff=lfs merge=lfs -text
725
+ dptech-corp--uni-dock.244f24a/environment/executable filter=lfs diff=lfs merge=lfs -text
726
+ dptech-corp--uni-dock.244f24a/tests/executable filter=lfs diff=lfs merge=lfs -text
727
+ drgrib--alfred-bear.10590fd/environment/executable filter=lfs diff=lfs merge=lfs -text
728
+ drgrib--alfred-bear.10590fd/tests/executable filter=lfs diff=lfs merge=lfs -text
729
+ driusan--de.0efad91/environment/executable filter=lfs diff=lfs merge=lfs -text
730
+ driusan--de.0efad91/tests/executable filter=lfs diff=lfs merge=lfs -text
731
+ driusan--dewm.138e341/environment/executable filter=lfs diff=lfs merge=lfs -text
732
+ driusan--dewm.138e341/tests/executable filter=lfs diff=lfs merge=lfs -text
733
+ drone--envsubst.1790424/environment/executable filter=lfs diff=lfs merge=lfs -text
734
+ drone--envsubst.1790424/tests/executable filter=lfs diff=lfs merge=lfs -text
735
+ droplr--aws-env.3960d83/environment/executable filter=lfs diff=lfs merge=lfs -text
736
+ droplr--aws-env.3960d83/tests/executable filter=lfs diff=lfs merge=lfs -text
737
+ drsrinathsridhar--gransac.9141f1/environment/executable filter=lfs diff=lfs merge=lfs -text
738
+ drsrinathsridhar--gransac.9141f1/tests/executable filter=lfs diff=lfs merge=lfs -text
739
+ drycpp--lmdbxx.0b43ca8/environment/executable filter=lfs diff=lfs merge=lfs -text
740
+ drycpp--lmdbxx.0b43ca8/tests/executable filter=lfs diff=lfs merge=lfs -text
741
+ dstahlke--gnuplot-iostream.82b6f/environment/executable filter=lfs diff=lfs merge=lfs -text
742
+ dstahlke--gnuplot-iostream.82b6f/tests/executable filter=lfs diff=lfs merge=lfs -text
743
+ dtgorski--typex.59668c2/environment/executable filter=lfs diff=lfs merge=lfs -text
744
+ dtgorski--typex.59668c2/tests/executable filter=lfs diff=lfs merge=lfs -text
745
+ dtolnay--cargo-llvm-lines.f50070/environment/executable filter=lfs diff=lfs merge=lfs -text
746
+ dtolnay--cargo-llvm-lines.f50070/tests/executable filter=lfs diff=lfs merge=lfs -text
747
+ dtolnay--colorous.a3ca579/environment/executable filter=lfs diff=lfs merge=lfs -text
748
+ dtolnay--colorous.a3ca579/tests/executable filter=lfs diff=lfs merge=lfs -text
749
+ dtolnay--faketty.190a45d/environment/executable filter=lfs diff=lfs merge=lfs -text
750
+ dtolnay--faketty.190a45d/tests/executable filter=lfs diff=lfs merge=lfs -text
751
+ dtolnay--proc-macro-workshop.64e/environment/executable filter=lfs diff=lfs merge=lfs -text
752
+ dtolnay--proc-macro-workshop.64e/tests/executable filter=lfs diff=lfs merge=lfs -text
753
+ dtolnay--star-history.f5155f4/environment/executable filter=lfs diff=lfs merge=lfs -text
754
+ dtolnay--star-history.f5155f4/tests/executable filter=lfs diff=lfs merge=lfs -text
755
+ dub-flow--sessionprobe.6780db9/environment/executable filter=lfs diff=lfs merge=lfs -text
756
+ dub-flow--sessionprobe.6780db9/tests/executable filter=lfs diff=lfs merge=lfs -text
757
+ dumbaspl--fumo_loader.78a32ea/environment/executable filter=lfs diff=lfs merge=lfs -text
758
+ dumbaspl--fumo_loader.78a32ea/tests/executable filter=lfs diff=lfs merge=lfs -text
759
+ dustinblackman--cargo-run-bin.68/environment/executable filter=lfs diff=lfs merge=lfs -text
760
+ dustinblackman--cargo-run-bin.68/tests/executable filter=lfs diff=lfs merge=lfs -text
761
+ dvassallo--s3-benchmark.aebfe8e/environment/executable filter=lfs diff=lfs merge=lfs -text
762
+ dvassallo--s3-benchmark.aebfe8e/tests/executable filter=lfs diff=lfs merge=lfs -text
763
+ dvdtsb--hexhog.9d6950b/environment/executable filter=lfs diff=lfs merge=lfs -text
764
+ dvdtsb--hexhog.9d6950b/tests/executable filter=lfs diff=lfs merge=lfs -text
765
+ dvorka-oss--hstr.4f33f7d/environment/executable filter=lfs diff=lfs merge=lfs -text
766
+ dvorka-oss--hstr.4f33f7d/tests/executable filter=lfs diff=lfs merge=lfs -text
767
+ dwisiswant0--cf-check.6ad0247/environment/executable filter=lfs diff=lfs merge=lfs -text
768
+ dwisiswant0--cf-check.6ad0247/tests/executable filter=lfs diff=lfs merge=lfs -text
769
+ dwisiswant0--crlfuzz.7a442bb/environment/executable filter=lfs diff=lfs merge=lfs -text
770
+ dwisiswant0--crlfuzz.7a442bb/tests/executable filter=lfs diff=lfs merge=lfs -text
771
+ dwisiswant0--go-dork.bbcacaf/environment/executable filter=lfs diff=lfs merge=lfs -text
772
+ dwisiswant0--go-dork.bbcacaf/tests/executable filter=lfs diff=lfs merge=lfs -text
773
+ dyegocosta--snake-game.68404bc/environment/executable filter=lfs diff=lfs merge=lfs -text
774
+ dyegocosta--snake-game.68404bc/tests/executable filter=lfs diff=lfs merge=lfs -text
775
+ dylanmeeus--goaudio.1a202c9/environment/executable filter=lfs diff=lfs merge=lfs -text
776
+ dylanmeeus--goaudio.1a202c9/tests/executable filter=lfs diff=lfs merge=lfs -text
777
+ e6a5--zenta.4591320/environment/executable filter=lfs diff=lfs merge=lfs -text
778
+ e6a5--zenta.4591320/tests/executable filter=lfs diff=lfs merge=lfs -text
779
+ ebruneton--precomputed_atmospher/environment/executable filter=lfs diff=lfs merge=lfs -text
780
+ ebruneton--precomputed_atmospher/tests/executable filter=lfs diff=lfs merge=lfs -text
781
+ eclipse-ecal--fineftp-server.bb0/environment/executable filter=lfs diff=lfs merge=lfs -text
782
+ eclipse-ecal--fineftp-server.bb0/tests/executable filter=lfs diff=lfs merge=lfs -text
783
+ ed-asriyan--lottie-converter.626/environment/executable filter=lfs diff=lfs merge=lfs -text
784
+ ed-asriyan--lottie-converter.626/tests/executable filter=lfs diff=lfs merge=lfs -text
785
+ eddieivan01--iox.64235af/environment/executable filter=lfs diff=lfs merge=lfs -text
786
+ eddieivan01--iox.64235af/tests/executable filter=lfs diff=lfs merge=lfs -text
787
+ edera-dev--am-i-isolated.c5b4a86/environment/executable filter=lfs diff=lfs merge=lfs -text
788
+ edera-dev--am-i-isolated.c5b4a86/tests/executable filter=lfs diff=lfs merge=lfs -text
789
+ edrosten--libcvd.09b46d8/environment/executable filter=lfs diff=lfs merge=lfs -text
790
+ edrosten--libcvd.09b46d8/tests/executable filter=lfs diff=lfs merge=lfs -text
791
+ edu4rdshl--fhc.ed011be/environment/executable filter=lfs diff=lfs merge=lfs -text
792
+ edu4rdshl--fhc.ed011be/tests/executable filter=lfs diff=lfs merge=lfs -text
793
+ efficient--surf.f2ec6e1/environment/executable filter=lfs diff=lfs merge=lfs -text
794
+ efficient--surf.f2ec6e1/tests/executable filter=lfs diff=lfs merge=lfs -text
795
+ egoist--bget.799bf99/environment/executable filter=lfs diff=lfs merge=lfs -text
796
+ egoist--bget.799bf99/tests/executable filter=lfs diff=lfs merge=lfs -text
797
+ egoist--dum.ab57a24/environment/executable filter=lfs diff=lfs merge=lfs -text
798
+ egoist--dum.ab57a24/tests/executable filter=lfs diff=lfs merge=lfs -text
799
+ ehsanmok--create-your-own-lang-w/environment/executable filter=lfs diff=lfs merge=lfs -text
800
+ ehsanmok--create-your-own-lang-w/tests/executable filter=lfs diff=lfs merge=lfs -text
801
+ eko--gocache.6692fac/environment/executable filter=lfs diff=lfs merge=lfs -text
802
+ eko--gocache.6692fac/tests/executable filter=lfs diff=lfs merge=lfs -text
803
+ elazarl--go-bindata-assetfs.d06c/environment/executable filter=lfs diff=lfs merge=lfs -text
804
+ elazarl--go-bindata-assetfs.d06c/tests/executable filter=lfs diff=lfs merge=lfs -text
donuts-are-good--bearclaw.c86f29/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de8c2bf8c82ddde491ab7e3e0480f0aee0e1c29f932c258813ecaf4f69d0d033
3
+ size 2713
donuts-are-good--bearclaw.c86f29/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
donuts-are-good--bearclaw.c86f29/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
donuts-are-good--bearclaw.c86f29/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/donuts-are-good--bearclaw.c86f29"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for donuts-are-good/bearclaw"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "donuts-are-good__bearclaw.c86f293"
32
+ repository = "donuts-are-good/bearclaw"
33
+ commit = "c86f2937cd0f5fe8d2f55ce508ac2f25ec8c1fa1"
34
+ language = "go"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.5016069224188295
37
+ test_branches = 4
38
+ test_count = 167
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"
donuts-are-good--bearclaw.c86f29/tests/Dockerfile ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
14
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
15
+ ENV npm_config_registry="https://registry.npmjs.org/"
16
+ ENV npm_config_strict_ssl=false
17
+ ENV npm_config_cache=/workspace/.cache/npm
18
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
19
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
20
+ ENV PIP_TRUSTED_HOST=""
21
+ ENV HOME=/workspace
22
+ ENV XDG_CACHE_HOME=/workspace/.cache
23
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
24
+ ENV PYTHONUSERBASE=/workspace/.local
25
+ ENV GOROOT=/usr/local/go
26
+ ENV GOPATH=/workspace/.go
27
+ ENV GOCACHE=/workspace/.cache/go-build
28
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
29
+ ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30
+ ENV PAGER=cat
31
+ ENV MANPAGER=cat
32
+ ENV LESS=-R
33
+ ENV TQDM_DISABLE=1
34
+ ENV VIRTUAL_ENV=/opt/programgym-venv
35
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
36
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
37
+ RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
38
+ RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
39
+ WORKDIR /workspace
40
+ ADD workspace.tar.gz /workspace/
41
+ COPY executable /workspace/executable
42
+ COPY download.sh /workspace/download.sh
43
+ RUN chmod 755 /workspace/download.sh
44
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
45
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
46
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
47
+ && rm -f /workspace/download.sh \
48
+ && rm -f /tmp/harbor_prepare_download_env.sh
49
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
50
+ RUN chmod 111 /workspace/executable
51
+ WORKDIR /workspace
52
+ # programgym-runtime-workspace-cleanup: v1
53
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
54
+ # Harbor uses tests/ as the separate verifier build context. Start with the
55
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
56
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
57
+ && mkdir -p /workspace /tests
58
+
59
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
60
+ # Installing a newer pytest alone leaves that apt package importable and creates
61
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
62
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
63
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
64
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
65
+ RUN python3 -m pip install --break-system-packages \
66
+ --no-cache-dir --disable-pip-version-check \
67
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
68
+
69
+ COPY test.sh /tests/test.sh
70
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
71
+ COPY programgym_task.json /tests/programgym_task.json
72
+ COPY blobs/ /tests/blobs/
73
+ RUN chmod +x /tests/test.sh
donuts-are-good--bearclaw.c86f29/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:5e31e78b94aad647dab5fed52d99ab4dc95865c9295f0c0f122999b37e019150
3
+ size 10944
donuts-are-good--bearclaw.c86f29/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:8d28d6267eb2ba3f32d324cbc7d44658ff90e6db889080cc1de0d8c02afb8d1e
3
+ size 6567
donuts-are-good--bearclaw.c86f29/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:450a631e17c936ae3c17d4269ad1d85224820504ade5538d93b1b538fa8fbe89
3
+ size 8156
donuts-are-good--bearclaw.c86f29/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:76847f51aa4f1ebf6e6f8d2b677ec1366a655211af367439905ef4f6603bad06
3
+ size 7853
donuts-are-good--bearclaw.c86f29/tests/download.sh ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/donuts-are-good/bearclaw/v2
9
+
10
+ go 1.19
11
+
12
+ require (
13
+ github.com/russross/blackfriday v1.6.0
14
+ mpldr.codes/ansi v1.5.0
15
+ )
16
+ PROGRAMGYM_GO_MOD_EOF
17
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
18
+ github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww=
19
+ github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
20
+ mpldr.codes/ansi v1.5.0 h1:jAAtDMwU/DC7OPxmrVFpmM3RrSQDcMeLhuk6BuEoWZc=
21
+ mpldr.codes/ansi v1.5.0/go.mod h1:SYuKX0r6nxvySxMxzQX9frQaKLjEqKapjjg17euonMc=
22
+ PROGRAMGYM_GO_SUM_EOF
23
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
24
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
25
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
26
+ *"|"*|*","*)
27
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
28
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
29
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
30
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
31
+ fi
32
+ ;;
33
+ esac
34
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
35
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
36
+ fi
37
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
38
+ import os
39
+ import signal
40
+ import subprocess
41
+ import sys
42
+ import time
43
+
44
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
45
+ if not command:
46
+ raise SystemExit(125)
47
+ environment = os.environ.copy()
48
+ environment["GOPROXY"] = proxy
49
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
50
+ try:
51
+ returncode = process.wait(timeout=float(timeout_text))
52
+ except subprocess.TimeoutExpired:
53
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
54
+ sentinel.write("expired\n")
55
+ try:
56
+ os.killpg(process.pid, signal.SIGTERM)
57
+ except ProcessLookupError:
58
+ pass
59
+ deadline = time.monotonic() + float(grace_text)
60
+ group_alive = True
61
+ while time.monotonic() < deadline:
62
+ process.poll()
63
+ try:
64
+ os.killpg(process.pid, 0)
65
+ except ProcessLookupError:
66
+ group_alive = False
67
+ break
68
+ time.sleep(0.05)
69
+ if group_alive:
70
+ try:
71
+ os.killpg(process.pid, signal.SIGKILL)
72
+ except ProcessLookupError:
73
+ pass
74
+ process.wait()
75
+ raise SystemExit(124)
76
+ if returncode < 0:
77
+ returncode = 128 - returncode
78
+ raise SystemExit(returncode)
79
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
80
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
81
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
82
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&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
+ if ! command -v python3 >/dev/null 2>&1; then
91
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
92
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
93
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
94
+ return 1
95
+ else
96
+ exit 1
97
+ fi
98
+ fi
99
+ _programgym_go_with_nexus_timeout() {
100
+ local programgym_go_rc
101
+ local programgym_go_timeout_sentinel
102
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
103
+ return 1
104
+ fi
105
+ 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
106
+ programgym_go_rc=0
107
+ else
108
+ programgym_go_rc=$?
109
+ fi
110
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
111
+ rm -f "$programgym_go_timeout_sentinel"
112
+ return "$programgym_go_rc"
113
+ fi
114
+ rm -f "$programgym_go_timeout_sentinel"
115
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
116
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
117
+ return "$programgym_go_rc"
118
+ fi
119
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
120
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
121
+ }
122
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
123
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
124
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
125
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
126
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
127
+ return 1
128
+ else
129
+ exit 1
130
+ fi
131
+ fi
132
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
133
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
134
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
135
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
136
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
137
+ else
138
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
139
+ fi
140
+ export PATH="$GOROOT/bin:$PATH"
141
+ export GOTOOLCHAIN=local
142
+ if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
143
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
144
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
145
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
146
+ return 1
147
+ else
148
+ exit 1
149
+ fi
150
+ fi
151
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
152
+ unset -f _programgym_go_with_nexus_timeout
153
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
154
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
155
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
156
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
157
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
donuts-are-good--bearclaw.c86f29/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f5df2cde7d5630896015255a71db073fed40ef930fb57171906c75d60b64f56
3
+ size 4444321
donuts-are-good--bearclaw.c86f29/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ source /workspace/download.sh
6
+ set +a
7
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
8
+ import os
9
+ import shlex
10
+
11
+ ignored = {
12
+ "ALL_PROXY",
13
+ "HTTP_PROXY",
14
+ "HTTPS_PROXY",
15
+ "NO_PROXY",
16
+ "OLDPWD",
17
+ "PIP_PROXY",
18
+ "PWD",
19
+ "SHLVL",
20
+ "_",
21
+ "all_proxy",
22
+ "http_proxy",
23
+ "https_proxy",
24
+ "no_proxy",
25
+ "pip_proxy",
26
+ }
27
+ for key in sorted(os.environ):
28
+ if key in ignored or key.startswith("BASH_FUNC_"):
29
+ continue
30
+ value = os.environ[key]
31
+ if "\n" in value:
32
+ continue
33
+ print(f"export {key}={shlex.quote(value)}")
34
+ PY
donuts-are-good--bearclaw.c86f29/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
donuts-are-good--bearclaw.c86f29/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()
donuts-are-good--bearclaw.c86f29/tests/programgym_task.json ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [
7
+ {
8
+ "name": "eval.tests.test_build_output.test_index_multidot_filename_title_trims_only_last_ext",
9
+ "reasons": [
10
+ {
11
+ "id": "short_substring",
12
+ "message": "pytest test uses a too-short substring oracle",
13
+ "path": "eval/tests/test_build_output.py",
14
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
15
+ "severity": "error",
16
+ "stage": "static_lint"
17
+ }
18
+ ]
19
+ }
20
+ ],
21
+ "tests": [
22
+ "eval.tests.test_build_output.test_about_contains_all_site_fields",
23
+ "eval.tests.test_build_output.test_about_contains_author_fields",
24
+ "eval.tests.test_build_output.test_about_includes_header_and_footer",
25
+ "eval.tests.test_build_output.test_about_plugin_valid_json_empty_fields_still_credits",
26
+ "eval.tests.test_build_output.test_about_with_multiple_plugins",
27
+ "eval.tests.test_build_output.test_about_with_no_plugins_has_no_credits",
28
+ "eval.tests.test_build_output.test_about_with_single_plugin_emoji_singular_log",
29
+ "eval.tests.test_build_output.test_feed_generated_when_posts_exist",
30
+ "eval.tests.test_build_output.test_feed_no_posts_no_feed_file",
31
+ "eval.tests.test_build_output.test_index_created_and_contains_all_posts",
32
+ "eval.tests.test_build_output.test_index_empty_posts_dir_no_entries_no_feed",
33
+ "eval.tests.test_build_output.test_index_excludes_non_markdown_files",
34
+ "eval.tests.test_build_output.test_index_includes_header_and_footer",
35
+ "eval.tests.test_build_output.test_index_multidot_filename_title_trims_only_last_ext",
36
+ "eval.tests.test_build_output.test_index_posts_sorted_newest_modtime_first",
37
+ "eval.tests.test_build_output.test_index_url_escapes_filename_in_href",
38
+ "eval.tests.test_build_output.test_output_folder_scaffolded_even_without_explicit_flag",
39
+ "eval.tests.test_build_output.test_post_page_includes_header_and_footer",
40
+ "eval.tests.test_build_output.test_post_page_renders_markdown_to_html",
41
+ "eval.tests.test_build_output.test_post_renders_lists_and_code_markdown",
42
+ "eval.tests.test_build_output.test_run_in_subdirectory_namespaced_output",
43
+ "eval.tests.test_cli_flags.test_config_tolerates_comments_blank_and_malformed_lines",
44
+ "eval.tests.test_cli_flags.test_config_values_reach_about_page",
45
+ "eval.tests.test_cli_flags.test_default_folders_scaffolded",
46
+ "eval.tests.test_cli_flags.test_duplicate_folder_pairs_fatal[flags0]",
47
+ "eval.tests.test_cli_flags.test_duplicate_folder_pairs_fatal[flags1]",
48
+ "eval.tests.test_cli_flags.test_duplicate_folder_pairs_fatal[flags2]",
49
+ "eval.tests.test_cli_flags.test_duplicate_folder_pairs_fatal[flags3]",
50
+ "eval.tests.test_cli_flags.test_duplicate_folder_pairs_fatal[flags4]",
51
+ "eval.tests.test_cli_flags.test_duplicate_folder_pairs_fatal[flags5]",
52
+ "eval.tests.test_cli_flags.test_flag_input_overrides_source_dir",
53
+ "eval.tests.test_cli_flags.test_flag_missing_value_fails",
54
+ "eval.tests.test_cli_flags.test_flag_output_overrides_target_dir",
55
+ "eval.tests.test_cli_flags.test_flag_plugins_overrides_plugin_dir",
56
+ "eval.tests.test_cli_flags.test_flag_templates_overrides_template_dir",
57
+ "eval.tests.test_cli_flags.test_help_long_flag_exits_zero",
58
+ "eval.tests.test_cli_flags.test_help_short_flag_exits_zero_and_lists_flags",
59
+ "eval.tests.test_cli_flags.test_unknown_flag_fails_with_usage",
60
+ "eval.tests.test_error_paths.test_deleted_working_directory_fatal",
61
+ "eval.tests.test_error_paths.test_empty_templates_dir_missing_header_about_empty",
62
+ "eval.tests.test_error_paths.test_input_overridden_to_file_is_fatal",
63
+ "eval.tests.test_error_paths.test_plugin_dir_without_plugin_json",
64
+ "eval.tests.test_error_paths.test_plugin_json_invalid_parse",
65
+ "eval.tests.test_error_paths.test_plugins_folder_is_a_file_plugin_err",
66
+ "eval.tests.test_error_paths.test_templates_footer_only_still_missing_header",
67
+ "eval.tests.test_error_paths.test_templates_header_only_missing_footer",
68
+ "eval.tests.test_watch.test_watch_markdown_change_updates_index_and_feed",
69
+ "eval.tests.test_watch.test_watch_mode_prints_waiting_message",
70
+ "eval.tests.test_watch.test_watch_mode_rebuilds_on_markdown_change",
71
+ "eval.tests.test_watch.test_watch_rebuilds_page_on_template_change"
72
+ ]
73
+ },
74
+ "generated_module_02": {
75
+ "ignore_reason": "",
76
+ "ignored": false,
77
+ "ignored_tests": [],
78
+ "tests": [
79
+ "eval.tests.test_config_firstrun.test_blank_answers_preserve_defaults",
80
+ "eval.tests.test_config_firstrun.test_custom_author_name_written",
81
+ "eval.tests.test_config_firstrun.test_missing_config_writes_site_config_file",
82
+ "eval.tests.test_config_firstrun.test_no_config_file_left_untouched_if_run_with_config",
83
+ "eval.tests.test_config_firstrun.test_prompt_header_printed_on_stdout",
84
+ "eval.tests.test_config_firstrun.test_written_config_exact_line_format",
85
+ "eval.tests.test_config_parsing.test_author_bio_reaches_about_page",
86
+ "eval.tests.test_config_parsing.test_author_links_split_and_rendered",
87
+ "eval.tests.test_config_parsing.test_author_links_whitespace_trimmed",
88
+ "eval.tests.test_config_parsing.test_author_name_reaches_about_page",
89
+ "eval.tests.test_config_parsing.test_comments_before_keys_parsed",
90
+ "eval.tests.test_config_parsing.test_crlf_config_parsed",
91
+ "eval.tests.test_config_parsing.test_extra_whitespace_in_keys_and_values",
92
+ "eval.tests.test_config_parsing.test_malformed_lines_ignored",
93
+ "eval.tests.test_config_parsing.test_single_link_config_parsed",
94
+ "eval.tests.test_config_parsing.test_site_description_reaches_about_page",
95
+ "eval.tests.test_config_parsing.test_site_license_reaches_about_page",
96
+ "eval.tests.test_config_parsing.test_site_link_reaches_about_page",
97
+ "eval.tests.test_config_parsing.test_site_name_reaches_about_page",
98
+ "eval.tests.test_config_parsing.test_unknown_keys_ignored",
99
+ "eval.tests.test_config_parsing.test_valid_config_no_prompt",
100
+ "eval.tests.test_config_prompts.test_prompt_displays_message_and_default[Author bio-open source enthusiast, author of bearclaw, professional coffee sipper and world-renowned pastry smuggler :)]",
101
+ "eval.tests.test_config_prompts.test_prompt_displays_message_and_default[Author links-https://github.com/donuts-are-good/,https://github.com/donuts-are-good/bearclaw]",
102
+ "eval.tests.test_config_prompts.test_prompt_displays_message_and_default[Author name-@donuts-are-good]",
103
+ "eval.tests.test_config_prompts.test_prompt_displays_message_and_default[Site description-a blog about a tiny static site generator in Go!]",
104
+ "eval.tests.test_config_prompts.test_prompt_displays_message_and_default[Site license-MIT License]",
105
+ "eval.tests.test_config_prompts.test_prompt_displays_message_and_default[Site link-https://bearclaw.blog]",
106
+ "eval.tests.test_config_prompts.test_prompt_displays_message_and_default[Site name-bearclaw blog]",
107
+ "eval.tests.test_config_scaffold.test_scaffold_creates_all_folders_first_run",
108
+ "eval.tests.test_config_scaffold.test_scaffold_creates_folders_with_existing_config",
109
+ "eval.tests.test_config_scaffold.test_scaffold_does_not_recreate_preexisting_dirs",
110
+ "eval.tests.test_config_scaffold.test_scaffold_does_not_remove_existing_files",
111
+ "eval.tests.test_config_scaffold.test_scaffold_idempotent_second_run",
112
+ "eval.tests.test_config_scaffold.test_scaffold_not_reached_when_config_invalid",
113
+ "eval.tests.test_config_scaffold.test_templates_dir_created_but_header_not_populated",
114
+ "eval.tests.test_config_validation.test_comments_only_config_fatal",
115
+ "eval.tests.test_config_validation.test_empty_config_file_fatal",
116
+ "eval.tests.test_config_validation.test_empty_value_key_is_valid",
117
+ "eval.tests.test_config_validation.test_missing_required_key_fatal[author_bio]",
118
+ "eval.tests.test_config_validation.test_missing_required_key_fatal[author_links]",
119
+ "eval.tests.test_config_validation.test_missing_required_key_fatal[author_name]",
120
+ "eval.tests.test_config_validation.test_missing_required_key_fatal[site_description]",
121
+ "eval.tests.test_config_validation.test_missing_required_key_fatal[site_license]",
122
+ "eval.tests.test_config_validation.test_missing_required_key_fatal[site_link]",
123
+ "eval.tests.test_config_validation.test_missing_required_key_fatal[site_name]",
124
+ "eval.tests.test_config_validation.test_value_only_no_keys_fatal",
125
+ "eval.tests.test_config_validation.test_whitespace_only_config_fatal"
126
+ ]
127
+ },
128
+ "generated_module_03": {
129
+ "ignore_reason": "",
130
+ "ignored": false,
131
+ "ignored_tests": [],
132
+ "tests": [
133
+ "eval.tests.test_markdown_module.test_blockquote",
134
+ "eval.tests.test_markdown_module.test_bold_italic_code_inline",
135
+ "eval.tests.test_markdown_module.test_concurrent_outputs_are_independent",
136
+ "eval.tests.test_markdown_module.test_custom_header_footer_wrap_page",
137
+ "eval.tests.test_markdown_module.test_each_page_receives_full_template",
138
+ "eval.tests.test_markdown_module.test_empty_markdown_file",
139
+ "eval.tests.test_markdown_module.test_empty_templates_yield_raw_body",
140
+ "eval.tests.test_markdown_module.test_fenced_code_with_language",
141
+ "eval.tests.test_markdown_module.test_flag_overrides_respected",
142
+ "eval.tests.test_markdown_module.test_folder_collision_fatal",
143
+ "eval.tests.test_markdown_module.test_heading_renders_to_h1",
144
+ "eval.tests.test_markdown_module.test_html_in_markdown_is_escaped",
145
+ "eval.tests.test_markdown_module.test_input_folder_missing_reports_error",
146
+ "eval.tests.test_markdown_module.test_link_rendering",
147
+ "eval.tests.test_markdown_module.test_many_files_all_emitted",
148
+ "eval.tests.test_markdown_module.test_missing_footer_template_no_output",
149
+ "eval.tests.test_markdown_module.test_missing_header_template_no_output",
150
+ "eval.tests.test_markdown_module.test_multiple_markdown_files_all_converted",
151
+ "eval.tests.test_markdown_module.test_multiple_paragraphs_separated",
152
+ "eval.tests.test_markdown_module.test_multiple_plugin_markers_expanded_in_order",
153
+ "eval.tests.test_markdown_module.test_nested_markdown_not_walked",
154
+ "eval.tests.test_markdown_module.test_no_markdown_input_creates_shell_only",
155
+ "eval.tests.test_markdown_module.test_non_markdown_files_ignored",
156
+ "eval.tests.test_markdown_module.test_nonmarker_like_text_left_alone",
157
+ "eval.tests.test_markdown_module.test_ordered_list",
158
+ "eval.tests.test_markdown_module.test_output_filename_is_md_plus_html",
159
+ "eval.tests.test_markdown_module.test_plugin_call_missing_file_falls_back",
160
+ "eval.tests.test_markdown_module.test_plugin_call_replaced_with_file_content",
161
+ "eval.tests.test_markdown_module.test_plugin_marker_in_code_block_not_expanded",
162
+ "eval.tests.test_markdown_module.test_rendered_body_is_trimmed",
163
+ "eval.tests.test_markdown_module.test_table_rendering",
164
+ "eval.tests.test_markdown_module.test_unordered_list",
165
+ "eval.tests.test_markdown_module.test_unreadable_markdown_entry_reports_error",
166
+ "eval.tests.test_markdown_module.test_upper_markdown_extension_ignored",
167
+ "eval.tests.test_markdown_module.test_valid_config_prerequisite"
168
+ ]
169
+ },
170
+ "generated_module_04": {
171
+ "ignore_reason": "",
172
+ "ignored": false,
173
+ "ignored_tests": [],
174
+ "tests": [
175
+ "eval.tests.test_findzips.TestFindZips.test_corrupt_zip_aborts_extraction_leaves_all_zips",
176
+ "eval.tests.test_findzips.TestFindZips.test_corrupt_zip_never_deleted",
177
+ "eval.tests.test_findzips.TestFindZips.test_dot_underscore_entries_skipped",
178
+ "eval.tests.test_findzips.TestFindZips.test_empty_plugins_folder_build_succeeds",
179
+ "eval.tests.test_findzips.TestFindZips.test_explicit_dir_entry_creates_empty_dir_and_flattens_file",
180
+ "eval.tests.test_findzips.TestFindZips.test_extracted_content_verbatim_binary",
181
+ "eval.tests.test_findzips.TestFindZips.test_extracted_plugin_usable_by_plugin_call",
182
+ "eval.tests.test_findzips.TestFindZips.test_flat_zip_extracts_and_zip_removed",
183
+ "eval.tests.test_findzips.TestFindZips.test_multiple_zips_all_extracted_and_deleted",
184
+ "eval.tests.test_findzips.TestFindZips.test_non_zip_files_ignored_with_valid_zip_extracted",
185
+ "eval.tests.test_findzips.TestFindZips.test_path_segments_flattened_to_basename",
186
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_description_escapes_newlines_in_xml",
187
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_empty_channel_when_only_non_md_present",
188
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_feed_is_well_formed_xml_with_two_items",
189
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_item_description_is_rendered_html",
190
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_item_link_and_guid_equal_and_escaped",
191
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_item_title_strips_md_extension",
192
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_items_sorted_newest_first_by_mtime",
193
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_link_escapes_angle_brackets_and_spaces",
194
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_multi_item_guids_all_distinct_and_equal_to_links",
195
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_no_feed_when_markdown_empty",
196
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_non_md_files_produce_no_items",
197
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_pubdate_is_rfc1123",
198
+ "eval.tests.test_rss.TestCreateXMLRSSFeed.test_root_is_rss_v2_with_fixed_channel",
199
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_adjacent_same_line_calls_merge_and_fall_back",
200
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_dot_slash_relative_path_accepted",
201
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_injection_into_empty_markdown_body",
202
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_missing_plugin_file_keeps_comment_no_injection",
203
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_missing_plugin_in_one_file_isolated_to_that_file",
204
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_multiple_plugin_calls_separate_lines_all_replaced",
205
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_no_plugin_comments_passthrough_unchanged",
206
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_plugin_call_replaced_cleanly_from_header_template",
207
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_plugin_call_replaced_from_markdown",
208
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_plugin_content_inserted_verbatim_including_html",
209
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_plugin_path_with_space_works",
210
+ "eval.tests.test_scanforplugincalls.TestScanForPluginCalls.test_same_plugin_called_twice_separate_lines_both_occurrences"
211
+ ]
212
+ }
213
+ },
214
+ "commit": "c86f2937cd0f5fe8d2f55ce508ac2f25ec8c1fa1",
215
+ "data_source": "synthetic_programgym",
216
+ "difficulty": "easy",
217
+ "difficulty_score": 1.5016069224188295,
218
+ "eval_clean_hashes": [
219
+ "2f5df2cde7d5630896015255a71db073fed40ef930fb57171906c75d60b64f56"
220
+ ],
221
+ "input_record": {
222
+ "commit": "c86f2937cd0f5fe8d2f55ce508ac2f25ec8c1fa1",
223
+ "commits": 79,
224
+ "contributors": 6,
225
+ "difficulty": "easy",
226
+ "difficulty_code_lines": 1058,
227
+ "difficulty_has_tests": false,
228
+ "difficulty_product_code_lines": 1058,
229
+ "difficulty_runtime_deps": 2,
230
+ "difficulty_score": 1.5016069224188295,
231
+ "difficulty_test_code_lines": 0,
232
+ "full_name": "donuts-are-good/bearclaw",
233
+ "github_stars": 380,
234
+ "input_joern_zip": "go_joern/donuts-are-good__bearclaw.zip",
235
+ "joern_status": true,
236
+ "joern_time": 12.158354396000504,
237
+ "language": "go",
238
+ "pb_match": [
239
+ {
240
+ "pb_fullname": "JohannesKaufmann/html-to-markdown",
241
+ "rank": 526,
242
+ "similarity": 0.4870685338973999
243
+ },
244
+ {
245
+ "pb_fullname": "sibprogrammer/xq",
246
+ "rank": 745,
247
+ "similarity": 0.47801223397254944
248
+ },
249
+ {
250
+ "pb_fullname": "raviqqe/muffet",
251
+ "rank": 844,
252
+ "similarity": 0.46230605244636536
253
+ },
254
+ {
255
+ "pb_fullname": "zk-org/zk",
256
+ "rank": 957,
257
+ "similarity": 0.5154032707214355
258
+ }
259
+ ],
260
+ "repo_age": 3.48,
261
+ "repo_path": "go/donuts-are-good__bearclaw",
262
+ "source": "commit:c86f2937cd0f5fe8d2f55ce508ac2f25ec8c1fa1",
263
+ "status": "done",
264
+ "url": "https://github.com/donuts-are-good/bearclaw"
265
+ },
266
+ "instance_id": "donuts-are-good__bearclaw.c86f293",
267
+ "language": "go",
268
+ "module_iterations": [
269
+ {
270
+ "actual_iterations": 5,
271
+ "branch_name": "generated_module_01",
272
+ "iteration_limit": 5,
273
+ "module_index": 1,
274
+ "module_kind": "source",
275
+ "termination_reason": "max_iterations"
276
+ },
277
+ {
278
+ "actual_iterations": 1,
279
+ "branch_name": "generated_module_02",
280
+ "iteration_limit": 5,
281
+ "module_index": 2,
282
+ "module_kind": "source",
283
+ "termination_reason": "module_coverage_threshold_reached"
284
+ },
285
+ {
286
+ "actual_iterations": 2,
287
+ "branch_name": "generated_module_03",
288
+ "iteration_limit": 5,
289
+ "module_index": 3,
290
+ "module_kind": "source",
291
+ "termination_reason": "module_coverage_threshold_reached"
292
+ },
293
+ {
294
+ "actual_iterations": 3,
295
+ "branch_name": "generated_module_04",
296
+ "iteration_limit": 5,
297
+ "module_index": 4,
298
+ "module_kind": "source",
299
+ "termination_reason": "module_coverage_threshold_reached"
300
+ }
301
+ ],
302
+ "repository": "donuts-are-good/bearclaw"
303
+ }
donuts-are-good--bearclaw.c86f29/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
donuts-are-good--bearclaw.c86f29/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de8c2bf8c82ddde491ab7e3e0480f0aee0e1c29f932c258813ecaf4f69d0d033
3
+ size 2713
dopplerhq--cli.4e158b5/environment/Dockerfile ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
14
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
15
+ ENV npm_config_registry="https://registry.npmjs.org/"
16
+ ENV npm_config_strict_ssl=false
17
+ ENV npm_config_cache=/workspace/.cache/npm
18
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
19
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
20
+ ENV PIP_TRUSTED_HOST=""
21
+ ENV HOME=/workspace
22
+ ENV XDG_CACHE_HOME=/workspace/.cache
23
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
24
+ ENV PYTHONUSERBASE=/workspace/.local
25
+ ENV GOROOT=/usr/local/go
26
+ ENV GOPATH=/workspace/.go
27
+ ENV GOCACHE=/workspace/.cache/go-build
28
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
29
+ ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30
+ ENV PAGER=cat
31
+ ENV MANPAGER=cat
32
+ ENV LESS=-R
33
+ ENV TQDM_DISABLE=1
34
+ ENV VIRTUAL_ENV=/opt/programgym-venv
35
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
36
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
37
+ RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
38
+ RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
39
+ WORKDIR /workspace
40
+ ADD workspace.tar.gz /workspace/
41
+ COPY executable /workspace/executable
42
+ COPY download.sh /workspace/download.sh
43
+ RUN chmod 755 /workspace/download.sh
44
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
45
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
46
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
47
+ && rm -f /workspace/download.sh \
48
+ && rm -f /tmp/harbor_prepare_download_env.sh
49
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
50
+ RUN chmod 111 /workspace/executable
51
+ WORKDIR /workspace
52
+ # programgym-runtime-workspace-cleanup: v1
53
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
54
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
55
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
56
+ # submission handed to the separate verifier. Keep the reference executable
57
+ # execute-only; the oracle temporarily restores owner read permission.
58
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
59
+ RUN mkdir -p /home/agent \
60
+ && chown -R agent:agent /home/agent /workspace \
61
+ && chown agent:agent /workspace/executable \
62
+ && chmod 111 /workspace/executable
63
+ ENV HOME=/home/agent
64
+ WORKDIR /workspace
dopplerhq--cli.4e158b5/environment/download.sh ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/DopplerHQ/cli
9
+
10
+ // GO_VERSION_DEF
11
+ go 1.25.7
12
+
13
+ require (
14
+ github.com/AlecAivazis/survey/v2 v2.3.6
15
+ github.com/DopplerHQ/gocui v0.1.0
16
+ github.com/atotto/clipboard v0.1.4
17
+ github.com/google/uuid v1.3.0
18
+ github.com/hashicorp/go-version v1.6.0
19
+ github.com/jedib0t/go-pretty v4.3.0+incompatible
20
+ github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5
21
+ github.com/mattn/go-isatty v0.0.16
22
+ github.com/sasha-s/go-deadlock v0.3.1
23
+ github.com/sirupsen/logrus v1.9.3
24
+ github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
25
+ github.com/spf13/cobra v1.7.0
26
+ github.com/stretchr/testify v1.9.0
27
+ github.com/zalando/go-keyring v0.2.6
28
+ golang.org/x/crypto v0.45.0
29
+ golang.org/x/exp v0.0.0-20220317015231-48e79f11773a
30
+ golang.org/x/sync v0.18.0
31
+ gopkg.in/gookit/color.v1 v1.1.6
32
+ gopkg.in/yaml.v3 v3.0.1
33
+ )
34
+
35
+ require (
36
+ al.essio.dev/pkg/shellescape v1.5.1 // indirect
37
+ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
38
+ github.com/danieljoos/wincred v1.2.2 // indirect
39
+ github.com/davecgh/go-spew v1.1.1 // indirect
40
+ github.com/gdamore/encoding v1.0.0 // indirect
41
+ github.com/gdamore/tcell/v2 v2.4.0 // indirect
42
+ github.com/go-errors/errors v1.0.2 // indirect
43
+ github.com/go-openapi/errors v0.20.3 // indirect
44
+ github.com/go-openapi/strfmt v0.21.3 // indirect
45
+ github.com/godbus/dbus/v5 v5.1.0 // indirect
46
+ github.com/google/go-cmp v0.5.9 // indirect
47
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
48
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
49
+ github.com/lucasb-eyer/go-colorful v1.0.3 // indirect
50
+ github.com/mattn/go-colorable v0.1.13 // indirect
51
+ github.com/mattn/go-runewidth v0.0.14 // indirect
52
+ github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
53
+ github.com/mitchellh/mapstructure v1.5.0 // indirect
54
+ github.com/oklog/ulid v1.3.1 // indirect
55
+ github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
56
+ github.com/pmezard/go-difflib v1.0.0 // indirect
57
+ github.com/rivo/uniseg v0.4.2 // indirect
58
+ github.com/samber/lo v1.31.0 // indirect
59
+ github.com/spf13/pflag v1.0.5 // indirect
60
+ go.mongodb.org/mongo-driver v1.10.3 // indirect
61
+ golang.org/x/sys v0.38.0 // indirect
62
+ golang.org/x/term v0.37.0 // indirect
63
+ golang.org/x/text v0.31.0 // indirect
64
+ )
65
+ PROGRAMGYM_GO_MOD_EOF
66
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
67
+ al.essio.dev/pkg/shellescape v1.5.1 h1:86HrALUujYS/h+GtqoB26SBEdkWfmMI6FubjXlsXyho=
68
+ al.essio.dev/pkg/shellescape v1.5.1/go.mod h1:6sIqp7X2P6mThCQ7twERpZTuigpr6KbZWtls1U8I890=
69
+ github.com/AlecAivazis/survey/v2 v2.3.6 h1:NvTuVHISgTHEHeBFqt6BHOe4Ny/NwGZr7w+F8S9ziyw=
70
+ github.com/AlecAivazis/survey/v2 v2.3.6/go.mod h1:4AuI9b7RjAR+G7v9+C4YSlX/YL3K3cWNXgWXOhllqvI=
71
+ github.com/DopplerHQ/gocui v0.1.0 h1:koC9KoJsJCLrhmU7kd3APEzyeteU4h+3+rxogvjtLHk=
72
+ github.com/DopplerHQ/gocui v0.1.0/go.mod h1:sh6LfDRF5KYZbKXdyTgZ62eVhx1dIVTTKxsTzD9Qmg4=
73
+ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
74
+ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
75
+ github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
76
+ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ=
77
+ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
78
+ github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
79
+ github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
80
+ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
81
+ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
82
+ github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI=
83
+ github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
84
+ github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0=
85
+ github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8=
86
+ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
87
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
88
+ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
89
+ github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
90
+ github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
91
+ github.com/gdamore/tcell/v2 v2.4.0 h1:W6dxJEmaxYvhICFoTY3WrLLEXsQ11SaFnKGVEXW57KM=
92
+ github.com/gdamore/tcell/v2 v2.4.0/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU=
93
+ github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
94
+ github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
95
+ github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M=
96
+ github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc=
97
+ github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk=
98
+ github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o=
99
+ github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg=
100
+ github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
101
+ github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
102
+ github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
103
+ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
104
+ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
105
+ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
106
+ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
107
+ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
108
+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
109
+ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
110
+ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
111
+ github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek=
112
+ github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
113
+ github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog=
114
+ github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68=
115
+ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
116
+ github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
117
+ github.com/jedib0t/go-pretty v4.3.0+incompatible h1:CGs8AVhEKg/n9YbUenWmNStRW2PHJzaeDodcfvRAbIo=
118
+ github.com/jedib0t/go-pretty v4.3.0+incompatible/go.mod h1:XemHduiw8R651AF9Pt4FwCTKeG3oo7hrHJAoznj9nag=
119
+ github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5 h1:CDuQmfOjAtb1Gms6a1p5L2P8RhbLUq5t8aL7PiQd2uY=
120
+ github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5/go.mod h1:qxN4mHOAyeIDLP7IK7defgPClM/z1Kze8VVQiaEjzsQ=
121
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
122
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
123
+ github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
124
+ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
125
+ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
126
+ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
127
+ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
128
+ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
129
+ github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac=
130
+ github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
131
+ github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
132
+ github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
133
+ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
134
+ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
135
+ github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=
136
+ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
137
+ github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
138
+ github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
139
+ github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
140
+ github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
141
+ github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=
142
+ github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
143
+ github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
144
+ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
145
+ github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
146
+ github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
147
+ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
148
+ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
149
+ github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
150
+ github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
151
+ github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ=
152
+ github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o=
153
+ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
154
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
155
+ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
156
+ github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
157
+ github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
158
+ github.com/rivo/uniseg v0.4.2 h1:YwD0ulJSJytLpiaWua0sBDusfsCZohxjxzVTYjwxfV8=
159
+ github.com/rivo/uniseg v0.4.2/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
160
+ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
161
+ github.com/samber/lo v1.31.0 h1:Sfa+/064Tdo4SvlohQUQzBhgSer9v/coGvKQI/XLWAM=
162
+ github.com/samber/lo v1.31.0/go.mod h1:HLeWcJRRyLKp3+/XBJvOrerCQn9mhdKMHyd7IRlgeQ8=
163
+ github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0=
164
+ github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM=
165
+ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
166
+ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
167
+ github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
168
+ github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
169
+ github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
170
+ github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
171
+ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
172
+ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
173
+ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
174
+ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
175
+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
176
+ github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
177
+ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
178
+ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
179
+ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
180
+ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
181
+ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
182
+ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
183
+ github.com/thoas/go-funk v0.9.1 h1:O549iLZqPpTUQ10ykd26sZhzD+rmR5pWhuElrhbC20M=
184
+ github.com/thoas/go-funk v0.9.1/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q=
185
+ github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=
186
+ github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
187
+ github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
188
+ github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g=
189
+ github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8=
190
+ github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
191
+ github.com/zalando/go-keyring v0.2.6 h1:r7Yc3+H+Ux0+M72zacZoItR3UDxeWfKTcabvkI8ua9s=
192
+ github.com/zalando/go-keyring v0.2.6/go.mod h1:2TCrxYrbUNYfNS/Kgy/LSrkSQzZ5UPVH85RwfczwvcI=
193
+ go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8=
194
+ go.mongodb.org/mongo-driver v1.10.3 h1:XDQEvmh6z1EUsXuIkXE9TaVeqHw6SwS1uf93jFs0HBA=
195
+ go.mongodb.org/mongo-driver v1.10.3/go.mod h1:z4XpeoU6w+9Vht+jAFyLgVrD+jGSQQe0+CBWFHNiHt8=
196
+ golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
197
+ golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
198
+ golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
199
+ golang.org/x/exp v0.0.0-20220317015231-48e79f11773a h1:DAzrdbxsb5tXNOhMCSwF7ZdfMbW46hE9fSVO6BsmUZM=
200
+ golang.org/x/exp v0.0.0-20220317015231-48e79f11773a/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE=
201
+ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
202
+ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
203
+ golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
204
+ golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
205
+ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
206
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
207
+ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
208
+ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
209
+ golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
210
+ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
211
+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
212
+ golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
213
+ golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
214
+ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
215
+ golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
216
+ golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
217
+ golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
218
+ golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=
219
+ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
220
+ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
221
+ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
222
+ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
223
+ golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=
224
+ golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=
225
+ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
226
+ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
227
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
228
+ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
229
+ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
230
+ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
231
+ gopkg.in/gookit/color.v1 v1.1.6 h1:5fB10p6AUFjhd2ayq9JgmJWr9WlTrguFdw3qlYtKNHk=
232
+ gopkg.in/gookit/color.v1 v1.1.6/go.mod h1:IcEkFGaveVShJ+j8ew+jwe9epHyGpJ9IrptHmW3laVY=
233
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
234
+ gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
235
+ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
236
+ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
237
+ PROGRAMGYM_GO_SUM_EOF
238
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
239
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
240
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
241
+ *"|"*|*","*)
242
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
243
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
244
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
245
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
246
+ fi
247
+ ;;
248
+ esac
249
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
250
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
251
+ fi
252
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
253
+ import os
254
+ import signal
255
+ import subprocess
256
+ import sys
257
+ import time
258
+
259
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
260
+ if not command:
261
+ raise SystemExit(125)
262
+ environment = os.environ.copy()
263
+ environment["GOPROXY"] = proxy
264
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
265
+ try:
266
+ returncode = process.wait(timeout=float(timeout_text))
267
+ except subprocess.TimeoutExpired:
268
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
269
+ sentinel.write("expired\n")
270
+ try:
271
+ os.killpg(process.pid, signal.SIGTERM)
272
+ except ProcessLookupError:
273
+ pass
274
+ deadline = time.monotonic() + float(grace_text)
275
+ group_alive = True
276
+ while time.monotonic() < deadline:
277
+ process.poll()
278
+ try:
279
+ os.killpg(process.pid, 0)
280
+ except ProcessLookupError:
281
+ group_alive = False
282
+ break
283
+ time.sleep(0.05)
284
+ if group_alive:
285
+ try:
286
+ os.killpg(process.pid, signal.SIGKILL)
287
+ except ProcessLookupError:
288
+ pass
289
+ process.wait()
290
+ raise SystemExit(124)
291
+ if returncode < 0:
292
+ returncode = 128 - returncode
293
+ raise SystemExit(returncode)
294
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
295
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
296
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
297
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
298
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
299
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
300
+ return 1
301
+ else
302
+ exit 1
303
+ fi
304
+ fi
305
+ if ! command -v python3 >/dev/null 2>&1; then
306
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
307
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
308
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
309
+ return 1
310
+ else
311
+ exit 1
312
+ fi
313
+ fi
314
+ _programgym_go_with_nexus_timeout() {
315
+ local programgym_go_rc
316
+ local programgym_go_timeout_sentinel
317
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
318
+ return 1
319
+ fi
320
+ 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
321
+ programgym_go_rc=0
322
+ else
323
+ programgym_go_rc=$?
324
+ fi
325
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
326
+ rm -f "$programgym_go_timeout_sentinel"
327
+ return "$programgym_go_rc"
328
+ fi
329
+ rm -f "$programgym_go_timeout_sentinel"
330
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
331
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
332
+ return "$programgym_go_rc"
333
+ fi
334
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
335
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
336
+ }
337
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
338
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
339
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
340
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
341
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
342
+ return 1
343
+ else
344
+ exit 1
345
+ fi
346
+ fi
347
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
348
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
349
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
350
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
351
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
352
+ else
353
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
354
+ fi
355
+ export PATH="$GOROOT/bin:$PATH"
356
+ export GOTOOLCHAIN=local
357
+ if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
358
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
359
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
360
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
361
+ return 1
362
+ else
363
+ exit 1
364
+ fi
365
+ fi
366
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
367
+ unset -f _programgym_go_with_nexus_timeout
368
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
369
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
370
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
371
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
372
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
dopplerhq--cli.4e158b5/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab510f8c7942e82df036cca79861e962b453c07fb6946782485aa80a9d72c863
3
+ size 17771281
dopplerhq--cli.4e158b5/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ source /workspace/download.sh
6
+ set +a
7
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
8
+ import os
9
+ import shlex
10
+
11
+ ignored = {
12
+ "ALL_PROXY",
13
+ "HTTP_PROXY",
14
+ "HTTPS_PROXY",
15
+ "NO_PROXY",
16
+ "OLDPWD",
17
+ "PIP_PROXY",
18
+ "PWD",
19
+ "SHLVL",
20
+ "_",
21
+ "all_proxy",
22
+ "http_proxy",
23
+ "https_proxy",
24
+ "no_proxy",
25
+ "pip_proxy",
26
+ }
27
+ for key in sorted(os.environ):
28
+ if key in ignored or key.startswith("BASH_FUNC_"):
29
+ continue
30
+ value = os.environ[key]
31
+ if "\n" in value:
32
+ continue
33
+ print(f"export {key}={shlex.quote(value)}")
34
+ PY
dopplerhq--cli.4e158b5/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
dopplerhq--cli.4e158b5/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9497324d9b93e083f3fc602649c8455e7707589442d30eee7ae99bc7fbb0f23e
3
+ size 1478
dopplerhq--cli.4e158b5/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
dopplerhq--cli.4e158b5/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
dopplerhq--cli.4e158b5/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/dopplerhq--cli.4e158b5"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for DopplerHQ/cli"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "DopplerHQ__cli.4e158b5"
32
+ repository = "DopplerHQ/cli"
33
+ commit = "4e158b5d50a4feb46ac2136ca66bbc2960eff6c7"
34
+ language = "go"
35
+ difficulty = "medium"
36
+ difficulty_score = 3.908227582900807
37
+ test_branches = 7
38
+ test_count = 1193
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"
dopplerhq--cli.4e158b5/tests/Dockerfile ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
14
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
15
+ ENV npm_config_registry="https://registry.npmjs.org/"
16
+ ENV npm_config_strict_ssl=false
17
+ ENV npm_config_cache=/workspace/.cache/npm
18
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
19
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
20
+ ENV PIP_TRUSTED_HOST=""
21
+ ENV HOME=/workspace
22
+ ENV XDG_CACHE_HOME=/workspace/.cache
23
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
24
+ ENV PYTHONUSERBASE=/workspace/.local
25
+ ENV GOROOT=/usr/local/go
26
+ ENV GOPATH=/workspace/.go
27
+ ENV GOCACHE=/workspace/.cache/go-build
28
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
29
+ ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30
+ ENV PAGER=cat
31
+ ENV MANPAGER=cat
32
+ ENV LESS=-R
33
+ ENV TQDM_DISABLE=1
34
+ ENV VIRTUAL_ENV=/opt/programgym-venv
35
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
36
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
37
+ RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
38
+ RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
39
+ WORKDIR /workspace
40
+ ADD workspace.tar.gz /workspace/
41
+ COPY executable /workspace/executable
42
+ COPY download.sh /workspace/download.sh
43
+ RUN chmod 755 /workspace/download.sh
44
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
45
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
46
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
47
+ && rm -f /workspace/download.sh \
48
+ && rm -f /tmp/harbor_prepare_download_env.sh
49
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
50
+ RUN chmod 111 /workspace/executable
51
+ WORKDIR /workspace
52
+ # programgym-runtime-workspace-cleanup: v1
53
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
54
+ # Harbor uses tests/ as the separate verifier build context. Start with the
55
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
56
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
57
+ && mkdir -p /workspace /tests
58
+
59
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
60
+ # Installing a newer pytest alone leaves that apt package importable and creates
61
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
62
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
63
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
64
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
65
+ RUN python3 -m pip install --break-system-packages \
66
+ --no-cache-dir --disable-pip-version-check \
67
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
68
+
69
+ COPY test.sh /tests/test.sh
70
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
71
+ COPY programgym_task.json /tests/programgym_task.json
72
+ COPY blobs/ /tests/blobs/
73
+ RUN chmod +x /tests/test.sh
dopplerhq--cli.4e158b5/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:cf4e52fe7e0c23154e1b8dd8eb572b2d58c37ad17b8bc30f5fbe3183cba5b40f
3
+ size 40326
dopplerhq--cli.4e158b5/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:bddaab21ff4ade093f8ad88715df13a61982ebfeffb59046c6dc75b81468c54c
3
+ size 23013
dopplerhq--cli.4e158b5/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:fff308c8707210bde32693f97213bf262dda292dcbc411538918703bf5dd6b8e
3
+ size 31886
dopplerhq--cli.4e158b5/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:44b711c756ab4cfa6ed347b7f92ee771e8e6326fcc9c903777d1ae5d0d7e0b8d
3
+ size 21672
dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_05.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:331a3b10d90b75efdc58e52d8bab097d18867afda46e58cef6c7c6162a9703ef
3
+ size 40315
dopplerhq--cli.4e158b5/tests/blobs/tests/generated_module_06.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ab00a3caf644fb9bc884212f7a2d8ae654d0018ad10d91c7b048480a47975cc
3
+ size 9422
dopplerhq--cli.4e158b5/tests/blobs/tests/generated_upstream.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45167a7c21b6d210643533ccd8cf55bd1d8b9af700622849a04d5995c387adbb
3
+ size 9780
dopplerhq--cli.4e158b5/tests/download.sh ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/DopplerHQ/cli
9
+
10
+ // GO_VERSION_DEF
11
+ go 1.25.7
12
+
13
+ require (
14
+ github.com/AlecAivazis/survey/v2 v2.3.6
15
+ github.com/DopplerHQ/gocui v0.1.0
16
+ github.com/atotto/clipboard v0.1.4
17
+ github.com/google/uuid v1.3.0
18
+ github.com/hashicorp/go-version v1.6.0
19
+ github.com/jedib0t/go-pretty v4.3.0+incompatible
20
+ github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5
21
+ github.com/mattn/go-isatty v0.0.16
22
+ github.com/sasha-s/go-deadlock v0.3.1
23
+ github.com/sirupsen/logrus v1.9.3
24
+ github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
25
+ github.com/spf13/cobra v1.7.0
26
+ github.com/stretchr/testify v1.9.0
27
+ github.com/zalando/go-keyring v0.2.6
28
+ golang.org/x/crypto v0.45.0
29
+ golang.org/x/exp v0.0.0-20220317015231-48e79f11773a
30
+ golang.org/x/sync v0.18.0
31
+ gopkg.in/gookit/color.v1 v1.1.6
32
+ gopkg.in/yaml.v3 v3.0.1
33
+ )
34
+
35
+ require (
36
+ al.essio.dev/pkg/shellescape v1.5.1 // indirect
37
+ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
38
+ github.com/danieljoos/wincred v1.2.2 // indirect
39
+ github.com/davecgh/go-spew v1.1.1 // indirect
40
+ github.com/gdamore/encoding v1.0.0 // indirect
41
+ github.com/gdamore/tcell/v2 v2.4.0 // indirect
42
+ github.com/go-errors/errors v1.0.2 // indirect
43
+ github.com/go-openapi/errors v0.20.3 // indirect
44
+ github.com/go-openapi/strfmt v0.21.3 // indirect
45
+ github.com/godbus/dbus/v5 v5.1.0 // indirect
46
+ github.com/google/go-cmp v0.5.9 // indirect
47
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
48
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
49
+ github.com/lucasb-eyer/go-colorful v1.0.3 // indirect
50
+ github.com/mattn/go-colorable v0.1.13 // indirect
51
+ github.com/mattn/go-runewidth v0.0.14 // indirect
52
+ github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
53
+ github.com/mitchellh/mapstructure v1.5.0 // indirect
54
+ github.com/oklog/ulid v1.3.1 // indirect
55
+ github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
56
+ github.com/pmezard/go-difflib v1.0.0 // indirect
57
+ github.com/rivo/uniseg v0.4.2 // indirect
58
+ github.com/samber/lo v1.31.0 // indirect
59
+ github.com/spf13/pflag v1.0.5 // indirect
60
+ go.mongodb.org/mongo-driver v1.10.3 // indirect
61
+ golang.org/x/sys v0.38.0 // indirect
62
+ golang.org/x/term v0.37.0 // indirect
63
+ golang.org/x/text v0.31.0 // indirect
64
+ )
65
+ PROGRAMGYM_GO_MOD_EOF
66
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
67
+ al.essio.dev/pkg/shellescape v1.5.1 h1:86HrALUujYS/h+GtqoB26SBEdkWfmMI6FubjXlsXyho=
68
+ al.essio.dev/pkg/shellescape v1.5.1/go.mod h1:6sIqp7X2P6mThCQ7twERpZTuigpr6KbZWtls1U8I890=
69
+ github.com/AlecAivazis/survey/v2 v2.3.6 h1:NvTuVHISgTHEHeBFqt6BHOe4Ny/NwGZr7w+F8S9ziyw=
70
+ github.com/AlecAivazis/survey/v2 v2.3.6/go.mod h1:4AuI9b7RjAR+G7v9+C4YSlX/YL3K3cWNXgWXOhllqvI=
71
+ github.com/DopplerHQ/gocui v0.1.0 h1:koC9KoJsJCLrhmU7kd3APEzyeteU4h+3+rxogvjtLHk=
72
+ github.com/DopplerHQ/gocui v0.1.0/go.mod h1:sh6LfDRF5KYZbKXdyTgZ62eVhx1dIVTTKxsTzD9Qmg4=
73
+ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
74
+ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
75
+ github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
76
+ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ=
77
+ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
78
+ github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
79
+ github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
80
+ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
81
+ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
82
+ github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI=
83
+ github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
84
+ github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0=
85
+ github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8=
86
+ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
87
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
88
+ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
89
+ github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
90
+ github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
91
+ github.com/gdamore/tcell/v2 v2.4.0 h1:W6dxJEmaxYvhICFoTY3WrLLEXsQ11SaFnKGVEXW57KM=
92
+ github.com/gdamore/tcell/v2 v2.4.0/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU=
93
+ github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
94
+ github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
95
+ github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M=
96
+ github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc=
97
+ github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk=
98
+ github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o=
99
+ github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg=
100
+ github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
101
+ github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
102
+ github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
103
+ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
104
+ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
105
+ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
106
+ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
107
+ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
108
+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
109
+ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
110
+ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
111
+ github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek=
112
+ github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
113
+ github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog=
114
+ github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68=
115
+ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
116
+ github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
117
+ github.com/jedib0t/go-pretty v4.3.0+incompatible h1:CGs8AVhEKg/n9YbUenWmNStRW2PHJzaeDodcfvRAbIo=
118
+ github.com/jedib0t/go-pretty v4.3.0+incompatible/go.mod h1:XemHduiw8R651AF9Pt4FwCTKeG3oo7hrHJAoznj9nag=
119
+ github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5 h1:CDuQmfOjAtb1Gms6a1p5L2P8RhbLUq5t8aL7PiQd2uY=
120
+ github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5/go.mod h1:qxN4mHOAyeIDLP7IK7defgPClM/z1Kze8VVQiaEjzsQ=
121
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
122
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
123
+ github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
124
+ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
125
+ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
126
+ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
127
+ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
128
+ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
129
+ github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac=
130
+ github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
131
+ github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
132
+ github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
133
+ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
134
+ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
135
+ github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=
136
+ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
137
+ github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
138
+ github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
139
+ github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
140
+ github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
141
+ github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=
142
+ github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
143
+ github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
144
+ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
145
+ github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
146
+ github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
147
+ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
148
+ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
149
+ github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
150
+ github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
151
+ github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ=
152
+ github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o=
153
+ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
154
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
155
+ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
156
+ github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
157
+ github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
158
+ github.com/rivo/uniseg v0.4.2 h1:YwD0ulJSJytLpiaWua0sBDusfsCZohxjxzVTYjwxfV8=
159
+ github.com/rivo/uniseg v0.4.2/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
160
+ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
161
+ github.com/samber/lo v1.31.0 h1:Sfa+/064Tdo4SvlohQUQzBhgSer9v/coGvKQI/XLWAM=
162
+ github.com/samber/lo v1.31.0/go.mod h1:HLeWcJRRyLKp3+/XBJvOrerCQn9mhdKMHyd7IRlgeQ8=
163
+ github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0=
164
+ github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM=
165
+ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
166
+ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
167
+ github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
168
+ github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
169
+ github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
170
+ github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
171
+ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
172
+ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
173
+ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
174
+ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
175
+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
176
+ github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
177
+ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
178
+ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
179
+ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
180
+ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
181
+ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
182
+ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
183
+ github.com/thoas/go-funk v0.9.1 h1:O549iLZqPpTUQ10ykd26sZhzD+rmR5pWhuElrhbC20M=
184
+ github.com/thoas/go-funk v0.9.1/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q=
185
+ github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=
186
+ github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
187
+ github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
188
+ github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g=
189
+ github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8=
190
+ github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
191
+ github.com/zalando/go-keyring v0.2.6 h1:r7Yc3+H+Ux0+M72zacZoItR3UDxeWfKTcabvkI8ua9s=
192
+ github.com/zalando/go-keyring v0.2.6/go.mod h1:2TCrxYrbUNYfNS/Kgy/LSrkSQzZ5UPVH85RwfczwvcI=
193
+ go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8=
194
+ go.mongodb.org/mongo-driver v1.10.3 h1:XDQEvmh6z1EUsXuIkXE9TaVeqHw6SwS1uf93jFs0HBA=
195
+ go.mongodb.org/mongo-driver v1.10.3/go.mod h1:z4XpeoU6w+9Vht+jAFyLgVrD+jGSQQe0+CBWFHNiHt8=
196
+ golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
197
+ golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
198
+ golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
199
+ golang.org/x/exp v0.0.0-20220317015231-48e79f11773a h1:DAzrdbxsb5tXNOhMCSwF7ZdfMbW46hE9fSVO6BsmUZM=
200
+ golang.org/x/exp v0.0.0-20220317015231-48e79f11773a/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE=
201
+ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
202
+ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
203
+ golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
204
+ golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
205
+ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
206
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
207
+ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
208
+ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
209
+ golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
210
+ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
211
+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
212
+ golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
213
+ golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
214
+ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
215
+ golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
216
+ golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
217
+ golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
218
+ golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=
219
+ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
220
+ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
221
+ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
222
+ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
223
+ golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=
224
+ golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=
225
+ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
226
+ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
227
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
228
+ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
229
+ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
230
+ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
231
+ gopkg.in/gookit/color.v1 v1.1.6 h1:5fB10p6AUFjhd2ayq9JgmJWr9WlTrguFdw3qlYtKNHk=
232
+ gopkg.in/gookit/color.v1 v1.1.6/go.mod h1:IcEkFGaveVShJ+j8ew+jwe9epHyGpJ9IrptHmW3laVY=
233
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
234
+ gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
235
+ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
236
+ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
237
+ PROGRAMGYM_GO_SUM_EOF
238
+ PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
239
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
240
+ case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
241
+ *"|"*|*","*)
242
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
243
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
244
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
245
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
246
+ fi
247
+ ;;
248
+ esac
249
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
250
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
251
+ fi
252
+ cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
253
+ import os
254
+ import signal
255
+ import subprocess
256
+ import sys
257
+ import time
258
+
259
+ sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
260
+ if not command:
261
+ raise SystemExit(125)
262
+ environment = os.environ.copy()
263
+ environment["GOPROXY"] = proxy
264
+ process = subprocess.Popen(command, env=environment, start_new_session=True)
265
+ try:
266
+ returncode = process.wait(timeout=float(timeout_text))
267
+ except subprocess.TimeoutExpired:
268
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
269
+ sentinel.write("expired\n")
270
+ try:
271
+ os.killpg(process.pid, signal.SIGTERM)
272
+ except ProcessLookupError:
273
+ pass
274
+ deadline = time.monotonic() + float(grace_text)
275
+ group_alive = True
276
+ while time.monotonic() < deadline:
277
+ process.poll()
278
+ try:
279
+ os.killpg(process.pid, 0)
280
+ except ProcessLookupError:
281
+ group_alive = False
282
+ break
283
+ time.sleep(0.05)
284
+ if group_alive:
285
+ try:
286
+ os.killpg(process.pid, signal.SIGKILL)
287
+ except ProcessLookupError:
288
+ pass
289
+ process.wait()
290
+ raise SystemExit(124)
291
+ if returncode < 0:
292
+ returncode = 128 - returncode
293
+ raise SystemExit(returncode)
294
+ PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
295
+ PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
296
+ if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
297
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
298
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
299
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
300
+ return 1
301
+ else
302
+ exit 1
303
+ fi
304
+ fi
305
+ if ! command -v python3 >/dev/null 2>&1; then
306
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
307
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
308
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
309
+ return 1
310
+ else
311
+ exit 1
312
+ fi
313
+ fi
314
+ _programgym_go_with_nexus_timeout() {
315
+ local programgym_go_rc
316
+ local programgym_go_timeout_sentinel
317
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
318
+ return 1
319
+ fi
320
+ 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
321
+ programgym_go_rc=0
322
+ else
323
+ programgym_go_rc=$?
324
+ fi
325
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
326
+ rm -f "$programgym_go_timeout_sentinel"
327
+ return "$programgym_go_rc"
328
+ fi
329
+ rm -f "$programgym_go_timeout_sentinel"
330
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
331
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
332
+ return "$programgym_go_rc"
333
+ fi
334
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
335
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
336
+ }
337
+ PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
338
+ if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
339
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
340
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
341
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
342
+ return 1
343
+ else
344
+ exit 1
345
+ fi
346
+ fi
347
+ if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
348
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
349
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
350
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
351
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
352
+ else
353
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
354
+ fi
355
+ export PATH="$GOROOT/bin:$PATH"
356
+ export GOTOOLCHAIN=local
357
+ if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
358
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
359
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
360
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
361
+ return 1
362
+ else
363
+ exit 1
364
+ fi
365
+ fi
366
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
367
+ unset -f _programgym_go_with_nexus_timeout
368
+ unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
369
+ unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
370
+ unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
371
+ unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
372
+ unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
dopplerhq--cli.4e158b5/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab510f8c7942e82df036cca79861e962b453c07fb6946782485aa80a9d72c863
3
+ size 17771281
dopplerhq--cli.4e158b5/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ source /workspace/download.sh
6
+ set +a
7
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
8
+ import os
9
+ import shlex
10
+
11
+ ignored = {
12
+ "ALL_PROXY",
13
+ "HTTP_PROXY",
14
+ "HTTPS_PROXY",
15
+ "NO_PROXY",
16
+ "OLDPWD",
17
+ "PIP_PROXY",
18
+ "PWD",
19
+ "SHLVL",
20
+ "_",
21
+ "all_proxy",
22
+ "http_proxy",
23
+ "https_proxy",
24
+ "no_proxy",
25
+ "pip_proxy",
26
+ }
27
+ for key in sorted(os.environ):
28
+ if key in ignored or key.startswith("BASH_FUNC_"):
29
+ continue
30
+ value = os.environ[key]
31
+ if "\n" in value:
32
+ continue
33
+ print(f"export {key}={shlex.quote(value)}")
34
+ PY
dopplerhq--cli.4e158b5/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
dopplerhq--cli.4e158b5/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()
dopplerhq--cli.4e158b5/tests/programgym_task.json ADDED
The diff for this file is too large to render. See raw diff
 
dopplerhq--cli.4e158b5/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
dopplerhq--cli.4e158b5/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9497324d9b93e083f3fc602649c8455e7707589442d30eee7ae99bc7fbb0f23e
3
+ size 1478
dotenv-linter--dotenv-linter.36e/environment/Dockerfile ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
14
+ ENV npm_config_registry="https://registry.npmjs.org/"
15
+ ENV npm_config_strict_ssl=false
16
+ ENV npm_config_cache=/workspace/.cache/npm
17
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
18
+ ENV PIP_TRUSTED_HOST=""
19
+ ENV HOME=/workspace
20
+ ENV XDG_CACHE_HOME=/workspace/.cache
21
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
22
+ ENV PYTHONUSERBASE=/workspace/.local
23
+ ENV CARGO_HOME=/usr/local/cargo
24
+ ENV RUSTUP_HOME=/usr/local/rustup
25
+ ENV RUSTUP_TOOLCHAIN=1.97.1
26
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
27
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
28
+ ENV PAGER=cat
29
+ ENV MANPAGER=cat
30
+ ENV LESS=-R
31
+ ENV TQDM_DISABLE=1
32
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
33
+ RUN rustup component add llvm-tools-preview --toolchain 1.97.1
34
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
35
+ RUN rustc --version && cargo --version && rustup show active-toolchain
36
+ WORKDIR /workspace
37
+ ADD workspace.tar.gz /workspace/
38
+ COPY executable /workspace/executable
39
+ COPY download.sh /tmp/programgym-download.sh
40
+ RUN chmod 755 /tmp/programgym-download.sh
41
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
42
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
43
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
44
+ && rm -f /tmp/programgym-download.sh \
45
+ && rm -f /tmp/harbor_prepare_download_env.sh
46
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
47
+ RUN chmod 111 /workspace/executable
48
+ WORKDIR /workspace
49
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
50
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
51
+ # submission handed to the separate verifier. Keep the reference executable
52
+ # execute-only; the oracle temporarily restores owner read permission.
53
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
54
+ RUN mkdir -p /home/agent \
55
+ && chown -R agent:agent /home/agent /workspace \
56
+ && chown agent:agent /workspace/executable \
57
+ && chmod 111 /workspace/executable
58
+ ENV HOME=/home/agent
59
+ WORKDIR /workspace
dotenv-linter--dotenv-linter.36e/environment/download.sh ADDED
@@ -0,0 +1,2906 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh -- ProgramGym download stage for dotenv-linter.
3
+ # Standalone, source-safe, idempotent. It ONLY fetches/prefetches Cargo
4
+ # dependencies into the local registry cache and exports the env vars that
5
+ # build.sh relies on. It does not compile, link, test, or package anything.
6
+ #
7
+ # Intended to be run via: source /source_ro/download.sh
8
+ # (so it must keep exported vars in the current shell and must be a valid
9
+ # file to source from the repository root).
10
+
11
+ # ---- Cargo home / target dir that build.sh will reuse ----
12
+ : "${CARGO_HOME:=$HOME/.cargo}"
13
+ export CARGO_HOME
14
+ export CARGO_TARGET_DIR="/tmp/programgym-target"
15
+
16
+ # Build dir for the temporary manifest workspace (fixed path -> idempotent).
17
+ DL_WORK="${CARGO_HOME}/programgym-download-manifest"
18
+
19
+ mkdir -p "${DL_WORK}/dotenv-cli/src" \
20
+ "${DL_WORK}/dotenv-cli/benches" \
21
+ "${DL_WORK}/dotenv-analyzer/src" \
22
+ "${DL_WORK}/dotenv-core/src" \
23
+ "${DL_WORK}/dotenv-finder/src" \
24
+ "${DL_WORK}/dotenv-schema/src"
25
+
26
+ # ---- Temporary virtual-workspace root manifest (inline) ----
27
+ cat > "${DL_WORK}/Cargo.toml" <<'WORKSPACE_MANIFEST'
28
+ [workspace]
29
+ members = [
30
+ "dotenv-analyzer",
31
+ "dotenv-cli",
32
+ "dotenv-core",
33
+ "dotenv-finder",
34
+ "dotenv-schema",
35
+ ]
36
+ resolver = "2"
37
+
38
+ [workspace.package]
39
+ authors = [
40
+ "Mikhail Grachev <work@mgrachev.com>",
41
+ "dotenv-linter core team & contributors",
42
+ ]
43
+ edition = "2024"
44
+ license = "MIT"
45
+ repository = "https://github.com/dotenv-linter/dotenv-linter"
46
+
47
+ [workspace.dependencies]
48
+ assert_cmd = "2.0"
49
+ clap = { version = "4.5", features = ["cargo", "env", "derive"] }
50
+ dunce = "1.0"
51
+ tempfile = "3.23"
52
+
53
+ [profile.release]
54
+ opt-level = 'z' # Optimize for size
55
+ lto = true
56
+ codegen-units = 1
57
+ panic = 'abort'
58
+
59
+ WORKSPACE_MANIFEST
60
+ cat > "${DL_WORK}/dotenv-cli/Cargo.toml" <<'CLI_MANIFEST'
61
+ [package]
62
+ name = "dotenv-linter"
63
+ version = "4.0.0" # managed by release.sh
64
+ authors.workspace = true
65
+ categories = ["command-line-utilities"]
66
+ edition.workspace = true
67
+ homepage = "https://dotenv-linter.github.io"
68
+ include = ["/src", "/benches", "../README.md"]
69
+ keywords = ["cli", "dotenv", "environment", "env", "linter"]
70
+ license.workspace = true
71
+ readme = "../README.md"
72
+ repository.workspace = true
73
+ description = "Lightning-fast linter for .env files"
74
+
75
+ [target.'cfg(windows)'.dev-dependencies]
76
+ dunce.workspace = true
77
+
78
+ [lib]
79
+ bench = false
80
+
81
+ [[bin]]
82
+ name = "dotenv-linter"
83
+ path = "src/main.rs"
84
+ bench = false
85
+
86
+ [features]
87
+ default = ["update-informer"]
88
+ stub_check_version = []
89
+
90
+ [dependencies]
91
+ clap.workspace = true
92
+ colored = "3.0"
93
+ dotenv-analyzer = { version = "0.1", path = "../dotenv-analyzer", features = ["clap"] }
94
+ dotenv-core = { version = "0.1", path = "../dotenv-core" }
95
+ dotenv-finder = { version = "0.1", path = "../dotenv-finder" }
96
+ dotenv-schema = { version = "0.1", path = "../dotenv-schema", features = ["clap"] }
97
+
98
+ [dependencies.update-informer]
99
+ version = "1.3"
100
+ optional = true
101
+
102
+ [dev-dependencies]
103
+ assert_cmd.workspace = true
104
+ criterion = "0.7"
105
+ tempfile.workspace = true
106
+
107
+ [target.'cfg(not(windows))'.dev-dependencies]
108
+ gag = "1.0"
109
+
110
+ [[bench]]
111
+ name = "check"
112
+ harness = false
113
+
114
+ [[bench]]
115
+ name = "fix"
116
+ harness = false
117
+
118
+ [[bench]]
119
+ name = "diff"
120
+ harness = false
121
+ CLI_MANIFEST
122
+
123
+ cat > "${DL_WORK}/dotenv-analyzer/Cargo.toml" <<'ANALYZER_MANIFEST'
124
+ [package]
125
+ name = "dotenv-analyzer"
126
+ version = "0.1.1"
127
+ authors.workspace = true
128
+ documentation = "https://docs.rs/dotenv-analyzer"
129
+ edition.workspace = true
130
+ homepage = "https://github.com/dotenv-linter/dotenv-linter"
131
+ include = ["/src", "README.md"]
132
+ keywords = ["dotenv", "environment", "env", "analyzer"]
133
+ license.workspace = true
134
+ readme = "README.md"
135
+ repository.workspace = true
136
+ description = "A crate to check and fix .env files"
137
+
138
+ [dependencies]
139
+ dotenv-core = { version = "0.1", path = "../dotenv-core" }
140
+ dotenv-schema = { version = "0.1", path = "../dotenv-schema" }
141
+
142
+ [dependencies.clap]
143
+ workspace = true
144
+ optional = true
145
+
146
+ [dev-dependencies]
147
+ regex = "1.12"
148
+ serde_json = "1.0"
149
+ ANALYZER_MANIFEST
150
+
151
+ cat > "${DL_WORK}/dotenv-core/Cargo.toml" <<'CORE_MANIFEST'
152
+ [package]
153
+ name = "dotenv-core"
154
+ version = "0.1.1"
155
+ authors.workspace = true
156
+ documentation = "https://docs.rs/dotenv-core"
157
+ edition.workspace = true
158
+ homepage = "https://github.com/dotenv-linter/dotenv-linter"
159
+ include = ["/src", "README.md"]
160
+ keywords = ["dotenv", "environment", "env", "core"]
161
+ license.workspace = true
162
+ readme = "README.md"
163
+ repository.workspace = true
164
+ description = "Common crate for dotenv-linter crates"
165
+ CORE_MANIFEST
166
+
167
+ cat > "${DL_WORK}/dotenv-finder/Cargo.toml" <<'FINDER_MANIFEST'
168
+ [package]
169
+ name = "dotenv-finder"
170
+ version = "0.1.1"
171
+ authors.workspace = true
172
+ documentation = "https://docs.rs/dotenv-finder"
173
+ edition.workspace = true
174
+ homepage = "https://github.com/dotenv-linter/dotenv-linter"
175
+ include = ["/src", "README.md"]
176
+ keywords = ["dotenv", "environment", "env", "finder"]
177
+ license.workspace = true
178
+ readme = "README.md"
179
+ repository.workspace = true
180
+ description = "A crate to find and parse .env files"
181
+
182
+ [target.'cfg(windows)'.dependencies]
183
+ dunce.workspace = true
184
+
185
+ [dependencies]
186
+ dotenv-core = { version = "0.1", path = "../dotenv-core" }
187
+
188
+ [dev-dependencies]
189
+ tempfile.workspace = true
190
+ FINDER_MANIFEST
191
+
192
+ cat > "${DL_WORK}/dotenv-schema/Cargo.toml" <<'SCHEMA_MANIFEST'
193
+ [package]
194
+ name = "dotenv-schema"
195
+ version = "0.1.1"
196
+ authors.workspace = true
197
+ documentation = "https://docs.rs/dotenv-schema"
198
+ edition.workspace = true
199
+ homepage = "https://github.com/dotenv-linter/dotenv-linter"
200
+ include = ["/src", "README.md"]
201
+ keywords = ["dotenv", "environment", "env", "schema"]
202
+ license.workspace = true
203
+ readme = "README.md"
204
+ repository.workspace = true
205
+ description = "A crate to validate .env files against schemas"
206
+
207
+ [dependencies]
208
+ email_address = "0.2"
209
+ regex = "1.12"
210
+ serde = { version = "1.0", features = ["derive"] }
211
+ serde_json = "1.0"
212
+ serde_regex = "1.1"
213
+ serde_with = "3.15"
214
+ url = "2.5"
215
+
216
+ [dependencies.clap]
217
+ workspace = true
218
+ optional = true
219
+
220
+ [dev-dependencies]
221
+ tempfile.workspace = true
222
+ SCHEMA_MANIFEST
223
+
224
+ cat > "${DL_WORK}/Cargo.lock" <<'PROGRAMGYM_LOCK'
225
+ # This file is automatically @generated by Cargo.
226
+ # It is not intended for manual editing.
227
+ version = 4
228
+
229
+ [[package]]
230
+ name = "addr2line"
231
+ version = "0.24.2"
232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
233
+ checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
234
+ dependencies = [
235
+ "gimli",
236
+ ]
237
+
238
+ [[package]]
239
+ name = "adler2"
240
+ version = "2.0.1"
241
+ source = "registry+https://github.com/rust-lang/crates.io-index"
242
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
243
+
244
+ [[package]]
245
+ name = "aho-corasick"
246
+ version = "1.1.3"
247
+ source = "registry+https://github.com/rust-lang/crates.io-index"
248
+ checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
249
+ dependencies = [
250
+ "memchr",
251
+ ]
252
+
253
+ [[package]]
254
+ name = "android_system_properties"
255
+ version = "0.1.5"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
258
+ dependencies = [
259
+ "libc",
260
+ ]
261
+
262
+ [[package]]
263
+ name = "anes"
264
+ version = "0.1.6"
265
+ source = "registry+https://github.com/rust-lang/crates.io-index"
266
+ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
267
+
268
+ [[package]]
269
+ name = "anstream"
270
+ version = "0.6.20"
271
+ source = "registry+https://github.com/rust-lang/crates.io-index"
272
+ checksum = "3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192"
273
+ dependencies = [
274
+ "anstyle",
275
+ "anstyle-parse",
276
+ "anstyle-query",
277
+ "anstyle-wincon",
278
+ "colorchoice",
279
+ "is_terminal_polyfill",
280
+ "utf8parse",
281
+ ]
282
+
283
+ [[package]]
284
+ name = "anstyle"
285
+ version = "1.0.11"
286
+ source = "registry+https://github.com/rust-lang/crates.io-index"
287
+ checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd"
288
+
289
+ [[package]]
290
+ name = "anstyle-parse"
291
+ version = "0.2.7"
292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
293
+ checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
294
+ dependencies = [
295
+ "utf8parse",
296
+ ]
297
+
298
+ [[package]]
299
+ name = "anstyle-query"
300
+ version = "1.1.4"
301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
302
+ checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2"
303
+ dependencies = [
304
+ "windows-sys 0.60.2",
305
+ ]
306
+
307
+ [[package]]
308
+ name = "anstyle-wincon"
309
+ version = "3.0.10"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a"
312
+ dependencies = [
313
+ "anstyle",
314
+ "once_cell_polyfill",
315
+ "windows-sys 0.60.2",
316
+ ]
317
+
318
+ [[package]]
319
+ name = "assert_cmd"
320
+ version = "2.0.17"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "2bd389a4b2970a01282ee455294913c0a43724daedcd1a24c3eb0ec1c1320b66"
323
+ dependencies = [
324
+ "anstyle",
325
+ "bstr",
326
+ "doc-comment",
327
+ "libc",
328
+ "predicates",
329
+ "predicates-core",
330
+ "predicates-tree",
331
+ "wait-timeout",
332
+ ]
333
+
334
+ [[package]]
335
+ name = "atomic-waker"
336
+ version = "1.1.2"
337
+ source = "registry+https://github.com/rust-lang/crates.io-index"
338
+ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
339
+
340
+ [[package]]
341
+ name = "autocfg"
342
+ version = "1.5.0"
343
+ source = "registry+https://github.com/rust-lang/crates.io-index"
344
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
345
+
346
+ [[package]]
347
+ name = "backtrace"
348
+ version = "0.3.75"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002"
351
+ dependencies = [
352
+ "addr2line",
353
+ "cfg-if",
354
+ "libc",
355
+ "miniz_oxide",
356
+ "object",
357
+ "rustc-demangle",
358
+ "windows-targets 0.52.6",
359
+ ]
360
+
361
+ [[package]]
362
+ name = "base64"
363
+ version = "0.22.1"
364
+ source = "registry+https://github.com/rust-lang/crates.io-index"
365
+ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
366
+
367
+ [[package]]
368
+ name = "bitflags"
369
+ version = "2.9.4"
370
+ source = "registry+https://github.com/rust-lang/crates.io-index"
371
+ checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
372
+
373
+ [[package]]
374
+ name = "bstr"
375
+ version = "1.12.0"
376
+ source = "registry+https://github.com/rust-lang/crates.io-index"
377
+ checksum = "234113d19d0d7d613b40e86fb654acf958910802bcceab913a4f9e7cda03b1a4"
378
+ dependencies = [
379
+ "memchr",
380
+ "regex-automata",
381
+ "serde",
382
+ ]
383
+
384
+ [[package]]
385
+ name = "bumpalo"
386
+ version = "3.19.0"
387
+ source = "registry+https://github.com/rust-lang/crates.io-index"
388
+ checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
389
+
390
+ [[package]]
391
+ name = "bytes"
392
+ version = "1.10.1"
393
+ source = "registry+https://github.com/rust-lang/crates.io-index"
394
+ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
395
+
396
+ [[package]]
397
+ name = "cast"
398
+ version = "0.3.0"
399
+ source = "registry+https://github.com/rust-lang/crates.io-index"
400
+ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
401
+
402
+ [[package]]
403
+ name = "cc"
404
+ version = "1.2.37"
405
+ source = "registry+https://github.com/rust-lang/crates.io-index"
406
+ checksum = "65193589c6404eb80b450d618eaf9a2cafaaafd57ecce47370519ef674a7bd44"
407
+ dependencies = [
408
+ "find-msvc-tools",
409
+ "shlex",
410
+ ]
411
+
412
+ [[package]]
413
+ name = "cfg-if"
414
+ version = "1.0.3"
415
+ source = "registry+https://github.com/rust-lang/crates.io-index"
416
+ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
417
+
418
+ [[package]]
419
+ name = "cfg_aliases"
420
+ version = "0.2.1"
421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
422
+ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
423
+
424
+ [[package]]
425
+ name = "chrono"
426
+ version = "0.4.42"
427
+ source = "registry+https://github.com/rust-lang/crates.io-index"
428
+ checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
429
+ dependencies = [
430
+ "iana-time-zone",
431
+ "num-traits",
432
+ "serde",
433
+ "windows-link 0.2.0",
434
+ ]
435
+
436
+ [[package]]
437
+ name = "ciborium"
438
+ version = "0.2.2"
439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
440
+ checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
441
+ dependencies = [
442
+ "ciborium-io",
443
+ "ciborium-ll",
444
+ "serde",
445
+ ]
446
+
447
+ [[package]]
448
+ name = "ciborium-io"
449
+ version = "0.2.2"
450
+ source = "registry+https://github.com/rust-lang/crates.io-index"
451
+ checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
452
+
453
+ [[package]]
454
+ name = "ciborium-ll"
455
+ version = "0.2.2"
456
+ source = "registry+https://github.com/rust-lang/crates.io-index"
457
+ checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
458
+ dependencies = [
459
+ "ciborium-io",
460
+ "half",
461
+ ]
462
+
463
+ [[package]]
464
+ name = "clap"
465
+ version = "4.5.50"
466
+ source = "registry+https://github.com/rust-lang/crates.io-index"
467
+ checksum = "0c2cfd7bf8a6017ddaa4e32ffe7403d547790db06bd171c1c53926faab501623"
468
+ dependencies = [
469
+ "clap_builder",
470
+ "clap_derive",
471
+ ]
472
+
473
+ [[package]]
474
+ name = "clap_builder"
475
+ version = "4.5.50"
476
+ source = "registry+https://github.com/rust-lang/crates.io-index"
477
+ checksum = "0a4c05b9e80c5ccd3a7ef080ad7b6ba7d6fc00a985b8b157197075677c82c7a0"
478
+ dependencies = [
479
+ "anstream",
480
+ "anstyle",
481
+ "clap_lex",
482
+ "strsim",
483
+ ]
484
+
485
+ [[package]]
486
+ name = "clap_derive"
487
+ version = "4.5.49"
488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
489
+ checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671"
490
+ dependencies = [
491
+ "heck",
492
+ "proc-macro2",
493
+ "quote",
494
+ "syn",
495
+ ]
496
+
497
+ [[package]]
498
+ name = "clap_lex"
499
+ version = "0.7.5"
500
+ source = "registry+https://github.com/rust-lang/crates.io-index"
501
+ checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675"
502
+
503
+ [[package]]
504
+ name = "colorchoice"
505
+ version = "1.0.4"
506
+ source = "registry+https://github.com/rust-lang/crates.io-index"
507
+ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
508
+
509
+ [[package]]
510
+ name = "colored"
511
+ version = "3.0.0"
512
+ source = "registry+https://github.com/rust-lang/crates.io-index"
513
+ checksum = "fde0e0ec90c9dfb3b4b1a0891a7dcd0e2bffde2f7efed5fe7c9bb00e5bfb915e"
514
+ dependencies = [
515
+ "windows-sys 0.59.0",
516
+ ]
517
+
518
+ [[package]]
519
+ name = "cookie"
520
+ version = "0.18.1"
521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
522
+ checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"
523
+ dependencies = [
524
+ "percent-encoding",
525
+ "time",
526
+ "version_check",
527
+ ]
528
+
529
+ [[package]]
530
+ name = "cookie_store"
531
+ version = "0.22.0"
532
+ source = "registry+https://github.com/rust-lang/crates.io-index"
533
+ checksum = "3fc4bff745c9b4c7fb1e97b25d13153da2bc7796260141df62378998d070207f"
534
+ dependencies = [
535
+ "cookie",
536
+ "document-features",
537
+ "idna",
538
+ "indexmap 2.11.1",
539
+ "log",
540
+ "serde",
541
+ "serde_derive",
542
+ "serde_json",
543
+ "time",
544
+ "url",
545
+ ]
546
+
547
+ [[package]]
548
+ name = "core-foundation-sys"
549
+ version = "0.8.7"
550
+ source = "registry+https://github.com/rust-lang/crates.io-index"
551
+ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
552
+
553
+ [[package]]
554
+ name = "crc32fast"
555
+ version = "1.5.0"
556
+ source = "registry+https://github.com/rust-lang/crates.io-index"
557
+ checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
558
+ dependencies = [
559
+ "cfg-if",
560
+ ]
561
+
562
+ [[package]]
563
+ name = "criterion"
564
+ version = "0.7.0"
565
+ source = "registry+https://github.com/rust-lang/crates.io-index"
566
+ checksum = "e1c047a62b0cc3e145fa84415a3191f628e980b194c2755aa12300a4e6cbd928"
567
+ dependencies = [
568
+ "anes",
569
+ "cast",
570
+ "ciborium",
571
+ "clap",
572
+ "criterion-plot",
573
+ "itertools",
574
+ "num-traits",
575
+ "oorandom",
576
+ "plotters",
577
+ "rayon",
578
+ "regex",
579
+ "serde",
580
+ "serde_json",
581
+ "tinytemplate",
582
+ "walkdir",
583
+ ]
584
+
585
+ [[package]]
586
+ name = "criterion-plot"
587
+ version = "0.6.0"
588
+ source = "registry+https://github.com/rust-lang/crates.io-index"
589
+ checksum = "9b1bcc0dc7dfae599d84ad0b1a55f80cde8af3725da8313b528da95ef783e338"
590
+ dependencies = [
591
+ "cast",
592
+ "itertools",
593
+ ]
594
+
595
+ [[package]]
596
+ name = "crossbeam-deque"
597
+ version = "0.8.6"
598
+ source = "registry+https://github.com/rust-lang/crates.io-index"
599
+ checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
600
+ dependencies = [
601
+ "crossbeam-epoch",
602
+ "crossbeam-utils",
603
+ ]
604
+
605
+ [[package]]
606
+ name = "crossbeam-epoch"
607
+ version = "0.9.18"
608
+ source = "registry+https://github.com/rust-lang/crates.io-index"
609
+ checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
610
+ dependencies = [
611
+ "crossbeam-utils",
612
+ ]
613
+
614
+ [[package]]
615
+ name = "crossbeam-utils"
616
+ version = "0.8.21"
617
+ source = "registry+https://github.com/rust-lang/crates.io-index"
618
+ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
619
+
620
+ [[package]]
621
+ name = "crunchy"
622
+ version = "0.2.4"
623
+ source = "registry+https://github.com/rust-lang/crates.io-index"
624
+ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
625
+
626
+ [[package]]
627
+ name = "darling"
628
+ version = "0.21.3"
629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
630
+ checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0"
631
+ dependencies = [
632
+ "darling_core",
633
+ "darling_macro",
634
+ ]
635
+
636
+ [[package]]
637
+ name = "darling_core"
638
+ version = "0.21.3"
639
+ source = "registry+https://github.com/rust-lang/crates.io-index"
640
+ checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4"
641
+ dependencies = [
642
+ "fnv",
643
+ "ident_case",
644
+ "proc-macro2",
645
+ "quote",
646
+ "strsim",
647
+ "syn",
648
+ ]
649
+
650
+ [[package]]
651
+ name = "darling_macro"
652
+ version = "0.21.3"
653
+ source = "registry+https://github.com/rust-lang/crates.io-index"
654
+ checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81"
655
+ dependencies = [
656
+ "darling_core",
657
+ "quote",
658
+ "syn",
659
+ ]
660
+
661
+ [[package]]
662
+ name = "deranged"
663
+ version = "0.5.3"
664
+ source = "registry+https://github.com/rust-lang/crates.io-index"
665
+ checksum = "d630bccd429a5bb5a64b5e94f693bfc48c9f8566418fda4c494cc94f911f87cc"
666
+ dependencies = [
667
+ "powerfmt",
668
+ "serde",
669
+ ]
670
+
671
+ [[package]]
672
+ name = "difflib"
673
+ version = "0.4.0"
674
+ source = "registry+https://github.com/rust-lang/crates.io-index"
675
+ checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8"
676
+
677
+ [[package]]
678
+ name = "displaydoc"
679
+ version = "0.2.5"
680
+ source = "registry+https://github.com/rust-lang/crates.io-index"
681
+ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
682
+ dependencies = [
683
+ "proc-macro2",
684
+ "quote",
685
+ "syn",
686
+ ]
687
+
688
+ [[package]]
689
+ name = "doc-comment"
690
+ version = "0.3.3"
691
+ source = "registry+https://github.com/rust-lang/crates.io-index"
692
+ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
693
+
694
+ [[package]]
695
+ name = "document-features"
696
+ version = "0.2.11"
697
+ source = "registry+https://github.com/rust-lang/crates.io-index"
698
+ checksum = "95249b50c6c185bee49034bcb378a49dc2b5dff0be90ff6616d31d64febab05d"
699
+ dependencies = [
700
+ "litrs",
701
+ ]
702
+
703
+ [[package]]
704
+ name = "dotenv-analyzer"
705
+ version = "0.1.1"
706
+ dependencies = [
707
+ "clap",
708
+ "dotenv-core",
709
+ "dotenv-schema",
710
+ "regex",
711
+ "serde_json",
712
+ ]
713
+
714
+ [[package]]
715
+ name = "dotenv-core"
716
+ version = "0.1.1"
717
+
718
+ [[package]]
719
+ name = "dotenv-finder"
720
+ version = "0.1.1"
721
+ dependencies = [
722
+ "dotenv-core",
723
+ "dunce",
724
+ "tempfile",
725
+ ]
726
+
727
+ [[package]]
728
+ name = "dotenv-linter"
729
+ version = "4.0.0"
730
+ dependencies = [
731
+ "assert_cmd",
732
+ "clap",
733
+ "colored",
734
+ "criterion",
735
+ "dotenv-analyzer",
736
+ "dotenv-core",
737
+ "dotenv-finder",
738
+ "dotenv-schema",
739
+ "dunce",
740
+ "gag",
741
+ "tempfile",
742
+ "update-informer",
743
+ ]
744
+
745
+ [[package]]
746
+ name = "dotenv-schema"
747
+ version = "0.1.1"
748
+ dependencies = [
749
+ "clap",
750
+ "email_address",
751
+ "regex",
752
+ "serde",
753
+ "serde_json",
754
+ "serde_regex",
755
+ "serde_with",
756
+ "tempfile",
757
+ "url",
758
+ ]
759
+
760
+ [[package]]
761
+ name = "dunce"
762
+ version = "1.0.5"
763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
764
+ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
765
+
766
+ [[package]]
767
+ name = "dyn-clone"
768
+ version = "1.0.20"
769
+ source = "registry+https://github.com/rust-lang/crates.io-index"
770
+ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
771
+
772
+ [[package]]
773
+ name = "either"
774
+ version = "1.15.0"
775
+ source = "registry+https://github.com/rust-lang/crates.io-index"
776
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
777
+
778
+ [[package]]
779
+ name = "email_address"
780
+ version = "0.2.9"
781
+ source = "registry+https://github.com/rust-lang/crates.io-index"
782
+ checksum = "e079f19b08ca6239f47f8ba8509c11cf3ea30095831f7fed61441475edd8c449"
783
+ dependencies = [
784
+ "serde",
785
+ ]
786
+
787
+ [[package]]
788
+ name = "equivalent"
789
+ version = "1.0.2"
790
+ source = "registry+https://github.com/rust-lang/crates.io-index"
791
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
792
+
793
+ [[package]]
794
+ name = "errno"
795
+ version = "0.3.14"
796
+ source = "registry+https://github.com/rust-lang/crates.io-index"
797
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
798
+ dependencies = [
799
+ "libc",
800
+ "windows-sys 0.61.0",
801
+ ]
802
+
803
+ [[package]]
804
+ name = "etcetera"
805
+ version = "0.10.0"
806
+ source = "registry+https://github.com/rust-lang/crates.io-index"
807
+ checksum = "26c7b13d0780cb82722fd59f6f57f925e143427e4a75313a6c77243bf5326ae6"
808
+ dependencies = [
809
+ "cfg-if",
810
+ "home",
811
+ "windows-sys 0.59.0",
812
+ ]
813
+
814
+ [[package]]
815
+ name = "fastrand"
816
+ version = "2.3.0"
817
+ source = "registry+https://github.com/rust-lang/crates.io-index"
818
+ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
819
+
820
+ [[package]]
821
+ name = "filedescriptor"
822
+ version = "0.8.3"
823
+ source = "registry+https://github.com/rust-lang/crates.io-index"
824
+ checksum = "e40758ed24c9b2eeb76c35fb0aebc66c626084edd827e07e1552279814c6682d"
825
+ dependencies = [
826
+ "libc",
827
+ "thiserror 1.0.69",
828
+ "winapi",
829
+ ]
830
+
831
+ [[package]]
832
+ name = "find-msvc-tools"
833
+ version = "0.1.1"
834
+ source = "registry+https://github.com/rust-lang/crates.io-index"
835
+ checksum = "7fd99930f64d146689264c637b5af2f0233a933bef0d8570e2526bf9e083192d"
836
+
837
+ [[package]]
838
+ name = "flate2"
839
+ version = "1.1.2"
840
+ source = "registry+https://github.com/rust-lang/crates.io-index"
841
+ checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d"
842
+ dependencies = [
843
+ "crc32fast",
844
+ "miniz_oxide",
845
+ ]
846
+
847
+ [[package]]
848
+ name = "fnv"
849
+ version = "1.0.7"
850
+ source = "registry+https://github.com/rust-lang/crates.io-index"
851
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
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 = "futures-channel"
864
+ version = "0.3.31"
865
+ source = "registry+https://github.com/rust-lang/crates.io-index"
866
+ checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
867
+ dependencies = [
868
+ "futures-core",
869
+ "futures-sink",
870
+ ]
871
+
872
+ [[package]]
873
+ name = "futures-core"
874
+ version = "0.3.31"
875
+ source = "registry+https://github.com/rust-lang/crates.io-index"
876
+ checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
877
+
878
+ [[package]]
879
+ name = "futures-io"
880
+ version = "0.3.31"
881
+ source = "registry+https://github.com/rust-lang/crates.io-index"
882
+ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
883
+
884
+ [[package]]
885
+ name = "futures-sink"
886
+ version = "0.3.31"
887
+ source = "registry+https://github.com/rust-lang/crates.io-index"
888
+ checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
889
+
890
+ [[package]]
891
+ name = "futures-task"
892
+ version = "0.3.31"
893
+ source = "registry+https://github.com/rust-lang/crates.io-index"
894
+ checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
895
+
896
+ [[package]]
897
+ name = "futures-util"
898
+ version = "0.3.31"
899
+ source = "registry+https://github.com/rust-lang/crates.io-index"
900
+ checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
901
+ dependencies = [
902
+ "futures-core",
903
+ "futures-io",
904
+ "futures-sink",
905
+ "futures-task",
906
+ "memchr",
907
+ "pin-project-lite",
908
+ "pin-utils",
909
+ "slab",
910
+ ]
911
+
912
+ [[package]]
913
+ name = "gag"
914
+ version = "1.0.0"
915
+ source = "registry+https://github.com/rust-lang/crates.io-index"
916
+ checksum = "a713bee13966e9fbffdf7193af71d54a6b35a0bb34997cd6c9519ebeb5005972"
917
+ dependencies = [
918
+ "filedescriptor",
919
+ "tempfile",
920
+ ]
921
+
922
+ [[package]]
923
+ name = "getrandom"
924
+ version = "0.2.16"
925
+ source = "registry+https://github.com/rust-lang/crates.io-index"
926
+ checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
927
+ dependencies = [
928
+ "cfg-if",
929
+ "js-sys",
930
+ "libc",
931
+ "wasi 0.11.1+wasi-snapshot-preview1",
932
+ "wasm-bindgen",
933
+ ]
934
+
935
+ [[package]]
936
+ name = "getrandom"
937
+ version = "0.3.3"
938
+ source = "registry+https://github.com/rust-lang/crates.io-index"
939
+ checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
940
+ dependencies = [
941
+ "cfg-if",
942
+ "js-sys",
943
+ "libc",
944
+ "r-efi",
945
+ "wasi 0.14.5+wasi-0.2.4",
946
+ "wasm-bindgen",
947
+ ]
948
+
949
+ [[package]]
950
+ name = "gimli"
951
+ version = "0.31.1"
952
+ source = "registry+https://github.com/rust-lang/crates.io-index"
953
+ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
954
+
955
+ [[package]]
956
+ name = "half"
957
+ version = "2.6.0"
958
+ source = "registry+https://github.com/rust-lang/crates.io-index"
959
+ checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9"
960
+ dependencies = [
961
+ "cfg-if",
962
+ "crunchy",
963
+ ]
964
+
965
+ [[package]]
966
+ name = "hashbrown"
967
+ version = "0.12.3"
968
+ source = "registry+https://github.com/rust-lang/crates.io-index"
969
+ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
970
+
971
+ [[package]]
972
+ name = "hashbrown"
973
+ version = "0.15.5"
974
+ source = "registry+https://github.com/rust-lang/crates.io-index"
975
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
976
+
977
+ [[package]]
978
+ name = "heck"
979
+ version = "0.5.0"
980
+ source = "registry+https://github.com/rust-lang/crates.io-index"
981
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
982
+
983
+ [[package]]
984
+ name = "hex"
985
+ version = "0.4.3"
986
+ source = "registry+https://github.com/rust-lang/crates.io-index"
987
+ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
988
+
989
+ [[package]]
990
+ name = "home"
991
+ version = "0.5.11"
992
+ source = "registry+https://github.com/rust-lang/crates.io-index"
993
+ checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"
994
+ dependencies = [
995
+ "windows-sys 0.59.0",
996
+ ]
997
+
998
+ [[package]]
999
+ name = "http"
1000
+ version = "1.3.1"
1001
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1002
+ checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
1003
+ dependencies = [
1004
+ "bytes",
1005
+ "fnv",
1006
+ "itoa",
1007
+ ]
1008
+
1009
+ [[package]]
1010
+ name = "http-body"
1011
+ version = "1.0.1"
1012
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1013
+ checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
1014
+ dependencies = [
1015
+ "bytes",
1016
+ "http",
1017
+ ]
1018
+
1019
+ [[package]]
1020
+ name = "http-body-util"
1021
+ version = "0.1.3"
1022
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1023
+ checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
1024
+ dependencies = [
1025
+ "bytes",
1026
+ "futures-core",
1027
+ "http",
1028
+ "http-body",
1029
+ "pin-project-lite",
1030
+ ]
1031
+
1032
+ [[package]]
1033
+ name = "httparse"
1034
+ version = "1.10.1"
1035
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1036
+ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
1037
+
1038
+ [[package]]
1039
+ name = "hyper"
1040
+ version = "1.7.0"
1041
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1042
+ checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e"
1043
+ dependencies = [
1044
+ "atomic-waker",
1045
+ "bytes",
1046
+ "futures-channel",
1047
+ "futures-core",
1048
+ "http",
1049
+ "http-body",
1050
+ "httparse",
1051
+ "itoa",
1052
+ "pin-project-lite",
1053
+ "pin-utils",
1054
+ "smallvec",
1055
+ "tokio",
1056
+ "want",
1057
+ ]
1058
+
1059
+ [[package]]
1060
+ name = "hyper-rustls"
1061
+ version = "0.27.7"
1062
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1063
+ checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"
1064
+ dependencies = [
1065
+ "http",
1066
+ "hyper",
1067
+ "hyper-util",
1068
+ "rustls",
1069
+ "rustls-pki-types",
1070
+ "tokio",
1071
+ "tokio-rustls",
1072
+ "tower-service",
1073
+ "webpki-roots",
1074
+ ]
1075
+
1076
+ [[package]]
1077
+ name = "hyper-util"
1078
+ version = "0.1.17"
1079
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1080
+ checksum = "3c6995591a8f1380fcb4ba966a252a4b29188d51d2b89e3a252f5305be65aea8"
1081
+ dependencies = [
1082
+ "base64",
1083
+ "bytes",
1084
+ "futures-channel",
1085
+ "futures-core",
1086
+ "futures-util",
1087
+ "http",
1088
+ "http-body",
1089
+ "hyper",
1090
+ "ipnet",
1091
+ "libc",
1092
+ "percent-encoding",
1093
+ "pin-project-lite",
1094
+ "socket2",
1095
+ "tokio",
1096
+ "tower-service",
1097
+ "tracing",
1098
+ ]
1099
+
1100
+ [[package]]
1101
+ name = "iana-time-zone"
1102
+ version = "0.1.64"
1103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1104
+ checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
1105
+ dependencies = [
1106
+ "android_system_properties",
1107
+ "core-foundation-sys",
1108
+ "iana-time-zone-haiku",
1109
+ "js-sys",
1110
+ "log",
1111
+ "wasm-bindgen",
1112
+ "windows-core",
1113
+ ]
1114
+
1115
+ [[package]]
1116
+ name = "iana-time-zone-haiku"
1117
+ version = "0.1.2"
1118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1119
+ checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
1120
+ dependencies = [
1121
+ "cc",
1122
+ ]
1123
+
1124
+ [[package]]
1125
+ name = "icu_collections"
1126
+ version = "2.0.0"
1127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1128
+ checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47"
1129
+ dependencies = [
1130
+ "displaydoc",
1131
+ "potential_utf",
1132
+ "yoke",
1133
+ "zerofrom",
1134
+ "zerovec",
1135
+ ]
1136
+
1137
+ [[package]]
1138
+ name = "icu_locale_core"
1139
+ version = "2.0.0"
1140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1141
+ checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a"
1142
+ dependencies = [
1143
+ "displaydoc",
1144
+ "litemap",
1145
+ "tinystr",
1146
+ "writeable",
1147
+ "zerovec",
1148
+ ]
1149
+
1150
+ [[package]]
1151
+ name = "icu_normalizer"
1152
+ version = "2.0.0"
1153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1154
+ checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979"
1155
+ dependencies = [
1156
+ "displaydoc",
1157
+ "icu_collections",
1158
+ "icu_normalizer_data",
1159
+ "icu_properties",
1160
+ "icu_provider",
1161
+ "smallvec",
1162
+ "zerovec",
1163
+ ]
1164
+
1165
+ [[package]]
1166
+ name = "icu_normalizer_data"
1167
+ version = "2.0.0"
1168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1169
+ checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3"
1170
+
1171
+ [[package]]
1172
+ name = "icu_properties"
1173
+ version = "2.0.1"
1174
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1175
+ checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b"
1176
+ dependencies = [
1177
+ "displaydoc",
1178
+ "icu_collections",
1179
+ "icu_locale_core",
1180
+ "icu_properties_data",
1181
+ "icu_provider",
1182
+ "potential_utf",
1183
+ "zerotrie",
1184
+ "zerovec",
1185
+ ]
1186
+
1187
+ [[package]]
1188
+ name = "icu_properties_data"
1189
+ version = "2.0.1"
1190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1191
+ checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632"
1192
+
1193
+ [[package]]
1194
+ name = "icu_provider"
1195
+ version = "2.0.0"
1196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1197
+ checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af"
1198
+ dependencies = [
1199
+ "displaydoc",
1200
+ "icu_locale_core",
1201
+ "stable_deref_trait",
1202
+ "tinystr",
1203
+ "writeable",
1204
+ "yoke",
1205
+ "zerofrom",
1206
+ "zerotrie",
1207
+ "zerovec",
1208
+ ]
1209
+
1210
+ [[package]]
1211
+ name = "ident_case"
1212
+ version = "1.0.1"
1213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1214
+ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
1215
+
1216
+ [[package]]
1217
+ name = "idna"
1218
+ version = "1.1.0"
1219
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1220
+ checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
1221
+ dependencies = [
1222
+ "idna_adapter",
1223
+ "smallvec",
1224
+ "utf8_iter",
1225
+ ]
1226
+
1227
+ [[package]]
1228
+ name = "idna_adapter"
1229
+ version = "1.2.1"
1230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1231
+ checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
1232
+ dependencies = [
1233
+ "icu_normalizer",
1234
+ "icu_properties",
1235
+ ]
1236
+
1237
+ [[package]]
1238
+ name = "indexmap"
1239
+ version = "1.9.3"
1240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1241
+ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
1242
+ dependencies = [
1243
+ "autocfg",
1244
+ "hashbrown 0.12.3",
1245
+ "serde",
1246
+ ]
1247
+
1248
+ [[package]]
1249
+ name = "indexmap"
1250
+ version = "2.11.1"
1251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1252
+ checksum = "206a8042aec68fa4a62e8d3f7aa4ceb508177d9324faf261e1959e495b7a1921"
1253
+ dependencies = [
1254
+ "equivalent",
1255
+ "hashbrown 0.15.5",
1256
+ "serde",
1257
+ ]
1258
+
1259
+ [[package]]
1260
+ name = "io-uring"
1261
+ version = "0.7.10"
1262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1263
+ checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b"
1264
+ dependencies = [
1265
+ "bitflags",
1266
+ "cfg-if",
1267
+ "libc",
1268
+ ]
1269
+
1270
+ [[package]]
1271
+ name = "ipnet"
1272
+ version = "2.11.0"
1273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1274
+ checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
1275
+
1276
+ [[package]]
1277
+ name = "iri-string"
1278
+ version = "0.7.8"
1279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1280
+ checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2"
1281
+ dependencies = [
1282
+ "memchr",
1283
+ "serde",
1284
+ ]
1285
+
1286
+ [[package]]
1287
+ name = "is_terminal_polyfill"
1288
+ version = "1.70.1"
1289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1290
+ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
1291
+
1292
+ [[package]]
1293
+ name = "itertools"
1294
+ version = "0.13.0"
1295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1296
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
1297
+ dependencies = [
1298
+ "either",
1299
+ ]
1300
+
1301
+ [[package]]
1302
+ name = "itoa"
1303
+ version = "1.0.15"
1304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1305
+ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
1306
+
1307
+ [[package]]
1308
+ name = "js-sys"
1309
+ version = "0.3.78"
1310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1311
+ checksum = "0c0b063578492ceec17683ef2f8c5e89121fbd0b172cbc280635ab7567db2738"
1312
+ dependencies = [
1313
+ "once_cell",
1314
+ "wasm-bindgen",
1315
+ ]
1316
+
1317
+ [[package]]
1318
+ name = "libc"
1319
+ version = "0.2.175"
1320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1321
+ checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
1322
+
1323
+ [[package]]
1324
+ name = "linux-raw-sys"
1325
+ version = "0.11.0"
1326
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1327
+ checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
1328
+
1329
+ [[package]]
1330
+ name = "litemap"
1331
+ version = "0.8.0"
1332
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1333
+ checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956"
1334
+
1335
+ [[package]]
1336
+ name = "litrs"
1337
+ version = "0.4.2"
1338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1339
+ checksum = "f5e54036fe321fd421e10d732f155734c4e4afd610dd556d9a82833ab3ee0bed"
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 = "memchr"
1355
+ version = "2.7.5"
1356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1357
+ checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
1358
+
1359
+ [[package]]
1360
+ name = "miniz_oxide"
1361
+ version = "0.8.9"
1362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1363
+ checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
1364
+ dependencies = [
1365
+ "adler2",
1366
+ ]
1367
+
1368
+ [[package]]
1369
+ name = "mio"
1370
+ version = "1.0.4"
1371
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1372
+ checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
1373
+ dependencies = [
1374
+ "libc",
1375
+ "wasi 0.11.1+wasi-snapshot-preview1",
1376
+ "windows-sys 0.59.0",
1377
+ ]
1378
+
1379
+ [[package]]
1380
+ name = "num-conv"
1381
+ version = "0.1.0"
1382
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1383
+ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
1384
+
1385
+ [[package]]
1386
+ name = "num-traits"
1387
+ version = "0.2.19"
1388
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1389
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
1390
+ dependencies = [
1391
+ "autocfg",
1392
+ ]
1393
+
1394
+ [[package]]
1395
+ name = "object"
1396
+ version = "0.36.7"
1397
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1398
+ checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
1399
+ dependencies = [
1400
+ "memchr",
1401
+ ]
1402
+
1403
+ [[package]]
1404
+ name = "once_cell"
1405
+ version = "1.21.3"
1406
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1407
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
1408
+
1409
+ [[package]]
1410
+ name = "once_cell_polyfill"
1411
+ version = "1.70.1"
1412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1413
+ checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad"
1414
+
1415
+ [[package]]
1416
+ name = "oorandom"
1417
+ version = "11.1.5"
1418
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1419
+ checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
1420
+
1421
+ [[package]]
1422
+ name = "percent-encoding"
1423
+ version = "2.3.2"
1424
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1425
+ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
1426
+
1427
+ [[package]]
1428
+ name = "pin-project-lite"
1429
+ version = "0.2.16"
1430
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1431
+ checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
1432
+
1433
+ [[package]]
1434
+ name = "pin-utils"
1435
+ version = "0.1.0"
1436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1437
+ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
1438
+
1439
+ [[package]]
1440
+ name = "plotters"
1441
+ version = "0.3.7"
1442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1443
+ checksum = "5aeb6f403d7a4911efb1e33402027fc44f29b5bf6def3effcc22d7bb75f2b747"
1444
+ dependencies = [
1445
+ "num-traits",
1446
+ "plotters-backend",
1447
+ "plotters-svg",
1448
+ "wasm-bindgen",
1449
+ "web-sys",
1450
+ ]
1451
+
1452
+ [[package]]
1453
+ name = "plotters-backend"
1454
+ version = "0.3.7"
1455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1456
+ checksum = "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a"
1457
+
1458
+ [[package]]
1459
+ name = "plotters-svg"
1460
+ version = "0.3.7"
1461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1462
+ checksum = "51bae2ac328883f7acdfea3d66a7c35751187f870bc81f94563733a154d7a670"
1463
+ dependencies = [
1464
+ "plotters-backend",
1465
+ ]
1466
+
1467
+ [[package]]
1468
+ name = "potential_utf"
1469
+ version = "0.1.3"
1470
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1471
+ checksum = "84df19adbe5b5a0782edcab45899906947ab039ccf4573713735ee7de1e6b08a"
1472
+ dependencies = [
1473
+ "zerovec",
1474
+ ]
1475
+
1476
+ [[package]]
1477
+ name = "powerfmt"
1478
+ version = "0.2.0"
1479
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1480
+ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
1481
+
1482
+ [[package]]
1483
+ name = "ppv-lite86"
1484
+ version = "0.2.21"
1485
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1486
+ checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
1487
+ dependencies = [
1488
+ "zerocopy",
1489
+ ]
1490
+
1491
+ [[package]]
1492
+ name = "predicates"
1493
+ version = "3.1.3"
1494
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1495
+ checksum = "a5d19ee57562043d37e82899fade9a22ebab7be9cef5026b07fda9cdd4293573"
1496
+ dependencies = [
1497
+ "anstyle",
1498
+ "difflib",
1499
+ "predicates-core",
1500
+ ]
1501
+
1502
+ [[package]]
1503
+ name = "predicates-core"
1504
+ version = "1.0.9"
1505
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1506
+ checksum = "727e462b119fe9c93fd0eb1429a5f7647394014cf3c04ab2c0350eeb09095ffa"
1507
+
1508
+ [[package]]
1509
+ name = "predicates-tree"
1510
+ version = "1.0.12"
1511
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1512
+ checksum = "72dd2d6d381dfb73a193c7fca536518d7caee39fc8503f74e7dc0be0531b425c"
1513
+ dependencies = [
1514
+ "predicates-core",
1515
+ "termtree",
1516
+ ]
1517
+
1518
+ [[package]]
1519
+ name = "proc-macro2"
1520
+ version = "1.0.101"
1521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1522
+ checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
1523
+ dependencies = [
1524
+ "unicode-ident",
1525
+ ]
1526
+
1527
+ [[package]]
1528
+ name = "quinn"
1529
+ version = "0.11.9"
1530
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1531
+ checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20"
1532
+ dependencies = [
1533
+ "bytes",
1534
+ "cfg_aliases",
1535
+ "pin-project-lite",
1536
+ "quinn-proto",
1537
+ "quinn-udp",
1538
+ "rustc-hash",
1539
+ "rustls",
1540
+ "socket2",
1541
+ "thiserror 2.0.16",
1542
+ "tokio",
1543
+ "tracing",
1544
+ "web-time",
1545
+ ]
1546
+
1547
+ [[package]]
1548
+ name = "quinn-proto"
1549
+ version = "0.11.13"
1550
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1551
+ checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31"
1552
+ dependencies = [
1553
+ "bytes",
1554
+ "getrandom 0.3.3",
1555
+ "lru-slab",
1556
+ "rand",
1557
+ "ring",
1558
+ "rustc-hash",
1559
+ "rustls",
1560
+ "rustls-pki-types",
1561
+ "slab",
1562
+ "thiserror 2.0.16",
1563
+ "tinyvec",
1564
+ "tracing",
1565
+ "web-time",
1566
+ ]
1567
+
1568
+ [[package]]
1569
+ name = "quinn-udp"
1570
+ version = "0.5.14"
1571
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1572
+ checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd"
1573
+ dependencies = [
1574
+ "cfg_aliases",
1575
+ "libc",
1576
+ "once_cell",
1577
+ "socket2",
1578
+ "tracing",
1579
+ "windows-sys 0.60.2",
1580
+ ]
1581
+
1582
+ [[package]]
1583
+ name = "quote"
1584
+ version = "1.0.40"
1585
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1586
+ checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
1587
+ dependencies = [
1588
+ "proc-macro2",
1589
+ ]
1590
+
1591
+ [[package]]
1592
+ name = "r-efi"
1593
+ version = "5.3.0"
1594
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1595
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
1596
+
1597
+ [[package]]
1598
+ name = "rand"
1599
+ version = "0.9.2"
1600
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1601
+ checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
1602
+ dependencies = [
1603
+ "rand_chacha",
1604
+ "rand_core",
1605
+ ]
1606
+
1607
+ [[package]]
1608
+ name = "rand_chacha"
1609
+ version = "0.9.0"
1610
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1611
+ checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
1612
+ dependencies = [
1613
+ "ppv-lite86",
1614
+ "rand_core",
1615
+ ]
1616
+
1617
+ [[package]]
1618
+ name = "rand_core"
1619
+ version = "0.9.3"
1620
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1621
+ checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38"
1622
+ dependencies = [
1623
+ "getrandom 0.3.3",
1624
+ ]
1625
+
1626
+ [[package]]
1627
+ name = "rayon"
1628
+ version = "1.11.0"
1629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1630
+ checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
1631
+ dependencies = [
1632
+ "either",
1633
+ "rayon-core",
1634
+ ]
1635
+
1636
+ [[package]]
1637
+ name = "rayon-core"
1638
+ version = "1.13.0"
1639
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1640
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
1641
+ dependencies = [
1642
+ "crossbeam-deque",
1643
+ "crossbeam-utils",
1644
+ ]
1645
+
1646
+ [[package]]
1647
+ name = "ref-cast"
1648
+ version = "1.0.24"
1649
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1650
+ checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf"
1651
+ dependencies = [
1652
+ "ref-cast-impl",
1653
+ ]
1654
+
1655
+ [[package]]
1656
+ name = "ref-cast-impl"
1657
+ version = "1.0.24"
1658
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1659
+ checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7"
1660
+ dependencies = [
1661
+ "proc-macro2",
1662
+ "quote",
1663
+ "syn",
1664
+ ]
1665
+
1666
+ [[package]]
1667
+ name = "regex"
1668
+ version = "1.12.2"
1669
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1670
+ checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
1671
+ dependencies = [
1672
+ "aho-corasick",
1673
+ "memchr",
1674
+ "regex-automata",
1675
+ "regex-syntax",
1676
+ ]
1677
+
1678
+ [[package]]
1679
+ name = "regex-automata"
1680
+ version = "0.4.13"
1681
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1682
+ checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
1683
+ dependencies = [
1684
+ "aho-corasick",
1685
+ "memchr",
1686
+ "regex-syntax",
1687
+ ]
1688
+
1689
+ [[package]]
1690
+ name = "regex-syntax"
1691
+ version = "0.8.6"
1692
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1693
+ checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001"
1694
+
1695
+ [[package]]
1696
+ name = "reqwest"
1697
+ version = "0.12.23"
1698
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1699
+ checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb"
1700
+ dependencies = [
1701
+ "base64",
1702
+ "bytes",
1703
+ "futures-channel",
1704
+ "futures-core",
1705
+ "futures-util",
1706
+ "http",
1707
+ "http-body",
1708
+ "http-body-util",
1709
+ "hyper",
1710
+ "hyper-rustls",
1711
+ "hyper-util",
1712
+ "js-sys",
1713
+ "log",
1714
+ "percent-encoding",
1715
+ "pin-project-lite",
1716
+ "quinn",
1717
+ "rustls",
1718
+ "rustls-pki-types",
1719
+ "serde",
1720
+ "serde_json",
1721
+ "serde_urlencoded",
1722
+ "sync_wrapper",
1723
+ "tokio",
1724
+ "tokio-rustls",
1725
+ "tower",
1726
+ "tower-http",
1727
+ "tower-service",
1728
+ "url",
1729
+ "wasm-bindgen",
1730
+ "wasm-bindgen-futures",
1731
+ "web-sys",
1732
+ "webpki-roots",
1733
+ ]
1734
+
1735
+ [[package]]
1736
+ name = "ring"
1737
+ version = "0.17.14"
1738
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1739
+ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
1740
+ dependencies = [
1741
+ "cc",
1742
+ "cfg-if",
1743
+ "getrandom 0.2.16",
1744
+ "libc",
1745
+ "untrusted",
1746
+ "windows-sys 0.52.0",
1747
+ ]
1748
+
1749
+ [[package]]
1750
+ name = "rustc-demangle"
1751
+ version = "0.1.26"
1752
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1753
+ checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
1754
+
1755
+ [[package]]
1756
+ name = "rustc-hash"
1757
+ version = "2.1.1"
1758
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1759
+ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
1760
+
1761
+ [[package]]
1762
+ name = "rustix"
1763
+ version = "1.1.2"
1764
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1765
+ checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
1766
+ dependencies = [
1767
+ "bitflags",
1768
+ "errno",
1769
+ "libc",
1770
+ "linux-raw-sys",
1771
+ "windows-sys 0.61.0",
1772
+ ]
1773
+
1774
+ [[package]]
1775
+ name = "rustls"
1776
+ version = "0.23.31"
1777
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1778
+ checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc"
1779
+ dependencies = [
1780
+ "log",
1781
+ "once_cell",
1782
+ "ring",
1783
+ "rustls-pki-types",
1784
+ "rustls-webpki",
1785
+ "subtle",
1786
+ "zeroize",
1787
+ ]
1788
+
1789
+ [[package]]
1790
+ name = "rustls-pemfile"
1791
+ version = "2.2.0"
1792
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1793
+ checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
1794
+ dependencies = [
1795
+ "rustls-pki-types",
1796
+ ]
1797
+
1798
+ [[package]]
1799
+ name = "rustls-pki-types"
1800
+ version = "1.12.0"
1801
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1802
+ checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79"
1803
+ dependencies = [
1804
+ "web-time",
1805
+ "zeroize",
1806
+ ]
1807
+
1808
+ [[package]]
1809
+ name = "rustls-webpki"
1810
+ version = "0.103.6"
1811
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1812
+ checksum = "8572f3c2cb9934231157b45499fc41e1f58c589fdfb81a844ba873265e80f8eb"
1813
+ dependencies = [
1814
+ "ring",
1815
+ "rustls-pki-types",
1816
+ "untrusted",
1817
+ ]
1818
+
1819
+ [[package]]
1820
+ name = "rustversion"
1821
+ version = "1.0.22"
1822
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1823
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
1824
+
1825
+ [[package]]
1826
+ name = "ryu"
1827
+ version = "1.0.20"
1828
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1829
+ checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
1830
+
1831
+ [[package]]
1832
+ name = "same-file"
1833
+ version = "1.0.6"
1834
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1835
+ checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
1836
+ dependencies = [
1837
+ "winapi-util",
1838
+ ]
1839
+
1840
+ [[package]]
1841
+ name = "schemars"
1842
+ version = "0.9.0"
1843
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1844
+ checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
1845
+ dependencies = [
1846
+ "dyn-clone",
1847
+ "ref-cast",
1848
+ "serde",
1849
+ "serde_json",
1850
+ ]
1851
+
1852
+ [[package]]
1853
+ name = "schemars"
1854
+ version = "1.0.4"
1855
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1856
+ checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0"
1857
+ dependencies = [
1858
+ "dyn-clone",
1859
+ "ref-cast",
1860
+ "serde",
1861
+ "serde_json",
1862
+ ]
1863
+
1864
+ [[package]]
1865
+ name = "semver"
1866
+ version = "1.0.27"
1867
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1868
+ checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
1869
+
1870
+ [[package]]
1871
+ name = "serde"
1872
+ version = "1.0.228"
1873
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1874
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
1875
+ dependencies = [
1876
+ "serde_core",
1877
+ "serde_derive",
1878
+ ]
1879
+
1880
+ [[package]]
1881
+ name = "serde_core"
1882
+ version = "1.0.228"
1883
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1884
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
1885
+ dependencies = [
1886
+ "serde_derive",
1887
+ ]
1888
+
1889
+ [[package]]
1890
+ name = "serde_derive"
1891
+ version = "1.0.228"
1892
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1893
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
1894
+ dependencies = [
1895
+ "proc-macro2",
1896
+ "quote",
1897
+ "syn",
1898
+ ]
1899
+
1900
+ [[package]]
1901
+ name = "serde_json"
1902
+ version = "1.0.145"
1903
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1904
+ checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
1905
+ dependencies = [
1906
+ "itoa",
1907
+ "memchr",
1908
+ "ryu",
1909
+ "serde",
1910
+ "serde_core",
1911
+ ]
1912
+
1913
+ [[package]]
1914
+ name = "serde_regex"
1915
+ version = "1.1.0"
1916
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1917
+ checksum = "a8136f1a4ea815d7eac4101cfd0b16dc0cb5e1fe1b8609dfd728058656b7badf"
1918
+ dependencies = [
1919
+ "regex",
1920
+ "serde",
1921
+ ]
1922
+
1923
+ [[package]]
1924
+ name = "serde_urlencoded"
1925
+ version = "0.7.1"
1926
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1927
+ checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
1928
+ dependencies = [
1929
+ "form_urlencoded",
1930
+ "itoa",
1931
+ "ryu",
1932
+ "serde",
1933
+ ]
1934
+
1935
+ [[package]]
1936
+ name = "serde_with"
1937
+ version = "3.15.1"
1938
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1939
+ checksum = "aa66c845eee442168b2c8134fec70ac50dc20e760769c8ba0ad1319ca1959b04"
1940
+ dependencies = [
1941
+ "base64",
1942
+ "chrono",
1943
+ "hex",
1944
+ "indexmap 1.9.3",
1945
+ "indexmap 2.11.1",
1946
+ "schemars 0.9.0",
1947
+ "schemars 1.0.4",
1948
+ "serde_core",
1949
+ "serde_json",
1950
+ "serde_with_macros",
1951
+ "time",
1952
+ ]
1953
+
1954
+ [[package]]
1955
+ name = "serde_with_macros"
1956
+ version = "3.15.1"
1957
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1958
+ checksum = "b91a903660542fced4e99881aa481bdbaec1634568ee02e0b8bd57c64cb38955"
1959
+ dependencies = [
1960
+ "darling",
1961
+ "proc-macro2",
1962
+ "quote",
1963
+ "syn",
1964
+ ]
1965
+
1966
+ [[package]]
1967
+ name = "shlex"
1968
+ version = "1.3.0"
1969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1970
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1971
+
1972
+ [[package]]
1973
+ name = "slab"
1974
+ version = "0.4.11"
1975
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1976
+ checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
1977
+
1978
+ [[package]]
1979
+ name = "smallvec"
1980
+ version = "1.15.1"
1981
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1982
+ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
1983
+
1984
+ [[package]]
1985
+ name = "socket2"
1986
+ version = "0.6.0"
1987
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1988
+ checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
1989
+ dependencies = [
1990
+ "libc",
1991
+ "windows-sys 0.59.0",
1992
+ ]
1993
+
1994
+ [[package]]
1995
+ name = "stable_deref_trait"
1996
+ version = "1.2.0"
1997
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1998
+ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
1999
+
2000
+ [[package]]
2001
+ name = "strsim"
2002
+ version = "0.11.1"
2003
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2004
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
2005
+
2006
+ [[package]]
2007
+ name = "subtle"
2008
+ version = "2.6.1"
2009
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2010
+ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
2011
+
2012
+ [[package]]
2013
+ name = "syn"
2014
+ version = "2.0.106"
2015
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2016
+ checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
2017
+ dependencies = [
2018
+ "proc-macro2",
2019
+ "quote",
2020
+ "unicode-ident",
2021
+ ]
2022
+
2023
+ [[package]]
2024
+ name = "sync_wrapper"
2025
+ version = "1.0.2"
2026
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2027
+ checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
2028
+ dependencies = [
2029
+ "futures-core",
2030
+ ]
2031
+
2032
+ [[package]]
2033
+ name = "synstructure"
2034
+ version = "0.13.2"
2035
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2036
+ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
2037
+ dependencies = [
2038
+ "proc-macro2",
2039
+ "quote",
2040
+ "syn",
2041
+ ]
2042
+
2043
+ [[package]]
2044
+ name = "tempfile"
2045
+ version = "3.23.0"
2046
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2047
+ checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16"
2048
+ dependencies = [
2049
+ "fastrand",
2050
+ "getrandom 0.3.3",
2051
+ "once_cell",
2052
+ "rustix",
2053
+ "windows-sys 0.61.0",
2054
+ ]
2055
+
2056
+ [[package]]
2057
+ name = "termtree"
2058
+ version = "0.5.1"
2059
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2060
+ checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683"
2061
+
2062
+ [[package]]
2063
+ name = "thiserror"
2064
+ version = "1.0.69"
2065
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2066
+ checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
2067
+ dependencies = [
2068
+ "thiserror-impl 1.0.69",
2069
+ ]
2070
+
2071
+ [[package]]
2072
+ name = "thiserror"
2073
+ version = "2.0.16"
2074
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2075
+ checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0"
2076
+ dependencies = [
2077
+ "thiserror-impl 2.0.16",
2078
+ ]
2079
+
2080
+ [[package]]
2081
+ name = "thiserror-impl"
2082
+ version = "1.0.69"
2083
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2084
+ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
2085
+ dependencies = [
2086
+ "proc-macro2",
2087
+ "quote",
2088
+ "syn",
2089
+ ]
2090
+
2091
+ [[package]]
2092
+ name = "thiserror-impl"
2093
+ version = "2.0.16"
2094
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2095
+ checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960"
2096
+ dependencies = [
2097
+ "proc-macro2",
2098
+ "quote",
2099
+ "syn",
2100
+ ]
2101
+
2102
+ [[package]]
2103
+ name = "time"
2104
+ version = "0.3.43"
2105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2106
+ checksum = "83bde6f1ec10e72d583d91623c939f623002284ef622b87de38cfd546cbf2031"
2107
+ dependencies = [
2108
+ "deranged",
2109
+ "num-conv",
2110
+ "powerfmt",
2111
+ "serde",
2112
+ "time-core",
2113
+ "time-macros",
2114
+ ]
2115
+
2116
+ [[package]]
2117
+ name = "time-core"
2118
+ version = "0.1.6"
2119
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2120
+ checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b"
2121
+
2122
+ [[package]]
2123
+ name = "time-macros"
2124
+ version = "0.2.24"
2125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2126
+ checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3"
2127
+ dependencies = [
2128
+ "num-conv",
2129
+ "time-core",
2130
+ ]
2131
+
2132
+ [[package]]
2133
+ name = "tinystr"
2134
+ version = "0.8.1"
2135
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2136
+ checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b"
2137
+ dependencies = [
2138
+ "displaydoc",
2139
+ "zerovec",
2140
+ ]
2141
+
2142
+ [[package]]
2143
+ name = "tinytemplate"
2144
+ version = "1.2.1"
2145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2146
+ checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc"
2147
+ dependencies = [
2148
+ "serde",
2149
+ "serde_json",
2150
+ ]
2151
+
2152
+ [[package]]
2153
+ name = "tinyvec"
2154
+ version = "1.10.0"
2155
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2156
+ checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
2157
+ dependencies = [
2158
+ "tinyvec_macros",
2159
+ ]
2160
+
2161
+ [[package]]
2162
+ name = "tinyvec_macros"
2163
+ version = "0.1.1"
2164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2165
+ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
2166
+
2167
+ [[package]]
2168
+ name = "tokio"
2169
+ version = "1.47.1"
2170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2171
+ checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038"
2172
+ dependencies = [
2173
+ "backtrace",
2174
+ "bytes",
2175
+ "io-uring",
2176
+ "libc",
2177
+ "mio",
2178
+ "pin-project-lite",
2179
+ "slab",
2180
+ "socket2",
2181
+ "windows-sys 0.59.0",
2182
+ ]
2183
+
2184
+ [[package]]
2185
+ name = "tokio-rustls"
2186
+ version = "0.26.2"
2187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2188
+ checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b"
2189
+ dependencies = [
2190
+ "rustls",
2191
+ "tokio",
2192
+ ]
2193
+
2194
+ [[package]]
2195
+ name = "tower"
2196
+ version = "0.5.2"
2197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2198
+ checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
2199
+ dependencies = [
2200
+ "futures-core",
2201
+ "futures-util",
2202
+ "pin-project-lite",
2203
+ "sync_wrapper",
2204
+ "tokio",
2205
+ "tower-layer",
2206
+ "tower-service",
2207
+ ]
2208
+
2209
+ [[package]]
2210
+ name = "tower-http"
2211
+ version = "0.6.6"
2212
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2213
+ checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"
2214
+ dependencies = [
2215
+ "bitflags",
2216
+ "bytes",
2217
+ "futures-util",
2218
+ "http",
2219
+ "http-body",
2220
+ "iri-string",
2221
+ "pin-project-lite",
2222
+ "tower",
2223
+ "tower-layer",
2224
+ "tower-service",
2225
+ ]
2226
+
2227
+ [[package]]
2228
+ name = "tower-layer"
2229
+ version = "0.3.3"
2230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2231
+ checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
2232
+
2233
+ [[package]]
2234
+ name = "tower-service"
2235
+ version = "0.3.3"
2236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2237
+ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
2238
+
2239
+ [[package]]
2240
+ name = "tracing"
2241
+ version = "0.1.41"
2242
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2243
+ checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
2244
+ dependencies = [
2245
+ "pin-project-lite",
2246
+ "tracing-core",
2247
+ ]
2248
+
2249
+ [[package]]
2250
+ name = "tracing-core"
2251
+ version = "0.1.34"
2252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2253
+ checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678"
2254
+ dependencies = [
2255
+ "once_cell",
2256
+ ]
2257
+
2258
+ [[package]]
2259
+ name = "try-lock"
2260
+ version = "0.2.5"
2261
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2262
+ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
2263
+
2264
+ [[package]]
2265
+ name = "unicode-ident"
2266
+ version = "1.0.19"
2267
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2268
+ checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
2269
+
2270
+ [[package]]
2271
+ name = "untrusted"
2272
+ version = "0.9.0"
2273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2274
+ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2275
+
2276
+ [[package]]
2277
+ name = "update-informer"
2278
+ version = "1.3.0"
2279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2280
+ checksum = "67b27dcf766dc6ad64c2085201626e1a7955dc1983532bfc8406d552903ace2a"
2281
+ dependencies = [
2282
+ "etcetera",
2283
+ "reqwest",
2284
+ "semver",
2285
+ "serde",
2286
+ "serde_json",
2287
+ "ureq",
2288
+ ]
2289
+
2290
+ [[package]]
2291
+ name = "ureq"
2292
+ version = "3.1.2"
2293
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2294
+ checksum = "99ba1025f18a4a3fc3e9b48c868e9beb4f24f4b4b1a325bada26bd4119f46537"
2295
+ dependencies = [
2296
+ "base64",
2297
+ "cookie_store",
2298
+ "flate2",
2299
+ "log",
2300
+ "percent-encoding",
2301
+ "rustls",
2302
+ "rustls-pemfile",
2303
+ "rustls-pki-types",
2304
+ "serde",
2305
+ "serde_json",
2306
+ "ureq-proto",
2307
+ "utf-8",
2308
+ "webpki-roots",
2309
+ ]
2310
+
2311
+ [[package]]
2312
+ name = "ureq-proto"
2313
+ version = "0.5.2"
2314
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2315
+ checksum = "60b4531c118335662134346048ddb0e54cc86bd7e81866757873055f0e38f5d2"
2316
+ dependencies = [
2317
+ "base64",
2318
+ "http",
2319
+ "httparse",
2320
+ "log",
2321
+ ]
2322
+
2323
+ [[package]]
2324
+ name = "url"
2325
+ version = "2.5.7"
2326
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2327
+ checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"
2328
+ dependencies = [
2329
+ "form_urlencoded",
2330
+ "idna",
2331
+ "percent-encoding",
2332
+ "serde",
2333
+ ]
2334
+
2335
+ [[package]]
2336
+ name = "utf-8"
2337
+ version = "0.7.6"
2338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2339
+ checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
2340
+
2341
+ [[package]]
2342
+ name = "utf8_iter"
2343
+ version = "1.0.4"
2344
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2345
+ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
2346
+
2347
+ [[package]]
2348
+ name = "utf8parse"
2349
+ version = "0.2.2"
2350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2351
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
2352
+
2353
+ [[package]]
2354
+ name = "version_check"
2355
+ version = "0.9.5"
2356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2357
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
2358
+
2359
+ [[package]]
2360
+ name = "wait-timeout"
2361
+ version = "0.2.1"
2362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2363
+ checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11"
2364
+ dependencies = [
2365
+ "libc",
2366
+ ]
2367
+
2368
+ [[package]]
2369
+ name = "walkdir"
2370
+ version = "2.5.0"
2371
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2372
+ checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
2373
+ dependencies = [
2374
+ "same-file",
2375
+ "winapi-util",
2376
+ ]
2377
+
2378
+ [[package]]
2379
+ name = "want"
2380
+ version = "0.3.1"
2381
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2382
+ checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
2383
+ dependencies = [
2384
+ "try-lock",
2385
+ ]
2386
+
2387
+ [[package]]
2388
+ name = "wasi"
2389
+ version = "0.11.1+wasi-snapshot-preview1"
2390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2391
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
2392
+
2393
+ [[package]]
2394
+ name = "wasi"
2395
+ version = "0.14.5+wasi-0.2.4"
2396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2397
+ checksum = "a4494f6290a82f5fe584817a676a34b9d6763e8d9d18204009fb31dceca98fd4"
2398
+ dependencies = [
2399
+ "wasip2",
2400
+ ]
2401
+
2402
+ [[package]]
2403
+ name = "wasip2"
2404
+ version = "1.0.0+wasi-0.2.4"
2405
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2406
+ checksum = "03fa2761397e5bd52002cd7e73110c71af2109aca4e521a9f40473fe685b0a24"
2407
+ dependencies = [
2408
+ "wit-bindgen",
2409
+ ]
2410
+
2411
+ [[package]]
2412
+ name = "wasm-bindgen"
2413
+ version = "0.2.101"
2414
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2415
+ checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b"
2416
+ dependencies = [
2417
+ "cfg-if",
2418
+ "once_cell",
2419
+ "rustversion",
2420
+ "wasm-bindgen-macro",
2421
+ "wasm-bindgen-shared",
2422
+ ]
2423
+
2424
+ [[package]]
2425
+ name = "wasm-bindgen-backend"
2426
+ version = "0.2.101"
2427
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2428
+ checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb"
2429
+ dependencies = [
2430
+ "bumpalo",
2431
+ "log",
2432
+ "proc-macro2",
2433
+ "quote",
2434
+ "syn",
2435
+ "wasm-bindgen-shared",
2436
+ ]
2437
+
2438
+ [[package]]
2439
+ name = "wasm-bindgen-futures"
2440
+ version = "0.4.51"
2441
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2442
+ checksum = "0ca85039a9b469b38336411d6d6ced91f3fc87109a2a27b0c197663f5144dffe"
2443
+ dependencies = [
2444
+ "cfg-if",
2445
+ "js-sys",
2446
+ "once_cell",
2447
+ "wasm-bindgen",
2448
+ "web-sys",
2449
+ ]
2450
+
2451
+ [[package]]
2452
+ name = "wasm-bindgen-macro"
2453
+ version = "0.2.101"
2454
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2455
+ checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d"
2456
+ dependencies = [
2457
+ "quote",
2458
+ "wasm-bindgen-macro-support",
2459
+ ]
2460
+
2461
+ [[package]]
2462
+ name = "wasm-bindgen-macro-support"
2463
+ version = "0.2.101"
2464
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2465
+ checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa"
2466
+ dependencies = [
2467
+ "proc-macro2",
2468
+ "quote",
2469
+ "syn",
2470
+ "wasm-bindgen-backend",
2471
+ "wasm-bindgen-shared",
2472
+ ]
2473
+
2474
+ [[package]]
2475
+ name = "wasm-bindgen-shared"
2476
+ version = "0.2.101"
2477
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2478
+ checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1"
2479
+ dependencies = [
2480
+ "unicode-ident",
2481
+ ]
2482
+
2483
+ [[package]]
2484
+ name = "web-sys"
2485
+ version = "0.3.78"
2486
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2487
+ checksum = "77e4b637749ff0d92b8fad63aa1f7cff3cbe125fd49c175cd6345e7272638b12"
2488
+ dependencies = [
2489
+ "js-sys",
2490
+ "wasm-bindgen",
2491
+ ]
2492
+
2493
+ [[package]]
2494
+ name = "web-time"
2495
+ version = "1.1.0"
2496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2497
+ checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
2498
+ dependencies = [
2499
+ "js-sys",
2500
+ "wasm-bindgen",
2501
+ ]
2502
+
2503
+ [[package]]
2504
+ name = "webpki-roots"
2505
+ version = "1.0.2"
2506
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2507
+ checksum = "7e8983c3ab33d6fb807cfcdad2491c4ea8cbc8ed839181c7dfd9c67c83e261b2"
2508
+ dependencies = [
2509
+ "rustls-pki-types",
2510
+ ]
2511
+
2512
+ [[package]]
2513
+ name = "winapi"
2514
+ version = "0.3.9"
2515
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2516
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
2517
+ dependencies = [
2518
+ "winapi-i686-pc-windows-gnu",
2519
+ "winapi-x86_64-pc-windows-gnu",
2520
+ ]
2521
+
2522
+ [[package]]
2523
+ name = "winapi-i686-pc-windows-gnu"
2524
+ version = "0.4.0"
2525
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2526
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
2527
+
2528
+ [[package]]
2529
+ name = "winapi-util"
2530
+ version = "0.1.11"
2531
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2532
+ checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
2533
+ dependencies = [
2534
+ "windows-sys 0.61.0",
2535
+ ]
2536
+
2537
+ [[package]]
2538
+ name = "winapi-x86_64-pc-windows-gnu"
2539
+ version = "0.4.0"
2540
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2541
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
2542
+
2543
+ [[package]]
2544
+ name = "windows-core"
2545
+ version = "0.62.0"
2546
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2547
+ checksum = "57fe7168f7de578d2d8a05b07fd61870d2e73b4020e9f49aa00da8471723497c"
2548
+ dependencies = [
2549
+ "windows-implement",
2550
+ "windows-interface",
2551
+ "windows-link 0.2.0",
2552
+ "windows-result",
2553
+ "windows-strings",
2554
+ ]
2555
+
2556
+ [[package]]
2557
+ name = "windows-implement"
2558
+ version = "0.60.0"
2559
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2560
+ checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836"
2561
+ dependencies = [
2562
+ "proc-macro2",
2563
+ "quote",
2564
+ "syn",
2565
+ ]
2566
+
2567
+ [[package]]
2568
+ name = "windows-interface"
2569
+ version = "0.59.1"
2570
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2571
+ checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8"
2572
+ dependencies = [
2573
+ "proc-macro2",
2574
+ "quote",
2575
+ "syn",
2576
+ ]
2577
+
2578
+ [[package]]
2579
+ name = "windows-link"
2580
+ version = "0.1.3"
2581
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2582
+ checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
2583
+
2584
+ [[package]]
2585
+ name = "windows-link"
2586
+ version = "0.2.0"
2587
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2588
+ checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
2589
+
2590
+ [[package]]
2591
+ name = "windows-result"
2592
+ version = "0.4.0"
2593
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2594
+ checksum = "7084dcc306f89883455a206237404d3eaf961e5bd7e0f312f7c91f57eb44167f"
2595
+ dependencies = [
2596
+ "windows-link 0.2.0",
2597
+ ]
2598
+
2599
+ [[package]]
2600
+ name = "windows-strings"
2601
+ version = "0.5.0"
2602
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2603
+ checksum = "7218c655a553b0bed4426cf54b20d7ba363ef543b52d515b3e48d7fd55318dda"
2604
+ dependencies = [
2605
+ "windows-link 0.2.0",
2606
+ ]
2607
+
2608
+ [[package]]
2609
+ name = "windows-sys"
2610
+ version = "0.52.0"
2611
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2612
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
2613
+ dependencies = [
2614
+ "windows-targets 0.52.6",
2615
+ ]
2616
+
2617
+ [[package]]
2618
+ name = "windows-sys"
2619
+ version = "0.59.0"
2620
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2621
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
2622
+ dependencies = [
2623
+ "windows-targets 0.52.6",
2624
+ ]
2625
+
2626
+ [[package]]
2627
+ name = "windows-sys"
2628
+ version = "0.60.2"
2629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2630
+ checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
2631
+ dependencies = [
2632
+ "windows-targets 0.53.3",
2633
+ ]
2634
+
2635
+ [[package]]
2636
+ name = "windows-sys"
2637
+ version = "0.61.0"
2638
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2639
+ checksum = "e201184e40b2ede64bc2ea34968b28e33622acdbbf37104f0e4a33f7abe657aa"
2640
+ dependencies = [
2641
+ "windows-link 0.2.0",
2642
+ ]
2643
+
2644
+ [[package]]
2645
+ name = "windows-targets"
2646
+ version = "0.52.6"
2647
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2648
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
2649
+ dependencies = [
2650
+ "windows_aarch64_gnullvm 0.52.6",
2651
+ "windows_aarch64_msvc 0.52.6",
2652
+ "windows_i686_gnu 0.52.6",
2653
+ "windows_i686_gnullvm 0.52.6",
2654
+ "windows_i686_msvc 0.52.6",
2655
+ "windows_x86_64_gnu 0.52.6",
2656
+ "windows_x86_64_gnullvm 0.52.6",
2657
+ "windows_x86_64_msvc 0.52.6",
2658
+ ]
2659
+
2660
+ [[package]]
2661
+ name = "windows-targets"
2662
+ version = "0.53.3"
2663
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2664
+ checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
2665
+ dependencies = [
2666
+ "windows-link 0.1.3",
2667
+ "windows_aarch64_gnullvm 0.53.0",
2668
+ "windows_aarch64_msvc 0.53.0",
2669
+ "windows_i686_gnu 0.53.0",
2670
+ "windows_i686_gnullvm 0.53.0",
2671
+ "windows_i686_msvc 0.53.0",
2672
+ "windows_x86_64_gnu 0.53.0",
2673
+ "windows_x86_64_gnullvm 0.53.0",
2674
+ "windows_x86_64_msvc 0.53.0",
2675
+ ]
2676
+
2677
+ [[package]]
2678
+ name = "windows_aarch64_gnullvm"
2679
+ version = "0.52.6"
2680
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2681
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
2682
+
2683
+ [[package]]
2684
+ name = "windows_aarch64_gnullvm"
2685
+ version = "0.53.0"
2686
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2687
+ checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
2688
+
2689
+ [[package]]
2690
+ name = "windows_aarch64_msvc"
2691
+ version = "0.52.6"
2692
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2693
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
2694
+
2695
+ [[package]]
2696
+ name = "windows_aarch64_msvc"
2697
+ version = "0.53.0"
2698
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2699
+ checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
2700
+
2701
+ [[package]]
2702
+ name = "windows_i686_gnu"
2703
+ version = "0.52.6"
2704
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2705
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
2706
+
2707
+ [[package]]
2708
+ name = "windows_i686_gnu"
2709
+ version = "0.53.0"
2710
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2711
+ checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3"
2712
+
2713
+ [[package]]
2714
+ name = "windows_i686_gnullvm"
2715
+ version = "0.52.6"
2716
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2717
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
2718
+
2719
+ [[package]]
2720
+ name = "windows_i686_gnullvm"
2721
+ version = "0.53.0"
2722
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2723
+ checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
2724
+
2725
+ [[package]]
2726
+ name = "windows_i686_msvc"
2727
+ version = "0.52.6"
2728
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2729
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
2730
+
2731
+ [[package]]
2732
+ name = "windows_i686_msvc"
2733
+ version = "0.53.0"
2734
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2735
+ checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
2736
+
2737
+ [[package]]
2738
+ name = "windows_x86_64_gnu"
2739
+ version = "0.52.6"
2740
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2741
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
2742
+
2743
+ [[package]]
2744
+ name = "windows_x86_64_gnu"
2745
+ version = "0.53.0"
2746
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2747
+ checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
2748
+
2749
+ [[package]]
2750
+ name = "windows_x86_64_gnullvm"
2751
+ version = "0.52.6"
2752
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2753
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
2754
+
2755
+ [[package]]
2756
+ name = "windows_x86_64_gnullvm"
2757
+ version = "0.53.0"
2758
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2759
+ checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
2760
+
2761
+ [[package]]
2762
+ name = "windows_x86_64_msvc"
2763
+ version = "0.52.6"
2764
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2765
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
2766
+
2767
+ [[package]]
2768
+ name = "windows_x86_64_msvc"
2769
+ version = "0.53.0"
2770
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2771
+ checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
2772
+
2773
+ [[package]]
2774
+ name = "wit-bindgen"
2775
+ version = "0.45.1"
2776
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2777
+ checksum = "5c573471f125075647d03df72e026074b7203790d41351cd6edc96f46bcccd36"
2778
+
2779
+ [[package]]
2780
+ name = "writeable"
2781
+ version = "0.6.1"
2782
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2783
+ checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
2784
+
2785
+ [[package]]
2786
+ name = "yoke"
2787
+ version = "0.8.0"
2788
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2789
+ checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc"
2790
+ dependencies = [
2791
+ "serde",
2792
+ "stable_deref_trait",
2793
+ "yoke-derive",
2794
+ "zerofrom",
2795
+ ]
2796
+
2797
+ [[package]]
2798
+ name = "yoke-derive"
2799
+ version = "0.8.0"
2800
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2801
+ checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
2802
+ dependencies = [
2803
+ "proc-macro2",
2804
+ "quote",
2805
+ "syn",
2806
+ "synstructure",
2807
+ ]
2808
+
2809
+ [[package]]
2810
+ name = "zerocopy"
2811
+ version = "0.8.27"
2812
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2813
+ checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"
2814
+ dependencies = [
2815
+ "zerocopy-derive",
2816
+ ]
2817
+
2818
+ [[package]]
2819
+ name = "zerocopy-derive"
2820
+ version = "0.8.27"
2821
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2822
+ checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"
2823
+ dependencies = [
2824
+ "proc-macro2",
2825
+ "quote",
2826
+ "syn",
2827
+ ]
2828
+
2829
+ [[package]]
2830
+ name = "zerofrom"
2831
+ version = "0.1.6"
2832
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2833
+ checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
2834
+ dependencies = [
2835
+ "zerofrom-derive",
2836
+ ]
2837
+
2838
+ [[package]]
2839
+ name = "zerofrom-derive"
2840
+ version = "0.1.6"
2841
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2842
+ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
2843
+ dependencies = [
2844
+ "proc-macro2",
2845
+ "quote",
2846
+ "syn",
2847
+ "synstructure",
2848
+ ]
2849
+
2850
+ [[package]]
2851
+ name = "zeroize"
2852
+ version = "1.8.1"
2853
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2854
+ checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
2855
+
2856
+ [[package]]
2857
+ name = "zerotrie"
2858
+ version = "0.2.2"
2859
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2860
+ checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595"
2861
+ dependencies = [
2862
+ "displaydoc",
2863
+ "yoke",
2864
+ "zerofrom",
2865
+ ]
2866
+
2867
+ [[package]]
2868
+ name = "zerovec"
2869
+ version = "0.11.4"
2870
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2871
+ checksum = "e7aa2bd55086f1ab526693ecbe444205da57e25f4489879da80635a46d90e73b"
2872
+ dependencies = [
2873
+ "yoke",
2874
+ "zerofrom",
2875
+ "zerovec-derive",
2876
+ ]
2877
+
2878
+ [[package]]
2879
+ name = "zerovec-derive"
2880
+ version = "0.11.1"
2881
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2882
+ checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
2883
+ dependencies = [
2884
+ "proc-macro2",
2885
+ "quote",
2886
+ "syn",
2887
+ ]
2888
+ PROGRAMGYM_LOCK
2889
+
2890
+ # ---- Generate minimal stub sources so cargo can validate targets ----
2891
+ printf '// stub\n' > "${DL_WORK}/dotenv-cli/src/lib.rs"
2892
+ printf 'fn main() {}\n' > "${DL_WORK}/dotenv-cli/src/main.rs"
2893
+ : > "${DL_WORK}/dotenv-cli/benches/check.rs"
2894
+ : > "${DL_WORK}/dotenv-cli/benches/fix.rs"
2895
+ : > "${DL_WORK}/dotenv-cli/benches/diff.rs"
2896
+ printf '// stub\n' > "${DL_WORK}/dotenv-analyzer/src/lib.rs"
2897
+ printf '// stub\n' > "${DL_WORK}/dotenv-core/src/lib.rs"
2898
+ printf '// stub\n' > "${DL_WORK}/dotenv-finder/src/lib.rs"
2899
+ printf '// stub\n' > "${DL_WORK}/dotenv-schema/src/lib.rs"
2900
+
2901
+ # ---- Prefetch every locked dependency into the local registry cache.
2902
+ # Run against the generated manifest (never the repo root). ----
2903
+ cargo fetch --locked --manifest-path "${DL_WORK}/Cargo.toml"
2904
+
2905
+ # ---- Leave a prepared mark so build.sh knows deps are staged ----
2906
+ : > "${CARGO_HOME}/programgym-ready-dotenv-linter"
dotenv-linter--dotenv-linter.36e/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68b8b5b780ca51b78845732e5eee67ee4a52e6d6d676b635c95d39fb1d2c58dc
3
+ size 4171320
dotenv-linter--dotenv-linter.36e/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ source /tmp/programgym-download.sh
9
+ set +a
10
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
11
+ import os
12
+ import shlex
13
+
14
+ ignored = {
15
+ "ALL_PROXY",
16
+ "HTTP_PROXY",
17
+ "HTTPS_PROXY",
18
+ "NO_PROXY",
19
+ "OLDPWD",
20
+ "PIP_PROXY",
21
+ "PWD",
22
+ "SHLVL",
23
+ "_",
24
+ "all_proxy",
25
+ "http_proxy",
26
+ "https_proxy",
27
+ "no_proxy",
28
+ "pip_proxy",
29
+ }
30
+ for key in sorted(os.environ):
31
+ if key in ignored or key.startswith("BASH_FUNC_"):
32
+ continue
33
+ value = os.environ[key]
34
+ if "\n" in value:
35
+ continue
36
+ print(f"export {key}={shlex.quote(value)}")
37
+ PY
dotenv-linter--dotenv-linter.36e/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f79197e3c54cd535c4ea5328b1e4a7866434cb40200ee6a2b647f3de1c31cd4
3
+ size 4700
dotenv-linter--dotenv-linter.36e/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
dotenv-linter--dotenv-linter.36e/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