Marquis03 commited on
Commit
d02bbc1
·
verified ·
1 Parent(s): 40da519

commit (part 42)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. fishi0x01--vsh.982f866/tests/harbor_configure_java_mirrors.sh +50 -0
  3. fishi0x01--vsh.982f866/tests/harbor_prepare_download_env.sh +44 -0
  4. fishi0x01--vsh.982f866/tests/programgym-go.tar.gz +3 -0
  5. fishi0x01--vsh.982f866/tests/programgym_evaluator.py +1201 -0
  6. fishi0x01--vsh.982f866/tests/programgym_task.json +1052 -0
  7. fishi0x01--vsh.982f866/tests/test.sh +82 -0
  8. fishi0x01--vsh.982f866/tests/workspace.tar.gz +3 -0
  9. fph--bastet.1b3e692/environment/Dockerfile +1 -0
  10. fph--bastet.1b3e692/tests/Dockerfile +1 -0
  11. fragglet--yoctolisp.5856862/environment/Dockerfile +1 -0
  12. fragglet--yoctolisp.5856862/tests/Dockerfile +1 -0
  13. fraillt--bitsery.9bebfd4/environment/Dockerfile +92 -0
  14. fraillt--bitsery.9bebfd4/environment/docker-compose.yaml +22 -0
  15. fraillt--bitsery.9bebfd4/environment/download.sh +36 -0
  16. fraillt--bitsery.9bebfd4/environment/executable +0 -0
  17. fraillt--bitsery.9bebfd4/environment/harbor_configure_apt_mirror.sh +37 -0
  18. fraillt--bitsery.9bebfd4/environment/harbor_configure_java_mirrors.sh +50 -0
  19. fraillt--bitsery.9bebfd4/environment/harbor_prepare_download_env.sh +44 -0
  20. fraillt--bitsery.9bebfd4/environment/programgym-gcc13.tar.gz +3 -0
  21. fraillt--bitsery.9bebfd4/environment/workspace.tar.gz +3 -0
  22. fraillt--bitsery.9bebfd4/instruction.md +98 -0
  23. fraillt--bitsery.9bebfd4/solution/solve.sh +33 -0
  24. fraillt--bitsery.9bebfd4/task.toml +69 -0
  25. fraillt--bitsery.9bebfd4/tests/Dockerfile +106 -0
  26. fraillt--bitsery.9bebfd4/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  27. fraillt--bitsery.9bebfd4/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  28. fraillt--bitsery.9bebfd4/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  29. fraillt--bitsery.9bebfd4/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  30. fraillt--bitsery.9bebfd4/tests/blobs/tests/generated_upstream.tar.gz +3 -0
  31. fraillt--bitsery.9bebfd4/tests/docker-compose.yaml +22 -0
  32. fraillt--bitsery.9bebfd4/tests/download.sh +36 -0
  33. fraillt--bitsery.9bebfd4/tests/executable +0 -0
  34. fraillt--bitsery.9bebfd4/tests/harbor_configure_apt_mirror.sh +37 -0
  35. fraillt--bitsery.9bebfd4/tests/harbor_configure_java_mirrors.sh +50 -0
  36. fraillt--bitsery.9bebfd4/tests/harbor_prepare_download_env.sh +44 -0
  37. fraillt--bitsery.9bebfd4/tests/programgym-gcc13.tar.gz +3 -0
  38. fraillt--bitsery.9bebfd4/tests/programgym_evaluator.py +1201 -0
  39. fraillt--bitsery.9bebfd4/tests/programgym_task.json +767 -0
  40. fraillt--bitsery.9bebfd4/tests/test.sh +82 -0
  41. fraillt--bitsery.9bebfd4/tests/workspace.tar.gz +3 -0
  42. franckverrot--terraform-provider-stripe.26f8834/environment/Dockerfile +59 -0
  43. franckverrot--terraform-provider-stripe.26f8834/environment/download.sh +452 -0
  44. franckverrot--terraform-provider-stripe.26f8834/environment/executable +3 -0
  45. franckverrot--terraform-provider-stripe.26f8834/environment/programgym-go.tar.gz +3 -0
  46. franckverrot--terraform-provider-stripe.26f8834/environment/workspace.tar.gz +3 -0
  47. franckverrot--terraform-provider-stripe.26f8834/instruction.md +98 -0
  48. franckverrot--terraform-provider-stripe.26f8834/solution/solve.sh +33 -0
  49. franckverrot--terraform-provider-stripe.26f8834/task.toml +69 -0
  50. franckverrot--terraform-provider-stripe.26f8834/tests/Dockerfile +67 -0
.gitattributes CHANGED
@@ -3224,3 +3224,7 @@ fengxxc--wechatmp2markdown.48803a6/environment/executable filter=lfs diff=lfs me
3224
  fengxxc--wechatmp2markdown.48803a6/tests/executable filter=lfs diff=lfs merge=lfs -text
3225
  fishi0x01--vsh.982f866/environment/executable filter=lfs diff=lfs merge=lfs -text
3226
  fishi0x01--vsh.982f866/tests/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
3224
  fengxxc--wechatmp2markdown.48803a6/tests/executable filter=lfs diff=lfs merge=lfs -text
3225
  fishi0x01--vsh.982f866/environment/executable filter=lfs diff=lfs merge=lfs -text
3226
  fishi0x01--vsh.982f866/tests/executable filter=lfs diff=lfs merge=lfs -text
3227
+ franckverrot--terraform-provider-stripe.26f8834/environment/executable filter=lfs diff=lfs merge=lfs -text
3228
+ franckverrot--terraform-provider-stripe.26f8834/tests/executable filter=lfs diff=lfs merge=lfs -text
3229
+ fraunhoferfokus--deckschrubber.ca1963b/environment/executable filter=lfs diff=lfs merge=lfs -text
3230
+ fraunhoferfokus--deckschrubber.ca1963b/tests/executable filter=lfs diff=lfs merge=lfs -text
fishi0x01--vsh.982f866/tests/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
fishi0x01--vsh.982f866/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
fishi0x01--vsh.982f866/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
fishi0x01--vsh.982f866/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()
fishi0x01--vsh.982f866/tests/programgym_task.json ADDED
@@ -0,0 +1,1052 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [],
7
+ "tests": [
8
+ "eval.tests.test_vsh_add_cat_directory.test_add_directory_target_rejected",
9
+ "eval.tests.test_vsh_add_cat_directory.test_add_target_with_trailing_slash_is_directory",
10
+ "eval.tests.test_vsh_add_cat_directory.test_add_writes_into_leaf_despite_directory_sibling",
11
+ "eval.tests.test_vsh_add_cat_directory.test_cat_directory_target_rejected",
12
+ "eval.tests.test_vsh_append_replace.test_append_default_skip_merges_nonconflicting_keys",
13
+ "eval.tests.test_vsh_append_replace.test_append_directory_source_rejected",
14
+ "eval.tests.test_vsh_append_replace.test_append_explicit_skip_equals_default",
15
+ "eval.tests.test_vsh_append_replace.test_append_force_overwrites_conflicting_key",
16
+ "eval.tests.test_vsh_append_replace.test_append_missing_source_rejected",
17
+ "eval.tests.test_vsh_append_replace.test_append_missing_target_rejected",
18
+ "eval.tests.test_vsh_append_replace.test_append_rename_keeps_both_under_new_key",
19
+ "eval.tests.test_vsh_append_replace.test_append_too_many_positionals_rejected",
20
+ "eval.tests.test_vsh_append_replace.test_append_unknown_flag_rejected",
21
+ "eval.tests.test_vsh_append_replace.test_exit_with_surrounding_whitespace_trims",
22
+ "eval.tests.test_vsh_append_replace.test_extra_positional_after_direct_path_rejected",
23
+ "eval.tests.test_vsh_append_replace.test_replace_confirm_accepted_writes",
24
+ "eval.tests.test_vsh_append_replace.test_replace_confirm_declined_skips_write",
25
+ "eval.tests.test_vsh_append_replace.test_replace_confirm_flag_writes_replacement",
26
+ "eval.tests.test_vsh_append_replace.test_replace_dry_run_prints_preview_without_write",
27
+ "eval.tests.test_vsh_append_replace.test_replace_invalid_regex_rejected",
28
+ "eval.tests.test_vsh_append_replace.test_replace_missing_replacement_rejected",
29
+ "eval.tests.test_vsh_append_replace.test_replace_missing_search_rejected",
30
+ "eval.tests.test_vsh_append_replace.test_replace_no_match_prints_none_found",
31
+ "eval.tests.test_vsh_append_replace.test_replace_nonexistent_path_rejected",
32
+ "eval.tests.test_vsh_append_replace.test_worker_count_noninteger_rejected",
33
+ "eval.tests.test_vsh_arg_and_classification.test_add_writes_into_nested_leaf",
34
+ "eval.tests.test_vsh_arg_and_classification.test_append_leaf_into_directory_target",
35
+ "eval.tests.test_vsh_arg_and_classification.test_append_leaf_into_trailing_slash_directory",
36
+ "eval.tests.test_vsh_arg_and_classification.test_grep_empty_search_succeeds_no_matches",
37
+ "eval.tests.test_vsh_arg_and_classification.test_grep_ignore_case_flag_rejected",
38
+ "eval.tests.test_vsh_arg_and_classification.test_grep_key_regexp_matches",
39
+ "eval.tests.test_vsh_arg_and_classification.test_grep_shallow_empty_search_succeeds",
40
+ "eval.tests.test_vsh_arg_and_classification.test_grep_value_regexp_matches",
41
+ "eval.tests.test_vsh_arg_and_classification.test_replace_empty_replacement_empties_value",
42
+ "eval.tests.test_vsh_arg_and_classification.test_replace_regexp_without_confirm_fails_on_eof",
43
+ "eval.tests.test_vsh_backquote.test_backquote_command_name_works",
44
+ "eval.tests.test_vsh_backquote.test_backquote_directory_path_ls",
45
+ "eval.tests.test_vsh_backquote.test_backquote_empty_literal_yields_empty_positional",
46
+ "eval.tests.test_vsh_backquote.test_backquote_leading_space_literal",
47
+ "eval.tests.test_vsh_backquote.test_backquote_literal_becomes_invalid_path",
48
+ "eval.tests.test_vsh_backquote.test_backquote_literal_path_cat_reads_secret",
49
+ "eval.tests.test_vsh_backquote.test_backquote_literal_path_midtoken",
50
+ "eval.tests.test_vsh_backquote.test_backquote_not_shell_executed_echo",
51
+ "eval.tests.test_vsh_backquote.test_backquote_sole_command_ls",
52
+ "eval.tests.test_vsh_backquote.test_backquote_trailing_slash_literal",
53
+ "eval.tests.test_vsh_commands.test_add_confirm_accepted_yes",
54
+ "eval.tests.test_vsh_commands.test_add_confirm_declined[n\\n-Skipping write.]",
55
+ "eval.tests.test_vsh_commands.test_add_confirm_declined[no\\n-Skipping write.]",
56
+ "eval.tests.test_vsh_commands.test_add_confirm_two_invalid_then_default",
57
+ "eval.tests.test_vsh_commands.test_add_dry_run_skips_write",
58
+ "eval.tests.test_vsh_commands.test_add_dry_run_wins_over_confirm",
59
+ "eval.tests.test_vsh_commands.test_add_force_overwrites",
60
+ "eval.tests.test_vsh_commands.test_add_key_exists_without_force_fails",
61
+ "eval.tests.test_vsh_commands.test_add_writes_with_confirm_flag",
62
+ "eval.tests.test_vsh_commands.test_cat_reads_leaf_keyvalues",
63
+ "eval.tests.test_vsh_commands.test_cd_to_leaf_rejected",
64
+ "eval.tests.test_vsh_commands.test_cd_valid_dir_succeeds",
65
+ "eval.tests.test_vsh_commands.test_grep_both_modes_default_matches",
66
+ "eval.tests.test_vsh_commands.test_grep_invalid_regexp_fails",
67
+ "eval.tests.test_vsh_commands.test_grep_keys_mode_excludes_values",
68
+ "eval.tests.test_vsh_commands.test_grep_keys_mode_matches",
69
+ "eval.tests.test_vsh_commands.test_grep_no_match_prints_nothing",
70
+ "eval.tests.test_vsh_commands.test_grep_regexp_flag_matches",
71
+ "eval.tests.test_vsh_commands.test_grep_values_mode_matches_value",
72
+ "eval.tests.test_vsh_commands.test_ls_explicit_subdir",
73
+ "eval.tests.test_vsh_commands.test_ls_lists_mount_and_child",
74
+ "eval.tests.test_vsh_commands.test_ls_nonexistent_path_fails",
75
+ "eval.tests.test_vsh_commands.test_rm_leaf_deletes",
76
+ "eval.tests.test_vsh_commands.test_rm_missing_required_path_fails",
77
+ "eval.tests.test_vsh_commands.test_rm_recursive_skips_prompt_noninteractive",
78
+ "eval.tests.test_vsh_confirmation_prompt.test_add_empty_lines_then_eof_fails",
79
+ "eval.tests.test_vsh_confirmation_prompt.test_add_eof_on_decline_token_is_confirmation_error",
80
+ "eval.tests.test_vsh_confirmation_prompt.test_add_eof_on_first_reply_is_confirmation_error",
81
+ "eval.tests.test_vsh_confirmation_prompt.test_add_invalid_then_uppercase_no_declines",
82
+ "eval.tests.test_vsh_confirmation_prompt.test_add_invalid_then_uppercase_yes_retries",
83
+ "eval.tests.test_vsh_confirmation_prompt.test_add_uppercase_no_declines",
84
+ "eval.tests.test_vsh_confirmation_prompt.test_add_uppercase_yes_writes",
85
+ "eval.tests.test_vsh_confirmation_prompt.test_add_whitespace_padded_yes_writes",
86
+ "eval.tests.test_vsh_confirmation_prompt.test_replace_eof_without_newline_fails",
87
+ "eval.tests.test_vsh_confirmation_prompt.test_replace_invalid_then_uppercase_yes_retries",
88
+ "eval.tests.test_vsh_confirmation_prompt.test_replace_uppercase_yes_writes",
89
+ "eval.tests.test_vsh_confirmation_prompt.test_replace_whitespace_padded_yes_writes",
90
+ "eval.tests.test_vsh_dispatch.test_add_requires_three_positionals",
91
+ "eval.tests.test_vsh_dispatch.test_cmd_help_hint_shown_for_valid_commands[cat /secret/alpha-k1 = v1]",
92
+ "eval.tests.test_vsh_dispatch.test_cmd_help_hint_shown_for_valid_commands[ls /secret/dir-beta]",
93
+ "eval.tests.test_vsh_dispatch.test_cmd_help_hint_shown_for_valid_commands[ls-alpha]",
94
+ "eval.tests.test_vsh_dispatch.test_empty_command_input_exits_1",
95
+ "eval.tests.test_vsh_dispatch.test_exit_builtin_exits_0",
96
+ "eval.tests.test_vsh_dispatch.test_invalid_command_reports_and_exits_1",
97
+ "eval.tests.test_vsh_dispatch.test_ls_help_shows_all_options",
98
+ "eval.tests.test_vsh_dispatch.test_ls_unknown_option_rejected",
99
+ "eval.tests.test_vsh_dispatch.test_missing_required_positional_parse_error[add one-VALUE is required]",
100
+ "eval.tests.test_vsh_dispatch.test_missing_required_positional_parse_error[cp-SOURCE is required]",
101
+ "eval.tests.test_vsh_dispatch.test_missing_required_positional_parse_error[mv-SOURCE is required]",
102
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_lists_positional[cat-PATH]",
103
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_lists_positional[cd-PATH]",
104
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_lists_positional[ls-PATH]",
105
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_page_lists_description_and_args[add-adds a key with value to a path-KEY]",
106
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_page_lists_description_and_args[append-appends the contents of one secret to another-SOURCE]",
107
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_page_lists_description_and_args[cp-recursively copies a path to another location-SOURCE]",
108
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_page_lists_description_and_args[grep-recursive searches for a pattern starting at a path-SEARCH]",
109
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_page_lists_description_and_args[mv-moves a secret from one path to another-SOURCE]",
110
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_page_lists_description_and_args[replace-recursively replaces a matching pattern with a replacement string at a path-SEARCH]",
111
+ "eval.tests.test_vsh_dispatch.test_subcommand_help_page_lists_description_and_args[rm-removes a secret at a path-PATH]",
112
+ "eval.tests.test_vsh_entry.test_dash_h_prints_usage",
113
+ "eval.tests.test_vsh_entry.test_disable_auto_completion_flag_accepted_noninteractive",
114
+ "eval.tests.test_vsh_entry.test_disable_auto_completion_flag_with_worker_count",
115
+ "eval.tests.test_vsh_entry.test_invalid_verbosity_rejected[0]",
116
+ "eval.tests.test_vsh_entry.test_invalid_verbosity_rejected[FOO]",
117
+ "eval.tests.test_vsh_entry.test_invalid_verbosity_rejected[debug ]",
118
+ "eval.tests.test_vsh_entry.test_invalid_verbosity_rejected[verbose]",
119
+ "eval.tests.test_vsh_entry.test_lowercase_valid_verbosity_normalized",
120
+ "eval.tests.test_vsh_entry.test_missing_addr_reports_init_error",
121
+ "eval.tests.test_vsh_entry.test_root_help_lists_all_flags",
122
+ "eval.tests.test_vsh_entry.test_unknown_flag_rejected",
123
+ "eval.tests.test_vsh_entry.test_unreachable_addr_fails_client_init",
124
+ "eval.tests.test_vsh_entry.test_valid_verbosity_passes_validation[DEBUG]",
125
+ "eval.tests.test_vsh_entry.test_valid_verbosity_passes_validation[ERROR]",
126
+ "eval.tests.test_vsh_entry.test_valid_verbosity_passes_validation[INFO]",
127
+ "eval.tests.test_vsh_entry.test_valid_verbosity_passes_validation[WARN]",
128
+ "eval.tests.test_vsh_entry.test_version_flag_not_registered",
129
+ "eval.tests.test_vsh_grep_cat_output.test_cat_leaf_with_empty_payload_prints_nothing",
130
+ "eval.tests.test_vsh_grep_cat_output.test_cat_leaf_with_empty_string_value_prints_key",
131
+ "eval.tests.test_vsh_grep_cat_output.test_grep_default_mode_regexp_matches_value",
132
+ "eval.tests.test_vsh_grep_cat_output.test_grep_same_value_across_multiple_leaves_reports_all",
133
+ "eval.tests.test_vsh_grep_recursion.test_grep_both_modes_default_recurses_deep",
134
+ "eval.tests.test_vsh_grep_recursion.test_grep_explicit_leaf_path_returns_only_that_leaf",
135
+ "eval.tests.test_vsh_grep_recursion.test_grep_keys_deep_reaches_nested_leaf",
136
+ "eval.tests.test_vsh_grep_recursion.test_grep_keys_shallow_stops_at_top_level",
137
+ "eval.tests.test_vsh_grep_recursion.test_grep_nonexistent_path_reports_invalid",
138
+ "eval.tests.test_vsh_grep_recursion.test_grep_shallow_excludes_nested_only_key",
139
+ "eval.tests.test_vsh_grep_recursion.test_grep_shallow_includes_top_only_key",
140
+ "eval.tests.test_vsh_grep_recursion.test_grep_values_deep_finds_nested_leaf_value",
141
+ "eval.tests.test_vsh_grep_recursion.test_grep_values_shallow_finds_top_leaf_value",
142
+ "eval.tests.test_vsh_grep_recursion.test_grep_values_shallow_skips_nested_leaf_value",
143
+ "eval.tests.test_vsh_ls_absolute.test_ls_absolute_leaf_reports_not_a_directory",
144
+ "eval.tests.test_vsh_ls_absolute.test_ls_absolute_mount_lists_top_level",
145
+ "eval.tests.test_vsh_ls_absolute.test_ls_absolute_nonexistent_reports_invalid",
146
+ "eval.tests.test_vsh_ls_absolute.test_ls_absolute_subtree_lists_its_entries",
147
+ "eval.tests.test_vsh_ls_absolute.test_ls_mount_root_lists_configured_backend",
148
+ "eval.tests.test_vsh_path_normalization.test_cat_double_slash_normalized",
149
+ "eval.tests.test_vsh_path_normalization.test_cat_parent_dotdot_reads_sibling_secret",
150
+ "eval.tests.test_vsh_path_normalization.test_cd_dotdot_above_mount_rejected",
151
+ "eval.tests.test_vsh_path_normalization.test_cp_leaf_to_itself_writes_same_path",
152
+ "eval.tests.test_vsh_path_normalization.test_cp_trailing_slash_source_copies_leaf",
153
+ "eval.tests.test_vsh_path_normalization.test_ls_dot_lists_current_path",
154
+ "eval.tests.test_vsh_path_normalization.test_ls_dotdot_above_mount_rejected",
155
+ "eval.tests.test_vsh_path_normalization.test_ls_parent_dotdot_resolves_to_mount",
156
+ "eval.tests.test_vsh_path_normalization.test_ls_trailing_slash_directory_lists_children",
157
+ "eval.tests.test_vsh_path_normalization.test_mv_leaf_to_itself_writes_and_deletes_same_path",
158
+ "eval.tests.test_vsh_path_normalization.test_mv_trailing_slash_source_writes_and_deletes",
159
+ "eval.tests.test_vsh_quoting_and_verbosity.test_adjacent_quotes_concatenate_into_one_token",
160
+ "eval.tests.test_vsh_quoting_and_verbosity.test_balanced_quote_stripped_to_relative_path",
161
+ "eval.tests.test_vsh_quoting_and_verbosity.test_debug_verbosity_opens_trace_log",
162
+ "eval.tests.test_vsh_quoting_and_verbosity.test_empty_quoted_command_token_rejected",
163
+ "eval.tests.test_vsh_quoting_and_verbosity.test_info_verbosity_does_not_open_trace_log",
164
+ "eval.tests.test_vsh_quoting_and_verbosity.test_unterminated_quote_rejected_silently[cat /secret/`ab]",
165
+ "eval.tests.test_vsh_quoting_and_verbosity.test_unterminated_quote_rejected_silently[ls \"a]",
166
+ "eval.tests.test_vsh_quoting_and_verbosity.test_unterminated_quote_rejected_silently[ls 'a]",
167
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_diff_combined_key_and_value_rewrite",
168
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_diff_empty_replacement_combined_match",
169
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_highlight_on_key_only_match",
170
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_inline_explicit_output_format",
171
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_key_selector_with_diff_output",
172
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_keys_mode_rewrites_key_value_untouched",
173
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_regexp_matching_both_axes_replaces_each",
174
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_same_text_in_key_and_value_rewrites_both_axes",
175
+ "eval.tests.test_vsh_replace_matchmatrix.test_replace_substitutes_every_occurrence_in_value",
176
+ "eval.tests.test_vsh_replace_selectors.test_replace_key_itself_rewrites_key_and_value",
177
+ "eval.tests.test_vsh_replace_selectors.test_replace_key_selector_excludes_other_key_with_value",
178
+ "eval.tests.test_vsh_replace_selectors.test_replace_key_selector_limits_to_selected_key",
179
+ "eval.tests.test_vsh_replace_selectors.test_replace_key_selector_non_matching_key_finds_nothing",
180
+ "eval.tests.test_vsh_replace_selectors.test_replace_keys_mode_does_not_match_values",
181
+ "eval.tests.test_vsh_replace_selectors.test_replace_output_diff_shows_line_diff",
182
+ "eval.tests.test_vsh_replace_selectors.test_replace_output_highlight_keeps_original_pair",
183
+ "eval.tests.test_vsh_replace_selectors.test_replace_output_invalid_value_rejected",
184
+ "eval.tests.test_vsh_replace_selectors.test_replace_recursive_includes_nested_leaf",
185
+ "eval.tests.test_vsh_replace_selectors.test_replace_regexp_key_selector_malformed_rejected",
186
+ "eval.tests.test_vsh_replace_selectors.test_replace_regexp_key_selector_matches",
187
+ "eval.tests.test_vsh_replace_selectors.test_replace_shallow_excludes_nested_leaf",
188
+ "eval.tests.test_vsh_replace_selectors.test_replace_values_mode_matches_and_writes",
189
+ "eval.tests.test_vsh_rm_directory.test_rm_directory_without_recursive_rejected",
190
+ "eval.tests.test_vsh_rm_directory.test_rm_force_without_recursive_still_rejected",
191
+ "eval.tests.test_vsh_rm_directory.test_rm_recursive_deletes_nested_leaves",
192
+ "eval.tests.test_vsh_rm_directory.test_rm_recursive_flat_directory_deletes_its_child",
193
+ "eval.tests.test_vsh_transport.test_copy_directory_without_recursive_rejected",
194
+ "eval.tests.test_vsh_transport.test_copy_leaf_preserves_original",
195
+ "eval.tests.test_vsh_transport.test_copy_leaf_writes_single_target[cp /secret/alpha /secret/copied-secret/copied]",
196
+ "eval.tests.test_vsh_transport.test_copy_leaf_writes_single_target[cp /secret/alpha /secret/target-secret/target]",
197
+ "eval.tests.test_vsh_transport.test_copy_leaf_writes_single_target[cp /secret/alpha /secret/with/dir/deep-secret/with/dir/deep]",
198
+ "eval.tests.test_vsh_transport.test_copy_overwrites_existing_target",
199
+ "eval.tests.test_vsh_transport.test_move_leaf_writes_and_deletes_source[mv /secret/alpha /secret/moved-secret/moved]",
200
+ "eval.tests.test_vsh_transport.test_move_leaf_writes_and_deletes_source[mv /secret/alpha /secret/nest/ed-secret/nest/ed]",
201
+ "eval.tests.test_vsh_transport.test_move_leaf_writes_and_deletes_source[mv /secret/alpha /secret/other-secret/other]",
202
+ "eval.tests.test_vsh_transport.test_recursive_copy_greater_than_worker_count",
203
+ "eval.tests.test_vsh_transport.test_recursive_copy_target_is_descendant",
204
+ "eval.tests.test_vsh_transport.test_recursive_copy_writes_each_child[cp -r /secret/dir /secret/copy-secret/copy/beta]",
205
+ "eval.tests.test_vsh_transport.test_recursive_copy_writes_each_child[cp -r /secret/dir /secret/dive/deep-secret/dive/deep/beta]",
206
+ "eval.tests.test_vsh_transport.test_recursive_copy_writes_each_child[cp -r /secret/dir /secret/renamed-secret/renamed/beta]",
207
+ "eval.tests.test_vsh_transport.test_recursive_move_preserves_payload_via_pool",
208
+ "eval.tests.test_vsh_transport.test_recursive_move_writes_and_deletes_children[mv /secret/dir /secret/deep/nest-secret/deep/nest/beta]",
209
+ "eval.tests.test_vsh_transport.test_recursive_move_writes_and_deletes_children[mv /secret/dir /secret/mov-secret/mov/beta]",
210
+ "eval.tests.test_vsh_transport.test_recursive_move_writes_and_deletes_children[mv /secret/dir /secret/swapped-secret/swapped/beta]",
211
+ "eval.tests.test_vsh_transport.test_transport_nonexistent_source_rejected[cp /secret/alpha/x /secret/x-/secret/alpha/x]",
212
+ "eval.tests.test_vsh_transport.test_transport_nonexistent_source_rejected[cp /secret/nope /secret/x-/secret/nope]",
213
+ "eval.tests.test_vsh_transport.test_transport_nonexistent_source_rejected[mv /secret/alpha/x /secret/x-/secret/alpha/x]",
214
+ "eval.tests.test_vsh_transport.test_transport_nonexistent_source_rejected[mv /secret/nope /secret/x-/secret/nope]"
215
+ ]
216
+ },
217
+ "generated_module_02": {
218
+ "ignore_reason": "",
219
+ "ignored": false,
220
+ "ignored_tests": [],
221
+ "tests": [
222
+ "eval.tests.test_list_and_type.TestClientList.test_list_defaults_to_current_pwd",
223
+ "eval.tests.test_list_and_type.TestClientList.test_list_directory_children[kv1]",
224
+ "eval.tests.test_list_and_type.TestClientList.test_list_directory_children[kv2]",
225
+ "eval.tests.test_list_and_type.TestClientList.test_list_empty_directory_returns_empty",
226
+ "eval.tests.test_list_and_type.TestClientList.test_list_mount_root[kv1]",
227
+ "eval.tests.test_list_and_type.TestClientList.test_list_mount_root[kv2]",
228
+ "eval.tests.test_list_and_type.TestClientList.test_list_on_non_directory_errors[leaf_is_not_dir]",
229
+ "eval.tests.test_list_and_type.TestClientList.test_list_on_non_directory_errors[missing_dir]",
230
+ "eval.tests.test_list_and_type.TestClientList.test_list_root_returns_backends[kv1_only]",
231
+ "eval.tests.test_list_and_type.TestClientList.test_list_root_returns_backends[kv2_only]",
232
+ "eval.tests.test_list_and_type.TestClientList.test_list_root_returns_backends[multi_backend]",
233
+ "eval.tests.test_list_and_type.TestGetTypePathClassification.test_cat_directory_errors",
234
+ "eval.tests.test_list_and_type.TestGetTypePathClassification.test_cat_leaf_reads",
235
+ "eval.tests.test_list_and_type.TestGetTypePathClassification.test_cd_into_leaf_fails",
236
+ "eval.tests.test_list_and_type.TestGetTypePathClassification.test_cd_into_missing_fails",
237
+ "eval.tests.test_list_and_type.TestGetTypePathClassification.test_cd_into_node_succeeds[kv1]",
238
+ "eval.tests.test_list_and_type.TestGetTypePathClassification.test_cd_into_node_succeeds[kv2]",
239
+ "eval.tests.test_list_and_type.TestGetTypePathClassification.test_cd_to_root_succeeds",
240
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_connect_lists_all_mounts",
241
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_deny_list_permission_uses_default_secrets_mount",
242
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_env_declared_mount_readable[kv1_env_mount]",
243
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_env_declared_mount_readable[kv2_env_mount]",
244
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_env_declared_mounts_are_listed[kv1_and_kv2]",
245
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_env_declared_mounts_are_listed[kv1_only_multi]",
246
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_leaf_vault_path_rejected",
247
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_unreachable_address_fails_client_init",
248
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_valid_vault_path_normalized[absolute]",
249
+ "eval.tests.test_list_and_type.TestNewClientConfig.test_valid_vault_path_normalized[no_leading_slash]",
250
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_ambiguous_kv1_lists_both_variants",
251
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_cat_ambiguous_no_slash_reads_leaf",
252
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_cat_ambiguous_trailing_slash_rejects_node",
253
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_cd_ambiguous_no_slash_treated_as_leaf",
254
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_cd_ambiguous_trailing_slash_enters_node",
255
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_ls_ambiguous_no_slash_rejects_leaf",
256
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_ls_ambiguous_trailing_slash_lists_node",
257
+ "eval.tests.test_read_boundaries_and_ambiguity.TestAmbiguousPathGetType.test_ls_lists_ambiguous_leaf_and_node",
258
+ "eval.tests.test_read_boundaries_and_ambiguity.TestNewClientTlsConfig.test_missing_cacert_file_fails_client_init",
259
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadAfterWriteCacheCleared.test_read_after_force_overwrite_sees_updated_keyset",
260
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadAfterWriteCacheCleared.test_read_after_rm_reports_missing",
261
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadAfterWriteCacheCleared.test_read_sees_write_in_same_session",
262
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadValueBoundaries.test_empty_key_read",
263
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadValueBoundaries.test_empty_value_read",
264
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadValueBoundaries.test_nested_map_value_formatted",
265
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadValueBoundaries.test_numeric_and_bool_values_read_as_strings[kv1]",
266
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadValueBoundaries.test_numeric_and_bool_values_read_as_strings[kv2]",
267
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadValueBoundaries.test_unicode_and_whitespace_values_preserved",
268
+ "eval.tests.test_read_boundaries_and_ambiguity.TestReadValueBoundaries.test_value_containing_delimiter",
269
+ "eval.tests.test_secret_crud.TestCopy.test_cp_leaf[kv1]",
270
+ "eval.tests.test_secret_crud.TestCopy.test_cp_leaf[kv2]",
271
+ "eval.tests.test_secret_crud.TestCopy.test_cp_missing_source_errors",
272
+ "eval.tests.test_secret_crud.TestCopy.test_cp_node_without_recursive_errors",
273
+ "eval.tests.test_secret_crud.TestDelete.test_rm_leaf_deletes_secret[kv1]",
274
+ "eval.tests.test_secret_crud.TestDelete.test_rm_leaf_deletes_secret[kv2]",
275
+ "eval.tests.test_secret_crud.TestDelete.test_rm_missing_leaf_errors",
276
+ "eval.tests.test_secret_crud.TestDelete.test_rm_node_requires_recursive[kv1]",
277
+ "eval.tests.test_secret_crud.TestDelete.test_rm_node_requires_recursive[kv2]",
278
+ "eval.tests.test_secret_crud.TestDelete.test_rm_r_recursively_deletes_subtree[kv1]",
279
+ "eval.tests.test_secret_crud.TestDelete.test_rm_r_recursively_deletes_subtree[kv2]",
280
+ "eval.tests.test_secret_crud.TestDelete.test_rm_root_backend_errors",
281
+ "eval.tests.test_secret_crud.TestMove.test_mv_single_leaf[kv1]",
282
+ "eval.tests.test_secret_crud.TestMove.test_mv_single_leaf[kv2]",
283
+ "eval.tests.test_secret_crud.TestRead.test_read_at_root_backend_errors",
284
+ "eval.tests.test_secret_crud.TestRead.test_read_leaf_prints_all_keys[kv1]",
285
+ "eval.tests.test_secret_crud.TestRead.test_read_leaf_prints_all_keys[kv2]",
286
+ "eval.tests.test_secret_crud.TestRead.test_read_missing_leaf_errors",
287
+ "eval.tests.test_secret_crud.TestRead.test_read_preserves_non_string_values[kv1_numeric_value]",
288
+ "eval.tests.test_secret_crud.TestRead.test_read_preserves_non_string_values[kv2_numeric_value]",
289
+ "eval.tests.test_secret_crud.TestWrite.test_add_dry_run_does_not_write[kv1]",
290
+ "eval.tests.test_secret_crud.TestWrite.test_add_dry_run_does_not_write[kv2]",
291
+ "eval.tests.test_secret_crud.TestWrite.test_add_existing_key_with_force_overwrites",
292
+ "eval.tests.test_secret_crud.TestWrite.test_add_existing_key_without_force_errors",
293
+ "eval.tests.test_secret_crud.TestWrite.test_add_new_key_writes_with_confirm[kv1]",
294
+ "eval.tests.test_secret_crud.TestWrite.test_add_new_key_writes_with_confirm[kv2]",
295
+ "eval.tests.test_secret_crud.TestWrite.test_add_rejects_invalid_target[missing_path]",
296
+ "eval.tests.test_secret_crud.TestWrite.test_add_rejects_invalid_target[root_backend]",
297
+ "eval.tests.test_secret_crud.TestWriteNewSecret.test_create_new_secret_via_append_dummy[kv1]",
298
+ "eval.tests.test_secret_crud.TestWriteNewSecret.test_create_new_secret_via_append_dummy[kv2]",
299
+ "eval.tests.test_traverse_search.TestAppend.test_append_conflict_strategies[force_overwrite]",
300
+ "eval.tests.test_traverse_search.TestAppend.test_append_conflict_strategies[skip_conflict_default]",
301
+ "eval.tests.test_traverse_search.TestAppend.test_append_rename_conflict",
302
+ "eval.tests.test_traverse_search.TestAppend.test_append_source_must_be_leaf",
303
+ "eval.tests.test_traverse_search.TestGrep.test_grep_at_mount_root_traverses_all_backends",
304
+ "eval.tests.test_traverse_search.TestGrep.test_grep_deep_recursion",
305
+ "eval.tests.test_traverse_search.TestGrep.test_grep_invalid_regex_errors",
306
+ "eval.tests.test_traverse_search.TestGrep.test_grep_keys_mode[kv1]",
307
+ "eval.tests.test_traverse_search.TestGrep.test_grep_keys_mode[kv2]",
308
+ "eval.tests.test_traverse_search.TestGrep.test_grep_no_match_returns_zero",
309
+ "eval.tests.test_traverse_search.TestGrep.test_grep_recursive_finds_match",
310
+ "eval.tests.test_traverse_search.TestGrep.test_grep_regexp_mode",
311
+ "eval.tests.test_traverse_search.TestGrep.test_grep_values_mode[kv1]",
312
+ "eval.tests.test_traverse_search.TestGrep.test_grep_values_mode[kv2]",
313
+ "eval.tests.test_traverse_search.TestRecursiveTraverse.test_cp_r_copies_subtree[kv1]",
314
+ "eval.tests.test_traverse_search.TestRecursiveTraverse.test_cp_r_copies_subtree[kv2]",
315
+ "eval.tests.test_traverse_search.TestRecursiveTraverse.test_mv_directory_recursively[kv1]",
316
+ "eval.tests.test_traverse_search.TestRecursiveTraverse.test_mv_directory_recursively[kv2]",
317
+ "eval.tests.test_traverse_search.TestRecursiveTraverse.test_rm_r_shallow_and_deep",
318
+ "eval.tests.test_traverse_search.TestReplace.test_replace_dry_run_does_not_write",
319
+ "eval.tests.test_traverse_search.TestReplace.test_replace_key_selector_limits_to_named_key",
320
+ "eval.tests.test_traverse_search.TestReplace.test_replace_missing_path_errors",
321
+ "eval.tests.test_traverse_search.TestReplace.test_replace_no_match_prints_message",
322
+ "eval.tests.test_traverse_search.TestReplace.test_replace_recursive_across_subtree[kv1]",
323
+ "eval.tests.test_traverse_search.TestReplace.test_replace_recursive_across_subtree[kv2]",
324
+ "eval.tests.test_traverse_search.TestReplace.test_replace_updates_value_with_confirm"
325
+ ]
326
+ },
327
+ "generated_module_03": {
328
+ "ignore_reason": "",
329
+ "ignored": false,
330
+ "ignored_tests": [],
331
+ "tests": [
332
+ "eval.tests.test_add.test_add_absolute_vs_relative_path",
333
+ "eval.tests.test_add.test_add_dry_run_beats_confirm",
334
+ "eval.tests.test_add.test_add_dry_run_skips_write[--dry-run]",
335
+ "eval.tests.test_add.test_add_dry_run_skips_write[-n]",
336
+ "eval.tests.test_add.test_add_existing_key_without_force_fails",
337
+ "eval.tests.test_add.test_add_force_long_flag_overwrites",
338
+ "eval.tests.test_add.test_add_force_short_flag_overwrites",
339
+ "eval.tests.test_add.test_add_help_output",
340
+ "eval.tests.test_add.test_add_into_nested_leaf",
341
+ "eval.tests.test_add.test_add_invalid_path_fails[secrets/]",
342
+ "eval.tests.test_add.test_add_invalid_path_fails[secrets/node]",
343
+ "eval.tests.test_add.test_add_invalid_path_fails[secrets/nope]",
344
+ "eval.tests.test_add.test_add_invalid_path_fails[secrets]",
345
+ "eval.tests.test_add.test_add_missing_required_args[add k v-PATH]",
346
+ "eval.tests.test_add.test_add_missing_required_args[add k-VALUE]",
347
+ "eval.tests.test_add.test_add_missing_required_args[add-KEY]",
348
+ "eval.tests.test_add.test_add_multiple_keys_accumulate",
349
+ "eval.tests.test_add.test_add_new_key_to_existing_secret[dot.key-s!p@c!al#VALUE1]",
350
+ "eval.tests.test_add.test_add_new_key_to_existing_secret[k/slash-slash_in_key]",
351
+ "eval.tests.test_add.test_add_new_key_to_existing_secret[quota-42]",
352
+ "eval.tests.test_add.test_add_new_key_to_existing_secret[repeats-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]",
353
+ "eval.tests.test_add.test_add_new_key_to_existing_secret[team-core]",
354
+ "eval.tests.test_add.test_add_prompt_accepted_stdin_y",
355
+ "eval.tests.test_add.test_add_prompt_declined_stdin_n",
356
+ "eval.tests.test_add.test_add_prompt_eof_fails",
357
+ "eval.tests.test_add.test_add_unknown_argument",
358
+ "eval.tests.test_append.test_append_creates_missing_target",
359
+ "eval.tests.test_append.test_append_default_skip",
360
+ "eval.tests.test_append.test_append_explicit_skip_flag",
361
+ "eval.tests.test_append.test_append_help",
362
+ "eval.tests.test_append.test_append_into_nested_new_target",
363
+ "eval.tests.test_append.test_append_invalid_source[secrets/dir]",
364
+ "eval.tests.test_append.test_append_invalid_source[secrets/nope]",
365
+ "eval.tests.test_append.test_append_invalid_source[secrets]",
366
+ "eval.tests.test_append.test_append_missing_args",
367
+ "eval.tests.test_append.test_append_overwrite_flag",
368
+ "eval.tests.test_append.test_append_rename_creates_suffixed_key",
369
+ "eval.tests.test_append.test_append_rename_multiple_conflicts",
370
+ "eval.tests.test_append.test_append_short_force",
371
+ "eval.tests.test_append.test_append_source_unchanged",
372
+ "eval.tests.test_cp.test_cp_directory_long_recursive_flag",
373
+ "eval.tests.test_cp.test_cp_directory_recursive",
374
+ "eval.tests.test_cp.test_cp_directory_without_recursive_fails",
375
+ "eval.tests.test_cp.test_cp_help",
376
+ "eval.tests.test_cp.test_cp_invalid_source[secrets/nope]",
377
+ "eval.tests.test_cp.test_cp_leaf",
378
+ "eval.tests.test_cp.test_cp_leaf_to_nested_path",
379
+ "eval.tests.test_cp.test_cp_missing_args",
380
+ "eval.tests.test_cp.test_cp_overwrites_existing_target",
381
+ "eval.tests.test_cp.test_cp_recursive_into_existing_target",
382
+ "eval.tests.test_cp.test_cp_self_copy_chain",
383
+ "eval.tests.test_mv.test_mv_directory_recursive",
384
+ "eval.tests.test_mv.test_mv_help",
385
+ "eval.tests.test_mv.test_mv_invalid_source[secrets/nope]",
386
+ "eval.tests.test_mv.test_mv_kv1_to_kv2",
387
+ "eval.tests.test_mv.test_mv_kv2_to_kv1",
388
+ "eval.tests.test_mv.test_mv_leaf",
389
+ "eval.tests.test_mv.test_mv_leaf_keeps_unrelated_paths",
390
+ "eval.tests.test_mv.test_mv_missing_args",
391
+ "eval.tests.test_mv.test_mv_overwrites_existing_target",
392
+ "eval.tests.test_rm.test_rm_absolute_path",
393
+ "eval.tests.test_rm.test_rm_directory_long_recursive_flag",
394
+ "eval.tests.test_rm.test_rm_directory_recursive",
395
+ "eval.tests.test_rm.test_rm_directory_without_recursive_fails",
396
+ "eval.tests.test_rm.test_rm_help",
397
+ "eval.tests.test_rm.test_rm_invalid_path[secrets/nope]",
398
+ "eval.tests.test_rm.test_rm_leaf",
399
+ "eval.tests.test_rm.test_rm_leaf_with_recursive_flag_is_ok",
400
+ "eval.tests.test_rm.test_rm_missing_leaf_is_invalid",
401
+ "eval.tests.test_rm.test_rm_missing_path_arg",
402
+ "eval.tests.test_rm.test_rm_unknown_argument"
403
+ ]
404
+ },
405
+ "generated_module_04": {
406
+ "ignore_reason": "",
407
+ "ignored": false,
408
+ "ignored_tests": [],
409
+ "tests": [
410
+ "eval.tests.test_args.test_command_chaining_not_supported",
411
+ "eval.tests.test_args.test_dispatch_is_case_sensitive",
412
+ "eval.tests.test_args.test_missing_required_positional[cat-PATH is required]",
413
+ "eval.tests.test_args.test_missing_required_positional[cd-PATH is required]",
414
+ "eval.tests.test_args.test_missing_required_positional[grep-SEARCH is required]",
415
+ "eval.tests.test_args.test_too_many_positionals_rejected",
416
+ "eval.tests.test_args.test_unknown_command_rejected",
417
+ "eval.tests.test_args.test_unknown_flag_on_cat",
418
+ "eval.tests.test_args.test_unknown_flag_prints_usage",
419
+ "eval.tests.test_cat.test_cat_backend_root_rejected",
420
+ "eval.tests.test_cat.test_cat_custom_secret_shows_inserted_data",
421
+ "eval.tests.test_cat.test_cat_directory_is_rejected",
422
+ "eval.tests.test_cat.test_cat_empty_data_secret_prints_nothing",
423
+ "eval.tests.test_cat.test_cat_leaf_with_nested_secret",
424
+ "eval.tests.test_cat.test_cat_missing_path_rejected[KV1]",
425
+ "eval.tests.test_cat.test_cat_missing_path_rejected[KV2]",
426
+ "eval.tests.test_cat.test_cat_no_argument_prints_usage",
427
+ "eval.tests.test_cat.test_cat_relative_path_from_vault_path[KV1]",
428
+ "eval.tests.test_cat.test_cat_relative_path_from_vault_path[KV2]",
429
+ "eval.tests.test_cat.test_cat_secret_prints_key_value_pairs[KV1]",
430
+ "eval.tests.test_cat.test_cat_secret_prints_key_value_pairs[KV2]",
431
+ "eval.tests.test_cat.test_cat_secret_with_long_value[KV1]",
432
+ "eval.tests.test_cat.test_cat_secret_with_long_value[KV2]",
433
+ "eval.tests.test_cat.test_cat_single_key_secret",
434
+ "eval.tests.test_cat.test_cat_unknown_backend_rejected",
435
+ "eval.tests.test_cd.test_cd_ambiguous_file_and_dir_resolves_to_leaf",
436
+ "eval.tests.test_cd.test_cd_backend_root_succeeds",
437
+ "eval.tests.test_cd.test_cd_leaf_is_rejected[KV1]",
438
+ "eval.tests.test_cd.test_cd_leaf_is_rejected[KV2]",
439
+ "eval.tests.test_cd.test_cd_missing_path_rejected[KV1]",
440
+ "eval.tests.test_cd.test_cd_missing_path_rejected[KV2]",
441
+ "eval.tests.test_cd.test_cd_no_argument_prints_usage",
442
+ "eval.tests.test_cd.test_cd_relative_from_vault_path[KV1]",
443
+ "eval.tests.test_cd.test_cd_relative_from_vault_path[KV2]",
444
+ "eval.tests.test_cd.test_cd_root_succeeds",
445
+ "eval.tests.test_cd.test_cd_trailing_slash_directory_succeeds[KV1]",
446
+ "eval.tests.test_cd.test_cd_trailing_slash_directory_succeeds[KV2]",
447
+ "eval.tests.test_cd.test_cd_unknown_backend_rejected",
448
+ "eval.tests.test_cd.test_cd_valid_directory_succeeds[KV1]",
449
+ "eval.tests.test_cd.test_cd_valid_directory_succeeds[KV2]",
450
+ "eval.tests.test_config.test_no_vault_path_falls_back_to_root",
451
+ "eval.tests.test_config.test_vault_path_leaf_gates_cd_too",
452
+ "eval.tests.test_config.test_vault_path_leaf_is_rejected",
453
+ "eval.tests.test_config.test_vault_path_unknown_backend_is_rejected",
454
+ "eval.tests.test_config.test_vault_path_valid_node_sets_ls_default",
455
+ "eval.tests.test_grep.test_grep_invalid_regexp_fails",
456
+ "eval.tests.test_grep.test_grep_keys_flag_limits_to_keys",
457
+ "eval.tests.test_grep.test_grep_keys_flag_no_key_match",
458
+ "eval.tests.test_grep.test_grep_missing_search_prints_usage",
459
+ "eval.tests.test_grep.test_grep_no_match_returns_zero",
460
+ "eval.tests.test_grep.test_grep_reads_written_secret",
461
+ "eval.tests.test_grep.test_grep_regexp_matches_pattern[KV1]",
462
+ "eval.tests.test_grep.test_grep_regexp_matches_pattern[KV2]",
463
+ "eval.tests.test_grep.test_grep_regexp_wildcard",
464
+ "eval.tests.test_grep.test_grep_relative_path_uses_vault_path",
465
+ "eval.tests.test_grep.test_grep_shallow_limits_to_leaf_nodes",
466
+ "eval.tests.test_grep.test_grep_single_leaf[KV1]",
467
+ "eval.tests.test_grep.test_grep_single_leaf[KV2]",
468
+ "eval.tests.test_grep.test_grep_unknown_backend_fails",
469
+ "eval.tests.test_grep.test_grep_value_substring_recurses[KV1]",
470
+ "eval.tests.test_grep.test_grep_value_substring_recurses[KV2]",
471
+ "eval.tests.test_grep.test_grep_values_flag_limits_to_values[KV1]",
472
+ "eval.tests.test_grep.test_grep_values_flag_limits_to_values[KV2]",
473
+ "eval.tests.test_help.test_help_lists_common_options",
474
+ "eval.tests.test_help.test_long_help_flag[cat-displays the content of a secret-Usage: cat]",
475
+ "eval.tests.test_help.test_long_help_flag[cd-changes the working path-Usage: cd]",
476
+ "eval.tests.test_help.test_long_help_flag[grep-recursive searches for a pattern starting at a path-Usage: grep]",
477
+ "eval.tests.test_help.test_long_help_flag[ls-lists the secrets at a path-Usage: ls]",
478
+ "eval.tests.test_help.test_long_help_flag[replace-recursively replaces a matching pattern with a replacement string at a path-Usage: replace]",
479
+ "eval.tests.test_help.test_replace_help_documents_confirm_and_output",
480
+ "eval.tests.test_help.test_short_help_flag[cat-displays the content of a secret-Usage: cat]",
481
+ "eval.tests.test_help.test_short_help_flag[cd-changes the working path-Usage: cd]",
482
+ "eval.tests.test_help.test_short_help_flag[grep-recursive searches for a pattern starting at a path-Usage: grep]",
483
+ "eval.tests.test_help.test_short_help_flag[ls-lists the secrets at a path-Usage: ls]",
484
+ "eval.tests.test_help.test_short_help_flag[replace-recursively replaces a matching pattern with a replacement string at a path-Usage: replace]",
485
+ "eval.tests.test_ls.test_ls_absolute_vs_relative_equivalent",
486
+ "eval.tests.test_ls.test_ls_default_root_when_no_pwd",
487
+ "eval.tests.test_ls.test_ls_defaults_to_vault_path_pwd",
488
+ "eval.tests.test_ls.test_ls_directory_lists_flat_names[KV1]",
489
+ "eval.tests.test_ls.test_ls_directory_lists_flat_names[KV2]",
490
+ "eval.tests.test_ls.test_ls_directory_shows_ambiguous_file_and_dir[KV1]",
491
+ "eval.tests.test_ls.test_ls_directory_shows_ambiguous_file_and_dir[KV2]",
492
+ "eval.tests.test_ls.test_ls_directory_with_single_file",
493
+ "eval.tests.test_ls.test_ls_help_prints_usage",
494
+ "eval.tests.test_ls.test_ls_kv1_backend_root_lists_src",
495
+ "eval.tests.test_ls.test_ls_kv2_backend_root_lists_empty[KV2/]",
496
+ "eval.tests.test_ls.test_ls_kv2_backend_root_lists_empty[KV2]",
497
+ "eval.tests.test_ls.test_ls_leaf_is_not_a_directory",
498
+ "eval.tests.test_ls.test_ls_leaf_with_children_is_not_listable",
499
+ "eval.tests.test_ls.test_ls_nested_directory_shows_ambiguous_children",
500
+ "eval.tests.test_ls.test_ls_nonexistent_path_exits_1",
501
+ "eval.tests.test_ls.test_ls_output_is_sorted",
502
+ "eval.tests.test_ls.test_ls_root_lists_backends",
503
+ "eval.tests.test_ls.test_ls_trailing_slash_directory[KV1]",
504
+ "eval.tests.test_ls.test_ls_trailing_slash_directory[KV2]",
505
+ "eval.tests.test_ls.test_ls_unknown_backend_exits_1",
506
+ "eval.tests.test_replace.test_replace_confirm_and_dryrun_dryrun_wins",
507
+ "eval.tests.test_replace.test_replace_diff_writes_all_matching_fields",
508
+ "eval.tests.test_replace.test_replace_dry_run_does_not_write",
509
+ "eval.tests.test_replace.test_replace_interactive_prompt_accepts_declines[n\\n]",
510
+ "eval.tests.test_replace.test_replace_interactive_prompt_accepts_declines[y\\n]",
511
+ "eval.tests.test_replace.test_replace_invalid_output_format_fails",
512
+ "eval.tests.test_replace.test_replace_invalid_regexp_fails",
513
+ "eval.tests.test_replace.test_replace_key_selector_limits_to_key",
514
+ "eval.tests.test_replace.test_replace_keys_mode_rewrites_key_name",
515
+ "eval.tests.test_replace.test_replace_no_matches_returns_zero",
516
+ "eval.tests.test_replace.test_replace_recurses_across_subtree",
517
+ "eval.tests.test_replace.test_replace_regexp_match",
518
+ "eval.tests.test_replace.test_replace_values_mode_rewrites_values_only"
519
+ ]
520
+ },
521
+ "generated_module_05": {
522
+ "ignore_reason": "",
523
+ "ignored": false,
524
+ "ignored_tests": [],
525
+ "tests": [
526
+ "eval.tests.test_completer_commands.test_command_prefix_filtering[a]",
527
+ "eval.tests.test_completer_commands.test_command_prefix_filtering[c]",
528
+ "eval.tests.test_completer_commands.test_command_prefix_filtering[g]",
529
+ "eval.tests.test_completer_commands.test_command_prefix_filtering[l]",
530
+ "eval.tests.test_completer_commands.test_command_prefix_filtering[m]",
531
+ "eval.tests.test_completer_commands.test_command_prefix_filtering[r]",
532
+ "eval.tests.test_completer_commands.test_command_usage_description_rendered",
533
+ "eval.tests.test_completer_commands.test_completion_case_insensitive[mixed-ls]",
534
+ "eval.tests.test_completer_commands.test_completion_case_insensitive[upper-add]",
535
+ "eval.tests.test_completer_commands.test_prompt_prefix_renders_addr",
536
+ "eval.tests.test_completer_commands.test_single_word_noncommand_falls_back_to_full_command_list",
537
+ "eval.tests.test_completer_commands.test_toggle_not_suggested_for_other_prefix",
538
+ "eval.tests.test_completer_commands.test_toggle_pseudo_command_advertised",
539
+ "eval.tests.test_completer_commands.test_unknown_prefix_falls_back_to_full_command_list",
540
+ "eval.tests.test_completer_misc_paths.test_absolute_path_suggestions_independent_of_pwd",
541
+ "eval.tests.test_completer_misc_paths.test_parent_dotdot_after_cd_lists_no_children",
542
+ "eval.tests.test_completer_misc_paths.test_two_word_noncommand_renders_no_dropdown",
543
+ "eval.tests.test_completer_misc_paths.test_two_word_unknown_first_word_after_cd_still_no_dropdown",
544
+ "eval.tests.test_completer_nested_relative.test_deep_nested_relative_lists_leaves_and_parent",
545
+ "eval.tests.test_completer_nested_relative.test_nested_escape_clears_dropdown",
546
+ "eval.tests.test_completer_nested_relative.test_nested_relative_lists_children",
547
+ "eval.tests.test_completer_nested_relative.test_nested_relative_prefix_filters_children",
548
+ "eval.tests.test_completer_nested_relative.test_nested_relative_tab_cycles_children",
549
+ "eval.tests.test_completer_nested_relative.test_nested_relative_tab_inserts_child",
550
+ "eval.tests.test_completer_paths.test_absolute_deep_suggestions",
551
+ "eval.tests.test_completer_paths.test_absolute_prefix_filter_suggestions",
552
+ "eval.tests.test_completer_paths.test_absolute_top_level_suggestions",
553
+ "eval.tests.test_completer_paths.test_many_backends_window_truncates_to_eight",
554
+ "eval.tests.test_completer_paths.test_nonexistent_dir_no_suggestions",
555
+ "eval.tests.test_completer_paths.test_relative_prefix_filter_suggestions",
556
+ "eval.tests.test_completer_paths.test_relative_top_level_suggestions",
557
+ "eval.tests.test_completer_paths.test_shift_tab_cycles_backwards",
558
+ "eval.tests.test_completer_paths.test_tab_cycles_absolute_suggestions",
559
+ "eval.tests.test_completer_paths.test_tab_inserts_top_level_backend",
560
+ "eval.tests.test_completer_paths.test_toggle_disables_path_completion",
561
+ "eval.tests.test_completer_paths.test_toggle_message_reports_off",
562
+ "eval.tests.test_completer_paths.test_toggle_re_enables_path_completion",
563
+ "eval.tests.test_tui_escape_and_nav.test_down_navigates_forward_through_suggestions",
564
+ "eval.tests.test_tui_escape_and_nav.test_escape_clears_dropdown",
565
+ "eval.tests.test_tui_escape_and_nav.test_up_navigates_back_through_suggestions",
566
+ "eval.tests.test_tui_model.test_command_output_survives_next_prompt",
567
+ "eval.tests.test_tui_model.test_ctrl_c_quits",
568
+ "eval.tests.test_tui_model.test_ctrl_d_quits",
569
+ "eval.tests.test_tui_model.test_enter_empty_is_noop_but_still_responsive",
570
+ "eval.tests.test_tui_model.test_enter_executes_and_echoes_command",
571
+ "eval.tests.test_tui_model.test_history_down_after_up_restores_current",
572
+ "eval.tests.test_tui_model.test_history_up_recalls_previous_command",
573
+ "eval.tests.test_tui_model.test_multiple_commands_sequential",
574
+ "eval.tests.test_tui_model.test_tab_with_no_suggestions_does_not_crash",
575
+ "eval.tests.test_tui_model_edge.test_enter_never_auto_accepts_completion",
576
+ "eval.tests.test_tui_model_edge.test_escape_then_tab_repopulates_dropdown",
577
+ "eval.tests.test_tui_model_edge.test_history_nav_empty_is_noop[down-empty-history]",
578
+ "eval.tests.test_tui_model_edge.test_history_nav_empty_is_noop[up-empty-history]",
579
+ "eval.tests.test_tui_model_edge.test_shift_tab_with_no_suggestions_noop",
580
+ "eval.tests.test_tui_model_edge.test_tab_completes_single_command_word[gr-grep]",
581
+ "eval.tests.test_tui_model_edge.test_tab_completes_single_command_word[l-ls]",
582
+ "eval.tests.test_tui_model_edge.test_tab_completes_single_command_word[repla-replace]",
583
+ "eval.tests.test_tui_model_edge.test_tab_completes_single_command_word[to-toggle]",
584
+ "eval.tests.test_tui_model_edge.test_tab_completes_single_word_picks_one_of_many",
585
+ "eval.tests.test_tui_model_edge.test_window_resize_keeps_session_functional",
586
+ "eval.tests.test_tui_spinner.test_fast_command_shows_no_spinner",
587
+ "eval.tests.test_tui_spinner.test_slow_command_output_preserved_after_spinner",
588
+ "eval.tests.test_tui_spinner.test_slow_command_shows_spinner"
589
+ ]
590
+ },
591
+ "generated_module_06": {
592
+ "ignore_reason": "",
593
+ "ignored": false,
594
+ "ignored_tests": [],
595
+ "tests": [
596
+ "eval.tests.test_logger_cli.test_help_default_level_info_documented",
597
+ "eval.tests.test_logger_cli.test_help_documents_debug_trace_side_effect[--help]",
598
+ "eval.tests.test_logger_cli.test_help_documents_debug_trace_side_effect[-h]",
599
+ "eval.tests.test_logger_cli.test_help_goes_to_stdout_not_stderr",
600
+ "eval.tests.test_logger_cli.test_unknown_flag_is_rejected",
601
+ "eval.tests.test_logger_cli.test_verbosity_flag_spelling_variants[args0]",
602
+ "eval.tests.test_logger_cli.test_verbosity_flag_spelling_variants[args1]",
603
+ "eval.tests.test_logger_cli.test_verbosity_flag_spelling_variants[args2]",
604
+ "eval.tests.test_logger_cli.test_verbosity_flag_spelling_variants[args3]",
605
+ "eval.tests.test_logger_cli.test_verbosity_flag_spelling_variants[args4]",
606
+ "eval.tests.test_logger_errors.test_cmd_flag_path_surfaces_same_user_error",
607
+ "eval.tests.test_logger_errors.test_plain_no_args_is_interactive_failure_exit",
608
+ "eval.tests.test_logger_errors.test_token_error_leaves_trace_file_empty",
609
+ "eval.tests.test_logger_errors.test_token_retrieval_error_emits_errorlvl_lines[DEBUG]",
610
+ "eval.tests.test_logger_errors.test_token_retrieval_error_emits_errorlvl_lines[ERROR]",
611
+ "eval.tests.test_logger_errors.test_token_retrieval_error_emits_errorlvl_lines[INFO]",
612
+ "eval.tests.test_logger_errors.test_token_retrieval_error_emits_errorlvl_lines[WARN]",
613
+ "eval.tests.test_logger_errors.test_token_retrieval_error_emits_errorlvl_lines[debug]",
614
+ "eval.tests.test_logger_errors.test_token_retrieval_error_emits_errorlvl_lines[warn]",
615
+ "eval.tests.test_logger_errors.test_user_error_emitted_on_client_init_failure",
616
+ "eval.tests.test_logger_errors.test_user_error_present_at_every_verbosity[DEBUG]",
617
+ "eval.tests.test_logger_errors.test_user_error_present_at_every_verbosity[ERROR]",
618
+ "eval.tests.test_logger_errors.test_user_error_present_at_every_verbosity[INFO]",
619
+ "eval.tests.test_logger_errors.test_user_error_present_at_every_verbosity[WARN]",
620
+ "eval.tests.test_logger_errors.test_user_error_present_at_every_verbosity[debug]",
621
+ "eval.tests.test_logger_trace_open_failure.test_debug_trace_open_failure_aborts_before_client_init",
622
+ "eval.tests.test_logger_trace_open_failure.test_debug_trace_open_failure_distinct_from_client_init_failure",
623
+ "eval.tests.test_logger_trace_open_failure.test_trace_open_failure_works_for_case_insensitive_debug",
624
+ "eval.tests.test_logger_trace_open_failure.test_trace_open_is_gated_to_debug_level[ERROR]",
625
+ "eval.tests.test_logger_trace_open_failure.test_trace_open_is_gated_to_debug_level[INFO]",
626
+ "eval.tests.test_logger_trace_open_failure.test_trace_open_is_gated_to_debug_level[WARN]",
627
+ "eval.tests.test_logger_verbosity.test_debug_creates_and_appends_trace_log",
628
+ "eval.tests.test_logger_verbosity.test_default_verbosity_is_info",
629
+ "eval.tests.test_logger_verbosity.test_info_verbosity_leaves_no_trace_and_no_debug_output",
630
+ "eval.tests.test_logger_verbosity.test_invalid_verbosity_is_rejected_before_logging[ debug]",
631
+ "eval.tests.test_logger_verbosity.test_invalid_verbosity_is_rejected_before_logging[42]",
632
+ "eval.tests.test_logger_verbosity.test_invalid_verbosity_is_rejected_before_logging[BANANA]",
633
+ "eval.tests.test_logger_verbosity.test_invalid_verbosity_is_rejected_before_logging[DEBUG ]",
634
+ "eval.tests.test_logger_verbosity.test_invalid_verbosity_is_rejected_before_logging[]",
635
+ "eval.tests.test_logger_verbosity.test_invalid_verbosity_is_rejected_before_logging[not-a-level]",
636
+ "eval.tests.test_logger_verbosity.test_invalid_verbosity_is_rejected_before_logging[trace]",
637
+ "eval.tests.test_logger_verbosity.test_long_and_short_verbosity_flag_equivalence[--log-level]",
638
+ "eval.tests.test_logger_verbosity.test_long_and_short_verbosity_flag_equivalence[-v]",
639
+ "eval.tests.test_logger_verbosity.test_valid_verbosity_activates_expected_loggers[DEBUG]",
640
+ "eval.tests.test_logger_verbosity.test_valid_verbosity_activates_expected_loggers[ERROR]",
641
+ "eval.tests.test_logger_verbosity.test_valid_verbosity_activates_expected_loggers[INFO]",
642
+ "eval.tests.test_logger_verbosity.test_valid_verbosity_activates_expected_loggers[WARN]",
643
+ "eval.tests.test_logger_verbosity.test_verbosity_is_case_insensitive[Debug-True]",
644
+ "eval.tests.test_logger_verbosity.test_verbosity_is_case_insensitive[InFo-False]",
645
+ "eval.tests.test_logger_verbosity.test_verbosity_is_case_insensitive[deBUG-True]",
646
+ "eval.tests.test_logger_verbosity.test_verbosity_is_case_insensitive[debug-True]",
647
+ "eval.tests.test_logger_verbosity.test_verbosity_is_case_insensitive[error-False]",
648
+ "eval.tests.test_logger_verbosity.test_verbosity_is_case_insensitive[info-False]",
649
+ "eval.tests.test_logger_verbosity.test_verbosity_is_case_insensitive[warn-False]"
650
+ ]
651
+ },
652
+ "generated_upstream": {
653
+ "ignore_reason": "",
654
+ "ignored": false,
655
+ "ignored_tests": [],
656
+ "tests": [
657
+ "eval.tests.test_cli_errors.test_invalid_verbosity_level[BOGUS]",
658
+ "eval.tests.test_cli_errors.test_invalid_verbosity_level[NOTEXIST]",
659
+ "eval.tests.test_cli_errors.test_login_with_false_token_fails[ls /KV1/src/a]",
660
+ "eval.tests.test_cli_errors.test_login_with_false_token_fails[ls /KV2/src/a]",
661
+ "eval.tests.test_cli_errors.test_unknown_command",
662
+ "eval.tests.test_cli_errors.test_unknown_standalone_flag",
663
+ "eval.tests.test_commands_add.test_add_dry_run_no_write[KV1]",
664
+ "eval.tests.test_commands_add.test_add_dry_run_no_write[KV2]",
665
+ "eval.tests.test_commands_add.test_add_existing_key_fails[KV1]",
666
+ "eval.tests.test_commands_add.test_add_existing_key_fails[KV2]",
667
+ "eval.tests.test_commands_add.test_add_new_key[KV1]",
668
+ "eval.tests.test_commands_add.test_add_new_key[KV2]",
669
+ "eval.tests.test_commands_add.test_add_overwrite_with_force[KV1]",
670
+ "eval.tests.test_commands_add.test_add_overwrite_with_force[KV2]",
671
+ "eval.tests.test_commands_add.test_add_to_nonexistent_path_fails[KV1]",
672
+ "eval.tests.test_commands_add.test_add_to_nonexistent_path_fails[KV2]",
673
+ "eval.tests.test_commands_append.test_append_default_merge_keeps_destination[KV1]",
674
+ "eval.tests.test_commands_append.test_append_default_merge_keeps_destination[KV2]",
675
+ "eval.tests.test_commands_append.test_append_force_overwrites_conflicting_keys[KV1]",
676
+ "eval.tests.test_commands_append.test_append_force_overwrites_conflicting_keys[KV2]",
677
+ "eval.tests.test_commands_append.test_append_nonexistent_source_fails[KV1]",
678
+ "eval.tests.test_commands_append.test_append_nonexistent_source_fails[KV2]",
679
+ "eval.tests.test_commands_append.test_append_rename_suffixes_conflicting_keys[KV1]",
680
+ "eval.tests.test_commands_append.test_append_rename_suffixes_conflicting_keys[KV2]",
681
+ "eval.tests.test_commands_append.test_append_skip_keeps_conflicting_keys[KV1]",
682
+ "eval.tests.test_commands_append.test_append_skip_keeps_conflicting_keys[KV2]",
683
+ "eval.tests.test_commands_append.test_append_to_nonexistent_destination[KV1]",
684
+ "eval.tests.test_commands_append.test_append_to_nonexistent_destination[KV2]",
685
+ "eval.tests.test_commands_cat.test_cat_ambiguous_directory[KV1]",
686
+ "eval.tests.test_commands_cat.test_cat_ambiguous_directory[KV2]",
687
+ "eval.tests.test_commands_cat.test_cat_ambiguous_file[KV1]",
688
+ "eval.tests.test_commands_cat.test_cat_ambiguous_file[KV2]",
689
+ "eval.tests.test_commands_cat.test_cat_directory[KV1]",
690
+ "eval.tests.test_commands_cat.test_cat_directory[KV2]",
691
+ "eval.tests.test_commands_cat.test_cat_file[KV1]",
692
+ "eval.tests.test_commands_cat.test_cat_file[KV2]",
693
+ "eval.tests.test_commands_cat.test_cat_nonexistent_path[KV1]",
694
+ "eval.tests.test_commands_cat.test_cat_nonexistent_path[KV2]",
695
+ "eval.tests.test_commands_cat.test_cat_secret_with_data_key[KV1]",
696
+ "eval.tests.test_commands_cat.test_cat_secret_with_data_key[KV2]",
697
+ "eval.tests.test_commands_cd.test_cd_to_first_level_dir[KV1]",
698
+ "eval.tests.test_commands_cd.test_cd_to_first_level_dir[KV2]",
699
+ "eval.tests.test_commands_cd.test_cd_to_leaf_file[KV1]",
700
+ "eval.tests.test_commands_cd.test_cd_to_leaf_file[KV2]",
701
+ "eval.tests.test_commands_cd.test_cd_to_mount_root[KV1]",
702
+ "eval.tests.test_commands_cd.test_cd_to_mount_root[KV2]",
703
+ "eval.tests.test_commands_cd.test_cd_to_nested_dir[KV1]",
704
+ "eval.tests.test_commands_cd.test_cd_to_nested_dir[KV2]",
705
+ "eval.tests.test_commands_cd.test_cd_to_nonexistent_dir[KV1]",
706
+ "eval.tests.test_commands_cd.test_cd_to_nonexistent_dir[KV2]",
707
+ "eval.tests.test_commands_cp.test_cp_ambiguous_directory[KV1]",
708
+ "eval.tests.test_commands_cp.test_cp_ambiguous_directory[KV2]",
709
+ "eval.tests.test_commands_cp.test_cp_ambiguous_file[KV1]",
710
+ "eval.tests.test_commands_cp.test_cp_ambiguous_file[KV2]",
711
+ "eval.tests.test_commands_cp.test_cp_directory_without_r_fails[KV1]",
712
+ "eval.tests.test_commands_cp.test_cp_directory_without_r_fails[KV2]",
713
+ "eval.tests.test_commands_cp.test_cp_nonexistent_source[KV1]",
714
+ "eval.tests.test_commands_cp.test_cp_nonexistent_source[KV2]",
715
+ "eval.tests.test_commands_cp.test_cp_recursive_directory_no_trailing[KV1]",
716
+ "eval.tests.test_commands_cp.test_cp_recursive_directory_no_trailing[KV2]",
717
+ "eval.tests.test_commands_cp.test_cp_recursive_directory_trailing_slashes[KV1]",
718
+ "eval.tests.test_commands_cp.test_cp_recursive_directory_trailing_slashes[KV2]",
719
+ "eval.tests.test_commands_cp.test_cp_single_file[KV1]",
720
+ "eval.tests.test_commands_cp.test_cp_single_file[KV2]",
721
+ "eval.tests.test_commands_cp.test_cp_single_file_with_data_key[KV1]",
722
+ "eval.tests.test_commands_cp.test_cp_single_file_with_data_key[KV2]",
723
+ "eval.tests.test_commands_cp_extra.test_cp_recursive_ambiguous_dir_parent[KV1]",
724
+ "eval.tests.test_commands_cp_extra.test_cp_recursive_ambiguous_dir_parent[KV2]",
725
+ "eval.tests.test_commands_cp_extra.test_cp_recursive_dest_trailing_slash[KV1]",
726
+ "eval.tests.test_commands_cp_extra.test_cp_recursive_dest_trailing_slash[KV2]",
727
+ "eval.tests.test_commands_cp_extra.test_cp_recursive_src_trailing_slash[KV1]",
728
+ "eval.tests.test_commands_cp_extra.test_cp_recursive_src_trailing_slash[KV2]",
729
+ "eval.tests.test_commands_grep.test_grep_apostrophe_value[KV1]",
730
+ "eval.tests.test_commands_grep.test_grep_apostrophe_value[KV2]",
731
+ "eval.tests.test_commands_grep.test_grep_in_pwd[KV1]",
732
+ "eval.tests.test_commands_grep.test_grep_in_pwd[KV2]",
733
+ "eval.tests.test_commands_grep.test_grep_keys_only_scope[KV1]",
734
+ "eval.tests.test_commands_grep.test_grep_keys_only_scope[KV2]",
735
+ "eval.tests.test_commands_grep.test_grep_long_value_regexp[KV1]",
736
+ "eval.tests.test_commands_grep.test_grep_long_value_regexp[KV2]",
737
+ "eval.tests.test_commands_grep.test_grep_nonexistent_path[KV1]",
738
+ "eval.tests.test_commands_grep.test_grep_nonexistent_path[KV2]",
739
+ "eval.tests.test_commands_grep.test_grep_quoted_value[KV1]",
740
+ "eval.tests.test_commands_grep.test_grep_quoted_value[KV2]",
741
+ "eval.tests.test_commands_grep.test_grep_regexp_pattern[KV1]",
742
+ "eval.tests.test_commands_grep.test_grep_regexp_pattern[KV2]",
743
+ "eval.tests.test_commands_grep.test_grep_shallow_limits_to_leaf[KV1]",
744
+ "eval.tests.test_commands_grep.test_grep_shallow_limits_to_leaf[KV2]",
745
+ "eval.tests.test_commands_grep.test_grep_spaced_value[KV1]",
746
+ "eval.tests.test_commands_grep.test_grep_spaced_value[KV2]",
747
+ "eval.tests.test_commands_grep.test_grep_term_across_directory[KV1]",
748
+ "eval.tests.test_commands_grep.test_grep_term_across_directory[KV2]",
749
+ "eval.tests.test_commands_grep.test_grep_unknown_flag_rejected[KV1]",
750
+ "eval.tests.test_commands_grep.test_grep_unknown_flag_rejected[KV2]",
751
+ "eval.tests.test_commands_grep.test_grep_values_only_scope[KV1]",
752
+ "eval.tests.test_commands_grep.test_grep_values_only_scope[KV2]",
753
+ "eval.tests.test_commands_grep_extra.test_grep_ambiguous_directory[KV1]",
754
+ "eval.tests.test_commands_grep_extra.test_grep_ambiguous_directory[KV2]",
755
+ "eval.tests.test_commands_grep_extra.test_grep_ambiguous_file[KV1]",
756
+ "eval.tests.test_commands_grep_extra.test_grep_ambiguous_file[KV2]",
757
+ "eval.tests.test_commands_grep_extra.test_grep_escaped_spaces[KV1]",
758
+ "eval.tests.test_commands_grep_extra.test_grep_escaped_spaces[KV2]",
759
+ "eval.tests.test_commands_grep_extra.test_grep_invalid_regexp[KV1]",
760
+ "eval.tests.test_commands_grep_extra.test_grep_invalid_regexp[KV2]",
761
+ "eval.tests.test_commands_grep_extra.test_grep_term_on_mount[KV1]",
762
+ "eval.tests.test_commands_grep_extra.test_grep_term_on_mount[KV2]",
763
+ "eval.tests.test_commands_ls.test_ls_ambiguous_file_node_fails[KV1]",
764
+ "eval.tests.test_commands_ls.test_ls_ambiguous_file_node_fails[KV2]",
765
+ "eval.tests.test_commands_ls.test_ls_directory_children[KV1]",
766
+ "eval.tests.test_commands_ls.test_ls_directory_children[KV2]",
767
+ "eval.tests.test_commands_ls.test_ls_leaf_file_fails[KV1]",
768
+ "eval.tests.test_commands_ls.test_ls_leaf_file_fails[KV2]",
769
+ "eval.tests.test_commands_ls.test_ls_nonexistent_path[KV1]",
770
+ "eval.tests.test_commands_ls.test_ls_nonexistent_path[KV2]",
771
+ "eval.tests.test_commands_ls.test_ls_root_lists_backends",
772
+ "eval.tests.test_commands_mv.test_mv_ambiguous_directory[KV1]",
773
+ "eval.tests.test_commands_mv.test_mv_ambiguous_directory[KV2]",
774
+ "eval.tests.test_commands_mv.test_mv_ambiguous_file[KV1]",
775
+ "eval.tests.test_commands_mv.test_mv_ambiguous_file[KV2]",
776
+ "eval.tests.test_commands_mv.test_mv_directory_recursive[KV1]",
777
+ "eval.tests.test_commands_mv.test_mv_directory_recursive[KV2]",
778
+ "eval.tests.test_commands_mv.test_mv_nonexistent_source[KV1]",
779
+ "eval.tests.test_commands_mv.test_mv_nonexistent_source[KV2]",
780
+ "eval.tests.test_commands_mv.test_mv_single_file[KV1]",
781
+ "eval.tests.test_commands_mv.test_mv_single_file[KV2]",
782
+ "eval.tests.test_commands_params.test_append_multiple_whitespaces[KV1]",
783
+ "eval.tests.test_commands_params.test_append_multiple_whitespaces[KV2]",
784
+ "eval.tests.test_commands_params.test_cp_multiple_whitespaces[KV1]",
785
+ "eval.tests.test_commands_params.test_cp_multiple_whitespaces[KV2]",
786
+ "eval.tests.test_commands_params.test_cp_tabs_and_trailing_whitespace[KV1]",
787
+ "eval.tests.test_commands_params.test_cp_tabs_and_trailing_whitespace[KV2]",
788
+ "eval.tests.test_commands_replace.test_replace_dry_run_no_write[KV1]",
789
+ "eval.tests.test_commands_replace.test_replace_dry_run_no_write[KV2]",
790
+ "eval.tests.test_commands_replace.test_replace_empty_value[KV1]",
791
+ "eval.tests.test_commands_replace.test_replace_empty_value[KV2]",
792
+ "eval.tests.test_commands_replace.test_replace_key_selector[KV1]",
793
+ "eval.tests.test_commands_replace.test_replace_key_selector[KV2]",
794
+ "eval.tests.test_commands_replace.test_replace_keys_scope[KV1]",
795
+ "eval.tests.test_commands_replace.test_replace_keys_scope[KV2]",
796
+ "eval.tests.test_commands_replace.test_replace_no_match[KV1]",
797
+ "eval.tests.test_commands_replace.test_replace_no_match[KV2]",
798
+ "eval.tests.test_commands_replace.test_replace_regexp_key[KV1]",
799
+ "eval.tests.test_commands_replace.test_replace_regexp_key[KV2]",
800
+ "eval.tests.test_commands_replace.test_replace_renames_key[KV1]",
801
+ "eval.tests.test_commands_replace.test_replace_renames_key[KV2]",
802
+ "eval.tests.test_commands_replace.test_replace_value_substitution[KV1]",
803
+ "eval.tests.test_commands_replace.test_replace_value_substitution[KV2]",
804
+ "eval.tests.test_commands_replace.test_replace_values_scope[KV1]",
805
+ "eval.tests.test_commands_replace.test_replace_values_scope[KV2]",
806
+ "eval.tests.test_commands_replace_extra.test_replace_bad_key_selector_regexp[KV1]",
807
+ "eval.tests.test_commands_replace_extra.test_replace_bad_key_selector_regexp[KV2]",
808
+ "eval.tests.test_commands_replace_extra.test_replace_diff_output[KV1]",
809
+ "eval.tests.test_commands_replace_extra.test_replace_diff_output[KV2]",
810
+ "eval.tests.test_commands_replace_extra.test_replace_in_pwd[KV1]",
811
+ "eval.tests.test_commands_replace_extra.test_replace_in_pwd[KV2]",
812
+ "eval.tests.test_commands_replace_extra.test_replace_invalid_output_format[KV1]",
813
+ "eval.tests.test_commands_replace_extra.test_replace_invalid_output_format[KV2]",
814
+ "eval.tests.test_commands_rm.test_rm_ambiguous_directory[KV1]",
815
+ "eval.tests.test_commands_rm.test_rm_ambiguous_directory[KV2]",
816
+ "eval.tests.test_commands_rm.test_rm_ambiguous_file[KV1]",
817
+ "eval.tests.test_commands_rm.test_rm_ambiguous_file[KV2]",
818
+ "eval.tests.test_commands_rm.test_rm_directory_without_r_fails[KV1]",
819
+ "eval.tests.test_commands_rm.test_rm_directory_without_r_fails[KV2]",
820
+ "eval.tests.test_commands_rm.test_rm_nonexistent_path[KV1]",
821
+ "eval.tests.test_commands_rm.test_rm_nonexistent_path[KV2]",
822
+ "eval.tests.test_commands_rm.test_rm_recursive_directory[KV1]",
823
+ "eval.tests.test_commands_rm.test_rm_recursive_directory[KV2]",
824
+ "eval.tests.test_commands_rm.test_rm_single_file[KV1]",
825
+ "eval.tests.test_commands_rm.test_rm_single_file[KV2]",
826
+ "eval.tests.test_logging_verbosity.test_debug_verbosity_creates_trace_and_lists[ls /KV1/src/a]",
827
+ "eval.tests.test_logging_verbosity.test_debug_verbosity_creates_trace_and_lists[ls /KV2/src/a]",
828
+ "eval.tests.test_logging_verbosity.test_verbosity_without_debug_creates_no_trace[default]",
829
+ "eval.tests.test_logging_verbosity.test_verbosity_without_debug_creates_no_trace[error]",
830
+ "eval.tests.test_logging_verbosity.test_verbosity_without_debug_creates_no_trace[warn]",
831
+ "eval.tests.test_migrations.test_append_across_mounts_default_merge[KV1-KV2]",
832
+ "eval.tests.test_migrations.test_append_across_mounts_default_merge[KV2-KV1]",
833
+ "eval.tests.test_migrations.test_cp_directory_across_mounts[KV1-KV2]",
834
+ "eval.tests.test_migrations.test_cp_directory_across_mounts[KV2-KV1]",
835
+ "eval.tests.test_migrations.test_cp_file_across_mounts[KV1-KV2]",
836
+ "eval.tests.test_migrations.test_cp_file_across_mounts[KV2-KV1]",
837
+ "eval.tests.test_migrations.test_mv_directory_across_mounts[KV1-KV2]",
838
+ "eval.tests.test_migrations.test_mv_directory_across_mounts[KV2-KV1]",
839
+ "eval.tests.test_migrations.test_mv_file_across_mounts[KV1-KV2]",
840
+ "eval.tests.test_migrations.test_mv_file_across_mounts[KV2-KV1]",
841
+ "eval.tests.test_mount_config.test_custom_mounts_both_kind_set",
842
+ "eval.tests.test_mount_config.test_custom_mounts_from_env",
843
+ "eval.tests.test_mount_config.test_empty_mount_env_falls_back_to_default",
844
+ "eval.tests.test_mount_config.test_mount_names_with_leading_slash",
845
+ "eval.tests.test_mount_config.test_multiple_mounts_single_env_var",
846
+ "eval.tests.test_mount_config.test_read_inside_custom_mount",
847
+ "eval.tests.test_regression_add.test_add_preserves_existing_keys[KV1]",
848
+ "eval.tests.test_regression_add.test_add_preserves_existing_keys[KV2]",
849
+ "eval.tests.test_regression_add.test_add_relative_path_resolved_against_cwd[KV1]",
850
+ "eval.tests.test_regression_add.test_add_relative_path_resolved_against_cwd[KV2]"
851
+ ]
852
+ }
853
+ },
854
+ "commit": "982f86620278d10ecebfc6a96ab474fb104f9ab1",
855
+ "data_source": "synthetic_programgym",
856
+ "difficulty": "medium",
857
+ "difficulty_score": 3.292180728023525,
858
+ "eval_clean_hashes": [
859
+ "b7c3ce0c9964957fd6d4a31e19f61b931d285d05d028a0919daa36fbf10b2218"
860
+ ],
861
+ "input_record": {
862
+ "commit": "982f86620278d10ecebfc6a96ab474fb104f9ab1",
863
+ "commits": 95,
864
+ "contributors": 7,
865
+ "difficulty": "medium",
866
+ "difficulty_code_lines": 3629,
867
+ "difficulty_has_tests": true,
868
+ "difficulty_product_code_lines": 3629,
869
+ "difficulty_runtime_deps": 53,
870
+ "difficulty_score": 3.292180728023525,
871
+ "difficulty_test_code_lines": 0,
872
+ "full_name": "fishi0x01/vsh",
873
+ "github_stars": 290,
874
+ "input_joern_zip": "go_joern/fishi0x01__vsh.zip",
875
+ "joern_status": true,
876
+ "joern_time": 68.99905945197679,
877
+ "language": "go",
878
+ "pb_match": [
879
+ {
880
+ "pb_fullname": "segmentio/chamber",
881
+ "rank": 126,
882
+ "similarity": 0.5761265158653259
883
+ },
884
+ {
885
+ "pb_fullname": "sclevine/yj",
886
+ "rank": 101,
887
+ "similarity": 0.5375697016716003
888
+ },
889
+ {
890
+ "pb_fullname": "antonmedv/walk",
891
+ "rank": 446,
892
+ "similarity": 0.49444887042045593
893
+ },
894
+ {
895
+ "pb_fullname": "peco/peco",
896
+ "rank": 729,
897
+ "similarity": 0.4695243835449219
898
+ },
899
+ {
900
+ "pb_fullname": "mikefarah/yq",
901
+ "rank": 281,
902
+ "similarity": 0.5498385429382324
903
+ },
904
+ {
905
+ "pb_fullname": "rs/curlie",
906
+ "rank": 228,
907
+ "similarity": 0.529870867729187
908
+ },
909
+ {
910
+ "pb_fullname": "guumaster/hostctl",
911
+ "rank": 187,
912
+ "similarity": 0.49025392532348633
913
+ },
914
+ {
915
+ "pb_fullname": "direnv/direnv",
916
+ "rank": 71,
917
+ "similarity": 0.4830777943134308
918
+ },
919
+ {
920
+ "pb_fullname": "jesseduffield/lazygit",
921
+ "rank": 421,
922
+ "similarity": 0.5304023623466492
923
+ },
924
+ {
925
+ "pb_fullname": "FiloSottile/age",
926
+ "rank": 121,
927
+ "similarity": 0.5342386364936829
928
+ },
929
+ {
930
+ "pb_fullname": "multiprocessio/dsq",
931
+ "rank": 759,
932
+ "similarity": 0.4652949571609497
933
+ },
934
+ {
935
+ "pb_fullname": "skeema/skeema",
936
+ "rank": 521,
937
+ "similarity": 0.5059163570404053
938
+ },
939
+ {
940
+ "pb_fullname": "astaxie/bat",
941
+ "rank": 591,
942
+ "similarity": 0.5326641798019409
943
+ },
944
+ {
945
+ "pb_fullname": "noborus/trdsql",
946
+ "rank": 436,
947
+ "similarity": 0.5103892087936401
948
+ },
949
+ {
950
+ "pb_fullname": "TheZoraiz/ascii-image-converter",
951
+ "rank": 920,
952
+ "similarity": 0.4645112454891205
953
+ },
954
+ {
955
+ "pb_fullname": "cheat/cheat",
956
+ "rank": 195,
957
+ "similarity": 0.5523862838745117
958
+ },
959
+ {
960
+ "pb_fullname": "ariga/atlas",
961
+ "rank": 414,
962
+ "similarity": 0.524580180644989
963
+ },
964
+ {
965
+ "pb_fullname": "antonmedv/fx",
966
+ "rank": 466,
967
+ "similarity": 0.49441254138946533
968
+ },
969
+ {
970
+ "pb_fullname": "dundee/gdu",
971
+ "rank": 753,
972
+ "similarity": 0.48584505915641785
973
+ },
974
+ {
975
+ "pb_fullname": "tomnomnom/gron",
976
+ "rank": 336,
977
+ "similarity": 0.5076073408126831
978
+ },
979
+ {
980
+ "pb_fullname": "junegunn/fzf",
981
+ "rank": 624,
982
+ "similarity": 0.4678759276866913
983
+ }
984
+ ],
985
+ "repo_age": 6.92,
986
+ "repo_path": "go/fishi0x01__vsh",
987
+ "source": "commit:982f86620278d10ecebfc6a96ab474fb104f9ab1",
988
+ "status": "done",
989
+ "url": "https://github.com/fishi0x01/vsh"
990
+ },
991
+ "instance_id": "fishi0x01__vsh.982f866",
992
+ "language": "go",
993
+ "module_iterations": [
994
+ {
995
+ "actual_iterations": 11,
996
+ "branch_name": "generated_module_01",
997
+ "iteration_limit": 15,
998
+ "module_index": 1,
999
+ "module_kind": "source",
1000
+ "termination_reason": "early_stopping"
1001
+ },
1002
+ {
1003
+ "actual_iterations": 4,
1004
+ "branch_name": "generated_module_02",
1005
+ "iteration_limit": 15,
1006
+ "module_index": 2,
1007
+ "module_kind": "source",
1008
+ "termination_reason": "module_coverage_threshold_reached"
1009
+ },
1010
+ {
1011
+ "actual_iterations": 4,
1012
+ "branch_name": "generated_module_03",
1013
+ "iteration_limit": 15,
1014
+ "module_index": 3,
1015
+ "module_kind": "source",
1016
+ "termination_reason": "module_coverage_threshold_reached"
1017
+ },
1018
+ {
1019
+ "actual_iterations": 3,
1020
+ "branch_name": "generated_module_04",
1021
+ "iteration_limit": 15,
1022
+ "module_index": 4,
1023
+ "module_kind": "source",
1024
+ "termination_reason": "module_coverage_threshold_reached"
1025
+ },
1026
+ {
1027
+ "actual_iterations": 15,
1028
+ "branch_name": "generated_module_05",
1029
+ "iteration_limit": 15,
1030
+ "module_index": 5,
1031
+ "module_kind": "source",
1032
+ "termination_reason": "max_iterations"
1033
+ },
1034
+ {
1035
+ "actual_iterations": 2,
1036
+ "branch_name": "generated_module_06",
1037
+ "iteration_limit": 15,
1038
+ "module_index": 6,
1039
+ "module_kind": "source",
1040
+ "termination_reason": "module_coverage_threshold_reached"
1041
+ },
1042
+ {
1043
+ "actual_iterations": 13,
1044
+ "branch_name": "generated_upstream",
1045
+ "iteration_limit": 15,
1046
+ "module_index": 7,
1047
+ "module_kind": "tests",
1048
+ "termination_reason": "early_stopping"
1049
+ }
1050
+ ],
1051
+ "repository": "fishi0x01/vsh"
1052
+ }
fishi0x01--vsh.982f866/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
fishi0x01--vsh.982f866/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3f5ff7f8da5137cc0899c37ac3f01267e3c38901acfbc64f7de0624724a5a22
3
+ size 1079441
fph--bastet.1b3e692/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
fph--bastet.1b3e692/tests/Dockerfile CHANGED
@@ -65,3 +65,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
65
  COPY programgym_task.json /tests/programgym_task.json
66
  COPY blobs/ /tests/blobs/
67
  RUN chmod +x /tests/test.sh
 
 
65
  COPY programgym_task.json /tests/programgym_task.json
66
  COPY blobs/ /tests/blobs/
67
  RUN chmod +x /tests/test.sh
68
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
fragglet--yoctolisp.5856862/environment/Dockerfile CHANGED
@@ -52,3 +52,4 @@ RUN mkdir -p /home/agent \
52
  && chmod 111 /workspace/executable
53
  ENV HOME=/home/agent
54
  WORKDIR /workspace
 
 
52
  && chmod 111 /workspace/executable
53
  ENV HOME=/home/agent
54
  WORKDIR /workspace
55
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
fragglet--yoctolisp.5856862/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
66
  COPY programgym_task.json /tests/programgym_task.json
67
  COPY blobs/ /tests/blobs/
68
  RUN chmod +x /tests/test.sh
 
 
66
  COPY programgym_task.json /tests/programgym_task.json
67
  COPY blobs/ /tests/blobs/
68
  RUN chmod +x /tests/test.sh
69
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
fraillt--bitsery.9bebfd4/environment/Dockerfile ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV PAGER=cat
57
+ ENV MANPAGER=cat
58
+ ENV LESS=-R
59
+ ENV TQDM_DISABLE=1
60
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
61
+ ARG CMAKE_VERSION=3.31.10
62
+ RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
63
+ COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
64
+ ARG GCC_VERSION=13.3.0
65
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
66
+ # programgym_quota_aware_nproc=1
67
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
68
+ WORKDIR /workspace
69
+ ADD workspace.tar.gz /workspace/
70
+ COPY executable /workspace/executable
71
+ COPY download.sh /workspace/download.sh
72
+ RUN chmod 755 /workspace/download.sh
73
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
74
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
75
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
76
+ && rm -f /workspace/download.sh \
77
+ && rm -f /tmp/harbor_prepare_download_env.sh
78
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
79
+ RUN chmod 111 /workspace/executable
80
+ WORKDIR /workspace
81
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
82
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
83
+ # submission handed to the separate verifier. Keep the reference executable
84
+ # execute-only; the oracle temporarily restores owner read permission.
85
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
86
+ RUN mkdir -p /home/agent \
87
+ && chown -R agent:agent /home/agent /workspace \
88
+ && chown agent:agent /workspace/executable \
89
+ && chmod 111 /workspace/executable
90
+ ENV HOME=/home/agent
91
+ WORKDIR /workspace
92
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
fraillt--bitsery.9bebfd4/environment/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
fraillt--bitsery.9bebfd4/environment/download.sh ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh — ProgramGym networked dependency stage for fraillt/bitsery.
3
+ #
4
+ # Bitsery is a header-only C++ serialization library. The selected demo target
5
+ # (bitsery.example.basic_usage) compiles against the repository's own headers
6
+ # and the C++ standard library only. The base image already provides the full
7
+ # toolchain (GCC 13 and CMake 3.31), so there are no external packages, source
8
+ # archives, or prefetched caches required for the offline build.
9
+ #
10
+ # This file is standalone by design: it reads no repository file. It performs
11
+ # no compile, link, package, install, or test step. It only validates that the
12
+ # shell is present and exports an environment variable that build.sh relies on.
13
+ #
14
+ # It is sourced via `source /source_ro/download.sh`, so it must be valid in
15
+ # shell source mode: variables persist in the current shell, it uses no
16
+ # positional arguments, and it never calls `exit` in normal control flow.
17
+
18
+ # Guard against being executed directly vs. sourced. Under the normal source
19
+ # harness this branch never triggers. Sourcing is the only supported mode.
20
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
21
+ :
22
+ else
23
+ echo "error: download.sh must be sourced, not executed directly" >&2
24
+ exit 1
25
+ fi
26
+
27
+ # No network downloads are required for this header-only project. The toolchain
28
+ # (compiler and CMake) that build.sh needs is guaranteed present in the base
29
+ # image, so there is nothing to install or prefetch here.
30
+
31
+ # Export an environment marker consumed by build.sh. Its value is set only when
32
+ # the image guarantees the GCC/CMake toolchain that the project needs, which is
33
+ # always the case for this header-only build.
34
+ export PROGRAMGYM_TOOLCHAIN_READY="yes"
35
+
36
+ echo "download.sh: bitsery has no remote dependencies; toolchain is provided by the base image."
fraillt--bitsery.9bebfd4/environment/executable ADDED
Binary file (17.9 kB). View file
 
fraillt--bitsery.9bebfd4/environment/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
fraillt--bitsery.9bebfd4/environment/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
fraillt--bitsery.9bebfd4/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
fraillt--bitsery.9bebfd4/environment/programgym-gcc13.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
3
+ size 146620404
fraillt--bitsery.9bebfd4/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddb9f9056c23c3542d2d96811237ce35e7c97624c8973952db2d1a68d618dcbc
3
+ size 3270
fraillt--bitsery.9bebfd4/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
fraillt--bitsery.9bebfd4/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
fraillt--bitsery.9bebfd4/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/fraillt--bitsery.9bebfd4"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for fraillt/bitsery"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "fraillt__bitsery.9bebfd4"
32
+ repository = "fraillt/bitsery"
33
+ commit = "9bebfd4911b8ef52c5a67754ccb87a8fd5223414"
34
+ language = "cpp"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.973035440686933
37
+ test_branches = 5
38
+ test_count = 512
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"
fraillt--bitsery.9bebfd4/tests/Dockerfile ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV PAGER=cat
57
+ ENV MANPAGER=cat
58
+ ENV LESS=-R
59
+ ENV TQDM_DISABLE=1
60
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
61
+ ARG CMAKE_VERSION=3.31.10
62
+ RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
63
+ COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
64
+ ARG GCC_VERSION=13.3.0
65
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
66
+ # programgym_quota_aware_nproc=1
67
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
68
+ WORKDIR /workspace
69
+ ADD workspace.tar.gz /workspace/
70
+ COPY executable /workspace/executable
71
+ COPY download.sh /workspace/download.sh
72
+ RUN chmod 755 /workspace/download.sh
73
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
74
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
75
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
76
+ && rm -f /workspace/download.sh \
77
+ && rm -f /tmp/harbor_prepare_download_env.sh
78
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
79
+ RUN chmod 111 /workspace/executable
80
+ WORKDIR /workspace
81
+ # Harbor uses tests/ as the separate verifier build context. Start with the
82
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
83
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
84
+ && mkdir -p /workspace /tests
85
+
86
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
87
+ # Installing a newer pytest alone leaves that apt package importable and creates
88
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
89
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
90
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
91
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
92
+ RUN set -eu; \
93
+ pip_break_system_packages=""; \
94
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
95
+ pip_break_system_packages="--break-system-packages"; \
96
+ fi; \
97
+ python3 -m pip install ${pip_break_system_packages} \
98
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
99
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
100
+
101
+ COPY test.sh /tests/test.sh
102
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
103
+ COPY programgym_task.json /tests/programgym_task.json
104
+ COPY blobs/ /tests/blobs/
105
+ RUN chmod +x /tests/test.sh
106
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
fraillt--bitsery.9bebfd4/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:f7e61042a50f80c44276c5b9fdfac0766af675997fc95951a1893cb263cc6f19
3
+ size 20117
fraillt--bitsery.9bebfd4/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:2dcfdb3ee6c2ec1f2318035899c028d1918dda348bc55e98ec336244d27ddba4
3
+ size 20921
fraillt--bitsery.9bebfd4/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:247e6bf0902296665b9031514aaf3f405066403925f5ee510f85f14e5ce1c20a
3
+ size 8005
fraillt--bitsery.9bebfd4/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:d770dcc99607badd151d956fbe5b945209e0ca36c5c9c310b509d0163484f4ac
3
+ size 13947
fraillt--bitsery.9bebfd4/tests/blobs/tests/generated_upstream.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19486031fbd74cddcee3ee5596f1285d516fa573adefa0eb97982a2e0d0fee6d
3
+ size 2173
fraillt--bitsery.9bebfd4/tests/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
fraillt--bitsery.9bebfd4/tests/download.sh ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh — ProgramGym networked dependency stage for fraillt/bitsery.
3
+ #
4
+ # Bitsery is a header-only C++ serialization library. The selected demo target
5
+ # (bitsery.example.basic_usage) compiles against the repository's own headers
6
+ # and the C++ standard library only. The base image already provides the full
7
+ # toolchain (GCC 13 and CMake 3.31), so there are no external packages, source
8
+ # archives, or prefetched caches required for the offline build.
9
+ #
10
+ # This file is standalone by design: it reads no repository file. It performs
11
+ # no compile, link, package, install, or test step. It only validates that the
12
+ # shell is present and exports an environment variable that build.sh relies on.
13
+ #
14
+ # It is sourced via `source /source_ro/download.sh`, so it must be valid in
15
+ # shell source mode: variables persist in the current shell, it uses no
16
+ # positional arguments, and it never calls `exit` in normal control flow.
17
+
18
+ # Guard against being executed directly vs. sourced. Under the normal source
19
+ # harness this branch never triggers. Sourcing is the only supported mode.
20
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
21
+ :
22
+ else
23
+ echo "error: download.sh must be sourced, not executed directly" >&2
24
+ exit 1
25
+ fi
26
+
27
+ # No network downloads are required for this header-only project. The toolchain
28
+ # (compiler and CMake) that build.sh needs is guaranteed present in the base
29
+ # image, so there is nothing to install or prefetch here.
30
+
31
+ # Export an environment marker consumed by build.sh. Its value is set only when
32
+ # the image guarantees the GCC/CMake toolchain that the project needs, which is
33
+ # always the case for this header-only build.
34
+ export PROGRAMGYM_TOOLCHAIN_READY="yes"
35
+
36
+ echo "download.sh: bitsery has no remote dependencies; toolchain is provided by the base image."
fraillt--bitsery.9bebfd4/tests/executable ADDED
Binary file (17.9 kB). View file
 
fraillt--bitsery.9bebfd4/tests/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
fraillt--bitsery.9bebfd4/tests/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
fraillt--bitsery.9bebfd4/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
fraillt--bitsery.9bebfd4/tests/programgym-gcc13.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
3
+ size 146620404
fraillt--bitsery.9bebfd4/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()
fraillt--bitsery.9bebfd4/tests/programgym_task.json ADDED
@@ -0,0 +1,767 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [
7
+ {
8
+ "name": "eval.tests.test_executable_path.TestExecutableResolution.test_resolved_path_is_absolute",
9
+ "reasons": [
10
+ {
11
+ "id": "golden_docstring",
12
+ "message": "pytest test docstring mentions golden data that is not used in the body",
13
+ "path": "eval/tests/test_executable_path.py",
14
+ "repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
15
+ "severity": "error",
16
+ "stage": "static_lint"
17
+ },
18
+ {
19
+ "id": "golden_no_equality",
20
+ "message": "pytest test references golden data without equality comparison",
21
+ "path": "eval/tests/test_executable_path.py",
22
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
23
+ "severity": "error",
24
+ "stage": "static_lint"
25
+ }
26
+ ]
27
+ }
28
+ ],
29
+ "tests": [
30
+ "eval.tests.test_arguments.TestArgVsStdinNoImplicitInputFiles.test_argument_not_passed_into_serializer",
31
+ "eval.tests.test_arguments.TestArgVsStdinNoImplicitInputFiles.test_argument_not_treated_as_input_file",
32
+ "eval.tests.test_arguments.TestMalformedArgumentRobustness.test_binary_and_control_args_tolerated[\\x1b[31m]",
33
+ "eval.tests.test_arguments.TestMalformedArgumentRobustness.test_binary_and_control_args_tolerated[\\x80\\x81\\x82]",
34
+ "eval.tests.test_arguments.TestMalformedArgumentRobustness.test_binary_and_control_args_tolerated[\\xff\\xfe]",
35
+ "eval.tests.test_arguments.TestMalformedArgumentRobustness.test_binary_and_control_args_tolerated[`$(*& )]",
36
+ "eval.tests.test_arguments.TestMalformedArgumentRobustness.test_binary_and_control_args_tolerated[quote'\"backslash\\]",
37
+ "eval.tests.test_arguments.TestMalformedArgumentRobustness.test_empty_string_arg_tolerated",
38
+ "eval.tests.test_arguments.TestMalformedArgumentRobustness.test_space_alone_arg_tolerated",
39
+ "eval.tests.test_arguments.TestManyArgumentRobustness.test_many_mixed_flag_style_args",
40
+ "eval.tests.test_arguments.TestManyArgumentRobustness.test_many_positional_args_ignored[16]",
41
+ "eval.tests.test_arguments.TestManyArgumentRobustness.test_many_positional_args_ignored[256]",
42
+ "eval.tests.test_arguments.TestManyArgumentRobustness.test_many_positional_args_ignored[3]",
43
+ "eval.tests.test_arguments.TestManyArgumentRobustness.test_many_positional_args_ignored[64]",
44
+ "eval.tests.test_arguments.TestNoCliArgParsing.test_ignores_help_long_equals",
45
+ "eval.tests.test_arguments.TestNoCliArgParsing.test_ignores_help_long_flag",
46
+ "eval.tests.test_arguments.TestNoCliArgParsing.test_ignores_help_short_flag",
47
+ "eval.tests.test_arguments.TestNoCliArgParsing.test_ignores_uppercase_version_flag",
48
+ "eval.tests.test_arguments.TestNoCliArgParsing.test_ignores_version_flag",
49
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[--output]",
50
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[-o]",
51
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[-x]",
52
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[/dev/null]",
53
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[0]",
54
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[anything]",
55
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[config.json]",
56
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[data]",
57
+ "eval.tests.test_arguments.TestSingleArgumentRobustness.test_single_argument_is_ignored_cleanly[input.bin]",
58
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[GIT_PAGER-cat]",
59
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[HOME-/nonexistent-home]",
60
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[LANG-C]",
61
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[LANG-en_US.UTF-8]",
62
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[LC_ALL-C.UTF-8]",
63
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[TERM-xterm-256color]",
64
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[TMPDIR-/tmp]",
65
+ "eval.tests.test_environment.TestBenignEnvironment.test_environment_variables_do_not_change_roundtrip[TZ-UTC0]",
66
+ "eval.tests.test_environment.TestBenignEnvironment.test_locale_variable_individually_innocuous[LANG]",
67
+ "eval.tests.test_environment.TestBenignEnvironment.test_locale_variable_individually_innocuous[LC_ALL]",
68
+ "eval.tests.test_environment.TestBenignEnvironment.test_locale_variable_individually_innocuous[LC_NUMERIC]",
69
+ "eval.tests.test_environment.TestCoverageOutletCoexistence.test_absent_gcov_prefix_does_not_change_exit",
70
+ "eval.tests.test_environment.TestCoverageOutletCoexistence.test_runs_with_pipeline_gcov_env[/tmp/programgym-gcov/sub]",
71
+ "eval.tests.test_environment.TestCoverageOutletCoexistence.test_runs_with_pipeline_gcov_env[/tmp/programgym-gcov]",
72
+ "eval.tests.test_environment.TestCoverageOutletCoexistence.test_runs_with_pipeline_gcov_env[/var/tmp/pb-gcov-data]",
73
+ "eval.tests.test_environment.TestDeterminism.test_identical_exit_across_many_runs",
74
+ "eval.tests.test_environment.TestDeterminism.test_identical_stream_content_across_runs[0]",
75
+ "eval.tests.test_environment.TestDeterminism.test_identical_stream_content_across_runs[1]",
76
+ "eval.tests.test_environment.TestDeterminism.test_identical_stream_content_across_runs[2]",
77
+ "eval.tests.test_environment.TestDeterminism.test_no_timing_dependent_output",
78
+ "eval.tests.test_environment.TestDeterminism.test_two_runs_byte_identical_output",
79
+ "eval.tests.test_environment.TestReducedEnvironmentCleanRoundTrip.test_minimal_env_keeps_roundtrip_success",
80
+ "eval.tests.test_environment.TestReducedEnvironmentCleanRoundTrip.test_minimal_env_stdout_still_silent",
81
+ "eval.tests.test_executable_path.TestExecutableResolution.test_branch_root_executable_is_symlink_to_golden",
82
+ "eval.tests.test_executable_path.TestExecutableResolution.test_env_var_effective_at_runtime",
83
+ "eval.tests.test_executable_path.TestExecutableResolution.test_env_var_path_points_to_real_file",
84
+ "eval.tests.test_executable_path.TestExecutableResolution.test_falls_back_to_branch_root_when_env_unset",
85
+ "eval.tests.test_executable_path.TestExecutableResolution.test_helper_returns_same_as_env_when_set",
86
+ "eval.tests.test_executable_path.TestExecutableResolution.test_resolved_path_is_absolute",
87
+ "eval.tests.test_executable_path.TestRunnerIntegration.test_branch_executable_is_executable_elf",
88
+ "eval.tests.test_executable_path.TestRunnerIntegration.test_branch_layout_contract",
89
+ "eval.tests.test_executable_path.TestRunnerIntegration.test_run_shell_script_is_present",
90
+ "eval.tests.test_output_contract.TestCombinedStreamContract.test_combined_stdout_stderr_empty",
91
+ "eval.tests.test_output_contract.TestCombinedStreamContract.test_no_single_newline_byte_anywhere",
92
+ "eval.tests.test_output_contract.TestCombinedStreamContract.test_output_when_piped_through_grep_is_empty",
93
+ "eval.tests.test_output_contract.TestCombinedStreamContract.test_silence_holds_when_accumulated[1]",
94
+ "eval.tests.test_output_contract.TestCombinedStreamContract.test_silence_holds_when_accumulated[2]",
95
+ "eval.tests.test_output_contract.TestCombinedStreamContract.test_silence_holds_when_accumulated[5]",
96
+ "eval.tests.test_output_contract.TestStderrContract.test_no_error_related_keywords",
97
+ "eval.tests.test_output_contract.TestStderrContract.test_stderr_empty_across_runs[1]",
98
+ "eval.tests.test_output_contract.TestStderrContract.test_stderr_empty_across_runs[2]",
99
+ "eval.tests.test_output_contract.TestStderrContract.test_stderr_empty_across_runs[3]",
100
+ "eval.tests.test_output_contract.TestStderrContract.test_stderr_is_exactly_empty",
101
+ "eval.tests.test_output_contract.TestStdoutContract.test_stdout_contains_no_text_json",
102
+ "eval.tests.test_output_contract.TestStdoutContract.test_stdout_empty_across_runs[1]",
103
+ "eval.tests.test_output_contract.TestStdoutContract.test_stdout_empty_across_runs[2]",
104
+ "eval.tests.test_output_contract.TestStdoutContract.test_stdout_empty_across_runs[3]",
105
+ "eval.tests.test_output_contract.TestStdoutContract.test_stdout_is_exactly_empty",
106
+ "eval.tests.test_process.TestExitPathIsNormalReturn.test_exit_not_via_signal",
107
+ "eval.tests.test_process.TestExitPathIsNormalReturn.test_repeated_self_consistent",
108
+ "eval.tests.test_process.TestNoChildProcessLeak.test_clean_termination_exit_code_zero",
109
+ "eval.tests.test_process.TestNoChildProcessLeak.test_surviving_pid_count_stable[1]",
110
+ "eval.tests.test_process.TestNoChildProcessLeak.test_surviving_pid_count_stable[5]",
111
+ "eval.tests.test_process.TestPromptCompletion.test_completes_well_under_deadline",
112
+ "eval.tests.test_process.TestPromptCompletion.test_never_hangs_given_bounded_wait[10]",
113
+ "eval.tests.test_process.TestPromptCompletion.test_never_hangs_given_bounded_wait[5]",
114
+ "eval.tests.test_robustness_limits.TestBoundedFileDescriptors.test_combined_vm_and_fd_limits",
115
+ "eval.tests.test_robustness_limits.TestBoundedFileDescriptors.test_roundtrip_with_low_fd_limit[128]",
116
+ "eval.tests.test_robustness_limits.TestBoundedFileDescriptors.test_roundtrip_with_low_fd_limit[32]",
117
+ "eval.tests.test_robustness_limits.TestBoundedFileDescriptors.test_roundtrip_with_low_fd_limit[64]",
118
+ "eval.tests.test_robustness_limits.TestBoundedVirtualMemory.test_combined_vm_and_core_limit",
119
+ "eval.tests.test_robustness_limits.TestBoundedVirtualMemory.test_roundtrip_within_tight_vm_budget[128]",
120
+ "eval.tests.test_robustness_limits.TestBoundedVirtualMemory.test_roundtrip_within_tight_vm_budget[32]",
121
+ "eval.tests.test_robustness_limits.TestBoundedVirtualMemory.test_roundtrip_within_tight_vm_budget[64]",
122
+ "eval.tests.test_robustness_limits.TestConstrainedStillDeterministic.test_repeated_under_vm_limit_all_exit_zero[1]",
123
+ "eval.tests.test_robustness_limits.TestConstrainedStillDeterministic.test_repeated_under_vm_limit_all_exit_zero[2]",
124
+ "eval.tests.test_robustness_limits.TestConstrainedStillDeterministic.test_repeated_under_vm_limit_all_exit_zero[3]",
125
+ "eval.tests.test_robustness_limits.TestConstrainedStillDeterministic.test_umask_does_not_leak_file_creation",
126
+ "eval.tests.test_robustness_limits.TestOutputDestinationTolerance.test_both_streams_closed",
127
+ "eval.tests.test_robustness_limits.TestOutputDestinationTolerance.test_stdout_devfull_stderr_devnull_both_captured",
128
+ "eval.tests.test_robustness_limits.TestOutputDestinationTolerance.test_stdout_is_full_device_not_written",
129
+ "eval.tests.test_roundtrip.TestConcurrentRoundTrips.test_concurrent_invocations_all_exit_zero[2]",
130
+ "eval.tests.test_roundtrip.TestConcurrentRoundTrips.test_concurrent_invocations_all_exit_zero[4]",
131
+ "eval.tests.test_roundtrip.TestConcurrentRoundTrips.test_concurrent_invocations_all_exit_zero[8]",
132
+ "eval.tests.test_roundtrip.TestConcurrentRoundTrips.test_concurrent_stdout_still_silent",
133
+ "eval.tests.test_roundtrip.TestDemographicContinuity.test_works_from_arbitrary_cwd",
134
+ "eval.tests.test_roundtrip.TestDemographicContinuity.test_works_with_minimal_deterministic_stdin",
135
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_anomalous_exit_family_rejected",
136
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_lossless_roundtrip_exit_zero",
137
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_repeated_roundtrip_deterministic_exit[1]",
138
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_repeated_roundtrip_deterministic_exit[2]",
139
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_repeated_roundtrip_deterministic_exit[3]",
140
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_repeated_roundtrip_deterministic_exit[4]",
141
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_repeated_roundtrip_deterministic_exit[5]",
142
+ "eval.tests.test_roundtrip.TestRoundTripExitContract.test_roundtrip_no_argument_hang",
143
+ "eval.tests.test_side_effects.TestBinaryRequiresNoAuxFiles.test_executable_is_single_fileself_contained",
144
+ "eval.tests.test_side_effects.TestNoFileSideEffects.test_cwd_unchanged_in_empty_dir",
145
+ "eval.tests.test_side_effects.TestNoFileSideEffects.test_no_accumulating_files_across_runs[1]",
146
+ "eval.tests.test_side_effects.TestNoFileSideEffects.test_no_accumulating_files_across_runs[2]",
147
+ "eval.tests.test_side_effects.TestNoFileSideEffects.test_no_accumulating_files_across_runs[3]",
148
+ "eval.tests.test_side_effects.TestNoFileSideEffects.test_no_new_files_in_cwd",
149
+ "eval.tests.test_side_effects.TestNoFileSideEffects.test_preexisting_files_unchanged_content",
150
+ "eval.tests.test_side_effects.TestNoWorkingDirectoryDependency.test_no_tempfiles_left_in_branch_root",
151
+ "eval.tests.test_side_effects.TestNoWorkingDirectoryDependency.test_roundtrip_not_tied_to_cwd_files",
152
+ "eval.tests.test_side_effects.TestSourceTreeUntouched.test_does_not_write_into_source",
153
+ "eval.tests.test_stdin.TestEmptyStdin.test_empty_stdin_ok",
154
+ "eval.tests.test_stdin.TestEmptyStdin.test_stdin_closed_via_devnull",
155
+ "eval.tests.test_stdin.TestEmptyStdin.test_stdin_handle_closed_early",
156
+ "eval.tests.test_stdin.TestRedirectedInput.test_does_not_read_pipe_to_completion",
157
+ "eval.tests.test_stdin.TestRedirectedInput.test_stdin_redirected_from_file",
158
+ "eval.tests.test_stdin.TestSuppliedStdin.test_arbitrary_stdin_bytes_ignored[1]",
159
+ "eval.tests.test_stdin.TestSuppliedStdin.test_arbitrary_stdin_bytes_ignored[4096]",
160
+ "eval.tests.test_stdin.TestSuppliedStdin.test_arbitrary_stdin_bytes_ignored[64]",
161
+ "eval.tests.test_stdin.TestSuppliedStdin.test_arbitrary_stdin_bytes_ignored[65536]",
162
+ "eval.tests.test_stdin.TestSuppliedStdin.test_json_stdin_ignored",
163
+ "eval.tests.test_stdin.TestSuppliedStdin.test_serialized_like_stdin_ignored",
164
+ "eval.tests.test_stdin.TestSuppliedStdin.test_text_stdin_ignored"
165
+ ]
166
+ },
167
+ "generated_module_02": {
168
+ "ignore_reason": "",
169
+ "ignored": false,
170
+ "ignored_tests": [
171
+ {
172
+ "name": "eval.tests.test_descriptor_and_limits.test_deterministic_under_combined_stress",
173
+ "reasons": [
174
+ {
175
+ "detail": "ValueError: stdin and input arguments may not both be used.",
176
+ "id": "gold_fail",
177
+ "message": "test failed against the reference executable",
178
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
179
+ "severity": "error",
180
+ "stage": "gold_execution"
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ "name": "eval.tests.test_descriptor_and_limits.test_large_argv_near_argmax[argv128KB]",
186
+ "reasons": [
187
+ {
188
+ "detail": "OSError: [Errno 7] Argument list too long: '/workspace/golden-2/executable'",
189
+ "id": "gold_fail",
190
+ "message": "test failed against the reference executable",
191
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
192
+ "severity": "error",
193
+ "stage": "gold_execution"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "name": "eval.tests.test_descriptor_and_limits.test_redirected_output_matches_empty_golden",
199
+ "reasons": [
200
+ {
201
+ "id": "golden_written_in_test",
202
+ "message": "pytest test writes to its own golden file",
203
+ "path": "eval/tests/test_descriptor_and_limits.py",
204
+ "repair_hint": "Read committed golden data instead of writing expected output inside the test.",
205
+ "severity": "error",
206
+ "stage": "static_lint"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "name": "eval.tests.test_descriptor_and_limits.test_stdout_broken_pipe_no_sigpipe",
212
+ "reasons": [
213
+ {
214
+ "id": "sole_returncode",
215
+ "message": "pytest test only asserts returncode == 0",
216
+ "path": "eval/tests/test_descriptor_and_limits.py",
217
+ "repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
218
+ "severity": "error",
219
+ "stage": "static_lint"
220
+ },
221
+ {
222
+ "id": "all_assertions_weak",
223
+ "message": "pytest test uses only weak assertions",
224
+ "path": "eval/tests/test_descriptor_and_limits.py",
225
+ "repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
226
+ "severity": "error",
227
+ "stage": "static_lint"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "name": "eval.tests.test_stream_descriptor_signal_edges.test_fifo_stdin_with_unparseable_locale_converged",
233
+ "reasons": [
234
+ {
235
+ "detail": "OSError: [Errno 6] No such device or address: '/tmp/pytest-of-root/pytest-1/popen-gw0/test_fifo_stdin_with_unparseab0/in'",
236
+ "id": "gold_fail",
237
+ "message": "test failed against the reference executable",
238
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
239
+ "severity": "error",
240
+ "stage": "gold_execution"
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "name": "eval.tests.test_stream_descriptor_signal_edges.test_merged_stdout_stderr_single_file_empty",
246
+ "reasons": [
247
+ {
248
+ "id": "golden_written_in_test",
249
+ "message": "pytest test writes to its own golden file",
250
+ "path": "eval/tests/test_stream_descriptor_signal_edges.py",
251
+ "repair_hint": "Read committed golden data instead of writing expected output inside the test.",
252
+ "severity": "error",
253
+ "stage": "static_lint"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "name": "eval.tests.test_stream_descriptor_signal_edges.test_pty_stdio_emits_nothing",
259
+ "reasons": [
260
+ {
261
+ "id": "try_except_swallow",
262
+ "message": "pytest test swallows exceptions in an except handler",
263
+ "path": "eval/tests/test_stream_descriptor_signal_edges.py",
264
+ "repair_hint": "Do not swallow exceptions; let pytest fail or assert the exact expected exception.",
265
+ "severity": "error",
266
+ "stage": "static_lint"
267
+ },
268
+ {
269
+ "id": "test_time_dependency",
270
+ "message": "test appears to depend on wall-clock time",
271
+ "path": "eval/tests/test_stream_descriptor_signal_edges.py",
272
+ "repair_hint": "Avoid wall-clock assertions or freeze/normalize time-dependent output.",
273
+ "severity": "error",
274
+ "stage": "static_lint"
275
+ }
276
+ ]
277
+ }
278
+ ],
279
+ "tests": [
280
+ "eval.tests.test_adapter_contract.test_roundtrip_does_not_abort_under_stdio_detached",
281
+ "eval.tests.test_adapter_contract.test_roundtrip_never_aborts_on_adapter_check[four_args]",
282
+ "eval.tests.test_adapter_contract.test_roundtrip_never_aborts_on_adapter_check[help]",
283
+ "eval.tests.test_adapter_contract.test_roundtrip_never_aborts_on_adapter_check[one_arg]",
284
+ "eval.tests.test_adapter_contract.test_roundtrip_never_aborts_on_adapter_check[plain]",
285
+ "eval.tests.test_adapter_contract.test_stable_success_is_not_an_empty_stub",
286
+ "eval.tests.test_argv.test_argv_count_variants[argc0]",
287
+ "eval.tests.test_argv.test_argv_count_variants[argc100]",
288
+ "eval.tests.test_argv.test_argv_count_variants[argc10]",
289
+ "eval.tests.test_argv.test_argv_count_variants[argc1]",
290
+ "eval.tests.test_argv.test_argv_count_variants[argc3]",
291
+ "eval.tests.test_argv.test_argv_count_variants[argc60]",
292
+ "eval.tests.test_argv.test_argv_shape_tolerance[embedded_space]",
293
+ "eval.tests.test_argv.test_argv_shape_tolerance[empty_string]",
294
+ "eval.tests.test_argv.test_argv_shape_tolerance[file_like]",
295
+ "eval.tests.test_argv.test_argv_shape_tolerance[help]",
296
+ "eval.tests.test_argv.test_argv_shape_tolerance[help_equals]",
297
+ "eval.tests.test_argv.test_argv_shape_tolerance[help_short]",
298
+ "eval.tests.test_argv.test_argv_shape_tolerance[help_version_long]",
299
+ "eval.tests.test_argv.test_argv_shape_tolerance[leading_deep_arg]",
300
+ "eval.tests.test_argv.test_argv_shape_tolerance[long_equals]",
301
+ "eval.tests.test_argv.test_argv_shape_tolerance[long_unknown]",
302
+ "eval.tests.test_argv.test_argv_shape_tolerance[many_positional]",
303
+ "eval.tests.test_argv.test_argv_shape_tolerance[multi_word]",
304
+ "eval.tests.test_argv.test_argv_shape_tolerance[negative_number]",
305
+ "eval.tests.test_argv.test_argv_shape_tolerance[none]",
306
+ "eval.tests.test_argv.test_argv_shape_tolerance[quoted_word]",
307
+ "eval.tests.test_argv.test_argv_shape_tolerance[single_dash_letter]",
308
+ "eval.tests.test_argv.test_argv_shape_tolerance[single_word]",
309
+ "eval.tests.test_argv.test_argv_shape_tolerance[special_chars]",
310
+ "eval.tests.test_argv.test_argv_shape_tolerance[two_dash_letters]",
311
+ "eval.tests.test_argv.test_argv_shape_tolerance[unicode]",
312
+ "eval.tests.test_argv.test_argv_shape_tolerance[url_like]",
313
+ "eval.tests.test_argv.test_argv_shape_tolerance[version]",
314
+ "eval.tests.test_argv.test_argv_shape_tolerance[version_short]",
315
+ "eval.tests.test_argv.test_argv_starting_with_double_dash_does_not_stop_program",
316
+ "eval.tests.test_descriptor_and_limits.test_closed_stdin_fd",
317
+ "eval.tests.test_descriptor_and_limits.test_combined_as_and_nofile[as16_nf64]",
318
+ "eval.tests.test_descriptor_and_limits.test_combined_as_and_nofile[as64_nf256]",
319
+ "eval.tests.test_descriptor_and_limits.test_concurrent_per_cwd_isolation",
320
+ "eval.tests.test_descriptor_and_limits.test_concurrent_shared_cwd_residue_free",
321
+ "eval.tests.test_descriptor_and_limits.test_deterministic_under_combined_stress",
322
+ "eval.tests.test_descriptor_and_limits.test_large_argv_near_argmax[argv128KB]",
323
+ "eval.tests.test_descriptor_and_limits.test_large_argv_near_argmax[argv64KB]",
324
+ "eval.tests.test_descriptor_and_limits.test_minimal_environment_keeps_stdout_empty",
325
+ "eval.tests.test_descriptor_and_limits.test_redirected_output_matches_empty_golden",
326
+ "eval.tests.test_descriptor_and_limits.test_rlimit_core_disabled[core0]",
327
+ "eval.tests.test_descriptor_and_limits.test_rlimit_data_bounds[data64MB]",
328
+ "eval.tests.test_descriptor_and_limits.test_rlimit_data_bounds[data8MB]",
329
+ "eval.tests.test_descriptor_and_limits.test_rlimit_memlock_bound",
330
+ "eval.tests.test_descriptor_and_limits.test_rlimit_msgqueue_bound",
331
+ "eval.tests.test_descriptor_and_limits.test_rlimit_nofile_low_boundary[nofile4]",
332
+ "eval.tests.test_descriptor_and_limits.test_rlimit_nofile_low_boundary[nofile8]",
333
+ "eval.tests.test_descriptor_and_limits.test_rlimit_nproc_bound",
334
+ "eval.tests.test_descriptor_and_limits.test_rlimit_sigpending_bound",
335
+ "eval.tests.test_descriptor_and_limits.test_rlimit_stack_bounds[stack4MB]",
336
+ "eval.tests.test_descriptor_and_limits.test_rlimit_stack_bounds[stack8MB]",
337
+ "eval.tests.test_descriptor_and_limits.test_stdout_broken_pipe_no_sigpipe",
338
+ "eval.tests.test_descriptor_and_limits.test_stdout_file_sink_contract[both]",
339
+ "eval.tests.test_descriptor_and_limits.test_stdout_file_sink_contract[stderr_only]",
340
+ "eval.tests.test_descriptor_and_limits.test_stdout_file_sink_contract[stdout_only]",
341
+ "eval.tests.test_descriptor_and_limits.test_stdout_sink_type_independent",
342
+ "eval.tests.test_environment.test_roundtrip_ignores_foreign_env_vars[glibc]",
343
+ "eval.tests.test_environment.test_roundtrip_ignores_foreign_env_vars[ldpath]",
344
+ "eval.tests.test_environment.test_roundtrip_ignores_foreign_env_vars[malloc]",
345
+ "eval.tests.test_environment.test_roundtrip_ignores_foreign_env_vars[numba]",
346
+ "eval.tests.test_environment.test_roundtrip_ignores_foreign_env_vars[omp]",
347
+ "eval.tests.test_environment.test_roundtrip_ignores_foreign_env_vars[threads]",
348
+ "eval.tests.test_environment.test_roundtrip_ignores_toolchain_vars[ci]",
349
+ "eval.tests.test_environment.test_roundtrip_ignores_toolchain_vars[colorterm]",
350
+ "eval.tests.test_environment.test_roundtrip_ignores_toolchain_vars[mplconfigdir]",
351
+ "eval.tests.test_environment.test_roundtrip_ignores_toolchain_vars[no_color]",
352
+ "eval.tests.test_environment.test_roundtrip_ignores_toolchain_vars[pythonunbuffered]",
353
+ "eval.tests.test_environment.test_roundtrip_ignores_toolchain_vars[term]",
354
+ "eval.tests.test_environment.test_roundtrip_locale_independent[lang_c]",
355
+ "eval.tests.test_environment.test_roundtrip_locale_independent[lang_c_utf8]",
356
+ "eval.tests.test_environment.test_roundtrip_locale_independent[lang_en_us]",
357
+ "eval.tests.test_environment.test_roundtrip_locale_independent[lang_posix]",
358
+ "eval.tests.test_environment.test_roundtrip_locale_independent[lang_unset]",
359
+ "eval.tests.test_environment.test_roundtrip_timezone_independent[ny]",
360
+ "eval.tests.test_environment.test_roundtrip_timezone_independent[tokyo]",
361
+ "eval.tests.test_environment.test_roundtrip_timezone_independent[unset]",
362
+ "eval.tests.test_environment.test_roundtrip_timezone_independent[utc]",
363
+ "eval.tests.test_environment.test_roundtrip_under_minimal_environment_keeps_stdout_empty",
364
+ "eval.tests.test_error_path_reachability.test_argv_cannot_drive_reader_error[argv_bufferlike]",
365
+ "eval.tests.test_error_path_reachability.test_argv_cannot_drive_reader_error[argv_hex_sizes]",
366
+ "eval.tests.test_error_path_reachability.test_argv_cannot_drive_reader_error[argv_many_numbers]",
367
+ "eval.tests.test_error_path_reachability.test_env_config_toggles_do_not_exist[check_errors_off]",
368
+ "eval.tests.test_error_path_reachability.test_env_config_toggles_do_not_exist[disable_checks]",
369
+ "eval.tests.test_error_path_reachability.test_env_config_toggles_do_not_exist[input_length_0]",
370
+ "eval.tests.test_error_path_reachability.test_env_config_toggles_do_not_exist[max_elements_0]",
371
+ "eval.tests.test_error_path_reachability.test_roundtrip_low_open_fd_limit[fd16]",
372
+ "eval.tests.test_error_path_reachability.test_roundtrip_low_open_fd_limit[fd64]",
373
+ "eval.tests.test_error_path_reachability.test_roundtrip_survives_converged_hostile_input[stdin_bin_argv_help_env_lang]",
374
+ "eval.tests.test_error_path_reachability.test_roundtrip_survives_converged_hostile_input[stdin_trunc_argv_size_env_gcov]",
375
+ "eval.tests.test_error_path_reachability.test_roundtrip_survives_converged_hostile_input[stdin_zeros_argv_none_env_empty]",
376
+ "eval.tests.test_error_path_reachability.test_roundtrip_umask_invariant[umask000]",
377
+ "eval.tests.test_error_path_reachability.test_roundtrip_umask_invariant[umask022]",
378
+ "eval.tests.test_error_path_reachability.test_roundtrip_umask_invariant[umask077]",
379
+ "eval.tests.test_error_path_reachability.test_roundtrip_under_readonly_cwd",
380
+ "eval.tests.test_error_path_reachability.test_stdin_payload_cannot_drive_reader_error[frag_container_length_exceed]",
381
+ "eval.tests.test_error_path_reachability.test_stdin_payload_cannot_drive_reader_error[frag_ff_fill]",
382
+ "eval.tests.test_error_path_reachability.test_stdin_payload_cannot_drive_reader_error[frag_mixed_struct]",
383
+ "eval.tests.test_error_path_reachability.test_stdin_payload_cannot_drive_reader_error[frag_truncated_u32]",
384
+ "eval.tests.test_input.test_large_stdin_pipe_does_not_deadlock",
385
+ "eval.tests.test_input.test_stdin_can_be_devnull",
386
+ "eval.tests.test_input.test_stdin_content_is_ignored[empty]",
387
+ "eval.tests.test_input.test_stdin_content_is_ignored[ff_run]",
388
+ "eval.tests.test_input.test_stdin_content_is_ignored[many_lines]",
389
+ "eval.tests.test_input.test_stdin_content_is_ignored[mixed_binary]",
390
+ "eval.tests.test_input.test_stdin_content_is_ignored[newline]",
391
+ "eval.tests.test_input.test_stdin_content_is_ignored[nul_run]",
392
+ "eval.tests.test_input.test_stdin_content_is_ignored[single_nul]",
393
+ "eval.tests.test_input.test_stdin_content_is_ignored[text_block]",
394
+ "eval.tests.test_input.test_stdin_content_is_ignored[text_line]",
395
+ "eval.tests.test_input.test_stdin_content_is_ignored[uuid_line]",
396
+ "eval.tests.test_input.test_variable_size_stdin[1kB]",
397
+ "eval.tests.test_input.test_variable_size_stdin[4MB]",
398
+ "eval.tests.test_input.test_variable_size_stdin[64kB]",
399
+ "eval.tests.test_output.test_exit_zero_is_not_plain_early_return",
400
+ "eval.tests.test_output.test_no_output_files_written_to_cwd",
401
+ "eval.tests.test_output.test_output_byte_empty_across_stdin[all_zero]",
402
+ "eval.tests.test_output.test_output_byte_empty_across_stdin[binary]",
403
+ "eval.tests.test_output.test_output_byte_empty_across_stdin[empty]",
404
+ "eval.tests.test_output.test_output_byte_empty_across_stdin[large_text]",
405
+ "eval.tests.test_output.test_output_byte_empty_across_stdin[newline]",
406
+ "eval.tests.test_output.test_output_byte_empty_across_stdin[text]",
407
+ "eval.tests.test_output.test_output_byte_empty_on_capped_pipe",
408
+ "eval.tests.test_output.test_output_byte_empty_with_dev_null_stdin",
409
+ "eval.tests.test_output.test_stdout_is_never_polluted_by_gcov_profiling",
410
+ "eval.tests.test_robustness.test_concurrent_roundtrips_all_clean[n16]",
411
+ "eval.tests.test_robustness.test_concurrent_roundtrips_all_clean[n2]",
412
+ "eval.tests.test_robustness.test_concurrent_roundtrips_all_clean[n8]",
413
+ "eval.tests.test_robustness.test_fd_footprint_is_constant_across_runs",
414
+ "eval.tests.test_robustness.test_launch_from_common_cwds[home]",
415
+ "eval.tests.test_robustness.test_launch_from_common_cwds[root]",
416
+ "eval.tests.test_robustness.test_launch_from_common_cwds[tmp]",
417
+ "eval.tests.test_robustness.test_launch_from_common_cwds[usrlocal]",
418
+ "eval.tests.test_robustness.test_no_files_created_in_cwd",
419
+ "eval.tests.test_robustness.test_repeated_single_process_runs[r10]",
420
+ "eval.tests.test_robustness.test_repeated_single_process_runs[r1]",
421
+ "eval.tests.test_robustness.test_repeated_single_process_runs[r3]",
422
+ "eval.tests.test_robustness.test_roundtrip_within_address_space_limit[16MB]",
423
+ "eval.tests.test_robustness.test_roundtrip_within_address_space_limit[256MB]",
424
+ "eval.tests.test_robustness.test_roundtrip_within_address_space_limit[64MB]",
425
+ "eval.tests.test_robustness.test_roundtrip_within_address_space_limit[8MB]",
426
+ "eval.tests.test_roundtrip.test_roundtrip_env_isolation[lang_c]",
427
+ "eval.tests.test_roundtrip.test_roundtrip_env_isolation[lang_en]",
428
+ "eval.tests.test_roundtrip.test_roundtrip_env_isolation[numeric]",
429
+ "eval.tests.test_roundtrip.test_roundtrip_env_isolation[plain]",
430
+ "eval.tests.test_roundtrip.test_roundtrip_env_isolation[unused_var]",
431
+ "eval.tests.test_roundtrip.test_roundtrip_is_repeatable_and_deterministic",
432
+ "eval.tests.test_roundtrip.test_roundtrip_launched_as_absolute_path",
433
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[dash_arg]",
434
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[double_dash]",
435
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[empty_empty]",
436
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[no_args]",
437
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[numeric]",
438
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[path_like]",
439
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[signed]",
440
+ "eval.tests.test_roundtrip.test_roundtrip_succeeds_across_argv_shapes[single_positional]",
441
+ "eval.tests.test_roundtrip.test_roundtrip_under_parallel_bursts[n1]",
442
+ "eval.tests.test_roundtrip.test_roundtrip_under_parallel_bursts[n25]",
443
+ "eval.tests.test_roundtrip.test_roundtrip_under_parallel_bursts[n2]",
444
+ "eval.tests.test_roundtrip.test_roundtrip_under_parallel_bursts[n5]",
445
+ "eval.tests.test_stream_descriptor_signal_edges.test_deterministic_across_fixed_input_grid",
446
+ "eval.tests.test_stream_descriptor_signal_edges.test_fifo_stdin_idle_no_data_no_eof",
447
+ "eval.tests.test_stream_descriptor_signal_edges.test_fifo_stdin_with_unparseable_locale_converged",
448
+ "eval.tests.test_stream_descriptor_signal_edges.test_fifo_stdout_parent_drains_empty",
449
+ "eval.tests.test_stream_descriptor_signal_edges.test_merged_stdout_stderr_single_file_empty",
450
+ "eval.tests.test_stream_descriptor_signal_edges.test_pty_stdio_emits_nothing",
451
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_lang_empty_lc_all_unset",
452
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_survives_delivered_signal[sigcont]",
453
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_survives_delivered_signal[sigwinch]",
454
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_under_env_var_flood",
455
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_unparseable_locale_ignored[country_missing]",
456
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_unparseable_locale_ignored[empty_value]",
457
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_unparseable_locale_ignored[garbage_fq]",
458
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_unparseable_locale_ignored[legacy_encoding]",
459
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_unparseable_locale_ignored[plain_word]",
460
+ "eval.tests.test_stream_descriptor_signal_edges.test_roundtrip_with_term_signals_ignored"
461
+ ]
462
+ },
463
+ "generated_module_03": {
464
+ "ignore_reason": "",
465
+ "ignored": false,
466
+ "ignored_tests": [],
467
+ "tests": [
468
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args0]",
469
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args10]",
470
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args1]",
471
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args2]",
472
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args3]",
473
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args4]",
474
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args5]",
475
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args6]",
476
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args7]",
477
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args8]",
478
+ "eval.tests.test_argv.test_arbitrary_argv_still_roundtrips[args9]",
479
+ "eval.tests.test_argv.test_argv_count_variants[0]",
480
+ "eval.tests.test_argv.test_argv_count_variants[100]",
481
+ "eval.tests.test_argv.test_argv_count_variants[10]",
482
+ "eval.tests.test_argv.test_argv_count_variants[1]",
483
+ "eval.tests.test_argv.test_argv_does_not_leak_into_stdout",
484
+ "eval.tests.test_argv.test_no_argv_is_default_clean_run",
485
+ "eval.tests.test_argv.test_unusual_argv_shapes_rejected_or_tolerated[weird0]",
486
+ "eval.tests.test_argv.test_unusual_argv_shapes_rejected_or_tolerated[weird1]",
487
+ "eval.tests.test_argv.test_unusual_argv_shapes_rejected_or_tolerated[weird2]",
488
+ "eval.tests.test_argv.test_unusual_argv_shapes_rejected_or_tolerated[weird3]",
489
+ "eval.tests.test_environment.test_roundtrip_home_isolated",
490
+ "eval.tests.test_environment.test_roundtrip_ignores_single_var_change[HOME]",
491
+ "eval.tests.test_environment.test_roundtrip_ignores_single_var_change[LANG]",
492
+ "eval.tests.test_environment.test_roundtrip_ignores_single_var_change[PATH]",
493
+ "eval.tests.test_environment.test_roundtrip_ignores_single_var_change[PWD]",
494
+ "eval.tests.test_environment.test_roundtrip_ignores_single_var_change[TMPDIR]",
495
+ "eval.tests.test_environment.test_roundtrip_locale_independent[C.UTF-8]",
496
+ "eval.tests.test_environment.test_roundtrip_locale_independent[C]",
497
+ "eval.tests.test_environment.test_roundtrip_locale_independent[POSIX]",
498
+ "eval.tests.test_environment.test_roundtrip_locale_independent[en_US.UTF-8]",
499
+ "eval.tests.test_environment.test_roundtrip_under_inherited_misc_env[0]",
500
+ "eval.tests.test_environment.test_roundtrip_under_inherited_misc_env[1]",
501
+ "eval.tests.test_environment.test_roundtrip_with_empty_environ",
502
+ "eval.tests.test_environment.test_roundtrip_with_minimal_env",
503
+ "eval.tests.test_environment.test_roundtrip_with_no_tmpdir",
504
+ "eval.tests.test_output.test_exit_promptly_with_closed_stdin",
505
+ "eval.tests.test_output.test_no_residue_left_in_cwd[1]",
506
+ "eval.tests.test_output.test_no_residue_left_in_cwd[3]",
507
+ "eval.tests.test_output.test_no_residue_left_in_cwd[5]",
508
+ "eval.tests.test_output.test_stderr_contains_no_runtime_error_marker",
509
+ "eval.tests.test_output.test_stdout_empty_at_large_piped_input[1000000]",
510
+ "eval.tests.test_output.test_stdout_empty_at_large_piped_input[1000]",
511
+ "eval.tests.test_output.test_stdout_empty_at_large_piped_input[1]",
512
+ "eval.tests.test_output.test_stdout_is_empty_regardless_of_stdin[\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00]",
513
+ "eval.tests.test_output.test_stdout_is_empty_regardless_of_stdin[]",
514
+ "eval.tests.test_output.test_stdout_is_empty_regardless_of_stdin[hello world\\n]",
515
+ "eval.tests.test_output.test_stdout_is_empty_regardless_of_stdin[x]",
516
+ "eval.tests.test_output.test_stdout_never_contains_debug_spew",
517
+ "eval.tests.test_robustness.test_roundtrip_fifty_consecutive_runs_all_clean[10]",
518
+ "eval.tests.test_robustness.test_roundtrip_fifty_consecutive_runs_all_clean[25]",
519
+ "eval.tests.test_robustness.test_roundtrip_fifty_consecutive_runs_all_clean[50]",
520
+ "eval.tests.test_robustness.test_roundtrip_fifty_consecutive_runs_all_clean[5]",
521
+ "eval.tests.test_robustness.test_roundtrip_independent_of_worker_sandbox",
522
+ "eval.tests.test_robustness.test_roundtrip_is_prompt_and_deterministic_rc[0]",
523
+ "eval.tests.test_robustness.test_roundtrip_is_prompt_and_deterministic_rc[32]",
524
+ "eval.tests.test_robustness.test_roundtrip_is_prompt_and_deterministic_rc[3]",
525
+ "eval.tests.test_robustness.test_roundtrip_stays_well_under_timeout_budget",
526
+ "eval.tests.test_robustness.test_roundtrip_under_parallel_burst[1]",
527
+ "eval.tests.test_robustness.test_roundtrip_under_parallel_burst[2]",
528
+ "eval.tests.test_robustness.test_roundtrip_under_parallel_burst[4]",
529
+ "eval.tests.test_robustness.test_roundtrip_within_limited_address_space[1048576]",
530
+ "eval.tests.test_robustness.test_roundtrip_within_limited_address_space[262144]",
531
+ "eval.tests.test_robustness.test_roundtrip_within_limited_address_space[65536]",
532
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[10]",
533
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[1]",
534
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[2]",
535
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[3]",
536
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[4]",
537
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[5]",
538
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[6]",
539
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[7]",
540
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[8]",
541
+ "eval.tests.test_roundtrip.test_roundtrip_clean_exit_passes[9]",
542
+ "eval.tests.test_roundtrip.test_roundtrip_completes_within_bounded_timeout[10]",
543
+ "eval.tests.test_roundtrip.test_roundtrip_completes_within_bounded_timeout[30]",
544
+ "eval.tests.test_roundtrip.test_roundtrip_completes_within_bounded_timeout[5]",
545
+ "eval.tests.test_roundtrip.test_roundtrip_independent_of_umask[002]",
546
+ "eval.tests.test_roundtrip.test_roundtrip_independent_of_umask[022]",
547
+ "eval.tests.test_roundtrip.test_roundtrip_independent_of_umask[077]",
548
+ "eval.tests.test_roundtrip.test_roundtrip_launched_as_abs_path",
549
+ "eval.tests.test_roundtrip.test_roundtrip_not_killed_by_segv",
550
+ "eval.tests.test_roundtrip.test_roundtrip_not_killed_by_sigabrt",
551
+ "eval.tests.test_roundtrip.test_roundtrip_outputs_nothing_to_stdout",
552
+ "eval.tests.test_roundtrip.test_roundtrip_repeatable_across_consecutive_runs[16]",
553
+ "eval.tests.test_roundtrip.test_roundtrip_repeatable_across_consecutive_runs[2]",
554
+ "eval.tests.test_roundtrip.test_roundtrip_repeatable_across_consecutive_runs[32]",
555
+ "eval.tests.test_roundtrip.test_roundtrip_repeatable_across_consecutive_runs[4]",
556
+ "eval.tests.test_roundtrip.test_roundtrip_repeatable_across_consecutive_runs[8]",
557
+ "eval.tests.test_roundtrip.test_roundtrip_works_from_nonrepo_cwd"
558
+ ]
559
+ },
560
+ "generated_module_04": {
561
+ "ignore_reason": "",
562
+ "ignored": false,
563
+ "ignored_tests": [],
564
+ "tests": [
565
+ "eval.tests.test_executable_closed_stdio_robustness.test_closed_all_three_stdio_is_deterministic_across_runs",
566
+ "eval.tests.test_executable_closed_stdio_robustness.test_closed_stdin_makes_no_progress_dependency_on_reader",
567
+ "eval.tests.test_executable_closed_stdio_robustness.test_closed_stdio_launch_completes_within_bound",
568
+ "eval.tests.test_executable_closed_stdio_robustness.test_exits_clean_with_closed_stdio_descriptor[stderr-closed]",
569
+ "eval.tests.test_executable_closed_stdio_robustness.test_exits_clean_with_closed_stdio_descriptor[stdin-and-stderr-closed]",
570
+ "eval.tests.test_executable_closed_stdio_robustness.test_exits_clean_with_closed_stdio_descriptor[stdin-and-stdout-and-stderr-closed]",
571
+ "eval.tests.test_executable_closed_stdio_robustness.test_exits_clean_with_closed_stdio_descriptor[stdin-and-stdout-closed]",
572
+ "eval.tests.test_executable_closed_stdio_robustness.test_exits_clean_with_closed_stdio_descriptor[stdin-closed]",
573
+ "eval.tests.test_executable_closed_stdio_robustness.test_exits_clean_with_closed_stdio_descriptor[stdout-and-stderr-closed]",
574
+ "eval.tests.test_executable_closed_stdio_robustness.test_exits_clean_with_closed_stdio_descriptor[stdout-closed]",
575
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[16]",
576
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[1]",
577
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[256]",
578
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[2]",
579
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[3]",
580
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[5]",
581
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[64]",
582
+ "eval.tests.test_executable_contract.test_argument_count_variants_stable[8]",
583
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[ ]",
584
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[ ]",
585
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[*]",
586
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--]",
587
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--config path/to/file]",
588
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--format json]",
589
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--help]",
590
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--long=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]",
591
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--long=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]",
592
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--no-such-flag]",
593
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--port 8080]",
594
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[--version]",
595
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[-42]",
596
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[-v -v -v]",
597
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[-x]",
598
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[1.5]",
599
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[42]",
600
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[?]",
601
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[\\xe9\\xe8\\u4e2d\\u6587]",
602
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[a b c]",
603
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[help]",
604
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[serialize]",
605
+ "eval.tests.test_executable_contract.test_argv_variants_render_same_empty_contract[tab\\tsep newline\\nsep]",
606
+ "eval.tests.test_executable_contract.test_binary_content_is_not_plaintext_source",
607
+ "eval.tests.test_executable_contract.test_binary_is_an_elf_program_not_plain_bytes",
608
+ "eval.tests.test_executable_contract.test_combined_input_classes_preserve_contract[32flags+piped+tz]",
609
+ "eval.tests.test_executable_contract.test_combined_input_classes_preserve_contract[flag+bin+term]",
610
+ "eval.tests.test_executable_contract.test_combined_input_classes_preserve_contract[help+data+C]",
611
+ "eval.tests.test_executable_contract.test_combined_input_classes_preserve_contract[json+json+transparent]",
612
+ "eval.tests.test_executable_contract.test_combined_input_classes_preserve_contract[run+empty+debug]",
613
+ "eval.tests.test_executable_contract.test_default_invocation_terminates_promptly",
614
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[BITSERY_FORCE_ERROR]",
615
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[COLUMNS]",
616
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[DEBUG]",
617
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[HOME]",
618
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[LANG]",
619
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[LC_ALL]",
620
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[PATH]",
621
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[TERM]",
622
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[TZ]",
623
+ "eval.tests.test_executable_contract.test_environment_mutations_do_not_change_contract[VERBOSE]",
624
+ "eval.tests.test_executable_contract.test_executable_is_a_real_binary",
625
+ "eval.tests.test_executable_contract.test_large_stdin_is_bounded_and_ignored",
626
+ "eval.tests.test_executable_contract.test_many_positional_arguments_ignored",
627
+ "eval.tests.test_executable_contract.test_minimal_environment_still_runs",
628
+ "eval.tests.test_executable_contract.test_no_args_exits_clean_with_empty_io",
629
+ "eval.tests.test_executable_contract.test_output_is_byte_deterministic_across_runs",
630
+ "eval.tests.test_executable_contract.test_repeated_launches_are_identical_and_clean",
631
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=0]",
632
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=16_0]",
633
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=16_1]",
634
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=18]",
635
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=1]",
636
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=22]",
637
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=2]",
638
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=3]",
639
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=4096]",
640
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=4_0]",
641
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=4_1]",
642
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=64]",
643
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=65536]",
644
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=6]",
645
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=8]",
646
+ "eval.tests.test_executable_contract.test_stdin_payloads_ignored[len=9]",
647
+ "eval.tests.test_executable_process_isolation.test_concurrent_batch_completes_within_bound",
648
+ "eval.tests.test_executable_process_isolation.test_concurrent_launches_are_independent[2-procs]",
649
+ "eval.tests.test_executable_process_isolation.test_concurrent_launches_are_independent[4-procs]",
650
+ "eval.tests.test_executable_process_isolation.test_concurrent_launches_are_independent[8-procs]",
651
+ "eval.tests.test_executable_process_isolation.test_concurrent_output_streams_do_not_cross_wire",
652
+ "eval.tests.test_executable_process_isolation.test_ignores_inherited_extra_file_descriptors",
653
+ "eval.tests.test_executable_process_isolation.test_ignores_stdin_when_it_is_a_pseudoterminal",
654
+ "eval.tests.test_executable_process_isolation.test_invoked_via_relative_path_from_tmp",
655
+ "eval.tests.test_executable_process_isolation.test_invoked_via_symlink_from_differs_directory",
656
+ "eval.tests.test_executable_side_effect_freedom.test_does_not_block_awaiting_open_stdin_pipe",
657
+ "eval.tests.test_executable_side_effect_freedom.test_early_closing_reader_does_not_cause_sigpipe_death",
658
+ "eval.tests.test_executable_side_effect_freedom.test_empty_stdout_stderr_under_dev_full[both]",
659
+ "eval.tests.test_executable_side_effect_freedom.test_empty_stdout_stderr_under_dev_full[stderr]",
660
+ "eval.tests.test_executable_side_effect_freedom.test_empty_stdout_stderr_under_dev_full[stdout]",
661
+ "eval.tests.test_executable_side_effect_freedom.test_env_value_under_arg_limit_does_not_change_contract",
662
+ "eval.tests.test_executable_side_effect_freedom.test_executable_file_is_unchanged_after_running_once",
663
+ "eval.tests.test_executable_side_effect_freedom.test_handles_synthetic_stdin_sources_without_error[stdin-devfull]",
664
+ "eval.tests.test_executable_side_effect_freedom.test_handles_synthetic_stdin_sources_without_error[stdin-devnull]",
665
+ "eval.tests.test_executable_side_effect_freedom.test_handles_synthetic_stdin_sources_without_error[stdin-devzero]",
666
+ "eval.tests.test_executable_side_effect_freedom.test_leaves_no_coverage_or_log_artifacts_anywhere_in_tmp",
667
+ "eval.tests.test_executable_side_effect_freedom.test_leaves_no_files_in_working_directory_after_run",
668
+ "eval.tests.test_executable_side_effect_freedom.test_many_additive_environment_variables_do_not_change_contract",
669
+ "eval.tests.test_executable_side_effect_freedom.test_read_only_working_directory_is_not_a_writable_dependency",
670
+ "eval.tests.test_executable_side_effect_freedom.test_regular_file_stdout_and_stderr_remain_empty",
671
+ "eval.tests.test_executable_side_effect_freedom.test_runs_identically_from_different_working_directories[deep-nested]",
672
+ "eval.tests.test_executable_side_effect_freedom.test_runs_identically_from_different_working_directories[fresh]",
673
+ "eval.tests.test_executable_side_effect_freedom.test_runs_identically_from_different_working_directories[unicode-spaces]"
674
+ ]
675
+ },
676
+ "generated_upstream": {
677
+ "ignore_reason": "",
678
+ "ignored": false,
679
+ "ignored_tests": [],
680
+ "tests": [
681
+ "eval.tests.test_basic_usage_roundtrip.test_roundtrip_ignores_command_line_arguments",
682
+ "eval.tests.test_basic_usage_roundtrip.test_roundtrip_ignores_stdin_input",
683
+ "eval.tests.test_basic_usage_roundtrip.test_roundtrip_is_deterministic_across_repeated_runs",
684
+ "eval.tests.test_basic_usage_roundtrip.test_roundtrip_is_self_contained_in_empty_working_directory",
685
+ "eval.tests.test_basic_usage_roundtrip.test_roundtrip_succeeds_with_no_supplied_input"
686
+ ]
687
+ }
688
+ },
689
+ "commit": "9bebfd4911b8ef52c5a67754ccb87a8fd5223414",
690
+ "data_source": "synthetic_programgym",
691
+ "difficulty": "easy",
692
+ "difficulty_score": 1.973035440686933,
693
+ "eval_clean_hashes": [
694
+ "194cc873ef523931c9ecdc8b986543bf5c344c6964b4c24ee7d3a186cd76f7bb"
695
+ ],
696
+ "input_record": {
697
+ "commit": "9bebfd4911b8ef52c5a67754ccb87a8fd5223414",
698
+ "difficulty": "easy",
699
+ "difficulty_code_lines": 9398,
700
+ "difficulty_has_tests": true,
701
+ "difficulty_product_code_lines": 9398,
702
+ "difficulty_runtime_deps": 0,
703
+ "difficulty_score": 1.973035440686933,
704
+ "difficulty_test_code_lines": 9654,
705
+ "full_name": "fraillt/bitsery",
706
+ "input_joern_zip": "cpp_joern/fraillt__bitsery.zip",
707
+ "joern_status": true,
708
+ "joern_time": 14.68960889405571,
709
+ "language": "cpp",
710
+ "pb_match": [
711
+ {
712
+ "pb_fullname": "ip7z/7zip",
713
+ "rank": 346,
714
+ "similarity": 0.4126584231853485
715
+ }
716
+ ],
717
+ "repo_path": "cpp/fraillt__bitsery",
718
+ "source": "commit:9bebfd4911b8ef52c5a67754ccb87a8fd5223414",
719
+ "status": "done",
720
+ "url": "https://github.com/fraillt/bitsery"
721
+ },
722
+ "instance_id": "fraillt__bitsery.9bebfd4",
723
+ "language": "cpp",
724
+ "module_iterations": [
725
+ {
726
+ "actual_iterations": 5,
727
+ "branch_name": "generated_module_01",
728
+ "iteration_limit": 5,
729
+ "module_index": 1,
730
+ "module_kind": "source",
731
+ "termination_reason": "max_iterations"
732
+ },
733
+ {
734
+ "actual_iterations": 5,
735
+ "branch_name": "generated_module_02",
736
+ "iteration_limit": 5,
737
+ "module_index": 2,
738
+ "module_kind": "source",
739
+ "termination_reason": "max_iterations"
740
+ },
741
+ {
742
+ "actual_iterations": 2,
743
+ "branch_name": "generated_module_03",
744
+ "iteration_limit": 5,
745
+ "module_index": 3,
746
+ "module_kind": "source",
747
+ "termination_reason": "module_coverage_threshold_reached"
748
+ },
749
+ {
750
+ "actual_iterations": 5,
751
+ "branch_name": "generated_module_04",
752
+ "iteration_limit": 5,
753
+ "module_index": 4,
754
+ "module_kind": "source",
755
+ "termination_reason": "early_stopping"
756
+ },
757
+ {
758
+ "actual_iterations": 1,
759
+ "branch_name": "generated_upstream",
760
+ "iteration_limit": 5,
761
+ "module_index": 5,
762
+ "module_kind": "tests",
763
+ "termination_reason": "module_coverage_threshold_reached"
764
+ }
765
+ ],
766
+ "repository": "fraillt/bitsery"
767
+ }
fraillt--bitsery.9bebfd4/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
fraillt--bitsery.9bebfd4/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddb9f9056c23c3542d2d96811237ce35e7c97624c8973952db2d1a68d618dcbc
3
+ size 3270
franckverrot--terraform-provider-stripe.26f8834/environment/Dockerfile ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
14
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
15
+ ENV npm_config_registry="https://registry.npmjs.org/"
16
+ ENV npm_config_strict_ssl=false
17
+ ENV npm_config_cache=/workspace/.cache/npm
18
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
19
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
20
+ ENV PIP_TRUSTED_HOST=""
21
+ ENV HOME=/workspace
22
+ ENV XDG_CACHE_HOME=/workspace/.cache
23
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
24
+ ENV PYTHONUSERBASE=/workspace/.local
25
+ ENV GOROOT=/usr/local/go
26
+ ENV GOPATH=/workspace/.go
27
+ ENV GOCACHE=/workspace/.cache/go-build
28
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
29
+ ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30
+ ENV PAGER=cat
31
+ ENV MANPAGER=cat
32
+ ENV LESS=-R
33
+ ENV TQDM_DISABLE=1
34
+ ENV VIRTUAL_ENV=/opt/programgym-venv
35
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
36
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
37
+ RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
38
+ RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
39
+ WORKDIR /workspace
40
+ ADD workspace.tar.gz /workspace/
41
+ COPY executable /workspace/executable
42
+ COPY download.sh /workspace/download.sh
43
+ RUN chmod 755 /workspace/download.sh
44
+ RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
45
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
46
+ RUN chmod 111 /workspace/executable
47
+ WORKDIR /workspace
48
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
49
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
50
+ # submission handed to the separate verifier. Keep the reference executable
51
+ # execute-only; the oracle temporarily restores owner read permission.
52
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
53
+ RUN mkdir -p /home/agent \
54
+ && chown -R agent:agent /home/agent /workspace \
55
+ && chown agent:agent /workspace/executable \
56
+ && chmod 111 /workspace/executable
57
+ ENV HOME=/home/agent
58
+ WORKDIR /workspace
59
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
franckverrot--terraform-provider-stripe.26f8834/environment/download.sh ADDED
@@ -0,0 +1,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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=local
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/franckverrot/terraform-provider-stripe
9
+
10
+ go 1.12
11
+
12
+ require (
13
+ github.com/hashicorp/terraform v0.12.6
14
+ github.com/stripe/stripe-go/v72 v72.107.0
15
+ )
16
+ PROGRAMGYM_GO_MOD_EOF
17
+ cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
18
+ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
19
+ cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
20
+ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
21
+ cloud.google.com/go v0.36.0 h1:+aCSj7tOo2LODWVEuZDZeGCckdt6MlSF+X/rB3wUiS8=
22
+ cloud.google.com/go v0.36.0/go.mod h1:RUoy9p/M4ge0HzT8L+SDZ8jg+Q6fth0CiBuhFJpSV40=
23
+ dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU=
24
+ dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU=
25
+ dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1:a1inKt/atXimZ4Mv927x+r7UpyzRUf4emIoiiSC2TN4=
26
+ dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU=
27
+ git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg=
28
+ github.com/Azure/azure-sdk-for-go v21.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
29
+ github.com/Azure/go-autorest v10.15.4+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
30
+ github.com/Azure/go-ntlmssp v0.0.0-20180810175552-4a21cbd618b4/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=
31
+ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
32
+ github.com/ChrisTrenkamp/goxpath v0.0.0-20170922090931-c385f95c6022/go.mod h1:nuWgzSkT5PnyOd+272uUmV0dnAnAn42Mk7PiQC5VzN4=
33
+ github.com/Unknwon/com v0.0.0-20151008135407-28b053d5a292/go.mod h1:KYCjqMOeHpNuTOiFQU6WEcTG7poCJrUs0YgyHNtn1no=
34
+ github.com/abdullin/seq v0.0.0-20160510034733-d5467c17e7af/go.mod h1:5Jv4cbFiHJMsVxt52+i0Ha45fjshj6wxYr1r19tB9bw=
35
+ github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
36
+ github.com/agext/levenshtein v1.2.2 h1:0S/Yg6LYmFJ5stwQeRp6EeOcCbj7xiqQSdNelsXvaqE=
37
+ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
38
+ github.com/agl/ed25519 v0.0.0-20150830182803-278e1ec8e8a6/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0=
39
+ github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190329064014-6e358769c32a/go.mod h1:T9M45xf79ahXVelWoOBmH0y4aC1t5kXO5BxwyakgIGA=
40
+ github.com/aliyun/aliyun-oss-go-sdk v0.0.0-20190103054945-8205d1f41e70/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8=
41
+ github.com/aliyun/aliyun-tablestore-go-sdk v4.1.2+incompatible/go.mod h1:LDQHRZylxvcg8H7wBIDfvO5g/cy4/sz1iucBlc2l3Jw=
42
+ github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
43
+ github.com/antchfx/xpath v0.0.0-20190129040759-c8489ed3251e/go.mod h1:Yee4kTMuNiPYJ7nSNorELQMr1J33uOpXDMByNYhvtNk=
44
+ github.com/antchfx/xquery v0.0.0-20180515051857-ad5b8c7a47b0/go.mod h1:LzD22aAzDP8/dyiCKFp31He4m2GPjl0AFyzDtZzUu9M=
45
+ github.com/apparentlymart/go-cidr v1.0.0 h1:lGDvXx8Lv9QHjrAVP7jyzleG4F9+FkRhJcEsDFxeb8w=
46
+ github.com/apparentlymart/go-cidr v1.0.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc=
47
+ github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
48
+ github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFUye+ZcSR6opIgz9Co7WcDx6ZcY+RjfFHoA0I=
49
+ github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
50
+ github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0=
51
+ github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk=
52
+ github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
53
+ github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
54
+ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
55
+ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI=
56
+ github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
57
+ github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
58
+ github.com/aws/aws-sdk-go v1.16.36/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
59
+ github.com/aws/aws-sdk-go v1.21.7 h1:ml+k7szyVaq4YD+3LhqOGl9tgMTqgMbpnuUSkB6UJvQ=
60
+ github.com/aws/aws-sdk-go v1.21.7/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
61
+ github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc=
62
+ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
63
+ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=
64
+ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4=
65
+ github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
66
+ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
67
+ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
68
+ github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
69
+ github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
70
+ github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g=
71
+ github.com/bsm/go-vlq v0.0.0-20150828105119-ec6e8d4f5f4e/go.mod h1:N+BjUcTjSxc2mtRGSCPsat1kze3CUtvJN3/jTXlp29k=
72
+ github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
73
+ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
74
+ github.com/chzyer/readline v0.0.0-20161106042343-c914be64f07d/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
75
+ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
76
+ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
77
+ github.com/coreos/bbolt v1.3.0/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
78
+ github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
79
+ github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
80
+ github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
81
+ github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
82
+ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
83
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
84
+ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
85
+ github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
86
+ github.com/dimchansky/utfbom v1.0.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
87
+ github.com/dnaeon/go-vcr v0.0.0-20180920040454-5637cf3d8a31/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E=
88
+ github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
89
+ github.com/dylanmei/iso8601 v0.1.0/go.mod h1:w9KhXSgIyROl1DefbMYIE7UVSIvELTbMrCfx+QkYnoQ=
90
+ github.com/dylanmei/winrmtest v0.0.0-20190225150635-99b7fe2fddf1/go.mod h1:lcy9/2gH1jn/VCLouHA6tOEwLoNVd4GW6zhuKLmHC2Y=
91
+ github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
92
+ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
93
+ github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
94
+ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
95
+ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
96
+ github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
97
+ github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg=
98
+ github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
99
+ github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
100
+ github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
101
+ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
102
+ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
103
+ github.com/golang/groupcache v0.0.0-20180513044358-24b0969c4cb7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
104
+ github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E=
105
+ github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
106
+ github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
107
+ github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s=
108
+ github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
109
+ github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
110
+ github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
111
+ github.com/golang/protobuf v1.3.0 h1:kbxbvI4Un1LUWKxufD+BiE6AEExYYgkQLQmLFqA1LFk=
112
+ github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0=
113
+ github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
114
+ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
115
+ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
116
+ github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
117
+ github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
118
+ github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
119
+ github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
120
+ github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=
121
+ github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
122
+ github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
123
+ github.com/googleapis/gax-go v2.0.0+incompatible h1:j0GKcs05QVmm7yesiZq2+9cxHkNK9YM6zKx4D2qucQU=
124
+ github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY=
125
+ github.com/googleapis/gax-go/v2 v2.0.3 h1:siORttZ36U2R/WjiJuDz8znElWBiAlO9rVt+mqJt0Cc=
126
+ github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg=
127
+ github.com/gophercloud/gophercloud v0.0.0-20190208042652-bc37892e1968/go.mod h1:3WdhXV3rUYy9p6AUW8d94kr+HS62Y4VL9mBnFxsD8q4=
128
+ github.com/gophercloud/utils v0.0.0-20190128072930-fbb6ab446f01/go.mod h1:wjDF8z83zTeg5eMLml5EBSlAhbF7G8DobyI1YsMuyzw=
129
+ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
130
+ github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
131
+ github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
132
+ github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
133
+ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
134
+ github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw=
135
+ github.com/grpc-ecosystem/grpc-gateway v1.5.1/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw=
136
+ github.com/hashicorp/aws-sdk-go-base v0.2.0/go.mod h1:ZIWACGGi0N7a4DZbf15yuE1JQORmWLtBcVM6F5SXNFU=
137
+ github.com/hashicorp/consul v0.0.0-20171026175957-610f3c86a089/go.mod h1:mFrjN1mfidgJfYP1xrJCF+AfRhr6Eaqhb2+sfyn/OOI=
138
+ github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
139
+ github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
140
+ github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
141
+ github.com/hashicorp/go-azure-helpers v0.0.0-20190129193224-166dfd221bb2/go.mod h1:lu62V//auUow6k0IykxLK2DCNW8qTmpm8KqhYVWattA=
142
+ github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg=
143
+ github.com/hashicorp/go-cleanhttp v0.5.0 h1:wvCrVc9TjDls6+YGAF2hAifE1E5U1+b4tH6KdvN3Gig=
144
+ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
145
+ github.com/hashicorp/go-getter v1.3.1-0.20190627223108-da0323b9545e h1:6krcdHPiS+aIP9XKzJzSahfjD7jG7Z+4+opm0z39V1M=
146
+ github.com/hashicorp/go-getter v1.3.1-0.20190627223108-da0323b9545e/go.mod h1:/O1k/AizTN0QmfEKknCYGvICeyKUDqCYA8vvWtGWDeQ=
147
+ github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI=
148
+ github.com/hashicorp/go-hclog v0.0.0-20181001195459-61d530d6c27f h1:Yv9YzBlAETjy6AOX9eLBZ3nshNVRREgerT/3nvxlGho=
149
+ github.com/hashicorp/go-hclog v0.0.0-20181001195459-61d530d6c27f/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
150
+ github.com/hashicorp/go-immutable-radix v0.0.0-20180129170900-7f3cd4390caa/go.mod h1:6ij3Z20p+OhOkCSrA0gImAWoHYQRGbnlcuk6XYTiaRw=
151
+ github.com/hashicorp/go-msgpack v0.5.4/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
152
+ github.com/hashicorp/go-multierror v0.0.0-20180717150148-3d5d8f294aa0/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I=
153
+ github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
154
+ github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
155
+ github.com/hashicorp/go-plugin v1.0.1-0.20190610192547-a1bc61569a26 h1:hRho44SAoNu1CBtn5r8Q9J3rCs4ZverWZ4R+UeeNuWM=
156
+ github.com/hashicorp/go-plugin v1.0.1-0.20190610192547-a1bc61569a26/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY=
157
+ github.com/hashicorp/go-retryablehttp v0.5.2/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
158
+ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
159
+ github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo=
160
+ github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I=
161
+ github.com/hashicorp/go-slug v0.3.0/go.mod h1:I5tq5Lv0E2xcNXNkmx7BSfzi1PsJ2cNjs3cC3LwyhK8=
162
+ github.com/hashicorp/go-sockaddr v0.0.0-20180320115054-6d291a969b86/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
163
+ github.com/hashicorp/go-tfe v0.3.16/go.mod h1:SuPHR+OcxvzBZNye7nGPfwZTEyd3rWPfLVbCgyZPezM=
164
+ github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
165
+ github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=
166
+ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
167
+ github.com/hashicorp/go-version v1.1.0 h1:bPIoEKD27tNdebFGGxxYwcL4nepeY4j1QP23PFRGzg0=
168
+ github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
169
+ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
170
+ github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f h1:UdxlrJz4JOnY8W+DbLISwf2B8WXEolNRA8BGCwI9jws=
171
+ github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w=
172
+ github.com/hashicorp/hcl2 v0.0.0-20181208003705-670926858200/go.mod h1:ShfpTh661oAaxo7VcNxg0zcZW6jvMa7Moy2oFx7e5dE=
173
+ github.com/hashicorp/hcl2 v0.0.0-20190725010614-0c3fe388e450 h1:wpa0vOXOnSEuwZ++eVk1gQNm3Jy2+Envn0cQRgsl8K8=
174
+ github.com/hashicorp/hcl2 v0.0.0-20190725010614-0c3fe388e450/go.mod h1:FSQTwDi9qesxGBsII2VqhIzKQ4r0bHvBkOczWfD7llg=
175
+ github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590 h1:2yzhWGdgQUWZUCNK+AoO35V+HTsgEmcM4J9IkArh7PI=
176
+ github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE=
177
+ github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=
178
+ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
179
+ github.com/hashicorp/memberlist v0.1.0/go.mod h1:ncdBp14cuox2iFOq3kDiquKU6fqsTBc3W6JvZwjxxsE=
180
+ github.com/hashicorp/serf v0.0.0-20160124182025-e4ec8cc423bb/go.mod h1:h/Ru6tmZazX7WO/GDmwdpS975F019L4t5ng5IgwbNrE=
181
+ github.com/hashicorp/terraform v0.12.6 h1:mWItQdLZQ7f3kBYBu2Kgdg+E5iZb1KtCq73V10Hmu48=
182
+ github.com/hashicorp/terraform v0.12.6/go.mod h1:udmq5rU8CO9pEIh/A/Xrs3zb3yYU/W9ce1pp8K1ysHA=
183
+ github.com/hashicorp/terraform-config-inspect v0.0.0-20190327195015-8022a2663a70 h1:oZm5nE11yhzsTRz/YrUyDMSvixePqjoZihwn8ipuOYI=
184
+ github.com/hashicorp/terraform-config-inspect v0.0.0-20190327195015-8022a2663a70/go.mod h1:ItvqtvbC3K23FFET62ZwnkwtpbKZm8t8eMcWjmVVjD8=
185
+ github.com/hashicorp/vault v0.10.4/go.mod h1:KfSyffbKxoVyspOdlaGVjIuwLobi07qD1bAbosPMpP0=
186
+ github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb h1:b5rjCoWHc7eqmAS4/qyk21ZsHyb6Mxv/jykxvNTkU4M=
187
+ github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
188
+ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
189
+ github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU=
190
+ github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
191
+ github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
192
+ github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=
193
+ github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
194
+ github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
195
+ github.com/joyent/triton-go v0.0.0-20180313100802-d8f9c0314926/go.mod h1:U+RSyWxWd04xTqnuOQxnai7XGS2PrPY2cfGoDKtMHjA=
196
+ github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
197
+ github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
198
+ github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
199
+ github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
200
+ github.com/keybase/go-crypto v0.0.0-20161004153544-93f5b35093ba/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M=
201
+ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
202
+ github.com/konsorten/go-windows-terminal-sequences v0.0.0-20180402223658-b729f2633dfe/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
203
+ github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
204
+ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
205
+ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
206
+ github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
207
+ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
208
+ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
209
+ github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4=
210
+ github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
211
+ github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
212
+ github.com/lusis/go-artifactory v0.0.0-20160115162124-7e4ce345df82/go.mod h1:y54tfGmO3NKssKveTEFFzH8C/akrSOy/iW9qEAUDV84=
213
+ github.com/marstr/guid v1.1.0/go.mod h1:74gB1z2wpxxInTG6yaqA7KrtM0NZ+RbrcqDvYHefzho=
214
+ github.com/masterzen/simplexml v0.0.0-20160608183007-4572e39b1ab9/go.mod h1:kCEbxUJlNDEBNbdQMkPSp6yaKcRXVI6f4ddk8Riv4bc=
215
+ github.com/masterzen/winrm v0.0.0-20190223112901-5e5c9a7fe54b/go.mod h1:wr1VqkwW0AB5JS0QLy5GpVMS9E3VtRoSYXUYyVk46KY=
216
+ github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
217
+ github.com/mattn/go-colorable v0.1.1 h1:G1f5SKeVxmagw/IyvzvtZE4Gybcc4Tr1tf7I8z0XgOg=
218
+ github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
219
+ github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
220
+ github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
221
+ github.com/mattn/go-isatty v0.0.5 h1:tHXDdz1cpzGaovsTB+TVB8q90WEokoVmfMqoVcrLUgw=
222
+ github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
223
+ github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
224
+ github.com/mattn/go-shellwords v1.0.4/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o=
225
+ github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
226
+ github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4=
227
+ github.com/miekg/dns v1.0.8/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
228
+ github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y=
229
+ github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
230
+ github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
231
+ github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ=
232
+ github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
233
+ github.com/mitchellh/go-homedir v1.0.0 h1:vKb8ShqSby24Yrqr/yDYkuFz8d0WUjys40rvnGC8aR0=
234
+ github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
235
+ github.com/mitchellh/go-linereader v0.0.0-20190213213312-1b945b3263eb/go.mod h1:OaY7UOoTkkrX3wRwjpYRKafIkkyeD0UtweSHAWWiqQM=
236
+ github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
237
+ github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=
238
+ github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
239
+ github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
240
+ github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4=
241
+ github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
242
+ github.com/mitchellh/hashstructure v1.0.0 h1:ZkRJX1CyOoTkar7p/mLS5TZU4nJ1Rn/F8u9dGS02Q3Y=
243
+ github.com/mitchellh/hashstructure v1.0.0/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ=
244
+ github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
245
+ github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
246
+ github.com/mitchellh/panicwrap v0.0.0-20190213213626-17011010aaa4/go.mod h1:YYMf4xtQnR8LRC0vKi3afvQ5QwRPQ17zjcpkBCufb+I=
247
+ github.com/mitchellh/prefixedio v0.0.0-20190213213902-5733675afd51/go.mod h1:kB1naBgV9ORnkiTVeyJOI1DavaJkG4oNIq0Af6ZVKUo=
248
+ github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY=
249
+ github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
250
+ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
251
+ github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
252
+ github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo=
253
+ github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM=
254
+ github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d/go.mod h1:YUTz3bUH2ZwIWBy3CJBeOBEugqcmXREj14T+iG/4k4U=
255
+ github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
256
+ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
257
+ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
258
+ github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
259
+ github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
260
+ github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8=
261
+ github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
262
+ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
263
+ github.com/pkg/errors v0.0.0-20170505043639-c605e284fe17/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
264
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
265
+ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
266
+ github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
267
+ github.com/posener/complete v1.2.1 h1:LrvDIY//XNo65Lq84G/akBuMGlawHvGBABv8f/ZN6DI=
268
+ github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E=
269
+ github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
270
+ github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
271
+ github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
272
+ github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
273
+ github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
274
+ github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
275
+ github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
276
+ github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
277
+ github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
278
+ github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
279
+ github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY=
280
+ github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM=
281
+ github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0=
282
+ github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk=
283
+ github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ=
284
+ github.com/shurcooL/gofontwoff v0.0.0-20180329035133-29b52fc0a18d/go.mod h1:05UtEgK5zq39gLST6uB0cf3NEHjETfB4Fgr3Gx5R9Vw=
285
+ github.com/shurcooL/gopherjslib v0.0.0-20160914041154-feb6d3990c2c/go.mod h1:8d3azKNyqcHP1GaQE/c6dDgjkgSx2BZ4IoEi4F1reUI=
286
+ github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b/go.mod h1:ZpfEhSmds4ytuByIcDnOLkTHGUI6KNqRNPDLHDk+mUU=
287
+ github.com/shurcooL/highlight_go v0.0.0-20181028180052-98c3abbbae20/go.mod h1:UDKB5a1T23gOMUJrI+uSuH0VRDStOiUVSjBTRDVBVag=
288
+ github.com/shurcooL/home v0.0.0-20181020052607-80b7ffcb30f9/go.mod h1:+rgNQw2P9ARFAs37qieuu7ohDNQ3gds9msbT2yn85sg=
289
+ github.com/shurcooL/htmlg v0.0.0-20170918183704-d01228ac9e50/go.mod h1:zPn1wHpTIePGnXSHpsVPWEktKXHr6+SS6x/IKRb7cpw=
290
+ github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc/go.mod h1:aYMfkZ6DWSJPJ6c4Wwz3QtW22G7mf/PEgaB9k/ik5+Y=
291
+ github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
292
+ github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9/go.mod h1:919LwcH0M7/W4fcZ0/jy0qGght1GIhqyS/EgWGH2j5Q=
293
+ github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191/go.mod h1:e2qWDig5bLteJ4fwvDAc2NHzqFEthkqn7aOZAOpj+PQ=
294
+ github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241/go.mod h1:NPpHK2TI7iSaM0buivtFUc9offApnI0Alt/K8hcHy0I=
295
+ github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122/go.mod h1:b5uSkrEVM1jQUspwbixRBhaIjIzL2xazXp6kntxYle0=
296
+ github.com/shurcooL/octicon v0.0.0-20181028054416-fa4f57f9efb2/go.mod h1:eWdoE5JD4R5UVWDucdOPg1g2fqQRq78IQa9zlOV1vpQ=
297
+ github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82/go.mod h1:TCR1lToEk4d2s07G3XGfz2QrgHXg4RJBvjrOozvoWfk=
298
+ github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
299
+ github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4=
300
+ github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw=
301
+ github.com/sirupsen/logrus v1.1.1/go.mod h1:zrgwTnHtNr00buQ1vSptGe8m1f/BbgsPukg8qsT7A+A=
302
+ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
303
+ github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s=
304
+ github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
305
+ github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE=
306
+ github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA=
307
+ github.com/spf13/afero v1.2.1 h1:qgMbHoJbPbw579P+1zVY+6n4nIFuIchaIjzZ/I/Yq8M=
308
+ github.com/spf13/afero v1.2.1/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
309
+ github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
310
+ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
311
+ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
312
+ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
313
+ github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
314
+ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
315
+ github.com/stripe/stripe-go/v72 v72.107.0 h1:munfcQGG/STMSzdu55Q12vYCCNwWC5sZcpKsnCNa1FA=
316
+ github.com/stripe/stripe-go/v72 v72.107.0/go.mod h1:QwqJQtduHubZht9mek5sds9CtQcKFdsykV9ZepRWwo0=
317
+ github.com/svanharmelen/jsonapi v0.0.0-20180618144545-0c0828c3f16d/go.mod h1:BSTlc8jOjh0niykqEGVXOLXdi9o0r0kR8tCYiMvjFgw=
318
+ github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA=
319
+ github.com/terraform-providers/terraform-provider-openstack v1.15.0/go.mod h1:2aQ6n/BtChAl1y2S60vebhyJyZXBsuAI5G4+lHrT1Ew=
320
+ github.com/tmc/grpc-websocket-proxy v0.0.0-20171017195756-830351dc03c6/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
321
+ github.com/ugorji/go v0.0.0-20180813092308-00b869d2f4a5/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
322
+ github.com/ulikunitz/xz v0.5.5 h1:pFrO0lVpTBXLpYw+pnLj6TbvHuyjXMfjGeCwSqCVwok=
323
+ github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8=
324
+ github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
325
+ github.com/vmihailenco/msgpack v4.0.1+incompatible h1:RMF1enSPeKTlXrXdOcqjFUElywVZjjC6pqse21bKbEU=
326
+ github.com/vmihailenco/msgpack v4.0.1+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
327
+ github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
328
+ github.com/xiang90/probing v0.0.0-20160813154853-07dd2e8dfe18/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
329
+ github.com/xlab/treeprint v0.0.0-20161029104018-1d6e34225557/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg=
330
+ github.com/zclconf/go-cty v0.0.0-20181129180422-88fbe721e0f8/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
331
+ github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
332
+ github.com/zclconf/go-cty v1.0.1-0.20190708163926-19588f92a98f h1:sq2p8SN6ji66CFEQFIWLlD/gFmGtr5hBrOzv5nLlGfA=
333
+ github.com/zclconf/go-cty v1.0.1-0.20190708163926-19588f92a98f/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
334
+ github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8=
335
+ github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0=
336
+ go.opencensus.io v0.18.0 h1:Mk5rgZcggtbvtAun5aJzAtjKKN/t0R3jJPlWILlv938=
337
+ go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA=
338
+ go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
339
+ go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
340
+ go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
341
+ go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE=
342
+ golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw=
343
+ golang.org/x/crypto v0.0.0-20180816225734-aabede6cba87/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
344
+ golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
345
+ golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
346
+ golang.org/x/crypto v0.0.0-20181112202954-3d3f9f413869/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
347
+ golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
348
+ golang.org/x/crypto v0.0.0-20190222235706-ffb98f73852f/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
349
+ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
350
+ golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
351
+ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc=
352
+ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
353
+ golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
354
+ golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
355
+ golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
356
+ golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
357
+ golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
358
+ golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
359
+ golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
360
+ golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
361
+ golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
362
+ golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
363
+ golang.org/x/net v0.0.0-20181129055619-fae4c4e3ad76/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
364
+ golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
365
+ golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
366
+ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
367
+ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
368
+ golang.org/x/net v0.0.0-20190502183928-7f726cade0ab/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
369
+ golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k=
370
+ golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
371
+ golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
372
+ golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
373
+ golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
374
+ golang.org/x/oauth2 v0.0.0-20190220154721-9b3c75971fc9 h1:pfyU+l9dEu0vZzDDMsdAKa1gZbJYEn6urYXj/+Xkz7s=
375
+ golang.org/x/oauth2 v0.0.0-20190220154721-9b3c75971fc9/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
376
+ golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw=
377
+ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
378
+ golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
379
+ golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
380
+ golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
381
+ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
382
+ golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
383
+ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
384
+ golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
385
+ golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
386
+ golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
387
+ golang.org/x/sys v0.0.0-20181213200352-4d1cda033e06/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
388
+ golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
389
+ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
390
+ golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
391
+ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
392
+ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
393
+ golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
394
+ golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=
395
+ golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
396
+ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
397
+ golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
398
+ golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
399
+ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
400
+ golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
401
+ golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
402
+ golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
403
+ golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
404
+ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
405
+ golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
406
+ golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
407
+ google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
408
+ google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
409
+ google.golang.org/api v0.1.0 h1:K6z2u68e86TPdSdefXdzvXgR1zEMa+459vBSfWYAZkI=
410
+ google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y=
411
+ google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
412
+ google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
413
+ google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
414
+ google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
415
+ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
416
+ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
417
+ google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
418
+ google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
419
+ google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg=
420
+ google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922 h1:mBVYJnbrXLA/ZCBTCe7PtEgAUP+1bg92qTaFoPHdz+8=
421
+ google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922/go.mod h1:L3J43x8/uS+qIUoksaLKe6OS3nUKxOKuIFz1sl2/jx4=
422
+ google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
423
+ google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio=
424
+ google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
425
+ google.golang.org/grpc v1.18.0 h1:IZl7mfBGfbhYx2p2rKRtYgDFw6SBz+kclmxYrCksPPA=
426
+ google.golang.org/grpc v1.18.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
427
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
428
+ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
429
+ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
430
+ gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
431
+ gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
432
+ gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
433
+ gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
434
+ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
435
+ gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
436
+ gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
437
+ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
438
+ grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o=
439
+ honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
440
+ honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
441
+ howett.net/plist v0.0.0-20181124034731-591f970eefbb/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0=
442
+ sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck=
443
+ sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
444
+ PROGRAMGYM_GO_SUM_EOF
445
+ if ! (cd /workspace/.programgym_build_env/go-prefetch && go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
446
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
447
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
448
+ return 1
449
+ else
450
+ exit 1
451
+ fi
452
+ fi
franckverrot--terraform-provider-stripe.26f8834/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82f21bd64db7d9c92b755e6d6ed7cba8de06d7177b015d8ccac8b673f65462d0
3
+ size 29392595
franckverrot--terraform-provider-stripe.26f8834/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
franckverrot--terraform-provider-stripe.26f8834/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c05caf2c6d1429f076853349159c98bd4a1a5dd33745c958718a1046f1f7a34a
3
+ size 10914
franckverrot--terraform-provider-stripe.26f8834/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
franckverrot--terraform-provider-stripe.26f8834/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
franckverrot--terraform-provider-stripe.26f8834/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/franckverrot--terraform-provider-stripe.26f8834"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for franckverrot/terraform-provider-stripe"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "franckverrot__terraform-provider-stripe.26f8834"
32
+ repository = "franckverrot/terraform-provider-stripe"
33
+ commit = "26f8834a7ccccf16fa9ec844bd7988af0c857136"
34
+ language = "go"
35
+ difficulty = "unknown"
36
+ difficulty_score = 0.0
37
+ test_branches = 4
38
+ test_count = 529
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"
franckverrot--terraform-provider-stripe.26f8834/tests/Dockerfile ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
14
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
15
+ ENV npm_config_registry="https://registry.npmjs.org/"
16
+ ENV npm_config_strict_ssl=false
17
+ ENV npm_config_cache=/workspace/.cache/npm
18
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
19
+ ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
20
+ ENV PIP_TRUSTED_HOST=""
21
+ ENV HOME=/workspace
22
+ ENV XDG_CACHE_HOME=/workspace/.cache
23
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
24
+ ENV PYTHONUSERBASE=/workspace/.local
25
+ ENV GOROOT=/usr/local/go
26
+ ENV GOPATH=/workspace/.go
27
+ ENV GOCACHE=/workspace/.cache/go-build
28
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
29
+ ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30
+ ENV PAGER=cat
31
+ ENV MANPAGER=cat
32
+ ENV LESS=-R
33
+ ENV TQDM_DISABLE=1
34
+ ENV VIRTUAL_ENV=/opt/programgym-venv
35
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
36
+ COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
37
+ RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
38
+ RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
39
+ WORKDIR /workspace
40
+ ADD workspace.tar.gz /workspace/
41
+ COPY executable /workspace/executable
42
+ COPY download.sh /workspace/download.sh
43
+ RUN chmod 755 /workspace/download.sh
44
+ RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
45
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
46
+ RUN chmod 111 /workspace/executable
47
+ WORKDIR /workspace
48
+ # Harbor uses tests/ as the separate verifier build context. Start with the
49
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
50
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
51
+ && mkdir -p /workspace /tests
52
+
53
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
54
+ # Installing a newer pytest alone leaves that apt package importable and creates
55
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
56
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
57
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
58
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
59
+ RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
60
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
61
+
62
+ COPY test.sh /tests/test.sh
63
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
64
+ COPY programgym_task.json /tests/programgym_task.json
65
+ COPY blobs/ /tests/blobs/
66
+ RUN chmod +x /tests/test.sh
67
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]