diff --git a/.gitattributes b/.gitattributes
index 8c16b77af7a9770c87f775063a8dcf9aa00d736e..3a344567ecf8af716dc2121637887f246a9c8937 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -484,3 +484,48 @@ cdemoulins--pamixer.3236df4/environment/executable filter=lfs diff=lfs merge=lfs
cdemoulins--pamixer.3236df4/tests/executable filter=lfs diff=lfs merge=lfs -text
cedricguillemet--imguizmo.be8aa4/environment/executable filter=lfs diff=lfs merge=lfs -text
cedricguillemet--imguizmo.be8aa4/tests/executable filter=lfs diff=lfs merge=lfs -text
+ceph--cn.be26489/environment/executable filter=lfs diff=lfs merge=lfs -text
+ceph--cn.be26489/tests/executable filter=lfs diff=lfs merge=lfs -text
+cesarferreira--rip.83f0260/environment/executable filter=lfs diff=lfs merge=lfs -text
+cesarferreira--rip.83f0260/tests/executable filter=lfs diff=lfs merge=lfs -text
+cespare--reflex.4ebe83d/environment/executable filter=lfs diff=lfs merge=lfs -text
+cespare--reflex.4ebe83d/tests/executable filter=lfs diff=lfs merge=lfs -text
+cfdemproject--liggghts-public.3d/environment/executable filter=lfs diff=lfs merge=lfs -text
+cfdemproject--liggghts-public.3d/tests/executable filter=lfs diff=lfs merge=lfs -text
+cgsdev0--termsand.77cea1c/environment/executable filter=lfs diff=lfs merge=lfs -text
+cgsdev0--termsand.77cea1c/tests/executable filter=lfs diff=lfs merge=lfs -text
+chadmed--triforce.a4877aa/environment/executable filter=lfs diff=lfs merge=lfs -text
+chadmed--triforce.a4877aa/tests/executable filter=lfs diff=lfs merge=lfs -text
+chakaz--reflang.1e00e79/environment/executable filter=lfs diff=lfs merge=lfs -text
+chakaz--reflang.1e00e79/tests/executable filter=lfs diff=lfs merge=lfs -text
+chameco--solid.11a3c44/environment/executable filter=lfs diff=lfs merge=lfs -text
+chameco--solid.11a3c44/tests/executable filter=lfs diff=lfs merge=lfs -text
+cheekybits--genny.3e22f1a/environment/executable filter=lfs diff=lfs merge=lfs -text
+cheekybits--genny.3e22f1a/tests/executable filter=lfs diff=lfs merge=lfs -text
+chollingworth--lampray.29d9296/environment/executable filter=lfs diff=lfs merge=lfs -text
+chollingworth--lampray.29d9296/tests/executable filter=lfs diff=lfs merge=lfs -text
+chop-dbhi--prometheus-sql.f8b632/environment/executable filter=lfs diff=lfs merge=lfs -text
+chop-dbhi--prometheus-sql.f8b632/tests/executable filter=lfs diff=lfs merge=lfs -text
+chrisrx--dungeonfs.1c33fca/environment/executable filter=lfs diff=lfs merge=lfs -text
+chrisrx--dungeonfs.1c33fca/tests/executable filter=lfs diff=lfs merge=lfs -text
+christianpanov--lwlog.707dfbc/environment/executable filter=lfs diff=lfs merge=lfs -text
+christianpanov--lwlog.707dfbc/tests/executable filter=lfs diff=lfs merge=lfs -text
+chronoxor--cppbenchmark.431f1fc/environment/executable filter=lfs diff=lfs merge=lfs -text
+chronoxor--cppbenchmark.431f1fc/tests/executable filter=lfs diff=lfs merge=lfs -text
+cirruslabs--echelon.836215f/environment/executable filter=lfs diff=lfs merge=lfs -text
+cirruslabs--echelon.836215f/tests/executable filter=lfs diff=lfs merge=lfs -text
+ckaznocha--protoc-gen-lint.920e7/environment/executable filter=lfs diff=lfs merge=lfs -text
+ckaznocha--protoc-gen-lint.920e7/tests/executable filter=lfs diff=lfs merge=lfs -text
+clab--fast_align.cab1e9a/environment/executable filter=lfs diff=lfs merge=lfs -text
+clab--fast_align.cab1e9a/tests/executable filter=lfs diff=lfs merge=lfs -text
+clipable--clipable.4c85ea5/environment/executable filter=lfs diff=lfs merge=lfs -text
+clipable--clipable.4c85ea5/tests/executable filter=lfs diff=lfs merge=lfs -text
+clipperhouse--gen.46fafb5/environment/executable filter=lfs diff=lfs merge=lfs -text
+clipperhouse--gen.46fafb5/tests/executable filter=lfs diff=lfs merge=lfs -text
+clitic--vsd.24cd681/environment/executable filter=lfs diff=lfs merge=lfs -text
+clitic--vsd.24cd681/tests/executable filter=lfs diff=lfs merge=lfs -text
+clmathlibraries--clblas.cf91139/environment/executable filter=lfs diff=lfs merge=lfs -text
+clmathlibraries--clblas.cf91139/tests/executable filter=lfs diff=lfs merge=lfs -text
+cloudflare--gokey.a5b5ea4/environment/executable filter=lfs diff=lfs merge=lfs -text
+cloudflare--gokey.a5b5ea4/tests/executable filter=lfs diff=lfs merge=lfs -text
+cloudflare--golibs.558c041/environment/executable filter=lfs diff=lfs merge=lfs -text
diff --git a/ceph--cn.be26489/environment/Dockerfile b/ceph--cn.be26489/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..6f371332b0892136e00733449b81644d11444adf
--- /dev/null
+++ b/ceph--cn.be26489/environment/Dockerfile
@@ -0,0 +1,58 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/ceph--cn.be26489/environment/download.sh b/ceph--cn.be26489/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..db51c4f00df31916d038cfcd40e68b3a16e25d0a
--- /dev/null
+++ b/ceph--cn.be26489/environment/download.sh
@@ -0,0 +1,200 @@
+#!/bin/bash
+# ProgramGym download.sh for github.com/ceph/cn (ceph-nano).
+# The repository is a legacy GOPATH/dep project (Gopkg.toml, no go.mod, no
+# vendor/). Its primary product is the `cn` CLI in package main (main.go).
+# We prefetch its Go dependency modules into the module cache using the
+# modern toolchain so that build.sh can compile OFFLINE.
+#
+# Sourced via `source /source_ro/download.sh` in a read-only repo mount with
+# network. This script is fully standalone: it does NOT read any repository
+# file (there is no go.mod/go.sum in the tree; both are generated inline
+# here). It performs no compile, link, test, or packaging steps.
+
+# ---- environment used by build.sh ----
+export GO111MODULE=on
+
+# Fixed literal location where the inline module manifest is generated.
+# build.sh reconstructs the identical files at this path, so the module cache
+# filled here satisfies the offline build.
+export CN_MOD_DIR="/workspace/cn-mod"
+mkdir -p "$CN_MOD_DIR"
+
+# Regenerate the module manifest + checksums. Content is embedded so the
+# script needs no repository file.
+cat > /workspace/cn-mod/go.mod <<'EOF'
+module github.com/ceph/cn
+
+go 1.25.0
+
+require (
+ github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b
+ github.com/apcera/termtables v0.0.0-20170405184538-bcbc5dc54055
+ github.com/docker/docker v1.4.2-0.20170426220831-c57fdb2a14cf
+ github.com/docker/go-connections v0.4.0
+ github.com/elgs/gojq v0.0.0-20230628214826-df5c4045598e
+ github.com/jmoiron/jsonq v0.0.0-20150511023944-e874b168d07e
+ github.com/mitchellh/go-homedir v1.1.0
+ github.com/spf13/cobra v0.0.3
+ github.com/spf13/viper v1.1.0
+ github.com/stretchr/testify v1.9.0
+ golang.org/x/crypto v0.55.0
+ golang.org/x/sys v0.47.0
+)
+
+require (
+ github.com/Microsoft/go-winio v0.6.2 // indirect
+ github.com/Sirupsen/logrus v1.0.6 // indirect
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/distribution/reference v0.6.0 // indirect
+ github.com/docker/distribution v2.7.0-rc.0+incompatible // indirect
+ github.com/docker/go-units v0.5.0 // indirect
+ github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
+ github.com/elgs/gosplitargs v0.0.0-20230310130726-7d16e488436a // indirect
+ github.com/fsnotify/fsnotify v1.10.1 // indirect
+ github.com/google/go-cmp v0.6.0 // indirect
+ github.com/hashicorp/hcl v1.0.0 // indirect
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
+ github.com/magiconair/properties v1.18.11 // indirect
+ github.com/mattn/go-runewidth v0.0.16 // indirect
+ github.com/mitchellh/mapstructure v1.5.0 // indirect
+ github.com/opencontainers/go-digest v1.0.0 // indirect
+ github.com/opencontainers/image-spec v1.1.1 // indirect
+ github.com/pelletier/go-toml v1.9.5 // indirect
+ github.com/pkg/errors v0.9.1 // indirect
+ github.com/pmezard/go-difflib v1.0.0 // indirect
+ github.com/rivo/uniseg v0.2.0 // indirect
+ github.com/spf13/afero v1.15.0 // indirect
+ github.com/spf13/cast v1.10.0 // indirect
+ github.com/spf13/jwalterweatherman v1.1.0 // indirect
+ github.com/spf13/pflag v1.0.10 // indirect
+ golang.org/x/net v0.57.0 // indirect
+ golang.org/x/term v0.45.0 // indirect
+ golang.org/x/text v0.41.0 // indirect
+ gopkg.in/yaml.v2 v2.4.0 // indirect
+ gopkg.in/yaml.v3 v3.0.1 // indirect
+)
+
+// The old docker/docker client imports the pre-rename capitalised import path
+// github.com/Sirupsen/logrus, which the modern module declares lowercase. This
+// module-to-module replace remaps it so the legacy dependency still builds.
+replace github.com/Sirupsen/logrus => github.com/sirupsen/logrus v1.0.6
+EOF
+
+cat > /workspace/cn-mod/go.sum <<'EOF'
+github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
+github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
+github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b h1:mimo19zliBX/vSQ6PWWSL9lK8qwHozUj03+zLoEB8O0=
+github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b/go.mod h1:fvzegU4vN3H1qMT+8wDmzjAcDONcgo2/SZ/TyfdUOFs=
+github.com/apcera/termtables v0.0.0-20170405184538-bcbc5dc54055 h1:IkPAzP+QjchKXXFX6LCcpDKa89b/e/0gPCUbQGWtUUY=
+github.com/apcera/termtables v0.0.0-20170405184538-bcbc5dc54055/go.mod h1:8mHYHlOef9UC51cK1/WRvE/iQVM8O8QlYFa8eh8r5I8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
+github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
+github.com/docker/distribution v2.7.0-rc.0+incompatible h1:Nw9tozLpkMnG3IA1zLzsCuwKizII6havt4iIXWWzU2s=
+github.com/docker/distribution v2.7.0-rc.0+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
+github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
+github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
+github.com/docker/docker v1.4.2-0.20170426220831-c57fdb2a14cf h1:aOzCsW90SRkfQJF/BOevAW1GBX6sUex1rw+aM2AK7KE=
+github.com/docker/docker v1.4.2-0.20170426220831-c57fdb2a14cf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
+github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
+github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
+github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
+github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
+github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 h1:UhxFibDNY/bfvqU5CAUmr9zpesgbU6SWc8/B4mflAE4=
+github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
+github.com/elgs/gojq v0.0.0-20230628214826-df5c4045598e h1:IqtrtHGLZWsJUFOirlGqCcEiUuwKvvqNPTfDBe1Js4I=
+github.com/elgs/gojq v0.0.0-20230628214826-df5c4045598e/go.mod h1:pch6Iql7yrlJzBXUherIz3++afXbgTZZTBWBtr+Znjw=
+github.com/elgs/gosplitargs v0.0.0-20230310130726-7d16e488436a h1:vO9yvZPJqJMJJsFdaD+sLkwjZfxzr/0fm22AnW8R6ms=
+github.com/elgs/gosplitargs v0.0.0-20230310130726-7d16e488436a/go.mod h1:1zHirgOZTAY00iwXKAX0NsVKjwkwjSr1P+yqciHfRH0=
+github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
+github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
+github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho=
+github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
+github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
+github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
+github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
+github.com/jmoiron/jsonq v0.0.0-20150511023944-e874b168d07e h1:ZZCvgaRDZg1gC9/1xrsgaJzQUCQgniKtw0xjWywWAOE=
+github.com/jmoiron/jsonq v0.0.0-20150511023944-e874b168d07e/go.mod h1:+rHyWac2R9oAZwFe1wGY2HBzFJJy++RHBg1cU23NkD8=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/magiconair/properties v1.18.11 h1:j5ozYZl0zCjG7ahMDH0GWIobOvvUzT0BdAguG0ViKy0=
+github.com/magiconair/properties v1.18.11/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
+github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
+github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
+github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
+github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
+github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
+github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
+github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
+github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
+github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
+github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
+github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
+github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
+github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
+github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
+github.com/sirupsen/logrus v1.0.6 h1:hcP1GmhGigz/O7h1WVUM5KklBp1JoNS9FggWKdj/j3s=
+github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc=
+github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
+github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
+github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
+github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
+github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
+github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
+github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
+github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
+github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
+github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/spf13/viper v1.1.0 h1:V7OZpY8i3C1x/pDmU0zNNlfVoDz112fSYvtWMjjS3f4=
+github.com/spf13/viper v1.1.0/go.mod h1:A8kyI5cUJhb8N+3pkfONlcEcZbueH6nhAm0Fq7SrnBM=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
+github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M=
+golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis=
+golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE=
+golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU=
+golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
+golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0=
+golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w=
+golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
+golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+EOF
+
+# cd is required: Go discovers the module root from the working directory.
+# Run in a subshell so sourcing this script does not change the caller's cwd.
+(
+ cd /workspace/cn-mod
+ go mod download -modfile /workspace/cn-mod/go.mod
+)
+
+echo "download.sh: Go dependency modules prefetched into the module cache"
diff --git a/ceph--cn.be26489/environment/executable b/ceph--cn.be26489/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..d17313bb5238a40be1f6e6789813089922af9bd2
--- /dev/null
+++ b/ceph--cn.be26489/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b5353eb715f6240275b009d83c7dca431d64efd9890449e16d99c6470d0a4dc
+size 14544310
diff --git a/ceph--cn.be26489/environment/programgym-go.tar.gz b/ceph--cn.be26489/environment/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/ceph--cn.be26489/environment/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/ceph--cn.be26489/environment/workspace.tar.gz b/ceph--cn.be26489/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..14cdcbb44c36c57a1d05caac1f9b2e4f249e5040
--- /dev/null
+++ b/ceph--cn.be26489/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1217ea832dc01af34bc475228c55179bf5b02ecdc83eff1376ba34a0c587a72
+size 11441
diff --git a/ceph--cn.be26489/instruction.md b/ceph--cn.be26489/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/ceph--cn.be26489/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/ceph--cn.be26489/solution/solve.sh b/ceph--cn.be26489/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/ceph--cn.be26489/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/ceph--cn.be26489/task.toml b/ceph--cn.be26489/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..09889f24a4b0873a8fcb791aa5557148e038caa6
--- /dev/null
+++ b/ceph--cn.be26489/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/ceph--cn.be26489"
+description = "Synthetic ProgramGym cleanroom reconstruction task for ceph/cn"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "ceph__cn.be26489"
+repository = "ceph/cn"
+commit = "be26489b35f5bf3107c75fe67faa12469daa0214"
+language = "go"
+difficulty = "easy"
+difficulty_score = 1.5972562829251418
+test_branches = 4
+test_count = 495
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/ceph--cn.be26489/tests/Dockerfile b/ceph--cn.be26489/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..bd5f12bacd787ef39a90a560bc0dec968dcdb06e
--- /dev/null
+++ b/ceph--cn.be26489/tests/Dockerfile
@@ -0,0 +1,66 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/ceph--cn.be26489/tests/blobs/tests/generated_module_01.tar.gz b/ceph--cn.be26489/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..1d22d668f91711f3428d3accce55ddff19af236a
--- /dev/null
+++ b/ceph--cn.be26489/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa15a2383169d8a33ff2342a8021291881a9dbfc9cf47e71406680ff9f9903be
+size 11741
diff --git a/ceph--cn.be26489/tests/blobs/tests/generated_module_02.tar.gz b/ceph--cn.be26489/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..8bb737c3e54b7919c1b8189105fea00bbebb9054
--- /dev/null
+++ b/ceph--cn.be26489/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd67319837b110c08a4f7607c0f03f6ba68560a9ef0dea7ac533ee941c734c75
+size 24695
diff --git a/ceph--cn.be26489/tests/blobs/tests/generated_module_03.tar.gz b/ceph--cn.be26489/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..bdb31a87b20396cd9a8d4f927d7c1de1c07bfc6f
--- /dev/null
+++ b/ceph--cn.be26489/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36168411a92dc2dc0033e849bf721c3471fe8e8f22a6bd2d5aca2580ce4e8b34
+size 19534
diff --git a/ceph--cn.be26489/tests/blobs/tests/generated_module_04.tar.gz b/ceph--cn.be26489/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..57d5159eb1f87a09b1462c748e55de2c6b6f5e98
--- /dev/null
+++ b/ceph--cn.be26489/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:30f51f757e22226831b3ceb58d2a682586deed6ff1ede94a87cdc24c38e7ba94
+size 17482
diff --git a/ceph--cn.be26489/tests/download.sh b/ceph--cn.be26489/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..db51c4f00df31916d038cfcd40e68b3a16e25d0a
--- /dev/null
+++ b/ceph--cn.be26489/tests/download.sh
@@ -0,0 +1,200 @@
+#!/bin/bash
+# ProgramGym download.sh for github.com/ceph/cn (ceph-nano).
+# The repository is a legacy GOPATH/dep project (Gopkg.toml, no go.mod, no
+# vendor/). Its primary product is the `cn` CLI in package main (main.go).
+# We prefetch its Go dependency modules into the module cache using the
+# modern toolchain so that build.sh can compile OFFLINE.
+#
+# Sourced via `source /source_ro/download.sh` in a read-only repo mount with
+# network. This script is fully standalone: it does NOT read any repository
+# file (there is no go.mod/go.sum in the tree; both are generated inline
+# here). It performs no compile, link, test, or packaging steps.
+
+# ---- environment used by build.sh ----
+export GO111MODULE=on
+
+# Fixed literal location where the inline module manifest is generated.
+# build.sh reconstructs the identical files at this path, so the module cache
+# filled here satisfies the offline build.
+export CN_MOD_DIR="/workspace/cn-mod"
+mkdir -p "$CN_MOD_DIR"
+
+# Regenerate the module manifest + checksums. Content is embedded so the
+# script needs no repository file.
+cat > /workspace/cn-mod/go.mod <<'EOF'
+module github.com/ceph/cn
+
+go 1.25.0
+
+require (
+ github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b
+ github.com/apcera/termtables v0.0.0-20170405184538-bcbc5dc54055
+ github.com/docker/docker v1.4.2-0.20170426220831-c57fdb2a14cf
+ github.com/docker/go-connections v0.4.0
+ github.com/elgs/gojq v0.0.0-20230628214826-df5c4045598e
+ github.com/jmoiron/jsonq v0.0.0-20150511023944-e874b168d07e
+ github.com/mitchellh/go-homedir v1.1.0
+ github.com/spf13/cobra v0.0.3
+ github.com/spf13/viper v1.1.0
+ github.com/stretchr/testify v1.9.0
+ golang.org/x/crypto v0.55.0
+ golang.org/x/sys v0.47.0
+)
+
+require (
+ github.com/Microsoft/go-winio v0.6.2 // indirect
+ github.com/Sirupsen/logrus v1.0.6 // indirect
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/distribution/reference v0.6.0 // indirect
+ github.com/docker/distribution v2.7.0-rc.0+incompatible // indirect
+ github.com/docker/go-units v0.5.0 // indirect
+ github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
+ github.com/elgs/gosplitargs v0.0.0-20230310130726-7d16e488436a // indirect
+ github.com/fsnotify/fsnotify v1.10.1 // indirect
+ github.com/google/go-cmp v0.6.0 // indirect
+ github.com/hashicorp/hcl v1.0.0 // indirect
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
+ github.com/magiconair/properties v1.18.11 // indirect
+ github.com/mattn/go-runewidth v0.0.16 // indirect
+ github.com/mitchellh/mapstructure v1.5.0 // indirect
+ github.com/opencontainers/go-digest v1.0.0 // indirect
+ github.com/opencontainers/image-spec v1.1.1 // indirect
+ github.com/pelletier/go-toml v1.9.5 // indirect
+ github.com/pkg/errors v0.9.1 // indirect
+ github.com/pmezard/go-difflib v1.0.0 // indirect
+ github.com/rivo/uniseg v0.2.0 // indirect
+ github.com/spf13/afero v1.15.0 // indirect
+ github.com/spf13/cast v1.10.0 // indirect
+ github.com/spf13/jwalterweatherman v1.1.0 // indirect
+ github.com/spf13/pflag v1.0.10 // indirect
+ golang.org/x/net v0.57.0 // indirect
+ golang.org/x/term v0.45.0 // indirect
+ golang.org/x/text v0.41.0 // indirect
+ gopkg.in/yaml.v2 v2.4.0 // indirect
+ gopkg.in/yaml.v3 v3.0.1 // indirect
+)
+
+// The old docker/docker client imports the pre-rename capitalised import path
+// github.com/Sirupsen/logrus, which the modern module declares lowercase. This
+// module-to-module replace remaps it so the legacy dependency still builds.
+replace github.com/Sirupsen/logrus => github.com/sirupsen/logrus v1.0.6
+EOF
+
+cat > /workspace/cn-mod/go.sum <<'EOF'
+github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
+github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
+github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b h1:mimo19zliBX/vSQ6PWWSL9lK8qwHozUj03+zLoEB8O0=
+github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b/go.mod h1:fvzegU4vN3H1qMT+8wDmzjAcDONcgo2/SZ/TyfdUOFs=
+github.com/apcera/termtables v0.0.0-20170405184538-bcbc5dc54055 h1:IkPAzP+QjchKXXFX6LCcpDKa89b/e/0gPCUbQGWtUUY=
+github.com/apcera/termtables v0.0.0-20170405184538-bcbc5dc54055/go.mod h1:8mHYHlOef9UC51cK1/WRvE/iQVM8O8QlYFa8eh8r5I8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
+github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
+github.com/docker/distribution v2.7.0-rc.0+incompatible h1:Nw9tozLpkMnG3IA1zLzsCuwKizII6havt4iIXWWzU2s=
+github.com/docker/distribution v2.7.0-rc.0+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
+github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
+github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
+github.com/docker/docker v1.4.2-0.20170426220831-c57fdb2a14cf h1:aOzCsW90SRkfQJF/BOevAW1GBX6sUex1rw+aM2AK7KE=
+github.com/docker/docker v1.4.2-0.20170426220831-c57fdb2a14cf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
+github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
+github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
+github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
+github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
+github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 h1:UhxFibDNY/bfvqU5CAUmr9zpesgbU6SWc8/B4mflAE4=
+github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
+github.com/elgs/gojq v0.0.0-20230628214826-df5c4045598e h1:IqtrtHGLZWsJUFOirlGqCcEiUuwKvvqNPTfDBe1Js4I=
+github.com/elgs/gojq v0.0.0-20230628214826-df5c4045598e/go.mod h1:pch6Iql7yrlJzBXUherIz3++afXbgTZZTBWBtr+Znjw=
+github.com/elgs/gosplitargs v0.0.0-20230310130726-7d16e488436a h1:vO9yvZPJqJMJJsFdaD+sLkwjZfxzr/0fm22AnW8R6ms=
+github.com/elgs/gosplitargs v0.0.0-20230310130726-7d16e488436a/go.mod h1:1zHirgOZTAY00iwXKAX0NsVKjwkwjSr1P+yqciHfRH0=
+github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
+github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
+github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho=
+github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
+github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
+github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
+github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
+github.com/jmoiron/jsonq v0.0.0-20150511023944-e874b168d07e h1:ZZCvgaRDZg1gC9/1xrsgaJzQUCQgniKtw0xjWywWAOE=
+github.com/jmoiron/jsonq v0.0.0-20150511023944-e874b168d07e/go.mod h1:+rHyWac2R9oAZwFe1wGY2HBzFJJy++RHBg1cU23NkD8=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/magiconair/properties v1.18.11 h1:j5ozYZl0zCjG7ahMDH0GWIobOvvUzT0BdAguG0ViKy0=
+github.com/magiconair/properties v1.18.11/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
+github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
+github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
+github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
+github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
+github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
+github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
+github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
+github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
+github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
+github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
+github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
+github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
+github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
+github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
+github.com/sirupsen/logrus v1.0.6 h1:hcP1GmhGigz/O7h1WVUM5KklBp1JoNS9FggWKdj/j3s=
+github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc=
+github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
+github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
+github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
+github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
+github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
+github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
+github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
+github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
+github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
+github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/spf13/viper v1.1.0 h1:V7OZpY8i3C1x/pDmU0zNNlfVoDz112fSYvtWMjjS3f4=
+github.com/spf13/viper v1.1.0/go.mod h1:A8kyI5cUJhb8N+3pkfONlcEcZbueH6nhAm0Fq7SrnBM=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
+github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M=
+golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis=
+golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE=
+golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU=
+golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
+golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0=
+golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w=
+golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
+golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+EOF
+
+# cd is required: Go discovers the module root from the working directory.
+# Run in a subshell so sourcing this script does not change the caller's cwd.
+(
+ cd /workspace/cn-mod
+ go mod download -modfile /workspace/cn-mod/go.mod
+)
+
+echo "download.sh: Go dependency modules prefetched into the module cache"
diff --git a/ceph--cn.be26489/tests/executable b/ceph--cn.be26489/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..d17313bb5238a40be1f6e6789813089922af9bd2
--- /dev/null
+++ b/ceph--cn.be26489/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b5353eb715f6240275b009d83c7dca431d64efd9890449e16d99c6470d0a4dc
+size 14544310
diff --git a/ceph--cn.be26489/tests/programgym-go.tar.gz b/ceph--cn.be26489/tests/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/ceph--cn.be26489/tests/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/ceph--cn.be26489/tests/programgym_evaluator.py b/ceph--cn.be26489/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/ceph--cn.be26489/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/ceph--cn.be26489/tests/programgym_task.json b/ceph--cn.be26489/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..4fe71973159f61dc4b854df1100f5e612b1d9371
--- /dev/null
+++ b/ceph--cn.be26489/tests/programgym_task.json
@@ -0,0 +1,679 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_completion.test_completion_accepts_extra_positional_args",
+ "eval.tests.test_completion.test_completion_debug_helper_present",
+ "eval.tests.test_completion.test_completion_emacs_modeline_header",
+ "eval.tests.test_completion.test_completion_embeds_each_subcommand_tower",
+ "eval.tests.test_completion.test_completion_flag_in_use_line_disabled",
+ "eval.tests.test_completion.test_completion_generates_bash_script_header",
+ "eval.tests.test_completion.test_completion_help_text",
+ "eval.tests.test_completion.test_completion_init_completion_helper_present",
+ "eval.tests.test_completion.test_completion_mentions_command_names",
+ "eval.tests.test_completion.test_completion_output_stable_across_launches",
+ "eval.tests.test_completion.test_completion_root_handler_and_registration",
+ "eval.tests.test_completion.test_completion_script_handles_help_flag",
+ "eval.tests.test_completion.test_completion_script_has_stdout_reply_handler",
+ "eval.tests.test_completion.test_completion_script_is_large_and_well_formed",
+ "eval.tests.test_completion.test_completion_script_word_indexing_helper",
+ "eval.tests.test_completion.test_completion_short_help_flag",
+ "eval.tests.test_completion.test_completion_written_to_stdout_only",
+ "eval.tests.test_docker.test_cluster_ls_client_newer_downgrades_api_version[newer]",
+ "eval.tests.test_docker.test_cluster_ls_closed_tcp_port_reaches_getdocker_error",
+ "eval.tests.test_docker.test_cluster_ls_malformed_host_hits_newenvclient_error",
+ "eval.tests.test_docker.test_cluster_ls_mock_success_reaches_getdocker_success[ok]",
+ "eval.tests.test_docker.test_cluster_ls_run_never_emits_usage_on_getdocker_fatal",
+ "eval.tests.test_docker.test_cluster_ls_too_new_downgrades_api_version[toonew]",
+ "eval.tests.test_docker.test_cluster_ls_without_daemon_reaches_getdocker_error",
+ "eval.tests.test_root_entry.test_all_registered_subcommands_present",
+ "eval.tests.test_root_entry.test_cli_description_banner_is_ascii_art",
+ "eval.tests.test_root_entry.test_close_typo_suggests_version",
+ "eval.tests.test_root_entry.test_cluster_typo_suggests_cluster",
+ "eval.tests.test_root_entry.test_config_disables_startup_update_notification",
+ "eval.tests.test_root_entry.test_config_file_notice_emitted_on_stderr",
+ "eval.tests.test_root_entry.test_config_read_is_stable_across_processes",
+ "eval.tests.test_root_entry.test_double_dash_ends_flags_and_shows_root_help",
+ "eval.tests.test_root_entry.test_far_typo_has_no_suggestion",
+ "eval.tests.test_root_entry.test_help_command_hidden",
+ "eval.tests.test_root_entry.test_help_equivalence_no_args_vs_help",
+ "eval.tests.test_root_entry.test_hidden_help_absent_from_available_commands",
+ "eval.tests.test_root_entry.test_long_help_flag_prints_root_help",
+ "eval.tests.test_root_entry.test_no_args_prints_root_help",
+ "eval.tests.test_root_entry.test_root_command_use_is_cn",
+ "eval.tests.test_root_entry.test_s3_command_name_not_flagged_as_typo_target_only",
+ "eval.tests.test_root_entry.test_short_help_flag_prints_root_help",
+ "eval.tests.test_root_entry.test_stdout_stderr_separation_for_help",
+ "eval.tests.test_root_entry.test_subcommands_listed_in_registration_order",
+ "eval.tests.test_root_entry.test_success_path_stderr_has_no_error",
+ "eval.tests.test_root_entry.test_two_independent_config_dirs_report_their_own_path",
+ "eval.tests.test_root_entry.test_unknown_command_error_in_stdout",
+ "eval.tests.test_root_entry.test_unknown_command_fails_with_message",
+ "eval.tests.test_root_entry.test_unknown_shorthand_flag_rejected",
+ "eval.tests.test_root_entry.test_version_clean_when_config_present",
+ "eval.tests.test_version.test_version_exit_zero_not_affected_by_config",
+ "eval.tests.test_version.test_version_help_flag_equivalence",
+ "eval.tests.test_version.test_version_help_text",
+ "eval.tests.test_version.test_version_rejects_extra_arg",
+ "eval.tests.test_version.test_version_rejects_multiple_args",
+ "eval.tests.test_version.test_version_rejects_unknown_long_flag",
+ "eval.tests.test_version.test_version_reports_identity",
+ "eval.tests.test_version.test_version_short_help_flag",
+ "eval.tests.test_version.test_version_single_stdout_line"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_utils_helpers.test_start_flavor_socket_data_hits_socket_branch_via_config",
+ "reasons": [
+ {
+ "id": "try_except_swallow",
+ "message": "pytest test swallows exceptions in an except handler",
+ "path": "eval/tests/test_utils_helpers.py",
+ "repair_hint": "Do not swallow exceptions; let pytest fail or assert the exact expected exception.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_utils_helpers.test_start_socket_path_reports_socket_file_type",
+ "reasons": [
+ {
+ "id": "try_except_swallow",
+ "message": "pytest test swallows exceptions in an except handler",
+ "path": "eval/tests/test_utils_helpers.py",
+ "repair_hint": "Do not swallow exceptions; let pytest fail or assert the exact expected exception.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_arg_validation.test_enter_requires_exactly_one_cluster",
+ "eval.tests.test_arg_validation.test_exact_args_rejection_message_content[logs-3]",
+ "eval.tests.test_arg_validation.test_exact_args_rejection_message_content[start-0]",
+ "eval.tests.test_arg_validation.test_exact_args_rejection_message_content[status-2]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[0-enter-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[0-logs-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[0-purge-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[0-restart-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[0-start-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[0-status-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[0-stop-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[2-enter-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[2-logs-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[2-purge-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[2-restart-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[2-start-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[2-status-1]",
+ "eval.tests.test_arg_validation.test_exact_args_validation[2-stop-1]",
+ "eval.tests.test_arg_validation.test_no_args_commands_reject_positional[args0-unknown command \"extra\" for \"cn cluster ls\"]",
+ "eval.tests.test_arg_validation.test_no_args_commands_reject_positional[args1-unknown command \"extra\" for \"cn kube\"]",
+ "eval.tests.test_arg_validation.test_no_args_commands_reject_positional[args2-unknown command \"a\" for \"cn cluster ls\"]",
+ "eval.tests.test_arg_validation.test_parent_cluster_requires_a_subcommand",
+ "eval.tests.test_arg_validation.test_parent_cluster_with_unknown_subcommand_shows_help",
+ "eval.tests.test_config_behavior.test_config_directive_preserves_update_offline_default",
+ "eval.tests.test_config_behavior.test_cwd_config_affects_flavor_error_before_docker",
+ "eval.tests.test_config_behavior.test_cwd_config_custom_image_alias_is_parsed",
+ "eval.tests.test_config_behavior.test_cwd_config_defines_a_usable_flavor",
+ "eval.tests.test_config_behavior.test_cwd_config_is_reported_as_used",
+ "eval.tests.test_config_helpers_matrix.test_flavors_ls_use_default_inherits_memory_and_cpu",
+ "eval.tests.test_config_helpers_matrix.test_flavors_show_nested_ceph_conf_map",
+ "eval.tests.test_config_helpers_matrix.test_flavors_show_use_default_with_data_and_size",
+ "eval.tests.test_config_helpers_matrix.test_image_alias_override_replaces_builtin",
+ "eval.tests.test_container_orchestration.test_enter_missing_cluster_reports_not_exists",
+ "eval.tests.test_container_orchestration.test_logs_missing_cluster_reports_not_exists",
+ "eval.tests.test_container_orchestration.test_logs_running_cluster_passes_through_cat_missing_file",
+ "eval.tests.test_container_orchestration.test_logs_running_cluster_prints_sanitised_exec_stdout",
+ "eval.tests.test_container_orchestration.test_ls_empty_inventory_renders_empty_table",
+ "eval.tests.test_container_orchestration.test_ls_present_inventory_renders_data_row_exact",
+ "eval.tests.test_container_orchestration.test_purge_running_cluster_data_dir_is_removed",
+ "eval.tests.test_container_orchestration.test_purge_running_cluster_delete_all_removes_image",
+ "eval.tests.test_container_orchestration.test_purge_running_cluster_no_data_dir",
+ "eval.tests.test_container_orchestration.test_restart_missing_cluster_reports_not_exists",
+ "eval.tests.test_container_orchestration.test_start_custom_flavor_reports_config_memory_cpu",
+ "eval.tests.test_container_orchestration.test_start_custom_image_flag_overrides_image_in_create",
+ "eval.tests.test_container_orchestration.test_start_data_empty_dir_reaches_create",
+ "eval.tests.test_container_orchestration.test_start_data_empty_dir_with_invalid_size_fails_tobytes",
+ "eval.tests.test_container_orchestration.test_start_data_empty_dir_with_valid_size_reaches_create",
+ "eval.tests.test_container_orchestration.test_start_data_nonempty_dir_rejected",
+ "eval.tests.test_container_orchestration.test_start_data_nonexistent_path_reports_filetype_error",
+ "eval.tests.test_container_orchestration.test_start_data_regular_file_rejected",
+ "eval.tests.test_container_orchestration.test_start_default_reaches_runcontainer_assembly",
+ "eval.tests.test_container_orchestration.test_start_image_config_alias_resolves_to_configured_name",
+ "eval.tests.test_container_orchestration.test_status_missing_cluster_reports_not_exists",
+ "eval.tests.test_container_orchestration.test_stop_missing_cluster_reports_not_exists",
+ "eval.tests.test_container_orchestration.test_stop_running_cluster_stops_container",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[enter]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[logs]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[ls]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[restart]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[start]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[start_data_size]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[start_flavor]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[start_image]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[start_workdir]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[status]",
+ "eval.tests.test_docker_reach.test_lifecycle_command_reaches_docker[stop]",
+ "eval.tests.test_docker_reach.test_status_reports_config_on_stderr",
+ "eval.tests.test_flavor_image_listers.test_flavors_ls_includes_custom_and_uses_their_values",
+ "eval.tests.test_flavor_image_listers.test_flavors_ls_reports_builtin_memory_and_cpu",
+ "eval.tests.test_flavor_image_listers.test_flavors_ls_use_default_flavor_inherits_memory_from_base",
+ "eval.tests.test_flavor_image_listers.test_flavors_show_builtin_flavor_exact_json",
+ "eval.tests.test_flavor_image_listers.test_flavors_show_custom_flavor_exact_json",
+ "eval.tests.test_flavor_image_listers.test_flavors_show_default_prints_default_parameters",
+ "eval.tests.test_flavor_image_listers.test_flavors_show_missing_flavor_prints_empty_object",
+ "eval.tests.test_flavor_image_listers.test_flavors_show_use_default_flavor_shows_only_stored_keys",
+ "eval.tests.test_flavor_image_listers.test_image_show_aliases_includes_custom_config_alias",
+ "eval.tests.test_flavor_image_listers.test_image_show_aliases_lists_builtin_aliases",
+ "eval.tests.test_flavor_image_listers.test_image_show_aliases_never_lists_default_as_alias",
+ "eval.tests.test_flavor_purge.test_purge_confirmed_all_reaches_docker",
+ "eval.tests.test_flavor_purge.test_purge_confirmed_reaches_docker",
+ "eval.tests.test_flavor_purge.test_purge_prompts_warning_before_flavor_logic",
+ "eval.tests.test_flavor_purge.test_purge_refuses_without_confirmation[extra_args0]",
+ "eval.tests.test_flavor_purge.test_purge_refuses_without_confirmation[extra_args1]",
+ "eval.tests.test_flavor_purge.test_start_reports_config_on_stderr",
+ "eval.tests.test_flavor_purge.test_start_with_default_flavor_reaches_docker",
+ "eval.tests.test_flavor_purge.test_start_with_flavor_long_form",
+ "eval.tests.test_flavor_purge.test_start_with_missing_flavor_fails_before_docker",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[enter]",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[logs]",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[ls]",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[purge]",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[restart]",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[start]",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[status]",
+ "eval.tests.test_help_outputs.test_each_subcommand_is_listed_in_cluster_help[stop]",
+ "eval.tests.test_help_outputs.test_help_is_identical_to_golden_even_with_stray_flag_paths[args0-cluster_help.txt]",
+ "eval.tests.test_help_outputs.test_help_is_identical_to_golden_even_with_stray_flag_paths[args1-stop_help.txt]",
+ "eval.tests.test_help_outputs.test_help_is_identical_to_golden_even_with_stray_flag_paths[args2-kube_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args0-cluster_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args1-start_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args2-stop_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args3-status_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args4-restart_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args5-logs_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args6-purge_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args7-enter_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args8-ls_help.txt]",
+ "eval.tests.test_help_outputs.test_help_reports_used_config_on_stderr[args9-kube_help.txt]",
+ "eval.tests.test_help_outputs.test_root_help_matches_golden[args0-root_help.txt]",
+ "eval.tests.test_help_outputs.test_root_help_matches_golden[args1-root_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args0-cluster_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args1-start_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args2-stop_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args3-status_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args4-restart_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args5-logs_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args6-purge_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args7-enter_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args8-ls_help.txt]",
+ "eval.tests.test_help_outputs.test_subcommand_help_matches_golden[args9-kube_help.txt]",
+ "eval.tests.test_kube_template.test_kube_help_matches_golden",
+ "eval.tests.test_kube_template.test_kube_statefulset_env_pairs",
+ "eval.tests.test_kube_template.test_kube_stderr_reports_config",
+ "eval.tests.test_kube_template.test_kube_template_claim_names",
+ "eval.tests.test_kube_template.test_kube_template_declared_kinds",
+ "eval.tests.test_kube_template.test_kube_template_matches_golden",
+ "eval.tests.test_kube_template.test_kube_template_service_spec",
+ "eval.tests.test_utils_helpers.test_start_bare_number_size_fails_unit_parse",
+ "eval.tests.test_utils_helpers.test_start_config_data_regular_file_rejected",
+ "eval.tests.test_utils_helpers.test_start_config_declared_size_reaches_create",
+ "eval.tests.test_utils_helpers.test_start_created_leftover_runs_remove_then_create",
+ "eval.tests.test_utils_helpers.test_start_fifo_path_hits_unknown_file_type_error",
+ "eval.tests.test_utils_helpers.test_start_flavor_socket_data_hits_socket_branch_via_config",
+ "eval.tests.test_utils_helpers.test_start_multiword_size_fails_unit_parse",
+ "eval.tests.test_utils_helpers.test_start_socket_path_reports_socket_file_type",
+ "eval.tests.test_utils_helpers.test_start_valid_size_units_reach_create[1KB]",
+ "eval.tests.test_utils_helpers.test_start_valid_size_units_reach_create[1KiB]",
+ "eval.tests.test_utils_helpers.test_start_valid_size_units_reach_create[1MiB]",
+ "eval.tests.test_utils_helpers.test_start_valid_size_units_reach_create[1TB]",
+ "eval.tests.test_utils_helpers.test_start_valid_size_units_reach_create[512MB]",
+ "eval.tests.test_utils_helpers.test_start_zero_bytesize_hits_wrong_unit_branch",
+ "eval.tests.test_utils_helpers.test_status_text_binary_not_running[created]",
+ "eval.tests.test_utils_helpers.test_status_text_binary_not_running[exited]",
+ "eval.tests.test_version_update_notify.test_update_notification_is_disabled_offline",
+ "eval.tests.test_version_update_notify.test_version_banner_exact",
+ "eval.tests.test_version_update_notify.test_version_is_deterministic_across_runs",
+ "eval.tests.test_version_update_notify.test_version_run_reports_config_on_stderr"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_config_validation.test_flavors_ls_broken_flavor_absent_is_ok",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_config_validation.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_config_validation.test_image_show_aliases_complete_alias_is_ok",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_config_validation.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_config_validation.test_flavors_ls_broken_flavor_absent_is_ok",
+ "eval.tests.test_config_validation.test_flavors_ls_missing_both_memory_first",
+ "eval.tests.test_config_validation.test_flavors_ls_missing_cpu_count_fatal",
+ "eval.tests.test_config_validation.test_flavors_ls_missing_cpu_count_when_data_set",
+ "eval.tests.test_config_validation.test_flavors_ls_missing_memory_size_fatal",
+ "eval.tests.test_config_validation.test_flavors_ls_missing_memory_size_when_only_cpu_present",
+ "eval.tests.test_config_validation.test_image_show_aliases_complete_alias_is_ok",
+ "eval.tests.test_config_validation.test_image_show_aliases_missing_image_name_custom_alias_fatal",
+ "eval.tests.test_config_validation.test_image_show_aliases_missing_image_name_fatal",
+ "eval.tests.test_flavors_config.test_flavors_group_no_subcommand_exit_zero",
+ "eval.tests.test_flavors_config.test_flavors_ls_contains_only_expected_builtin_flavors",
+ "eval.tests.test_flavors_config.test_flavors_ls_custom_flavor_cpu_only_inherits_default_memory",
+ "eval.tests.test_flavors_config.test_flavors_ls_custom_flavor_inherits_default_memory",
+ "eval.tests.test_flavors_config.test_flavors_ls_custom_flavor_no_default_inheritance",
+ "eval.tests.test_flavors_config.test_flavors_ls_default_builtins",
+ "eval.tests.test_flavors_config.test_flavors_ls_default_override_applies_to_inheriting_flavor",
+ "eval.tests.test_flavors_config.test_flavors_ls_default_override_value",
+ "eval.tests.test_flavors_config.test_flavors_ls_empty_custom_table_dropped",
+ "eval.tests.test_flavors_config.test_flavors_ls_exit_zero_with_update_disabled",
+ "eval.tests.test_flavors_config.test_flavors_ls_large_builtin",
+ "eval.tests.test_flavors_config.test_flavors_ls_medium_builtin",
+ "eval.tests.test_flavors_config.test_flavors_ls_unknown_extra_argument_error",
+ "eval.tests.test_flavors_config.test_flavors_show_ceph_conf_nested_map",
+ "eval.tests.test_flavors_config.test_flavors_show_custom_flavor_values",
+ "eval.tests.test_flavors_config.test_flavors_show_custom_no_inherited_defaults_present",
+ "eval.tests.test_flavors_config.test_flavors_show_data_size_workdir_privileged",
+ "eval.tests.test_flavors_config.test_flavors_show_default_full_document",
+ "eval.tests.test_flavors_config.test_flavors_show_default_original_context",
+ "eval.tests.test_flavors_config.test_flavors_show_default_reflects_override",
+ "eval.tests.test_flavors_config.test_flavors_show_empty_custom_table_empty",
+ "eval.tests.test_flavors_config.test_flavors_show_huge_cpu_and_memory",
+ "eval.tests.test_flavors_config.test_flavors_show_huge_use_default_flag",
+ "eval.tests.test_flavors_config.test_flavors_show_large_builtin_values",
+ "eval.tests.test_flavors_config.test_flavors_show_medium_builtin_values",
+ "eval.tests.test_flavors_config.test_flavors_show_missing_argument_error",
+ "eval.tests.test_flavors_config.test_flavors_show_no_default_flavor_excludes_use_default_inherit",
+ "eval.tests.test_flavors_config.test_flavors_show_too_many_arguments_error",
+ "eval.tests.test_flavors_config.test_flavors_show_unknown_flavor_prints_empty_object",
+ "eval.tests.test_flavors_config.test_flavors_unknown_bare_subcommand_shows_help",
+ "eval.tests.test_image_commands.test_config_file_load_message_stderr",
+ "eval.tests.test_image_commands.test_config_update_off_suppresses_notification",
+ "eval.tests.test_image_commands.test_flavors_help_lists_subcommands",
+ "eval.tests.test_image_commands.test_image_group_no_subcommand_exit_zero",
+ "eval.tests.test_image_commands.test_image_help_lists_subcommands",
+ "eval.tests.test_image_commands.test_image_ls_all_flag_counts_then_lists_tags",
+ "eval.tests.test_image_commands.test_image_ls_all_flag_multiple_pages",
+ "eval.tests.test_image_commands.test_image_ls_docker_and_redhat_dispatched_by_registry_env",
+ "eval.tests.test_image_commands.test_image_ls_docker_lists_controlled_tags",
+ "eval.tests.test_image_commands.test_image_ls_docker_order_preserved",
+ "eval.tests.test_image_commands.test_image_ls_docker_single_tag",
+ "eval.tests.test_image_commands.test_image_ls_extra_argument_error",
+ "eval.tests.test_image_commands.test_image_ls_redhat_lists_controlled_tags",
+ "eval.tests.test_image_commands.test_image_ls_redhat_single_tag",
+ "eval.tests.test_image_commands.test_image_show_aliases_custom_alias_added",
+ "eval.tests.test_image_commands.test_image_show_aliases_custom_plus_builtin",
+ "eval.tests.test_image_commands.test_image_show_aliases_default_builtins",
+ "eval.tests.test_image_commands.test_image_show_aliases_excludes_default_entry",
+ "eval.tests.test_image_commands.test_image_show_aliases_extra_argument_error",
+ "eval.tests.test_image_commands.test_image_show_aliases_override_builtin_image_name",
+ "eval.tests.test_image_commands.test_image_update_accepts_alias_but_still_needs_docker",
+ "eval.tests.test_image_commands.test_image_update_help_lists_usage",
+ "eval.tests.test_image_commands.test_image_update_missing_argument_error",
+ "eval.tests.test_image_commands.test_image_update_requires_running_docker",
+ "eval.tests.test_image_commands.test_image_update_too_many_arguments_error",
+ "eval.tests.test_image_commands.test_root_help_shows_description",
+ "eval.tests.test_image_commands.test_root_help_usage_exact_block",
+ "eval.tests.test_image_commands.test_update_check_extra_argument_error",
+ "eval.tests.test_image_commands.test_version_command_prints_version",
+ "eval.tests.test_image_update_docker.test_image_update_downloaded_newer_image",
+ "eval.tests.test_image_update_docker.test_image_update_downloaded_newer_image_custom_name",
+ "eval.tests.test_image_update_docker.test_image_update_earlier_marker_does_not_print",
+ "eval.tests.test_image_update_docker.test_image_update_empty_pull_body_event_nil",
+ "eval.tests.test_image_update_docker.test_image_update_events_with_neither_status_print_nothing",
+ "eval.tests.test_image_update_docker.test_image_update_help_lists_usage_and_long",
+ "eval.tests.test_image_update_docker.test_image_update_image_absent_skips_updateNano",
+ "eval.tests.test_image_update_docker.test_image_update_invalid_json_pull_stream_fatal",
+ "eval.tests.test_image_update_docker.test_image_update_only_last_event_marker_is_inspected",
+ "eval.tests.test_image_update_docker.test_image_update_pull_http_error_fatal",
+ "eval.tests.test_image_update_docker.test_image_update_rejects_two_arguments",
+ "eval.tests.test_image_update_docker.test_image_update_requires_exactly_one_argument",
+ "eval.tests.test_image_update_docker.test_image_update_up_to_date",
+ "eval.tests.test_update_check.test_startup_disabled_runs_no_version_check",
+ "eval.tests.test_update_check.test_startup_notification_default_config_runs_check",
+ "eval.tests.test_update_check.test_startup_notification_prints_version_check_content",
+ "eval.tests.test_update_check.test_startup_reminder_wait_period_configured_still_runs_check",
+ "eval.tests.test_update_check.test_startup_reminder_wait_period_zero_runs_check",
+ "eval.tests.test_update_check.test_update_check_arm64_asset_url_matches_happy_amd64",
+ "eval.tests.test_update_check.test_update_check_empty_array_tag_query_fatal",
+ "eval.tests.test_update_check.test_update_check_equal_tag_no_banner",
+ "eval.tests.test_update_check.test_update_check_extra_argument_error",
+ "eval.tests.test_update_check.test_update_check_html_url_fallback_exact",
+ "eval.tests.test_update_check.test_update_check_html_url_query_absent_fatal",
+ "eval.tests.test_update_check.test_update_check_invalid_json_fatal",
+ "eval.tests.test_update_check.test_update_check_message_early_return",
+ "eval.tests.test_update_check.test_update_check_missing_assets_field_fatal",
+ "eval.tests.test_update_check.test_update_check_non_string_tag_falls_back_to_html_url",
+ "eval.tests.test_update_check.test_update_check_valid_does_not_print_html_fallback",
+ "eval.tests.test_update_check.test_update_check_valid_newer_version_banner_exact",
+ "eval.tests.test_update_check.test_update_check_valid_reports_current_and_latest_version"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_s3_arg_validation.test_get_range_message",
+ "eval.tests.test_s3_arg_validation.test_ls_range_message",
+ "eval.tests.test_s3_arg_validation.test_mb_exact_three_message",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[cp]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[del]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[du]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[get]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[info]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[la]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[ls]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[mb]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[mv]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[put]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[rb]",
+ "eval.tests.test_s3_arg_validation.test_minimum_valid_arg_count_is_accepted_to_dispatch[sync]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[cp]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[del]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[du]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[get]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[info]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[la]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[ls]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[mb]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[mv]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[put]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[rb]",
+ "eval.tests.test_s3_arg_validation.test_too_few_args_rejected[sync]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[cp]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[del]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[du]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[get]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[info]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[la]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[ls]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[mb]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[mv]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[put]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[rb]",
+ "eval.tests.test_s3_arg_validation.test_too_many_args_rejected[sync]",
+ "eval.tests.test_s3_arg_validation.test_usage_page_lists_same_flags_on_validation",
+ "eval.tests.test_s3_boolean_flag_forms.test_debug_bound_value_form_across_leaves_reaches_connection[cp_zero]",
+ "eval.tests.test_s3_boolean_flag_forms.test_debug_bound_value_form_across_leaves_reaches_connection[del_short_false]",
+ "eval.tests.test_s3_boolean_flag_forms.test_debug_bound_value_form_across_leaves_reaches_connection[du_long_false]",
+ "eval.tests.test_s3_boolean_flag_forms.test_debug_bound_value_form_across_leaves_reaches_connection[mv_long_true]",
+ "eval.tests.test_s3_boolean_flag_forms.test_debug_bound_value_form_across_leaves_reaches_connection[rb_short_true]",
+ "eval.tests.test_s3_boolean_flag_forms.test_debug_bound_value_form_across_leaves_reaches_connection[sync_one]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_shorthand_value_reaches_connection[continue_sh]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_shorthand_value_reaches_connection[debug_sh]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_shorthand_value_reaches_connection[force_sh]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_shorthand_value_reaches_connection[skip_sh]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_value_does_not_count_as_positional",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_value_form_reaches_connection[continue_false]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_value_form_reaches_connection[debug_false]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_value_form_reaches_connection[force_true]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_bound_value_form_reaches_connection[skip_false]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_invalid_debug_value_error",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_invalid_skip_value_error",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_parsebool_accepted_values[cap_true]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_parsebool_accepted_values[false]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_parsebool_accepted_values[one]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_parsebool_accepted_values[short_t]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_parsebool_accepted_values[true]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_parsebool_accepted_values[upper_true]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_parsebool_accepted_values[zero]",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_repeated_force_long_with_bound_reaches_connection",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_skip_space_separated_token_is_positional",
+ "eval.tests.test_s3_boolean_flag_forms.test_get_space_separated_debug_token_is_positional_valid_arity",
+ "eval.tests.test_s3_boolean_flag_forms.test_la_rejects_unknown_skip_flag",
+ "eval.tests.test_s3_boolean_flag_forms.test_la_space_separated_debug_token_is_positional",
+ "eval.tests.test_s3_config.test_config_file_is_discovered_from_cwd",
+ "eval.tests.test_s3_config.test_config_suppression_holds_across_transient_network_absence",
+ "eval.tests.test_s3_config.test_update_notification_suppressed_by_config",
+ "eval.tests.test_s3_docker_error.test_cluster_name_is_prefixed_into_container_name",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[cp-args0]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[del-args1]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[du-args2]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[get-args3]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[info-args4]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[la-args5]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[ls-args6]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[mb-args7]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[mv-args8]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[put-args9]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[rb-args10]",
+ "eval.tests.test_s3_docker_error.test_valid_arity_reaches_docker_connection_failure[sync-args11]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_bound_help_false_disables_help_then_arity_error",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_bound_help_false_then_valid_arity_dispatches",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_bound_help_true_prints_help",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_bound_value_complement_reaches_connection[continue_true]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_bound_value_complement_reaches_connection[debug_true]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_bound_value_complement_reaches_connection[force_false]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_bound_value_complement_reaches_connection[skip_true]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_interspersed_toggle_flags_reach_connection[after_all]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_interspersed_toggle_flags_reach_connection[after_bound]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_interspersed_toggle_flags_reach_connection[between]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_interspersed_toggle_flags_reach_connection[between_bound]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_repeated_bound_value_last_wins_reaches_connection[continue]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_repeated_bound_value_last_wins_reaches_connection[force]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_get_repeated_bound_value_last_wins_reaches_connection[skip]",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_la_bound_debug_true_reaches_connection",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_la_bound_help_false_disables_help_then_arity_error",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_la_bound_help_true_prints_help",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_la_interspersed_bound_debug_reaches_connection",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_la_space_separated_debug_long_token_is_sole_positional_dispatch",
+ "eval.tests.test_s3_flag_placement_and_help_tristate.test_la_space_separated_debug_short_token_is_sole_positional_dispatch",
+ "eval.tests.test_s3_flags.test_debug_flag_does_not_change_arg_validation",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[cp-args7]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[del-args4]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[du-args5]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[info-args6]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[la-args3]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[ls-args2]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[mb-args0]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[mv-args8]",
+ "eval.tests.test_s3_flags.test_debug_flag_is_accepted_and_reaches_connection[rb-args1]",
+ "eval.tests.test_s3_flags.test_get_continue_flag_reaches_connection",
+ "eval.tests.test_s3_flags.test_get_force_flag_reaches_connection",
+ "eval.tests.test_s3_flags.test_get_skip_flag_reaches_connection",
+ "eval.tests.test_s3_flags.test_get_unknown_flag_not_in_help_set_rejected",
+ "eval.tests.test_s3_flags.test_unknown_long_flag_rejected",
+ "eval.tests.test_s3_flags.test_unknown_shorthand_flag_rejected",
+ "eval.tests.test_s3_parent.test_s3_dash_dash_help_prints_parent_help",
+ "eval.tests.test_s3_parent.test_s3_dash_h_help_prints_parent_help",
+ "eval.tests.test_s3_parent.test_s3_help_lists_every_subcommand",
+ "eval.tests.test_s3_parent.test_s3_no_args_prints_parent_help_and_exits_zero",
+ "eval.tests.test_s3_parent.test_s3_parent_rejects_seen_as_flags_only_on_subcommands",
+ "eval.tests.test_s3_parent.test_s3_unknown_subcommand_falls_back_to_parent_help",
+ "eval.tests.test_s3_parent.test_s3_unknown_subcommand_with_arg_falls_back_to_parent_help",
+ "eval.tests.test_s3_reachability_edges.test_double_dash_separator_leaf_dispatch[la]",
+ "eval.tests.test_s3_reachability_edges.test_double_dash_separator_leaf_dispatch[mb]",
+ "eval.tests.test_s3_reachability_edges.test_empty_string_cluster_name_reaches_connection",
+ "eval.tests.test_s3_reachability_edges.test_get_combined_flags_reach_connection[continue_skip_force]",
+ "eval.tests.test_s3_reachability_edges.test_get_combined_flags_reach_connection[debug_force]",
+ "eval.tests.test_s3_reachability_edges.test_get_combined_flags_reach_connection[force_continue]",
+ "eval.tests.test_s3_reachability_edges.test_get_combined_flags_reach_connection[force_skip]",
+ "eval.tests.test_s3_reachability_edges.test_get_combined_flags_reach_connection[skip_continue]",
+ "eval.tests.test_s3_reachability_edges.test_get_double_dash_help_precedence",
+ "eval.tests.test_s3_reachability_edges.test_get_minus_d_debug_too_few_args",
+ "eval.tests.test_s3_reachability_edges.test_get_over_arity_with_flags_present",
+ "eval.tests.test_s3_reachability_edges.test_help_flag_takes_precedence_over_dispatch",
+ "eval.tests.test_s3_reachability_edges.test_la_unknown_shorthand_rejected",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[cp]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[del]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[du]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[get]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[info]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[la]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[ls]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[mb]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[mv]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[put]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[rb]",
+ "eval.tests.test_s3_reachability_edges.test_leaf_dash_h_help_page[sync]",
+ "eval.tests.test_s3_reachability_edges.test_parent_double_dash_with_args_shows_parent_help",
+ "eval.tests.test_s3_reachability_edges.test_repeated_debug_flag_reaches_connection",
+ "eval.tests.test_s3_reachability_edges.test_utf8_cluster_name_reaches_connection",
+ "eval.tests.test_s3_subcommand_help.test_cp_help_documents_two_objects",
+ "eval.tests.test_s3_subcommand_help.test_get_help_flag_order_skips_force_continue_debug",
+ "eval.tests.test_s3_subcommand_help.test_get_help_skip_default_true",
+ "eval.tests.test_s3_subcommand_help.test_put_help_usage_order",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[cp]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[del]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[du]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[info]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[la]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[ls]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[mb]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[mv]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[rb]",
+ "eval.tests.test_s3_subcommand_help.test_single_debug_flag_subcommands_help[sync]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[cp]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[del]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[du]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[get]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[info]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[la]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[ls]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[mb]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[mv]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[put]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[rb]",
+ "eval.tests.test_s3_subcommand_help.test_subcommand_help_exact_use_and_short[sync]",
+ "eval.tests.test_s3_subcommand_help.test_sync_help_documents_local_dir",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_short_bound_interspersed_reaches_connection[debug_false_between]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_short_bound_interspersed_reaches_connection[force_true_between]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_short_bound_interspersed_reaches_connection[skip_false_between]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_terminator_with_flags_reaches_connection[get_01_bound_before_term]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_terminator_with_flags_reaches_connection[get_all_shorts_before_term]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_terminator_with_flags_reaches_connection[get_bare_term_before]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_terminator_with_flags_reaches_connection[get_bound_before_term]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_terminator_with_flags_reaches_connection[get_toggle_before_term]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_get_trailing_terminator_reaches_connection",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_la_debug_before_terminator_reaches_connection",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_la_short_bound_debug_reaches_connection[la_short_bound_after]",
+ "eval.tests.test_s3_terminator_and_shorthand_bound.test_la_short_bound_debug_reaches_connection[la_short_bound_before]"
+ ]
+ }
+ },
+ "commit": "be26489b35f5bf3107c75fe67faa12469daa0214",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.5972562829251418,
+ "eval_clean_hashes": [
+ "0b5353eb715f6240275b009d83c7dca431d64efd9890449e16d99c6470d0a4dc"
+ ],
+ "input_record": {
+ "commit": "be26489b35f5bf3107c75fe67faa12469daa0214",
+ "commits": 254,
+ "contributors": 7,
+ "difficulty": "easy",
+ "difficulty_code_lines": 3956,
+ "difficulty_has_tests": true,
+ "difficulty_product_code_lines": 3956,
+ "difficulty_runtime_deps": 0,
+ "difficulty_score": 1.5972562829251418,
+ "difficulty_test_code_lines": 223,
+ "full_name": "ceph/cn",
+ "github_stars": 235,
+ "input_joern_zip": "go_joern/ceph__cn.zip",
+ "joern_status": true,
+ "joern_time": 2.692148424917832,
+ "language": "go",
+ "pb_match": [
+ {
+ "pb_fullname": "segmentio/chamber",
+ "rank": 294,
+ "similarity": 0.5377442836761475
+ },
+ {
+ "pb_fullname": "johnkerl/miller",
+ "rank": 490,
+ "similarity": 0.4818657338619232
+ },
+ {
+ "pb_fullname": "FiloSottile/age",
+ "rank": 360,
+ "similarity": 0.4873593747615814
+ },
+ {
+ "pb_fullname": "multiprocessio/dsq",
+ "rank": 598,
+ "similarity": 0.4759815037250519
+ },
+ {
+ "pb_fullname": "noborus/trdsql",
+ "rank": 967,
+ "similarity": 0.4749738872051239
+ }
+ ],
+ "repo_age": 8.69,
+ "repo_path": "go/ceph__cn",
+ "source": "commit:be26489b35f5bf3107c75fe67faa12469daa0214",
+ "status": "done",
+ "url": "https://github.com/ceph/cn"
+ },
+ "instance_id": "ceph__cn.be26489",
+ "language": "go",
+ "module_iterations": [
+ {
+ "actual_iterations": 2,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ }
+ ],
+ "repository": "ceph/cn"
+}
diff --git a/ceph--cn.be26489/tests/test.sh b/ceph--cn.be26489/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/ceph--cn.be26489/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/ceph--cn.be26489/tests/workspace.tar.gz b/ceph--cn.be26489/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..14cdcbb44c36c57a1d05caac1f9b2e4f249e5040
--- /dev/null
+++ b/ceph--cn.be26489/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1217ea832dc01af34bc475228c55179bf5b02ecdc83eff1376ba34a0c587a72
+size 11441
diff --git a/cesanta--elk.71a86fa/environment/Dockerfile b/cesanta--elk.71a86fa/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..1ae9d9748054a53042399bc69eb368ec4306df78
--- /dev/null
+++ b/cesanta--elk.71a86fa/environment/Dockerfile
@@ -0,0 +1,54 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/cesanta--elk.71a86fa/environment/download.sh b/cesanta--elk.71a86fa/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..cbb7424e172afe17c13a5ca89f4025b19ed8b0cf
--- /dev/null
+++ b/cesanta--elk.71a86fa/environment/download.sh
@@ -0,0 +1,45 @@
+#!/usr/bin/env bash
+# ProgramGym download stage for cesanta/elk.
+#
+# Elk is a zero-dependency C library (elk.c/elk.h) plus a command-line
+# example (examples/cmdline/main.c) that the repository builds into the
+# standalone 'elk' CLI with the base-image gcc and standard C library only.
+# There is nothing to fetch, unpack, or pre-cache: the base image already
+# provides gcc, binutils, and libc, and build.sh compiles the single ELF with
+# no external headers or libraries.
+#
+# This file is sourced (not executed) from a read-only repository mount
+# during the download validation stage, so it:
+# - never reads any repository file,
+# - never uses `exit` in normal control flow,
+# - never compiles, links, tests, packages, or sets up built artifacts,
+# - only exports the environment variables build.sh relies on.
+#
+# It is idempotent: re-sourcing it produces the same exported state.
+
+# The compiler that build.sh will use. Default gcc in the base image is GCC 13.
+export CC="${CC:-gcc}"
+
+# Flags used to build the elk command-line tool, mirroring the repository's
+# own test/Makefile 'elk' target:
+# $(CC) elk.c examples/cmdline/main.c -I. $(CFLAGS) -DJS_DUMP -o elk
+# -DJS_DUMP enables js_dump() which prints JS memory internals; it is used by
+# examples/cmdline/main.c when the user passes -d.
+export ELK_CFLAGS="-I. -DJS_DUMP -W -Wall -Wextra"
+
+# Verify that the required toolchain is present in the image. This is a
+# capability probe only; it performs no build, so it is allowed in download.sh.
+CC_PATH="$(command -v "${CC}")"
+if [ -n "${CC_PATH}" ]; then
+ :
+else
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ echo "download.sh: required compiler '${CC}' not found in base image" >&2
+ return 1
+ else
+ echo "download.sh: required compiler '${CC}' not found in base image" >&2
+ exit 1
+ fi
+fi
+
+# Everything the build needs is already present; nothing else to prepare.
diff --git a/cesanta--elk.71a86fa/environment/executable b/cesanta--elk.71a86fa/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..5606f8dffd17104557307c9737c58c54a8fe9b22
Binary files /dev/null and b/cesanta--elk.71a86fa/environment/executable differ
diff --git a/cesanta--elk.71a86fa/environment/harbor_prepare_download_env.sh b/cesanta--elk.71a86fa/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/cesanta--elk.71a86fa/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cesanta--elk.71a86fa/environment/workspace.tar.gz b/cesanta--elk.71a86fa/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..6a5bf7879de5ab38fc2b233f00c50b481302e710
--- /dev/null
+++ b/cesanta--elk.71a86fa/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c3776c39c515d6cbda0bce7aec3a7046d6b91e4cc122ab08d007aa00e69a941
+size 25736
diff --git a/cesanta--elk.71a86fa/instruction.md b/cesanta--elk.71a86fa/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/cesanta--elk.71a86fa/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/cesanta--elk.71a86fa/solution/solve.sh b/cesanta--elk.71a86fa/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/cesanta--elk.71a86fa/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/cesanta--elk.71a86fa/task.toml b/cesanta--elk.71a86fa/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..f25560e6dbd378f8e31e22ae873d1082f1cf9582
--- /dev/null
+++ b/cesanta--elk.71a86fa/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/cesanta--elk.71a86fa"
+description = "Synthetic ProgramGym cleanroom reconstruction task for cesanta/elk"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "c"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "cesanta__elk.71a86fa"
+repository = "cesanta/elk"
+commit = "71a86fa2fef146696be9ae66715bf3f91d0a5f2c"
+language = "c"
+difficulty = "easy"
+difficulty_score = 1.1760912590556813
+test_branches = 3
+test_count = 1940
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/cesanta--elk.71a86fa/tests/Dockerfile b/cesanta--elk.71a86fa/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..6b8eed24af9261bb9c1cb5a7b359acf9adaa6a3b
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/Dockerfile
@@ -0,0 +1,68 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN set -eu; \
+ pip_break_system_packages=""; \
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
+ pip_break_system_packages="--break-system-packages"; \
+ fi; \
+ python3 -m pip install ${pip_break_system_packages} \
+ --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/cesanta--elk.71a86fa/tests/blobs/tests/generated_module_02.tar.gz b/cesanta--elk.71a86fa/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..454a14b644c0b056911d06b77e0d8f5e302177d1
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:61e7a2a2c9aed71f949442d40c8a40259d4441835e54a298bcc0ad28f0b7b46d
+size 31188
diff --git a/cesanta--elk.71a86fa/tests/blobs/tests/generated_module_03.tar.gz b/cesanta--elk.71a86fa/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..09bb361d3678f9b7c51fc7963048a60e28e4d90c
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:221e73a3cfbf969b2b505130efaf30a885b07c6d2d319ad1f7324790cff9c9fd
+size 21723
diff --git a/cesanta--elk.71a86fa/tests/blobs/tests/generated_upstream.tar.gz b/cesanta--elk.71a86fa/tests/blobs/tests/generated_upstream.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d32f0bde99c50ffb01e99389cd3b9906e80b3ed3
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/blobs/tests/generated_upstream.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c5ecac4c2b95010a64d389416239baca6686bfc81dc9ae3faffebe77c547e8a
+size 7490
diff --git a/cesanta--elk.71a86fa/tests/download.sh b/cesanta--elk.71a86fa/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..cbb7424e172afe17c13a5ca89f4025b19ed8b0cf
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/download.sh
@@ -0,0 +1,45 @@
+#!/usr/bin/env bash
+# ProgramGym download stage for cesanta/elk.
+#
+# Elk is a zero-dependency C library (elk.c/elk.h) plus a command-line
+# example (examples/cmdline/main.c) that the repository builds into the
+# standalone 'elk' CLI with the base-image gcc and standard C library only.
+# There is nothing to fetch, unpack, or pre-cache: the base image already
+# provides gcc, binutils, and libc, and build.sh compiles the single ELF with
+# no external headers or libraries.
+#
+# This file is sourced (not executed) from a read-only repository mount
+# during the download validation stage, so it:
+# - never reads any repository file,
+# - never uses `exit` in normal control flow,
+# - never compiles, links, tests, packages, or sets up built artifacts,
+# - only exports the environment variables build.sh relies on.
+#
+# It is idempotent: re-sourcing it produces the same exported state.
+
+# The compiler that build.sh will use. Default gcc in the base image is GCC 13.
+export CC="${CC:-gcc}"
+
+# Flags used to build the elk command-line tool, mirroring the repository's
+# own test/Makefile 'elk' target:
+# $(CC) elk.c examples/cmdline/main.c -I. $(CFLAGS) -DJS_DUMP -o elk
+# -DJS_DUMP enables js_dump() which prints JS memory internals; it is used by
+# examples/cmdline/main.c when the user passes -d.
+export ELK_CFLAGS="-I. -DJS_DUMP -W -Wall -Wextra"
+
+# Verify that the required toolchain is present in the image. This is a
+# capability probe only; it performs no build, so it is allowed in download.sh.
+CC_PATH="$(command -v "${CC}")"
+if [ -n "${CC_PATH}" ]; then
+ :
+else
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ echo "download.sh: required compiler '${CC}' not found in base image" >&2
+ return 1
+ else
+ echo "download.sh: required compiler '${CC}' not found in base image" >&2
+ exit 1
+ fi
+fi
+
+# Everything the build needs is already present; nothing else to prepare.
diff --git a/cesanta--elk.71a86fa/tests/executable b/cesanta--elk.71a86fa/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..5606f8dffd17104557307c9737c58c54a8fe9b22
Binary files /dev/null and b/cesanta--elk.71a86fa/tests/executable differ
diff --git a/cesanta--elk.71a86fa/tests/harbor_prepare_download_env.sh b/cesanta--elk.71a86fa/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cesanta--elk.71a86fa/tests/programgym_evaluator.py b/cesanta--elk.71a86fa/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/cesanta--elk.71a86fa/tests/programgym_task.json b/cesanta--elk.71a86fa/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..395587008742d29fbdc6165c605a22b4c5a3b065
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/programgym_task.json
@@ -0,0 +1,2248 @@
+{
+ "branches": {
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_cli.test_dump_lists_property_entities",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_flags_dump.test_dump_function_value_lists_body_strings",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_flags_dump.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_flags_dump.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_flags_dump.test_dump_object_method_lists_key",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_flags_dump.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_flags_dump.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_golden_outputs.test_golden_print_program_1",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_golden_outputs.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_golden_outputs.test_golden_print_program_2",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_golden_outputs.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_object_writes.test_object_dump_shows_both_props",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_object_writes.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_object_writes.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_objects.test_object_dump_shows_props",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_objects.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_objects.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_arith.test_arithmetic[ + 1-1]",
+ "eval.tests.test_arith.test_arithmetic[ - 5 % - 2--1]",
+ "eval.tests.test_arith.test_arithmetic[+ + + 1-1]",
+ "eval.tests.test_arith.test_arithmetic[+ + 1-1]",
+ "eval.tests.test_arith.test_arithmetic[- 5 % 2--1]",
+ "eval.tests.test_arith.test_arithmetic[-1.23--1.23]",
+ "eval.tests.test_arith.test_arithmetic[-5 % 2--1]",
+ "eval.tests.test_arith.test_arithmetic[0x64-100]",
+ "eval.tests.test_arith.test_arithmetic[0x7fffffff-2147483647]",
+ "eval.tests.test_arith.test_arithmetic[0xffffffff-4294967295]",
+ "eval.tests.test_arith.test_arithmetic[1 + + + 1-2]",
+ "eval.tests.test_arith.test_arithmetic[1 + + + 2-3]",
+ "eval.tests.test_arith.test_arithmetic[1 + 4 / 5 % 3-1.8]",
+ "eval.tests.test_arith.test_arithmetic[1 - - - 2--1]",
+ "eval.tests.test_arith.test_arithmetic[1+2*3+4*5+6-33]",
+ "eval.tests.test_arith.test_arithmetic[1+2*3+4/5%3+6-13.8]",
+ "eval.tests.test_arith.test_arithmetic[1+2*3+4/5+6-13.8]",
+ "eval.tests.test_arith.test_arithmetic[1.23 + 2.1 * 3.7 - 2.5-6.5]",
+ "eval.tests.test_arith.test_arithmetic[1.23-1.23]",
+ "eval.tests.test_arith.test_arithmetic[1/2/4-0.125]",
+ "eval.tests.test_arith.test_arithmetic[2 * (3 + 4 * (2 +5))-62]",
+ "eval.tests.test_arith.test_arithmetic[2 * (3 + 4)-14]",
+ "eval.tests.test_arith.test_arithmetic[24 / 3 % 2-0]",
+ "eval.tests.test_arith.test_arithmetic[3 + 4-7]",
+ "eval.tests.test_arith.test_arithmetic[4 / 5 % 3-0.8]",
+ "eval.tests.test_arith.test_arithmetic[5 % - 2-1]",
+ "eval.tests.test_arith.test_arithmetic[5%2-1]",
+ "eval.tests.test_arith.test_arithmetic[5.5 % 2-1.5]",
+ "eval.tests.test_arith.test_arithmetic[5/3-1.66667]",
+ "eval.tests.test_arith.test_arithmetic[6 / - - 2-3]",
+ "eval.tests.test_arith.test_arithmetic[7+~5-1]",
+ "eval.tests.test_arith.test_arithmetic[7^9-14]",
+ "eval.tests.test_arith.test_arithmetic[~5--6]",
+ "eval.tests.test_arith.test_big_numbers[0.5 + 0.5-1]",
+ "eval.tests.test_arith.test_big_numbers[10000000000000000-10000000000000000]",
+ "eval.tests.test_arith.test_big_numbers[1e10-10000000000]",
+ "eval.tests.test_arith.test_big_numbers[333283335000-333283335000]",
+ "eval.tests.test_arith.test_big_numbers[999999999999-999999999999]",
+ "eval.tests.test_arith.test_empty_expression_is_undefined",
+ "eval.tests.test_arith.test_multiple_cli_arguments_sequential",
+ "eval.tests.test_arith.test_multiple_cli_arguments_take_last_result",
+ "eval.tests.test_arith.test_precedence[(1 + 2) * 3-9]",
+ "eval.tests.test_arith.test_precedence[(7 & 3) ^ 5-6]",
+ "eval.tests.test_arith.test_precedence[1 & 2 ^ 3 | 4-7]",
+ "eval.tests.test_arith.test_precedence[1 + 2 * 3 * 4-25]",
+ "eval.tests.test_arith.test_precedence[1 + 2 * 3-7]",
+ "eval.tests.test_arith.test_precedence[1 + ~1--1]",
+ "eval.tests.test_arith.test_precedence[2 * 3 + 4 * 5-26]",
+ "eval.tests.test_arith.test_precedence[2 + 3 * 4 - 5-9]",
+ "eval.tests.test_arith.test_precedence[7 & 3 ^ 5 | 1-7]",
+ "eval.tests.test_arith.test_precedence[8 - 4 - 2-2]",
+ "eval.tests.test_arith.test_precedence[8 / 4 / 2-1]",
+ "eval.tests.test_arith.test_precedence[~1 + 1--1]",
+ "eval.tests.test_arith.test_semicolon_separated_statements_return_last",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[(0-14) >> 2--4]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[-5--5]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[0.1 + 0.2-0.3]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[100 << 3-800]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[12.34-12.34]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[123.4 + 0.1-123.5]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[1e-3-0.001]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[1e3-1000]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[42-42]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[6 & 3-2]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[6 ^ 3-5]",
+ "eval.tests.test_arith.test_shifts_bits_and_floats[6 | 3-7]",
+ "eval.tests.test_arith.test_trailing_semicolon_preserves_value",
+ "eval.tests.test_boolean_shortcircuit.test_comparison_chains[1<2 && 2<3-true]",
+ "eval.tests.test_boolean_shortcircuit.test_comparison_chains[let a=1,b=2; aa-true]",
+ "eval.tests.test_boolean_shortcircuit.test_comparison_chains[let a=1,b=2; a>b || b>a-true]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_return_value['' && 'x'-\"\"]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_return_value['x' || 'y'-\"x\"]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_return_value[0 || 'a'-\"a\"]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_return_value[1 && 'x'-\"x\"]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_return_value[1 && 0-0]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_return_value[1 && false || true-true]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_return_value[1 || 'a'-1]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_short_circuit_side_effects[let a=0; 0||(a=1); a-1]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_short_circuit_side_effects[let a=0; 1&&(a=1); a-1]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_short_circuit_side_effects[let a=1; 0 && a++; a-1]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_short_circuit_side_effects[let a=1; 0 || a++; a-2]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_short_circuit_side_effects[let a=1; 1 && 2 && a++; a-2]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_short_circuit_side_effects[let a=1; 1 && a++; a-2]",
+ "eval.tests.test_boolean_shortcircuit.test_logical_short_circuit_side_effects[let a=1; 1 || a++; a-1]",
+ "eval.tests.test_boolean_shortcircuit.test_single_equals_rejected['a'=='b'-ERROR: bad expr]",
+ "eval.tests.test_boolean_shortcircuit.test_single_equals_rejected[({})==({})-ERROR: bad expr]",
+ "eval.tests.test_boolean_shortcircuit.test_single_equals_rejected[1=='1'-ERROR: bad expr]",
+ "eval.tests.test_boolean_shortcircuit.test_single_equals_rejected[1==1-ERROR: bad expr]",
+ "eval.tests.test_boolean_shortcircuit.test_single_equals_rejected[let a={}; a==a-ERROR: bad expr]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[false ? 1 + 2 : 'doh'-\"doh\"]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[let a=3; a===3?'yes':'no'-\"yes\"]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[let a=4; a===3?'yes':'no'-\"no\"]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[let g=0; 0? (g=1):0; g-0]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[let g=0; 1? (g=1):0; g-1]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[let x=-1; let y=(x>0)?'pos':'neg'; y-\"neg\"]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[let x=1; let y=(x>0)?'pos':'neg'; y-\"pos\"]",
+ "eval.tests.test_boolean_shortcircuit.test_ternary_value_and_selection[true ? 1 + 2 : 'doh'-3]",
+ "eval.tests.test_cli.test_dump_after_expression_side_effect",
+ "eval.tests.test_cli.test_dump_flag_position_agnostic",
+ "eval.tests.test_cli.test_dump_lists_property_entities",
+ "eval.tests.test_cli.test_dump_lists_string_entities",
+ "eval.tests.test_cli.test_dump_prints_header",
+ "eval.tests.test_cli.test_exit_code_zero_on_js_error",
+ "eval.tests.test_cli.test_exit_code_zero_on_success",
+ "eval.tests.test_cli.test_gct_flag_does_not_change_result[0-let a='x'; a.length-1]",
+ "eval.tests.test_cli.test_gct_flag_does_not_change_result[1000-1+1-2]",
+ "eval.tests.test_cli.test_gct_flag_does_not_change_result[5-let v=0; for (let i=0;i<5;i++) v+=i; v-10]",
+ "eval.tests.test_cli.test_gct_flag_with_multiple_args",
+ "eval.tests.test_cli.test_global_object_type",
+ "eval.tests.test_cli.test_multiple_expressions_last_wins",
+ "eval.tests.test_cli.test_no_args_prints_undefined",
+ "eval.tests.test_cli.test_non_dump_run_has_no_header",
+ "eval.tests.test_cli.test_print_empty_no_args",
+ "eval.tests.test_cli.test_print_function_stringify[print('a')-\"a\"]",
+ "eval.tests.test_cli.test_print_function_stringify[print('a','b','c')-\"a\" \"b\" \"c\"]",
+ "eval.tests.test_cli.test_print_function_stringify[print(1)-1]",
+ "eval.tests.test_cli.test_print_function_stringify[print(1+1)-2]",
+ "eval.tests.test_cli.test_print_function_stringify[print(1,2,3)-1 2 3]",
+ "eval.tests.test_cli.test_print_function_stringify[print(null)-null]",
+ "eval.tests.test_cli.test_print_function_stringify[print(true)-true]",
+ "eval.tests.test_cli.test_print_then_result",
+ "eval.tests.test_cli.test_stringify_function_value",
+ "eval.tests.test_cli.test_unknown_flag_treated_as_expression",
+ "eval.tests.test_closure_and_recursion.test_argument_mutation_is_local[let f=function(x){ x -= 3; return x; }; f(10)-7]",
+ "eval.tests.test_closure_and_recursion.test_argument_mutation_is_local[let f=function(x){ x = x*2; return x; }; f(4)-8]",
+ "eval.tests.test_closure_and_recursion.test_argument_mutation_is_local[let f=function(x){ x++; return x; }; let y=5; f(y)-6]",
+ "eval.tests.test_closure_and_recursion.test_closure_captures_and_mutates_outer[let a=10; let f=function(){ a=a+1; return a; }; f(); f(); a-12]",
+ "eval.tests.test_closure_and_recursion.test_closure_captures_and_mutates_outer[let a=10; let f=function(){ let a=20; return a; }; f()-20]",
+ "eval.tests.test_closure_and_recursion.test_closure_captures_and_mutates_outer[let a=10; let f=function(){ return a; }; f()-10]",
+ "eval.tests.test_closure_and_recursion.test_closure_captures_and_mutates_outer[let a=5; let f=function(){ a -= 1; return a; }; f(); f(); a-3]",
+ "eval.tests.test_closure_and_recursion.test_closure_captures_and_mutates_outer[let cnt=0; let step=function(){ cnt=cnt+2; return cnt; }; step(); step(); step()-6]",
+ "eval.tests.test_closure_and_recursion.test_closure_captures_and_mutates_outer[let n=1; let f=function(x){ n=n*x; return x; }; f(5); f(6); n-30]",
+ "eval.tests.test_closure_and_recursion.test_closure_captures_and_mutates_outer[let n=1; let f=function(x){ return n*x; }; f(4)-4]",
+ "eval.tests.test_closure_and_recursion.test_extra_arguments_ignored[let f=function(){ return 42; }; f(1,2)-42]",
+ "eval.tests.test_closure_and_recursion.test_extra_arguments_ignored[let f=function(a,b){ return a*b; }; f(3,4,5)-12]",
+ "eval.tests.test_closure_and_recursion.test_extra_arguments_ignored[let f=function(a,b){ return a*b; }; f(4,5)+1-21]",
+ "eval.tests.test_closure_and_recursion.test_extra_arguments_ignored[let f=function(a,b){ return a+b; }; f(2,3)-5]",
+ "eval.tests.test_closure_and_recursion.test_extra_arguments_ignored[let f=function(a,b){ return a-b; }; f(2,1,1)-1]",
+ "eval.tests.test_closure_and_recursion.test_parameter_shadows_outer_let[let v=3; let g=function(v){ return v*2; }; g(5)-10]",
+ "eval.tests.test_closure_and_recursion.test_parameter_shadows_outer_let[let v=3; let g=function(w){ return v+w; }; g(2)-5]",
+ "eval.tests.test_closure_and_recursion.test_parameter_shadows_outer_let[let x=1; let f=function(x){ return x+1; }; f(10)-11]",
+ "eval.tests.test_closure_and_recursion.test_parameter_shadows_outer_let[let x=1; let f=function(x){ return x; }; f(7)-7]",
+ "eval.tests.test_closure_and_recursion.test_recursion_and_base_case[let f=function(a){ if(a<=1) return 1; return a*f(a-1); }; f(1)-1]",
+ "eval.tests.test_closure_and_recursion.test_recursion_and_base_case[let f=function(a){ if(a<=1) return 1; return a*f(a-1); }; f(10)-3628800]",
+ "eval.tests.test_closure_and_recursion.test_recursion_and_base_case[let f=function(a){ if(a<=1) return 1; return a*f(a-1); }; f(2)-2]",
+ "eval.tests.test_closure_and_recursion.test_recursion_and_base_case[let f=function(a){ if(a<=1) return 1; return a*f(a-1); }; f(4)-24]",
+ "eval.tests.test_closure_and_recursion.test_recursion_and_base_case[let f=function(a){ if(a<=1) return 1; return a*f(a-1); }; f(5)-120]",
+ "eval.tests.test_closure_and_recursion.test_recursion_and_base_case[let f=function(a){ if(a<=1) return 1; return a*f(a-1); }; f(6)-720]",
+ "eval.tests.test_closure_and_recursion.test_recursion_and_base_case[let f=function(a,b){ if(a>b) return 0; return b; }; f(1,3)-3]",
+ "eval.tests.test_errors.test_deeply_nested_parens_arithmetic",
+ "eval.tests.test_errors.test_deeply_nested_unary_minus_evaluates",
+ "eval.tests.test_errors.test_deeply_nested_unary_plus_evaluates",
+ "eval.tests.test_errors.test_division_by_zero[-1/0-ERROR: div by zero]",
+ "eval.tests.test_errors.test_division_by_zero[0/0-ERROR: div by zero]",
+ "eval.tests.test_errors.test_division_by_zero[1/0-ERROR: div by zero]",
+ "eval.tests.test_errors.test_error_identifier_already_declared",
+ "eval.tests.test_errors.test_not_implemented_keywords[class-ERROR: 'class' not implemented]",
+ "eval.tests.test_errors.test_not_implemented_keywords[const x-ERROR: 'const' not implemented]",
+ "eval.tests.test_errors.test_not_implemented_keywords[switch-ERROR: 'switch' not implemented]",
+ "eval.tests.test_errors.test_not_implemented_keywords[try-ERROR: 'try' not implemented]",
+ "eval.tests.test_errors.test_not_implemented_keywords[var x-ERROR: 'var' not implemented]",
+ "eval.tests.test_errors.test_not_implemented_keywords[with-ERROR: 'with' not implemented]",
+ "eval.tests.test_errors.test_not_implemented_keywords[yield-ERROR: 'yield' not implemented]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[+-ERROR: bad expr]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[,-ERROR: bad expr]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[1 + 2 3-ERROR: ; expected]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[1 + yield-ERROR: bad expr]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[1 2 + 3-ERROR: ; expected]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[1 2-ERROR: ; expected]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[2 * * 2-ERROR: bad expr]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[2+-ERROR: bad expr]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[@-ERROR: parse error]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[let ;-ERROR: parse error]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[let a = 123; let a = 1;-ERROR: 'a' already declared]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[let c = 2, d = 3; c-2]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[{let a 2}-ERROR: parse error]",
+ "eval.tests.test_errors.test_parse_and_decl_errors[{let a,}-ERROR: parse error]",
+ "eval.tests.test_errors.test_type_mismatch['x' * 'y'-ERROR: bad str op]",
+ "eval.tests.test_errors.test_type_mismatch[1 + ''-ERROR: type mismatch]",
+ "eval.tests.test_errors.test_type_mismatch[1 + true-ERROR: type mismatch]",
+ "eval.tests.test_errors.test_type_mismatch[1 === false-ERROR: type mismatch]",
+ "eval.tests.test_errors.test_type_mismatch[1 === true-ERROR: type mismatch]",
+ "eval.tests.test_errors.test_type_mismatch[~null-ERROR: type mismatch]",
+ "eval.tests.test_errors.test_unbalanced_paren_yields_close_expected",
+ "eval.tests.test_errors.test_undefined_identifier[$-ERROR: '$' not found]",
+ "eval.tests.test_errors.test_undefined_identifier[foo-ERROR: 'foo' not found]",
+ "eval.tests.test_errors.test_undefined_identifier[let a=0; a+=x-ERROR: 'x' not found]",
+ "eval.tests.test_errors.test_undefined_identifier[let a=0; a=1; for (let i=0;x;i++) a++; a-ERROR: 'x' not found]",
+ "eval.tests.test_errors.test_undefined_identifier[x + 1-ERROR: 'x' not found]",
+ "eval.tests.test_flags_dump.test_dump_function_value_lists_body_strings",
+ "eval.tests.test_flags_dump.test_dump_object_method_lists_key",
+ "eval.tests.test_flags_dump.test_dump_once_prints_one_header",
+ "eval.tests.test_flags_dump.test_gct_does_not_alter_eval_result",
+ "eval.tests.test_flags_dump.test_gct_then_dump_combined",
+ "eval.tests.test_flags_dump.test_gct_value_coerced_from_decimal",
+ "eval.tests.test_flags_dump.test_gct_zero_still_succeeds",
+ "eval.tests.test_flags_dump.test_multiple_expressions_with_dump",
+ "eval.tests.test_flags_dump.test_repeated_dump_flag_dumps_once",
+ "eval.tests.test_flow.test_break_exits_before_sentinel",
+ "eval.tests.test_flow.test_continue_skips_iteration",
+ "eval.tests.test_flow.test_flow_errors[break;-ERROR: not in loop]",
+ "eval.tests.test_flow.test_flow_errors[continue;-ERROR: not in loop]",
+ "eval.tests.test_flow.test_flow_errors[while (false) break;-ERROR: 'while' not implemented]",
+ "eval.tests.test_flow.test_for_loop_accumulate_squares",
+ "eval.tests.test_flow.test_for_loop_zero_iterations",
+ "eval.tests.test_flow.test_for_loops[let a=0,b=0; for (;b < 10;) {b++; } a;-0]",
+ "eval.tests.test_flow.test_for_loops[let a=0,b=0; for (;b++ < 10;) a += 3; a;-30]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (;;) break; a-0]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (;;) if (a++ > 10) break; a;-12]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (;;) { if (a++ < 10) continue; break;} a-11]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (;;) {a++; break;} a-1]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (;a<100;) {a++; continue;} a-100]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (;true;) { a++; break; } a-1]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (let i=0; i<3; i++) a = a + 1; a-3]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (let i=0;i<10;i++) { continue; a++;} a-0]",
+ "eval.tests.test_flow.test_for_loops[let a=0; for (let i=0;i<5;i++) a++; a-5]",
+ "eval.tests.test_flow.test_for_loops[let s=0; for (let i=0;i<5;i++) { s = s + i; } s-10]",
+ "eval.tests.test_flow.test_if_else[if ('') 1; else 2;-2]",
+ "eval.tests.test_flow.test_if_else[if ('x') 1; else 2;-1]",
+ "eval.tests.test_flow.test_if_else[if (0) 2;-undefined]",
+ "eval.tests.test_flow.test_if_else[if (1) 2;-2]",
+ "eval.tests.test_flow.test_if_else[if (1) {}-undefined]",
+ "eval.tests.test_flow.test_if_else[let a=0,b=0; if (false) b++; else b--; b--1]",
+ "eval.tests.test_flow.test_if_else[let a=0,b=0; if (false) {b++;} else {b--;} b--1]",
+ "eval.tests.test_flow.test_if_else[let a=0,b=0; if (true) b++; else b--; b-1]",
+ "eval.tests.test_flow.test_if_else[let a=0,b=0; if (true) {2;b++;} else {2;b--;} b-1]",
+ "eval.tests.test_flow.test_if_else[let a=0; if (0) a=1; else if (1) a=2; a;-2]",
+ "eval.tests.test_flow.test_if_else[let a=0; if (0) { a = 7; a++; } a-0]",
+ "eval.tests.test_flow.test_if_else[let a=0; if (0){7;a=1;}else if (1){7;a=2;} a;-2]",
+ "eval.tests.test_flow.test_if_else[let a=0; if (1) a=1; else if (0) a=2; a;-1]",
+ "eval.tests.test_flow.test_if_else[let a=0; if (a) a++; a-0]",
+ "eval.tests.test_flow.test_if_else[let a=0; if(0){7;a=1;}else if(0){5;a=2;}else{3;a=3;} a;-3]",
+ "eval.tests.test_flow.test_if_else[let a=1; if (!a) a++; a-1]",
+ "eval.tests.test_flow.test_if_else[let a=1; if (a) a++; a-2]",
+ "eval.tests.test_flow.test_if_else[let a=1; if (true) a++; a-2]",
+ "eval.tests.test_flow.test_nested_for_sum",
+ "eval.tests.test_flow.test_ternary['' ? 1 : 2-2]",
+ "eval.tests.test_flow.test_ternary['x' ? 1 : 2-1]",
+ "eval.tests.test_flow.test_ternary[0 ? 'yes' : 'no'-\"no\"]",
+ "eval.tests.test_flow.test_ternary[1 < 2 ? 'lt' : 'ge'-\"lt\"]",
+ "eval.tests.test_flow.test_ternary[1 ? 'yes' : 'no'-\"yes\"]",
+ "eval.tests.test_flow.test_ternary[3 > 5 ? 'a' : 'b'-\"b\"]",
+ "eval.tests.test_flow.test_ternary[null ? 1 : 2-2]",
+ "eval.tests.test_function_parse_edges.test_empty_return_yields_undefined",
+ "eval.tests.test_function_parse_edges.test_function_body_parse_error[function(){return 1-ERROR: ; expected]",
+ "eval.tests.test_function_parse_edges.test_function_body_parse_error[let f=function(,){return 1;}; f-ERROR: parse error]",
+ "eval.tests.test_function_parse_edges.test_function_body_parse_error[let f=function(a b){return 1;}; f-ERROR: parse error]",
+ "eval.tests.test_function_parse_edges.test_function_literal_stringify_forms[function(){ return 1; }-function(){ return 1; }]",
+ "eval.tests.test_function_parse_edges.test_function_literal_stringify_forms[function(){ x++; }-function(){ x++; }]",
+ "eval.tests.test_function_parse_edges.test_function_literal_stringify_forms[function(a){-function(a){]",
+ "eval.tests.test_function_parse_edges.test_iife_no_return_undefined",
+ "eval.tests.test_function_parse_edges.test_iife_result_arithmetic[(function(){return 3;})() === 3-true]",
+ "eval.tests.test_function_parse_edges.test_iife_result_arithmetic[(function(){return 7;})() * 2-14]",
+ "eval.tests.test_function_parse_edges.test_iife_result_arithmetic[(function(){return 7;})() + 1-8]",
+ "eval.tests.test_function_parse_edges.test_iife_result_arithmetic[function(){}()-undefined]",
+ "eval.tests.test_functions.test_function_calls[(function(){return 1;})()-1]",
+ "eval.tests.test_functions.test_function_calls[(function(){return 1;})(1,2,3)-1]",
+ "eval.tests.test_functions.test_function_calls[(function(){})()-undefined]",
+ "eval.tests.test_functions.test_function_calls[(function(x){return x;})(1)-1]",
+ "eval.tests.test_functions.test_function_calls[(function(x){return {a:x};})(3).a-3]",
+ "eval.tests.test_functions.test_function_calls[let f=function(){return 1;}; f()-1]",
+ "eval.tests.test_functions.test_function_calls[let f=function(a,b){return a+b;}; f('foo','bar')-\"foobar\"]",
+ "eval.tests.test_functions.test_function_calls[let f=function(a,b){return a+b;}; f(1,2)-3]",
+ "eval.tests.test_functions.test_function_calls[let f=function(a,b){return a+b;}; f(1,2,3,4)-3]",
+ "eval.tests.test_functions.test_function_calls[let f=function(x){return x*2;}; f(5)-10]",
+ "eval.tests.test_functions.test_function_calls[let f=function(x){return x;} ; f({a:5,b:3}).b-3]",
+ "eval.tests.test_functions.test_function_defaults_undefined_params",
+ "eval.tests.test_functions.test_function_errors[(function(a){return b;})(1)-ERROR: 'b' not found]",
+ "eval.tests.test_functions.test_function_errors[1()-ERROR: calling non-function]",
+ "eval.tests.test_functions.test_function_errors[function(,){};-ERROR: parse error]",
+ "eval.tests.test_functions.test_function_errors[let f=function(){return 1;}; 1 + f-ERROR: type mismatch]",
+ "eval.tests.test_functions.test_function_errors[return 2;-ERROR: not in func]",
+ "eval.tests.test_functions.test_function_errors[return-ERROR: not in func]",
+ "eval.tests.test_functions.test_function_inner_loop_accumulate",
+ "eval.tests.test_functions.test_function_literal_stringify[function(){1;}-function(){1;}]",
+ "eval.tests.test_functions.test_function_literal_stringify[function(){}-function(){}]",
+ "eval.tests.test_functions.test_function_literal_stringify[function(a,b){}-function(a,b){}]",
+ "eval.tests.test_functions.test_function_literal_stringify[let f=function(){}; f-function(){}]",
+ "eval.tests.test_functions.test_function_literal_stringify[let f=function(x){return x+1;}; f-function(x){return x+1;}]",
+ "eval.tests.test_functions.test_function_nested_calls_lhs",
+ "eval.tests.test_functions.test_function_no_args_type_mismatch",
+ "eval.tests.test_functions.test_function_reassignment_add",
+ "eval.tests.test_functions.test_function_scope_and_lifetime[let a=0; (function(){a++;})(); a-1]",
+ "eval.tests.test_functions.test_function_scope_and_lifetime[let a=0; (function(x){a=x;})('hi'); a-\"hi\"]",
+ "eval.tests.test_functions.test_function_scope_and_lifetime[let a=0; (function(x){a=x;})(2); a-2]",
+ "eval.tests.test_functions.test_function_scope_and_lifetime[let a=0; (function(x){let m= 'hi';return m;})(1);-\"hi\"]",
+ "eval.tests.test_functions.test_function_scope_and_lifetime[let a=0; (function(x){let m=7;return m;})(1);-7]",
+ "eval.tests.test_functions.test_function_scope_and_lifetime[let a=0; (function(x){let m={a:2};return m;})(1).a;-2]",
+ "eval.tests.test_functions.test_function_scope_and_lifetime[let a=0; (function(x){let z=x;a=typeof z;})('x'); a-\"string\"]",
+ "eval.tests.test_golden_outputs.test_golden_print_program_1",
+ "eval.tests.test_golden_outputs.test_golden_print_program_2",
+ "eval.tests.test_keyword_errors.test_delete_is_identifier_not_found",
+ "eval.tests.test_keyword_errors.test_instanceof_error_truncated",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[case-ERROR: 'case' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[catch-ERROR: 'catch' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[default-ERROR: 'default' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[do-ERROR: 'do' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[finally-ERROR: 'finally' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[in-ERROR: 'in' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[new-ERROR: 'new' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[this-ERROR: 'this' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[throw-ERROR: 'throw' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[void-ERROR: 'void' not implemented]",
+ "eval.tests.test_keyword_errors.test_more_not_implemented_keywords[while-ERROR: 'while' not implemented]",
+ "eval.tests.test_keyword_errors.test_while_as_statement",
+ "eval.tests.test_length_edges.test_non_string_length[({}).length-undefined]",
+ "eval.tests.test_length_edges.test_non_string_length[1 . length-ERROR: lookup in non-obj]",
+ "eval.tests.test_length_edges.test_non_string_length[12345 . length-ERROR: lookup in non-obj]",
+ "eval.tests.test_length_edges.test_non_string_length[let f=function(){}; f.length-ERROR: lookup in non-obj]",
+ "eval.tests.test_length_edges.test_non_string_length[null.length-ERROR: lookup in non-obj]",
+ "eval.tests.test_length_edges.test_non_string_length[true.length-ERROR: lookup in non-obj]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic[''.length + 0-0]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['a'.length || 0-1]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['abc'.length * 2-6]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['abc'.length + 1-4]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['abc'.length - 2-1]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['abc'.length < 5-true]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['abc'.length === 3-true]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['hello world'.length-11]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic['x'.length === 1-true]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic[1 + 'abc'.length-4]",
+ "eval.tests.test_length_edges.test_string_length_arithmetic[typeof 'abc'.length-\"number\"]",
+ "eval.tests.test_length_edges.test_string_length_counts_utf8_bytes",
+ "eval.tests.test_length_edges.test_string_other_member_is_non_obj",
+ "eval.tests.test_loop_variants.test_for_condition_and_empty_final[let s=0; for (let i=0;(i++)<5;) s+=i; s-15]",
+ "eval.tests.test_loop_variants.test_for_condition_and_empty_final[let s=0; for (let i=0;i<6;){ s+=i; i+=1; } s-15]",
+ "eval.tests.test_loop_variants.test_for_condition_and_empty_final[let s=0; for (let i=5;i>0;){ s+=i; i--; } s-15]",
+ "eval.tests.test_loop_variants.test_for_continue_break_windows[let s=0; for (let i=0;i<10;i++){ if(i===3) break; s+=i; } s-3]",
+ "eval.tests.test_loop_variants.test_for_continue_break_windows[let s=0; for (let i=0;i<20;i++){ s+=i; if(s>=10) break; } s-10]",
+ "eval.tests.test_loop_variants.test_for_continue_break_windows[let s=0; for (let i=0;i<5;i++){ if(i<2) continue; s+=i; } s-9]",
+ "eval.tests.test_loop_variants.test_for_continue_break_windows[let s=0; for (let i=0;i<5;i++){ if(i===2) continue; s+=i; } s-8]",
+ "eval.tests.test_loop_variants.test_for_continue_break_windows[let s=0; for (let i=0;i<9;i++){ if(i%2===0) continue; s+=i; } s-16]",
+ "eval.tests.test_loop_variants.test_for_continue_break_windows[let s=0; for (let i=1;i<5;i++){ s+=i; if(i>=3) break; } s-6]",
+ "eval.tests.test_loop_variants.test_for_init_undeclared_not_found[let s=0; for (i=0;i<3;i++) s+=i; s-ERROR: 'i' not found]",
+ "eval.tests.test_loop_variants.test_for_inner_temp_scope[let s=0; for (let i=0;i<3;i++){ let t=i*2; s+=t; } s-6]",
+ "eval.tests.test_loop_variants.test_for_inner_temp_scope[let s=0; for (let i=0;i<4;i++){ let u=i*i; s+=u; } s-14]",
+ "eval.tests.test_loop_variants.test_for_inner_temp_scope[let s=0; for (let i=1;i<=3;i++){ let f=i; s+=f*f; } s-14]",
+ "eval.tests.test_loop_variants.test_for_step_and_descending[let s=0; for (let i=0;i<4;i=i+2) s+=i; s-2]",
+ "eval.tests.test_loop_variants.test_for_step_and_descending[let s=0; for (let i=0;i<5;i+=2) s+=i; s-6]",
+ "eval.tests.test_loop_variants.test_for_step_and_descending[let s=0; for (let i=0;i<5;i=i*1+1) s+=i; s-10]",
+ "eval.tests.test_loop_variants.test_for_step_and_descending[let s=0; for (let i=0;i<=5;i++) s+=i; s-15]",
+ "eval.tests.test_loop_variants.test_for_step_and_descending[let s=0; for (let i=10;i>0;i-=3) s+=i; s-22]",
+ "eval.tests.test_loop_variants.test_for_step_and_descending[let s=0; for (let i=5;i>0;i--) s+=i; s-15]",
+ "eval.tests.test_loop_variants.test_nested_loop_break_continue[let a=0; for (let i=0;i<3;i++){ for (let j=0;j<3;j++){ if(j===0) continue; a++; } } a-6]",
+ "eval.tests.test_loop_variants.test_nested_loop_break_continue[let a=0; for (let i=0;i<4;i++){ for (let j=0;j>= 1; o.a-4]",
+ "eval.tests.test_object_compound_ops.test_object_member_bit_compound_assign[let o={a:8}; o.a >>= 2; o.a-2]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:1}; o.a++-1]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:1}; o.a++; o.a-2]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:1}; o.a--; o.a-0]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:5}; o.a++; o.a-6]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:{b:10}}; o.a.b++; o.a.b-11]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:{b:10}}; o.a.b--; o.a.b-9]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:{b:2}}; o.a.b++-2]",
+ "eval.tests.test_object_compound_ops.test_object_member_incdec[let o={a:{b:2}}; o.a.b++; o.a.b-3]",
+ "eval.tests.test_object_compound_ops.test_object_member_mutation_errors[let o={}; o.a += 1; o.a-ERROR: bad lhs]",
+ "eval.tests.test_object_compound_ops.test_object_member_mutation_errors[let o={}; o.a++; o.a-ERROR: bad lhs for ++]",
+ "eval.tests.test_object_compound_ops.test_object_member_mutation_errors[let o={}; o.a--; o.a-ERROR: bad lhs for --]",
+ "eval.tests.test_object_compound_ops.test_object_nested_prop_write_read[let o={a:{b:10}}; o.a.b += 5; o.a.b-15]",
+ "eval.tests.test_object_compound_ops.test_object_nested_prop_write_read[let o={a:{b:{c:1}}}; let p=o.a.b.c; p-1]",
+ "eval.tests.test_object_compound_ops.test_object_nested_prop_write_read[let o={a:{b:{c:1}}}; o.a.b.c += 4; o.a.b.c-5]",
+ "eval.tests.test_object_compound_ops.test_object_nested_prop_write_read[let o={a:{b:{c:1}}}; o.a.b.c = 9; o.a.b.c-9]",
+ "eval.tests.test_object_compound_ops.test_object_nested_prop_write_read[let o={a:{b:{c:1}}}; o.a.b.c = o.a.b.c + o.a.b.c; o.a.b.c-2]",
+ "eval.tests.test_object_compound_ops.test_object_nested_prop_write_read[let o={a:{b:{c:2}}}; o.a.b.c *= 3; o.a.b.c-6]",
+ "eval.tests.test_object_member_expression.test_object_member_arithmetic_composition[let o={a:3}; (o.a + 1) * o.a-12]",
+ "eval.tests.test_object_member_expression.test_object_member_arithmetic_composition[let o={a:3}; o.a * 2 + o.a-9]",
+ "eval.tests.test_object_member_expression.test_object_member_arithmetic_composition[let o={x:2,y:3}; o.x * (o.y + 1)-8]",
+ "eval.tests.test_object_member_expression.test_object_member_arithmetic_composition[let o={x:2,y:3}; o.x + o.y-5]",
+ "eval.tests.test_object_writes.test_object_dump_shows_both_props",
+ "eval.tests.test_object_writes.test_object_literal_forms[({a:1,b:{c:2}})-{\"b\":{\"c\":2},\"a\":1}]",
+ "eval.tests.test_object_writes.test_object_literal_forms[({b:2,a:1})-{\"a\":1,\"b\":2}]",
+ "eval.tests.test_object_writes.test_object_literal_forms[let o={a:1,b:2,c:3}; o-{\"c\":3,\"b\":2,\"a\":1}]",
+ "eval.tests.test_object_writes.test_object_literal_forms[let o={a:1,}; o-{\"a\":1}]",
+ "eval.tests.test_object_writes.test_object_nested_reads[({a:1,b:2}).a-1]",
+ "eval.tests.test_object_writes.test_object_nested_reads[({}).length-undefined]",
+ "eval.tests.test_object_writes.test_object_nested_reads[let o={a:{b:{c:1}}}; o.a.b.c-1]",
+ "eval.tests.test_object_writes.test_object_nested_reads[let o={f:function(x){return x*2;}}; o.f(o.f(2))-8]",
+ "eval.tests.test_object_writes.test_object_nested_reads[let o={get:function(){return 42;}}; o.get()-42]",
+ "eval.tests.test_object_writes.test_object_nested_reads[let o={}; o.missing-undefined]",
+ "eval.tests.test_object_writes.test_object_unsupported_access_errors['abc'[0]-ERROR: ; expected]",
+ "eval.tests.test_object_writes.test_object_unsupported_access_errors[1[0]-ERROR: ; expected]",
+ "eval.tests.test_object_writes.test_object_unsupported_access_errors[let a={0:'x'}; a[0]-ERROR: parse error]",
+ "eval.tests.test_object_writes.test_object_unsupported_access_errors[let a={}; a['k']=1; a-ERROR: ; expected]",
+ "eval.tests.test_object_writes.test_object_unsupported_access_errors[let o={a:1}; o['a']-ERROR: ; expected]",
+ "eval.tests.test_object_writes.test_object_unsupported_access_errors[let o={a:1}; o['a']=2; o-ERROR: ; expected]",
+ "eval.tests.test_object_writes.test_object_unsupported_access_errors[let o={}; o.a.-ERROR: bad expr]",
+ "eval.tests.test_object_writes.test_object_write_existing_property[let o={a:1,b:2}; o.a=o.b; o-{\"b\":2,\"a\":2}]",
+ "eval.tests.test_object_writes.test_object_write_existing_property[let o={a:1}; o.a += 2; o.a-3]",
+ "eval.tests.test_object_writes.test_object_write_existing_property[let o={a:1}; o.a = o.a * 3; o.a-3]",
+ "eval.tests.test_object_writes.test_object_write_existing_property[let o={a:1}; o.a=2; o-{\"a\":2}]",
+ "eval.tests.test_object_writes.test_object_write_existing_property[let o={a:1}; o.a=2; o.a-2]",
+ "eval.tests.test_object_writes.test_object_write_existing_property[let o={x:{y:1}}; o.x.y=5; o-{\"x\":{\"y\":5}}]",
+ "eval.tests.test_object_writes.test_object_write_existing_property[let o={x:{y:1}}; o.x.y=o.x.y+1; o.x.y-2]",
+ "eval.tests.test_object_writes.test_object_write_new_property_is_bad_lhs[let o={a:1}; o.b=2; o-ERROR: bad lhs]",
+ "eval.tests.test_object_writes.test_object_write_new_property_is_bad_lhs[let o={a:1}; o.b=o.a+1; o.b-ERROR: bad lhs]",
+ "eval.tests.test_object_writes.test_object_write_new_property_is_bad_lhs[let o={}; o.a=1; o-ERROR: bad lhs]",
+ "eval.tests.test_object_writes.test_object_write_new_property_is_bad_lhs[let o={}; o.a=1; o.a-ERROR: bad lhs]",
+ "eval.tests.test_object_writes.test_object_write_new_property_is_bad_lhs[let o={}; o.a=o.a-ERROR: bad lhs]",
+ "eval.tests.test_objects.test_object_dump_shows_props",
+ "eval.tests.test_objects.test_object_early_declared_property",
+ "eval.tests.test_objects.test_object_errors[1 = 7-ERROR: bad lhs]",
+ "eval.tests.test_objects.test_object_errors[1 = 7;-ERROR: bad lhs]",
+ "eval.tests.test_objects.test_object_errors[let a={b:{c:3}}; a.b.c.-ERROR: bad expr]",
+ "eval.tests.test_objects.test_object_errors[let a={}; let x=1; let x=2;-ERROR: 'x' already declared]",
+ "eval.tests.test_objects.test_object_errors[let d=0; 1 + d = 3-ERROR: bad lhs]",
+ "eval.tests.test_objects.test_object_errors[let o={a:1}; o.b.c-ERROR: lookup in non-obj]",
+ "eval.tests.test_objects.test_object_errors[let o={}; o.b = o.b-ERROR: bad lhs]",
+ "eval.tests.test_objects.test_object_literal_two_way",
+ "eval.tests.test_objects.test_object_literals[({\"a\":4})-{\"a\":4}]",
+ "eval.tests.test_objects.test_object_literals[({a:1,b:true})-{\"b\":true,\"a\":1}]",
+ "eval.tests.test_objects.test_object_literals[({a:1,b:{c:2}})-{\"b\":{\"c\":2},\"a\":1}]",
+ "eval.tests.test_objects.test_object_literals[({a:1})-{\"a\":1}]",
+ "eval.tests.test_objects.test_object_literals[({a:3}).a-3]",
+ "eval.tests.test_objects.test_object_literals[({})-{}]",
+ "eval.tests.test_objects.test_object_literals[({}).a-undefined]",
+ "eval.tests.test_objects.test_object_literals[let a; a = {b:2}; a-{\"b\":2}]",
+ "eval.tests.test_objects.test_object_literals[let o={a:1,b:2}; o-{\"b\":2,\"a\":1}]",
+ "eval.tests.test_objects.test_object_member_read[let a; a = {b:2}; a.b-2]",
+ "eval.tests.test_objects.test_object_member_read[let a; a = {b:{c:3}}; a.b.c-3]",
+ "eval.tests.test_objects.test_object_member_read[let a; a = {x:1,y:2}; a.x-1]",
+ "eval.tests.test_objects.test_object_member_read[let a; a = {x:1,y:2}; a.y-2]",
+ "eval.tests.test_objects.test_object_member_read[let o = {a:1}; o.a += 1; o;-{\"a\":2}]",
+ "eval.tests.test_objects.test_object_member_read[let o={f:function(x){return x*2;}}; o.f(3)-6]",
+ "eval.tests.test_objects.test_object_nested_assignment_updates_outer",
+ "eval.tests.test_objects.test_object_set_then_read_member",
+ "eval.tests.test_objects.test_string_of_undefined_property",
+ "eval.tests.test_operator_edges.test_bool_and_undefined_comparisons[true < false-ERROR: type mismatch]",
+ "eval.tests.test_operator_edges.test_bool_and_undefined_comparisons[true > false-ERROR: type mismatch]",
+ "eval.tests.test_operator_edges.test_bool_and_undefined_comparisons[undefined !== undefined-ERROR: type mismatch]",
+ "eval.tests.test_operator_edges.test_bool_and_undefined_comparisons[undefined === undefined-ERROR: type mismatch]",
+ "eval.tests.test_operator_edges.test_call_non_function_guards[f()-ERROR: 'f' not found]",
+ "eval.tests.test_operator_edges.test_call_non_function_guards[let x; x()-ERROR: calling non-function]",
+ "eval.tests.test_operator_edges.test_call_non_function_guards[let x=5; x()-ERROR: calling non-function]",
+ "eval.tests.test_operator_edges.test_call_non_function_guards[null()-ERROR: calling non-function]",
+ "eval.tests.test_operator_edges.test_call_non_function_guards[true()-ERROR: calling non-function]",
+ "eval.tests.test_operator_edges.test_chained_compound_assignment[let a=0; a += a += a += 1; a-4]",
+ "eval.tests.test_operator_edges.test_chained_compound_assignment[let a=1; a += a += 2; a-6]",
+ "eval.tests.test_operator_edges.test_incdec_on_non_lvalue['a'++-ERROR: bad lhs for ++]",
+ "eval.tests.test_operator_edges.test_incdec_on_non_lvalue[(1+1)++-ERROR: bad lhs for ++]",
+ "eval.tests.test_operator_edges.test_incdec_on_non_lvalue[1++-ERROR: bad lhs for ++]",
+ "eval.tests.test_operator_edges.test_incdec_on_non_lvalue[1---ERROR: bad lhs for --]",
+ "eval.tests.test_operator_edges.test_modulo_by_zero_returns_dividend[-5 % 0--5]",
+ "eval.tests.test_operator_edges.test_modulo_by_zero_returns_dividend[10 % 0-10]",
+ "eval.tests.test_operator_edges.test_modulo_by_zero_returns_dividend[17 % 0-17]",
+ "eval.tests.test_operator_edges.test_modulo_by_zero_returns_dividend[let y=10; y % 0-10]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[-3.5 % 2--1.5]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[-7 % -2--1]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[-7 % 2--1]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[1 % 0.5-0]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[1.5 % 1-0.5]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[1e1 % 3-1]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[3.5 % 2-1.5]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[5.5 % -2-1.5]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[5.5 % 2.5-0.5]",
+ "eval.tests.test_operator_edges.test_modulo_float_and_sign_operands[7 % -2-1]",
+ "eval.tests.test_operator_edges.test_return_outside_function[for (let i=0;i<1;i++) return i;-ERROR: not in func]",
+ "eval.tests.test_operator_edges.test_return_outside_function[if (1) return 1;-ERROR: not in func]",
+ "eval.tests.test_operator_edges.test_return_outside_function[let a=1; return a;-ERROR: not in func]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[0 === ''-ERROR: type mismatch]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[0 === false-ERROR: type mismatch]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[0 === null-ERROR: type mismatch]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[0.1 + 0.2 === 0.3-true]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[1 !== 2-true]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[1 * 2 === 4 / 2-true]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[1 + 1 !== 3-true]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[1 === 1-true]",
+ "eval.tests.test_operator_edges.test_strict_equality_type_behavior[1 === 2-false]",
+ "eval.tests.test_parsing.test_comments_are_skipped[/*x*/1-1]",
+ "eval.tests.test_parsing.test_comments_are_skipped[//x\\n1-1]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1 /*x*/ + 2-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1 + /* * */ 2;-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1 + /*\\n//*/ 2;-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1+2//combined-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1+2;//9-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1/**/+ /* */2;/**///9-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1/**/+ /* \\n*/2;/**///9-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1/**/+ /* some comment*/2;/**///9-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1/**/+2;/**///9-3]",
+ "eval.tests.test_parsing.test_comments_are_skipped[1/**/+2;//9-3]",
+ "eval.tests.test_parsing.test_lex_parse_errors[;-ERROR: bad expr]",
+ "eval.tests.test_parsing.test_lex_parse_errors[;;-ERROR: bad expr]",
+ "eval.tests.test_parsing.test_lex_parse_errors[for()-ERROR: bad expr]",
+ "eval.tests.test_parsing.test_lex_parse_errors[if 1-ERROR: parse error]",
+ "eval.tests.test_parsing.test_lex_parse_errors[if(1)-ERROR: bad expr]",
+ "eval.tests.test_parsing.test_lex_parse_errors[let a=\"abc; a-ERROR: parse error]",
+ "eval.tests.test_parsing.test_lex_parse_errors[let a=0; for (1 1;1;1) a++; a-ERROR: parse error]",
+ "eval.tests.test_parsing.test_lex_parse_errors[let let-ERROR: parse error]",
+ "eval.tests.test_parsing.test_lex_parse_errors[let;-ERROR: parse error]",
+ "eval.tests.test_parsing.test_multiple_statement_comment_still_returns_last",
+ "eval.tests.test_parsing.test_newlines_and_whitespace[ 1 + 1 -2]",
+ "eval.tests.test_parsing.test_newlines_and_whitespace[1 +\\n 2-3]",
+ "eval.tests.test_parsing.test_newlines_and_whitespace[1+\\n2-3]",
+ "eval.tests.test_parsing.test_newlines_and_whitespace[let a = 1; a-1]",
+ "eval.tests.test_parsing.test_rejected_literal_forms[.5-ERROR: bad expr]",
+ "eval.tests.test_parsing.test_rejected_literal_forms[0b101-ERROR: ; expected]",
+ "eval.tests.test_parsing.test_rejected_literal_forms[0o17-ERROR: ; expected]",
+ "eval.tests.test_parsing.test_rejected_literal_forms[0x-ERROR: ; expected]",
+ "eval.tests.test_parsing.test_rejected_literal_forms[1_000-ERROR: ; expected]",
+ "eval.tests.test_parsing.test_rejected_literal_forms[[]-ERROR: parse error]",
+ "eval.tests.test_parsing.test_rejected_literal_forms[typeof []-ERROR: parse error]",
+ "eval.tests.test_parsing.test_semicolon_separators[1+2;-3]",
+ "eval.tests.test_parsing.test_semicolon_separators[1;2-2]",
+ "eval.tests.test_parsing.test_semicolon_separators[1;2;-2]",
+ "eval.tests.test_parsing.test_semicolon_separators[1;2;3;-3]",
+ "eval.tests.test_parsing.test_semicolon_separators[let a=1; a;-1]",
+ "eval.tests.test_print_function.test_nested_print_two_output_lines",
+ "eval.tests.test_print_function.test_print_an_empty_string_arg",
+ "eval.tests.test_print_function.test_print_function_between_writes",
+ "eval.tests.test_print_function.test_print_joins_arguments[print('a','b','c')-\"a\" \"b\" \"c\"]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print('x', 3, true)-\"x\" 3 true]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print(1+1, 2*2)-2 4]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print(1, 'one')-1 \"one\"]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print(1,2,3)-1 2 3]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print(1,2,3,4,5)-1 2 3 4 5]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print(1.5, 2.5)-1.5 2.5]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print(true, false, null, undefined)-true false null undefined]",
+ "eval.tests.test_print_function.test_print_joins_arguments[print({a:1})-{\"a\":1}]",
+ "eval.tests.test_print_function.test_print_side_effect_then_null_undef",
+ "eval.tests.test_print_function.test_two_print_statements",
+ "eval.tests.test_scopes.test_block_scope_shadowing[let a=0; { let a=1; { a++; } } a-0]",
+ "eval.tests.test_scopes.test_block_scope_shadowing[let a=1; let b=a; { let a=2; } b-1]",
+ "eval.tests.test_scopes.test_block_scope_shadowing[let a=1; { a=9; } a-9]",
+ "eval.tests.test_scopes.test_block_scope_shadowing[let a=1; { let a=1; } let a=1; a-ERROR: 'a' already declared]",
+ "eval.tests.test_scopes.test_block_scope_shadowing[let a=1; { let a=9; { let a=8; } } a-1]",
+ "eval.tests.test_scopes.test_block_scope_shadowing[let a=1; { let a=9; } a-1]",
+ "eval.tests.test_scopes.test_block_scope_shadowing[let a=1; { let b=2; a+=b; } a-3]",
+ "eval.tests.test_scopes.test_block_scope_shadowing[{ let x=3; } x-ERROR: 'x' not found]",
+ "eval.tests.test_scopes.test_block_statement_value[{ let a=0; for(;a<5;){a++;} }-undefined]",
+ "eval.tests.test_scopes.test_block_statement_value[{1;2;}-2]",
+ "eval.tests.test_scopes.test_block_statement_value[{1;2}-ERROR: ; expected]",
+ "eval.tests.test_scopes.test_block_statement_value[{1;}-1]",
+ "eval.tests.test_scopes.test_block_statement_value[{1;}2;3-3]",
+ "eval.tests.test_scopes.test_block_statement_value[{{}}-undefined]",
+ "eval.tests.test_scopes.test_block_statement_value[{}-undefined]",
+ "eval.tests.test_scopes.test_named_recursion[let fact=function(n){return n<2?1:n*fact(n-1);}; fact(0)-1]",
+ "eval.tests.test_scopes.test_named_recursion[let fact=function(n){return n<2?1:n*fact(n-1);}; fact(5)-120]",
+ "eval.tests.test_scopes.test_named_recursion[let fact=function(n){return n<2?1:n*fact(n-1);}; fact(6)-720]",
+ "eval.tests.test_scopes.test_named_recursion[let fib=function(n){return n<2?n:fib(n-1)+fib(n-2);}; fib(10)-55]",
+ "eval.tests.test_scopes.test_named_recursion[let fib=function(n){return n<2?n:fib(n-1)+fib(n-2);}; fib(2)-1]",
+ "eval.tests.test_scopes.test_nested_function_closure[let f=function(a){ let g=function(b){ return a+b;}; return g(1);}; f(2)-3]",
+ "eval.tests.test_scopes.test_nested_function_closure[let f=function(a){ let g=function(b){return a*b;}; return g(4); }; f(3)-12]",
+ "eval.tests.test_scopes.test_nested_function_closure[let f=function(a){ let g=function(b){return a+b;}; return g(a); }; f(5)-10]",
+ "eval.tests.test_scopes.test_nested_function_closure[let f=function(x){ return function(y){return x+y;}; }; f(2)-function(y){return x+y;}]",
+ "eval.tests.test_scopes.test_nested_function_closure[let mk=function(x){ return function(y){return x+y;}; }; let g=mk(2); g(3)-ERROR: 'x' not found]",
+ "eval.tests.test_scopes.test_recursion_deep_countdown",
+ "eval.tests.test_str_escape_edges.test_bad_string_literals[\"a\\\\\\\\\"-ERROR: bad str literal]",
+ "eval.tests.test_str_escape_edges.test_bad_string_literals['a\\\\\"-ERROR: parse error]",
+ "eval.tests.test_str_escape_edges.test_bad_string_literals['a\\\\0b'-ERROR: bad str literal]",
+ "eval.tests.test_str_escape_edges.test_bad_string_literals['a\\\\Zb'-ERROR: bad str literal]",
+ "eval.tests.test_str_escape_edges.test_bad_string_literals['a\\\\x'-ERROR: parse error]",
+ "eval.tests.test_str_escape_edges.test_bad_string_literals['a\\\\xg'-ERROR: parse error]",
+ "eval.tests.test_str_escape_edges.test_bad_string_literals['a\\\\xyz'-ERROR: bad str literal]",
+ "eval.tests.test_str_escape_edges.test_hex_escape_printables['\\\\x41'-\"A\"]",
+ "eval.tests.test_str_escape_edges.test_hex_escape_printables['a\\\\x20b'-\"a b\"]",
+ "eval.tests.test_str_escape_edges.test_hex_escape_printables['a\\\\x61'-\"aa\"]",
+ "eval.tests.test_str_escape_edges.test_hex_escape_printables['a\\\\x7b'-\"a{\"]",
+ "eval.tests.test_str_escape_edges.test_hex_escape_printables['a\\\\x7d'-\"a}\"]",
+ "eval.tests.test_str_escape_edges.test_hex_escape_space_is_raw_byte",
+ "eval.tests.test_str_escape_edges.test_hex_escape_uppercase_is_raw_byte",
+ "eval.tests.test_string_ne_semantics.test_string_eq_after_concat[''+'' === ''-true]",
+ "eval.tests.test_string_ne_semantics.test_string_eq_after_concat['a'+'' === 'a'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_eq_after_concat['a'+'b' !== 'ac'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_eq_after_concat['a'+'b' === 'ab'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_eq_after_concat['x'+'y' === 'x'+'y'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['' !== ''-false]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['' !== 'a'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['a' !== ''-true]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['a' !== 'ab'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['ab' !== 'a'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['ab' !== 'ab'-false]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['abc' !== 'abc'-false]",
+ "eval.tests.test_string_ne_semantics.test_string_ne['abc' !== 'abd'-true]",
+ "eval.tests.test_string_ne_semantics.test_string_var_content_equality",
+ "eval.tests.test_string_relational_errors.test_lone_unequal_operator_is_parse_error['a' != 5-ERROR: ; expected]",
+ "eval.tests.test_string_relational_errors.test_lone_unequal_operator_is_parse_error[1 + 1 != 3-ERROR: ; expected]",
+ "eval.tests.test_string_relational_errors.test_lone_unequal_operator_is_parse_error[5 != 3-ERROR: ; expected]",
+ "eval.tests.test_string_relational_errors.test_string_concat_compound_assign[let s=''; for(let i=0;i<5;i++){ s += 'x'; } s-\"xxxxx\"]",
+ "eval.tests.test_string_relational_errors.test_string_concat_compound_assign[let s=''; s += 'a'; s += ''; s-\"a\"]",
+ "eval.tests.test_string_relational_errors.test_string_concat_compound_assign[let s='a'; s += 'b'; s += 'c'; s-\"abc\"]",
+ "eval.tests.test_string_relational_errors.test_string_concat_compound_assign[let s='ab'; s += 'cd'; s-\"abcd\"]",
+ "eval.tests.test_string_relational_errors.test_string_equality_forms['' !== 'a'-true]",
+ "eval.tests.test_string_relational_errors.test_string_equality_forms['a' == 'a'-ERROR: bad expr]",
+ "eval.tests.test_string_relational_errors.test_string_equality_forms[let s1='a'; let s2='a'; s1 === s2-true]",
+ "eval.tests.test_string_relational_errors.test_string_equality_forms[let s='a'; 'a' === s-true]",
+ "eval.tests.test_string_relational_errors.test_string_equality_forms[let s='a'; s === 'a'-true]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch['a' * 2-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch['a' - 1-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch['a' === 5-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch['a' > 5-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch[1 <= 'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch[3 + 'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch[5 < 'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch[5 === 'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch[let a='x'; a += 1; a-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_number_mixed_type_mismatch[let a=1; a += 'x'; a-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['a' * 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['a' - 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['a' < 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['a' <= 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['a' > 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['a' >= 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['ab' % 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['ab' / 'b'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['x' & 'y'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['x' ^ 'y'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_relational_and_arith_bad_op['x' | 'y'-ERROR: bad str op]",
+ "eval.tests.test_string_relational_errors.test_string_unary_operators_type_mismatch[!'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_unary_operators_type_mismatch[+'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_unary_operators_type_mismatch[-'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_unary_operators_type_mismatch[typeof !'a'-ERROR: type mismatch]",
+ "eval.tests.test_string_relational_errors.test_string_unary_operators_type_mismatch[~'a'-ERROR: type mismatch]",
+ "eval.tests.test_strings.test_control_escape_hex_alphanum_length",
+ "eval.tests.test_strings.test_multiple_control_escapes_raw_bytes",
+ "eval.tests.test_strings.test_string_concat['1' + '2'-\"12\"]",
+ "eval.tests.test_strings.test_string_concat['ab' + 'cd'-\"abcd\"]",
+ "eval.tests.test_strings.test_string_concat[let a,b; a = b = 'hi'; a-\"hi\"]",
+ "eval.tests.test_strings.test_string_concat[let r='',i=0; for(;i<2;) { r+='x'; i++; } r-\"xx\"]",
+ "eval.tests.test_strings.test_string_concat[let r=''; r+='x'; r+='y'; r-\"xy\"]",
+ "eval.tests.test_strings.test_string_concat[let s='a'; s+='b'+'c'; s-\"abc\"]",
+ "eval.tests.test_strings.test_string_control_char_escapes_raw_bytes['a\\\\nb'-a\\nb]",
+ "eval.tests.test_strings.test_string_control_char_escapes_raw_bytes['a\\\\rb'-a\\rb]",
+ "eval.tests.test_strings.test_string_control_char_escapes_raw_bytes['a\\\\tb'-a\\tb]",
+ "eval.tests.test_strings.test_string_control_char_escapes_raw_bytes['a\\\\x09b'-a\\tb]",
+ "eval.tests.test_strings.test_string_control_char_escapes_raw_bytes['f\\\\x61'-fa]",
+ "eval.tests.test_strings.test_string_control_char_escapes_raw_bytes['quote\\\\'it'-quote'it]",
+ "eval.tests.test_strings.test_string_errors['aa'.foo-ERROR: lookup in non-obj]",
+ "eval.tests.test_strings.test_string_errors['f\\\\x-ERROR: parse error]",
+ "eval.tests.test_strings.test_string_errors['f\\\\xrr'-ERROR: bad str literal]",
+ "eval.tests.test_strings.test_string_errors['f\\\\xx-ERROR: parse error]",
+ "eval.tests.test_strings.test_string_errors['f\\\\xxx-ERROR: parse error]",
+ "eval.tests.test_strings.test_string_errors['foo\\\\'-ERROR: parse error]",
+ "eval.tests.test_strings.test_string_errors['foo\\\\q'-ERROR: bad str literal]",
+ "eval.tests.test_strings.test_string_errors['foo\\\\q-ERROR: parse error]",
+ "eval.tests.test_strings.test_string_errors['x' * 'y'-ERROR: bad str op]",
+ "eval.tests.test_strings.test_string_errors[1 + ''-ERROR: type mismatch]",
+ "eval.tests.test_strings.test_string_escapes['\\\\x41'-\"A\"]",
+ "eval.tests.test_strings.test_string_escapes['a\\\\x62c'-\"abc\"]",
+ "eval.tests.test_strings.test_string_escapes['f\\\\x61'-\"fa\"]",
+ "eval.tests.test_strings.test_string_length[''.length-0]",
+ "eval.tests.test_strings.test_string_length['\\u041a\\u0438\\u0457\\u0432'.length-8]",
+ "eval.tests.test_strings.test_string_length['aaaaaa'.length-6]",
+ "eval.tests.test_strings.test_string_length['hello'.length-5]",
+ "eval.tests.test_strings.test_string_length[({a:'\\u0457'}).a.length-2]",
+ "eval.tests.test_strings.test_string_length[1 . toString-ERROR: lookup in non-obj]",
+ "eval.tests.test_strings.test_string_length[let s = 'a' + 'b'; s.length-2]",
+ "eval.tests.test_strings.test_string_literals['a'+'b'-\"ab\"]",
+ "eval.tests.test_strings.test_string_literals['foo'-\"foo\"]",
+ "eval.tests.test_strings.test_string_literals['hi'+' ' + 'there'-\"hi there\"]",
+ "eval.tests.test_strings.test_string_literals['quoted' . length-6]",
+ "eval.tests.test_strings.test_string_literals[('foo')-\"foo\"]",
+ "eval.tests.test_strings.test_string_literals[({a:'x'}).a-\"x\"]",
+ "eval.tests.test_strings.test_string_literals[let a = 'b'; a === 'b'-true]",
+ "eval.tests.test_strings.test_string_shared_assignment",
+ "eval.tests.test_strings.test_string_variables_distinct_instances",
+ "eval.tests.test_undefined_semantics.test_undefined_truthiness[!undefined-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_undefined_truthiness[let a=0; if (undefined) a=1; else a=2; a-2]",
+ "eval.tests.test_undefined_semantics.test_undefined_truthiness[let a=0; undefined || (a=1); a-1]",
+ "eval.tests.test_undefined_semantics.test_undefined_truthiness[typeof undefined-\"undefined\"]",
+ "eval.tests.test_undefined_semantics.test_undefined_truthiness[undefined && 'x'-undefined]",
+ "eval.tests.test_undefined_semantics.test_undefined_truthiness[undefined || 'x'-\"x\"]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[1 + undefined-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[undefined !== undefined-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[undefined * 2-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[undefined + 1-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[undefined == undefined-ERROR: bad expr]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[undefined === null-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[undefined === undefined-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_undefined_type_mismatch[~undefined-ERROR: type mismatch]",
+ "eval.tests.test_undefined_semantics.test_uninitialized_variable_value",
+ "eval.tests.test_values.test_assignment_operators[let a,b; a = b = 7; a-7]",
+ "eval.tests.test_values.test_assignment_operators[let a; a = 7-7]",
+ "eval.tests.test_values.test_assignment_operators[let a; a = 7; a-7]",
+ "eval.tests.test_values.test_assignment_operators[let a=1; a += 1; a-2]",
+ "eval.tests.test_values.test_assignment_operators[let a=1; a ^= 5; a-4]",
+ "eval.tests.test_values.test_assignment_operators[let a=2; a *= 8; a-16]",
+ "eval.tests.test_values.test_assignment_operators[let a=3; a <<= 2; a-12]",
+ "eval.tests.test_values.test_assignment_operators[let a=3; a |= 3; a-3]",
+ "eval.tests.test_values.test_assignment_operators[let a=5; a &= 3; a-1]",
+ "eval.tests.test_values.test_assignment_operators[let a=6; a &= 3; a-2]",
+ "eval.tests.test_values.test_assignment_operators[let a=6; a |= 3; a-7]",
+ "eval.tests.test_values.test_assignment_operators[let a=8; a %= 3; a-2]",
+ "eval.tests.test_values.test_assignment_operators[let a=8; a -= 3; a-5]",
+ "eval.tests.test_values.test_assignment_operators[let a=8; a /= 2; a-4]",
+ "eval.tests.test_values.test_assignment_operators[let a=8; a >>= 2; a-2]",
+ "eval.tests.test_values.test_assignment_operators[let d; d = 1+2-3; d-0]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[0 || 'a'-\"a\"]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[1 && ''-\"\"]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[1 && 'x'-\"x\"]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[1 && 2-2]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[1 && false && true-false]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[1 && false || true-true]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[1 && false-false]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[1 || 'a'-1]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[true && false-false]",
+ "eval.tests.test_values.test_boolean_logic_short_circuit[true || false-true]",
+ "eval.tests.test_values.test_comparisons['a' !== 'b'-true]",
+ "eval.tests.test_values.test_comparisons['a' === 'a'-true]",
+ "eval.tests.test_values.test_comparisons['a' === 'b'-false]",
+ "eval.tests.test_values.test_comparisons[1 !== 1-false]",
+ "eval.tests.test_values.test_comparisons[1 !== 2-true]",
+ "eval.tests.test_values.test_comparisons[1 < 2-true]",
+ "eval.tests.test_values.test_comparisons[1 <= 2-true]",
+ "eval.tests.test_values.test_comparisons[1 === 1-true]",
+ "eval.tests.test_values.test_comparisons[1 === 2-false]",
+ "eval.tests.test_values.test_comparisons[13 + 4 === 17-true]",
+ "eval.tests.test_values.test_comparisons[2 < 1-false]",
+ "eval.tests.test_values.test_comparisons[2 <= 2-true]",
+ "eval.tests.test_values.test_comparisons[2 > 3-false]",
+ "eval.tests.test_values.test_comparisons[2 >= 2-true]",
+ "eval.tests.test_values.test_comparisons[3 >= 2-true]",
+ "eval.tests.test_values.test_incdec[let a=0; 1 + a++ + 2-3]",
+ "eval.tests.test_values.test_incdec[let a=0; 3 * (1 + a++ + (2 + a++))-12]",
+ "eval.tests.test_values.test_incdec[let a=0; a++ - a++--1]",
+ "eval.tests.test_values.test_incdec[let a=0; a++-0]",
+ "eval.tests.test_values.test_incdec[let a=0; a++; a-1]",
+ "eval.tests.test_values.test_incdec[let a=5; a++; a-6]",
+ "eval.tests.test_values.test_incdec[let a=7; a--; a-6]",
+ "eval.tests.test_values.test_literals[\"\"-\"\"]",
+ "eval.tests.test_values.test_literals[\"hello\"-\"hello\"]",
+ "eval.tests.test_values.test_literals[''-\"\"]",
+ "eval.tests.test_values.test_literals['hello'-\"hello\"]",
+ "eval.tests.test_values.test_literals[-7--7]",
+ "eval.tests.test_values.test_literals[3.14-3.14]",
+ "eval.tests.test_values.test_literals[42-42]",
+ "eval.tests.test_values.test_literals[false-false]",
+ "eval.tests.test_values.test_literals[let a;-undefined]",
+ "eval.tests.test_values.test_literals[null-null]",
+ "eval.tests.test_values.test_literals[true-true]",
+ "eval.tests.test_values.test_literals[undefined-undefined]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!!1-true]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!-0-true]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!0-true]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!0.0-true]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!1.5-false]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!123-false]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!false-true]",
+ "eval.tests.test_values.test_logical_not_numbers_bools[!true-false]",
+ "eval.tests.test_values.test_truthiness_in_condition[if (!0) 1; else 2;-1]",
+ "eval.tests.test_values.test_truthiness_in_condition[if ('') 1; else 2;-2]",
+ "eval.tests.test_values.test_truthiness_in_condition[if ('x') 1; else 2;-1]",
+ "eval.tests.test_values.test_truthiness_in_condition[if (0) 1; else 2;-2_0]",
+ "eval.tests.test_values.test_truthiness_in_condition[if (0) 1; else 2;-2_1]",
+ "eval.tests.test_values.test_truthiness_in_condition[if (1) 1; else 2;-1]",
+ "eval.tests.test_values.test_truthiness_in_condition[if (null) 1; else 2;-2]",
+ "eval.tests.test_values.test_truthiness_in_condition[if (undefined) 1; else 2;-2]",
+ "eval.tests.test_values.test_truthiness_in_condition[if ({}) 1; else 2;-1]",
+ "eval.tests.test_values.test_typeof[let f=function(){}; typeof f-\"function\"]",
+ "eval.tests.test_values.test_typeof[typeof ''-\"string\"]",
+ "eval.tests.test_values.test_typeof[typeof 1-\"number\"]",
+ "eval.tests.test_values.test_typeof[typeof 1.5-\"number\"]",
+ "eval.tests.test_values.test_typeof[typeof null-\"null\"]",
+ "eval.tests.test_values.test_typeof[typeof true-\"boolean\"]",
+ "eval.tests.test_values.test_typeof[typeof undefined-\"undefined\"]",
+ "eval.tests.test_values.test_typeof[typeof {}-\"object\"]",
+ "eval.tests.test_values.test_typeof[typeof('hello')-\"string\"]",
+ "eval.tests.test_values.test_typeof[typeof(1)-\"number\"]",
+ "eval.tests.test_values.test_typeof[typeof(42)-\"number\"]",
+ "eval.tests.test_values.test_typeof_empty_string_is_string"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[(2 + 3) * 4-20]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[-5 + 3--2]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[-7 % 3--1]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[0x10-16]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[1 + 1-2]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[1 < 2 ? 100 : 200-100]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[10 % 3-1]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[10 - 4-6]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[10 / 4-2.5]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[2 + 3 * 4-14]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[2 > 10 ? 100 : 200-200]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[3.14-3.14]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[5 / 2-2.5]",
+ "eval.tests.test_elk_cmdline.test_arithmetic_and_ternary[5.5 + 1.25-6.75]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[!false-true]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[!true-false]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[1 < 2 && 3 < 4-true]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[1 < 2-true]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[1 <= 1-true]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[2 > 3-false]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[2 >= 5-false]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[3 > 2-true]",
+ "eval.tests.test_elk_cmdline.test_comparison_and_logic_ops[true && false-false]",
+ "eval.tests.test_elk_cmdline.test_dash_dash_is_treated_as_expression",
+ "eval.tests.test_elk_cmdline.test_default_gct_avoids_oom_on_pressure_loop",
+ "eval.tests.test_elk_cmdline.test_dump_contains_print_builtin_global",
+ "eval.tests.test_elk_cmdline.test_dump_contains_result_token_string",
+ "eval.tests.test_elk_cmdline.test_dump_deterministic_field_values",
+ "eval.tests.test_elk_cmdline.test_dump_flag_emits_heap_dump[\"hi\"]",
+ "eval.tests.test_elk_cmdline.test_dump_flag_emits_heap_dump[1+1]",
+ "eval.tests.test_elk_cmdline.test_dump_flag_emits_heap_dump[2+2]",
+ "eval.tests.test_elk_cmdline.test_dump_flag_emits_heap_dump[let a = 1; a + 5]",
+ "eval.tests.test_elk_cmdline.test_dump_flag_without_expression",
+ "eval.tests.test_elk_cmdline.test_empty_string_argument",
+ "eval.tests.test_elk_cmdline.test_error_messages[\"a\" < \"b\"-ERROR: bad str op]",
+ "eval.tests.test_elk_cmdline.test_error_messages[\"unterminated-ERROR: parse error]",
+ "eval.tests.test_elk_cmdline.test_error_messages[()-ERROR: bad expr]",
+ "eval.tests.test_elk_cmdline.test_error_messages[.5-ERROR: bad expr]",
+ "eval.tests.test_elk_cmdline.test_error_messages[1 +-ERROR: bad expr]",
+ "eval.tests.test_elk_cmdline.test_error_messages[1 2-ERROR: ; expected]",
+ "eval.tests.test_elk_cmdline.test_error_messages[1 == 2-ERROR: bad expr]",
+ "eval.tests.test_elk_cmdline.test_error_messages[1/0-ERROR: div by zero]",
+ "eval.tests.test_elk_cmdline.test_error_messages[1e-ERROR: ; expected]",
+ "eval.tests.test_elk_cmdline.test_error_messages[;-ERROR: bad expr]",
+ "eval.tests.test_elk_cmdline.test_error_messages[foo()-ERROR: 'foo' not found]",
+ "eval.tests.test_elk_cmdline.test_error_messages[let = 5-ERROR: parse error]",
+ "eval.tests.test_elk_cmdline.test_error_messages[var y = 1;-ERROR: 'var' not implemented]",
+ "eval.tests.test_elk_cmdline.test_error_messages[x-ERROR: 'x' not found]",
+ "eval.tests.test_elk_cmdline.test_error_output_goes_to_stdout_not_stderr",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv0]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv1]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv2]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv3]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv4]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv5]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv6]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv7]",
+ "eval.tests.test_elk_cmdline.test_exit_code_is_always_success[argv8]",
+ "eval.tests.test_elk_cmdline.test_expression_after_print_side_effect_ordering",
+ "eval.tests.test_elk_cmdline.test_float_formatting[0.5 * 4-2]",
+ "eval.tests.test_elk_cmdline.test_float_formatting[1 / 3-0.333333]",
+ "eval.tests.test_elk_cmdline.test_float_formatting[1.0 + 2-3]",
+ "eval.tests.test_elk_cmdline.test_float_formatting[10 / 8-1.25]",
+ "eval.tests.test_elk_cmdline.test_float_formatting[100 / 3-33.3333]",
+ "eval.tests.test_elk_cmdline.test_float_formatting[7 / 2-3.5]",
+ "eval.tests.test_elk_cmdline.test_gct_consumes_next_flag_as_value",
+ "eval.tests.test_elk_cmdline.test_gct_default_threshold_allows_gc_collection",
+ "eval.tests.test_elk_cmdline.test_gct_flag_consumes_value_and_is_accepted[0x10-1 + 1-2]",
+ "eval.tests.test_elk_cmdline.test_gct_flag_consumes_value_and_is_accepted[1-1 + 1-2]",
+ "eval.tests.test_elk_cmdline.test_gct_flag_consumes_value_and_is_accepted[100-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline.test_gct_flag_consumes_value_and_is_accepted[8192-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline.test_gct_flag_consumes_value_and_is_accepted[999999-true-true]",
+ "eval.tests.test_elk_cmdline.test_gct_large_threshold_prevents_gc_collection",
+ "eval.tests.test_elk_cmdline.test_gct_pipeline_last_flag_wins_can_oom",
+ "eval.tests.test_elk_cmdline.test_gct_without_following_expression",
+ "eval.tests.test_elk_cmdline.test_multiple_dump_flags_dump_once",
+ "eval.tests.test_elk_cmdline.test_multiple_expressions_last_wins[args0-6\\n]",
+ "eval.tests.test_elk_cmdline.test_multiple_expressions_last_wins[args1-4\\n]",
+ "eval.tests.test_elk_cmdline.test_multiple_expressions_last_wins[args2-1\\n42\\n]",
+ "eval.tests.test_elk_cmdline.test_multiple_expressions_last_wins[args3-\"second\"\\n]",
+ "eval.tests.test_elk_cmdline.test_multiple_expressions_last_wins[args4-false\\n]",
+ "eval.tests.test_elk_cmdline.test_multiple_expressions_last_wins[args5-null\\n]",
+ "eval.tests.test_elk_cmdline.test_no_arguments",
+ "eval.tests.test_elk_cmdline.test_object_rendering[({a: 1, b: 2})-{\"b\":2,\"a\":1}]",
+ "eval.tests.test_elk_cmdline.test_object_rendering[({name: \"bo\"})-{\"name\":\"bo\"}]",
+ "eval.tests.test_elk_cmdline.test_object_rendering[({x: ({y: 3})})-{\"x\":{\"y\":3}}]",
+ "eval.tests.test_elk_cmdline.test_object_rendering[({})-{}]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print(\"a\", \"b\")-\"a\" \"b\"\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print(\"hi\")-\"hi\"\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print()-\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print(1, 2, 3)-1 2 3\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print(10)-10\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print(null)-null\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print(true, false)-true false\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_print_side_effect[print(undefined)-undefined\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline.test_redeclaration_error[let q = 1; let q = 2;-ERROR: 'q' already declared]",
+ "eval.tests.test_elk_cmdline.test_redeclaration_error[let v = 3; let v = 4;-ERROR: 'v' already declared]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[1; 2; 3-3]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[if (1 < 2) 10;-10]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[let a = 1, b = 2, c = 3; a + b + c-6]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[let s = 0; for (let i = 0; i < 3; i++) s = s + i; s-3]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[let s = 0; for (let i = 0; i < 5; i++) { s = s * 10 + i; } s-1234]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[let s = 0; for (let i = 1; i <= 10; i++) s = s + i; s-55]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[let x = 0; if (1 < 2) x = 5; x-5]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[let x = 0; if (1 > 2) x = 5; x-0]",
+ "eval.tests.test_elk_cmdline.test_statements_and_control_flow[let x = 5; x * 2-10]",
+ "eval.tests.test_elk_cmdline.test_string_concatenation[\"1\" + \"2\"-\"12\"]",
+ "eval.tests.test_elk_cmdline.test_string_concatenation[\"abc\" + \"def\" + \"ghi\"-\"abcdefghi\"]",
+ "eval.tests.test_elk_cmdline.test_string_concatenation[\"foo\" + \"bar\"-\"foobar\"]",
+ "eval.tests.test_elk_cmdline.test_string_concatenation[\"x\" + \"y\" + \"z\"-\"xyz\"]",
+ "eval.tests.test_elk_cmdline.test_string_escape_rendering[\"a\\\\nb\"-\"a\\nb\"]",
+ "eval.tests.test_elk_cmdline.test_string_escape_rendering[\"quote\\\\\"inside\"-\"quote\"inside\"]",
+ "eval.tests.test_elk_cmdline.test_string_escape_rendering[\"t\\\\tt\"-\"t\\tt\"]",
+ "eval.tests.test_elk_cmdline.test_string_plus_number_is_type_mismatch",
+ "eval.tests.test_elk_cmdline.test_value_literals[\"hello\"-\"hello\"]",
+ "eval.tests.test_elk_cmdline.test_value_literals[''-\"\"]",
+ "eval.tests.test_elk_cmdline.test_value_literals['single'-\"single\"]",
+ "eval.tests.test_elk_cmdline.test_value_literals[false-false]",
+ "eval.tests.test_elk_cmdline.test_value_literals[null-null]",
+ "eval.tests.test_elk_cmdline.test_value_literals[true-true]",
+ "eval.tests.test_elk_cmdline.test_value_literals[undefined-undefined]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[(1))-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[(1-ERROR: ) expected\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[1,2-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[1.2.3-ERROR: ident expected\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[42;41;40-40\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[a.b-ERROR: 'a' not found\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[if (1)-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[let f=function(); f()-ERROR: parse error\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[let let = 1-ERROR: parse error\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_additional_exact_diagnostics[true;false;true-true\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_compound_assignment_chains[let a=0; a += 5; a += 6; a-11\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_compound_assignment_chains[let a=100; a -= 45; a -= 20; a-35\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_compound_assignment_chains[let a=10; a -= 3; a-7\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_compound_assignment_chains[let a=1; a += 2; a-3\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_compound_assignment_chains[let a=2; a *= 5; a-10\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_compound_assignment_chains[let a=3; a *= 2; a *= 3; a-18\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[({a:\"x\",b:\"y\"})-{\"b\":\"y\",\"a\":\"x\"}\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[({a:1,b:2,c:3})-{\"c\":3,\"b\":2,\"a\":1}\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[let o={a:1,b:2}; o.a + o.b-3\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[let o={a:1}; o.b-undefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[let o={a:{b:{c:3}}}; o.a.b.c-3\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[let o={p:{q:1}}; o.p.q-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[let o={x:10}; o.x * 2-20\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_deep_property_access_and_missing[let o={}; o.missing-undefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_division_by_zero_error",
+ "eval.tests.test_elk_cmdline_advanced.test_dump_after_print_result_undefined_anchored",
+ "eval.tests.test_elk_cmdline_advanced.test_dump_empty_string_result_anchored",
+ "eval.tests.test_elk_cmdline_advanced.test_dump_preceded_by_empty_gct_value_ok",
+ "eval.tests.test_elk_cmdline_advanced.test_dump_with_object_property_chain_anchored",
+ "eval.tests.test_elk_cmdline_advanced.test_flag_between_expressions_still_used",
+ "eval.tests.test_elk_cmdline_advanced.test_function_boolean_and_abs_branches[let f=function(x){return !x;}; f(0)-true\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_boolean_and_abs_branches[let f=function(x){return !x;}; f(1)-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_boolean_and_abs_branches[let f=function(x){return x<0?x:-x;}; f(-4)--4\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_boolean_and_abs_branches[let f=function(x){return x<0?x:-x;}; f(4)--4\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_boolean_and_abs_branches[let f=function(x){return x>3;}; f(1)-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_boolean_and_abs_branches[let f=function(x){return x>3;}; f(5)-true\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(){return 2+3;}; f()-5\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(){return 42;}; f()-42\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(a,b){return a+b;}; f(1)-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(a,b){return a+b;}; f(1,2,3)-3\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(a,b){return a-b;}; f(10,3)-7\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(x){return x%2;}; f(5)-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(x){return x*10;}; f(f(2))-200\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let f=function(x){x=5;}; f(1)-undefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let g=function(a,b,c){return a+b+c;}; g(1,2,3)-6\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_function_forms_and_arg_counts[let x=1;let f=function(){return x+1;}; f()-2\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[5 <= 4-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[5 <= 5-true\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[5 >= 5-true\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[5 >= 6-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[8 <= 3-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[8 >= 3-true\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[let n=10; n >= 10 ? 1 : 0-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_ge_le_operators[let n=9; n >= 10 ? 1 : 0-0\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!!\"abc\"-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!\"\"-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!\"abc\"-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!-1-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!0-true\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!0.5-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!1-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[!5-false\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[1 || true-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[let b=\"abc\"; b && 1-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[let n=0; n || \"empty\"-\"empty\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[let n=3; n && \"has\"-\"has\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[let s=\"\"; s || \"fallback\"-\"fallback\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_logic_operator_operand_truthiness[true && 1-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[(\"abc\").length + (\"de\").length-5\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[0 ? (0 ? 5 : 6) : 8-8\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[0 ? 2 ? 3 : 4 : 5-5\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[1 ? (0 ? 5 : 6) : 7-6\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[1 ? 2 ? 3 : 4 : 5-3\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let a=5; a===5 ? 1 : 2-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let a=5; a===6 ? 1 : 2-2\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let n=3; n>5 ? n*10 : n-3\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let n=6; n%2===0 ? \"even\" : \"odd\"-\"even\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let n=7; n%2===0 ? \"even\" : \"odd\"-\"odd\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let n=7; n>5 ? n*10 : n-70\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let s=\"hello\"; s.length>3 ? \"long\" : \"short\"-\"long\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_nested_and_conditional_expressions[let s=\"hi\"; s.length>3 ? \"long\" : \"short\"-\"short\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[-0--0\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[-0.5--0.5\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[-100--100\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[-1e3--1000\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[0.000001-1e-06\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[0.00001-1e-05\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[0.0001-0.0001\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[0x7FFFFFFF-2147483647\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[0xFFFFFFFFFFFFFFFF-1.8446744073709552e+19\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[1.5e10-15000000000\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[1000000-1000000\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[100000000000000000000-1e+20\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[123456-123456\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[123456.789-123457\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[1e6-1000000\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[3.14159-3.14159\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_numeric_formatting_boundaries[9999.9999-10000\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[let f=function(x){return x*2;}; print(f(3), f(4))-6 8\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[let f=function(x){return x+1;}; print(f(5))-6\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(\"a\"+\"b\", 5-2)-\"ab\" 3\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(\"x\", 1, false)-\"x\" 1 false\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(-5)--5\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(0.5)-0.5\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(1+1, 2*3)-2 6\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(1/3)-0.333333\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(10.0)-10\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(1000)-1000\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(2)-2\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(5, 5.5, \"s\")-5 5.5 \"s\"\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_print_with_expression_and_function_args[print(true)-true\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_several_expressions_only_last_printed",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[(1 + 2) * (3 + 4)-21\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[-10 % 3--1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[-3.5 + 2.5--1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[-5 * -2-10\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[-5 / 2--2.5\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[-7 % -3--1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[0 / 5-0\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[1 + 2 * 3 / 6 - 1-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[10 % -3-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[10 - (2 + 3)-5\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[10 / -3--3.33333\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[10 / 2 / 5-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[100 - 50 - 25 - 12-13\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[2 * 3 * 4 * 5-120\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[2 * 3 + 4 * 5-26\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_signed_math_and_precedence[5 - 3 - 1-1\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[\"\" + \"\"-\"\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[\"10\" + \"20\"-\"1020\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[\"a\" + \"b\" + \"c\" + \"d\"-\"abcd\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[\"abc\" + \"de\" + \"f\"-\"abcdef\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[let a=\"5\"; a + \"x\"-\"5x\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[let s=\"a\"; s + \"1\"-\"a1\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[let s=\"abc\"; s + \"def\"-\"abcdef\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[let s=\"hello \"; s + s + s-\"hello hello hello \"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_concatenation_accumulation[let s=\"x\"; s + s-\"xx\"\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_relational_is_unsupported[\"\" < \"a\"-ERROR: bad str op\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_string_relational_is_unsupported[\"abc\" < \"abd\"-ERROR: bad str op\\n]",
+ "eval.tests.test_elk_cmdline_advanced.test_two_gct_then_expression_last_wins",
+ "eval.tests.test_elk_cmdline_extended.test_chained_let_intermediate_value",
+ "eval.tests.test_elk_cmdline_extended.test_d_flag_after_expression_still_dumps",
+ "eval.tests.test_elk_cmdline_extended.test_d_flag_with_result_materialized_and_print_rope",
+ "eval.tests.test_elk_cmdline_extended.test_deep_print_of_string_with_newline_rendering",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv0]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv1]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv2]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv3]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv4]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv5]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv6]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv7]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv8]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_exit_codes_all_success[argv9]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[!!1-true\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[!0-true\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results['' ? 1 : 2-2\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results['' || 'd'-\"d\"\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results['a' === 'a'-true\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results['x' ? 1 : 2-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[({a:1}).a-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[({a:{b:1}}).a.b-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[+5-5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[- - - 5--5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[- - 5-5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0 === 0 ? 1 : 2-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0 ? 1 : 2-2\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0 || 'x'-\"x\"\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0 || -3--3\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0 || 5-5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0 || 5.5-5.5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0.1 + 0.2-0.3\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[012-12\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0x0-0\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[0x1F-31\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 !== 1-false\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 !== 2-true\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 && 'y'-\"y\"\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 && 0-0\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 << 2-4\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 === 1-true\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 ? 2 : 3-2\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1 || 0-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1e-3-0.001\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[1e3-1000\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[2.5 + 2.5-5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[2147483648-2147483648\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[3.14159-3.14159\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[5 & 3-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[5 | 3-7\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[5.0-5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[9999999999999 + 1-10000000000000\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[false && true-false\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[false ? 1 : 2-2\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[false || false-false\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let a; let b; b-undefined\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let add=function(a,b){return a+b;}; add(2,3)-5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let f=function(x){return x<10?'small':'big';}; f(15)-\"big\"\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let f=function(x){return x<10?'small':'big';}; f(5)-\"small\"\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let id=function(x){return x;}; id(id(42))-42\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let n=1;n++;n-2\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let n=1;n--;n-0\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let n=2;n*=4;n-8\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let n=5;n+=10;n-15\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let n=5;n-=2;n-3\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let o={a:1}; o.a-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let t='str'; t-\"str\"\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[let x; x-undefined\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[null ? 1 : 2-2\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[null || 7-7\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[true && true-true\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[undefined ? 1 : 2-2\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[undefined || 9-9\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[~0--1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_extended_expression_results[~5--6\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_for_loop_print_seven_rows_ordering",
+ "eval.tests.test_elk_cmdline_extended.test_for_loop_with_print_side_effects_line_ordering",
+ "eval.tests.test_elk_cmdline_extended.test_gct_as_final_arg_without_value_is_an_expression",
+ "eval.tests.test_elk_cmdline_extended.test_gct_greedily_consumes_dash_d_then_expression_evaluates",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[+7-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[-5-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[0-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[010-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[0X20-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[0x10-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[0xGG-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[99999999999999999999-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_parsing_edge_cases[abc-1 + 2 * 3-7]",
+ "eval.tests.test_elk_cmdline_extended.test_gct_value_then_expression_then_dump_acknowledged",
+ "eval.tests.test_elk_cmdline_extended.test_multiple_d_flags_with_gct_still_single_dump",
+ "eval.tests.test_elk_cmdline_extended.test_print_multiple_string_args_spaces",
+ "eval.tests.test_elk_cmdline_extended.test_stderr_stays_empty_for_extended_cases",
+ "eval.tests.test_elk_cmdline_extended.test_string_length_property[('').length-0\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_string_length_property[('a').length-1\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_string_length_property[let s='abc'; s.length-3\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_string_length_property[let s='abcdefghij'; s.length-10\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_string_length_property[let s='hello'; s.length-5\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics['5' * 2-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics['5' - 1-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics['a' + 1-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics['x' * 2-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[({a:1})['a']-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[({}) === ({})-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[1 != 2-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[1 < 2 < 3-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[1 == 1-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[2 ** 3-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[3 > 2 > 1-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[do { } while(0);-ERROR: 'do' not implemented\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[false + 0-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[function f(){}-ERROR: parse error\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[let a=[1,2]; a-ERROR: parse error\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[let n=1; ++n-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[null == undefined-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[true + 1-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[void 0-ERROR: 'void' not implemented\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[while(0) 1;-ERROR: 'while' not implemented\\n]",
+ "eval.tests.test_elk_cmdline_extended.test_type_mismatch_and_unsupported_diagnostics[x = 5-ERROR: 'x' not found\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[(\"a\") === (\"a\")-true\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[0.1 < 0.11-true\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[10 > 10.1-false\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[10 > 9.9-true\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[1<10 || 1<0-true\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[1<2 && 2<3 && 3<4-true\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[5.5 >= 5.5-true\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[5.5 >= 5.6-false\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[let a=false || 5; a-5\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_additional_comparisons[let b=5 && 0; b-0\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[(0xFF & 0x0F) | 0x30-63\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[0x10 | 0x01-17\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[0xF0 >> 4-15\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[0xFF & 0x0F-15\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[0xFF|0-255\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[1024 >> 10-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[1<<10-1024\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[255&0xF-15\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[2^3-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[5<<1-10\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[5>>1-2\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[5^3-6\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[8>>2-2\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[~0x0F--16\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[~0xFF--256\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_bitwise_operators[~1--2\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let a=5; let b=a+1; let c=b*2; c-12\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let m=5; let n=4; if(m>n){m-n;} else {n-m;}-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let s=0; for(let i=0;i<4;i++){for(let j=0;j<2;j++){s=s+1;}} s-8\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let s=0; for(let i=1;i<=5;i++){s=s+i*2;} s-30\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let x=0; if(x>3){x=100;} else {x=200;} x-200\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let x=1; for(let i=0;i<3;i++){x=x*2;} x-8\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let x=2; for(let i=0;i<4;i++){x=x*x;} x-65536\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let x=2; if(x>3){x=100;} else {x=200;} x-200\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_deeper_statement_flow[let x=5; if(x>3){x=100;} else {x=200;} x-100\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_dump_float_result_5_5_anchor",
+ "eval.tests.test_elk_cmdline_round4.test_dump_normalized_identical_distinct_program",
+ "eval.tests.test_elk_cmdline_round4.test_dump_octal_hex_26_anchor",
+ "eval.tests.test_elk_cmdline_round4.test_dump_recursive_result_720_anchor",
+ "eval.tests.test_elk_cmdline_round4.test_dump_result_token_anchor_distinct[010+0x10-2-26]",
+ "eval.tests.test_elk_cmdline_round4.test_dump_result_token_anchor_distinct[11/2-3-5.5]",
+ "eval.tests.test_elk_cmdline_round4.test_dump_result_token_anchor_distinct[1e3-4-1000]",
+ "eval.tests.test_elk_cmdline_round4.test_dump_result_token_anchor_distinct[7*6-2-42]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[(let)-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[++5-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[.5-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[0 && print('x')-0\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[1 || print('x')-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[1e-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[3 > 2 > 1-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let n=0; while(n<3) n=n+1; n-ERROR: 'while' not implemented\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let o={a:1}; o.a + o.b-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let o={a:1}; o.a.a-ERROR: lookup in non-obj\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let o={a:1}; o.b + 1-ERROR: type mismatch\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let o={}; o.a=5; o.a-ERROR: bad lhs\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let o={}; o.o.o-ERROR: lookup in non-obj\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let x=5; ++x; ++x; x-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_new_error_diagnostics[let x=5; --x; x-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[-1/3--0.333333\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[-2/3--0.666667\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0.1+0.2+0.3-0.6\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0.3*3-0.9\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0.3-0.1-0.2\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0.5/0.25-2\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0.7+0.1-0.8\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[010+0x10-26\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0x0.1p4-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0x0A * 0x02-20\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0x1.8p0-1.5\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0x1F + 0x1F-62\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[0x1p2-4\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1.0/3.0-0.333333\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1.5E3-1500\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1.5e3-1500\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1/4-0.25\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1/6-0.166667\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1/7-0.142857\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1/9-0.111111\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[10 % 2-0\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[100/6-16.6667\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[1000/7-142.857\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[11 % 2-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[2.5e-2-0.025\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[2/3-0.666667\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[22/7-3.14286\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[4/3-1.33333\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[5%-2-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[5%-3-2\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[5.-5\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_numeric_division_and_formatting[7.5 % 2-1.5\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[({a:'x', b:1, c:true})-{\"c\":true,\"b\":1,\"a\":\"x\"}\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[({a:1,b:2,c:3,d:4})-{\"d\":4,\"c\":3,\"b\":2,\"a\":1}\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[({x:1.5, y:'s', z:null})-{\"z\":null,\"y\":\"s\",\"x\":1.5}\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[let o={a:1}; o.a=10; o.a-10\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[let o={a:1}; o.a=2; o.a=3; o.a-3\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[let o={a:1}; o['a']-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[let o={a:{b:{c:5},d:6}}; o.a.d-6\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[let o={a:{b:{c:{d:9}}}}; o.a.b.c.d-9\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_object_mutation_and_rendering[let o={a:{b:{}}}; o.a-{\"b\":{}}\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[let f=function(a){return a*a;}; print(f(4))-16\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print('a'); print('b')-\"a\"\\n\"b\"\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print('a', 'b', 'c', 'd', 'e')-\"a\" \"b\" \"c\" \"d\" \"e\"\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print('hello' + ' ' + 'world')-\"hello world\"\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print(-0.5, 0.5)--0.5 0.5\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print(0 && 1, 0 || 3)-0 3\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print(0.0001, 0.001)-0.0001 0.001\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print(1,2,3,4,5)-1 2 3 4 5\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print(1.5e3, 2.5e-2)-1500 0.025\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print(1/3, 2/3)-0.333333 0.666667\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print(undefined, null, true, false)-undefined null true false\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_print_distinct_cases[print({a:1})-{\"a\":1}\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let base=3; let mk=function(){return base;}; mk()-3\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let c=0; let inc=function(){c=c+1; return c;}; inc(); inc(); inc()-3\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let c=0; let inc=function(){c=c+1; return c;}; inc(); inc(); inc(); inc()-4\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let f=function(n){return n<=0?1:n*f(n-1);}; f(1)-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let f=function(n){return n<=0?1:n*f(n-1);}; f(5)-120\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let f=function(n){return n<=0?1:n*f(n-1);}; f(6)-720\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let f=function(n){return n<=1?n:f(n-1)+f(n-2);}; f(10)-55\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let f=function(n){return n<=1?n:f(n-1)+f(n-2);}; f(6)-8\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let x=5; let g=function(a){return a+x;}; g(10)-15\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_recursion_and_closures[let x=7; let f=function(x){return x*2;}; f(3)-6\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_string_length_distinct[\"\".length-0\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_string_length_distinct[\"a\".length-1\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_string_length_distinct[\"abcde\".length-5\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_string_length_distinct[\"hello\".length + \"world\".length-10\\n]",
+ "eval.tests.test_elk_cmdline_round4.test_string_length_distinct[let s=\"abcdefghijklmnop\"; s.length-16\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[0x101&0xFF-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[0xAA&0x55-0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[0xF0|0x0F-255\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[0xFFFF&0xFF-255\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[0xFFFF-65535\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[1&2&3-0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[100>>3-12\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[10>>2-2\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[128>>3-16\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[16>>4-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[1<<16-65536\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[1<<1<<1-4\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[1<<20-1048576\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[1<<31-2147483648\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[1|2|4-7\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[255>>4-15\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[5<<3-40\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[5^5-0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[8&8-8\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[~0+1-0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[~0x0F0F--3856\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[~10--11\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_bitwise_masks_and_shifts[~255--256\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[\"abc\"===\"abc\"-true\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[0.5+0.5===1-true\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[1!==2?3:4-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[1+1===2-true\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[2===2?1:0-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[5.5>=5.5-true\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[let x=0; x||1||2-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_comparison_and_strict_equality_exprs[let x=1; x&&2&&3-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[-1/4--0.25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[-3/2--1.5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[-5/3--1.66667\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[-9/4--2.25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/-5--0.2\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/11-0.0909091\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/12-0.0833333\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/13-0.0769231\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/14-0.0714286\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/15-0.0666667\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/16-0.0625\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/32-0.03125\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/4-0.25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/5-0.2\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/6-0.166667\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/8-0.125\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[1/9-0.111111\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[10/7-1.42857\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[11/3-3.66667\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[13/4-3.25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[17/8-2.125\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[20/3-6.66667\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[25/6-4.16667\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[3/2-1.5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[30/4-7.5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[4/7-0.571429\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[5/4-1.25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[5/8-0.625\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[7/-2--3.5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[7/12-0.583333\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_division_sweep_values[9/4-2.25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.000001-1e-06\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.00005-5e-05\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.0015-0.0015\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.1*0.2-0.02\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.1+0.2+0.3+0.4-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.1+0.7-0.8\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.2+0.4-0.6\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[0.25*0.25-0.0625\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[1.5+2.5+3.5-7.5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_float_accumulation_and_boundaries[2.5*2.5-6.25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(){ return 1; return 2; }; f()-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(a,b){if(a>b){return a;} return b;}; f(3,5)-5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(a,b){if(a>b){return a;} return b;}; f(9,2)-9\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(a,b){return a;} ; f(1,2)-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(x){if(x<0)return -1; return 1;}; f(-5)--1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(x){if(x<0)return -1; return 1;}; f(5)-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(x){if(x===0)return \"zero\"; return \"nonzero\";}; f(0)-\"zero\"\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(x){if(x===0)return \"zero\"; return \"nonzero\";}; f(7)-\"nonzero\"\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(x){return x>10? \"big\": (x>5? \"mid\":\"small\");}; f(12)-\"big\"\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(x){return x>10? \"big\": (x>5? \"mid\":\"small\");}; f(3)-\"small\"\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let f=function(x){return x>10? \"big\": (x>5? \"mid\":\"small\");}; f(7)-\"mid\"\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let g=function(a,b){return b;}; g(1,2)-2\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let n=0; let step=function(){n=n+2; return n;}; step();step()-4\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let o={f:function(x){return x*2;}}; o.f(4)-8\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let sq=function(x){return x*x;}; sq(sq(2))-16\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_function_branch_and_closure_cases[let x=1; let f=function(){x=x+10; return x;}; f(); f()-21\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[-0/1--0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[0.3/0.1-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[0.5/0.5-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[0/-5--0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[0/1-0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[1/0.5-2\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[1/2+1/4-0.75\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[1/3+1/3+1/3-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[10.5/5-2.1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_mixed_precision_division[2.5*4-10\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_object_member_arithmetic[({a:1}).a + ({b:2}).b-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_object_member_arithmetic[({x:1,y:2,z:3}).y-2\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_object_member_arithmetic[let o={a:1,b:2}; o.a+o.b-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_object_member_arithmetic[let o={a:{b:3}}; let o2=o.a; o2.b-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_object_member_arithmetic[let o={x:5}; o.x=o.x+1; o.x-6\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_object_member_arithmetic[let s=\"abc\"; let o={len:s.length}; o.len-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[(1+2)*(3+4)*(5+6)-231\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[1+2+3+4+5+6+7+8+9+10-55\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[1/3+1/3+1/3-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[10+20+30+40+50-150\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[10-5-5-0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[100-1-2-3-4-90\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[100/10/10-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[1000-100-10-1-889\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[1000000*2-2000000\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[123456789-123456789\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[12345678901234-12345678901234\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[2*2*2*2*2-32\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[2*3+2*3-12\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[2+3*4+5-19\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[3*3*3*3-81\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[3*3+4*4-25\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[4*4*4*4-256\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[4*4*4-64\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[5+5*5-30\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[64/2/2/2/2-4\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[7%4+3-6\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[7*7*7-343\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[9%4%3-1\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[9876543210-9876543210\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[let n=5; !0 && n-5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_power_and_accumulation_values[let n=5; -n--5\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[let f=function(x){return x+2;}; print(f(1), f(2), f(3))-3 4 5\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print('a','b','c','d','e','f')-\"a\" \"b\" \"c\" \"d\" \"e\" \"f\"\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(-1, -0.5, -0)--1 -0.5 -0\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(1,2,3,4,5,6,7)-1 2 3 4 5 6 7\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(1.5, 2.5, 0.333333)-1.5 2.5 0.333333\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(1/4, 1/8)-0.25 0.125\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(10%3, 7/2, 2.5*2)-1 3.5 5\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(100, 200, 300)-100 200 300\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(print(1))-1\\nundefined\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_print_round5_cases[print(true, 1, 'x', null, undefined)-true 1 \"x\" null undefined\\nundefined\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_after_new_expression_anchored",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_normalized_identical_program",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_result_token_anchor[0.25-4-0.25]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_result_token_anchor[1e5-6-100000]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_result_token_anchor[2.25-4-2.25]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_result_token_anchor[20-2-20]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_result_token_anchor[255-3-255]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_dump_result_token_anchor[65536-5-65536]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[({a:1})['a']-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[1 != 2-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[1 == 1-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[function f(){}-ERROR: parse error\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[let a=5; a[0]-ERROR: ; expected\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[let x = ;-ERROR: bad expr\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[new x-ERROR: 'new' not implemented\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[return 5-ERROR: not in func\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[this.x-ERROR: 'this' not implemented\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_exact_diagnostics[void 1-ERROR: 'void' not implemented\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_round5_gct_loop_threshold_with_accumulation",
+ "eval.tests.test_elk_cmdline_round5.test_round5_several_new_expressions_last_wins",
+ "eval.tests.test_elk_cmdline_round5.test_round5_stderr_stays_empty_for_new_cases",
+ "eval.tests.test_elk_cmdline_round5.test_scientific_notation_thresholds[-1e5--100000\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_scientific_notation_thresholds[1.5e3-1500\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_scientific_notation_thresholds[1e-10-1e-10\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_scientific_notation_thresholds[1e-5-1e-05\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_scientific_notation_thresholds[1e2 + 1e2-200\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_scientific_notation_thresholds[1e5-100000\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_scientific_notation_thresholds[2.5e-4-0.00025\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[1+1;2+2;3+3-6\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let a=1, b=2, c=3; a+b-c-0\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let a=1, b=2; a=b; a-2\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let a=1,b=2,c=3,d=4; a+b+c+d-10\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let a=3; a+=1; let b=a; b*2-8\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let a=5; let b=a*2; let c=b*b; c-100\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let n=1; for(let i=0;i<3;i++){n=n+100;} n-301\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let n=1; for(let i=0;i<5;i++){n=n*10;} n-100000\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let n=1; for(let i=0;i<5;i++){n=n*3;} n-243\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let s=''; for(let i=0;i<3;i++){s=s+'x';} s-\"xxx\"\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let s='ab'; let t='cd'; s+t-\"abcd\"\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let s=0; for(let i=0;i<10;i++){s=s+i;} s-45\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let s=0; for(let i=1;i<=100;i++){s=s+i;} s-5050\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let x=1; let y=2; x+y-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let x=1; x=x+1; x=x+1; x-3\\n]",
+ "eval.tests.test_elk_cmdline_round5.test_statement_accumulation_and_loops[let x=5; x=x*x; x-25\\n]"
+ ]
+ },
+ "generated_upstream": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_arith.test_arith[prefix0--undefined]",
+ "eval.tests.test_arith.test_arith[prefix1-1.23-1.23]",
+ "eval.tests.test_arith.test_arith[prefix10-2 * (3 + 4)-14]",
+ "eval.tests.test_arith.test_arith[prefix11-2 * (3 + 4 * (2 +5))-62]",
+ "eval.tests.test_arith.test_arith[prefix12-5.5 % 2-1.5]",
+ "eval.tests.test_arith.test_arith[prefix13-5%2-1]",
+ "eval.tests.test_arith.test_arith[prefix14-5 % - 2-1]",
+ "eval.tests.test_arith.test_arith[prefix15--5 % 2--1]",
+ "eval.tests.test_arith.test_arith[prefix16-- 5 % 2--1]",
+ "eval.tests.test_arith.test_arith[prefix17- - 5 % - 2--1]",
+ "eval.tests.test_arith.test_arith[prefix18-24 / 3 % 2-0]",
+ "eval.tests.test_arith.test_arith[prefix19-4 / 5 % 3-0.8]",
+ "eval.tests.test_arith.test_arith[prefix2-3 + 4-7]",
+ "eval.tests.test_arith.test_arith[prefix20-1 + 4 / 5 % 3-1.8]",
+ "eval.tests.test_arith.test_arith[prefix21-7^9-14]",
+ "eval.tests.test_arith.test_arith[prefix22-1+2*3+4*5+6-33]",
+ "eval.tests.test_arith.test_arith[prefix23-1+2*3+4/5+6-13.8]",
+ "eval.tests.test_arith.test_arith[prefix24-1+2*3+4/5%3+6-13.8]",
+ "eval.tests.test_arith.test_arith[prefix25-1 - - - 2--1]",
+ "eval.tests.test_arith.test_arith[prefix26-1 + + + 2-3]",
+ "eval.tests.test_arith.test_arith[prefix27-~5--6]",
+ "eval.tests.test_arith.test_arith[prefix28-6 / - - 2-3]",
+ "eval.tests.test_arith.test_arith[prefix29-7+~5-1]",
+ "eval.tests.test_arith.test_arith[prefix3- + 1-1]",
+ "eval.tests.test_arith.test_arith[prefix30-5/3-1.66667]",
+ "eval.tests.test_arith.test_arith[prefix31-0x64-100]",
+ "eval.tests.test_arith.test_arith[prefix32-0x7fffffff-2147483647]",
+ "eval.tests.test_arith.test_arith[prefix33-0xffffffff-4294967295]",
+ "eval.tests.test_arith.test_arith[prefix34-100 << 3-800]",
+ "eval.tests.test_arith.test_arith[prefix35-(0-14) >> 2--4]",
+ "eval.tests.test_arith.test_arith[prefix36-6 & 3-2]",
+ "eval.tests.test_arith.test_arith[prefix37-6 | 3-7]",
+ "eval.tests.test_arith.test_arith[prefix38-6 ^ 3-5]",
+ "eval.tests.test_arith.test_arith[prefix39-0.1 + 0.2-0.3]",
+ "eval.tests.test_arith.test_arith[prefix4-+ + 1-1]",
+ "eval.tests.test_arith.test_arith[prefix40-123.4 + 0.1-123.5]",
+ "eval.tests.test_arith.test_arith[prefix5-+ + + 1-1]",
+ "eval.tests.test_arith.test_arith[prefix6-1 + + + 1-2]",
+ "eval.tests.test_arith.test_arith[prefix7--1.23--1.23]",
+ "eval.tests.test_arith.test_arith[prefix8-1/2/4-0.125]",
+ "eval.tests.test_arith.test_arith[prefix9-1.23 + 2.1 * 3.7 - 2.5-6.5]",
+ "eval.tests.test_basic.test_basic[prefix0-null-null]",
+ "eval.tests.test_basic.test_basic[prefix1-null-null]",
+ "eval.tests.test_basic.test_basic[prefix10-1;2;-2]",
+ "eval.tests.test_basic.test_basic[prefix11-let a ;-undefined]",
+ "eval.tests.test_basic.test_basic[prefix12-{let a,}-ERROR: parse error]",
+ "eval.tests.test_basic.test_basic[prefix13-let ;-ERROR: parse error]",
+ "eval.tests.test_basic.test_basic[prefix14-{let a 2}-ERROR: parse error]",
+ "eval.tests.test_basic.test_basic[prefix15-let a = 123;-ERROR: 'a' already declared]",
+ "eval.tests.test_basic.test_basic[prefix16-let b = 123; 1; b-123]",
+ "eval.tests.test_basic.test_basic[prefix17-let c = 2, d = 3; c-2]",
+ "eval.tests.test_basic.test_basic[prefix18-1 = 7-ERROR: bad lhs]",
+ "eval.tests.test_basic.test_basic[prefix19-a = 7-7]",
+ "eval.tests.test_basic.test_basic[prefix2-undefined-undefined]",
+ "eval.tests.test_basic.test_basic[prefix20-a-7]",
+ "eval.tests.test_basic.test_basic[prefix21-d = 1+2-3-0]",
+ "eval.tests.test_basic.test_basic[prefix22-1 + d = 3-ERROR: bad lhs]",
+ "eval.tests.test_basic.test_basic[prefix23-a = {b:2}-{\"b\":2}]",
+ "eval.tests.test_basic.test_basic[prefix24-a-{\"b\":2}]",
+ "eval.tests.test_basic.test_basic[prefix25-a.b-2]",
+ "eval.tests.test_basic.test_basic[prefix26-({a:3}).a-3]",
+ "eval.tests.test_basic.test_basic[prefix27-({\"a\":4})-{\"a\":4}]",
+ "eval.tests.test_basic.test_basic[prefix28-a.b = {c:3}-{\"c\":3}]",
+ "eval.tests.test_basic.test_basic[prefix29-a-{\"b\":{\"c\":3}}]",
+ "eval.tests.test_basic.test_basic[prefix3-true-true]",
+ "eval.tests.test_basic.test_basic[prefix30-a.b.c-3]",
+ "eval.tests.test_basic.test_basic[prefix31-a.b.c.-ERROR: bad expr]",
+ "eval.tests.test_basic.test_basic[prefix32-a=1;1;-1]",
+ "eval.tests.test_basic.test_basic[prefix33-a+=1;a;-2]",
+ "eval.tests.test_basic.test_basic[prefix34-a-=3;a;--1]",
+ "eval.tests.test_basic.test_basic[prefix35-a*=8;a;--8]",
+ "eval.tests.test_basic.test_basic[prefix36-a/=2;a;--4]",
+ "eval.tests.test_basic.test_basic[prefix37-a%=3;a;--1]",
+ "eval.tests.test_basic.test_basic[prefix38-a^=5;a;--6]",
+ "eval.tests.test_basic.test_basic[prefix39-a>>=2;a;--2]",
+ "eval.tests.test_basic.test_basic[prefix4-false-false]",
+ "eval.tests.test_basic.test_basic[prefix40-a=3;a<<=2;a;-12]",
+ "eval.tests.test_basic.test_basic[prefix41-a=b=7-7]",
+ "eval.tests.test_basic.test_basic[prefix42-a-7]",
+ "eval.tests.test_basic.test_basic[prefix43-a+-ERROR: bad expr]",
+ "eval.tests.test_basic.test_basic[prefix44-a++-7]",
+ "eval.tests.test_basic.test_basic[prefix45-a-8]",
+ "eval.tests.test_basic.test_basic[prefix46-a--; a-7]",
+ "eval.tests.test_basic.test_basic[prefix47-b-7]",
+ "eval.tests.test_basic.test_basic[prefix48-~null-ERROR: type mismatch]",
+ "eval.tests.test_basic.test_basic[prefix49-1 + ''-ERROR: type mismatch]",
+ "eval.tests.test_basic.test_basic[prefix5-({})-{}]",
+ "eval.tests.test_basic.test_basic[prefix50-1 + true-ERROR: type mismatch]",
+ "eval.tests.test_basic.test_basic[prefix51-1 === false-ERROR: type mismatch]",
+ "eval.tests.test_basic.test_basic[prefix52-1 === 2-false]",
+ "eval.tests.test_basic.test_basic[prefix53-13 + 4 === 17-true]",
+ "eval.tests.test_basic.test_basic[prefix54-let o = {a: 1}; o.a += 1; o;-{\"a\":2}]",
+ "eval.tests.test_basic.test_basic[prefix55-a= 0; 2 * (3 + a++)-6]",
+ "eval.tests.test_basic.test_basic[prefix56-a-1]",
+ "eval.tests.test_basic.test_basic[prefix57-a = 0; a++-0]",
+ "eval.tests.test_basic.test_basic[prefix58-a = 0; a++ - a++--1]",
+ "eval.tests.test_basic.test_basic[prefix59-,-ERROR: bad expr]",
+ "eval.tests.test_basic.test_basic[prefix6-({a:1})-{\"a\":1}]",
+ "eval.tests.test_basic.test_basic[prefix60-a = 0; 1 + a++ + 2-3]",
+ "eval.tests.test_basic.test_basic[prefix61-a-1]",
+ "eval.tests.test_basic.test_basic[prefix62-a = 0; 3 * (1 + a++ + (2 + a++))-12]",
+ "eval.tests.test_basic.test_basic[prefix63-1+2;-3]",
+ "eval.tests.test_basic.test_basic[prefix64-1+2; -3]",
+ "eval.tests.test_basic.test_basic[prefix65-1+2;//9-3]",
+ "eval.tests.test_basic.test_basic[prefix66-1+2;//-3]",
+ "eval.tests.test_basic.test_basic[prefix67-1/**/+2;//9-3]",
+ "eval.tests.test_basic.test_basic[prefix68-1/**/+2;/**///9-3]",
+ "eval.tests.test_basic.test_basic[prefix69-1/**/+ /* some comment*/2;/**///9-3]",
+ "eval.tests.test_basic.test_basic[prefix7-({a:1,b:true})-{\"b\":true,\"a\":1}]",
+ "eval.tests.test_basic.test_basic[prefix70-1/**/+ /* */2;/**///9-3]",
+ "eval.tests.test_basic.test_basic[prefix71-1/**/+ /* \\n*/2;/**///9-3]",
+ "eval.tests.test_basic.test_basic[prefix72-1 + /* * */ 2;-3]",
+ "eval.tests.test_basic.test_basic[prefix73-1 + /* **/ 2;-3]",
+ "eval.tests.test_basic.test_basic[prefix74-1 + /* ///**/ 2;-3]",
+ "eval.tests.test_basic.test_basic[prefix75-1 + /*\\n//*/ 2;-3]",
+ "eval.tests.test_basic.test_basic[prefix76-1 + /*\\n//\\n*/ 2;-3]",
+ "eval.tests.test_basic.test_basic[prefix77-b = 2; a = {x:1,y:b};-{\"y\":2,\"x\":1}]",
+ "eval.tests.test_basic.test_basic[prefix78-a=5;a;-5]",
+ "eval.tests.test_basic.test_basic[prefix79-a&=3;a;-1]",
+ "eval.tests.test_basic.test_basic[prefix8-({a:1,b:{c:2}})-{\"b\":{\"c\":2},\"a\":1}]",
+ "eval.tests.test_basic.test_basic[prefix80-a|=3;a;-3]",
+ "eval.tests.test_basic.test_basic[prefix81-(((((((1)))))))-1]",
+ "eval.tests.test_basic.test_basic[prefix82-1+(((((((1)))))))-2]",
+ "eval.tests.test_basic.test_basic[prefix9-1;2-2]",
+ "eval.tests.test_bool.test_bool[prefix0-1 && 2-2]",
+ "eval.tests.test_bool.test_bool[prefix1-1 && 'x'-\"x\"]",
+ "eval.tests.test_bool.test_bool[prefix10-1 < 2-true]",
+ "eval.tests.test_bool.test_bool[prefix11-2 >= 2-true]",
+ "eval.tests.test_bool.test_bool[prefix12-let a=true;a-true]",
+ "eval.tests.test_bool.test_bool[prefix13-a=!a;a-false]",
+ "eval.tests.test_bool.test_bool[prefix14-!123-false]",
+ "eval.tests.test_bool.test_bool[prefix15-!0-true]",
+ "eval.tests.test_bool.test_bool[prefix16-a=1; 0 || a++; a-2]",
+ "eval.tests.test_bool.test_bool[prefix17-a=1; 1 || a++; a-1]",
+ "eval.tests.test_bool.test_bool[prefix18-a=1; 0 && a++; a-1]",
+ "eval.tests.test_bool.test_bool[prefix19-a=1; 1 && a++; a-2]",
+ "eval.tests.test_bool.test_bool[prefix2-1 && ''-\"\"]",
+ "eval.tests.test_bool.test_bool[prefix20-a=1; 1 && 2 && a++; a-2]",
+ "eval.tests.test_bool.test_bool[prefix3-1 && false-false]",
+ "eval.tests.test_bool.test_bool[prefix4-1 && false || true-true]",
+ "eval.tests.test_bool.test_bool[prefix5-1 && false && true-false]",
+ "eval.tests.test_bool.test_bool[prefix6-1 === 2-false]",
+ "eval.tests.test_bool.test_bool[prefix7-1 !== 2-true]",
+ "eval.tests.test_bool.test_bool[prefix8-1 === true-ERROR: type mismatch]",
+ "eval.tests.test_bool.test_bool[prefix9-1 <= 2-true]",
+ "eval.tests.test_errors.test_errors[prefix0-+-ERROR: bad expr]",
+ "eval.tests.test_errors.test_errors[prefix1-2+-ERROR: bad expr]",
+ "eval.tests.test_errors.test_errors[prefix10-with-ERROR: 'with' not implemented]",
+ "eval.tests.test_errors.test_errors[prefix11-try-ERROR: 'try' not implemented]",
+ "eval.tests.test_errors.test_errors[prefix12-class-ERROR: 'class' not implemented]",
+ "eval.tests.test_errors.test_errors[prefix13-const x-ERROR: 'const' not implemented]",
+ "eval.tests.test_errors.test_errors[prefix14-var x-ERROR: 'var' not implemented]",
+ "eval.tests.test_errors.test_errors[prefix15-1 + yield-ERROR: bad expr]",
+ "eval.tests.test_errors.test_errors[prefix16-yield-ERROR: 'yield' not implemented]",
+ "eval.tests.test_errors.test_errors[prefix17-@-ERROR: parse error]",
+ "eval.tests.test_errors.test_errors[prefix18-$-ERROR: '$' not found]",
+ "eval.tests.test_errors.test_errors[prefix19-let a=0; a+=x;a-ERROR: 'x' not found]",
+ "eval.tests.test_errors.test_errors[prefix2-2 * * 2-ERROR: bad expr]",
+ "eval.tests.test_errors.test_errors[prefix3-1 2-ERROR: ; expected]",
+ "eval.tests.test_errors.test_errors[prefix4-1 2 + 3-ERROR: ; expected]",
+ "eval.tests.test_errors.test_errors[prefix5-1 + 2 3-ERROR: ; expected]",
+ "eval.tests.test_errors.test_errors[prefix6-1 2 + 3 4-ERROR: ; expected]",
+ "eval.tests.test_errors.test_errors[prefix7-1 + 2 3 * 5-ERROR: ; expected]",
+ "eval.tests.test_errors.test_errors[prefix8-1 + 2 3 * 5 + 6-ERROR: ; expected]",
+ "eval.tests.test_errors.test_errors[prefix9-switch-ERROR: 'switch' not implemented]",
+ "eval.tests.test_flow.test_flow[prefix0-let a = 1; a-1]",
+ "eval.tests.test_flow.test_flow[prefix1-if (true) a++; a-2]",
+ "eval.tests.test_flow.test_flow[prefix10-if (0) { a = 7; a++; }-undefined]",
+ "eval.tests.test_flow.test_flow[prefix11-a-2]",
+ "eval.tests.test_flow.test_flow[prefix12-if (1) {}-undefined]",
+ "eval.tests.test_flow.test_flow[prefix13-if ('boo') { a = 7; a++; }-7]",
+ "eval.tests.test_flow.test_flow[prefix14-a-8]",
+ "eval.tests.test_flow.test_flow[prefix15-while (false)break;-ERROR: 'while' not implemented]",
+ "eval.tests.test_flow.test_flow[prefix16-break;-ERROR: not in loop]",
+ "eval.tests.test_flow.test_flow[prefix17-continue;-ERROR: not in loop]",
+ "eval.tests.test_flow.test_flow[prefix18-let b = 0; for (;b < 10;) {b++; a--;} a;--2]",
+ "eval.tests.test_flow.test_flow[prefix19-b = 0; for (;b++ < 10;) a += 3; a;-28]",
+ "eval.tests.test_flow.test_flow[prefix2-if (a) a++; a-3]",
+ "eval.tests.test_flow.test_flow[prefix20-b = 0; for (;;) break; -undefined]",
+ "eval.tests.test_flow.test_flow[prefix21-b = 0; for (;true;) break; -undefined]",
+ "eval.tests.test_flow.test_flow[prefix22-b = 0; for (;;) break; b-0]",
+ "eval.tests.test_flow.test_flow[prefix23-a-28]",
+ "eval.tests.test_flow.test_flow[prefix24-b = 0; for (;;) if (a-- < 10) break;-undefined]",
+ "eval.tests.test_flow.test_flow[prefix25-a-8]",
+ "eval.tests.test_flow.test_flow[prefix26-b = 0; for (;;) if (b++ > 10) break; b;-12]",
+ "eval.tests.test_flow.test_flow[prefix27-a = b = 0; for (;b++ < 10;) for (;a < b;) a++; a-10]",
+ "eval.tests.test_flow.test_flow[prefix28-a = 0; for (;;) { if (a++ < 10) continue; break;} a-11]",
+ "eval.tests.test_flow.test_flow[prefix29-a=b=0; for (;b++<10;) {true;a++;} a-10]",
+ "eval.tests.test_flow.test_flow[prefix3-if (!a) a++; a-3]",
+ "eval.tests.test_flow.test_flow[prefix30-a=b=0; if (false) b++; else b--; b--1]",
+ "eval.tests.test_flow.test_flow[prefix31-a=b=0; if (false) {b++;} else {b--;} b--1]",
+ "eval.tests.test_flow.test_flow[prefix32-a=b=0; if (false) {2;b++;} else {2;b--;} b--1]",
+ "eval.tests.test_flow.test_flow[prefix33-a=b=0; if (true) b++; else b--; b-1]",
+ "eval.tests.test_flow.test_flow[prefix34-a=b=0; if (true) {2;b++;} else {2;b--;} b-1]",
+ "eval.tests.test_flow.test_flow[prefix35-a=0; if (1) a=1; else if (0) a=2; a;-1]",
+ "eval.tests.test_flow.test_flow[prefix36-a=0; if (0) a=1; else if (1) a=2; a;-2]",
+ "eval.tests.test_flow.test_flow[prefix37-a=0; if (0){7;a=1;}else if (1){7;a=2;} a;-2]",
+ "eval.tests.test_flow.test_flow[prefix38-a=0; if(0){7;a=1;}else if(0){5;a=2;}else{3;a=3;} a;-3]",
+ "eval.tests.test_flow.test_flow[prefix39-a=0; for (let i=0;i<5;i++) a++; a-5]",
+ "eval.tests.test_flow.test_flow[prefix4-a=0;if (a) a++; a-0]",
+ "eval.tests.test_flow.test_flow[prefix40-a=0; for (let i=0;x;i++) a++; a-ERROR: 'x' not found]",
+ "eval.tests.test_flow.test_flow[prefix41-a=0; for (x;1;i++) a++; a-ERROR: 'x' not found]",
+ "eval.tests.test_flow.test_flow[prefix42-a=0; for (1;1;x) a++; a-ERROR: 'x' not found]",
+ "eval.tests.test_flow.test_flow[prefix43-a=0; for (1 1;1;1) a++; a-ERROR: parse error]",
+ "eval.tests.test_flow.test_flow[prefix44-a=0; for (1;1 1;1) a++; a-ERROR: parse error]",
+ "eval.tests.test_flow.test_flow[prefix45-a=0; for (1;1;1 1) a++; a-ERROR: parse error]",
+ "eval.tests.test_flow.test_flow[prefix46-a=0; for (;;) break; a-0]",
+ "eval.tests.test_flow.test_flow[prefix47-a=0; for (;;) {a++; break;} a-1]",
+ "eval.tests.test_flow.test_flow[prefix48-a=0; for (;a<100;) {a++; continue;} a-100]",
+ "eval.tests.test_flow.test_flow[prefix49-a=0; for (let i=0;i<10;i++) { continue; a++;} a-0]",
+ "eval.tests.test_flow.test_flow[prefix5-if ('') a--; a-0]",
+ "eval.tests.test_flow.test_flow[prefix50-a=0; for (let i=0;i++<2;i) a+=x; b-ERROR: 'x' not found]",
+ "eval.tests.test_flow.test_flow[prefix6-a=2; for(;a;)a--; a-0]",
+ "eval.tests.test_flow.test_flow[prefix7-a=2-2]",
+ "eval.tests.test_flow.test_flow[prefix8-if (1) 2;-2]",
+ "eval.tests.test_flow.test_flow[prefix9-if (0) 2;-undefined]",
+ "eval.tests.test_funcs.test_funcs[prefix0-function(){};1;-1]",
+ "eval.tests.test_funcs.test_funcs[prefix1-let f=function(){};1;-1]",
+ "eval.tests.test_funcs.test_funcs[prefix10-typeof f-\"function\"]",
+ "eval.tests.test_funcs.test_funcs[prefix11-function(,){};-ERROR: parse error]",
+ "eval.tests.test_funcs.test_funcs[prefix12-function(a,){};-ERROR: parse error]",
+ "eval.tests.test_funcs.test_funcs[prefix13-function(a b){};-ERROR: parse error]",
+ "eval.tests.test_funcs.test_funcs[prefix14-function(a,b){};-function(a,b){}]",
+ "eval.tests.test_funcs.test_funcs[prefix15-1 + f-ERROR: type mismatch]",
+ "eval.tests.test_funcs.test_funcs[prefix16-f = function(a){return 17;}; 1-1]",
+ "eval.tests.test_funcs.test_funcs[prefix17-1()-ERROR: calling non-function]",
+ "eval.tests.test_funcs.test_funcs[prefix18-f(,)-ERROR: parse error]",
+ "eval.tests.test_funcs.test_funcs[prefix19-f(1,)-ERROR: parse error]",
+ "eval.tests.test_funcs.test_funcs[prefix2-f;-function(){}]",
+ "eval.tests.test_funcs.test_funcs[prefix20-f(,2)-ERROR: parse error]",
+ "eval.tests.test_funcs.test_funcs[prefix21-return-ERROR: not in func]",
+ "eval.tests.test_funcs.test_funcs[prefix22-return 2;-ERROR: not in func]",
+ "eval.tests.test_funcs.test_funcs[prefix23-{ return } -ERROR: not in func]",
+ "eval.tests.test_funcs.test_funcs[prefix24-f(3,4)-17]",
+ "eval.tests.test_funcs.test_funcs[prefix25-return-ERROR: not in func]",
+ "eval.tests.test_funcs.test_funcs[prefix26-(function(){})()-undefined]",
+ "eval.tests.test_funcs.test_funcs[prefix27-(function(){})(1,2,3)-undefined]",
+ "eval.tests.test_funcs.test_funcs[prefix28-(function(){1;})(1,2,3)-undefined]",
+ "eval.tests.test_funcs.test_funcs[prefix29-(function(x){res+=x;})(1)-ERROR: 'res' not found]",
+ "eval.tests.test_funcs.test_funcs[prefix3-function(){1}-ERROR: ; expected]",
+ "eval.tests.test_funcs.test_funcs[prefix30-(function(){return 1;})()-1]",
+ "eval.tests.test_funcs.test_funcs[prefix31-(function(){1;2;return 1;})()-1]",
+ "eval.tests.test_funcs.test_funcs[prefix32-(function(){return 1;})(1)-1]",
+ "eval.tests.test_funcs.test_funcs[prefix33-(function(){return 1;})(1,2,3)-1]",
+ "eval.tests.test_funcs.test_funcs[prefix34-(function(){return 1;})(1)-1]",
+ "eval.tests.test_funcs.test_funcs[prefix35-(function(){return 1;})(1,)-ERROR: parse error]",
+ "eval.tests.test_funcs.test_funcs[prefix36-(function(){return 1;2;})()-1]",
+ "eval.tests.test_funcs.test_funcs[prefix37-(function(){return 1;2;return 3;})()-1]",
+ "eval.tests.test_funcs.test_funcs[prefix38-(function(a){return b;})(1)-ERROR: 'b' not found]",
+ "eval.tests.test_funcs.test_funcs[prefix39-(function(a,b){return a + b;})()-ERROR: type mismatch]",
+ "eval.tests.test_funcs.test_funcs[prefix4-function(){1;}-function(){1;}]",
+ "eval.tests.test_funcs.test_funcs[prefix40-(function(a,b){return a + b;})(1)-ERROR: type mismatch]",
+ "eval.tests.test_funcs.test_funcs[prefix41-(function(a,b){return a + b;})(1,2)-3]",
+ "eval.tests.test_funcs.test_funcs[prefix42-(function(a,b){return a + b;})('foo','bar')-\"foobar\"]",
+ "eval.tests.test_funcs.test_funcs[prefix43-(function(a,b){return a + b;})(1,2,3,4)-3]",
+ "eval.tests.test_funcs.test_funcs[prefix44-f = function(a,b){return a + b;}; 1-1]",
+ "eval.tests.test_funcs.test_funcs[prefix45-f(3, 4 )-7]",
+ "eval.tests.test_funcs.test_funcs[prefix46-f(3,4)-7]",
+ "eval.tests.test_funcs.test_funcs[prefix47-f(1+2,4)-7]",
+ "eval.tests.test_funcs.test_funcs[prefix48-f(1+2,f(2,3))-8]",
+ "eval.tests.test_funcs.test_funcs[prefix49-f('a','b')-\"ab\"]",
+ "eval.tests.test_funcs.test_funcs[prefix5-function(){1;};-function(){1;}]",
+ "eval.tests.test_funcs.test_funcs[prefix50-let i,a=0; (function(){a++;})(); a-1]",
+ "eval.tests.test_funcs.test_funcs[prefix51-a=0; (function(){ a++; })(); a-1]",
+ "eval.tests.test_funcs.test_funcs[prefix52-a=0; (function(x){a=x;})(2); a-2]",
+ "eval.tests.test_funcs.test_funcs[prefix53-a=0; (function(x){a=x;})('hi'); a-\"hi\"]",
+ "eval.tests.test_funcs.test_funcs[prefix54-a=0;(function(x){let z=x;a=typeof z;})('x');a-\"string\"]",
+ "eval.tests.test_funcs.test_funcs[prefix55-(function(x){return x;})(1);-1]",
+ "eval.tests.test_funcs.test_funcs[prefix56-(function(x){return {a:x};null;})(1).a;-1]",
+ "eval.tests.test_funcs.test_funcs[prefix57-(function(x){let m= {a:7}; return m;})(1).a;-7]",
+ "eval.tests.test_funcs.test_funcs[prefix58-(function(x){let m=7;return m;})(1);-7]",
+ "eval.tests.test_funcs.test_funcs[prefix59-(function(x){let m='hi';return m;})(1);-\"hi\"]",
+ "eval.tests.test_funcs.test_funcs[prefix6-typeof 1-\"number\"]",
+ "eval.tests.test_funcs.test_funcs[prefix60-(function(x){let m={a:2};return m;})(1).a;-2]",
+ "eval.tests.test_funcs.test_funcs[prefix61-(function(x){let m={a:x};return m;})(3).a;-3]",
+ "eval.tests.test_funcs.test_funcs[prefix62-i=a=0;f=function(x,y){return x*y;};1;-1]",
+ "eval.tests.test_funcs.test_funcs[prefix63-i=a=0; for (;i++<99;) a=i;a-99]",
+ "eval.tests.test_funcs.test_funcs[prefix64-i=a=0; for (;i++ < 9999;) a += i*i; a-333283335000]",
+ "eval.tests.test_funcs.test_funcs[prefix65-f=function (x){return x+1;}; f(1);-2]",
+ "eval.tests.test_funcs.test_funcs[prefix66-f = function(x){return x;};-function(x){return x;}]",
+ "eval.tests.test_funcs.test_funcs[prefix67-f(2)-2]",
+ "eval.tests.test_funcs.test_funcs[prefix68-f({})-{}]",
+ "eval.tests.test_funcs.test_funcs[prefix69-f({a:5,b:3}).b-3]",
+ "eval.tests.test_funcs.test_funcs[prefix7-typeof(1)-\"number\"]",
+ "eval.tests.test_funcs.test_funcs[prefix70-f({\"a\":5,\"b\":3}).b-3]",
+ "eval.tests.test_funcs.test_funcs[prefix8-typeof('hello')-\"string\"]",
+ "eval.tests.test_funcs.test_funcs[prefix9-typeof {}-\"object\"]",
+ "eval.tests.test_gc.test_gc[prefix0-let a='';-undefined]",
+ "eval.tests.test_gc.test_gc[prefix1-(function(x){for(let i=0;i/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/cesanta--elk.71a86fa/tests/workspace.tar.gz b/cesanta--elk.71a86fa/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..6a5bf7879de5ab38fc2b233f00c50b481302e710
--- /dev/null
+++ b/cesanta--elk.71a86fa/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c3776c39c515d6cbda0bce7aec3a7046d6b91e4cc122ab08d007aa00e69a941
+size 25736
diff --git a/cesarferreira--rip.83f0260/environment/Dockerfile b/cesarferreira--rip.83f0260/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..fcda33d89c241f216a19bcd9780cea160ab7d8c3
--- /dev/null
+++ b/cesarferreira--rip.83f0260/environment/Dockerfile
@@ -0,0 +1,59 @@
+FROM rust:1.97.1-bookworm
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV CARGO_HOME=/usr/local/cargo
+ENV RUSTUP_HOME=/usr/local/rustup
+ENV RUSTUP_TOOLCHAIN=1.97.1
+ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
+ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+RUN rustup component add llvm-tools-preview --toolchain 1.97.1
+RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
+RUN rustc --version && cargo --version && rustup show active-toolchain
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /tmp/programgym-download.sh
+RUN chmod 755 /tmp/programgym-download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /tmp/programgym-download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/cesarferreira--rip.83f0260/environment/download.sh b/cesarferreira--rip.83f0260/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..7ee0d36a634e1481d02c856b4f8f4058fbf2f130
--- /dev/null
+++ b/cesarferreira--rip.83f0260/environment/download.sh
@@ -0,0 +1,1341 @@
+#!/usr/bin/env bash
+# download.sh for rip-cli — ProgramGym download stage.
+#
+# This script is executed via `source /source_ro/download.sh` in a read-only
+# repository mount while the container still has network access. It must be
+# safe to source (no `exit` in normal flow) and never compile/link/test/build
+# the project.
+#
+# It ONLY prefetches the exact Rust dependency closure (matching the project's
+# committed Cargo.lock) into the shared Cargo registry cache. It generates a
+# temporary manifest AND a temporary lockfile from inline heredoc data, then
+# runs `cargo fetch --locked --manifest-path`. The locked versions are embedded
+# verbatim so the offline `cargo build --offline` can resolve every exact crate
+# already present in the cache. It reads no repository files.
+
+# Dedicated writable work directory for the generated manifest and lockfile.
+RW="${TMPDIR:-/tmp}/pb_rip_cli_fetch"
+
+mkdir -p "${RW}/src"
+
+# Temporary manifest (dependencies match the project's Cargo.toml). Direct
+# versions are pinned to the exact locked resolution for paranoia; the embedded
+# lockfile below is authoritative for what gets fetched.
+cat > "${RW}/Cargo.toml" <<'EOF'
+[package]
+name = "rip-cli"
+version = "0.7.0"
+edition = "2021"
+
+[[bin]]
+name = "rip"
+path = "src/main.rs"
+
+[dependencies]
+clap = { version = "=4.5.54", features = ["derive"] }
+sysinfo = "=0.32.1"
+colored = "=2.2.0"
+inquire = "=0.7.5"
+terminal_size = "=0.4.3"
+ratatui = "=0.29.0"
+crossterm = "=0.28.1"
+listeners = "=0.3.0"
+
+[target.'cfg(unix)'.dependencies]
+nix = { version = "=0.29.0", features = ["signal"] }
+EOF
+
+# Minimal stub source so `cargo fetch --locked` can validate the manifest. It is
+# never compiled during the download stage.
+cat > "${RW}/src/main.rs" <<'EOF'
+fn main() {}
+EOF
+
+# Lockfile embedded verbatim from the repository's committed Cargo.lock. Using
+# `cargo fetch --locked` against it downloads exactly the crates the offline
+# build needs, so the cache is fully warm before network is removed.
+cat > "${RW}/Cargo.lock" <<'LOCKEOF'
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "allocator-api2"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+
+[[package]]
+name = "anstream"
+version = "0.6.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
+dependencies = [
+ "anstyle",
+ "anstyle-parse",
+ "anstyle-query",
+ "anstyle-wincon",
+ "colorchoice",
+ "is_terminal_polyfill",
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle"
+version = "1.0.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
+
+[[package]]
+name = "anstyle-parse"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
+dependencies = [
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle-query"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "anstyle-wincon"
+version = "3.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
+dependencies = [
+ "anstyle",
+ "once_cell_polyfill",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "cassowary"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53"
+
+[[package]]
+name = "castaway"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a"
+dependencies = [
+ "rustversion",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+
+[[package]]
+name = "cfg_aliases"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
+
+[[package]]
+name = "clap"
+version = "4.5.54"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6e6ff9dcd79cff5cd969a17a545d79e84ab086e444102a591e288a8aa3ce394"
+dependencies = [
+ "clap_builder",
+ "clap_derive",
+]
+
+[[package]]
+name = "clap_builder"
+version = "4.5.54"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa42cf4d2b7a41bc8f663a7cab4031ebafa1bf3875705bfaf8466dc60ab52c00"
+dependencies = [
+ "anstream",
+ "anstyle",
+ "clap_lex",
+ "strsim",
+]
+
+[[package]]
+name = "clap_derive"
+version = "4.5.49"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "clap_lex"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
+
+[[package]]
+name = "colorchoice"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
+
+[[package]]
+name = "colored"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
+dependencies = [
+ "lazy_static",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "compact_str"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b79c4069c6cad78e2e0cdfcbd26275770669fb39fd308a752dc110e83b9af32"
+dependencies = [
+ "castaway",
+ "cfg-if",
+ "itoa",
+ "rustversion",
+ "ryu",
+ "static_assertions",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+
+[[package]]
+name = "crossbeam-deque"
+version = "0.8.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
+dependencies = [
+ "crossbeam-epoch",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-epoch"
+version = "0.9.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
+
+[[package]]
+name = "crossterm"
+version = "0.25.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67"
+dependencies = [
+ "bitflags 1.3.2",
+ "crossterm_winapi",
+ "libc",
+ "mio 0.8.11",
+ "parking_lot",
+ "signal-hook",
+ "signal-hook-mio",
+ "winapi",
+]
+
+[[package]]
+name = "crossterm"
+version = "0.28.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
+dependencies = [
+ "bitflags 2.10.0",
+ "crossterm_winapi",
+ "mio 1.1.1",
+ "parking_lot",
+ "rustix 0.38.44",
+ "signal-hook",
+ "signal-hook-mio",
+ "winapi",
+]
+
+[[package]]
+name = "crossterm_winapi"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "darling"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
+dependencies = [
+ "darling_core",
+ "darling_macro",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
+[[package]]
+name = "either"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
+
+[[package]]
+name = "equivalent"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+
+[[package]]
+name = "errno"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "foldhash"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+
+[[package]]
+name = "fuzzy-matcher"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "54614a3312934d066701a80f20f15fa3b56d67ac7722b39eea5b4c9dd1d66c94"
+dependencies = [
+ "thread_local",
+]
+
+[[package]]
+name = "fxhash"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
+dependencies = [
+ "byteorder",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.15.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
+dependencies = [
+ "allocator-api2",
+ "equivalent",
+ "foldhash",
+]
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
+[[package]]
+name = "indoc"
+version = "2.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
+dependencies = [
+ "rustversion",
+]
+
+[[package]]
+name = "inquire"
+version = "0.7.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fddf93031af70e75410a2511ec04d49e758ed2f26dad3404a934e0fb45cc12a"
+dependencies = [
+ "bitflags 2.10.0",
+ "crossterm 0.25.0",
+ "dyn-clone",
+ "fuzzy-matcher",
+ "fxhash",
+ "newline-converter",
+ "once_cell",
+ "unicode-segmentation",
+ "unicode-width 0.1.14",
+]
+
+[[package]]
+name = "instability"
+version = "0.3.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "357b7205c6cd18dd2c86ed312d1e70add149aea98e7ef72b9fdf0270e555c11d"
+dependencies = [
+ "darling",
+ "indoc",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "is_terminal_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
+
+[[package]]
+name = "itertools"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "itoa"
+version = "1.0.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
+
+[[package]]
+name = "lazy_static"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
+
+[[package]]
+name = "libc"
+version = "0.2.179"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5a2d376baa530d1238d133232d15e239abad80d05838b4b59354e5268af431f"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.4.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
+
+[[package]]
+name = "listeners"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "557f908c6cb431dd2496687aa9ea326507110ee4780517a42ade2df25d31126c"
+dependencies = [
+ "byteorder",
+ "rustix 1.1.3",
+ "windows 0.61.3",
+]
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
+
+[[package]]
+name = "lru"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38"
+dependencies = [
+ "hashbrown",
+]
+
+[[package]]
+name = "memchr"
+version = "2.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
+
+[[package]]
+name = "mio"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c"
+dependencies = [
+ "libc",
+ "log",
+ "wasi",
+ "windows-sys 0.48.0",
+]
+
+[[package]]
+name = "mio"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc"
+dependencies = [
+ "libc",
+ "log",
+ "wasi",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "newline-converter"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47b6b097ecb1cbfed438542d16e84fd7ad9b0c76c8a65b7f9039212a3d14dc7f"
+dependencies = [
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "nix"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
+dependencies = [
+ "bitflags 2.10.0",
+ "cfg-if",
+ "cfg_aliases",
+ "libc",
+]
+
+[[package]]
+name = "ntapi"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c70f219e21142367c70c0b30c6a9e3a14d55b4d12a204d897fbec83a0363f081"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
+
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "paste"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.105"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.43"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "ratatui"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b"
+dependencies = [
+ "bitflags 2.10.0",
+ "cassowary",
+ "compact_str",
+ "crossterm 0.28.1",
+ "indoc",
+ "instability",
+ "itertools",
+ "lru",
+ "paste",
+ "strum",
+ "unicode-segmentation",
+ "unicode-truncate",
+ "unicode-width 0.2.0",
+]
+
+[[package]]
+name = "rayon"
+version = "1.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
+dependencies = [
+ "either",
+ "rayon-core",
+]
+
+[[package]]
+name = "rayon-core"
+version = "1.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
+dependencies = [
+ "crossbeam-deque",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+dependencies = [
+ "bitflags 2.10.0",
+]
+
+[[package]]
+name = "rip-cli"
+version = "0.7.0"
+dependencies = [
+ "clap",
+ "colored",
+ "crossterm 0.28.1",
+ "inquire",
+ "listeners",
+ "nix",
+ "ratatui",
+ "sysinfo",
+ "terminal_size",
+]
+
+[[package]]
+name = "rustix"
+version = "0.38.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
+dependencies = [
+ "bitflags 2.10.0",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.4.15",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34"
+dependencies = [
+ "bitflags 2.10.0",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.11.0",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
+
+[[package]]
+name = "ryu"
+version = "1.0.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984"
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "signal-hook"
+version = "0.3.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
+dependencies = [
+ "libc",
+ "signal-hook-registry",
+]
+
+[[package]]
+name = "signal-hook-mio"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
+dependencies = [
+ "libc",
+ "mio 0.8.11",
+ "mio 1.1.1",
+ "signal-hook",
+]
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
+
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "strum"
+version = "0.26.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
+dependencies = [
+ "strum_macros",
+]
+
+[[package]]
+name = "strum_macros"
+version = "0.26.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "rustversion",
+ "syn",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.114"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "sysinfo"
+version = "0.32.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c33cd241af0f2e9e3b5c32163b873b29956890b5342e6745b917ce9d490f4af"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+ "memchr",
+ "ntapi",
+ "rayon",
+ "windows 0.57.0",
+]
+
+[[package]]
+name = "terminal_size"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0"
+dependencies = [
+ "rustix 1.1.3",
+ "windows-sys 0.60.2",
+]
+
+[[package]]
+name = "thread_local"
+version = "1.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
+
+[[package]]
+name = "unicode-segmentation"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
+
+[[package]]
+name = "unicode-truncate"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf"
+dependencies = [
+ "itertools",
+ "unicode-segmentation",
+ "unicode-width 0.1.14",
+]
+
+[[package]]
+name = "unicode-width"
+version = "0.1.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
+
+[[package]]
+name = "unicode-width"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd"
+
+[[package]]
+name = "utf8parse"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+
+[[package]]
+name = "wasi"
+version = "0.11.1+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "windows"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143"
+dependencies = [
+ "windows-core 0.57.0",
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows"
+version = "0.61.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"
+dependencies = [
+ "windows-collections",
+ "windows-core 0.61.2",
+ "windows-future",
+ "windows-link 0.1.3",
+ "windows-numerics",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"
+dependencies = [
+ "windows-core 0.61.2",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d"
+dependencies = [
+ "windows-implement 0.57.0",
+ "windows-interface 0.57.0",
+ "windows-result 0.1.2",
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
+dependencies = [
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
+ "windows-link 0.1.3",
+ "windows-result 0.3.4",
+ "windows-strings",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
+dependencies = [
+ "windows-core 0.61.2",
+ "windows-link 0.1.3",
+ "windows-threading",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-numerics"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
+dependencies = [
+ "windows-core 0.61.2",
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.48.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
+dependencies = [
+ "windows-targets 0.48.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
+dependencies = [
+ "windows-targets 0.53.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
+dependencies = [
+ "windows_aarch64_gnullvm 0.48.5",
+ "windows_aarch64_msvc 0.48.5",
+ "windows_i686_gnu 0.48.5",
+ "windows_i686_msvc 0.48.5",
+ "windows_x86_64_gnu 0.48.5",
+ "windows_x86_64_gnullvm 0.48.5",
+ "windows_x86_64_msvc 0.48.5",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm 0.52.6",
+ "windows_aarch64_msvc 0.52.6",
+ "windows_i686_gnu 0.52.6",
+ "windows_i686_gnullvm 0.52.6",
+ "windows_i686_msvc 0.52.6",
+ "windows_x86_64_gnu 0.52.6",
+ "windows_x86_64_gnullvm 0.52.6",
+ "windows_x86_64_msvc 0.52.6",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.53.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
+dependencies = [
+ "windows-link 0.2.1",
+ "windows_aarch64_gnullvm 0.53.1",
+ "windows_aarch64_msvc 0.53.1",
+ "windows_i686_gnu 0.53.1",
+ "windows_i686_gnullvm 0.53.1",
+ "windows_i686_msvc 0.53.1",
+ "windows_x86_64_gnu 0.53.1",
+ "windows_x86_64_gnullvm 0.53.1",
+ "windows_x86_64_msvc 0.53.1",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
+LOCKEOF
+
+# Prefetch the exact pinned dependency closure into the shared Cargo cache.
+# `cargo fetch --locked` is idempotent; a real failure propagates as nonzero.
+cargo fetch --locked --manifest-path "${RW}/Cargo.toml"
diff --git a/cesarferreira--rip.83f0260/environment/executable b/cesarferreira--rip.83f0260/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..86883e3556d224591ca571f2dfeac5a0ed7c2e37
--- /dev/null
+++ b/cesarferreira--rip.83f0260/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ab3015af45b26ce510d4499cb26644ebfc19bee5a255f88fd93442d81760b452
+size 2507712
diff --git a/cesarferreira--rip.83f0260/environment/harbor_prepare_download_env.sh b/cesarferreira--rip.83f0260/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..4a3a33381308d53b7bd2216a2375c8cd54ac24c4
--- /dev/null
+++ b/cesarferreira--rip.83f0260/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+command -v cargo
+command -v rustc
+command -v rustup
+cd /workspace
+set -a
+source /tmp/programgym-download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cesarferreira--rip.83f0260/environment/workspace.tar.gz b/cesarferreira--rip.83f0260/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..5bf0a618d6b527f8fbd73c88047875d93ef8eab3
--- /dev/null
+++ b/cesarferreira--rip.83f0260/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:29adea751b471e397bbb70b823d55e27989ef52890a3273b53cda0ffd25f7dc2
+size 524795
diff --git a/cesarferreira--rip.83f0260/instruction.md b/cesarferreira--rip.83f0260/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/cesarferreira--rip.83f0260/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/cesarferreira--rip.83f0260/solution/solve.sh b/cesarferreira--rip.83f0260/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/cesarferreira--rip.83f0260/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/cesarferreira--rip.83f0260/task.toml b/cesarferreira--rip.83f0260/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..00bd7fc1b6ca4063702e5a2c4e1093781c51a9b6
--- /dev/null
+++ b/cesarferreira--rip.83f0260/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/cesarferreira--rip.83f0260"
+description = "Synthetic ProgramGym cleanroom reconstruction task for cesarferreira/rip"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "cesarferreira__rip.83f0260"
+repository = "cesarferreira/rip"
+commit = "83f0260229489cd3db2f60316bf2a9939b87c4a6"
+language = "rust"
+difficulty = "easy"
+difficulty_score = 1.909020854211156
+test_branches = 1
+test_count = 162
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/cesarferreira--rip.83f0260/tests/Dockerfile b/cesarferreira--rip.83f0260/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..0134a64cf31409020689a99b234432f2b5f5f7fe
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/Dockerfile
@@ -0,0 +1,68 @@
+FROM rust:1.97.1-bookworm
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV CARGO_HOME=/usr/local/cargo
+ENV RUSTUP_HOME=/usr/local/rustup
+ENV RUSTUP_TOOLCHAIN=1.97.1
+ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
+ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+RUN rustup component add llvm-tools-preview --toolchain 1.97.1
+RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
+RUN rustc --version && cargo --version && rustup show active-toolchain
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /tmp/programgym-download.sh
+RUN chmod 755 /tmp/programgym-download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /tmp/programgym-download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --break-system-packages \
+ --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/cesarferreira--rip.83f0260/tests/blobs/tests/generated_module_01.tar.gz b/cesarferreira--rip.83f0260/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..aba635742af940c9e0bdbe0bce4e63139ce802b9
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea6f3d15be29b89c41e583ebd1018b5c29b048449471c9d1805c7ae0e6650ed6
+size 15979
diff --git a/cesarferreira--rip.83f0260/tests/download.sh b/cesarferreira--rip.83f0260/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..7ee0d36a634e1481d02c856b4f8f4058fbf2f130
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/download.sh
@@ -0,0 +1,1341 @@
+#!/usr/bin/env bash
+# download.sh for rip-cli — ProgramGym download stage.
+#
+# This script is executed via `source /source_ro/download.sh` in a read-only
+# repository mount while the container still has network access. It must be
+# safe to source (no `exit` in normal flow) and never compile/link/test/build
+# the project.
+#
+# It ONLY prefetches the exact Rust dependency closure (matching the project's
+# committed Cargo.lock) into the shared Cargo registry cache. It generates a
+# temporary manifest AND a temporary lockfile from inline heredoc data, then
+# runs `cargo fetch --locked --manifest-path`. The locked versions are embedded
+# verbatim so the offline `cargo build --offline` can resolve every exact crate
+# already present in the cache. It reads no repository files.
+
+# Dedicated writable work directory for the generated manifest and lockfile.
+RW="${TMPDIR:-/tmp}/pb_rip_cli_fetch"
+
+mkdir -p "${RW}/src"
+
+# Temporary manifest (dependencies match the project's Cargo.toml). Direct
+# versions are pinned to the exact locked resolution for paranoia; the embedded
+# lockfile below is authoritative for what gets fetched.
+cat > "${RW}/Cargo.toml" <<'EOF'
+[package]
+name = "rip-cli"
+version = "0.7.0"
+edition = "2021"
+
+[[bin]]
+name = "rip"
+path = "src/main.rs"
+
+[dependencies]
+clap = { version = "=4.5.54", features = ["derive"] }
+sysinfo = "=0.32.1"
+colored = "=2.2.0"
+inquire = "=0.7.5"
+terminal_size = "=0.4.3"
+ratatui = "=0.29.0"
+crossterm = "=0.28.1"
+listeners = "=0.3.0"
+
+[target.'cfg(unix)'.dependencies]
+nix = { version = "=0.29.0", features = ["signal"] }
+EOF
+
+# Minimal stub source so `cargo fetch --locked` can validate the manifest. It is
+# never compiled during the download stage.
+cat > "${RW}/src/main.rs" <<'EOF'
+fn main() {}
+EOF
+
+# Lockfile embedded verbatim from the repository's committed Cargo.lock. Using
+# `cargo fetch --locked` against it downloads exactly the crates the offline
+# build needs, so the cache is fully warm before network is removed.
+cat > "${RW}/Cargo.lock" <<'LOCKEOF'
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "allocator-api2"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+
+[[package]]
+name = "anstream"
+version = "0.6.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
+dependencies = [
+ "anstyle",
+ "anstyle-parse",
+ "anstyle-query",
+ "anstyle-wincon",
+ "colorchoice",
+ "is_terminal_polyfill",
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle"
+version = "1.0.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
+
+[[package]]
+name = "anstyle-parse"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
+dependencies = [
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle-query"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "anstyle-wincon"
+version = "3.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
+dependencies = [
+ "anstyle",
+ "once_cell_polyfill",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "cassowary"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53"
+
+[[package]]
+name = "castaway"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a"
+dependencies = [
+ "rustversion",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+
+[[package]]
+name = "cfg_aliases"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
+
+[[package]]
+name = "clap"
+version = "4.5.54"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6e6ff9dcd79cff5cd969a17a545d79e84ab086e444102a591e288a8aa3ce394"
+dependencies = [
+ "clap_builder",
+ "clap_derive",
+]
+
+[[package]]
+name = "clap_builder"
+version = "4.5.54"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa42cf4d2b7a41bc8f663a7cab4031ebafa1bf3875705bfaf8466dc60ab52c00"
+dependencies = [
+ "anstream",
+ "anstyle",
+ "clap_lex",
+ "strsim",
+]
+
+[[package]]
+name = "clap_derive"
+version = "4.5.49"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "clap_lex"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
+
+[[package]]
+name = "colorchoice"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
+
+[[package]]
+name = "colored"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
+dependencies = [
+ "lazy_static",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "compact_str"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b79c4069c6cad78e2e0cdfcbd26275770669fb39fd308a752dc110e83b9af32"
+dependencies = [
+ "castaway",
+ "cfg-if",
+ "itoa",
+ "rustversion",
+ "ryu",
+ "static_assertions",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+
+[[package]]
+name = "crossbeam-deque"
+version = "0.8.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
+dependencies = [
+ "crossbeam-epoch",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-epoch"
+version = "0.9.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
+
+[[package]]
+name = "crossterm"
+version = "0.25.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67"
+dependencies = [
+ "bitflags 1.3.2",
+ "crossterm_winapi",
+ "libc",
+ "mio 0.8.11",
+ "parking_lot",
+ "signal-hook",
+ "signal-hook-mio",
+ "winapi",
+]
+
+[[package]]
+name = "crossterm"
+version = "0.28.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
+dependencies = [
+ "bitflags 2.10.0",
+ "crossterm_winapi",
+ "mio 1.1.1",
+ "parking_lot",
+ "rustix 0.38.44",
+ "signal-hook",
+ "signal-hook-mio",
+ "winapi",
+]
+
+[[package]]
+name = "crossterm_winapi"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "darling"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
+dependencies = [
+ "darling_core",
+ "darling_macro",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
+[[package]]
+name = "either"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
+
+[[package]]
+name = "equivalent"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+
+[[package]]
+name = "errno"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "foldhash"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+
+[[package]]
+name = "fuzzy-matcher"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "54614a3312934d066701a80f20f15fa3b56d67ac7722b39eea5b4c9dd1d66c94"
+dependencies = [
+ "thread_local",
+]
+
+[[package]]
+name = "fxhash"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
+dependencies = [
+ "byteorder",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.15.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
+dependencies = [
+ "allocator-api2",
+ "equivalent",
+ "foldhash",
+]
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
+[[package]]
+name = "indoc"
+version = "2.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
+dependencies = [
+ "rustversion",
+]
+
+[[package]]
+name = "inquire"
+version = "0.7.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fddf93031af70e75410a2511ec04d49e758ed2f26dad3404a934e0fb45cc12a"
+dependencies = [
+ "bitflags 2.10.0",
+ "crossterm 0.25.0",
+ "dyn-clone",
+ "fuzzy-matcher",
+ "fxhash",
+ "newline-converter",
+ "once_cell",
+ "unicode-segmentation",
+ "unicode-width 0.1.14",
+]
+
+[[package]]
+name = "instability"
+version = "0.3.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "357b7205c6cd18dd2c86ed312d1e70add149aea98e7ef72b9fdf0270e555c11d"
+dependencies = [
+ "darling",
+ "indoc",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "is_terminal_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
+
+[[package]]
+name = "itertools"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "itoa"
+version = "1.0.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
+
+[[package]]
+name = "lazy_static"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
+
+[[package]]
+name = "libc"
+version = "0.2.179"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5a2d376baa530d1238d133232d15e239abad80d05838b4b59354e5268af431f"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.4.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
+
+[[package]]
+name = "listeners"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "557f908c6cb431dd2496687aa9ea326507110ee4780517a42ade2df25d31126c"
+dependencies = [
+ "byteorder",
+ "rustix 1.1.3",
+ "windows 0.61.3",
+]
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
+
+[[package]]
+name = "lru"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38"
+dependencies = [
+ "hashbrown",
+]
+
+[[package]]
+name = "memchr"
+version = "2.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
+
+[[package]]
+name = "mio"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c"
+dependencies = [
+ "libc",
+ "log",
+ "wasi",
+ "windows-sys 0.48.0",
+]
+
+[[package]]
+name = "mio"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc"
+dependencies = [
+ "libc",
+ "log",
+ "wasi",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "newline-converter"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47b6b097ecb1cbfed438542d16e84fd7ad9b0c76c8a65b7f9039212a3d14dc7f"
+dependencies = [
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "nix"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
+dependencies = [
+ "bitflags 2.10.0",
+ "cfg-if",
+ "cfg_aliases",
+ "libc",
+]
+
+[[package]]
+name = "ntapi"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c70f219e21142367c70c0b30c6a9e3a14d55b4d12a204d897fbec83a0363f081"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
+
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "paste"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.105"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.43"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "ratatui"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b"
+dependencies = [
+ "bitflags 2.10.0",
+ "cassowary",
+ "compact_str",
+ "crossterm 0.28.1",
+ "indoc",
+ "instability",
+ "itertools",
+ "lru",
+ "paste",
+ "strum",
+ "unicode-segmentation",
+ "unicode-truncate",
+ "unicode-width 0.2.0",
+]
+
+[[package]]
+name = "rayon"
+version = "1.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
+dependencies = [
+ "either",
+ "rayon-core",
+]
+
+[[package]]
+name = "rayon-core"
+version = "1.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
+dependencies = [
+ "crossbeam-deque",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+dependencies = [
+ "bitflags 2.10.0",
+]
+
+[[package]]
+name = "rip-cli"
+version = "0.7.0"
+dependencies = [
+ "clap",
+ "colored",
+ "crossterm 0.28.1",
+ "inquire",
+ "listeners",
+ "nix",
+ "ratatui",
+ "sysinfo",
+ "terminal_size",
+]
+
+[[package]]
+name = "rustix"
+version = "0.38.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
+dependencies = [
+ "bitflags 2.10.0",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.4.15",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34"
+dependencies = [
+ "bitflags 2.10.0",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.11.0",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
+
+[[package]]
+name = "ryu"
+version = "1.0.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984"
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "signal-hook"
+version = "0.3.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
+dependencies = [
+ "libc",
+ "signal-hook-registry",
+]
+
+[[package]]
+name = "signal-hook-mio"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
+dependencies = [
+ "libc",
+ "mio 0.8.11",
+ "mio 1.1.1",
+ "signal-hook",
+]
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
+
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "strum"
+version = "0.26.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
+dependencies = [
+ "strum_macros",
+]
+
+[[package]]
+name = "strum_macros"
+version = "0.26.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "rustversion",
+ "syn",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.114"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "sysinfo"
+version = "0.32.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c33cd241af0f2e9e3b5c32163b873b29956890b5342e6745b917ce9d490f4af"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+ "memchr",
+ "ntapi",
+ "rayon",
+ "windows 0.57.0",
+]
+
+[[package]]
+name = "terminal_size"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0"
+dependencies = [
+ "rustix 1.1.3",
+ "windows-sys 0.60.2",
+]
+
+[[package]]
+name = "thread_local"
+version = "1.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
+
+[[package]]
+name = "unicode-segmentation"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
+
+[[package]]
+name = "unicode-truncate"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf"
+dependencies = [
+ "itertools",
+ "unicode-segmentation",
+ "unicode-width 0.1.14",
+]
+
+[[package]]
+name = "unicode-width"
+version = "0.1.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
+
+[[package]]
+name = "unicode-width"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd"
+
+[[package]]
+name = "utf8parse"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+
+[[package]]
+name = "wasi"
+version = "0.11.1+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "windows"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143"
+dependencies = [
+ "windows-core 0.57.0",
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows"
+version = "0.61.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"
+dependencies = [
+ "windows-collections",
+ "windows-core 0.61.2",
+ "windows-future",
+ "windows-link 0.1.3",
+ "windows-numerics",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"
+dependencies = [
+ "windows-core 0.61.2",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d"
+dependencies = [
+ "windows-implement 0.57.0",
+ "windows-interface 0.57.0",
+ "windows-result 0.1.2",
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
+dependencies = [
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
+ "windows-link 0.1.3",
+ "windows-result 0.3.4",
+ "windows-strings",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
+dependencies = [
+ "windows-core 0.61.2",
+ "windows-link 0.1.3",
+ "windows-threading",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-numerics"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
+dependencies = [
+ "windows-core 0.61.2",
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.48.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
+dependencies = [
+ "windows-targets 0.48.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
+dependencies = [
+ "windows-targets 0.53.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
+dependencies = [
+ "windows_aarch64_gnullvm 0.48.5",
+ "windows_aarch64_msvc 0.48.5",
+ "windows_i686_gnu 0.48.5",
+ "windows_i686_msvc 0.48.5",
+ "windows_x86_64_gnu 0.48.5",
+ "windows_x86_64_gnullvm 0.48.5",
+ "windows_x86_64_msvc 0.48.5",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm 0.52.6",
+ "windows_aarch64_msvc 0.52.6",
+ "windows_i686_gnu 0.52.6",
+ "windows_i686_gnullvm 0.52.6",
+ "windows_i686_msvc 0.52.6",
+ "windows_x86_64_gnu 0.52.6",
+ "windows_x86_64_gnullvm 0.52.6",
+ "windows_x86_64_msvc 0.52.6",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.53.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
+dependencies = [
+ "windows-link 0.2.1",
+ "windows_aarch64_gnullvm 0.53.1",
+ "windows_aarch64_msvc 0.53.1",
+ "windows_i686_gnu 0.53.1",
+ "windows_i686_gnullvm 0.53.1",
+ "windows_i686_msvc 0.53.1",
+ "windows_x86_64_gnu 0.53.1",
+ "windows_x86_64_gnullvm 0.53.1",
+ "windows_x86_64_msvc 0.53.1",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
+LOCKEOF
+
+# Prefetch the exact pinned dependency closure into the shared Cargo cache.
+# `cargo fetch --locked` is idempotent; a real failure propagates as nonzero.
+cargo fetch --locked --manifest-path "${RW}/Cargo.toml"
diff --git a/cesarferreira--rip.83f0260/tests/executable b/cesarferreira--rip.83f0260/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..86883e3556d224591ca571f2dfeac5a0ed7c2e37
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ab3015af45b26ce510d4499cb26644ebfc19bee5a255f88fd93442d81760b452
+size 2507712
diff --git a/cesarferreira--rip.83f0260/tests/harbor_prepare_download_env.sh b/cesarferreira--rip.83f0260/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..4a3a33381308d53b7bd2216a2375c8cd54ac24c4
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+command -v cargo
+command -v rustc
+command -v rustup
+cd /workspace
+set -a
+source /tmp/programgym-download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cesarferreira--rip.83f0260/tests/programgym_evaluator.py b/cesarferreira--rip.83f0260/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/cesarferreira--rip.83f0260/tests/programgym_task.json b/cesarferreira--rip.83f0260/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..c30c82e731d429b3feec029536db747665ae805b
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/programgym_task.json
@@ -0,0 +1,571 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_cli_args.test_empty_port_value_exact",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_invalid_sort_value_close_to_cpu_tip",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_live_then_sort_missing_value_exact",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_missing_sort_value_exact_diagnostic",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_missing_value_after_another_option",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_negative_port_rejected_exact",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_port_treated_as_flag_when_value_is_flag",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_unknown_flag_similar_argument_tip",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli_args.test_unknown_flag_with_argv0",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_cli_args.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_kill.test_live_mode_esc_in_confirm_cancels_kill",
+ "reasons": [
+ {
+ "detail": "AssertionError: child must survive an Esc-cancelled confirm assert 'Z' == 'S' - S + Z",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_kill.test_live_mode_selected_kill_uses_parsed_signal",
+ "reasons": [
+ {
+ "detail": "assert -15 == 0",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_kill.test_live_mode_space_select_enter_confirm_kills_child",
+ "reasons": [
+ {
+ "detail": "AssertionError: live kill should finish with rc 0, not signal the executable assert -15 == 0",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_version.test_version_is_not_help",
+ "reasons": [
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_version.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_version.test_version_no_stderr",
+ "reasons": [
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_version.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_cli_args.test_empty_port_value_exact",
+ "eval.tests.test_cli_args.test_invalid_port_value_exact[ 80-invalid digit found in string]",
+ "eval.tests.test_cli_args.test_invalid_port_value_exact[0x50-invalid digit found in string]",
+ "eval.tests.test_cli_args.test_invalid_port_value_exact[12.5-invalid digit found in string]",
+ "eval.tests.test_cli_args.test_invalid_port_value_exact[80 -invalid digit found in string]",
+ "eval.tests.test_cli_args.test_invalid_port_value_exact[abc-invalid digit found in string]",
+ "eval.tests.test_cli_args.test_invalid_sort_similar_value_hint[Pid-pid]",
+ "eval.tests.test_cli_args.test_invalid_sort_similar_value_hint[memory-mem]",
+ "eval.tests.test_cli_args.test_invalid_sort_similar_value_hint[memz-mem]",
+ "eval.tests.test_cli_args.test_invalid_sort_value_close_to_cpu_tip",
+ "eval.tests.test_cli_args.test_invalid_sort_value_exact[1]",
+ "eval.tests.test_cli_args.test_invalid_sort_value_exact[CPUS]",
+ "eval.tests.test_cli_args.test_invalid_sort_value_exact[Cpu x]",
+ "eval.tests.test_cli_args.test_invalid_sort_value_exact[foo]",
+ "eval.tests.test_cli_args.test_invalid_sort_value_exact[wat]",
+ "eval.tests.test_cli_args.test_invalid_sort_value_exact[xyzzy]",
+ "eval.tests.test_cli_args.test_live_then_sort_missing_value_exact",
+ "eval.tests.test_cli_args.test_missing_sort_value_exact_diagnostic",
+ "eval.tests.test_cli_args.test_missing_value_after_another_option",
+ "eval.tests.test_cli_args.test_missing_value_exact_diagnostic[--filter-error: a value is required for '--filter ' but none was supplied\\nFor more information, try '--help'.]",
+ "eval.tests.test_cli_args.test_missing_value_exact_diagnostic[--port-error: a value is required for '--port ' but none was supplied\\nFor more information, try '--help'.]",
+ "eval.tests.test_cli_args.test_missing_value_exact_diagnostic[--signal-error: a value is required for '--signal ' but none was supplied\\nFor more information, try '--help'.]",
+ "eval.tests.test_cli_args.test_missing_value_exact_diagnostic[-f-error: a value is required for '--filter ' but none was supplied\\nFor more information, try '--help'.]",
+ "eval.tests.test_cli_args.test_missing_value_exact_diagnostic[-s-error: a value is required for '--signal ' but none was supplied\\nFor more information, try '--help'.]",
+ "eval.tests.test_cli_args.test_negative_port_rejected_exact",
+ "eval.tests.test_cli_args.test_out_of_range_port_rejected_exact[100000]",
+ "eval.tests.test_cli_args.test_out_of_range_port_rejected_exact[65536]",
+ "eval.tests.test_cli_args.test_out_of_range_port_rejected_exact[70000]",
+ "eval.tests.test_cli_args.test_out_of_range_port_rejected_exact[99999999]",
+ "eval.tests.test_cli_args.test_port_treated_as_flag_when_value_is_flag",
+ "eval.tests.test_cli_args.test_positional_argument_rejected_exact[chrome]",
+ "eval.tests.test_cli_args.test_positional_argument_rejected_exact[positional-argument]",
+ "eval.tests.test_cli_args.test_positional_argument_rejected_exact[systemd-timesyncd-very-long]",
+ "eval.tests.test_cli_args.test_sort_default_equals_explicit_cpu[cpu]",
+ "eval.tests.test_cli_args.test_sort_default_equals_explicit_cpu[mem]",
+ "eval.tests.test_cli_args.test_sort_default_equals_explicit_cpu[name]",
+ "eval.tests.test_cli_args.test_sort_default_equals_explicit_cpu[pid]",
+ "eval.tests.test_cli_args.test_sort_default_equals_explicit_cpu[port]",
+ "eval.tests.test_cli_args.test_unknown_flag_does_not_enumerate",
+ "eval.tests.test_cli_args.test_unknown_flag_exact_diagnostic[--bogus]",
+ "eval.tests.test_cli_args.test_unknown_flag_exact_diagnostic[--definitely-not-real]",
+ "eval.tests.test_cli_args.test_unknown_flag_exact_diagnostic[--nope]",
+ "eval.tests.test_cli_args.test_unknown_flag_exact_diagnostic[--notaflag]",
+ "eval.tests.test_cli_args.test_unknown_flag_exact_diagnostic[-x]",
+ "eval.tests.test_cli_args.test_unknown_flag_similar_argument_tip",
+ "eval.tests.test_cli_args.test_unknown_flag_with_argv0",
+ "eval.tests.test_enumeration.test_default_sort_is_cpu_match",
+ "eval.tests.test_enumeration.test_filter_matching_self_opens_selector_but_empty_not_selected",
+ "eval.tests.test_enumeration.test_live_mode_non_tty_errors",
+ "eval.tests.test_enumeration.test_no_match_case_insensitive_filter",
+ "eval.tests.test_enumeration.test_no_match_each_sort_field[cpu]",
+ "eval.tests.test_enumeration.test_no_match_each_sort_field[mem]",
+ "eval.tests.test_enumeration.test_no_match_each_sort_field[name]",
+ "eval.tests.test_enumeration.test_no_match_each_sort_field[pid]",
+ "eval.tests.test_enumeration.test_no_match_each_sort_field[port]",
+ "eval.tests.test_enumeration.test_no_match_prints_no_processes_found",
+ "eval.tests.test_enumeration.test_no_match_prints_nothing_on_stderr",
+ "eval.tests.test_enumeration.test_port_option_implies_ports_mode",
+ "eval.tests.test_enumeration.test_ports_and_port_combo_no_match",
+ "eval.tests.test_enumeration.test_ports_mode_no_match_message",
+ "eval.tests.test_enumeration.test_short_and_long_filter_equivalent",
+ "eval.tests.test_help.test_help_does_not_enumerate",
+ "eval.tests.test_help.test_help_exact_golden[--help]",
+ "eval.tests.test_help.test_help_exact_golden[-h]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---confirm-nuke]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---filter ]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---help]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---live]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---port ]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---ports]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---signal ]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---sort ]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[--help---version]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[-h---confirm-nuke]",
+ "eval.tests.test_help.test_help_lists_each_documented_flag[-h---filter ]",
+ "eval.tests.test_help.test_help_on_stderr_empty",
+ "eval.tests.test_help.test_help_short_equals_long",
+ "eval.tests.test_help.test_help_via_flag_combo",
+ "eval.tests.test_kill.test_confirm_nuke_no_stray_output",
+ "eval.tests.test_kill.test_confirm_nuke_port_kills_listener",
+ "eval.tests.test_kill.test_confirm_nuke_port_terminates_child",
+ "eval.tests.test_kill.test_confirm_nuke_port_with_hup_signal",
+ "eval.tests.test_kill.test_confirm_nuke_port_with_term_signal",
+ "eval.tests.test_kill.test_confirm_nuke_ports_flag_equivalent",
+ "eval.tests.test_kill.test_live_mode_esc_in_confirm_cancels_kill",
+ "eval.tests.test_kill.test_live_mode_selected_kill_uses_parsed_signal",
+ "eval.tests.test_kill.test_live_mode_space_select_enter_confirm_kills_child",
+ "eval.tests.test_signal.test_case_insensitive_signal_equivalence",
+ "eval.tests.test_signal.test_empty_signal_exact_diagnostic",
+ "eval.tests.test_signal.test_invalid_signal_aborts_before_filter[0]",
+ "eval.tests.test_signal.test_invalid_signal_aborts_before_filter[16]",
+ "eval.tests.test_signal.test_invalid_signal_aborts_before_filter[31]",
+ "eval.tests.test_signal.test_invalid_signal_aborts_before_filter[7]",
+ "eval.tests.test_signal.test_invalid_signal_aborts_before_filter[8]",
+ "eval.tests.test_signal.test_invalid_signal_aborts_before_filter[BOGUS]",
+ "eval.tests.test_signal.test_invalid_signal_exact_diagnostic[9.0-Error: Unknown signal: 9.0]",
+ "eval.tests.test_signal.test_invalid_signal_exact_diagnostic[BOGUS-Error: Unknown signal: BOGUS]",
+ "eval.tests.test_signal.test_invalid_signal_exact_diagnostic[FOO-Error: Unknown signal: FOO]",
+ "eval.tests.test_signal.test_invalid_signal_exact_diagnostic[KILLS-Error: Unknown signal: KILLS]",
+ "eval.tests.test_signal.test_invalid_signal_exact_diagnostic[NOTAREALSIGNAL-Error: Unknown signal: NOTAREALSIGNAL]",
+ "eval.tests.test_signal.test_invalid_signal_exact_diagnostic[TURTLE-Error: Unknown signal: TURTLE]",
+ "eval.tests.test_signal.test_invalid_signal_exact_diagnostic[X-Error: Unknown signal: X]",
+ "eval.tests.test_signal.test_invalid_signal_prefix_stripped_in_error[SIGFOO-FOO]",
+ "eval.tests.test_signal.test_invalid_signal_prefix_stripped_in_error[SIGZED-ZED]",
+ "eval.tests.test_signal.test_invalid_signal_shorts_before_version_not",
+ "eval.tests.test_signal.test_sig_prefix_stripping_equivalence",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[10]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[12]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[15]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[18]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[19]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[1]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[2]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[3]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[9]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[CONT]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[HUP]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[INT]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[KILL]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[QUIT]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGCONT]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGHUP]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGINT]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGKILL]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGQUIT]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGSTOP]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGTERM]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGUSR1]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[SIGUSR2]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[STOP]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[TERM]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[USR1]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[USR2]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[kill]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[sigterm]",
+ "eval.tests.test_signal.test_valid_signal_reaches_enumeration[term]",
+ "eval.tests.test_tui.test_live_mode_arrow_navigation_quit",
+ "eval.tests.test_tui.test_live_mode_enter_without_selection_quit",
+ "eval.tests.test_tui.test_live_mode_ports_quit",
+ "eval.tests.test_tui.test_live_mode_quit[esc-\\x1b]",
+ "eval.tests.test_tui.test_live_mode_quit[q-q]",
+ "eval.tests.test_tui.test_live_mode_sort_mem_quit",
+ "eval.tests.test_tui.test_ports_selector_renders_child_port_row",
+ "eval.tests.test_tui.test_ports_selector_renders_header_deterministically",
+ "eval.tests.test_tui.test_selector_enter_without_selection_cancels",
+ "eval.tests.test_tui.test_selector_esc_cancels",
+ "eval.tests.test_tui.test_selector_renders_columns[cpu]",
+ "eval.tests.test_tui.test_selector_renders_columns[memory]",
+ "eval.tests.test_tui.test_selector_renders_columns[name]",
+ "eval.tests.test_tui.test_selector_renders_columns[pid]",
+ "eval.tests.test_tui.test_selector_renders_some_process_pid_digits",
+ "eval.tests.test_tui.test_selector_tab_does_not_crash",
+ "eval.tests.test_tui.test_selector_type_character_then_esc",
+ "eval.tests.test_validate_args.test_confirm_nuke_alone_rejected_exact[argv0]",
+ "eval.tests.test_validate_args.test_confirm_nuke_alone_rejected_exact[argv1]",
+ "eval.tests.test_validate_args.test_confirm_nuke_filter_with_signal_no_match",
+ "eval.tests.test_validate_args.test_confirm_nuke_guard_fires_before_signal_parse",
+ "eval.tests.test_validate_args.test_confirm_nuke_long_filter_no_match",
+ "eval.tests.test_validate_args.test_confirm_nuke_with_filter_no_match",
+ "eval.tests.test_validate_args.test_confirm_nuke_with_port_no_match",
+ "eval.tests.test_validate_args.test_confirm_nuke_with_scope_then_bogus_signal_parse[argv0]",
+ "eval.tests.test_validate_args.test_confirm_nuke_with_scope_then_bogus_signal_parse[argv1]",
+ "eval.tests.test_version.test_version_exact_output[argv0]",
+ "eval.tests.test_version.test_version_exact_output[argv1]",
+ "eval.tests.test_version.test_version_help_are_distinct",
+ "eval.tests.test_version.test_version_is_not_help",
+ "eval.tests.test_version.test_version_no_stderr",
+ "eval.tests.test_version.test_version_semver_release_form",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv0]",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv1]",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv2]",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv3]",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv4]",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv5]",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv6]",
+ "eval.tests.test_version.test_version_shorts_circuits_enumeration[argv7]"
+ ]
+ }
+ },
+ "commit": "83f0260229489cd3db2f60316bf2a9939b87c4a6",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.909020854211156,
+ "eval_clean_hashes": [
+ "ab3015af45b26ce510d4499cb26644ebfc19bee5a255f88fd93442d81760b452"
+ ],
+ "input_record": {
+ "codeql_db_mb": 83.94,
+ "codeql_status": true,
+ "codeql_time": 37.23395652510226,
+ "commit": "83f0260229489cd3db2f60316bf2a9939b87c4a6",
+ "commits": 45,
+ "contributors": 5,
+ "difficulty": "easy",
+ "difficulty_code_lines": 811,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 811,
+ "difficulty_runtime_deps": 9,
+ "difficulty_score": 1.909020854211156,
+ "difficulty_test_code_lines": 0,
+ "full_name": "cesarferreira/rip",
+ "github_stars": null,
+ "input_codeql_db": "rust_codeql/cesarferreira__rip",
+ "language": "rs",
+ "pb_match": [
+ {
+ "pb_fullname": "pemistahl/grex",
+ "rank": 778,
+ "similarity": 0.4512840509414673
+ },
+ {
+ "pb_fullname": "Miserlou/Loop",
+ "rank": 319,
+ "similarity": 0.47537025809288025
+ },
+ {
+ "pb_fullname": "BurntSushi/ripgrep",
+ "rank": 91,
+ "similarity": 0.49467360973358154
+ },
+ {
+ "pb_fullname": "sayanarijit/xplr",
+ "rank": 888,
+ "similarity": 0.4980907142162323
+ },
+ {
+ "pb_fullname": "alexpovel/srgn",
+ "rank": 925,
+ "similarity": 0.4647442400455475
+ },
+ {
+ "pb_fullname": "svenstaro/genact",
+ "rank": 754,
+ "similarity": 0.5184935331344604
+ },
+ {
+ "pb_fullname": "sharkdp/hyperfine",
+ "rank": 555,
+ "similarity": 0.4668117165565491
+ },
+ {
+ "pb_fullname": "jhspetersson/fselect",
+ "rank": 456,
+ "similarity": 0.4540642499923706
+ },
+ {
+ "pb_fullname": "dalance/amber",
+ "rank": 48,
+ "similarity": 0.5771661996841431
+ },
+ {
+ "pb_fullname": "ajeetdsouza/zoxide",
+ "rank": 899,
+ "similarity": 0.4730818271636963
+ },
+ {
+ "pb_fullname": "orf/gping",
+ "rank": 681,
+ "similarity": 0.4541030824184418
+ },
+ {
+ "pb_fullname": "sstadick/hck",
+ "rank": 633,
+ "similarity": 0.43670135736465454
+ },
+ {
+ "pb_fullname": "ismaelgv/rnr",
+ "rank": 148,
+ "similarity": 0.4675600528717041
+ },
+ {
+ "pb_fullname": "nuta/nsh",
+ "rank": 730,
+ "similarity": 0.4937075972557068
+ },
+ {
+ "pb_fullname": "astro/deadnix",
+ "rank": 483,
+ "similarity": 0.4925917088985443
+ },
+ {
+ "pb_fullname": "riquito/tuc",
+ "rank": 563,
+ "similarity": 0.4314231276512146
+ },
+ {
+ "pb_fullname": "Nukesor/pueue",
+ "rank": 440,
+ "similarity": 0.4629254639148712
+ },
+ {
+ "pb_fullname": "hush-shell/hush",
+ "rank": 477,
+ "similarity": 0.47183990478515625
+ },
+ {
+ "pb_fullname": "chmln/sd",
+ "rank": 37,
+ "similarity": 0.5727869272232056
+ },
+ {
+ "pb_fullname": "kyoheiu/felix",
+ "rank": 798,
+ "similarity": 0.4972222149372101
+ },
+ {
+ "pb_fullname": "elkowar/pipr",
+ "rank": 868,
+ "similarity": 0.523572564125061
+ },
+ {
+ "pb_fullname": "konradsz/igrep",
+ "rank": 301,
+ "similarity": 0.5181544423103333
+ },
+ {
+ "pb_fullname": "Canop/broot",
+ "rank": 343,
+ "similarity": 0.5289908647537231
+ },
+ {
+ "pb_fullname": "sharkdp/fd",
+ "rank": 55,
+ "similarity": 0.549144983291626
+ },
+ {
+ "pb_fullname": "pls-rs/pls",
+ "rank": 611,
+ "similarity": 0.4422754645347595
+ },
+ {
+ "pb_fullname": "Byron/dua-cli",
+ "rank": 264,
+ "similarity": 0.47844043374061584
+ },
+ {
+ "pb_fullname": "agourlay/zip-password-finder",
+ "rank": 614,
+ "similarity": 0.4744660258293152
+ },
+ {
+ "pb_fullname": "yassinebridi/serpl",
+ "rank": 783,
+ "similarity": 0.521064817905426
+ },
+ {
+ "pb_fullname": "yaa110/nomino",
+ "rank": 285,
+ "similarity": 0.47198283672332764
+ },
+ {
+ "pb_fullname": "YS-L/flamelens",
+ "rank": 724,
+ "similarity": 0.48164549469947815
+ }
+ ],
+ "repo_age": null,
+ "repo_path": "rust/cesarferreira__rip",
+ "rust_channel": "stable",
+ "rust_edition": "2021",
+ "rust_release_date": "2021-10-21",
+ "rust_version": "1.56.0",
+ "rust_version_source": "edition",
+ "source": "commit:83f0260229489cd3db2f60316bf2a9939b87c4a6",
+ "status": "done",
+ "url": "https://github.com/cesarferreira/rip"
+ },
+ "instance_id": "cesarferreira__rip.83f0260",
+ "language": "rust",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "cesarferreira/rip"
+}
diff --git a/cesarferreira--rip.83f0260/tests/test.sh b/cesarferreira--rip.83f0260/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/cesarferreira--rip.83f0260/tests/workspace.tar.gz b/cesarferreira--rip.83f0260/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..5bf0a618d6b527f8fbd73c88047875d93ef8eab3
--- /dev/null
+++ b/cesarferreira--rip.83f0260/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:29adea751b471e397bbb70b823d55e27989ef52890a3273b53cda0ffd25f7dc2
+size 524795
diff --git a/cespare--reflex.4ebe83d/environment/Dockerfile b/cespare--reflex.4ebe83d/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..18c9b14a3dd87ff70c68d67e0e9cd3cb548e1b1a
--- /dev/null
+++ b/cespare--reflex.4ebe83d/environment/Dockerfile
@@ -0,0 +1,60 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/cespare--reflex.4ebe83d/environment/download.sh b/cespare--reflex.4ebe83d/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..f9b87a64a984283607d49c201dd95ee43036065e
--- /dev/null
+++ b/cespare--reflex.4ebe83d/environment/download.sh
@@ -0,0 +1,176 @@
+#!/usr/bin/env bash
+# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
+# Generated deterministically from repository module metadata; do not edit.
+set -u
+export GOTOOLCHAIN=auto
+mkdir -p /workspace/.programgym_build_env/go-prefetch
+cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
+module github.com/cespare/reflex
+
+go 1.24.0
+
+require (
+ github.com/creack/pty v1.1.24
+ github.com/fsnotify/fsnotify v1.9.0
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
+ github.com/kr/pretty v0.1.0
+ github.com/ogier/pflag v0.0.1
+)
+
+require (
+ github.com/kr/text v0.1.0 // indirect
+ golang.org/x/sys v0.41.0 // indirect
+)
+PROGRAMGYM_GO_MOD_EOF
+cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
+github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s=
+github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE=
+github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
+github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
+github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
+github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/ogier/pflag v0.0.1 h1:RW6JSWSu/RkSatfcLtogGfFgpim5p7ARQ10ECk5O750=
+github.com/ogier/pflag v0.0.1/go.mod h1:zkFki7tvTa0tafRvTBIZTvzYyAu6kQhPZFnshFFPE+g=
+golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
+golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
+PROGRAMGYM_GO_SUM_EOF
+PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
+PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
+ *"|"*|*","*)
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
+ fi
+ ;;
+esac
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+fi
+cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
+import os
+import signal
+import subprocess
+import sys
+import time
+
+sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
+if not command:
+ raise SystemExit(125)
+environment = os.environ.copy()
+environment["GOPROXY"] = proxy
+process = subprocess.Popen(command, env=environment, start_new_session=True)
+try:
+ returncode = process.wait(timeout=float(timeout_text))
+except subprocess.TimeoutExpired:
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
+ sentinel.write("expired\n")
+ try:
+ os.killpg(process.pid, signal.SIGTERM)
+ except ProcessLookupError:
+ pass
+ deadline = time.monotonic() + float(grace_text)
+ group_alive = True
+ while time.monotonic() < deadline:
+ process.poll()
+ try:
+ os.killpg(process.pid, 0)
+ except ProcessLookupError:
+ group_alive = False
+ break
+ time.sleep(0.05)
+ if group_alive:
+ try:
+ os.killpg(process.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ process.wait()
+ raise SystemExit(124)
+if returncode < 0:
+ returncode = 128 - returncode
+raise SystemExit(returncode)
+PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
+PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if ! command -v python3 >/dev/null 2>&1; then
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+_programgym_go_with_nexus_timeout() {
+ local programgym_go_rc
+ local programgym_go_timeout_sentinel
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
+ return 1
+ fi
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
+ programgym_go_rc=0
+ else
+ programgym_go_rc=$?
+ fi
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
+ rm -f "$programgym_go_timeout_sentinel"
+ return "$programgym_go_rc"
+ fi
+ rm -f "$programgym_go_timeout_sentinel"
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
+ return "$programgym_go_rc"
+ fi
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
+}
+PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
+if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+else
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
+fi
+export PATH="$GOROOT/bin:$PATH"
+export GOTOOLCHAIN=local
+if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+unset -f _programgym_go_with_nexus_timeout
+unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
+unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
+unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
diff --git a/cespare--reflex.4ebe83d/environment/executable b/cespare--reflex.4ebe83d/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..4d210f1fe1e3da073139774ef36d2f16b10fd0aa
--- /dev/null
+++ b/cespare--reflex.4ebe83d/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2172532c2c82c439cdc5878f08771c804847ba87302de45dcf68d4423267bc09
+size 3754103
diff --git a/cespare--reflex.4ebe83d/environment/programgym-go.tar.gz b/cespare--reflex.4ebe83d/environment/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/cespare--reflex.4ebe83d/environment/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/cespare--reflex.4ebe83d/environment/workspace.tar.gz b/cespare--reflex.4ebe83d/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b79673d430fb858cf9412c4d2e81a3472c4fdc5b
--- /dev/null
+++ b/cespare--reflex.4ebe83d/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93f2455e17c9273c25535c6b4e7507ef097a9abd253340d7128d48d07a207e1b
+size 6660
diff --git a/cespare--reflex.4ebe83d/instruction.md b/cespare--reflex.4ebe83d/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/cespare--reflex.4ebe83d/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/cespare--reflex.4ebe83d/solution/solve.sh b/cespare--reflex.4ebe83d/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/cespare--reflex.4ebe83d/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/cespare--reflex.4ebe83d/task.toml b/cespare--reflex.4ebe83d/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..d9db5cff3abdaf19dbf86903c6939f3a5786534c
--- /dev/null
+++ b/cespare--reflex.4ebe83d/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/cespare--reflex.4ebe83d"
+description = "Synthetic ProgramGym cleanroom reconstruction task for cespare/reflex"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "cespare__reflex.4ebe83d"
+repository = "cespare/reflex"
+commit = "4ebe83d5908626f8da43b5f749ef5ec407aff02f"
+language = "go"
+difficulty = "easy"
+difficulty_score = 1.9833556143317885
+test_branches = 4
+test_count = 155
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/cespare--reflex.4ebe83d/tests/Dockerfile b/cespare--reflex.4ebe83d/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..a626a06f42b7d18ca8dda5f990bed0106ab28bf5
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/Dockerfile
@@ -0,0 +1,68 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_01.tar.gz b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4afd27a6defa5144b0d7b9a3bb10753739fba7f7
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:55425b78f4b3b7d8ac9d29c8d6f510a6edd5f04b0f53813b4c4b1ea72cd56c4f
+size 9153
diff --git a/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_02.tar.gz b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..72172dc5614e969fd3274751196e3e5cb13b879c
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40e60e6d7d49c39150cd4bc28f05b76b471df3287ab3051e39325cec8433df03
+size 6048
diff --git a/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_03.tar.gz b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..bb4057d58cb916b47cb7d49bce96d725763bb0a5
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a41c8b9836cd0ea5d287c7f4845003666548bc702c7a11b12110c3f5ae929a3
+size 4055
diff --git a/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_04.tar.gz b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..8d398ff3fb802645c3d1b80b6ab8ee91be7a81c0
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:451e01794a6fc7efae973ea922d28fa53f84a1ecc70e22f62787dfec2c465daa
+size 9402
diff --git a/cespare--reflex.4ebe83d/tests/download.sh b/cespare--reflex.4ebe83d/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..f9b87a64a984283607d49c201dd95ee43036065e
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/download.sh
@@ -0,0 +1,176 @@
+#!/usr/bin/env bash
+# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
+# Generated deterministically from repository module metadata; do not edit.
+set -u
+export GOTOOLCHAIN=auto
+mkdir -p /workspace/.programgym_build_env/go-prefetch
+cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
+module github.com/cespare/reflex
+
+go 1.24.0
+
+require (
+ github.com/creack/pty v1.1.24
+ github.com/fsnotify/fsnotify v1.9.0
+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
+ github.com/kr/pretty v0.1.0
+ github.com/ogier/pflag v0.0.1
+)
+
+require (
+ github.com/kr/text v0.1.0 // indirect
+ golang.org/x/sys v0.41.0 // indirect
+)
+PROGRAMGYM_GO_MOD_EOF
+cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
+github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s=
+github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE=
+github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
+github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
+github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
+github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/ogier/pflag v0.0.1 h1:RW6JSWSu/RkSatfcLtogGfFgpim5p7ARQ10ECk5O750=
+github.com/ogier/pflag v0.0.1/go.mod h1:zkFki7tvTa0tafRvTBIZTvzYyAu6kQhPZFnshFFPE+g=
+golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
+golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
+PROGRAMGYM_GO_SUM_EOF
+PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
+PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
+ *"|"*|*","*)
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
+ fi
+ ;;
+esac
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+fi
+cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
+import os
+import signal
+import subprocess
+import sys
+import time
+
+sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
+if not command:
+ raise SystemExit(125)
+environment = os.environ.copy()
+environment["GOPROXY"] = proxy
+process = subprocess.Popen(command, env=environment, start_new_session=True)
+try:
+ returncode = process.wait(timeout=float(timeout_text))
+except subprocess.TimeoutExpired:
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
+ sentinel.write("expired\n")
+ try:
+ os.killpg(process.pid, signal.SIGTERM)
+ except ProcessLookupError:
+ pass
+ deadline = time.monotonic() + float(grace_text)
+ group_alive = True
+ while time.monotonic() < deadline:
+ process.poll()
+ try:
+ os.killpg(process.pid, 0)
+ except ProcessLookupError:
+ group_alive = False
+ break
+ time.sleep(0.05)
+ if group_alive:
+ try:
+ os.killpg(process.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ process.wait()
+ raise SystemExit(124)
+if returncode < 0:
+ returncode = 128 - returncode
+raise SystemExit(returncode)
+PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
+PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if ! command -v python3 >/dev/null 2>&1; then
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+_programgym_go_with_nexus_timeout() {
+ local programgym_go_rc
+ local programgym_go_timeout_sentinel
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
+ return 1
+ fi
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
+ programgym_go_rc=0
+ else
+ programgym_go_rc=$?
+ fi
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
+ rm -f "$programgym_go_timeout_sentinel"
+ return "$programgym_go_rc"
+ fi
+ rm -f "$programgym_go_timeout_sentinel"
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
+ return "$programgym_go_rc"
+ fi
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
+}
+PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
+if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+else
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
+fi
+export PATH="$GOROOT/bin:$PATH"
+export GOTOOLCHAIN=local
+if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+unset -f _programgym_go_with_nexus_timeout
+unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
+unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
+unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
diff --git a/cespare--reflex.4ebe83d/tests/executable b/cespare--reflex.4ebe83d/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..4d210f1fe1e3da073139774ef36d2f16b10fd0aa
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2172532c2c82c439cdc5878f08771c804847ba87302de45dcf68d4423267bc09
+size 3754103
diff --git a/cespare--reflex.4ebe83d/tests/programgym-go.tar.gz b/cespare--reflex.4ebe83d/tests/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/cespare--reflex.4ebe83d/tests/programgym_evaluator.py b/cespare--reflex.4ebe83d/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/cespare--reflex.4ebe83d/tests/programgym_task.json b/cespare--reflex.4ebe83d/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..5d4c820a68be1ff2bbe1289cb1992cc097ca95a7
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/programgym_task.json
@@ -0,0 +1,261 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_cli_errors.test_config_allows_verbose_and_sequential",
+ "eval.tests.test_cli_errors.test_config_conflicts_with_only_files",
+ "eval.tests.test_cli_errors.test_config_conflicts_with_other_flags_glob",
+ "eval.tests.test_cli_errors.test_config_conflicts_with_other_flags_regex",
+ "eval.tests.test_cli_errors.test_decoration_is_case_insensitive_for_valid_values",
+ "eval.tests.test_cli_errors.test_good_glob_is_accepted_not_regex_error",
+ "eval.tests.test_cli_errors.test_invalid_decoration_is_rejected[bogus]",
+ "eval.tests.test_cli_errors.test_invalid_decoration_is_rejected[empty]",
+ "eval.tests.test_cli_errors.test_invalid_decoration_is_rejected[fancy-pants]",
+ "eval.tests.test_cli_errors.test_invalid_decoration_is_rejected[nonexist]",
+ "eval.tests.test_cli_errors.test_invalid_decoration_is_rejected[plainish]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[bad-inverse-regex]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[bad-regex]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[both-onlyfiles-onlydirs]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[empty-substitute]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[negative-shutdown-timeout]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[no-command-with-regex]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[no-command]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[service-with-substitution]",
+ "eval.tests.test_cli_errors.test_newreflex_validation_errors[zero-shutdown-timeout]",
+ "eval.tests.test_cli_errors.test_sequential_requires_config",
+ "eval.tests.test_config_parsing.test_config_backslash_continuation_merges_lines",
+ "eval.tests.test_config_parsing.test_config_comment_is_skipped",
+ "eval.tests.test_config_parsing.test_config_empty_input_yields_no_configs[empty]",
+ "eval.tests.test_config_parsing.test_config_empty_input_yields_no_configs[only-blank]",
+ "eval.tests.test_config_parsing.test_config_empty_input_yields_no_configs[only-comment]",
+ "eval.tests.test_config_parsing.test_config_file_directory_is_not_openable",
+ "eval.tests.test_config_parsing.test_config_file_does_not_exist",
+ "eval.tests.test_config_parsing.test_config_file_skips_comments_and_reports_later_line",
+ "eval.tests.test_config_parsing.test_config_file_with_single_valid_command_runs",
+ "eval.tests.test_config_parsing.test_config_multiple_valid_configs_run",
+ "eval.tests.test_config_parsing.test_config_newreflex_validation_errors[both-onlyfiles-onlydirs]",
+ "eval.tests.test_config_parsing.test_config_newreflex_validation_errors[empty-substitute]",
+ "eval.tests.test_config_parsing.test_config_newreflex_validation_errors[no-command]",
+ "eval.tests.test_config_parsing.test_config_newreflex_validation_errors[service-with-substitution]",
+ "eval.tests.test_config_parsing.test_config_newreflex_validation_errors[zero-shutdown-timeout]",
+ "eval.tests.test_config_parsing.test_config_regex_parse_error_through_newreflex",
+ "eval.tests.test_config_parsing.test_config_stdin_single_valid_command_runs",
+ "eval.tests.test_config_parsing.test_config_unknown_flag_reports_line_number",
+ "eval.tests.test_config_parsing.test_config_unknown_long_flag_reports_line_number",
+ "eval.tests.test_config_parsing.test_config_unterminated_quote_is_reported",
+ "eval.tests.test_help.test_help_lists_every_registered_flag",
+ "eval.tests.test_help.test_help_long_flag_shows_usage_and_exits_one",
+ "eval.tests.test_help.test_help_short_flag_shows_usage",
+ "eval.tests.test_help.test_long_flag_missing_value_is_rejected",
+ "eval.tests.test_help.test_regex_flag_missing_value_shows_same_error",
+ "eval.tests.test_help.test_short_flag_missing_value_is_rejected",
+ "eval.tests.test_help.test_unknown_long_flag_is_rejected[--nonsense]",
+ "eval.tests.test_help.test_unknown_long_flag_is_rejected[--unknown]",
+ "eval.tests.test_help.test_unknown_long_flag_is_rejected[--version]",
+ "eval.tests.test_help.test_unknown_short_flag_is_rejected[q-q]",
+ "eval.tests.test_help.test_unknown_short_flag_is_rejected[x-x]",
+ "eval.tests.test_help.test_unknown_short_flag_is_rejected[z-z]",
+ "eval.tests.test_multistring_flags.test_config_repeated_flags_accumulate_through_reader",
+ "eval.tests.test_multistring_flags.test_repeated_flags_on_same_line_preserve_command",
+ "eval.tests.test_multistring_flags.test_repeated_glob_flags_accumulate",
+ "eval.tests.test_multistring_flags.test_repeated_inverse_glob_flags_accumulate",
+ "eval.tests.test_multistring_flags.test_repeated_inverse_regex_flags_accumulate",
+ "eval.tests.test_multistring_flags.test_repeated_regex_flags_accumulate",
+ "eval.tests.test_runtime.test_non_service_watcher_prints_no_command_output",
+ "eval.tests.test_runtime.test_service_auto_starts_and_prints_output",
+ "eval.tests.test_runtime.test_service_output_fancy_decoration_is_ansi_colored",
+ "eval.tests.test_runtime.test_service_output_none_decoration_has_no_tag",
+ "eval.tests.test_runtime.test_service_output_plain_decoration_has_id_tag",
+ "eval.tests.test_runtime.test_uppercase_decoration_reaches_watcher",
+ "eval.tests.test_runtime.test_verbose_prints_flag_actual_and_default_values",
+ "eval.tests.test_runtime.test_verbose_prints_globals_on_stdout",
+ "eval.tests.test_runtime.test_watcher_prints_cleanup_reason_for_sigterm",
+ "eval.tests.test_runtime.test_watcher_shuts_down_gracefully_on_sigint",
+ "eval.tests.test_runtime.test_watcher_shuts_down_gracefully_on_sigterm"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_match_module.test_all_flag_reveals_default_excluded_file_in_watch",
+ "eval.tests.test_match_module.test_default_excludes_prune_whole_directory[.git/object/inner.css]",
+ "eval.tests.test_match_module.test_default_excludes_prune_whole_directory[.hg/store/inner.go]",
+ "eval.tests.test_match_module.test_default_excludes_prune_whole_directory[.jj/repo/inner.py]",
+ "eval.tests.test_match_module.test_default_excludes_suppress_matching_file[.DS_Store]",
+ "eval.tests.test_match_module.test_default_excludes_suppress_matching_file[.git/config]",
+ "eval.tests.test_match_module.test_default_excludes_suppress_matching_file[.hg/ignore.py]",
+ "eval.tests.test_match_module.test_default_excludes_suppress_matching_file[.jj/settings.xml]",
+ "eval.tests.test_match_module.test_default_excludes_suppress_matching_file[backup.txt~]",
+ "eval.tests.test_match_module.test_default_excludes_suppress_matching_file[emacs.#file]",
+ "eval.tests.test_match_module.test_default_excludes_suppress_matching_file[swap.swp]",
+ "eval.tests.test_match_module.test_gitdir_revealed_with_all_flag_and_nested",
+ "eval.tests.test_match_module.test_inverse_regex_parse_error",
+ "eval.tests.test_match_module.test_no_command_error",
+ "eval.tests.test_match_module.test_regex_parse_error",
+ "eval.tests.test_match_module.test_regex_parse_error_multiple_flags",
+ "eval.tests.test_match_module.test_verbose_all_flag_hides_default_excludes",
+ "eval.tests.test_match_module.test_verbose_defaults_before_user_matchers",
+ "eval.tests.test_match_module.test_verbose_glob_and_inverse_glob_strings",
+ "eval.tests.test_match_module.test_verbose_inverse_regex_string",
+ "eval.tests.test_match_module.test_verbose_no_patterns_implicit_matchall",
+ "eval.tests.test_match_module.test_verbose_renders_all_default_excludes",
+ "eval.tests.test_match_module.test_watch_glob_selects_matching_file",
+ "eval.tests.test_match_module.test_watch_invalid_glob_matches_nothing",
+ "eval.tests.test_match_module.test_watch_inverse_glob_excludes_matching_file",
+ "eval.tests.test_match_module.test_watch_inverse_regex_excludes_matching_file",
+ "eval.tests.test_match_module.test_watch_multi_matcher_and",
+ "eval.tests.test_match_module.test_watch_multi_matcher_regex_plus_glob",
+ "eval.tests.test_match_module.test_watch_no_patterns_matches_everything",
+ "eval.tests.test_match_module.test_watch_regex_selects_matching_file"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_watch_and_backlog.test_backlog_unified_collapses_multiple_changes_to_single_run",
+ "eval.tests.test_watch_and_backlog.test_backlog_unique_does_not_repeat_same_path",
+ "eval.tests.test_watch_and_backlog.test_backlog_unique_preserves_each_distinct_path",
+ "eval.tests.test_watch_and_backlog.test_watch_all_flag_includes_default_excluded_dirs",
+ "eval.tests.test_watch_and_backlog.test_watch_default_excludes_git_directory",
+ "eval.tests.test_watch_and_backlog.test_watch_delete_event_is_skipped",
+ "eval.tests.test_watch_and_backlog.test_watch_directory_create_reports_trailing_slash",
+ "eval.tests.test_watch_and_backlog.test_watch_inverse_regex_excludes_directory_prefix",
+ "eval.tests.test_watch_and_backlog.test_watch_re_walks_new_directory_on_create",
+ "eval.tests.test_watch_and_backlog.test_watch_reports_nested_file_recursively",
+ "eval.tests.test_watch_and_backlog.test_watch_reports_top_level_created_file",
+ "eval.tests.test_watch_and_backlog.test_watch_write_triggers_but_chmod_only_is_masked"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_config_service.test_config_multiple_lines_only_relevant_one_runs",
+ "eval.tests.test_config_service.test_config_service_runs_and_decorates",
+ "eval.tests.test_print_decoration.test_decoration_fancy_adds_ansi_color",
+ "eval.tests.test_print_decoration.test_decoration_fancy_uses_reset_sequence",
+ "eval.tests.test_print_decoration.test_decoration_none_has_no_tag",
+ "eval.tests.test_print_decoration.test_decoration_plain_adds_reflex_id_tag",
+ "eval.tests.test_print_decoration.test_decoration_variants_start_marker[fancy]",
+ "eval.tests.test_print_decoration.test_decoration_variants_start_marker[none]",
+ "eval.tests.test_print_decoration.test_decoration_variants_start_marker[plain]",
+ "eval.tests.test_print_decoration.test_fancy_uses_color_start_for_id_zero",
+ "eval.tests.test_print_decoration.test_info_tag_for_negative_id_when_verbose",
+ "eval.tests.test_print_decoration.test_multiline_output_decorated_per_line",
+ "eval.tests.test_reflex_core_coverage.test_newreflex_accepts_substitution_command_verbose",
+ "eval.tests.test_reflex_core_coverage.test_pty_start_failure_reports_fork_error",
+ "eval.tests.test_reflex_core_coverage.test_service_nonzero_exit_reports_error_exit",
+ "eval.tests.test_reflex_core_coverage.test_verbose_only_dirs_declares_only_matching_directories",
+ "eval.tests.test_reflex_core_coverage.test_verbose_only_files_declares_only_matching_files",
+ "eval.tests.test_reflex_core_coverage.test_verbose_service_omits_substitution_symbol_line",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_invalid_regex_message_exact",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_invalid_regex_via_config",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_negative_timeout_rejected",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_no_command_message_exact",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_via_cli[malformed_regex]",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_via_cli[non_positive_shutdown_timeout]",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_via_cli[only_files_and_only_dirs]",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_via_cli[service_with_substitution]",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_via_config_empty_command",
+ "eval.tests.test_reflex_newreflex_errors.test_newreflex_error_via_config_service_with_substitution",
+ "eval.tests.test_reflex_sequential.test_sequential_requires_config",
+ "eval.tests.test_reflex_sequential.test_sequential_service_via_config_runs_serialized",
+ "eval.tests.test_reflex_service.test_multiple_output_lines_from_single_run_relayed",
+ "eval.tests.test_reflex_service.test_service_relays_multiline_output",
+ "eval.tests.test_reflex_service.test_service_starts_and_runs_command",
+ "eval.tests.test_reflex_service.test_shutdown_timeout_controls_grace_escalation[long]",
+ "eval.tests.test_reflex_service.test_shutdown_timeout_controls_grace_escalation[short]",
+ "eval.tests.test_reflex_service.test_sigint_default_grace_does_not_escalate",
+ "eval.tests.test_reflex_service.test_terminate_cleans_up_children_and_exits_zero",
+ "eval.tests.test_reflex_service.test_terminate_sends_ascii3_ctrl_c_to_tty",
+ "eval.tests.test_reflex_watcher_restart.test_non_service_runs_command_on_each_change",
+ "eval.tests.test_reflex_watcher_restart.test_non_service_substitutes_filename_into_command",
+ "eval.tests.test_reflex_watcher_restart.test_only_files_filter_relays_file_change_only",
+ "eval.tests.test_reflex_watcher_restart.test_service_restarts_on_every_matching_file_change",
+ "eval.tests.test_reflex_watcher_restart.test_service_restarts_when_matching_file_changes"
+ ]
+ }
+ },
+ "commit": "4ebe83d5908626f8da43b5f749ef5ec407aff02f",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.9833556143317885,
+ "eval_clean_hashes": [
+ "2172532c2c82c439cdc5878f08771c804847ba87302de45dcf68d4423267bc09"
+ ],
+ "input_record": {
+ "commit": "4ebe83d5908626f8da43b5f749ef5ec407aff02f",
+ "commits": 127,
+ "contributors": 9,
+ "difficulty": "easy",
+ "difficulty_code_lines": 1203,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 1203,
+ "difficulty_runtime_deps": 7,
+ "difficulty_score": 1.9833556143317885,
+ "difficulty_test_code_lines": 235,
+ "full_name": "cespare/reflex",
+ "github_stars": 3550,
+ "input_joern_zip": "go_joern/cespare__reflex.zip",
+ "joern_status": true,
+ "joern_time": 7.247507418971509,
+ "language": "go",
+ "pb_match": [
+ {
+ "pb_fullname": "direnv/direnv",
+ "rank": 411,
+ "similarity": 0.4340556859970093
+ }
+ ],
+ "repo_age": 13.21,
+ "repo_path": "go/cespare__reflex",
+ "source": "commit:4ebe83d5908626f8da43b5f749ef5ec407aff02f",
+ "status": "done",
+ "url": "https://github.com/cespare/reflex"
+ },
+ "instance_id": "cespare__reflex.4ebe83d",
+ "language": "go",
+ "module_iterations": [
+ {
+ "actual_iterations": 2,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 2,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 3,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 4,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ }
+ ],
+ "repository": "cespare/reflex"
+}
diff --git a/cespare--reflex.4ebe83d/tests/test.sh b/cespare--reflex.4ebe83d/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/cespare--reflex.4ebe83d/tests/workspace.tar.gz b/cespare--reflex.4ebe83d/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b79673d430fb858cf9412c4d2e81a3472c4fdc5b
--- /dev/null
+++ b/cespare--reflex.4ebe83d/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93f2455e17c9273c25535c6b4e7507ef097a9abd253340d7128d48d07a207e1b
+size 6660
diff --git a/cfdemproject--liggghts-public.3d/environment/Dockerfile b/cfdemproject--liggghts-public.3d/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..ea5dabd15b163b4b12b41d1994ffda06041df226
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/environment/Dockerfile
@@ -0,0 +1,66 @@
+FROM ubuntu:22.04
+ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
+ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
+ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
+ARG PROGRAMGYM_NPM_STRICT_SSL="true"
+ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
+ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
+ARG PROGRAMGYM_UV_INSECURE_HOST=""
+ENV GOPROXY=${PROGRAMGYM_GOPROXY}
+ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
+ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
+ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
+ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
+COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
+RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_cache=/workspace/.cache/npm
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.12
+RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
+ARG GCC_VERSION=13.3.0
+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; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; 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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/cfdemproject--liggghts-public.3d/environment/docker-compose.yaml b/cfdemproject--liggghts-public.3d/environment/docker-compose.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f3bd71ea40d31cf72c3c886f85cbca1450add2cc
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/environment/docker-compose.yaml
@@ -0,0 +1,11 @@
+services:
+ main:
+ build:
+ args:
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
diff --git a/cfdemproject--liggghts-public.3d/environment/download.sh b/cfdemproject--liggghts-public.3d/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..859ce24e8621b9c5eb7457a3815ffa5e49f2841f
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/environment/download.sh
@@ -0,0 +1,44 @@
+#!/usr/bin/env bash
+# download.sh - ProgramGym dependency-download stage for LIGGGHTS-PUBLIC.
+#
+# This script is sourced via `source /source_ro/download.sh` while the target
+# container still has network access. It only installs/prefetches the system
+# packages required to build and run the LIGGGHTS DEM engine (`liggghts_bin`
+# -> ./executable). It performs no compilation, linking, testing, or packaging.
+#
+# The MPI implementation (MPICH) is required because the project's top-level
+# build enables MPI by default and fails hard when no MPI is present. It is
+# provided at the system level so that the offline build.sh can link against it
+# and ./executable can run correctly afterward.
+#
+# This file is a standalone single file and must not read any repository file.
+
+so_fail() {
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+}
+
+# Refresh the apt package indexes.
+apt-get update
+if [ "$?" -ne 0 ]; then
+ echo "download.sh: 'apt-get update' failed" >&2
+ so_fail
+fi
+
+# Build & runtime dependencies for the MPI-enabled LIGGGHTS engine:
+# mpich : MPI runtime + mpiexec (`mpicxx` wrappers)
+# libmpich-dev : MPI headers and the libmpich.so/libmpichcxx.so dev symlinks
+# needed by find_package(MPI) and the offline link step.
+# libmpich12 : pulled in automatically by `mpich`; provides the runtime
+# libmpich.so.12 / libmpichcxx.so.12 that ./executable loads.
+DEBS="mpich libmpich-dev"
+apt-get install -y $DEBS
+if [ "$?" -ne 0 ]; then
+ echo "download.sh: failed to install ($DEBS)" >&2
+ so_fail
+fi
+
+echo "download.sh: dependencies installed: $DEBS"
diff --git a/cfdemproject--liggghts-public.3d/environment/executable b/cfdemproject--liggghts-public.3d/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..17e329203dfbbcf28eb3c2bf007f875763d29343
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d3c3bd8e195ea1ab317ab25fa774f732fbc70118f42a653139c0ff4874aa4d7a
+size 6750216
diff --git a/cfdemproject--liggghts-public.3d/environment/harbor_configure_apt_mirror.sh b/cfdemproject--liggghts-public.3d/environment/harbor_configure_apt_mirror.sh
new file mode 100644
index 0000000000000000000000000000000000000000..c70a651096880dece7733b26837f2ca8e24d2c7f
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/environment/harbor_configure_apt_mirror.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+repository_base="${1%/}"
+if [[ -z "$repository_base" ]]; then
+ exit 0
+fi
+
+. /etc/os-release
+codename="${VERSION_CODENAME:-}"
+if [[ -z "$codename" ]]; then
+ echo "VERSION_CODENAME is not set" >&2
+ exit 1
+fi
+
+if [[ "$ID" == "ubuntu" ]]; then
+ repository_name="apt-proxy"
+ components="main universe restricted multiverse"
+else
+ repository_name="debian-proxy"
+ components="main contrib non-free non-free-firmware"
+fi
+
+install -d /etc/apt/sources.list.d
+rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
+printf 'deb [trusted=yes] %s/%s %s %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >/etc/apt/sources.list
+printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >>/etc/apt/sources.list
+
+if [[ "$ID" != "ubuntu" ]]; then
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
+ >>/etc/apt/sources.list
+fi
diff --git a/cfdemproject--liggghts-public.3d/environment/harbor_prepare_download_env.sh b/cfdemproject--liggghts-public.3d/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cfdemproject--liggghts-public.3d/environment/workspace.tar.gz b/cfdemproject--liggghts-public.3d/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..2f014fef658d4013ca517e1b22cc5706c235b98c
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dce36be4051be38e361ad99ce33894c2c43eca675f1c54c20c07ff8eed253905
+size 2537
diff --git a/cfdemproject--liggghts-public.3d/instruction.md b/cfdemproject--liggghts-public.3d/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/cfdemproject--liggghts-public.3d/solution/solve.sh b/cfdemproject--liggghts-public.3d/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/cfdemproject--liggghts-public.3d/task.toml b/cfdemproject--liggghts-public.3d/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..c0ca4e6aa377b5078e0e5c4e935a8de9cb1fef53
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/cfdemproject--liggghts-public.3d"
+description = "Synthetic ProgramGym cleanroom reconstruction task for CFDEMproject/LIGGGHTS-PUBLIC"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "CFDEMproject__LIGGGHTS-PUBLIC.3d5c00f"
+repository = "CFDEMproject/LIGGGHTS-PUBLIC"
+commit = "3d5c00f20519e6bb6eb6756f51f1ad36564e649d"
+language = "cpp"
+difficulty = "medium"
+difficulty_score = 3.853805859670925
+test_branches = 6
+test_count = 2378
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/cfdemproject--liggghts-public.3d/tests/Dockerfile b/cfdemproject--liggghts-public.3d/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..31c24423705b4d9f115d86d6c410e4b65f06031b
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/Dockerfile
@@ -0,0 +1,74 @@
+FROM ubuntu:22.04
+ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
+ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
+ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
+ARG PROGRAMGYM_NPM_STRICT_SSL="true"
+ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
+ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
+ARG PROGRAMGYM_UV_INSECURE_HOST=""
+ENV GOPROXY=${PROGRAMGYM_GOPROXY}
+ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
+ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
+ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
+ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
+COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
+RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_cache=/workspace/.cache/npm
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.12
+RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
+ARG GCC_VERSION=13.3.0
+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; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; 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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_01.tar.gz b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..bcf65d4045fd7ad6637da298f9fda9c062ac6a63
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e2441b75cdcfcc0402f07dad0da4a4783f8e6964126bdc6477c760af3c1abc4e
+size 79228
diff --git a/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_02.tar.gz b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d9c98087e0d15672bc8226d6e897cbf3f1af9657
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6c40387bdaa80f42c249f3e92171170174d5c488aedd7490fe4b77a26f3c8cab
+size 83761
diff --git a/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_03.tar.gz b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..69d1bd444091270af35fa4663bf6cacdd215204c
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50af0317bd3bdf8826339bc6bbc9cad202e4593ff9b32963dbc44bf9ddaf0c6d
+size 46896
diff --git a/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_04.tar.gz b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..ec1d7f67ff7e7e740ec08816c14dc87816cfe74e
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af72bee35d40f84321b7208d50dd9f8c7ccf6b1e7d9e6e3d01e72fd05598e323
+size 42581
diff --git a/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_05.tar.gz b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_05.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..a9d536ed036ca7ebdb876e252865a1ae7137a05a
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_05.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a156b8c6cceb4e3d8750e543fa666debb2a7722a08bdfe659d63b730d59342d
+size 62472
diff --git a/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_06.tar.gz b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_06.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..30010c58ec3721393017920bb0c1919a7e1311ae
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/blobs/tests/generated_module_06.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6e03b144a9ddd76d850446685374f3a6e7cd131d03e03f26b6d9681d8f66b5c4
+size 62790
diff --git a/cfdemproject--liggghts-public.3d/tests/docker-compose.yaml b/cfdemproject--liggghts-public.3d/tests/docker-compose.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f3bd71ea40d31cf72c3c886f85cbca1450add2cc
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/docker-compose.yaml
@@ -0,0 +1,11 @@
+services:
+ main:
+ build:
+ args:
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
diff --git a/cfdemproject--liggghts-public.3d/tests/download.sh b/cfdemproject--liggghts-public.3d/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..859ce24e8621b9c5eb7457a3815ffa5e49f2841f
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/download.sh
@@ -0,0 +1,44 @@
+#!/usr/bin/env bash
+# download.sh - ProgramGym dependency-download stage for LIGGGHTS-PUBLIC.
+#
+# This script is sourced via `source /source_ro/download.sh` while the target
+# container still has network access. It only installs/prefetches the system
+# packages required to build and run the LIGGGHTS DEM engine (`liggghts_bin`
+# -> ./executable). It performs no compilation, linking, testing, or packaging.
+#
+# The MPI implementation (MPICH) is required because the project's top-level
+# build enables MPI by default and fails hard when no MPI is present. It is
+# provided at the system level so that the offline build.sh can link against it
+# and ./executable can run correctly afterward.
+#
+# This file is a standalone single file and must not read any repository file.
+
+so_fail() {
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+}
+
+# Refresh the apt package indexes.
+apt-get update
+if [ "$?" -ne 0 ]; then
+ echo "download.sh: 'apt-get update' failed" >&2
+ so_fail
+fi
+
+# Build & runtime dependencies for the MPI-enabled LIGGGHTS engine:
+# mpich : MPI runtime + mpiexec (`mpicxx` wrappers)
+# libmpich-dev : MPI headers and the libmpich.so/libmpichcxx.so dev symlinks
+# needed by find_package(MPI) and the offline link step.
+# libmpich12 : pulled in automatically by `mpich`; provides the runtime
+# libmpich.so.12 / libmpichcxx.so.12 that ./executable loads.
+DEBS="mpich libmpich-dev"
+apt-get install -y $DEBS
+if [ "$?" -ne 0 ]; then
+ echo "download.sh: failed to install ($DEBS)" >&2
+ so_fail
+fi
+
+echo "download.sh: dependencies installed: $DEBS"
diff --git a/cfdemproject--liggghts-public.3d/tests/executable b/cfdemproject--liggghts-public.3d/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..17e329203dfbbcf28eb3c2bf007f875763d29343
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d3c3bd8e195ea1ab317ab25fa774f732fbc70118f42a653139c0ff4874aa4d7a
+size 6750216
diff --git a/cfdemproject--liggghts-public.3d/tests/harbor_configure_apt_mirror.sh b/cfdemproject--liggghts-public.3d/tests/harbor_configure_apt_mirror.sh
new file mode 100644
index 0000000000000000000000000000000000000000..c70a651096880dece7733b26837f2ca8e24d2c7f
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/harbor_configure_apt_mirror.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+repository_base="${1%/}"
+if [[ -z "$repository_base" ]]; then
+ exit 0
+fi
+
+. /etc/os-release
+codename="${VERSION_CODENAME:-}"
+if [[ -z "$codename" ]]; then
+ echo "VERSION_CODENAME is not set" >&2
+ exit 1
+fi
+
+if [[ "$ID" == "ubuntu" ]]; then
+ repository_name="apt-proxy"
+ components="main universe restricted multiverse"
+else
+ repository_name="debian-proxy"
+ components="main contrib non-free non-free-firmware"
+fi
+
+install -d /etc/apt/sources.list.d
+rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
+printf 'deb [trusted=yes] %s/%s %s %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >/etc/apt/sources.list
+printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >>/etc/apt/sources.list
+
+if [[ "$ID" != "ubuntu" ]]; then
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
+ >>/etc/apt/sources.list
+fi
diff --git a/cfdemproject--liggghts-public.3d/tests/harbor_prepare_download_env.sh b/cfdemproject--liggghts-public.3d/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cfdemproject--liggghts-public.3d/tests/programgym_evaluator.py b/cfdemproject--liggghts-public.3d/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/cfdemproject--liggghts-public.3d/tests/programgym_task.json b/cfdemproject--liggghts-public.3d/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..31d3038dcbfee28ae62718ca8faa930adc103473
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/programgym_task.json
@@ -0,0 +1,2870 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_fix_enforce2d.test_fix_enforce2d_2d_pins_z_velocity",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_fix_enforce2d.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_fix_enforce2d.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_info_command.test_info_communication_reports_comm_style",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_info_command.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_info_command.test_info_computes_reports_builtin_computes",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_info_command.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_info_command.test_info_groups_reports_all_group",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_info_command.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_info_command.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_info_command.test_info_out_append_writes_report_file",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_info_command.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_info_command.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_info_command.test_info_regions_reports_box_region",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_info_command.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_restart_persistence.test_write_data_section_structure",
+ "reasons": [
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_restart_persistence.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_variable_print_thermo.test_variable_random_invalid_seed_rejected",
+ "reasons": [
+ {
+ "id": "test_random_without_seed",
+ "message": "test uses randomness without an explicit seed",
+ "path": "eval/tests/test_variable_print_thermo.py",
+ "repair_hint": "Seed randomness or remove random behavior from the test oracle.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_write_dump.test_write_dump_honors_group_mask",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_write_dump.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_write_dump.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_additional_behaviors.test_compute_ke_in_custom_thermo",
+ "eval.tests.test_additional_behaviors.test_group_selection_limits_velocity",
+ "eval.tests.test_additional_behaviors.test_neigh_modify_accepted",
+ "eval.tests.test_additional_behaviors.test_neighbor_bin_style_accepted",
+ "eval.tests.test_additional_behaviors.test_neighbor_binsize_many_atoms",
+ "eval.tests.test_additional_behaviors.test_reset_timestep_shifts_reported_steps",
+ "eval.tests.test_additional_behaviors.test_variable_equal_binds_variables",
+ "eval.tests.test_additional_behaviors.test_variable_universe_uses_first_value",
+ "eval.tests.test_additional_behaviors.test_velocity_nve_conserves_kinetic_energy",
+ "eval.tests.test_additional_behaviors.test_write_restart_creates_binary",
+ "eval.tests.test_additional_behaviors.test_write_then_read_restart_roundtrip",
+ "eval.tests.test_box_operations.test_change_box_final_x_grows_box",
+ "eval.tests.test_box_operations.test_change_box_remap_preserves_run",
+ "eval.tests.test_box_operations.test_change_box_trilinear_extent_report",
+ "eval.tests.test_box_operations.test_region_intersect_two_regions_accepted",
+ "eval.tests.test_box_operations.test_region_union_two_regions_accepted",
+ "eval.tests.test_box_operations.test_region_union_used_as_create_box_domain",
+ "eval.tests.test_box_relax.test_box_relax_box_size_monotonic_in_target_pressure",
+ "eval.tests.test_box_relax.test_box_relax_compresses_box_under_positive_pressure",
+ "eval.tests.test_box_relax.test_box_relax_expands_box_under_negative_pressure",
+ "eval.tests.test_box_relax.test_box_relax_rejected_on_nonperiodic_dimension",
+ "eval.tests.test_box_relax.test_box_relax_requires_five_arguments",
+ "eval.tests.test_box_relax.test_minimize_needs_thermo_pe_compute",
+ "eval.tests.test_cli_args.test_dash_i_short_flag_is_accepted_for_in",
+ "eval.tests.test_cli_args.test_default_log_file_is_created",
+ "eval.tests.test_cli_args.test_echo_screen_echoes_substituted_commands",
+ "eval.tests.test_cli_args.test_help_flag_prints_command_line_options_table",
+ "eval.tests.test_cli_args.test_in_flag_loads_input_script_and_runs",
+ "eval.tests.test_cli_args.test_in_flag_missing_file_is_rejected_exact",
+ "eval.tests.test_cli_args.test_in_flag_relative_path_resolves_from_cwd",
+ "eval.tests.test_cli_args.test_inline_script_via_stdin",
+ "eval.tests.test_cli_args.test_invalid_command_line_flag_is_rejected_exact[--no-such-option]",
+ "eval.tests.test_cli_args.test_invalid_command_line_flag_is_rejected_exact[-q]",
+ "eval.tests.test_cli_args.test_invalid_command_line_flag_is_rejected_exact[-x]",
+ "eval.tests.test_cli_args.test_invalid_command_line_flag_is_rejected_exact[-zzz]",
+ "eval.tests.test_cli_args.test_log_file_matches_screen_for_simple_run",
+ "eval.tests.test_cli_args.test_log_flag_none_disables_log_file",
+ "eval.tests.test_cli_args.test_log_flag_writes_custom_log_file",
+ "eval.tests.test_cli_args.test_multiple_var_flags_apply_all",
+ "eval.tests.test_cli_args.test_nocite_flag_is_recognized",
+ "eval.tests.test_cli_args.test_run_completes_with_and_without_nocite",
+ "eval.tests.test_cli_args.test_screen_flag_writes_screen_copy_to_file",
+ "eval.tests.test_cli_args.test_screen_none_suppresses_terminal_screen_output",
+ "eval.tests.test_cli_args.test_var_defined_not_visible_before_cli_override_for_equal",
+ "eval.tests.test_cli_args.test_var_flag_overrides_index_variable",
+ "eval.tests.test_control_command_errors.test_min_style_cg_positive_control",
+ "eval.tests.test_control_command_errors.test_min_style_invalid_rejected[fire]",
+ "eval.tests.test_control_command_errors.test_min_style_invalid_rejected[hftn]",
+ "eval.tests.test_control_command_errors.test_min_style_invalid_rejected[quick]",
+ "eval.tests.test_control_command_errors.test_min_style_invalid_rejected[relax]",
+ "eval.tests.test_control_command_errors.test_min_style_invalid_rejected[sd]",
+ "eval.tests.test_control_command_errors.test_min_style_invalid_rejected[xyzswap]",
+ "eval.tests.test_control_command_errors.test_reset_timestep_negative_rejected",
+ "eval.tests.test_control_command_errors.test_run_style_invalid_rejected",
+ "eval.tests.test_control_command_errors.test_run_style_respa_bad_args_rejected[0 2 2-Respa levels must be >= 1-src/respa.cpp:83]",
+ "eval.tests.test_control_command_errors.test_run_style_respa_bad_args_rejected[1 2 3-Illegal run_style respa command-src/respa.cpp:142]",
+ "eval.tests.test_control_command_errors.test_run_style_respa_bad_args_rejected[2 3 2 3-Illegal run_style respa command-src/respa.cpp:142]",
+ "eval.tests.test_control_command_errors.test_run_style_respa_bad_args_rejected[2-Illegal run_style respa command-src/respa.cpp:85]",
+ "eval.tests.test_control_command_errors.test_run_style_respa_valid_shapes_accepted[1]",
+ "eval.tests.test_control_command_errors.test_run_style_respa_valid_shapes_accepted[2 3]",
+ "eval.tests.test_control_command_errors.test_run_style_respa_valid_shapes_accepted[4 2 2 2]",
+ "eval.tests.test_control_command_errors.test_thermo_modify_invalid_option_rejected[thermo_modify format int %d %d-Illegal thermo_modify command-src/thermo.cpp:539]",
+ "eval.tests.test_control_command_errors.test_thermo_modify_invalid_option_rejected[thermo_modify lost badarg-Illegal thermo_modify command-src/thermo.cpp:480]",
+ "eval.tests.test_control_command_errors.test_thermo_modify_invalid_option_rejected[thermo_modify nope 3-Illegal thermo_modify command-src/thermo.cpp:539]",
+ "eval.tests.test_domain.test_atom_style_affects_created_atom_message",
+ "eval.tests.test_domain.test_boundary_flag_all_fixed_box",
+ "eval.tests.test_domain.test_create_atoms_region_sphere_requires_lattice_errors",
+ "eval.tests.test_domain.test_create_atoms_single_reports_count",
+ "eval.tests.test_domain.test_create_atoms_two_singles_reports_each",
+ "eval.tests.test_domain.test_create_box_after_existing_region_variable_bounds",
+ "eval.tests.test_domain.test_create_box_nonzero_origin",
+ "eval.tests.test_domain.test_create_box_reports_orthogonal_extent",
+ "eval.tests.test_domain.test_delete_atoms_remove_in_region_reduces_count",
+ "eval.tests.test_domain.test_delete_atoms_reports_removed_atoms",
+ "eval.tests.test_domain.test_dimension_2d_restricts_atom_creation",
+ "eval.tests.test_domain.test_multiple_atom_types_reported",
+ "eval.tests.test_domain.test_region_cylinder_accepted",
+ "eval.tests.test_domain.test_region_plane_accepted",
+ "eval.tests.test_domain.test_region_prism_trims_reported_box",
+ "eval.tests.test_domain.test_region_sphere_accepted",
+ "eval.tests.test_domain.test_shear_region_create_box_is_supported",
+ "eval.tests.test_domain.test_unknown_region_style_is_rejected_exact",
+ "eval.tests.test_dump_control.test_dump_zero_frequency_rejected",
+ "eval.tests.test_dump_control.test_undump_unknown_id_rejected",
+ "eval.tests.test_dump_custom.test_atomic_attributes_exact_values",
+ "eval.tests.test_dump_custom.test_custom_header_lines_exact",
+ "eval.tests.test_dump_custom.test_dump_diameter_on_atomic_style_error",
+ "eval.tests.test_dump_custom.test_dump_modify_element_names",
+ "eval.tests.test_dump_custom.test_dump_modify_label_writes_item_label",
+ "eval.tests.test_dump_custom.test_dump_modify_region_filters_atom_count",
+ "eval.tests.test_dump_custom.test_dump_modify_thresh_filters_by_attribute",
+ "eval.tests.test_dump_custom.test_dump_runs_multi_timestep_blocks",
+ "eval.tests.test_dump_custom.test_element_and_variable_attributes",
+ "eval.tests.test_dump_custom.test_granular_mass_diameter_density_exact",
+ "eval.tests.test_dump_custom.test_granular_velocity_omega_attrs_exact",
+ "eval.tests.test_dump_custom.test_write_dump_invalid_attribute_error",
+ "eval.tests.test_dump_custom_thresh.test_dump_modify_unknown_option_rejected",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[fx > -1.0-expected_ids18]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[id < 2-expected_ids0]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[id > 1-expected_ids1]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[iz == 0-expected_ids15]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[mass < 1.5-expected_ids5]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[mass > 1.5-expected_ids4]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[type == 1-expected_ids3]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[type > 1-expected_ids2]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[vx <= 1.0-expected_ids16]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[vx == 1.0-expected_ids17]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[xs < 0.5-expected_ids10]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[xu > 3.5-expected_ids13]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[y < 2.0-expected_ids7]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[y > 4.0-expected_ids6]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[ys >= 0.4-expected_ids11]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[yu <= 2.0-expected_ids14]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[z < 2.0-expected_ids8]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[z >= 3.0-expected_ids9]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_attribute_filters[zs < 0.2-expected_ids12]",
+ "eval.tests.test_dump_custom_thresh.test_thresh_none_resets_to_all_atoms",
+ "eval.tests.test_dump_custom_thresh.test_thresh_q_filters_on_charge",
+ "eval.tests.test_dump_custom_thresh.test_thresh_x_filter_isolates_one_atom",
+ "eval.tests.test_dump_custom_thresh.test_triclinic_dump_header_xy_xz_yz",
+ "eval.tests.test_dump_custom_thresh.test_triclinic_scaled_pack_exact",
+ "eval.tests.test_dump_custom_thresh.test_triclinic_thresh_xs_uses_tri_branch",
+ "eval.tests.test_dump_output.test_dump_atom_coordinates_present",
+ "eval.tests.test_dump_output.test_dump_custom_attribute_count_matches",
+ "eval.tests.test_dump_output.test_dump_custom_frequency_multiple_blocks",
+ "eval.tests.test_dump_output.test_dump_custom_writes_item_sections",
+ "eval.tests.test_dump_output.test_dump_xyz_run_generates_files",
+ "eval.tests.test_dump_output.test_invalid_dump_attr_from_start_is_rejected",
+ "eval.tests.test_dump_output.test_invalid_dump_style_is_rejected",
+ "eval.tests.test_dump_output.test_read_data_clean_roundtrip",
+ "eval.tests.test_dump_output.test_read_data_missing_file_reports_error",
+ "eval.tests.test_dump_output.test_undump_stops_further_dumps",
+ "eval.tests.test_dump_output.test_write_data_creates_lammps_file_with_sections",
+ "eval.tests.test_dump_output.test_write_data_reports_timestep_in_header",
+ "eval.tests.test_dump_output.test_write_dump_all_custom_immediate",
+ "eval.tests.test_dump_output.test_write_dump_all_xyz_immediate",
+ "eval.tests.test_error_handling.test_abort_message_appears_on_stderr_for_global_error",
+ "eval.tests.test_error_handling.test_error_message_includes_source_location",
+ "eval.tests.test_error_handling.test_invalid_atom_style_exits_nonzero",
+ "eval.tests.test_error_handling.test_invalid_pair_style_emits_exact_diagnostic",
+ "eval.tests.test_error_handling.test_missing_unit_command_defaults_are_accepted",
+ "eval.tests.test_error_handling.test_prior_command_output_visible_before_error",
+ "eval.tests.test_error_handling.test_warning_does_not_abort_run",
+ "eval.tests.test_fix_deform.test_deform_bad_axis_style_illegal",
+ "eval.tests.test_fix_deform.test_deform_delta_offsets_both_bounds",
+ "eval.tests.test_fix_deform.test_deform_erate_box_collapses",
+ "eval.tests.test_fix_deform.test_deform_erate_grows_box_at_rate",
+ "eval.tests.test_fix_deform.test_deform_final_sets_absolute_box",
+ "eval.tests.test_fix_deform.test_deform_more_than_one_incompatible",
+ "eval.tests.test_fix_deform.test_deform_multi_dimension_changes_xy",
+ "eval.tests.test_fix_deform.test_deform_nevery_applies_every_N_steps",
+ "eval.tests.test_fix_deform.test_deform_remap_v_differs_from_remap_x_position",
+ "eval.tests.test_fix_deform.test_deform_scale_remaps_box_and_atoms",
+ "eval.tests.test_fix_deform.test_deform_scale_run0_leaves_box_unchanged",
+ "eval.tests.test_fix_deform.test_deform_shrink_wrapped_boundary_rejected",
+ "eval.tests.test_fix_deform.test_deform_tilt_requires_triclinic",
+ "eval.tests.test_fix_deform.test_deform_too_few_args_illegal",
+ "eval.tests.test_fix_deform.test_deform_trate_grows_box_exponentially",
+ "eval.tests.test_fix_deform.test_deform_trate_zero_tilt_rejected",
+ "eval.tests.test_fix_deform.test_deform_triclinic_tilt_final",
+ "eval.tests.test_fix_deform.test_deform_triclinic_tilt_xz_final",
+ "eval.tests.test_fix_deform.test_deform_triclinic_tilt_yz_delta",
+ "eval.tests.test_fix_deform.test_deform_two_volume_dims_rejected",
+ "eval.tests.test_fix_deform.test_deform_variable_invalid_style",
+ "eval.tests.test_fix_deform.test_deform_variable_name_missing",
+ "eval.tests.test_fix_deform.test_deform_vel_expands_box_like_erate",
+ "eval.tests.test_fix_deform.test_deform_volume_conserves_product",
+ "eval.tests.test_fix_deform.test_deform_volume_needs_matching_dim_rejected",
+ "eval.tests.test_fix_deform.test_deform_wiggle_oscillates_box",
+ "eval.tests.test_fix_deform.test_deform_wiggle_zero_period_illegal",
+ "eval.tests.test_fix_deform.test_deform_zero_nevery_illegal",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_accepted_and_runs[fix dtm all dt/reset 1 1.0e-4 1.0 1.0 units box-4]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_accepted_and_runs[fix dtm all dt/reset 1 1.0e-4 1.0 1.0-5]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_accepted_and_runs[fix dtm all dt/reset 1 1.0e-4 1.0e-2 1.0-3]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_accepted_and_runs[fix dtm all dt/reset 1 NULL 1.0 1.0-4]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_invalid_args_rejected[fix dtm all dt/reset 0 1.0e-4 1.0e-2 1.0-src/fix_dt_reset.cpp:85]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_invalid_args_rejected[fix dtm all dt/reset 1 1.0e-2 1.0e-4 1.0-src/fix_dt_reset.cpp:98]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_invalid_args_rejected[fix dtm all dt/reset 1 1.0e-4 1.0e-2 -1-src/fix_dt_reset.cpp:99]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_invalid_args_rejected[fix dtm all dt/reset 1 1.0e-4 1.0e-2 0-src/fix_dt_reset.cpp:99]",
+ "eval.tests.test_fix_dt_reset.test_fix_dt_reset_invalid_args_rejected[fix dtm all dt/reset 1 1.0e-4 1.0e-2 1.0 units bogus-src/fix_dt_reset.cpp:109]",
+ "eval.tests.test_fix_enforce2d.test_fix_enforce2d_2d_pins_z_velocity",
+ "eval.tests.test_fix_external.test_fix_external_array_mode_constructs_and_runs",
+ "eval.tests.test_fix_external.test_fix_external_array_mode_runs_steps",
+ "eval.tests.test_fix_external.test_fix_external_array_zero_apply_rejected",
+ "eval.tests.test_fix_external.test_fix_external_callback_mode_needs_driver",
+ "eval.tests.test_fix_external.test_fix_external_callback_zero_call_freq_rejected",
+ "eval.tests.test_fix_external.test_fix_external_requires_style_args",
+ "eval.tests.test_fix_external.test_fix_external_unknown_mode_rejected",
+ "eval.tests.test_fix_freeze.test_fix_freeze_extra_arguments_rejected",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix ap all property/atom p1 vector_one_entry yes yes yes 0.0-2]",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix ap all property/atom pv vector no no no 0.0 1.0 2.0-2]",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix ap all property/atom px scalar yes yes yes 0.0-2]",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix den all property/global dens peratomtype 1.0 2.0-2]",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix mtx all property/global gmt matrix 2 0.1 0.2 0.3 0.4-2]",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix pr all property/global coef peratomtypepair 2 0.3 0.4 0.4 0.5-2]",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix sc all property/global gval scalar 5.0-2]",
+ "eval.tests.test_fix_property.test_fix_property_accepted[fix vec all property/global gvec vector 1.0 2.0 3.0-2]",
+ "eval.tests.test_fix_property.test_fix_property_atom_invalid_args_rejected[fix ap all property/atom pv vector yes yes yes 0.0-Error in fix property/atom: Number of default values provided not consistent with vector style. Provide more than 1 value or use style 'scalar'-src/fix_property_atom.cpp:125]",
+ "eval.tests.test_fix_property.test_fix_property_atom_invalid_args_rejected[fix ap all property/atom px binary yes yes yes 0.0-Unknown style for fix property/atom. Valid styles are 'scalar', 'vector' or 'vector_one_entry'-src/fix_property_atom.cpp:100]",
+ "eval.tests.test_fix_property.test_fix_property_atom_invalid_args_rejected[fix ap all property/atom px scalar maybe yes yes 0.0-Unknown restart style for fix property/atom. Valid styles are 'yes' or 'no'-src/fix_property_atom.cpp:112]",
+ "eval.tests.test_fix_property.test_fix_property_atom_invalid_args_rejected[fix ap all property/atom px scalar yes maybe yes 0.0-Unknown communicate_ghost style for fix property/atom. Valid styles are 'yes' or 'no'-src/fix_property_atom.cpp:116]",
+ "eval.tests.test_fix_property.test_fix_property_atom_invalid_args_rejected[fix ap all property/atom px scalar yes yes maybe 0.0-Unknown communicate_reverse_ghost style for fix property/atom. Valid styles are 'yes' or 'no'-src/fix_property_atom.cpp:120]",
+ "eval.tests.test_fix_property.test_fix_property_atom_invalid_args_rejected[fix ap all property/atom px scalar yes yes yes 0.0 1.0-Error in fix property/atom: Number of default values provided not consistent with scalar style. Provide 1 value or use style 'vector'-src/fix_property_atom.cpp:128]",
+ "eval.tests.test_fix_property.test_fix_property_atom_invalid_args_rejected[fix ap all property/atom px-Illegal fix property/atom command, not enough arguments-src/fix_property_atom.cpp:82]",
+ "eval.tests.test_fix_property.test_fix_property_global_invalid_args_rejected[fix dens all property/global den bogus 1.0 2.0-Fix property/global (id dens): Unknown style. Valid styles are scalar, vector, atomtype/peratomtype, matrix, or atomtypepair/peratomtypepair-src/fix_property_global.cpp:102]",
+ "eval.tests.test_fix_property.test_fix_property_global_invalid_args_rejected[fix dens all property/global den peratomtype 1.0 2.0\\nfix dens2 all property/global den peratomtype 3.0 4.0-Fix property/global (id dens2): There is already a fix that registers a variable of the same name-src/fix_property_global.cpp:142]",
+ "eval.tests.test_fix_property.test_fix_property_global_invalid_args_rejected[fix mtx all property/global dt matrix 3 1.0 2.0-Fix property/global (id mtx): the number of default values must be a multiple of nCols.-src/fix_property_global.cpp:129]",
+ "eval.tests.test_fix_property.test_fix_property_global_invalid_args_rejected[fix pr all property/global coef peratomtypepair 2 0.3 0.4 0.5 0.6-Fix property/global (id pr): per-atomtype property matrix must be symmetric-src/fix_property_global.cpp:170]",
+ "eval.tests.test_fix_property.test_gran_pair_requires_material_property[-youngsModulus as requested by model hertz]",
+ "eval.tests.test_fix_property.test_gran_pair_requires_material_property[fix dens all property/global density peratomtype 2500.0\\nfix young all property/global youngsModulus peratomtype 1.0e7\\nfix pois all property/global poissonsRatio peratomtype 0.45\\n-coefficientRestitution as requested by model hertz]",
+ "eval.tests.test_fix_property.test_gran_pair_requires_material_property[fix dens all property/global density peratomtype 2500.0\\nfix young all property/global youngsModulus peratomtype 1.0e7\\nfix pois all property/global poissonsRatio peratomtype 0.45\\nfix rest all property/global coefficientRestitution peratomtypepair 1 0.6\\n-coefficientFriction as requested by tangential_model history]",
+ "eval.tests.test_fix_property.test_gran_pair_succeeds_with_all_material_properties",
+ "eval.tests.test_fixes.test_fix_adapt_bad_args_rejected",
+ "eval.tests.test_fixes.test_fix_box_relax_bad_args_rejected",
+ "eval.tests.test_fixes.test_fix_deform_valid_scale_runs",
+ "eval.tests.test_fixes.test_fix_enforce2d_rejected_in_3d_simulation",
+ "eval.tests.test_fixes.test_fix_enforce2d_runs_in_2d",
+ "eval.tests.test_fixes.test_fix_external_bad_access_rejected",
+ "eval.tests.test_fixes.test_fix_freeze_requires_torque_attr",
+ "eval.tests.test_fixes.test_fix_region_variable_needs_n_regions",
+ "eval.tests.test_gran_contact_math.test_cohesion_sjkr2_runs",
+ "eval.tests.test_gran_contact_math.test_cohesive_spheres_with_sjkr",
+ "eval.tests.test_gran_contact_math.test_rolling_epsd2_contact_runs",
+ "eval.tests.test_gran_contact_math.test_rolling_model_without_friction_property_rejected",
+ "eval.tests.test_gran_contact_math.test_rotating_sphere_retains_spin_with_rolling_friction",
+ "eval.tests.test_gran_contact_math.test_unknown_gran_model_rejected",
+ "eval.tests.test_granular_fixes.test_fix_adapt_atom_diameter_runs",
+ "eval.tests.test_granular_fixes.test_fix_adapt_pair_parameter_runs_on_lj_system",
+ "eval.tests.test_granular_fixes.test_fix_adapt_rejects_negative_nevery",
+ "eval.tests.test_granular_fixes.test_fix_adapt_rejects_nonvariable_pair_param",
+ "eval.tests.test_granular_fixes.test_fix_freeze_exposes_foriginal_vector",
+ "eval.tests.test_granular_fixes.test_fix_freeze_keeps_frozen_particle_immobile",
+ "eval.tests.test_granular_fixes.test_fix_region_variable_constructs_and_runs",
+ "eval.tests.test_granular_fixes.test_fix_region_variable_rejects_bad_region_name",
+ "eval.tests.test_granular_fixes.test_fix_region_variable_rejects_n_regions_below_one",
+ "eval.tests.test_granular_fixes.test_fix_region_variable_rejects_nonpositive_time",
+ "eval.tests.test_granular_fixes.test_fix_region_variable_requires_times_and_regions",
+ "eval.tests.test_granular_rotation.test_different_diameter_rotation",
+ "eval.tests.test_granular_rotation.test_rolling_friction_three_axis_spin",
+ "eval.tests.test_granular_rotation.test_spinning_collision_preserves_spinner",
+ "eval.tests.test_granular_rotation.test_three_axis_spin_preserved",
+ "eval.tests.test_group_compute.test_group_charge_with_set_values[charge(g1)--1]",
+ "eval.tests.test_group_compute.test_group_charge_with_set_values[charge(g1,sub)-0.5]",
+ "eval.tests.test_group_compute.test_group_compute_function[bound(g1,xmax)-6]",
+ "eval.tests.test_group_compute.test_group_compute_function[bound(g1,xmin)-2]",
+ "eval.tests.test_group_compute.test_group_compute_function[bound(g1,xmin,sub)-2]",
+ "eval.tests.test_group_compute.test_group_compute_function[bound(g1,ymax)-6]",
+ "eval.tests.test_group_compute.test_group_compute_function[bound(g1,ymin)-2]",
+ "eval.tests.test_group_compute.test_group_compute_function[bound(g1,zmax)-6]",
+ "eval.tests.test_group_compute.test_group_compute_function[bound(g1,zmin)-2]",
+ "eval.tests.test_group_compute.test_group_compute_function[count(g1)-2]",
+ "eval.tests.test_group_compute.test_group_compute_function[count(g1,sub)-1]",
+ "eval.tests.test_group_compute.test_group_compute_function[countMS(g1)-2]",
+ "eval.tests.test_group_compute.test_group_compute_function[countMS(g1,sub)-1]",
+ "eval.tests.test_group_compute.test_group_compute_function[fcm(g1,z)-0]",
+ "eval.tests.test_group_compute.test_group_compute_function[fcm(g1,z,sub)-0]",
+ "eval.tests.test_group_compute.test_group_compute_function[gyration(g1)-3.46410161513775]",
+ "eval.tests.test_group_compute.test_group_compute_function[gyration(g1,sub)-0]",
+ "eval.tests.test_group_compute.test_group_compute_function[ke(g1)-0.04]",
+ "eval.tests.test_group_compute.test_group_compute_function[ke(g1,sub)-0.02]",
+ "eval.tests.test_group_compute.test_group_compute_function[mass(g1)-2]",
+ "eval.tests.test_group_compute.test_group_compute_function[mass(g1,sub)-1]",
+ "eval.tests.test_group_compute.test_group_compute_function[vcm(g1,x)-0.2]",
+ "eval.tests.test_group_compute.test_group_compute_function[xcm(g1,x)-4]",
+ "eval.tests.test_group_compute.test_group_compute_function[xcm(g1,x,sub)-2]",
+ "eval.tests.test_group_compute.test_group_delete_used_by_atom_modify_first_rejected",
+ "eval.tests.test_group_compute.test_group_delete_used_by_compute_rejected",
+ "eval.tests.test_group_compute.test_group_delete_used_by_dump_rejected",
+ "eval.tests.test_group_compute.test_group_function_bad_region_all[gyration(g1,missing)]",
+ "eval.tests.test_group_compute.test_group_function_bad_region_all[ke(g1,missing)]",
+ "eval.tests.test_group_compute.test_group_function_bad_region_all[vcm(g1,x,missing)]",
+ "eval.tests.test_group_compute.test_group_function_bad_region_all[xcm(g1,x,missing)]",
+ "eval.tests.test_group_compute.test_group_function_unknown_component_rejected",
+ "eval.tests.test_group_compute.test_group_function_unknown_group_rejected",
+ "eval.tests.test_group_compute.test_group_function_unknown_region_rejected",
+ "eval.tests.test_group_compute.test_group_vcm_x_equals_velocity",
+ "eval.tests.test_group_selection.test_group_command_before_box_is_rejected",
+ "eval.tests.test_group_selection.test_group_delete_all_is_rejected",
+ "eval.tests.test_group_selection.test_group_delete_in_use_by_fix_is_rejected",
+ "eval.tests.test_group_selection.test_group_delete_missing_group_rejected",
+ "eval.tests.test_group_selection.test_group_delete_then_reuse_name",
+ "eval.tests.test_group_selection.test_group_id_between",
+ "eval.tests.test_group_selection.test_group_id_greater_equal",
+ "eval.tests.test_group_selection.test_group_id_greater_than",
+ "eval.tests.test_group_selection.test_group_id_less_equal",
+ "eval.tests.test_group_selection.test_group_id_less_than",
+ "eval.tests.test_group_selection.test_group_id_list_assigns_expected_atoms",
+ "eval.tests.test_group_selection.test_group_id_range_with_colon",
+ "eval.tests.test_group_selection.test_group_id_range_with_delta",
+ "eval.tests.test_group_selection.test_group_id_uses_double_digit_ids",
+ "eval.tests.test_group_selection.test_group_initialize_creates_empty_group",
+ "eval.tests.test_group_selection.test_group_intersect_missing_member_rejected",
+ "eval.tests.test_group_selection.test_group_intersect_of_disjoint_groups",
+ "eval.tests.test_group_selection.test_group_region_missing_id_rejected",
+ "eval.tests.test_group_selection.test_group_region_subset",
+ "eval.tests.test_group_selection.test_group_region_whole_box",
+ "eval.tests.test_group_selection.test_group_selection_used_by_fix_run",
+ "eval.tests.test_group_selection.test_group_subtract_removes_second_group",
+ "eval.tests.test_group_selection.test_group_subtract_single_member_rejected",
+ "eval.tests.test_group_selection.test_group_type_greater_equal_condition",
+ "eval.tests.test_group_selection.test_group_type_missing_value_rejected",
+ "eval.tests.test_group_selection.test_group_type_multiple_values",
+ "eval.tests.test_group_selection.test_group_type_single_value",
+ "eval.tests.test_group_selection.test_group_union_missing_member_rejected",
+ "eval.tests.test_group_selection.test_group_union_of_two_groups",
+ "eval.tests.test_group_selection.test_group_unknown_style_is_illegal",
+ "eval.tests.test_group_selection.test_group_variable_missing_name_rejected",
+ "eval.tests.test_group_selection.test_group_variable_nonzero_members",
+ "eval.tests.test_group_selection.test_group_variable_zero_members",
+ "eval.tests.test_group_selection.test_group_without_style_is_illegal",
+ "eval.tests.test_heat_gran.test_heat_gran_missing_material_property[-fix cap all property/global thermalCapacity peratomtype 800.0\\n-thermalConductivity as requested by heat/gran]",
+ "eval.tests.test_heat_gran.test_heat_gran_missing_material_property[fix tc all property/global thermalConductivity peratomtype 0.5\\n--thermalCapacity as requested by transportequation/scalar]",
+ "eval.tests.test_heat_gran.test_heat_gran_requires_granular_pair",
+ "eval.tests.test_heat_gran.test_heat_gran_reuses_preexisting_transport_equation",
+ "eval.tests.test_heat_gran.test_heat_gran_runs_and_initializes_temperature",
+ "eval.tests.test_info_command.test_info_communication_reports_comm_style",
+ "eval.tests.test_info_command.test_info_computes_reports_builtin_computes",
+ "eval.tests.test_info_command.test_info_config_reports_integer_sizes",
+ "eval.tests.test_info_command.test_info_fixes_reports_fix_section",
+ "eval.tests.test_info_command.test_info_groups_reports_all_group",
+ "eval.tests.test_info_command.test_info_out_append_writes_report_file",
+ "eval.tests.test_info_command.test_info_regions_reports_box_region",
+ "eval.tests.test_info_command.test_info_unknown_flag_warns",
+ "eval.tests.test_info_command.test_info_variables_reports_variable_section",
+ "eval.tests.test_input_parsing.test_braced_variable_substitution",
+ "eval.tests.test_input_parsing.test_comment_lines_are_ignored",
+ "eval.tests.test_input_parsing.test_equal_variable_evaluates_arithmetic",
+ "eval.tests.test_input_parsing.test_if_then_else_control_flow",
+ "eval.tests.test_input_parsing.test_info_all_reports_default_counts",
+ "eval.tests.test_input_parsing.test_info_system_reports_box_and_atom_counts",
+ "eval.tests.test_input_parsing.test_info_system_reports_counts_zero_after_no_create",
+ "eval.tests.test_input_parsing.test_info_system_reports_units_and_boxes",
+ "eval.tests.test_input_parsing.test_next_loop_variable_consumes_file_repeats",
+ "eval.tests.test_input_parsing.test_print_emits_exact_message",
+ "eval.tests.test_input_parsing.test_simple_dollar_single_variable_substitution",
+ "eval.tests.test_input_parsing.test_string_variable_replaces_quoted_value",
+ "eval.tests.test_input_parsing.test_undefined_variable_substitution_is_rejected",
+ "eval.tests.test_input_parsing.test_units_command_changes_units_report",
+ "eval.tests.test_input_parsing.test_unknown_command_is_rejected_exact",
+ "eval.tests.test_input_parsing.test_variable_defined_twice_keeps_first_index_value",
+ "eval.tests.test_input_parsing.test_while_next_jump_loops_bounded",
+ "eval.tests.test_min_linesearch.test_linesearch_all_three_converge_to_same_energy",
+ "eval.tests.test_min_linesearch.test_linesearch_backtrack_force_tolerance",
+ "eval.tests.test_min_linesearch.test_linesearch_backtrack_reports_exact_energy",
+ "eval.tests.test_min_linesearch.test_linesearch_driver_returns_clean_success_on_limited_run",
+ "eval.tests.test_min_linesearch.test_linesearch_forcezero_uses_more_force_evals",
+ "eval.tests.test_min_linesearch.test_linesearch_quadratic_stops_on_zero_factors",
+ "eval.tests.test_min_linesearch.test_min_modify_bad_line_style_is_illegal",
+ "eval.tests.test_min_linesearch.test_min_modify_dmax_changes_iteration_count",
+ "eval.tests.test_min_linesearch.test_min_modify_dmax_with_forcezero_runs",
+ "eval.tests.test_min_linesearch.test_min_modify_dmax_with_quadratic_runs",
+ "eval.tests.test_min_linesearch.test_min_modify_missing_dmax_value_is_illegal",
+ "eval.tests.test_min_linesearch.test_min_modify_missing_style_value_is_illegal",
+ "eval.tests.test_min_linesearch.test_min_modify_no_args_is_illegal",
+ "eval.tests.test_min_linesearch.test_min_modify_unknown_keyword_is_illegal",
+ "eval.tests.test_min_linesearch.test_min_style_before_box_is_rejected",
+ "eval.tests.test_min_linesearch.test_min_style_cg_explicit_then_minimize",
+ "eval.tests.test_min_linesearch.test_min_style_too_many_args_is_rejected",
+ "eval.tests.test_min_linesearch.test_min_style_unknown_style_is_rejected",
+ "eval.tests.test_min_linesearch.test_minimize_emits_reneighboring_reset_warning",
+ "eval.tests.test_min_linesearch.test_minimize_stops_on_max_force_evaluations",
+ "eval.tests.test_min_linesearch.test_minimize_stops_on_max_iterations",
+ "eval.tests.test_min_linesearch.test_no_forces_single_atom_stops_on_downhill",
+ "eval.tests.test_minimize.test_min_style_cg_is_accepted",
+ "eval.tests.test_minimize.test_minimize_bad_etol_is_rejected",
+ "eval.tests.test_minimize.test_minimize_config_etol_ftol_ordering",
+ "eval.tests.test_minimize.test_minimize_converges_and_reports_steps",
+ "eval.tests.test_minimize.test_minimize_requires_pe_compute_error",
+ "eval.tests.test_minimize.test_minimize_runs_with_pe_compute",
+ "eval.tests.test_persistence_commands.test_write_data_before_box_rejected",
+ "eval.tests.test_persistence_commands.test_write_restart_before_box_rejected",
+ "eval.tests.test_random_park.test_displace_atoms_random_bad_seed_rejected",
+ "eval.tests.test_random_park.test_displace_atoms_random_different_seed_differs",
+ "eval.tests.test_random_park.test_displace_atoms_random_is_reproducible",
+ "eval.tests.test_random_park.test_random_different_seed_yields_different_positions",
+ "eval.tests.test_random_park.test_random_nonprime_seed_is_rejected",
+ "eval.tests.test_random_park.test_random_positions_fall_within_box_bounds",
+ "eval.tests.test_random_park.test_random_prime_seed_creates_requested_atoms",
+ "eval.tests.test_random_park.test_random_seed_below_threshold_is_rejected",
+ "eval.tests.test_random_park.test_random_seed_reproducible_exact_positions",
+ "eval.tests.test_random_park.test_random_single_atom_bounds",
+ "eval.tests.test_restart_persistence.test_read_restart_requires_redeclared_material_props",
+ "eval.tests.test_restart_persistence.test_read_restart_with_redeclared_material_props",
+ "eval.tests.test_restart_persistence.test_reset_timestep_renumbers_step[0-3-3]",
+ "eval.tests.test_restart_persistence.test_reset_timestep_renumbers_step[100-2-102]",
+ "eval.tests.test_restart_persistence.test_reset_timestep_renumbers_step[7-0-7]",
+ "eval.tests.test_restart_persistence.test_unfix_and_uncompute_accepted",
+ "eval.tests.test_restart_persistence.test_write_data_section_structure",
+ "eval.tests.test_run_control.test_fix_dt_reset_accepted",
+ "eval.tests.test_run_control.test_fix_dt_reset_missing_args_rejected",
+ "eval.tests.test_run_control.test_fix_print_emits_at_interval",
+ "eval.tests.test_run_control.test_no_fix_warning_is_emitted",
+ "eval.tests.test_run_control.test_nve_fix_runs_atoms_forward",
+ "eval.tests.test_run_control.test_run_bogus_keyword_rejected_exact",
+ "eval.tests.test_run_control.test_run_negative_steps_rejected_exact",
+ "eval.tests.test_run_control.test_run_reports_natom_count",
+ "eval.tests.test_run_control.test_run_style_verlet_default",
+ "eval.tests.test_run_control.test_run_ten_with_thermo_two_reports_steps",
+ "eval.tests.test_run_control.test_run_upto_keyword_accepted",
+ "eval.tests.test_run_control.test_run_with_timestep_advances_step_counter",
+ "eval.tests.test_run_control.test_run_zero_completes",
+ "eval.tests.test_run_control.test_timestep_command_is_accepted",
+ "eval.tests.test_run_keywords.test_run_accepts_post_yes_and_no",
+ "eval.tests.test_run_keywords.test_run_accepts_pre_yes_and_no",
+ "eval.tests.test_run_keywords.test_run_accepts_start_and_stop",
+ "eval.tests.test_run_keywords.test_run_accepts_start_zero_stop_contiguous",
+ "eval.tests.test_run_keywords.test_run_before_box_rejected",
+ "eval.tests.test_run_keywords.test_run_every_null_registers_interval_command",
+ "eval.tests.test_run_keywords.test_run_every_zero_interval_rejected",
+ "eval.tests.test_run_keywords.test_run_post_bad_keyword_rejected",
+ "eval.tests.test_run_keywords.test_run_pre_bad_keyword_rejected",
+ "eval.tests.test_run_keywords.test_run_start_after_current_timestep_rejected",
+ "eval.tests.test_run_keywords.test_run_start_missing_value_rejected",
+ "eval.tests.test_run_keywords.test_run_stop_before_run_end_rejected",
+ "eval.tests.test_run_keywords.test_run_stop_missing_value_rejected",
+ "eval.tests.test_run_keywords.test_run_with_no_arguments_rejected",
+ "eval.tests.test_run_time.test_run_time_executes_expected_steps[0-0]",
+ "eval.tests.test_run_time.test_run_time_executes_expected_steps[0.005-1]",
+ "eval.tests.test_run_time.test_run_time_executes_expected_steps[0.01-2]",
+ "eval.tests.test_run_time.test_run_time_executes_expected_steps[1.5-300]",
+ "eval.tests.test_run_time.test_run_time_executes_expected_steps[3-600]",
+ "eval.tests.test_run_time.test_run_time_invalid_arguments_rejected[run_time -1\\n-run_time command has invalid time-src/run_time.cpp:86]",
+ "eval.tests.test_run_time.test_run_time_invalid_arguments_rejected[run_time 3 bogus\\n-run_time command only allows the upto keyword as additional argument-src/run_time.cpp:91]",
+ "eval.tests.test_run_time.test_run_time_invalid_arguments_rejected[run_time 3 upto extra\\n-run_time command allows at most two parameters-src/run_time.cpp:94]",
+ "eval.tests.test_run_time.test_run_time_invalid_arguments_rejected[run_time\\n-Illegal run_time command-src/run_time.cpp:76]",
+ "eval.tests.test_run_time.test_run_time_requires_simulation_box",
+ "eval.tests.test_run_time.test_run_time_upto_runs_remaining_steps",
+ "eval.tests.test_thermo_output.test_default_thermo_style_header",
+ "eval.tests.test_thermo_output.test_kinetic_energy_value_appears_in_default_thermo",
+ "eval.tests.test_thermo_output.test_output_thermo_after_run_restarts_frequency",
+ "eval.tests.test_thermo_output.test_thermo_command_rejects_missing_arguments",
+ "eval.tests.test_thermo_output.test_thermo_command_rejects_negative_frequency",
+ "eval.tests.test_thermo_output.test_thermo_frequency_three_rows",
+ "eval.tests.test_thermo_output.test_thermo_frequency_two_rows",
+ "eval.tests.test_thermo_output.test_thermo_modify_line_format_is_accepted",
+ "eval.tests.test_thermo_output.test_thermo_none_is_rejected_with_integer_error",
+ "eval.tests.test_thermo_output.test_thermo_style_custom_step",
+ "eval.tests.test_thermo_output.test_thermo_style_custom_step_spcpu",
+ "eval.tests.test_thermo_output.test_thermo_style_one_command_without_custom",
+ "eval.tests.test_thermo_output.test_thermo_style_unknown_keyword_rejected",
+ "eval.tests.test_thermo_output.test_thermo_zero_prints_only_first_and_last",
+ "eval.tests.test_variable_math_functions.test_equal_math_special_function_value[acos(0.5)-1.0471975511966]",
+ "eval.tests.test_variable_math_functions.test_equal_math_special_function_value[asin(0.5)-0.523598775598299]",
+ "eval.tests.test_variable_math_functions.test_equal_math_special_function_value[atan(1.0)-0.785398163397448]",
+ "eval.tests.test_variable_math_functions.test_equal_math_special_function_value[atan2(3.0,4.0)-0.643501108793284]",
+ "eval.tests.test_variable_math_functions.test_equal_math_special_function_value[cos(1.0)-0.54030230586814]",
+ "eval.tests.test_variable_math_functions.test_equal_math_special_function_value[sin(1.0)-0.841470984807897]",
+ "eval.tests.test_variable_math_functions.test_equal_unsupported_math_function_rejected[max(2.0,3.0)]",
+ "eval.tests.test_variable_math_functions.test_equal_unsupported_math_function_rejected[min(2.0,3.0)]",
+ "eval.tests.test_variable_math_functions.test_equal_unsupported_math_function_rejected[sum(1.5,2.5)]",
+ "eval.tests.test_variable_print_thermo.test_print_file_and_append_contents",
+ "eval.tests.test_variable_print_thermo.test_print_file_with_variable_substitution",
+ "eval.tests.test_variable_print_thermo.test_thermo_custom_columns_computed",
+ "eval.tests.test_variable_print_thermo.test_thermo_custom_unknown_lgghts_keyword_rejected[eam]",
+ "eval.tests.test_variable_print_thermo.test_thermo_custom_unknown_lgghts_keyword_rejected[enthalpy]",
+ "eval.tests.test_variable_print_thermo.test_thermo_custom_unknown_lgghts_keyword_rejected[pe]",
+ "eval.tests.test_variable_print_thermo.test_thermo_custom_unknown_lgghts_keyword_rejected[press]",
+ "eval.tests.test_variable_print_thermo.test_thermo_modify_format_applied",
+ "eval.tests.test_variable_print_thermo.test_variable_delete_removes_variable",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_math_functions[(3+5)*2-4-PAREN-12]",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_math_functions[6*7+1-ARITH-43]",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_math_functions[abs(-5)-ABS-5]",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_math_functions[exp(0)-EXP0-1]",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_math_functions[log(1)-LOG1-0]",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_math_functions[sin(0)-SIN0-0]",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_math_functions[sqrt(16)-SQRT-4]",
+ "eval.tests.test_variable_print_thermo.test_variable_equal_references_another_variable",
+ "eval.tests.test_variable_print_thermo.test_variable_file_reads_value",
+ "eval.tests.test_variable_print_thermo.test_variable_index_next_sequence",
+ "eval.tests.test_variable_print_thermo.test_variable_random_invalid_seed_rejected",
+ "eval.tests.test_variable_print_thermo.test_variable_random_valid_prime_seed_succeeds",
+ "eval.tests.test_variable_print_thermo.test_variable_string_substituted",
+ "eval.tests.test_variable_print_thermo.test_variable_undefined_reference_rejected",
+ "eval.tests.test_variable_print_thermo.test_variable_unsupported_style_rejected[variable g gaussian 5.0 1.0 54321\\nprint \"G=${g}\"]",
+ "eval.tests.test_variable_print_thermo.test_variable_unsupported_style_rejected[variable q nonsense 1 2 3\\nprint \"Q=${q}\"]",
+ "eval.tests.test_variable_print_thermo.test_variable_unsupported_style_rejected[variable u uniform 0.0 10.0 54321\\nprint \"U=${u}\"]",
+ "eval.tests.test_variable_print_thermo.test_variable_world_count_mismatch_rejected",
+ "eval.tests.test_variable_print_thermo.test_variable_world_single_partition",
+ "eval.tests.test_variables.test_atom_style_peratom_dump",
+ "eval.tests.test_variables.test_delete_removes_variable",
+ "eval.tests.test_variables.test_equal_arithmetic_values",
+ "eval.tests.test_variables.test_equal_math_functions",
+ "eval.tests.test_variables.test_equal_normal_seeded_deterministic",
+ "eval.tests.test_variables.test_equal_operator_comparisons",
+ "eval.tests.test_variables.test_equal_pi_constant",
+ "eval.tests.test_variables.test_equal_random_advances_per_evaluation",
+ "eval.tests.test_variables.test_equal_random_seeded_deterministic",
+ "eval.tests.test_variables.test_equal_variable_reference",
+ "eval.tests.test_variables.test_file_style_reads_values_and_next_advances",
+ "eval.tests.test_variables.test_file_variable_missing_file_rejected",
+ "eval.tests.test_variables.test_getenv_missing_expands_empty",
+ "eval.tests.test_variables.test_getenv_present_expands_environment",
+ "eval.tests.test_variables.test_index_present_repeat_keeps_first_value",
+ "eval.tests.test_variables.test_index_style_presents_and_next_advances",
+ "eval.tests.test_variables.test_loop_style_advances_via_next",
+ "eval.tests.test_variables.test_next_no_args_rejected",
+ "eval.tests.test_variables.test_next_wrong_style_rejected",
+ "eval.tests.test_variables.test_random_bad_seed_rejected",
+ "eval.tests.test_variables.test_string_style_stores_literal",
+ "eval.tests.test_variables.test_variable_bad_name_rejected",
+ "eval.tests.test_variables.test_variable_drives_create_atoms_and_run",
+ "eval.tests.test_variables.test_variable_equal_missing_expression_rejected",
+ "eval.tests.test_variables.test_variable_loop_zero_rejected",
+ "eval.tests.test_variables.test_variable_redefine_as_different_style_rejected",
+ "eval.tests.test_variables.test_variable_too_few_args_is_illegal",
+ "eval.tests.test_variables.test_variable_unknown_style_is_illegal",
+ "eval.tests.test_variables.test_while_loop_accumulator_control_flow",
+ "eval.tests.test_variables.test_world_count_mismatch_rejected",
+ "eval.tests.test_vector_math.test_cohesion_motion_and_force_are_symmetric",
+ "eval.tests.test_vector_math.test_different_diameter_mass_diameter_exact",
+ "eval.tests.test_vector_math.test_free_pre_spun_sphere_conserves_omega",
+ "eval.tests.test_vector_math.test_hertz_bounce_conserves_pair_symmetry",
+ "eval.tests.test_write_dump.test_write_dump_honors_group_mask",
+ "eval.tests.test_write_dump.test_write_dump_local_without_compute_rejected",
+ "eval.tests.test_write_dump.test_write_dump_too_few_arguments_rejected",
+ "eval.tests.test_write_dump.test_write_dump_unknown_style_rejected"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_y_axis_axial_lo_plane",
+ "reasons": [
+ {
+ "id": "assertion_disjunction",
+ "message": "pytest assertion accepts alternatives with or",
+ "path": "eval/tests/test_region_cylinder_surface.py",
+ "repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_region_prism_surface.test_prism_surface_exterior_golden_dump",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_region_prism_surface.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_region_prism_surface.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_region_prism_surface.test_prism_surface_interior_tilted_cell_skewed_force",
+ "reasons": [
+ {
+ "id": "assertion_disjunction",
+ "message": "pytest assertion accepts alternatives with or",
+ "path": "eval/tests/test_region_prism_surface.py",
+ "repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_atom_map.test_atom_modify_map_invalid_value",
+ "eval.tests.test_atom_map.test_map_array_style_id_lookup",
+ "eval.tests.test_atom_map.test_map_default_built_for_id_set",
+ "eval.tests.test_atom_map.test_map_hash_style_id_delete",
+ "eval.tests.test_atom_map.test_map_hash_style_id_lookup",
+ "eval.tests.test_atom_map_hash.test_hash_map_equivalent_to_array_for_write",
+ "eval.tests.test_atom_map_hash.test_hash_map_hybrid_run_integrates",
+ "eval.tests.test_atom_map_hash.test_hash_map_molecular_run_completes",
+ "eval.tests.test_atom_map_hash.test_hash_map_set_angle_dihedral_improper",
+ "eval.tests.test_atom_map_hash.test_hash_map_set_bond_retipes_all",
+ "eval.tests.test_atom_map_hash.test_hash_map_set_single_endpoint_zero",
+ "eval.tests.test_atom_map_hash.test_hash_map_unknown_map_mode_rejected",
+ "eval.tests.test_atom_modify.test_atom_modify_first_nonexistent_group_fails_at_run",
+ "eval.tests.test_atom_modify.test_atom_modify_first_then_sort_conflicts",
+ "eval.tests.test_atom_modify.test_atom_modify_map_after_box_errors",
+ "eval.tests.test_atom_modify.test_atom_modify_map_array_before_box_ok",
+ "eval.tests.test_atom_modify.test_atom_modify_map_hash_after_box_errors",
+ "eval.tests.test_atom_modify.test_atom_modify_map_hash_id_lookup",
+ "eval.tests.test_atom_modify.test_atom_modify_negative_bin_size_errors",
+ "eval.tests.test_atom_modify.test_atom_modify_negative_sort_freq_errors",
+ "eval.tests.test_atom_modify.test_atom_modify_sort_enabled_run_sorts",
+ "eval.tests.test_atom_modify.test_atom_modify_sort_then_first_no_conflict",
+ "eval.tests.test_atom_styles.test_atomic_style_rejects_extra_args",
+ "eval.tests.test_atom_styles.test_charge_style_enables_charge_set",
+ "eval.tests.test_atom_styles.test_default_atom_style_is_atomic",
+ "eval.tests.test_atom_styles.test_hybrid_cannot_duplicate_substyle",
+ "eval.tests.test_atom_styles.test_hybrid_cannot_nest_hybrid",
+ "eval.tests.test_atom_styles.test_hybrid_combines_substyles",
+ "eval.tests.test_atom_styles.test_invalid_atom_style_rejected",
+ "eval.tests.test_atom_styles.test_molecular_style_is_molecular",
+ "eval.tests.test_atom_styles.test_sphere_style_enables_diameter_density",
+ "eval.tests.test_atom_styles.test_sphere_style_write_data_ring",
+ "eval.tests.test_atom_vec_atomic.test_atomic_dump_charge_not_allocated",
+ "eval.tests.test_atom_vec_atomic.test_atomic_dump_positions_and_type",
+ "eval.tests.test_atom_vec_atomic.test_atomic_dump_radius_not_allocated",
+ "eval.tests.test_atom_vec_atomic.test_atomic_set_type_reflected_in_write_data",
+ "eval.tests.test_atom_vec_atomic.test_atomic_two_singles_create_two_atoms",
+ "eval.tests.test_atom_vec_atomic.test_atomic_write_data_atoms_columns",
+ "eval.tests.test_atom_vec_atomic.test_atomic_write_data_zero_velocities",
+ "eval.tests.test_atom_vec_charge_comm.test_charge_large_periodic_lattice_grows_ghost_buffer",
+ "eval.tests.test_atom_vec_charge_comm.test_charge_periodic_run_preserves_q_across_ghost_comm",
+ "eval.tests.test_atom_vec_charge_comm.test_charge_set_values_survive_a_real_run",
+ "eval.tests.test_atom_vec_charge_comm.test_charge_triclinic_run_preserves_q",
+ "eval.tests.test_atom_vec_charge_comm.test_charge_vel_comm_carries_velocity_and_q",
+ "eval.tests.test_atom_vec_charge_ext.test_charge_default_image_flags_are_zero",
+ "eval.tests.test_atom_vec_charge_ext.test_charge_restart_roundtrip_preserves_q",
+ "eval.tests.test_atom_vec_charge_ext.test_charge_restart_roundtrip_preserves_velocity",
+ "eval.tests.test_atom_vec_charge_ext.test_charge_set_image_flags_written_to_data",
+ "eval.tests.test_atom_vec_charge_ext.test_charge_set_then_restart_preserves_assigned_charge",
+ "eval.tests.test_atom_vec_charge_ext.test_charge_velocity_write_data_roundtrip",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_grow_bonus_realloc",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_periodic_run_ghost_bonus_comm",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_read_data_bonus_for_point_atom_rejected",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_read_data_bonus_roundtrip",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_read_data_bonus_without_style_rejected",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_read_data_invalid_density",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_read_data_invalid_ellipsoid_flag",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_read_data_invalid_shape",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_read_data_velocities_angmom",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_restart_roundtrip_preserves_bonus",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_run_various_box_sizes[box0-75-2100]",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_run_various_box_sizes[box1-32-896]",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_run_various_box_sizes[box2-27-756]",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_run_with_atom_sort",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_set_shape_writes_flag_and_density",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_set_shape_zero_half_length_rejected",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_setangular_2d_rejected",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_setangular_writes_angmom",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_triclinic_run_ghost_bonus_comm",
+ "eval.tests.test_atom_vec_ellipsoid.test_ellipsoid_zero_angular_runs",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_cannot_duplicate_style",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_cannot_nest_hybrid",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_charge_field_zero_by_default",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_rejects_trailing_substyle_args",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_rejects_uncompiled_style",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_rejects_unknown_substyle",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_sphere_charge_dump_both_columns",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_sphere_charge_set_properties",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_sphere_charge_write_combined_columns",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_three_styles_create_and_write",
+ "eval.tests.test_atom_vec_hybrid.test_hybrid_uses_last_declared_range_for_set",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_after_atom_sort",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_charge_molecular",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_ellipsoid_angmom_charge",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_nonperiodic_boundary",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_omega_preserved_all_atoms",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_runs_reports_neighbors[sphere charge-box0-p p p-75-2100]",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_runs_reports_neighbors[sphere charge-box1-p p p-32-896]",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_runs_reports_neighbors[sphere charge-box2-p p p-144-4032]",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_triclinic_prism",
+ "eval.tests.test_atom_vec_hybrid_comm.test_hybrid_velocity_comm_velocity_all_set_preserved",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_charge_molecular_dump_charge_persists",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_grow_across_ten_thousand_atoms",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_integration_run_reports_neighbors[charge molecular-5-1.0-1.0-50-1400]",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_integration_run_reports_neighbors[sphere charge-10-1.0-1.0-200-5564]",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_integration_run_reports_neighbors[sphere charge-12-1.5-2.0-588-31528]",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_integration_run_reports_neighbors[sphere molecular-6-1.0-1.5-72-1994]",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_run_with_atom_sort_reports_neighbors",
+ "eval.tests.test_atom_vec_hybrid_run.test_hybrid_sphere_charge_run_dump_columns_intact",
+ "eval.tests.test_atom_vec_sphere.test_sphere_2d_preserves_diameter_and_density",
+ "eval.tests.test_atom_vec_sphere.test_sphere_default_radius_and_density",
+ "eval.tests.test_atom_vec_sphere.test_sphere_dump_multi_atom_radii",
+ "eval.tests.test_atom_vec_sphere.test_sphere_read_data_radius_from_diameter",
+ "eval.tests.test_atom_vec_sphere.test_sphere_set_both_diameter_and_density",
+ "eval.tests.test_atom_vec_sphere.test_sphere_set_density_is_independent",
+ "eval.tests.test_atom_vec_sphere.test_sphere_set_diameter_halves_to_radius",
+ "eval.tests.test_atom_vec_sphere.test_sphere_write_data_diameter_column",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_periodic_lattice_grows_ghost_buffer",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_periodic_run_preserves_radius_density",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_radvary_comm_preserves_adapted_radius",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_radvary_data_file_radius_from_diameter",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_radvary_large_lattice_grows_vel_buffer",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_radvary_set_image_write_data_roundtrip_diameter",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_radvary_vel_comm_preserves_radius_velocity_omega",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_triclinic_run_preserves_radius_density",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_vel_comm_dense_lattice",
+ "eval.tests.test_atom_vec_sphere_comm.test_sphere_vel_comm_preserves_velocity_and_omega",
+ "eval.tests.test_change_box.test_change_box_before_box",
+ "eval.tests.test_change_box.test_change_box_chain_of_ops",
+ "eval.tests.test_change_box.test_change_box_ortho_requires_zero_tilt",
+ "eval.tests.test_change_box.test_change_box_remap_preserves_fractional_coords",
+ "eval.tests.test_change_box.test_change_box_shrink_wrap_boundary",
+ "eval.tests.test_change_box.test_change_box_tilt_on_orthogonal_rejected",
+ "eval.tests.test_change_box.test_change_box_triclinic_transition",
+ "eval.tests.test_change_box.test_change_box_x_final",
+ "eval.tests.test_change_box.test_change_box_y_delta",
+ "eval.tests.test_change_box.test_change_box_z_scale",
+ "eval.tests.test_charge_atoms.test_charge_set_requires_charge_style_within_dump",
+ "eval.tests.test_charge_atoms.test_charge_zero_and_negative_sign_preserved",
+ "eval.tests.test_charge_atoms.test_default_charge_is_zero",
+ "eval.tests.test_charge_atoms.test_read_charge_data_preserves_charge",
+ "eval.tests.test_charge_atoms.test_set_atom_charge_distinct_values",
+ "eval.tests.test_charge_atoms.test_set_charge_on_group_matches_selection",
+ "eval.tests.test_charge_atoms.test_set_type_charge_applies_to_atom",
+ "eval.tests.test_create_atoms.test_create_atoms_bad_random_seed",
+ "eval.tests.test_create_atoms.test_create_atoms_before_box",
+ "eval.tests.test_create_atoms.test_create_atoms_box_fill",
+ "eval.tests.test_create_atoms.test_create_atoms_box_region_subset",
+ "eval.tests.test_create_atoms.test_create_atoms_no_box_overlap",
+ "eval.tests.test_create_atoms.test_create_atoms_random_count",
+ "eval.tests.test_create_atoms.test_create_atoms_random_is_repeatable",
+ "eval.tests.test_create_atoms.test_create_atoms_regions_then_write_then_delete",
+ "eval.tests.test_create_atoms.test_create_atoms_requires_lattice_for_box_style",
+ "eval.tests.test_create_atoms.test_create_atoms_single",
+ "eval.tests.test_create_atoms.test_create_atoms_two_singles_delta",
+ "eval.tests.test_create_atoms.test_create_atoms_type_validation",
+ "eval.tests.test_create_atoms.test_create_atoms_unknown_region",
+ "eval.tests.test_create_box.test_create_box_applies_to_atom_styles",
+ "eval.tests.test_create_box.test_create_box_box_used_by_delete_atoms",
+ "eval.tests.test_create_box.test_create_box_emits_box_bounds",
+ "eval.tests.test_create_box.test_create_box_multiple_types",
+ "eval.tests.test_create_box.test_create_box_must_precede_atoms",
+ "eval.tests.test_create_box.test_create_box_no_region_no_fallback",
+ "eval.tests.test_create_box.test_create_box_offset_region_bounds",
+ "eval.tests.test_create_box.test_create_box_second_use_rejected",
+ "eval.tests.test_create_box.test_create_box_unknown_region",
+ "eval.tests.test_data_file_validation.test_atomic_type_above_ntypes_rejected",
+ "eval.tests.test_data_file_validation.test_atomic_zero_atom_id_rejected",
+ "eval.tests.test_data_file_validation.test_sphere_negative_density_rejected",
+ "eval.tests.test_data_file_validation.test_sphere_negative_diameter_rejected",
+ "eval.tests.test_data_file_validation.test_sphere_read_velocities_with_omega",
+ "eval.tests.test_data_file_validation.test_sphere_type_above_ntypes_rejected",
+ "eval.tests.test_data_file_validation.test_sphere_write_data_image_flags",
+ "eval.tests.test_data_file_validation.test_sphere_write_data_preserves_omega_velocity",
+ "eval.tests.test_data_file_validation.test_sphere_zero_atom_id_rejected",
+ "eval.tests.test_data_file_validation.test_sphere_zero_density_rejected",
+ "eval.tests.test_data_file_validation.test_sphere_zero_type_rejected",
+ "eval.tests.test_data_io.test_read_data_after_box_rejected",
+ "eval.tests.test_data_io.test_read_data_atom_positions_preserved",
+ "eval.tests.test_data_io.test_read_data_clean_file",
+ "eval.tests.test_data_io.test_read_data_unknown_section",
+ "eval.tests.test_data_io.test_read_data_write_data_round_trip",
+ "eval.tests.test_data_io.test_read_sphere_data",
+ "eval.tests.test_data_io.test_write_data_requires_masses",
+ "eval.tests.test_data_io.test_write_data_structure",
+ "eval.tests.test_data_io.test_write_data_velocity_section_matches_set",
+ "eval.tests.test_delete_atoms.test_delete_atoms_compress_no_keeps_tags",
+ "eval.tests.test_delete_atoms.test_delete_atoms_group",
+ "eval.tests.test_delete_atoms.test_delete_atoms_group_all_removes_everything",
+ "eval.tests.test_delete_atoms.test_delete_atoms_overlap_requires_pair_style",
+ "eval.tests.test_delete_atoms.test_delete_atoms_porosity_halves",
+ "eval.tests.test_delete_atoms.test_delete_atoms_porosity_low_fraction",
+ "eval.tests.test_delete_atoms.test_delete_atoms_region",
+ "eval.tests.test_delete_atoms.test_delete_atoms_region_with_compress_flag",
+ "eval.tests.test_delete_atoms.test_delete_atoms_then_recreate",
+ "eval.tests.test_delete_atoms.test_delete_atoms_unknown_group",
+ "eval.tests.test_delete_atoms.test_delete_atoms_unknown_region",
+ "eval.tests.test_delete_atoms_overlap.test_delete_atoms_overlap_below_cutoff_removes_duplicate",
+ "eval.tests.test_delete_atoms_overlap.test_delete_atoms_overlap_cutoff_below_spacing_removes_none",
+ "eval.tests.test_delete_atoms_overlap.test_delete_atoms_overlap_reuses_remaining_survivors",
+ "eval.tests.test_delete_atoms_overlap.test_delete_atoms_overlap_separated_clusters",
+ "eval.tests.test_delete_atoms_overlap.test_delete_atoms_overlap_two_removed_from_cluster_of_three",
+ "eval.tests.test_displace_atoms.test_displace_before_box",
+ "eval.tests.test_displace_atoms.test_displace_move_all_atoms",
+ "eval.tests.test_displace_atoms.test_displace_move_applies_translation",
+ "eval.tests.test_displace_atoms.test_displace_move_out_of_box_remaps",
+ "eval.tests.test_displace_atoms.test_displace_ramp_linearly",
+ "eval.tests.test_displace_atoms.test_displace_random_bad_seed",
+ "eval.tests.test_displace_atoms.test_displace_random_repeatable",
+ "eval.tests.test_displace_atoms.test_displace_random_within_bounds",
+ "eval.tests.test_displace_atoms.test_displace_rotate_about_axis",
+ "eval.tests.test_displace_atoms.test_displace_rotate_bad_axis_2d",
+ "eval.tests.test_lattice.test_lattice_bcc_spacing",
+ "eval.tests.test_lattice.test_lattice_custom_basis_spacing",
+ "eval.tests.test_lattice.test_lattice_fcc_counts_more_atoms",
+ "eval.tests.test_lattice.test_lattice_fcc_spacing",
+ "eval.tests.test_lattice.test_lattice_hcp_spacing",
+ "eval.tests.test_lattice.test_lattice_hex_incompatible_dimension",
+ "eval.tests.test_lattice.test_lattice_hex_is_2d",
+ "eval.tests.test_lattice.test_lattice_invalid_spacing",
+ "eval.tests.test_lattice.test_lattice_noncustom_rejects_a123",
+ "eval.tests.test_lattice.test_lattice_origin_out_of_range",
+ "eval.tests.test_lattice.test_lattice_sc_fills_box_atom_count",
+ "eval.tests.test_lattice.test_lattice_sc_spacing",
+ "eval.tests.test_lattice.test_lattice_scale_scales_fill",
+ "eval.tests.test_molecular_data.test_delete_atoms_mol_yes_deletes_whole_molecule",
+ "eval.tests.test_molecular_data.test_molecular_deletion_then_write_data_consistent",
+ "eval.tests.test_molecular_data.test_molecular_mol_flag_contrast_same_geometry",
+ "eval.tests.test_molecular_data.test_molecular_molecule_ids_survive_write_data",
+ "eval.tests.test_molecular_data.test_molecular_read_data_creates_molecules",
+ "eval.tests.test_molecular_run_comm.test_molecular_create_atoms_run_reports_neighbors",
+ "eval.tests.test_molecular_run_comm.test_molecular_grow_past_ten_thousand",
+ "eval.tests.test_molecular_run_comm.test_molecular_read_data_run_builds_neighbors",
+ "eval.tests.test_molecular_run_comm.test_molecular_run_dump_survivors",
+ "eval.tests.test_molecular_run_comm.test_molecular_run_then_restart_keeps_box",
+ "eval.tests.test_molecular_run_comm.test_molecular_run_with_sort_keeps_bonds",
+ "eval.tests.test_molecular_topology.test_delete_bonds_any_keyword_remove_bond_type",
+ "eval.tests.test_molecular_topology.test_delete_bonds_before_box_rejected",
+ "eval.tests.test_molecular_topology.test_delete_bonds_illegal_style",
+ "eval.tests.test_molecular_topology.test_delete_bonds_multi_turns_off_all_topology",
+ "eval.tests.test_molecular_topology.test_delete_bonds_non_molecular_rejected",
+ "eval.tests.test_molecular_topology.test_delete_bonds_remove_angle_type",
+ "eval.tests.test_molecular_topology.test_delete_bonds_remove_bond_type",
+ "eval.tests.test_molecular_topology.test_delete_bonds_remove_dihedral",
+ "eval.tests.test_molecular_topology.test_delete_bonds_remove_improper",
+ "eval.tests.test_molecular_topology.test_delete_bonds_stats_reports_counts",
+ "eval.tests.test_molecular_topology.test_delete_bonds_turn_off_changes_stats",
+ "eval.tests.test_molecular_topology.test_delete_bonds_undo_after_remove_is_noop",
+ "eval.tests.test_molecular_topology.test_delete_bonds_without_atoms_rejected",
+ "eval.tests.test_molecular_topology.test_delete_bonds_wrong_group_rejected",
+ "eval.tests.test_molecular_topology.test_molecular_full_topology_newton_off",
+ "eval.tests.test_molecular_topology.test_molecular_full_topology_write_back",
+ "eval.tests.test_molecular_topology.test_molecular_type_above_ntypes_rejected",
+ "eval.tests.test_molecular_topology.test_molecular_velocity_round_trip",
+ "eval.tests.test_molecular_topology.test_molecular_zero_atom_id_rejected",
+ "eval.tests.test_molecular_topology.test_molecular_zero_type_rejected",
+ "eval.tests.test_read_data_velocities.test_read_data_no_velocities_section_zeroes_v",
+ "eval.tests.test_read_data_velocities.test_read_data_velocities_different_ids",
+ "eval.tests.test_read_data_velocities.test_read_data_velocities_read_back",
+ "eval.tests.test_region_block_walls.test_region_block_all_inf_axes_covers_box",
+ "eval.tests.test_region_block_walls.test_region_block_edge_lo_equals_box_lower_corner",
+ "eval.tests.test_region_block_walls.test_region_block_edge_triclinic_uses_bounding_box",
+ "eval.tests.test_region_block_walls.test_region_block_inf_edge_covers_full_box",
+ "eval.tests.test_region_block_walls.test_region_block_inf_edge_without_box_errors",
+ "eval.tests.test_region_block_walls.test_region_block_inf_random_create_fills_box",
+ "eval.tests.test_region_block_walls.test_wall_region_exterior_side_out_low_face_pushes_positive",
+ "eval.tests.test_region_block_walls.test_wall_region_exterior_side_out_pushes_away",
+ "eval.tests.test_region_block_walls.test_wall_region_interior_centered_no_contact_when_beyond_cutoff",
+ "eval.tests.test_region_block_walls.test_wall_region_interior_high_x_face_pulls_positive",
+ "eval.tests.test_region_block_walls.test_wall_region_interior_low_x_face_pulls_negative",
+ "eval.tests.test_region_block_walls.test_wall_region_interior_low_y_face_pulls_negative",
+ "eval.tests.test_region_block_walls.test_wall_region_interior_low_z_face_pulls_negative",
+ "eval.tests.test_region_block_walls.test_wall_region_particle_on_surface_errors",
+ "eval.tests.test_region_commands.test_block_region_deletes_atoms_inside",
+ "eval.tests.test_region_commands.test_block_region_single_atom_outside_not_deleted",
+ "eval.tests.test_region_commands.test_cone_region_match_tapered",
+ "eval.tests.test_region_commands.test_cylinder_region_matches_radius_and_axis",
+ "eval.tests.test_region_commands.test_intersect_region_matches_all_subregions",
+ "eval.tests.test_region_commands.test_plane_region_matches_halfspace",
+ "eval.tests.test_region_commands.test_prism_region_triclinic_match",
+ "eval.tests.test_region_commands.test_region_block_reversed_bounds",
+ "eval.tests.test_region_commands.test_region_cone_zero_radius_illegal",
+ "eval.tests.test_region_commands.test_region_cylinder_invalid_axis",
+ "eval.tests.test_region_commands.test_region_delete_unknown_id",
+ "eval.tests.test_region_commands.test_region_executable_prints_banner",
+ "eval.tests.test_region_commands.test_region_intersect_missing_subregion",
+ "eval.tests.test_region_commands.test_region_invalid_style",
+ "eval.tests.test_region_commands.test_region_match_independent_of_probe_order",
+ "eval.tests.test_region_commands.test_region_move_keyword_requires_variable",
+ "eval.tests.test_region_commands.test_region_plane_zero_normal",
+ "eval.tests.test_region_commands.test_region_reuse_id_errors",
+ "eval.tests.test_region_commands.test_region_side_out_bbox_for_create_box",
+ "eval.tests.test_region_commands.test_region_sphere_negative_radius",
+ "eval.tests.test_region_commands.test_region_union_missing_subregion",
+ "eval.tests.test_region_commands.test_region_units_lattice_scales_match",
+ "eval.tests.test_region_commands.test_region_volume_mc_unable_for_random",
+ "eval.tests.test_region_commands.test_region_wedge_needs_full_argument_list",
+ "eval.tests.test_region_commands.test_side_out_inverts_match",
+ "eval.tests.test_region_commands.test_sphere_region_all_inside_small_radius",
+ "eval.tests.test_region_commands.test_sphere_region_center_and_outside",
+ "eval.tests.test_region_commands.test_union_region_matches_any_subregion",
+ "eval.tests.test_region_cone.test_cone_both_zero_radius_rejected",
+ "eval.tests.test_region_cone.test_cone_center_offset",
+ "eval.tests.test_region_cone.test_cone_edge_lower_bound_uses_box",
+ "eval.tests.test_region_cone.test_cone_edge_without_box_rejected",
+ "eval.tests.test_region_cone.test_cone_equal_radii_uniform",
+ "eval.tests.test_region_cone.test_cone_increasing_radius_taper",
+ "eval.tests.test_region_cone.test_cone_invalid_axis_rejected",
+ "eval.tests.test_region_cone.test_cone_negative_radius_rejected",
+ "eval.tests.test_region_cone.test_cone_outside_axial_bounds",
+ "eval.tests.test_region_cone.test_cone_side_out_inverts_match",
+ "eval.tests.test_region_cone.test_cone_x_axis_radius_taper",
+ "eval.tests.test_region_cone.test_cone_y_axis_is_accepted",
+ "eval.tests.test_region_cone.test_cone_z_radius_taper",
+ "eval.tests.test_region_cone.test_cone_zero_length_rejected",
+ "eval.tests.test_region_cone_walls.test_cone_wall_far_inside_cone_feels_no_force",
+ "eval.tests.test_region_cone_walls.test_cone_wall_high_end_plane_pushes_negative_z",
+ "eval.tests.test_region_cone_walls.test_cone_wall_interior_errors_when_atom_outside",
+ "eval.tests.test_region_cone_walls.test_cone_wall_low_end_plane_pushes_positive_z",
+ "eval.tests.test_region_cone_walls.test_cone_wall_on_axis_interior_no_curved_contact",
+ "eval.tests.test_region_cone_walls.test_cone_wall_side_out_curved_exterior_pushes_outward",
+ "eval.tests.test_region_cone_walls.test_cone_wall_side_out_errors_when_atom_inside",
+ "eval.tests.test_region_cone_walls.test_cone_wall_side_out_far_away_no_contact",
+ "eval.tests.test_region_cone_walls.test_cone_wall_side_out_x_axis_exterior",
+ "eval.tests.test_region_cone_walls.test_cone_wall_side_out_y_axis_exterior",
+ "eval.tests.test_region_cone_walls.test_cone_wall_tapered_surface_contact",
+ "eval.tests.test_region_cone_walls.test_cone_wall_x_axis_curved_surface_pulls_toward_axis",
+ "eval.tests.test_region_cone_walls.test_cone_wall_y_axis_curved_surface_pulls_toward_axis",
+ "eval.tests.test_region_cone_walls.test_cone_wall_z_axis_curved_surface_pulls_toward_axis",
+ "eval.tests.test_region_cylinder.test_cylinder_edge_bounds_span_full_box",
+ "eval.tests.test_region_cylinder.test_cylinder_inf_and_edge_accept_after_box",
+ "eval.tests.test_region_cylinder.test_cylinder_inf_requires_box",
+ "eval.tests.test_region_cylinder.test_cylinder_invalid_axis_rejected",
+ "eval.tests.test_region_cylinder.test_cylinder_literal_span_excludes_outside",
+ "eval.tests.test_region_cylinder.test_cylinder_offset_center_displaces_match",
+ "eval.tests.test_region_cylinder.test_cylinder_side_out_removes_outside",
+ "eval.tests.test_region_cylinder.test_cylinder_x_axis_matches_radial_yz",
+ "eval.tests.test_region_cylinder.test_cylinder_y_axis_matches_radial_xz",
+ "eval.tests.test_region_cylinder.test_cylinder_zero_radius_rejected",
+ "eval.tests.test_region_cylinder_options.test_cylinder_variable_radius_negative_evaluation",
+ "eval.tests.test_region_cylinder_options.test_cylinder_variable_radius_respected",
+ "eval.tests.test_region_cylinder_options.test_cylinder_variable_radius_reused_across_regions",
+ "eval.tests.test_region_cylinder_options.test_cylinder_variable_radius_unknown_name",
+ "eval.tests.test_region_cylinder_options.test_cylinder_variable_radius_wrong_style",
+ "eval.tests.test_region_cylinder_options.test_cylinder_variable_radius_x_axis",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_exterior_beyond_cutoff_no_contact",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_exterior_on_or_inside_surface_aborts",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_exterior_radial_pushes_away",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_axial_hi_plane",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_axial_lo_plane",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_beyond_radial_cutoff_no_contact",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_on_axis_no_radial_contact",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_radial_minus_x_pulls_to_axis",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_radial_plus_x_pulls_to_axis",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_x_axis_radial",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_y_axis_axial_lo_plane",
+ "eval.tests.test_region_cylinder_surface.test_cylinder_surface_interior_y_axis_radial",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_before_box_rejected",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_dump_stl_exports_faces",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_dump_stl_rejects_other_region",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_dump_stl_requires_wildcard",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_inside_removes_interior_atom",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_missing_file_rejected",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_move_translates_region",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_non_tet_cell_rejected",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_scale_inflates_region",
+ "eval.tests.test_region_mesh_tet.test_mesh_tet_vertex_outside_box_rejected",
+ "eval.tests.test_region_options.test_region_intersect_cannot_be_dynamic",
+ "eval.tests.test_region_options.test_region_rotate_changes_membership",
+ "eval.tests.test_region_options.test_region_rotate_requires_variable",
+ "eval.tests.test_region_options.test_region_rotate_zero_length_axis",
+ "eval.tests.test_region_options.test_region_seed_volume_limit_accepted",
+ "eval.tests.test_region_options.test_region_side_invalid_value",
+ "eval.tests.test_region_options.test_region_union_cannot_be_dynamic",
+ "eval.tests.test_region_options.test_region_union_rotate_cannot_be_dynamic",
+ "eval.tests.test_region_options.test_region_units_invalid_value",
+ "eval.tests.test_region_prism_surface.test_prism_surface_exterior_beyond_cutoff_no_contact",
+ "eval.tests.test_region_prism_surface.test_prism_surface_exterior_corner_nearest_point",
+ "eval.tests.test_region_prism_surface.test_prism_surface_exterior_golden_dump",
+ "eval.tests.test_region_prism_surface.test_prism_surface_exterior_on_or_inside_surface_aborts",
+ "eval.tests.test_region_prism_surface.test_prism_surface_exterior_plus_x_pushes_away",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_beyond_cutoff_no_contact",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_centre_no_contact",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_minus_x_face",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_minus_z_face",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_plus_x_face",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_plus_y_face",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_plus_z_face",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_tilted_cell_skewed_force",
+ "eval.tests.test_region_prism_surface.test_prism_surface_interior_two_faces_at_corner",
+ "eval.tests.test_region_sphere_extra.test_sphere_constant_negative_radius_rejected",
+ "eval.tests.test_region_sphere_extra.test_sphere_side_out_deletes_exterior_points",
+ "eval.tests.test_region_sphere_extra.test_sphere_side_out_full_box_all_outside",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_exterior_far_outside_no_contact",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_exterior_on_surface_errors",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_exterior_pushes_away",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_interior_beyond_cutoff_no_contact",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_interior_centre_no_contact",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_interior_negative_axis",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_interior_off_axis_all_components",
+ "eval.tests.test_region_sphere_extra.test_sphere_surface_interior_particle_pulled_to_surface",
+ "eval.tests.test_region_sphere_extra.test_sphere_variable_radius_negative_evaluation",
+ "eval.tests.test_region_sphere_extra.test_sphere_variable_radius_radius_zero_exact",
+ "eval.tests.test_region_sphere_extra.test_sphere_variable_radius_respected",
+ "eval.tests.test_region_sphere_extra.test_sphere_variable_radius_reused_across_regions",
+ "eval.tests.test_region_sphere_extra.test_sphere_variable_radius_unknown_name",
+ "eval.tests.test_region_sphere_extra.test_sphere_variable_radius_wrong_style",
+ "eval.tests.test_region_wedge.test_wedge_azimuthal_boundaries",
+ "eval.tests.test_region_wedge.test_wedge_deletes_angular_sector",
+ "eval.tests.test_region_wedge.test_wedge_invalid_axis_rejected",
+ "eval.tests.test_region_wedge.test_wedge_missing_args_rejected",
+ "eval.tests.test_region_wedge.test_wedge_side_out_removes_outside_sector",
+ "eval.tests.test_region_wedge.test_wedge_too_flat_rejected",
+ "eval.tests.test_region_wedge.test_wedge_z_bounds_restrict_match",
+ "eval.tests.test_region_wedge.test_wedge_zero_radius_rejected",
+ "eval.tests.test_region_wedge_extra.test_wedge_axis_x_azimuth_mapping",
+ "eval.tests.test_region_wedge_extra.test_wedge_axis_x_center_offset",
+ "eval.tests.test_region_wedge_extra.test_wedge_axis_y_azimuth_mapping",
+ "eval.tests.test_region_wedge_extra.test_wedge_axis_z_azimuth_mapping",
+ "eval.tests.test_region_wedge_extra.test_wedge_edge_hi_resolves_to_box_hi",
+ "eval.tests.test_region_wedge_extra.test_wedge_inf_lo_extends_axial_range",
+ "eval.tests.test_region_wedge_extra.test_wedge_inf_without_box_errors",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_angle0_plane_contact",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_angle90_plane_contact",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_lower_z_face_contact",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_no_contact_when_far_from_all_surfaces",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_outer_cylinder_contact_xaxis",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_outer_cylinder_contact_yaxis",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_outer_cylinder_contact_zaxis",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_side_out_exterior_unimplemented",
+ "eval.tests.test_region_wedge_extra.test_wedge_wall_upper_z_face_contact",
+ "eval.tests.test_region_wedge_extra.test_wedge_wrong_keyword_after_axis_rejected",
+ "eval.tests.test_region_wedge_extra.test_wedge_wrong_keyword_after_radius_rejected",
+ "eval.tests.test_region_wedge_extra.test_wedge_zero_radius_rejected_by_cylinder_check",
+ "eval.tests.test_replicate.test_replicate_2x2x2_eightfold",
+ "eval.tests.test_replicate.test_replicate_before_box",
+ "eval.tests.test_replicate.test_replicate_grows_box_and_atoms",
+ "eval.tests.test_replicate.test_replicate_multiplies_count",
+ "eval.tests.test_replicate.test_replicate_nonperiodic_dim_warns_but_works",
+ "eval.tests.test_replicate.test_replicate_preserves_positions_in_copies",
+ "eval.tests.test_replicate.test_replicate_requires_offset_keyword",
+ "eval.tests.test_restart_roundtrip.test_atomic_restart_multi_type_and_delete",
+ "eval.tests.test_restart_roundtrip.test_atomic_restart_roundtrip_preserves_state",
+ "eval.tests.test_restart_roundtrip.test_read_restart_missing_file",
+ "eval.tests.test_restart_roundtrip.test_restart_preserves_box_bounds",
+ "eval.tests.test_restart_roundtrip.test_sphere_restart_roundtrip_preserves_properties",
+ "eval.tests.test_restart_roundtrip.test_write_restart_before_box",
+ "eval.tests.test_set.test_set_before_box",
+ "eval.tests.test_set.test_set_charge_requires_charge_style",
+ "eval.tests.test_set.test_set_coordinates",
+ "eval.tests.test_set.test_set_diameter_requires_sphere_style",
+ "eval.tests.test_set.test_set_group_scoped",
+ "eval.tests.test_set.test_set_mass_requires_rmass_style",
+ "eval.tests.test_set.test_set_negative_diameter",
+ "eval.tests.test_set.test_set_region_scoped",
+ "eval.tests.test_set.test_set_sphere_diameter_density",
+ "eval.tests.test_set.test_set_type",
+ "eval.tests.test_set.test_set_type_out_of_range",
+ "eval.tests.test_set.test_set_with_no_atoms",
+ "eval.tests.test_set_extended.test_set_all_velocity_components_dumped",
+ "eval.tests.test_set_extended.test_set_density_and_diameter_on_sphere",
+ "eval.tests.test_set_extended.test_set_density_region_scoped",
+ "eval.tests.test_set_extended.test_set_image_flags_dumped",
+ "eval.tests.test_set_extended.test_set_image_zero_all_flags",
+ "eval.tests.test_set_extended.test_set_invalid_keyword_rejected",
+ "eval.tests.test_set_extended.test_set_mass_on_sphere_style_ok",
+ "eval.tests.test_set_extended.test_set_mol_selector_changes_every_molecule_member",
+ "eval.tests.test_set_extended.test_set_molecule_id_via_mol_keyword",
+ "eval.tests.test_set_extended.test_set_type_scoped_charge_only_affects_type",
+ "eval.tests.test_set_extended.test_set_type_selector_out_of_range_rejected",
+ "eval.tests.test_set_extended.test_set_velocity_component_is_group_scoped",
+ "eval.tests.test_set_extended.test_set_vx_component_reads_back",
+ "eval.tests.test_set_extended.test_set_without_selector_rejected",
+ "eval.tests.test_set_keywords.test_set_add_and_until_options_accepted",
+ "eval.tests.test_set_keywords.test_set_add_unknown_option_rejected",
+ "eval.tests.test_set_keywords.test_set_image_nonzero_on_nonperiodic_dimension",
+ "eval.tests.test_set_keywords.test_set_image_null_keeps_dimension",
+ "eval.tests.test_set_keywords.test_set_omega_components_read_back",
+ "eval.tests.test_set_keywords.test_set_omega_one_component_zero_others_then_all",
+ "eval.tests.test_set_keywords.test_set_omega_requires_style_with_omega_array",
+ "eval.tests.test_set_keywords.test_set_property_atom_missing_fix",
+ "eval.tests.test_set_keywords.test_set_property_atom_requires_prior_run",
+ "eval.tests.test_set_keywords.test_set_property_atom_with_prior_run",
+ "eval.tests.test_set_keywords.test_set_type_fraction_all_converts",
+ "eval.tests.test_set_keywords.test_set_type_fraction_bad_newtype",
+ "eval.tests.test_set_keywords.test_set_type_fraction_bad_seed",
+ "eval.tests.test_set_keywords.test_set_type_fraction_fraction_out_of_range",
+ "eval.tests.test_set_keywords.test_set_type_fraction_zero_converts_none",
+ "eval.tests.test_set_keywords.test_set_until_nonpositive_rejected",
+ "eval.tests.test_set_topology.test_set_angle_dihedral_improper_retipe",
+ "eval.tests.test_set_topology.test_set_bond_retipes_all_selected",
+ "eval.tests.test_set_topology.test_set_bond_sequential_selectors_accumulate",
+ "eval.tests.test_set_topology.test_set_bond_single_endpoint_selects_nothing",
+ "eval.tests.test_set_topology.test_set_bond_type_out_of_range",
+ "eval.tests.test_set_topology.test_set_topology_requires_mapped_atoms",
+ "eval.tests.test_velocity.test_velocity_2d_variable_z_rejected",
+ "eval.tests.test_velocity.test_velocity_bad_group_rejected",
+ "eval.tests.test_velocity.test_velocity_before_box",
+ "eval.tests.test_velocity.test_velocity_invalid_loop_value_rejected",
+ "eval.tests.test_velocity.test_velocity_invalid_option_rejected",
+ "eval.tests.test_velocity.test_velocity_ramp_along_dimension",
+ "eval.tests.test_velocity.test_velocity_ramp_clamps_fraction",
+ "eval.tests.test_velocity.test_velocity_ramp_z_2d_rejected",
+ "eval.tests.test_velocity.test_velocity_set_2d_planar_ok",
+ "eval.tests.test_velocity.test_velocity_set_2d_z_velocity",
+ "eval.tests.test_velocity.test_velocity_set_all_components",
+ "eval.tests.test_velocity.test_velocity_set_atom_variable",
+ "eval.tests.test_velocity.test_velocity_set_equal_variable",
+ "eval.tests.test_velocity.test_velocity_set_is_group_scoped",
+ "eval.tests.test_velocity.test_velocity_set_null_preserves_component",
+ "eval.tests.test_velocity.test_velocity_set_reads_back",
+ "eval.tests.test_velocity.test_velocity_set_sum_yes_adds",
+ "eval.tests.test_velocity.test_velocity_setangular_requires_angmom",
+ "eval.tests.test_velocity.test_velocity_setangular_variable_component",
+ "eval.tests.test_velocity.test_velocity_too_few_args_rejected",
+ "eval.tests.test_velocity.test_velocity_units_lattice_scale",
+ "eval.tests.test_velocity.test_velocity_zero_angular_individual_omega",
+ "eval.tests.test_velocity.test_velocity_zero_linear_accepted",
+ "eval.tests.test_velocity.test_velocity_zero_linear_empty_group_rejected",
+ "eval.tests.test_velocity.test_velocity_zero_linear_removes_com_of_mass"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_first_out_of_range_rejected",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_module03_iter13_exclude_validation.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_pair_both_out_of_range_rejected",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_module03_iter13_exclude_validation.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_second_out_of_range_rejected",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_module03_iter13_exclude_validation.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_zero_type_rejected",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_module03_iter13_exclude_validation.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_module03_iter15_communicate.test_communicate_vel_no_granular_requires_ghost_velocity",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_module03_iter15_communicate.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_additional_behaviors.test_help_entry_point_prints_options[-in filename : read input from file, not stdin (-i)]",
+ "eval.tests.test_additional_behaviors.test_help_entry_point_prints_options[-log none/filename : where to send log output (-l)]",
+ "eval.tests.test_additional_behaviors.test_help_entry_point_prints_options[-nocite : disable writing log.cite file (-nc)]",
+ "eval.tests.test_additional_behaviors.test_help_entry_point_prints_options[-reorder topology-specs : processor reordering (-r)]",
+ "eval.tests.test_additional_behaviors.test_help_entry_point_prints_options[-var varname value : set index style variable (-v)]",
+ "eval.tests.test_additional_behaviors.test_help_entry_point_prints_options[granular tri]",
+ "eval.tests.test_additional_behaviors.test_molecular_special_bonds_changes_rebuilds_run",
+ "eval.tests.test_additional_behaviors.test_neigh_modify_exclude_molecule_needs_molecule_attr",
+ "eval.tests.test_additional_behaviors.test_processors_custom_keyword_rejected_no_file",
+ "eval.tests.test_additional_behaviors.test_processors_invalid_grid_specs[processors 1 1 1 grid custom myfile]",
+ "eval.tests.test_additional_behaviors.test_processors_invalid_grid_specs[processors 1 1 1 grid twolevel 0 1 1 1]",
+ "eval.tests.test_additional_behaviors.test_processors_invalid_grid_specs[processors 1 1 1 grid]",
+ "eval.tests.test_additional_behaviors.test_processors_twolevel_grid_accepted",
+ "eval.tests.test_comm_periodic.test_periodic_granular_comm_styles_complete[multi]",
+ "eval.tests.test_comm_periodic.test_periodic_granular_comm_styles_complete[single]",
+ "eval.tests.test_comm_periodic.test_periodic_granular_longer_run_more_builds",
+ "eval.tests.test_comm_periodic.test_periodic_granular_run_reports_neighbor_statistics",
+ "eval.tests.test_communicate_command.test_communicate_cutoff_option_accepted",
+ "eval.tests.test_communicate_command.test_communicate_cutoff_vs_default_changes_ghost_count",
+ "eval.tests.test_communicate_command.test_communicate_group_option_accepted",
+ "eval.tests.test_communicate_command.test_communicate_rejects_invalid_arguments[communicate bogus-Illegal communicate command]",
+ "eval.tests.test_communicate_command.test_communicate_rejects_invalid_arguments[communicate multi badge-Illegal communicate command]",
+ "eval.tests.test_communicate_command.test_communicate_rejects_invalid_arguments[communicate single cutoff -1.0-Invalid cutoff in communicate command]",
+ "eval.tests.test_communicate_command.test_communicate_rejects_invalid_arguments[communicate single cutoff-Illegal communicate command]",
+ "eval.tests.test_communicate_command.test_communicate_rejects_invalid_arguments[communicate single group nope_group-Invalid group in communicate command]",
+ "eval.tests.test_communicate_command.test_communicate_rejects_invalid_arguments[communicate single vel maybe-Illegal communicate command]",
+ "eval.tests.test_communicate_command.test_communicate_styles_run_to_completion[multi]",
+ "eval.tests.test_communicate_command.test_communicate_styles_run_to_completion[single]",
+ "eval.tests.test_module03_extra_behavior.test_ring_topology_special_block_exact[newton_off]",
+ "eval.tests.test_module03_extra_behavior.test_ring_topology_special_block_exact[newton_on]",
+ "eval.tests.test_module03_extra_behavior.test_special_bonds_weights_change_neighbor_count[all_pairs_kept]",
+ "eval.tests.test_module03_extra_behavior.test_special_bonds_weights_change_neighbor_count[bonded_pairs_excluded]",
+ "eval.tests.test_module03_iter11_triclinic.test_granular_triclinic_bin_newton_off_history_builds",
+ "eval.tests.test_module03_iter11_triclinic.test_granular_triclinic_bin_newton_on_builds",
+ "eval.tests.test_module03_iter11_triclinic.test_granular_triclinic_multi_rejected",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_all_styles_agree_on_neighbor_count",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_atomic_half_builds_exact_neighbors[bin_off]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_atomic_half_builds_exact_neighbors[bin_on]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_atomic_half_builds_exact_neighbors[multi_off]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_atomic_half_builds_exact_neighbors[multi_on]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_atomic_half_builds_exact_neighbors[nsq_off]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_atomic_half_builds_exact_neighbors[nsq_on]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_exclude_type_reduces_neighbor_set[excl_type12]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_exclude_type_reduces_neighbor_set[no_excl]",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_long_run_rebuilds_and_counts_dangerous",
+ "eval.tests.test_module03_iter11_triclinic.test_triclinic_zero_tilt_matches_orthogonal_box",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neigh_modify_delay_not_zero_or_multiple_of_every_rejected[every3_delay2]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neigh_modify_delay_not_zero_or_multiple_of_every_rejected[every4_delay2]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neigh_modify_delay_not_zero_or_multiple_of_every_rejected[every5_delay1]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neigh_modify_delay_valid_multiple_accepted[every1_delay0]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neigh_modify_delay_valid_multiple_accepted[every3_delay0]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neigh_modify_delay_valid_multiple_accepted[every4_delay8]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neighbor_bins_accept_normal_box",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neighbor_bins_reject_box_small_relative_to_cutoff[box002_cut4]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_neighbor_bins_reject_box_small_relative_to_cutoff[box005_cut5]",
+ "eval.tests.test_module03_iter12_rebuild_gating.test_once_no_reenables_rebuilds_after_once_yes",
+ "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_first_out_of_range_rejected",
+ "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_non_numeric_rejected",
+ "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_pair_both_out_of_range_rejected",
+ "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_second_out_of_range_rejected",
+ "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_single_argument_rejected",
+ "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_valid_pair_still_accepted",
+ "eval.tests.test_module03_iter13_exclude_validation.test_exclude_type_zero_type_rejected",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_illegal_forms_rejected[angle_invalid]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_illegal_forms_rejected[coul_missing]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_illegal_forms_rejected[dihedral_invalid]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_illegal_forms_rejected[lj_coul_missing]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_illegal_forms_rejected[lj_missing]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_illegal_forms_rejected[no_args]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_illegal_forms_rejected[unknown_keyword]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_diatomic_keeps_single_12[amber]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_diatomic_keeps_single_12[charmm]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_diatomic_keeps_single_12[dreiding]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_diatomic_keeps_single_12[fene]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_preserves_full_topology_tiers[amber]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_preserves_full_topology_tiers[charmm]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_preserves_full_topology_tiers[dreiding]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_preset_preserves_full_topology_tiers[fene]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_weight_and_toggle_forms_accepted[angle_no]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_weight_and_toggle_forms_accepted[angle_yes]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_weight_and_toggle_forms_accepted[coul_weights]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_weight_and_toggle_forms_accepted[dihedral_no]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_weight_and_toggle_forms_accepted[dihedral_yes]",
+ "eval.tests.test_module03_iter13_special_presets.test_special_bonds_weight_and_toggle_forms_accepted[lj_coul_weights]",
+ "eval.tests.test_module03_iter14_reachability.test_neigh_modify_exclude_molecule_reduces_neighbor_count[excl_all]",
+ "eval.tests.test_module03_iter14_reachability.test_neigh_modify_exclude_molecule_reduces_neighbor_count[excl_molA]",
+ "eval.tests.test_module03_iter14_reachability.test_neigh_modify_exclude_molecule_reduces_neighbor_count[excl_none_reset]",
+ "eval.tests.test_module03_iter14_reachability.test_neigh_modify_exclude_molecule_reduces_neighbor_count[unexcluded]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_file_writes_procmap_output",
+ "eval.tests.test_module03_iter14_reachability.test_processors_grid_numa_requires_cart_map",
+ "eval.tests.test_module03_iter14_reachability.test_processors_map_permutations_all_print_grid[cart]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_map_permutations_all_print_grid[xyz]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_map_permutations_all_print_grid[xzy]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_map_permutations_all_print_grid[yxz]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_map_permutations_all_print_grid[yzx]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_map_permutations_all_print_grid[zxy]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_map_permutations_all_print_grid[zyx]",
+ "eval.tests.test_module03_iter14_reachability.test_processors_part_without_partitions_rejected",
+ "eval.tests.test_module03_iter15_communicate.test_communicate_group_all_still_accepted_with_first",
+ "eval.tests.test_module03_iter15_communicate.test_communicate_group_must_match_first_group[-Communicate group != atom_modify first group]",
+ "eval.tests.test_module03_iter15_communicate.test_communicate_group_must_match_first_group[atom_modify first all-Communicate group != atom_modify first group]",
+ "eval.tests.test_module03_iter15_communicate.test_communicate_vel_no_granular_requires_ghost_velocity",
+ "eval.tests.test_module03_iter15_communicate.test_communicate_vel_no_multi_accepted",
+ "eval.tests.test_module03_iter15_communicate.test_communicate_vel_no_single_accepted",
+ "eval.tests.test_module03_iter15_communicate.test_communicate_vel_no_then_vel_yes_reissue",
+ "eval.tests.test_module03_iter6_scheduling_comm.test_atomic_pbc_comm_decide_route[bin]",
+ "eval.tests.test_module03_iter6_scheduling_comm.test_atomic_pbc_comm_decide_route[nsq]",
+ "eval.tests.test_module03_iter6_scheduling_comm.test_neigh_modify_every_gated_by_distance_check",
+ "eval.tests.test_module03_iter6_scheduling_comm.test_neigh_modify_every_nocheck_rebuilds_every_n_steps[e100]",
+ "eval.tests.test_module03_iter6_scheduling_comm.test_neigh_modify_every_nocheck_rebuilds_every_n_steps[e200]",
+ "eval.tests.test_module03_iter6_scheduling_comm.test_neigh_modify_every_nocheck_rebuilds_every_n_steps[e500]",
+ "eval.tests.test_module03_iter7_covering.test_contact_distance_factor_scales_granular_neighbor_total[f1.5]",
+ "eval.tests.test_module03_iter7_covering.test_contact_distance_factor_scales_granular_neighbor_total[f2.0]",
+ "eval.tests.test_module03_iter7_covering.test_contact_distance_factor_scales_granular_neighbor_total[f3.0]",
+ "eval.tests.test_module03_iter7_covering.test_contact_distance_factor_scales_granular_neighbor_total[neutral]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_group_is_commutative_across_rows",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[all_group123]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[group123]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[group123_all]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[group123_group345]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[group345]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[none]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[type11]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[type12]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[type12_none_reset]",
+ "eval.tests.test_module03_iter7_covering.test_neigh_modify_exclude_reduces_neighbor_set[type22]",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_all_off_completes_neighbor_build",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_group_multi",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_group_scoped_any_flag",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_group_scoped_no_any",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_partial_newton_variants[newton_off]",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_partial_newton_variants[newton_on]",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_partial_topology_build[off_all_multi]",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_partial_topology_build[off_type1]",
+ "eval.tests.test_module03_iter8_bond_partial.test_delete_bonds_partial_topology_build[off_type2]",
+ "eval.tests.test_module03_iter9_delete_atoms.test_delete_atoms_rebuilds_neighbor_list[all]",
+ "eval.tests.test_module03_iter9_delete_atoms.test_delete_atoms_rebuilds_neighbor_list[group_type2]",
+ "eval.tests.test_module03_iter9_delete_atoms.test_delete_atoms_rebuilds_neighbor_list[region_right]",
+ "eval.tests.test_module03_iter9_delete_atoms.test_delete_atoms_unknown_group_rejected",
+ "eval.tests.test_module03_iter9_delete_atoms.test_delete_atoms_unknown_keyword_rejected",
+ "eval.tests.test_module03_rebuild_and_comm_fields.test_boundary_fixed_walls_change_ghost_border",
+ "eval.tests.test_module03_rebuild_and_comm_fields.test_communicate_multi_bordergroup_all",
+ "eval.tests.test_module03_rebuild_and_comm_fields.test_neigh_modify_capacity_bounds_rejected[one_overflow]",
+ "eval.tests.test_module03_rebuild_and_comm_fields.test_neigh_modify_capacity_bounds_rejected[page_too_small]",
+ "eval.tests.test_module03_rebuild_and_comm_fields.test_neigh_modify_check_no_rebuilds_every_step",
+ "eval.tests.test_module03_rebuild_and_comm_fields.test_neigh_modify_once_disables_neighbor_rebuilds",
+ "eval.tests.test_module03_rebuild_and_comm_fields.test_neighbor_larger_skin_expands_neighbor_set",
+ "eval.tests.test_neigh_bond_topologies.test_center14_max_bonds_per_atom",
+ "eval.tests.test_neigh_bond_topologies.test_chain4_special_block_exact",
+ "eval.tests.test_neigh_bond_topologies.test_chain_max_bonds_per_atom_newton_convention",
+ "eval.tests.test_neigh_bond_topologies.test_chain_under_newton_on_off_same_special_counts[newton_off]",
+ "eval.tests.test_neigh_bond_topologies.test_chain_under_newton_on_off_same_special_counts[newton_on]",
+ "eval.tests.test_neigh_bond_topologies.test_multi_tier_special_block_exact[center14]",
+ "eval.tests.test_neigh_bond_topologies.test_multi_tier_special_block_exact[chain6]",
+ "eval.tests.test_neigh_bond_topologies.test_periodic_wrapping_bond_runs_clean",
+ "eval.tests.test_neigh_bond_topology.test_full_topology_counts_match_data_sections",
+ "eval.tests.test_neigh_bond_topology.test_full_topology_run_constructs_all_list_kinds[newton_off]",
+ "eval.tests.test_neigh_bond_topology.test_full_topology_run_constructs_all_list_kinds[newton_on]",
+ "eval.tests.test_neigh_bond_topology.test_single_bond_diatomic_accounting",
+ "eval.tests.test_neigh_bond_topology.test_topology_requires_molecule_attribute",
+ "eval.tests.test_neigh_bond_topology.test_topology_run_multiple_steps_stays_clean",
+ "eval.tests.test_neigh_bond_topology.test_topology_run_special_neighbor_diagnostics_present",
+ "eval.tests.test_neigh_modify.test_neigh_modify_cluster_is_deprecated",
+ "eval.tests.test_neigh_modify.test_neigh_modify_delay0_suppresses_granular_warning",
+ "eval.tests.test_neigh_modify.test_neigh_modify_exclude_existing_group_accepted",
+ "eval.tests.test_neigh_modify.test_neigh_modify_exclude_none_allows_clean_run",
+ "eval.tests.test_neigh_modify.test_neigh_modify_exclude_type_allows_clean_run",
+ "eval.tests.test_neigh_modify.test_neigh_modify_missing_value_rejected",
+ "eval.tests.test_neigh_modify.test_neigh_modify_page_and_one_accepted",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[check-maybe-Illegal neigh_modify command]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[contact_distance_factor-0.5-Illegal neigh_modify command. Please set contact_distance_factor value >=1]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[delay--1-Illegal neigh_modify command]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[every--5-Illegal neigh_modify command]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[every-0-Illegal neigh_modify command]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[exclude-group foo bar-Invalid group ID in neigh_modify command]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[include-nope_group-Invalid group ID in neigh_modify command]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_invalid_value[once-maybe-Illegal neigh_modify command]",
+ "eval.tests.test_neigh_modify.test_neigh_modify_rejects_unknown_keyword",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_accepted_boolean_and_positive[check_no]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_accepted_boolean_and_positive[check_yes]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_accepted_boolean_and_positive[delay_positive]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_accepted_boolean_and_positive[every_positive]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_accepted_boolean_and_positive[once_no]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_accepted_boolean_and_positive[once_yes]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_binsize_positive_zero_negative[negative]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_binsize_positive_zero_negative[positive]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_binsize_positive_zero_negative[zero]",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_exclude_molecule_accepted_on_molecular",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_include_all_is_allowed",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_include_matching_first_group_allowed",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_include_non_first_group_rejected",
+ "eval.tests.test_neigh_modify_valid.test_neigh_modify_multiple_exclusions_accumulate",
+ "eval.tests.test_neigh_stencil_variants.test_dim2_atomic_half_bin_builds_deterministic[default_on]",
+ "eval.tests.test_neigh_stencil_variants.test_dim2_atomic_half_bin_builds_deterministic[off]",
+ "eval.tests.test_neigh_stencil_variants.test_dim2_atomic_multi_builds_deterministic[default_on]",
+ "eval.tests.test_neigh_stencil_variants.test_dim2_atomic_multi_builds_deterministic[off]",
+ "eval.tests.test_neigh_stencil_variants.test_dim3_atomic_half_bin_builds_deterministic[default_on]",
+ "eval.tests.test_neigh_stencil_variants.test_dim3_atomic_half_bin_builds_deterministic[off]",
+ "eval.tests.test_neigh_stencil_variants.test_dim3_atomic_half_bin_builds_deterministic[on]",
+ "eval.tests.test_neigh_stencil_variants.test_dim3_atomic_multi_builds_deterministic[default_on]",
+ "eval.tests.test_neigh_stencil_variants.test_dim3_atomic_multi_builds_deterministic[off]",
+ "eval.tests.test_neigh_stencil_variants.test_dim3_atomic_multi_builds_deterministic[on]",
+ "eval.tests.test_neigh_stencil_variants.test_dim3_reports_at_least_as_many_neighbors_as_dim2",
+ "eval.tests.test_neigh_stencil_variants.test_geometry_separation_changes_neighbor_count",
+ "eval.tests.test_neigh_stencil_variants.test_granular_full_list_single_build_nsq",
+ "eval.tests.test_neigh_stencil_variants.test_granular_newton_on_and_off_both_complete_builds",
+ "eval.tests.test_neigh_stencil_variants.test_granular_newton_on_enumerates_at_least_off",
+ "eval.tests.test_neighbor_command.test_neighbor_command_rejects_invalid_arguments[neighbor -0.1 bin-Illegal neighbor command]",
+ "eval.tests.test_neighbor_command.test_neighbor_command_rejects_invalid_arguments[neighbor 0.3 bin extra-Illegal neighbor command]",
+ "eval.tests.test_neighbor_command.test_neighbor_command_rejects_invalid_arguments[neighbor 0.3 bogus-Illegal neighbor command]",
+ "eval.tests.test_neighbor_command.test_neighbor_command_rejects_invalid_arguments[neighbor 0.3-Illegal neighbor command]",
+ "eval.tests.test_neighbor_command.test_neighbor_multi_newton_on_rejected_for_granular",
+ "eval.tests.test_neighbor_command.test_neighbor_non_numeric_skin_rejected",
+ "eval.tests.test_neighbor_command.test_neighbor_nsq_style_accepted",
+ "eval.tests.test_neighbor_command.test_neighbor_supported_styles_accepted[bin]",
+ "eval.tests.test_neighbor_command.test_neighbor_supported_styles_accepted[multi]",
+ "eval.tests.test_neighbor_command.test_neighbor_supported_styles_accepted[nsq]",
+ "eval.tests.test_neighbor_stats.test_bin_style_reports_same_neighbors_as_nsq",
+ "eval.tests.test_neighbor_stats.test_canonical_run_emits_neighbor_statistics",
+ "eval.tests.test_neighbor_stats.test_larger_skin_yields_more_neighbor_pairs",
+ "eval.tests.test_neighbor_stats.test_neighbor_builds_repeat_with_added_steps",
+ "eval.tests.test_neighbor_stats.test_neighbor_styles_all_run_and_build[bin]",
+ "eval.tests.test_neighbor_stats.test_neighbor_styles_all_run_and_build[multi]",
+ "eval.tests.test_neighbor_stats.test_neighbor_styles_all_run_and_build[nsq]",
+ "eval.tests.test_processors_command.test_processors_after_box_defined_rejected",
+ "eval.tests.test_processors_command.test_processors_grid_printed_for_canonical_run",
+ "eval.tests.test_processors_command.test_processors_map_grid_suboptions_all_agree",
+ "eval.tests.test_processors_command.test_processors_rejects_invalid_args[processors * * -1]",
+ "eval.tests.test_processors_command.test_processors_rejects_invalid_args[processors 1 1 1 grid bogus]",
+ "eval.tests.test_processors_command.test_processors_rejects_invalid_args[processors 1 1 1 map bogus]",
+ "eval.tests.test_processors_command.test_processors_rejects_invalid_args[processors 2]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors * * *]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors 1 1 1 grid numa map cart]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors 1 1 1 grid onelevel]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors 1 1 1 map cart/reorder]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors 1 1 1 map cart]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors 1 1 1 map xyz]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors 1 1 1 map zyx]",
+ "eval.tests.test_processors_command.test_processors_valid_grids_print_grid[processors 1 1 1]",
+ "eval.tests.test_processors_command.test_processors_wrong_count_rejected",
+ "eval.tests.test_special_bonds.test_molecular_run_reaches_special_build",
+ "eval.tests.test_special_bonds.test_special_bonds_invalid_keyword_rejected",
+ "eval.tests.test_special_bonds.test_special_bonds_lj_zero_returns_to_defaults",
+ "eval.tests.test_special_bonds.test_special_bonds_reissue_changes_weights_between_runs",
+ "eval.tests.test_special_bonds.test_special_count_reflected_in_final_statistics",
+ "eval.tests.test_special_bonds.test_special_neutralized_when_all_coeffs_one",
+ "eval.tests.test_special_bonds.test_special_one_two_present_for_bonded_diatomic"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_gran_init_guards.test_gran_neigh_modify_delay_warns_and_runs",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gran_init_guards.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gran_init_guards.test_gran_write_data_no_pair_coeffs_section",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_gran_init_guards.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gran_init_guards.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_write_data_soft_coeffs.test_soft_write_data_decimal_coeff_roundtrips",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_write_data_soft_coeffs.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_write_data_soft_coeffs.test_soft_write_data_emits_single_type_coeff",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_write_data_soft_coeffs.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_write_data_soft_coeffs.test_soft_write_data_wildcard_two_type_coeff_rows",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_write_data_soft_coeffs.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_bond_extra.test_bond_coeffs_never_allocated_rejected",
+ "eval.tests.test_bond_extra.test_bond_read_restart_roundtrip_reruns",
+ "eval.tests.test_bond_extra.test_bond_write_restart_creates_file",
+ "eval.tests.test_bonded.test_bond_coeff_missing_type_aborts_run",
+ "eval.tests.test_bonded.test_bond_coeff_non_numeric_rejected",
+ "eval.tests.test_bonded.test_bond_coeff_surplus_args_rejected",
+ "eval.tests.test_bonded.test_bond_coeff_too_few_args_rejected",
+ "eval.tests.test_bonded.test_bond_coeff_type_out_of_bounds_rejected",
+ "eval.tests.test_bonded.test_bond_coeff_valid_two_types",
+ "eval.tests.test_bonded.test_bond_harmonic_compute_moves_bonded_atoms",
+ "eval.tests.test_bonded.test_bond_harmonic_compute_rises_kinetic_energy",
+ "eval.tests.test_bonded.test_bond_style_hybrid_harmonic_run",
+ "eval.tests.test_bonded.test_bond_write_data_emits_bond_coeffs",
+ "eval.tests.test_force_dispatch.test_angle_style_missing_atom_angle_support",
+ "eval.tests.test_force_dispatch.test_bond_style_missing_atom_bond_support",
+ "eval.tests.test_force_dispatch.test_invalid_style_rejected[angle]",
+ "eval.tests.test_force_dispatch.test_invalid_style_rejected[bond]",
+ "eval.tests.test_force_dispatch.test_invalid_style_rejected[dihedral]",
+ "eval.tests.test_force_dispatch.test_invalid_style_rejected[improper]",
+ "eval.tests.test_force_dispatch.test_invalid_style_rejected[kspace]",
+ "eval.tests.test_force_dispatch.test_invalid_style_rejected[pair]",
+ "eval.tests.test_force_dispatch.test_none_style_accepted[angle]",
+ "eval.tests.test_force_dispatch.test_none_style_accepted[bond]",
+ "eval.tests.test_force_dispatch.test_none_style_accepted[dihedral]",
+ "eval.tests.test_force_dispatch.test_none_style_accepted[improper]",
+ "eval.tests.test_force_dispatch.test_none_style_accepted[kspace]",
+ "eval.tests.test_force_dispatch.test_none_style_accepted[pair]",
+ "eval.tests.test_force_dispatch.test_valid_pair_style_declared_and_coeffs",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_bonded_empty_rejected[angle]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_bonded_empty_rejected[dihedral]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_bonded_empty_rejected[improper]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_concrete_substyle_unbuilt_rejected[angle_charmm]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_concrete_substyle_unbuilt_rejected[angle_harmonic]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_concrete_substyle_unbuilt_rejected[dihedral_charmm]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_concrete_substyle_unbuilt_rejected[dihedral_proper]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_concrete_substyle_unbuilt_rejected[improper_cvff]",
+ "eval.tests.test_force_dispatch_extra.test_hybrid_concrete_substyle_unbuilt_rejected[improper_umbrella]",
+ "eval.tests.test_gran_init_guards.test_gran_coeff_inverted_type_count_zero_rejected",
+ "eval.tests.test_gran_init_guards.test_gran_neigh_modify_delay_warns_and_runs",
+ "eval.tests.test_gran_init_guards.test_gran_no_model_enabled_rejected[bare]",
+ "eval.tests.test_gran_init_guards.test_gran_no_model_enabled_rejected[trailing_model_kw]",
+ "eval.tests.test_gran_init_guards.test_gran_no_model_enabled_rejected[unknown_first_token]",
+ "eval.tests.test_gran_init_guards.test_gran_requires_ghost_velocity",
+ "eval.tests.test_gran_init_guards.test_gran_write_data_no_pair_coeffs_section",
+ "eval.tests.test_gran_models.test_gran_cohesion_compute_run[sjkr2_compute]",
+ "eval.tests.test_gran_models.test_gran_cohesion_compute_run[sjkr_compute]",
+ "eval.tests.test_gran_models.test_gran_cohesion_model_declared[hist_sjkr2]",
+ "eval.tests.test_gran_models.test_gran_cohesion_model_declared[hist_sjkr]",
+ "eval.tests.test_gran_models.test_gran_cohesion_model_declared[sjkr2]",
+ "eval.tests.test_gran_models.test_gran_cohesion_model_declared[sjkr]",
+ "eval.tests.test_gran_models.test_gran_unknown_keyword_order_rejected[damping]",
+ "eval.tests.test_gran_models.test_gran_unknown_keyword_order_rejected[rolling]",
+ "eval.tests.test_gran_normal_rolling.test_gran_hooke_normal_model_run",
+ "eval.tests.test_gran_normal_rolling.test_gran_rolling_friction_epsd2_run",
+ "eval.tests.test_gran_normal_rolling.test_gran_write_restart_creates_file",
+ "eval.tests.test_hybrid_overlay.test_overlay_coeff_invalid_index_rejected",
+ "eval.tests.test_hybrid_overlay.test_overlay_coeff_too_few_args_rejected",
+ "eval.tests.test_hybrid_overlay.test_overlay_coeff_unknown_substyle_rejected",
+ "eval.tests.test_hybrid_overlay.test_overlay_indexed_coeff_missing_index_rejected",
+ "eval.tests.test_hybrid_overlay.test_overlay_indexed_coeff_non_numeric_index_rejected",
+ "eval.tests.test_hybrid_overlay.test_overlay_run_missing_substyle_coeff_aborts",
+ "eval.tests.test_hybrid_overlay.test_overlay_single_substyle_unindexed_coeff_ok",
+ "eval.tests.test_hybrid_overlay.test_overlay_two_soft_substyles_indexed_coeff_ok",
+ "eval.tests.test_hybrid_pair_guards.test_pair_hybrid_per_type_coeff_route_and_run",
+ "eval.tests.test_hybrid_pair_guards.test_pair_hybrid_valid_substyle_not_rejected",
+ "eval.tests.test_hybrid_pair_guards.test_pair_style_hybrid_as_subargument_rejected[hybrid_hybrid_arg]",
+ "eval.tests.test_hybrid_pair_guards.test_pair_style_hybrid_as_subargument_rejected[overlay_hybrid_arg]",
+ "eval.tests.test_hybrid_pair_guards.test_pair_style_hybrid_none_as_subargument_rejected[hybrid_none_arg]",
+ "eval.tests.test_hybrid_pair_guards.test_pair_style_hybrid_none_as_subargument_rejected[overlay_none_arg]",
+ "eval.tests.test_hybrid_run.test_hybrid_compute_run[hybrid]",
+ "eval.tests.test_hybrid_run.test_hybrid_compute_run[hybrid_overlay]",
+ "eval.tests.test_hybrid_styles.test_angle_hybrid_argument_validation[angle_hybrid_arg]",
+ "eval.tests.test_hybrid_styles.test_angle_hybrid_argument_validation[angle_none_arg]",
+ "eval.tests.test_hybrid_styles.test_bond_hybrid_empty_rejected",
+ "eval.tests.test_hybrid_styles.test_bond_hybrid_substyle_validation[bond_hybrid_arg]",
+ "eval.tests.test_hybrid_styles.test_bond_hybrid_substyle_validation[bond_none_arg]",
+ "eval.tests.test_hybrid_styles.test_bond_hybrid_substyle_validation[bond_twice]",
+ "eval.tests.test_hybrid_styles.test_bond_hybrid_unknown_substyle_rejected",
+ "eval.tests.test_hybrid_styles.test_dihedral_hybrid_argument_validation[dihedral_hybrid_arg]",
+ "eval.tests.test_hybrid_styles.test_dihedral_hybrid_argument_validation[dihedral_none_arg]",
+ "eval.tests.test_hybrid_styles.test_empty_hybrid_pair_rejected[hybrid]",
+ "eval.tests.test_hybrid_styles.test_empty_hybrid_pair_rejected[hybrid_overlay]",
+ "eval.tests.test_hybrid_styles.test_improper_hybrid_argument_validation[improper_hybrid_arg]",
+ "eval.tests.test_hybrid_styles.test_improper_hybrid_argument_validation[improper_none_arg]",
+ "eval.tests.test_hybrid_styles.test_pair_hybrid_coeff_invalid_style",
+ "eval.tests.test_hybrid_styles.test_pair_hybrid_duplicate_substyle_registers",
+ "eval.tests.test_hybrid_styles.test_pair_hybrid_overlay_substyle_registers",
+ "eval.tests.test_hybrid_styles.test_pair_hybrid_substyle_registers",
+ "eval.tests.test_kspace.test_kspace_modify_requires_solver[bare]",
+ "eval.tests.test_kspace.test_kspace_modify_requires_solver[kmax]",
+ "eval.tests.test_kspace.test_kspace_modify_requires_solver[slab]",
+ "eval.tests.test_kspace.test_kspace_style_none_accepted",
+ "eval.tests.test_kspace.test_kspace_style_unavailable_rejected[ewald]",
+ "eval.tests.test_kspace.test_kspace_style_unavailable_rejected[msm]",
+ "eval.tests.test_kspace.test_kspace_style_unavailable_rejected[pppm]",
+ "eval.tests.test_kspace.test_kspace_style_unavailable_rejected[pppm_cg]",
+ "eval.tests.test_molecular_special.test_molecular_soft_amber_special_bonds",
+ "eval.tests.test_molecular_special.test_molecular_soft_special_bonds_run",
+ "eval.tests.test_numeric_parse.test_float_parse_accepts_valid[decimal]",
+ "eval.tests.test_numeric_parse.test_float_parse_accepts_valid[integer]",
+ "eval.tests.test_numeric_parse.test_float_parse_accepts_valid[negative]",
+ "eval.tests.test_numeric_parse.test_float_parse_accepts_valid[repeated_dot]",
+ "eval.tests.test_numeric_parse.test_float_parse_accepts_valid[sci_lower]",
+ "eval.tests.test_numeric_parse.test_float_parse_accepts_valid[sci_upper]",
+ "eval.tests.test_numeric_parse.test_float_parse_accepts_valid[zero]",
+ "eval.tests.test_numeric_parse.test_float_parse_in_pair_coeff",
+ "eval.tests.test_numeric_parse.test_float_parse_rejects_non_numeric[alpha]",
+ "eval.tests.test_numeric_parse.test_float_parse_rejects_non_numeric[comma]",
+ "eval.tests.test_numeric_parse.test_float_parse_rejects_non_numeric[single_alpha]",
+ "eval.tests.test_numeric_parse.test_float_parse_rejects_non_numeric[trailing_alpha]",
+ "eval.tests.test_numeric_parse.test_float_parse_rejects_non_numeric[trailing_x]",
+ "eval.tests.test_numeric_parse.test_float_parse_rejects_non_numeric_extra_token",
+ "eval.tests.test_numeric_parse.test_int_parse_accepts_valid[0]",
+ "eval.tests.test_numeric_parse.test_int_parse_accepts_valid[100]",
+ "eval.tests.test_numeric_parse.test_int_parse_accepts_valid[10]",
+ "eval.tests.test_numeric_parse.test_int_parse_accepts_valid[51]",
+ "eval.tests.test_numeric_parse.test_int_parse_rejects_non_integer[alpha2]",
+ "eval.tests.test_numeric_parse.test_int_parse_rejects_non_integer[alpha]",
+ "eval.tests.test_numeric_parse.test_int_parse_rejects_non_integer[float2]",
+ "eval.tests.test_numeric_parse.test_int_parse_rejects_non_integer[float]",
+ "eval.tests.test_numeric_parse.test_int_parse_rejects_non_integer[float_zero]",
+ "eval.tests.test_numeric_parse.test_int_parse_rejects_non_integer[sci]",
+ "eval.tests.test_pair.TestPairWrite.test_pair_write_bad_style",
+ "eval.tests.test_pair.TestPairWrite.test_pair_write_bad_type",
+ "eval.tests.test_pair.TestPairWrite.test_pair_write_invalid_cutoffs",
+ "eval.tests.test_pair.TestPairWrite.test_pair_write_rsq_spacing",
+ "eval.tests.test_pair.TestPairWrite.test_pair_write_too_few_args",
+ "eval.tests.test_pair.TestPairWrite.test_pair_write_valid",
+ "eval.tests.test_pair.test_pair_coeff_arg_count_rejected[missing_values]",
+ "eval.tests.test_pair.test_pair_coeff_arg_count_rejected[too_many]",
+ "eval.tests.test_pair.test_pair_coeff_numeric_order_of_magnitude",
+ "eval.tests.test_pair.test_pair_coeff_type_out_of_range",
+ "eval.tests.test_pair.test_pair_force_integration_run",
+ "eval.tests.test_pair.test_pair_modify_before_pair_style_rejected",
+ "eval.tests.test_pair.test_pair_modify_tail_keyword_rejected",
+ "eval.tests.test_pair.test_pair_modify_unknown_keyword[extra_args]",
+ "eval.tests.test_pair.test_pair_modify_unknown_keyword[single_word_option]",
+ "eval.tests.test_pair.test_pair_modify_unknown_keyword[unknown_option]",
+ "eval.tests.test_pair_compute_dummy.test_pair_compute_no_skips_force",
+ "eval.tests.test_pair_compute_dummy.test_pair_compute_no_still_integrates_box",
+ "eval.tests.test_pair_gran.test_gran_coeff_arity_rejected[extra_values]",
+ "eval.tests.test_pair_gran.test_gran_coeff_arity_rejected[too_many]",
+ "eval.tests.test_pair_gran.test_gran_hertz_tangential_history_positive_run",
+ "eval.tests.test_pair_gran.test_gran_inconsistent_units_rejected",
+ "eval.tests.test_pair_gran.test_gran_requires_atom_type_from_one",
+ "eval.tests.test_pair_gran.test_gran_shear_history_accepts_newton_off",
+ "eval.tests.test_pair_gran.test_gran_shear_history_requires_newton_off",
+ "eval.tests.test_pair_gran.test_gran_type_out_of_range",
+ "eval.tests.test_pair_gran.test_gran_unknown_model_rejected[bad_cohesion]",
+ "eval.tests.test_pair_gran.test_gran_unknown_model_rejected[bad_normal]",
+ "eval.tests.test_pair_gran.test_gran_unknown_model_rejected[bad_tangential]",
+ "eval.tests.test_pair_init_guards.test_pair_coeffs_never_allocated_rejected",
+ "eval.tests.test_pair_init_guards.test_pair_modify_disptable_too_many_bits_rejected",
+ "eval.tests.test_pair_init_guards.test_pair_modify_shift_and_tail_both_yes_rejected",
+ "eval.tests.test_pair_init_guards.test_pair_modify_table_too_many_bits_rejected[1000]",
+ "eval.tests.test_pair_init_guards.test_pair_modify_table_too_many_bits_rejected[40]",
+ "eval.tests.test_pair_init_guards.test_pair_modify_table_zero_disables_table_run",
+ "eval.tests.test_pair_init_guards.test_pair_tail_correction_in_2d_rejected",
+ "eval.tests.test_pair_line_lj.test_line_lj_no_args_rejected",
+ "eval.tests.test_pair_line_lj.test_line_lj_requires_line_atom_style",
+ "eval.tests.test_pair_line_lj.test_line_lj_too_many_args_rejected",
+ "eval.tests.test_pair_mix_distance.test_soft_coeff_inverted_type_count_zero_rejected",
+ "eval.tests.test_pair_mix_distance.test_soft_mix_distance_run_init_distinct_oracle[arithmetic]",
+ "eval.tests.test_pair_mix_distance.test_soft_mix_distance_run_init_distinct_oracle[geometric]",
+ "eval.tests.test_pair_mix_distance.test_soft_mix_distance_run_init_distinct_oracle[sixthpower]",
+ "eval.tests.test_pair_mixing.test_pair_missing_coeff_aborts_init",
+ "eval.tests.test_pair_mixing.test_pair_modify_mix_rule_accepted[arithmetic]",
+ "eval.tests.test_pair_mixing.test_pair_modify_mix_rule_accepted[geometric]",
+ "eval.tests.test_pair_mixing.test_pair_modify_mix_rule_accepted[sixthpower]",
+ "eval.tests.test_pair_mixing.test_pair_two_type_mixed_run",
+ "eval.tests.test_pair_modify_extra.test_pair_modify_mix_invalid_value_rejected",
+ "eval.tests.test_pair_modify_extra.test_pair_modify_shift_invalid_value_rejected",
+ "eval.tests.test_pair_modify_extra.test_pair_modify_table_family_accepted[combined_table_options]",
+ "eval.tests.test_pair_modify_extra.test_pair_modify_table_family_accepted[tabinner]",
+ "eval.tests.test_pair_modify_extra.test_pair_modify_table_family_accepted[tabinner_disp]",
+ "eval.tests.test_pair_modify_extra.test_pair_modify_table_family_accepted[table_disp]",
+ "eval.tests.test_pair_modify_options.test_pair_modify_multiple_valid_keywords",
+ "eval.tests.test_pair_modify_options.test_pair_modify_unknown_keyword_golden",
+ "eval.tests.test_pair_modify_options.test_pair_modify_valid_options_accepted[compute_no]",
+ "eval.tests.test_pair_modify_options.test_pair_modify_valid_options_accepted[shift_no]",
+ "eval.tests.test_pair_modify_options.test_pair_modify_valid_options_accepted[shift_yes]",
+ "eval.tests.test_pair_modify_options.test_pair_modify_valid_options_accepted[table]",
+ "eval.tests.test_pair_modify_options.test_pair_modify_valid_options_accepted[tail_yes]",
+ "eval.tests.test_pair_sbmask_bonded.test_bonded_soft_amber_sbmask_run",
+ "eval.tests.test_pair_sbmask_bonded.test_bonded_soft_nonzero_sbmask_run",
+ "eval.tests.test_pair_soft_settings.test_soft_bad_cutoff_arity_rejected[no_cutoff]",
+ "eval.tests.test_pair_soft_settings.test_soft_bad_cutoff_arity_rejected[two_cutoffs]",
+ "eval.tests.test_pair_soft_settings.test_soft_non_numeric_cutoff_rejected",
+ "eval.tests.test_pair_sph.test_artvisc_compute_run",
+ "eval.tests.test_pair_sph.test_artvisc_settings_invalid_tail_rejected[artvisc_tenscorr_short]",
+ "eval.tests.test_pair_sph.test_artvisc_settings_invalid_tail_rejected[artvisc_then_bogus]",
+ "eval.tests.test_pair_sph.test_artvisc_settings_invalid_tail_rejected[bogus_keyword]",
+ "eval.tests.test_pair_sph.test_artvisc_settings_invalid_tail_rejected[tenscorr_short]",
+ "eval.tests.test_pair_sph.test_sph_bare_command_rejected[artvisc_tenscorr]",
+ "eval.tests.test_pair_sph.test_sph_bare_command_rejected[morris_tenscorr]",
+ "eval.tests.test_pair_sph.test_sph_coeff_with_full_wrong_atomstyle_fails_runtime",
+ "eval.tests.test_pair_sph.test_sph_known_kernel_registers[cubicspline]",
+ "eval.tests.test_pair_sph.test_sph_known_kernel_registers[spiky]",
+ "eval.tests.test_pair_sph.test_sph_known_kernel_registers[wendland]",
+ "eval.tests.test_pair_sph.test_sph_missing_sl_dummy_rejected[artvisc_tenscorr]",
+ "eval.tests.test_pair_sph.test_sph_missing_sl_dummy_rejected[morris_tenscorr]",
+ "eval.tests.test_pair_sph.test_sph_unknown_kernel_rejected[artvisc_tenscorr]",
+ "eval.tests.test_pair_sph.test_sph_unknown_kernel_rejected[morris_tenscorr]",
+ "eval.tests.test_pair_write_extra.test_pair_write_bitmap_golden",
+ "eval.tests.test_pair_write_extra.test_pair_write_inner_cutoff_zero_rejected",
+ "eval.tests.test_pair_write_extra.test_pair_write_inner_equal_outer_rejected",
+ "eval.tests.test_pair_write_extra.test_pair_write_r_spacing_ten_golden",
+ "eval.tests.test_pair_write_extra.test_pair_write_single_enable_zero_rejected",
+ "eval.tests.test_per_atom_energy.test_bond_pair_compute_per_atom_energy_nonzero",
+ "eval.tests.test_per_atom_energy.test_soft_pair_compute_per_atom_energy_nonzero",
+ "eval.tests.test_special_bonds.test_special_bonds_accumulates_lj_overrides",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[angle_invalid]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[angle_missing]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[coul_above_one]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[coul_too_few]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[dihedral_invalid]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[extra_negative]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[lj_above_one]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[lj_negative]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[lj_too_few]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[ljcoul_too_few]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[noargs]",
+ "eval.tests.test_special_bonds.test_special_bonds_illegal[unknown_kw]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[amber]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[angle_no]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[angle_yes]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[charmm]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[coul]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[dihedral_no]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[dihedral_yes]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[dreiding]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[extra]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[fene]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[lj]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[ljcoul_full]",
+ "eval.tests.test_special_bonds.test_special_bonds_legal[ljcoul_partial]",
+ "eval.tests.test_special_bonds.test_special_bonds_value_out_of_range_after_keyword",
+ "eval.tests.test_sph_init_requirement.test_artvisc_requires_density_fix",
+ "eval.tests.test_sph_init_requirement.test_morris_requires_density_fix",
+ "eval.tests.test_sph_init_requirement.test_morris_requires_pressure_fix",
+ "eval.tests.test_sph_missing_property.test_artvisc_missing_speedofsound_rejected",
+ "eval.tests.test_sph_missing_property.test_artvisc_missing_tenscorr_deltap_rejected",
+ "eval.tests.test_sph_missing_property.test_morris_missing_sl_rejected",
+ "eval.tests.test_sph_morris.test_morris_coeff_surplus_rejected[surplus_alpha]",
+ "eval.tests.test_sph_morris.test_morris_coeff_surplus_rejected[surplus_values]",
+ "eval.tests.test_sph_morris.test_morris_coeff_type_out_of_range",
+ "eval.tests.test_sph_morris.test_morris_compute_run[carreau_compute]",
+ "eval.tests.test_sph_morris.test_morris_compute_run[newton_compute]",
+ "eval.tests.test_sph_morris.test_morris_compute_run[power_compute]",
+ "eval.tests.test_sph_morris.test_morris_model_option_too_few_args_rejected[carreau_too_few]",
+ "eval.tests.test_sph_morris.test_morris_model_option_too_few_args_rejected[newton_too_few]",
+ "eval.tests.test_sph_morris.test_morris_model_option_too_few_args_rejected[power_too_few]",
+ "eval.tests.test_sph_morris.test_morris_model_option_too_few_args_rejected[tenscorr_too_few]",
+ "eval.tests.test_sph_morris.test_morris_model_settings_accepted[carreau]",
+ "eval.tests.test_sph_morris.test_morris_model_settings_accepted[carreau_tenscorr]",
+ "eval.tests.test_sph_morris.test_morris_model_settings_accepted[newton]",
+ "eval.tests.test_sph_morris.test_morris_model_settings_accepted[newton_tenscorr]",
+ "eval.tests.test_sph_morris.test_morris_model_settings_accepted[power]",
+ "eval.tests.test_sph_morris.test_morris_model_settings_accepted[power_tenscorr]",
+ "eval.tests.test_sph_morris.test_morris_two_models_rejected",
+ "eval.tests.test_sph_morris.test_morris_unknown_option_rejected",
+ "eval.tests.test_write_data_soft_coeffs.test_soft_write_data_decimal_coeff_roundtrips",
+ "eval.tests.test_write_data_soft_coeffs.test_soft_write_data_emits_single_type_coeff",
+ "eval.tests.test_write_data_soft_coeffs.test_soft_write_data_wildcard_two_type_coeff_rows"
+ ]
+ },
+ "generated_module_05": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_cli.test_banner_reports_compiled_contact_models",
+ "eval.tests.test_cli.test_flag_requires_value",
+ "eval.tests.test_cli.test_help_lists_cohesion_models",
+ "eval.tests.test_cli.test_help_lists_normal_model_names",
+ "eval.tests.test_cli.test_help_lists_rolling_models",
+ "eval.tests.test_cli.test_help_lists_tangential_models",
+ "eval.tests.test_cli.test_help_lists_wall_and_insertion_styles",
+ "eval.tests.test_cli.test_invalid_command_line_flag",
+ "eval.tests.test_cli.test_missing_input_file_errors",
+ "eval.tests.test_contact_easo.test_easo_contact_angle_negative_out_of_range",
+ "eval.tests.test_contact_easo.test_easo_contact_angle_out_of_range",
+ "eval.tests.test_contact_easo.test_easo_density_scales_with_contacts[20-6]",
+ "eval.tests.test_contact_easo.test_easo_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_easo.test_easo_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_easo.test_easo_high_contact_angle_wet_bridge",
+ "eval.tests.test_contact_easo.test_easo_max_separation_below_one",
+ "eval.tests.test_contact_easo.test_easo_missing_contact_angle",
+ "eval.tests.test_contact_easo.test_easo_missing_fluid_viscosity",
+ "eval.tests.test_contact_easo.test_easo_no_wall_wet_collisions",
+ "eval.tests.test_contact_easo.test_easo_settling_creates_wet_contacts",
+ "eval.tests.test_contact_easo.test_easo_tangential_reduce_on",
+ "eval.tests.test_contact_easo.test_easo_varying_liquid_content_stable[0.001]",
+ "eval.tests.test_contact_easo.test_easo_varying_liquid_content_stable[0.05]",
+ "eval.tests.test_contact_easo.test_easo_varying_liquid_content_stable[0.0]",
+ "eval.tests.test_contact_easo.test_easo_varying_liquid_content_stable[0.2]",
+ "eval.tests.test_contact_easo.test_easo_varying_min_separation_stable[0.1]",
+ "eval.tests.test_contact_easo.test_easo_varying_min_separation_stable[0.5]",
+ "eval.tests.test_contact_easo.test_easo_varying_min_separation_stable[1.5]",
+ "eval.tests.test_contact_easo.test_easo_varying_surface_tension_stable[0.01]",
+ "eval.tests.test_contact_easo.test_easo_varying_surface_tension_stable[0.1]",
+ "eval.tests.test_contact_easo.test_easo_varying_surface_tension_stable[1.0]",
+ "eval.tests.test_contact_easo.test_easo_varying_viscosity_stable[0.0001]",
+ "eval.tests.test_contact_easo.test_easo_varying_viscosity_stable[0.001]",
+ "eval.tests.test_contact_easo.test_easo_varying_viscosity_stable[0.1]",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_density_scales[20-5]",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_density_scales[40-15]",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_density_scales[60-25]",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_fix_kc_branch",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_high_surface_energy_cohesion",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_limit_force_on",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_linear_overlap_exponent",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_long_run_cycles_history",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_missing_coefficient_adhesion_stiffness",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_noncohesive_zero_surface_energy",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_nonzero_pull_off_force",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_settling_contacts_and_rotates",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_stiffness_fix_kc",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_stiffness_linear_overlap_exponent",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_stiffness_missing_loading_stiffness",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_stiffness_missing_overlap_exponent",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_stiffness_settling_contacts_and_rotates",
+ "eval.tests.test_contact_edinburgh.test_edinburgh_tangential_damping_on",
+ "eval.tests.test_contact_hertz_energy.test_hertz_dissipated_energy_no_wall_particle_only",
+ "eval.tests.test_contact_hertz_energy.test_hertz_dissipated_energy_wall_registers_and_accumulates",
+ "eval.tests.test_contact_hertz_energy.test_hertz_elastic_and_dissipated_combined",
+ "eval.tests.test_contact_hertz_energy.test_hertz_elastic_potential_density_scales[10-2]",
+ "eval.tests.test_contact_hertz_energy.test_hertz_elastic_potential_density_scales[20-4]",
+ "eval.tests.test_contact_hertz_energy.test_hertz_elastic_potential_density_scales[30-6]",
+ "eval.tests.test_contact_hertz_energy.test_hertz_elastic_potential_no_wall_particle_only",
+ "eval.tests.test_contact_hertz_energy.test_hertz_elastic_potential_wall_registers_and_computes",
+ "eval.tests.test_contact_hertz_energy.test_hertz_heating_and_tracking_contacts_and_tallies",
+ "eval.tests.test_contact_hertz_energy.test_hertz_heating_density_scales[20-4]",
+ "eval.tests.test_contact_hertz_energy.test_hertz_heating_density_scales[30-6]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_dashpot_sweep[0.0-0.0]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_dashpot_sweep[200.0-50.0]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_dashpot_sweep[2000.0-500.0]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_density_scales_with_contacts[20-4]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_density_scales_with_contacts[40-8]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_density_scales_with_contacts[60-15]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_limit_force_top_off",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_long_run_cycles",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_missing_gamma_n",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_missing_gamma_t",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_missing_kn",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_missing_kt",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_no_wall_particle_only_collisions",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_settling_contacts_and_rotates",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_stiffness_scale_sweep[2.e5-1.8e5-12]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_stiffness_scale_sweep[2.e6-1.8e6-8]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_stiffness_scale_sweep[2.e8-1.8e8-3]",
+ "eval.tests.test_contact_hertz_stiffness.test_hertz_stiffness_tangential_damping_off",
+ "eval.tests.test_contact_hooke.test_hooke_contact_settling_contacts_and_rotates",
+ "eval.tests.test_contact_hooke.test_hooke_density_scales_with_contacts[20-5]",
+ "eval.tests.test_contact_hooke.test_hooke_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_hooke.test_hooke_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_hooke.test_hooke_disable_normal_when_bonded_requires_bond",
+ "eval.tests.test_contact_hooke.test_hooke_dissipated_energy_no_wall_particle_only",
+ "eval.tests.test_contact_hooke.test_hooke_dissipated_energy_wall_needs_material_fix",
+ "eval.tests.test_contact_hooke.test_hooke_elastic_and_dissipated_combined",
+ "eval.tests.test_contact_hooke.test_hooke_elastic_potential_density_scales[20-3]",
+ "eval.tests.test_contact_hooke.test_hooke_elastic_potential_density_scales[40-10]",
+ "eval.tests.test_contact_hooke.test_hooke_elastic_potential_density_scales[60-15]",
+ "eval.tests.test_contact_hooke.test_hooke_elastic_potential_no_wall_particle_only",
+ "eval.tests.test_contact_hooke.test_hooke_elastic_potential_wall_registers_and_computes",
+ "eval.tests.test_contact_hooke.test_hooke_heating_normal_hooke",
+ "eval.tests.test_contact_hooke.test_hooke_kt_to_kn_bare_keyword_rejected",
+ "eval.tests.test_contact_hooke.test_hooke_kt_to_kn_user_scales_kt",
+ "eval.tests.test_contact_hooke.test_hooke_limit_force_on_clamps_negative_normal",
+ "eval.tests.test_contact_hooke.test_hooke_long_run_loading_unloading",
+ "eval.tests.test_contact_hooke.test_hooke_missing_characteristic_velocity",
+ "eval.tests.test_contact_hooke.test_hooke_no_wall_internal_collisions",
+ "eval.tests.test_contact_hooke.test_hooke_tangential_damping_off",
+ "eval.tests.test_contact_hooke.test_hooke_tangential_damping_on",
+ "eval.tests.test_contact_hooke.test_hooke_viscous_branch_reachable",
+ "eval.tests.test_contact_hooke.test_hooke_viscous_off_requires_coefficient_restitution",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_charvel_too_small_si",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_missing_characteristic_velocity",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_missing_max_elastic_stiffness",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_more_particles_more_contacts[20-5]",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_more_particles_more_contacts[40-15]",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_more_particles_more_contacts[60-25]",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_no_wall_still_contacts",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_particles_rest_on_wall",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_settling_creates_overlapping_contacts",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_stable_across_restitution[0.40]",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_stable_across_restitution[0.60]",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_stable_across_restitution[0.95]",
+ "eval.tests.test_contact_hooke_hysteresis.test_hooke_hysteresis_strong_adhesion_keeps_pack_held",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_compute_dissipated_energy",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_compute_elastic_potential",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_compute_elastic_potential_particle_only",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_contact_settling",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_density_scales[20-5]",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_density_scales[40-15]",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_density_scales[60-25]",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_dissipated_energy_wall_needs_fix",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_limit_force_clamps_negative_normal",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_missing_kn",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_missing_kt",
+ "eval.tests.test_contact_hooke_stiffness.test_hooke_stiffness_tangential_damping_off",
+ "eval.tests.test_contact_luding.test_luding_adhesion_stiffness_sweep[0.0]",
+ "eval.tests.test_contact_luding.test_luding_adhesion_stiffness_sweep[0.2]",
+ "eval.tests.test_contact_luding.test_luding_adhesion_stiffness_sweep[1.0]",
+ "eval.tests.test_contact_luding.test_luding_density_scales_with_contacts[20-6]",
+ "eval.tests.test_contact_luding.test_luding_density_scales_with_contacts[40-10]",
+ "eval.tests.test_contact_luding.test_luding_density_scales_with_contacts[60-18]",
+ "eval.tests.test_contact_luding.test_luding_load_stiffness_sweep[5.e3-20]",
+ "eval.tests.test_contact_luding.test_luding_load_stiffness_sweep[5.e4-10]",
+ "eval.tests.test_contact_luding.test_luding_load_stiffness_sweep[5.e5-3]",
+ "eval.tests.test_contact_luding.test_luding_long_run_history_cycling",
+ "eval.tests.test_contact_luding.test_luding_missing_adhesion_stiffness",
+ "eval.tests.test_contact_luding.test_luding_missing_load_stiffness",
+ "eval.tests.test_contact_luding.test_luding_missing_plasticity_depth",
+ "eval.tests.test_contact_luding.test_luding_missing_unloading_stiffness",
+ "eval.tests.test_contact_luding.test_luding_no_tangential_damping",
+ "eval.tests.test_contact_luding.test_luding_no_wall_particle_only_collisions",
+ "eval.tests.test_contact_luding.test_luding_noncohesive_limit_force_clamps",
+ "eval.tests.test_contact_luding.test_luding_plasticity_depth_sweep[0.01]",
+ "eval.tests.test_contact_luding.test_luding_plasticity_depth_sweep[0.1]",
+ "eval.tests.test_contact_luding.test_luding_plasticity_depth_sweep[0.4]",
+ "eval.tests.test_contact_luding.test_luding_pull_off_force_holds_pile",
+ "eval.tests.test_contact_luding.test_luding_restitution_sweep[0.2]",
+ "eval.tests.test_contact_luding.test_luding_restitution_sweep[0.5]",
+ "eval.tests.test_contact_luding.test_luding_restitution_sweep[0.8]",
+ "eval.tests.test_contact_luding.test_luding_settling_contacts_and_rotates",
+ "eval.tests.test_contact_luding.test_luding_unloading_ratio_sweep[1.5]",
+ "eval.tests.test_contact_luding.test_luding_unloading_ratio_sweep[2.0]",
+ "eval.tests.test_contact_luding.test_luding_unloading_ratio_sweep[3.0]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_dynamic_friction_sweep[0.0005]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_dynamic_friction_sweep[0.001]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_dynamic_friction_sweep[0.01]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_friction_viscosity_sweep[0.0005]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_friction_viscosity_sweep[0.001]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_friction_viscosity_sweep[0.01]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_heating_tangential_history",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_heating_tracking",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_kT2kcMax_scales_shear[0.05-10]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_kT2kcMax_scales_shear[0.1-10]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_kT2kcMax_scales_shear[1.0-10]",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_long_run_dissipation",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_missing_fluid_viscosity",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_no_wall_particle_collisions",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_settling_shear_and_rotation",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_zero_fluid_viscosity",
+ "eval.tests.test_contact_luding_tangential.test_tan_luding_zero_friction_viscosity",
+ "eval.tests.test_contact_no_history.test_no_history_compute_dissipated_energy_particle_only",
+ "eval.tests.test_contact_no_history.test_no_history_density_scales[20-5]",
+ "eval.tests.test_contact_no_history.test_no_history_density_scales[40-15]",
+ "eval.tests.test_contact_no_history.test_no_history_density_scales[60-25]",
+ "eval.tests.test_contact_no_history.test_no_history_disable_tangential_when_bonded_requires_bond",
+ "eval.tests.test_contact_no_history.test_no_history_dissipated_energy_wall_needs_fix",
+ "eval.tests.test_contact_no_history.test_no_history_friction_coefficient_sweep[0.05]",
+ "eval.tests.test_contact_no_history.test_no_history_friction_coefficient_sweep[0.3]",
+ "eval.tests.test_contact_no_history.test_no_history_friction_coefficient_sweep[0.9]",
+ "eval.tests.test_contact_no_history.test_no_history_friction_settling_contacts_and_rotates",
+ "eval.tests.test_contact_no_history.test_no_history_missing_coefficient_friction",
+ "eval.tests.test_contact_no_history.test_no_history_no_wall_internal_collisions",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_density_scales_with_contacts[20-5]",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_missing_friction_rejected",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_settling_rotates_and_contacts",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_torsion_torque_on_still_rotates",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_varying_friction_coefficient[0.0]",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_varying_friction_coefficient[0.1]",
+ "eval.tests.test_contact_rolling_cdt.test_cdt_varying_friction_coefficient[0.9]",
+ "eval.tests.test_contact_rolling_cdt.test_epsd2_density_scales_with_contacts[20-5]",
+ "eval.tests.test_contact_rolling_cdt.test_epsd2_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_rolling_cdt.test_epsd2_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_rolling_cdt.test_epsd2_settling_rotates_and_contacts",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_density_scales_with_contacts[20-5]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_missing_rolling_stiffness_rejected",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_rolling_stiffness_si_range",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_settling_creates_overlapping_contacts",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_torsion_torque_on_still_rotates",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_varying_rolling_stiffness[1.0]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_varying_rolling_stiffness[2.0]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd3_varying_rolling_stiffness[5.0]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_density_scales_with_contacts[20-5]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_missing_friction_rejected",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_settling_creates_overlapping_contacts",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_torsion_torque_on_still_rotates",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_varying_friction_coefficient[0.0]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_varying_friction_coefficient[0.1]",
+ "eval.tests.test_contact_rolling_epsd.test_epsd_varying_friction_coefficient[0.9]",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_missing_friction",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_missing_rolling_stiffness",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_no_wall_rotates_on_particle_contact",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_rotation_grows_with_density",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_settling_rotates_and_contacts",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_torsion_enabled_still_rotates",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_varying_friction_coefficient[0.0]",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_varying_friction_coefficient[0.1]",
+ "eval.tests.test_contact_rolling_luding.test_rolling_luding_varying_friction_coefficient[0.9]",
+ "eval.tests.test_contact_sjkr.test_sjkr_cohesion_energy_density_sweep[0.0-15]",
+ "eval.tests.test_contact_sjkr.test_sjkr_cohesion_energy_density_sweep[2.e6-15]",
+ "eval.tests.test_contact_sjkr.test_sjkr_cohesion_energy_density_sweep[2.e7-15]",
+ "eval.tests.test_contact_sjkr.test_sjkr_cohesion_energy_density_sweep[50000.0-15]",
+ "eval.tests.test_contact_sjkr.test_sjkr_density_scales_with_contacts[20-6]",
+ "eval.tests.test_contact_sjkr.test_sjkr_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_sjkr.test_sjkr_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_sjkr.test_sjkr_missing_cohesion_energy_density",
+ "eval.tests.test_contact_sjkr.test_sjkr_no_wall_particle_only_contacts",
+ "eval.tests.test_contact_sjkr.test_sjkr_settling_creates_cohesive_contacts",
+ "eval.tests.test_contact_sjkr.test_sjkr_tangential_reduce_on",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_cohesion_energy_density_sweep[0.0-15]",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_cohesion_energy_density_sweep[2.e5-15]",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_cohesion_energy_density_sweep[2.e6-15]",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_cohesion_energy_density_sweep[2.e7-15]",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_density_scales_with_contacts[20-6]",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_missing_cohesion_energy_density",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_no_wall_particle_only_contacts",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_settling_creates_cohesive_contacts",
+ "eval.tests.test_contact_sjkr2.test_sjkr2_tangential_reduce_on",
+ "eval.tests.test_contact_thornton_ning.test_thornton_cohesive_settling_contacts_and_rotates",
+ "eval.tests.test_contact_thornton_ning.test_thornton_density_scales_with_contacts[20-5]",
+ "eval.tests.test_contact_thornton_ning.test_thornton_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_thornton_ning.test_thornton_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_thornton_ning.test_thornton_invalid_yield_stress_rejected",
+ "eval.tests.test_contact_thornton_ning.test_thornton_long_run_cycles_loading_unloading",
+ "eval.tests.test_contact_thornton_ning.test_thornton_missing_surface_energy",
+ "eval.tests.test_contact_thornton_ning.test_thornton_missing_yield_ratio",
+ "eval.tests.test_contact_thornton_ning.test_thornton_noncohesive_surface_energy_zero",
+ "eval.tests.test_contact_thornton_ning.test_thornton_yield_ratio_sweep[0.1]",
+ "eval.tests.test_contact_thornton_ning.test_thornton_yield_ratio_sweep[0.2]",
+ "eval.tests.test_contact_thornton_ning.test_thornton_yield_ratio_sweep[0.35]",
+ "eval.tests.test_contact_thornton_ning.test_thornton_yield_ratio_sweep[0.5]",
+ "eval.tests.test_contact_thornton_ning.test_thornton_yield_ratio_sweep[1.0]",
+ "eval.tests.test_contact_washino.test_washino_contact_angle_negative_out_of_range",
+ "eval.tests.test_contact_washino.test_washino_contact_angle_out_of_range",
+ "eval.tests.test_contact_washino.test_washino_density_scales_with_contacts[20-5]",
+ "eval.tests.test_contact_washino.test_washino_density_scales_with_contacts[40-15]",
+ "eval.tests.test_contact_washino.test_washino_density_scales_with_contacts[60-25]",
+ "eval.tests.test_contact_washino.test_washino_high_contact_angle_stable",
+ "eval.tests.test_contact_washino.test_washino_missing_contact_angle",
+ "eval.tests.test_contact_washino.test_washino_missing_liquid_content",
+ "eval.tests.test_contact_washino.test_washino_no_wall_wet_collisions",
+ "eval.tests.test_contact_washino.test_washino_settling_creates_wet_contacts",
+ "eval.tests.test_contact_washino.test_washino_varying_liquid_content_stable[0.05]",
+ "eval.tests.test_contact_washino.test_washino_varying_liquid_content_stable[0.0]",
+ "eval.tests.test_contact_washino.test_washino_varying_liquid_content_stable[0.2]",
+ "eval.tests.test_contact_washino.test_washino_varying_surface_tension_stable[0.01]",
+ "eval.tests.test_contact_washino.test_washino_varying_surface_tension_stable[0.1]",
+ "eval.tests.test_contact_washino.test_washino_varying_surface_tension_stable[1.0]",
+ "eval.tests.test_granular_wall.test_mesh_wall_requires_meshes",
+ "eval.tests.test_granular_wall.test_multiple_primitive_walls_run",
+ "eval.tests.test_granular_wall.test_plane_wall_styles_run[xplane -0.05]",
+ "eval.tests.test_granular_wall.test_plane_wall_styles_run[yplane -0.05]",
+ "eval.tests.test_granular_wall.test_plane_wall_styles_run[zplane 0.0]",
+ "eval.tests.test_granular_wall.test_primitive_wall_hertz_runs",
+ "eval.tests.test_granular_wall.test_shear_dimension_must_match_plane_axis",
+ "eval.tests.test_granular_wall.test_shear_requires_prior_primitive_wall",
+ "eval.tests.test_granular_wall.test_unsupported_primitive_style_rejected[cone z 0. 0. 0. 0. 0.05 0.06]",
+ "eval.tests.test_granular_wall.test_unsupported_primitive_style_rejected[cylinder x 0. 0. 0.1 0. 0.06]",
+ "eval.tests.test_granular_wall.test_unsupported_primitive_style_rejected[sphere 0. 0. 0. 0.1]",
+ "eval.tests.test_granular_wall.test_wall_bad_primitive_style",
+ "eval.tests.test_granular_wall.test_wall_hooke_requires_characteristic_velocity",
+ "eval.tests.test_granular_wall.test_wall_requires_material_region",
+ "eval.tests.test_granular_wall.test_wall_requires_type_keyword",
+ "eval.tests.test_granular_wall.test_wall_type_out_of_range",
+ "eval.tests.test_granular_wall.test_wall_with_cohesion_model",
+ "eval.tests.test_granular_wall.test_wall_with_full_cohesion_and_rolling",
+ "eval.tests.test_granular_wall.test_wall_without_model_keyword_invalid",
+ "eval.tests.test_insertion.test_inserted_template_query_reports_mass",
+ "eval.tests.test_insertion.test_mass_based_distribution_inserts",
+ "eval.tests.test_insertion.test_multiplesphere_template_requires_nspheres",
+ "eval.tests.test_insertion.test_reusing_insert_fix_id_rejected",
+ "eval.tests.test_models_cohesion.test_easo_rejects_max_separation_below_one",
+ "eval.tests.test_models_cohesion.test_easo_requires_capillary_properties",
+ "eval.tests.test_models_cohesion.test_easo_runs_with_valid_separation",
+ "eval.tests.test_models_cohesion.test_sjkr2_requires_cohesion_energy_density",
+ "eval.tests.test_models_cohesion.test_sjkr2_runs_with_properties",
+ "eval.tests.test_models_cohesion.test_sjkr_requires_cohesion_energy_density",
+ "eval.tests.test_models_cohesion.test_sjkr_runs_with_cohesion_energy_density",
+ "eval.tests.test_models_cohesion.test_washino_requires_base_capillary_properties",
+ "eval.tests.test_models_normal.test_all_model_slots_off_is_invalid",
+ "eval.tests.test_models_normal.test_bad_suboption_value_rejected",
+ "eval.tests.test_models_normal.test_hertz_runs_with_default_properties",
+ "eval.tests.test_models_normal.test_hertz_with_tangential_history_runs",
+ "eval.tests.test_models_normal.test_limit_force_suboption_accepted",
+ "eval.tests.test_models_normal.test_model_keyword_missing_is_invalid",
+ "eval.tests.test_models_normal.test_model_offset_accepted_with_another_model",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[edinburgh-name_string0]",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[edinburgh/stiffness-name_string1]",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[hertz/stiffness-name_string2]",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[hooke-name_string3]",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[hooke/hysteresis-name_string4]",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[hooke/stiffness-name_string5]",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[luding-name_string6]",
+ "eval.tests.test_models_normal.test_normal_model_is_reachable_with_property[thornton_ning-name_string7]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[edinburgh-name_string0]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[edinburgh/stiffness-name_string1]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[hertz/stiffness-name_string2]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[hooke-name_string3]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[hooke/hysteresis-name_string4]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[hooke/stiffness-name_string5]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[luding-name_string6]",
+ "eval.tests.test_models_normal.test_normal_model_missing_required_property[thornton_ning-name_string7]",
+ "eval.tests.test_models_normal.test_tangential_damping_off_accepted",
+ "eval.tests.test_models_normal.test_typo_in_model_name_is_invalid",
+ "eval.tests.test_models_normal.test_unknown_suboption_rejected",
+ "eval.tests.test_models_normal.test_wrong_keyword_order_is_rejected",
+ "eval.tests.test_models_rolling.test_bad_rolling_model_rejected",
+ "eval.tests.test_models_rolling.test_epsd2_runs_with_friction_only",
+ "eval.tests.test_models_rolling.test_epsd3_requires_rolling_stiffness",
+ "eval.tests.test_models_rolling.test_epsd_requires_rolling_viscous_damping",
+ "eval.tests.test_models_rolling.test_epsd_runs_with_full_properties",
+ "eval.tests.test_models_rolling.test_rolling_model_requires_coefficient_rolling_friction[cdt]",
+ "eval.tests.test_models_rolling.test_rolling_model_requires_coefficient_rolling_friction[epsd2]",
+ "eval.tests.test_models_rolling.test_rolling_model_requires_coefficient_rolling_friction[epsd3]",
+ "eval.tests.test_models_rolling.test_rolling_model_requires_coefficient_rolling_friction[epsd]",
+ "eval.tests.test_models_rolling.test_rolling_model_requires_coefficient_rolling_friction[luding]",
+ "eval.tests.test_models_surface.test_default_surface_runs",
+ "eval.tests.test_models_surface.test_surface_default_explicit",
+ "eval.tests.test_models_surface.test_surface_multicontact_requires_multicontact_fix",
+ "eval.tests.test_models_surface.test_surface_superquadric_not_whitelisted",
+ "eval.tests.test_models_surface.test_surface_superquadric_rejected_without_support",
+ "eval.tests.test_models_tangential.test_history_needs_coefficient_friction",
+ "eval.tests.test_models_tangential.test_invalid_tangential_model_rejected",
+ "eval.tests.test_models_tangential.test_no_history_runs",
+ "eval.tests.test_models_tangential.test_tan_luding_requires_fluid_properties",
+ "eval.tests.test_models_tangential.test_tan_luding_runs_with_fluid_properties",
+ "eval.tests.test_multisphere_break.test_multisphere_break_all_bodies_dissolved_run",
+ "eval.tests.test_multisphere_break.test_multisphere_break_bad_trigger_prefix_rejected",
+ "eval.tests.test_multisphere_break.test_multisphere_break_fix_trigger_not_found",
+ "eval.tests.test_multisphere_break.test_multisphere_break_no_break_run_retains_bodies",
+ "eval.tests.test_multisphere_break.test_multisphere_break_only_one_trigger_setting",
+ "eval.tests.test_multisphere_break.test_multisphere_break_option_missing_value_rejected[trigger_threshold-not enough arguments for 'trigger_threshold']",
+ "eval.tests.test_multisphere_break.test_multisphere_break_option_missing_value_rejected[trigger_timeStep-not enough arguments for 'trigger_timeStep']",
+ "eval.tests.test_multisphere_break.test_multisphere_break_requires_trigger_name",
+ "eval.tests.test_multisphere_break.test_multisphere_break_variable_not_atom_style",
+ "eval.tests.test_multisphere_break.test_multisphere_break_varying_cluster_size_retains[2-4]",
+ "eval.tests.test_multisphere_break.test_multisphere_break_varying_cluster_size_retains[3-4]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_bad_token[fflag-nope-on nope off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_bad_token[fflag-x-on off x]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_bad_token[fflag-x-on x off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_bad_token[tflag-x-on off x]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_bad_token[tflag-x-on x off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_bad_token[tflag-x-x on off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[off off off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[off off on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[off on off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[off on on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[on off off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[on off on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[on on off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_all_combos_run[on on on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_fflag_and_tflag_together_run",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_not_enough_arguments[fflag-on off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_not_enough_arguments[tflag-on off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[off off off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[off off on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[off on off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[off on on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[on off off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[on off on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[on on off]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_fix_modify_tflag_all_combos_run[on on on]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_reinsert_counts_existing_bodies[2]",
+ "eval.tests.test_multisphere_fix_modify.test_multisphere_reinsert_counts_existing_bodies[4]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_allow_group_and_set_bad_value_rejected",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_allow_group_and_set_missing_value_rejected",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_allow_heatsource_bad_value_treated_as_no",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_cadd_rho_fluid_banner_matches_golden[0.5-1000.0-ms_cadd_0.5_1000.golden]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_cadd_rho_fluid_banner_matches_golden[0.75-1234.5-ms_cadd_0.75_1234.5.golden]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_cadd_rho_fluid_banner_matches_golden[1.0-7850.0-ms_cadd_1.0_7850.golden]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_cadd_rho_fluid_missing_value_rejected",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_positive_fix_options_accept_and_run[-2-4]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_positive_fix_options_accept_and_run[CAddRhoFluid 0.5 1000.0-2-8]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_positive_fix_options_accept_and_run[allow_group_and_set yes allow_heatsource yes-3-4]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_positive_fix_options_accept_and_run[allow_group_and_set yes-2-4]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_positive_fix_options_accept_and_run[allow_heatsource yes-2-4]",
+ "eval.tests.test_multisphere_fix_options.test_multisphere_unknown_keyword_rejected",
+ "eval.tests.test_multisphere_periodic.test_multisphere_periodic_varying_cluster_count[1]",
+ "eval.tests.test_multisphere_periodic.test_multisphere_periodic_varying_cluster_count[4]",
+ "eval.tests.test_multisphere_periodic.test_multisphere_periodic_wrap_atoms_stay_in_box",
+ "eval.tests.test_multisphere_periodic.test_multisphere_periodic_wrap_retains_all_spheres",
+ "eval.tests.test_multisphere_runtime.test_multisphere_erotate_compute_reports_exact_scalar",
+ "eval.tests.test_multisphere_runtime.test_multisphere_ke_compute_reports_exact_scalar[4]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_ke_compute_reports_exact_scalar[8]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_ke_erotate_together_and_no_nan",
+ "eval.tests.test_multisphere_runtime.test_multisphere_positive_fix_options_run[CAddRhoFluid 0.5 1000.0]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_positive_fix_options_run[allow_group_and_set yes]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_positive_fix_options_run[allow_heatsource yes]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_retention_constant_across_thermo[2-4]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_retention_constant_across_thermo[3-4]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_settle_retains_all_clusters[2-4]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_settle_retains_all_clusters[2-8]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_settle_retains_all_clusters[3-4]",
+ "eval.tests.test_multisphere_runtime.test_multisphere_settle_retains_all_clusters[3-6]",
+ "eval.tests.test_particletemplate.test_multisphere_template_bad_seed",
+ "eval.tests.test_particletemplate.test_multisphere_template_requires_nspheres",
+ "eval.tests.test_particletemplate.test_sphere_template_bad_random_seed",
+ "eval.tests.test_particletemplate.test_sphere_template_good_seed_runs",
+ "eval.tests.test_particletemplate.test_sphere_template_needs_radius",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_cluster_inserts_all_spheres[2-2-4]",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_cluster_inserts_all_spheres[3-2-6]",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_cluster_inserts_all_spheres[4-1-4]",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_different_types_template_inserts",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_insert_aggregate_mass_exact[2-2]",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_insert_aggregate_mass_exact[3-1]",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_missing_clump_file_rejected",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_missing_ntry_keyword",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_nonpositive_radius_rejected",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_nonpositive_scale_rejected",
+ "eval.tests.test_particletemplate_multisphere.test_multisphere_ntry_too_low_is_rejected",
+ "eval.tests.test_properties_lookup.test_find_property_numeric_default_no_lookup",
+ "eval.tests.test_properties_lookup.test_find_property_resolvable_scalar_lookup",
+ "eval.tests.test_properties_lookup.test_find_property_unresolvable_scalar_rejected",
+ "eval.tests.test_properties_lookup.test_find_property_vector_extracted_as_scalar_mismatch",
+ "eval.tests.test_properties_lookup.test_max_type_increase_atom_types_error",
+ "eval.tests.test_property_global.test_characteristic_velocity_too_small_si",
+ "eval.tests.test_property_global.test_duplicate_property_name_rejected",
+ "eval.tests.test_property_global.test_hard_particles_no_explicitly_restricts_high_modulus",
+ "eval.tests.test_property_global.test_hard_particles_rejects_non_yes_no_argument",
+ "eval.tests.test_property_global.test_hard_particles_yes_allows_high_modulus",
+ "eval.tests.test_property_global.test_invalid_property_style_keyword",
+ "eval.tests.test_property_global.test_peratomtype_value_count_mismatch",
+ "eval.tests.test_property_global.test_poissons_ratio_negative",
+ "eval.tests.test_property_global.test_poissons_ratio_out_of_range",
+ "eval.tests.test_property_global.test_restitution_at_lower_boundary_rejected",
+ "eval.tests.test_property_global.test_restitution_out_of_range",
+ "eval.tests.test_property_global.test_restitution_upper_boundary_accepted",
+ "eval.tests.test_property_global.test_scalar_property_accepted",
+ "eval.tests.test_property_global.test_soft_particles_no_explicitly_restricts_low_modulus",
+ "eval.tests.test_property_global.test_soft_particles_rejects_non_yes_no_argument",
+ "eval.tests.test_property_global.test_soft_particles_yes_allows_low_modulus",
+ "eval.tests.test_property_global.test_two_type_pair_matrix_mismatch_multiple_of_ncols",
+ "eval.tests.test_property_global.test_two_type_registry_mismatch_peratomtype_length",
+ "eval.tests.test_property_global.test_two_type_simulation_runs",
+ "eval.tests.test_property_global.test_valid_property_set_runs",
+ "eval.tests.test_property_global.test_valid_two_type_gravity_run",
+ "eval.tests.test_property_global.test_vector_property_style_arity",
+ "eval.tests.test_property_global.test_youngs_modulus_too_small_si",
+ "eval.tests.test_simulation.test_dump_writes_output_file",
+ "eval.tests.test_simulation.test_heavy_contact_sim_two_types",
+ "eval.tests.test_simulation.test_hertz_simulation_runs_and_inserts_expected_count",
+ "eval.tests.test_simulation.test_insertion_count_scales_with_request",
+ "eval.tests.test_simulation.test_log_file_written_to_run_dir",
+ "eval.tests.test_simulation.test_no_particle_source_triggers_material_check_error",
+ "eval.tests.test_simulation.test_script_without_run_parses_cleanly",
+ "eval.tests.test_simulation.test_thermo_step_advances_with_run",
+ "eval.tests.test_superquadric.test_atom_style_superquadric_not_compiled",
+ "eval.tests.test_superquadric.test_help_does_not_advertise_superquadric_atom_style",
+ "eval.tests.test_surface_multicontact.test_multicontact_geometric_prefactor_must_be_positive",
+ "eval.tests.test_surface_multicontact.test_multicontact_requires_granular_pair_style",
+ "eval.tests.test_surface_multicontact.test_multicontact_requires_material_properties",
+ "eval.tests.test_surface_multicontact.test_multicontact_requires_surface_multicontact",
+ "eval.tests.test_surface_multicontact.test_multicontact_rest_is_deterministic_rest[0.002]",
+ "eval.tests.test_surface_multicontact.test_multicontact_rest_is_deterministic_rest[0.004]",
+ "eval.tests.test_surface_multicontact.test_multicontact_rest_is_deterministic_rest[0.008]",
+ "eval.tests.test_surface_multicontact.test_multicontact_single_sphere_settles_to_rest",
+ "eval.tests.test_surface_multicontact.test_multicontact_soft_wall_tuned_prefactor_stable"
+ ]
+ },
+ "generated_module_06": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_addforce.test_addforce_atom_variable_force",
+ "eval.tests.test_addforce.test_addforce_constant_force_applies_to_all_atoms",
+ "eval.tests.test_addforce.test_addforce_energy_variable_must_be_atom_style",
+ "eval.tests.test_addforce.test_addforce_equal_variable_force",
+ "eval.tests.test_addforce.test_addforce_missing_region_errors",
+ "eval.tests.test_addforce.test_addforce_negative_force_accumulates_opposite_sign",
+ "eval.tests.test_addforce.test_addforce_region_limits_force_to_subvolume",
+ "eval.tests.test_addforce.test_addforce_scalar_is_minus_f_dot_x",
+ "eval.tests.test_addforce.test_addforce_too_few_args_errors",
+ "eval.tests.test_addforce.test_addforce_vector_reports_total_preforce_on_group",
+ "eval.tests.test_addforce.test_addforce_z_force_positive_and_negative",
+ "eval.tests.test_ave_euler.test_ave_euler_basevolume_region_mc_weight",
+ "eval.tests.test_ave_euler.test_ave_euler_missing_region_errors",
+ "eval.tests.test_ave_euler.test_ave_euler_parallel_yes_runs",
+ "eval.tests.test_ave_euler.test_ave_euler_requires_atom_radius",
+ "eval.tests.test_ave_euler.test_ave_euler_runs_and_bins_single_atom",
+ "eval.tests.test_ave_euler.test_ave_euler_triclinic_parallel_no_errors",
+ "eval.tests.test_ave_euler.test_ave_euler_unknown_keyword_errors",
+ "eval.tests.test_cli.test_duplicate_compute_id_errors",
+ "eval.tests.test_cli.test_empty_stdin_is_a_clean_empty_run",
+ "eval.tests.test_cli.test_help_prints_style_menu_to_stdout",
+ "eval.tests.test_cli.test_invalid_compute_style_errors",
+ "eval.tests.test_cli.test_invalid_fix_style_errors",
+ "eval.tests.test_cli.test_log_file_written_when_not_none",
+ "eval.tests.test_cli.test_missing_region_reference_errors",
+ "eval.tests.test_cli.test_nonexistent_input_file_errors",
+ "eval.tests.test_cli.test_partition_sum_must_match_world_size",
+ "eval.tests.test_cli.test_run_before_box_errors",
+ "eval.tests.test_compute_additional.test_compute_atom_molecule_global_compute_rejected",
+ "eval.tests.test_compute_additional.test_compute_atom_molecule_missing_compute_errors",
+ "eval.tests.test_compute_additional.test_compute_atom_molecule_no_args_illegal",
+ "eval.tests.test_compute_additional.test_compute_atom_molecule_non_atom_variable_rejected",
+ "eval.tests.test_compute_additional.test_compute_atom_molecule_peratom_array_needs_index",
+ "eval.tests.test_compute_additional.test_compute_atom_molecule_requires_molecular_style",
+ "eval.tests.test_compute_additional.test_compute_displace_atom_misused_in_thermo",
+ "eval.tests.test_compute_additional.test_compute_erotate_multisphere_requires_fix",
+ "eval.tests.test_compute_additional.test_compute_group_group_no_args_illegal",
+ "eval.tests.test_compute_additional.test_compute_ke_multisphere_requires_fix",
+ "eval.tests.test_compute_additional.test_reduce_region_excludes_outside",
+ "eval.tests.test_compute_additional.test_reduce_region_scoped_sum",
+ "eval.tests.test_compute_additional.test_stress_atom_dump_schema",
+ "eval.tests.test_compute_diagnostics.test_compute_com_center_of_mass",
+ "eval.tests.test_compute_diagnostics.test_compute_com_weights_by_mass",
+ "eval.tests.test_compute_diagnostics.test_compute_erotate_sphere_zero_before_insertion",
+ "eval.tests.test_compute_diagnostics.test_compute_error_coord_atom_requires_pair",
+ "eval.tests.test_compute_diagnostics.test_compute_error_gyration_illegal",
+ "eval.tests.test_compute_diagnostics.test_compute_error_property_atom_bad_keyword",
+ "eval.tests.test_compute_diagnostics.test_compute_error_reduce_bad_mode",
+ "eval.tests.test_compute_diagnostics.test_compute_error_reduce_no_mode",
+ "eval.tests.test_compute_diagnostics.test_compute_error_reduce_references_missing_compute",
+ "eval.tests.test_compute_diagnostics.test_compute_error_temp_illegal",
+ "eval.tests.test_compute_diagnostics.test_compute_ke_scales_quadratically_with_velocity",
+ "eval.tests.test_compute_diagnostics.test_compute_ke_total_is_exact",
+ "eval.tests.test_compute_diagnostics.test_compute_ke_zero_velocity_is_zero",
+ "eval.tests.test_compute_diagnostics.test_compute_property_atom_mass_sum_via_reduce",
+ "eval.tests.test_compute_diagnostics.test_compute_reduce_sum_of_ke_per_atom",
+ "eval.tests.test_compute_diagnostics.test_compute_temp_positive_for_moving_atoms",
+ "eval.tests.test_compute_erotate_multisphere.test_ke_and_erotate_multisphere_report_finite_scalars",
+ "eval.tests.test_compute_erotate_multisphere.test_ke_multisphere_nonzero_after_insertion",
+ "eval.tests.test_compute_group_group.test_group_group_bad_keyword_value_errors",
+ "eval.tests.test_compute_group_group.test_group_group_boundary_no_keeps_pair_energy",
+ "eval.tests.test_compute_group_group.test_group_group_missing_args_errors",
+ "eval.tests.test_compute_group_group.test_group_group_missing_group2_errors",
+ "eval.tests.test_compute_group_group.test_group_group_no_pair_style_errors",
+ "eval.tests.test_compute_group_group.test_group_group_pair_no_zeroes_the_pair_energy",
+ "eval.tests.test_compute_group_group.test_group_group_scalar_energy_between_groups",
+ "eval.tests.test_compute_gyration_pressure.test_gyration_scalar_is_radius_of_gyration",
+ "eval.tests.test_compute_gyration_pressure.test_gyration_vector_components_are_deterministic",
+ "eval.tests.test_compute_gyration_pressure.test_pressure_with_moving_atoms_is_positive_ideal_gas",
+ "eval.tests.test_compute_gyration_pressure.test_pressure_without_velocity_is_zero",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[id-3.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[ix-0.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[iy-0.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[iz-0.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[mass-2.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[type-2.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[vx-2.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[vy-0.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[vz-0.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[x-5.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[xs-0.5]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[y-7.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[ys-0.7]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[z-9.0]",
+ "eval.tests.test_compute_property_atom.test_property_atom_atomic_keywords_reduce_sum[zs-0.9]",
+ "eval.tests.test_compute_property_atom.test_property_atom_diamond_on_atomic_errors",
+ "eval.tests.test_compute_property_atom.test_property_atom_granular_diameter_sum",
+ "eval.tests.test_compute_property_atom.test_property_atom_id_is_flag_or_compute",
+ "eval.tests.test_compute_property_atom.test_property_atom_reduce_min_max_ave",
+ "eval.tests.test_compute_property_atom.test_property_atom_two_keywords_head_to_head",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_rdf_calculates_histogram",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_rdf_illegal_argument_error[0 1 1]",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_rdf_illegal_argument_error[4 1 1 extra]",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_rdf_illegal_argument_error[4 1]",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_rdf_illegal_argument_error[]",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_rdf_requires_pair_style",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_slice_rejects_bad_source[1 1 1 c_ke]",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_compute_slice_rejects_bad_source[1 1 1]",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_pair_gran_local_deprecated_keyword_errors",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_pair_gran_local_keyword_selection_runs",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_wall_gran_local_requires_mesh_wall_fix",
+ "eval.tests.test_compute_rdf_slice_granlocal.test_wall_gran_local_runs_with_mesh_wall",
+ "eval.tests.test_compute_reduce_region.test_reduce_region_empty_region_sum_is_zero",
+ "eval.tests.test_compute_reduce_region.test_reduce_region_min_max_ave_modes",
+ "eval.tests.test_compute_reduce_region.test_reduce_region_missing_args_errors",
+ "eval.tests.test_compute_reduce_region.test_reduce_region_missing_region_id_errors",
+ "eval.tests.test_compute_reduce_region.test_reduce_region_sum_vx_limited_by_region",
+ "eval.tests.test_compute_reduce_region.test_reduce_region_sum_x_limited_by_region",
+ "eval.tests.test_compute_reduce_region.test_reduce_region_uses_default_group_all",
+ "eval.tests.test_compute_slice_deep.test_slice_array_source_missing_column_errors",
+ "eval.tests.test_compute_slice_deep.test_slice_array_source_out_of_range_errors",
+ "eval.tests.test_compute_slice_deep.test_slice_array_source_runs_from_compute_rdf",
+ "eval.tests.test_compute_slice_deep.test_slice_fix_vector_source_runs",
+ "eval.tests.test_compute_slice_deep.test_slice_missing_source_ids_error",
+ "eval.tests.test_compute_slice_deep.test_slice_strided_vector_from_compute_com",
+ "eval.tests.test_compute_slice_deep.test_slice_subrange_vector_from_compute_com",
+ "eval.tests.test_compute_slice_deep.test_slice_vector_source_in_range_from_compute_com",
+ "eval.tests.test_compute_slice_deep.test_slice_vector_source_out_of_range_errors",
+ "eval.tests.test_compute_styles.test_centro_atom_illegal_neighbor_errors",
+ "eval.tests.test_compute_styles.test_centro_atom_runs_with_pair_style",
+ "eval.tests.test_compute_styles.test_cluster_atom_runs_with_pair_style",
+ "eval.tests.test_compute_styles.test_cna_atom_runs_with_pair_style",
+ "eval.tests.test_compute_styles.test_com_vector_reports_center_of_mass",
+ "eval.tests.test_compute_styles.test_coord_atom_needs_pair_style",
+ "eval.tests.test_compute_styles.test_coord_atom_runs_with_pair_style",
+ "eval.tests.test_compute_styles.test_gyration_scalar_is_deterministic",
+ "eval.tests.test_compute_styles.test_ke_is_total_of_ke_atom_via_reduce",
+ "eval.tests.test_compute_styles.test_ke_scalar_is_deterministic",
+ "eval.tests.test_compute_styles.test_msd_vector_reported",
+ "eval.tests.test_compute_styles.test_pe_is_zero_for_noninteracting_atoms",
+ "eval.tests.test_compute_styles.test_pressure_compute_reports_zero_with_single_atom",
+ "eval.tests.test_compute_styles.test_pressure_unknown_temp_id_errors",
+ "eval.tests.test_compute_styles.test_property_atom_x_reduce_sum",
+ "eval.tests.test_compute_styles.test_reduce_max_of_ke_atom",
+ "eval.tests.test_compute_styles.test_reduce_missing_compute_errors",
+ "eval.tests.test_compute_styles.test_reduce_on_global_compute_errors",
+ "eval.tests.test_compute_styles.test_temp_compute_scalar_reported",
+ "eval.tests.test_fix_average.test_fix_ave_histo_illegal_bin_count_errors",
+ "eval.tests.test_fix_average.test_fix_ave_histo_low_value_reported_as_missing",
+ "eval.tests.test_fix_average.test_fix_ave_histo_rejects_peratom_value_in_scalar_mode",
+ "eval.tests.test_fix_average.test_fix_ave_histo_writes_bin_table",
+ "eval.tests.test_fix_average.test_fix_ave_time_missing_compute_errors",
+ "eval.tests.test_fix_average.test_fix_ave_time_supports_length_input",
+ "eval.tests.test_fix_average.test_fix_ave_time_writes_time_averaged_scalar_file",
+ "eval.tests.test_fix_average.test_fix_ave_time_zero_nevery_errors",
+ "eval.tests.test_fix_breadth.test_fix_check_timestep_gran_needs_arguments",
+ "eval.tests.test_fix_breadth.test_fix_check_timestep_gran_valid_args_runs",
+ "eval.tests.test_fix_breadth.test_fix_drag_runs_full_granular",
+ "eval.tests.test_fix_breadth.test_fix_nve_noforce_runs_full_granular",
+ "eval.tests.test_fix_breadth.test_fix_planeforce_needs_arguments",
+ "eval.tests.test_fix_breadth.test_fix_setforce_runs_full_granular",
+ "eval.tests.test_fix_breadth.test_fix_store_force_runs_full_granular",
+ "eval.tests.test_fix_breadth.test_fix_viscous_runs_full_granular",
+ "eval.tests.test_fix_integration.test_addforce_illegal_keyword_errors",
+ "eval.tests.test_fix_integration.test_gravity_vector_runs_and_conserves_ke",
+ "eval.tests.test_fix_integration.test_momentum_bad_keyword_errors",
+ "eval.tests.test_fix_integration.test_momentum_valid_runs",
+ "eval.tests.test_fix_integration.test_momentum_zero_nevery_errors",
+ "eval.tests.test_fix_integration.test_nve_limit_absolute_conserves_ke",
+ "eval.tests.test_fix_integration.test_nve_limit_illegal_args_errors",
+ "eval.tests.test_fix_integration.test_nve_limit_radius_ratio_accepted_on_granular",
+ "eval.tests.test_fix_integration.test_nve_limit_unknown_mode_errors",
+ "eval.tests.test_fix_integration.test_nve_noforce_conserves_kinetic_energy",
+ "eval.tests.test_fix_integration.test_setforce_valid_runs",
+ "eval.tests.test_fix_integration.test_spring_couple_different_groups_runs",
+ "eval.tests.test_fix_integration.test_spring_couple_same_group_errors",
+ "eval.tests.test_fix_integration.test_spring_rg_bad_rg0_value_errors",
+ "eval.tests.test_fix_integration.test_spring_rg_explicit_rg0_runs",
+ "eval.tests.test_fix_integration.test_spring_rg_null_rg0_runs_and_conserves_ke",
+ "eval.tests.test_fix_integration.test_spring_rg_too_few_args_errors",
+ "eval.tests.test_fix_integration.test_spring_self_runs",
+ "eval.tests.test_fix_integration.test_spring_tether_runs",
+ "eval.tests.test_fix_integration.test_viscous_runs",
+ "eval.tests.test_fix_planeforce.test_planeforce_diagonal_normal_splits_force",
+ "eval.tests.test_fix_planeforce.test_planeforce_missing_direction_errors",
+ "eval.tests.test_fix_planeforce.test_planeforce_removes_force_along_plane_normal",
+ "eval.tests.test_fix_planeforce.test_planeforce_too_many_args_errors",
+ "eval.tests.test_fix_planeforce.test_planeforce_x_plane_keeps_yz_components",
+ "eval.tests.test_fix_planeforce.test_planeforce_zero_normal_errors",
+ "eval.tests.test_gran_computes.test_compute_contact_atom_gran_counts_contacts",
+ "eval.tests.test_gran_computes.test_compute_erotate_sphere_scalar_is_finite",
+ "eval.tests.test_gran_computes.test_compute_ke_atom_summed_over_gran",
+ "eval.tests.test_insert_stream.test_insert_stream_constructor_errors[fix ins nve_group insert/stream seed 32452867 distributiontemplate pdd1 nparticles 50 vel constant 0. 0. -1. particlerate 100 overlapcheck yes insertion_face gravix extrude_length 0.6-fix gravix all gravity 9.81 vector 0 0 -1\\n-The fix belonging to the id you provided is not of type mesh]",
+ "eval.tests.test_insert_stream.test_insert_stream_constructor_errors[fix ins nve_group insert/stream seed 32452867 distributiontemplate pdd1 nparticles 50 vel constant 0. 0. -1. particlerate 100 overlapcheck yes insertion_face ins_mesh extrude_length -0.5--invalid extrude_length]",
+ "eval.tests.test_insert_stream.test_insert_stream_constructor_errors[fix ins nve_group insert/stream seed 32452867 distributiontemplate pdd1 nparticles 50 vel constant 0. 0. -1. particlerate 100 overlapcheck yes insertion_face ins_mesh ntry_mc 100 extrude_length 0.6--ntry_mc must be > 1000]",
+ "eval.tests.test_insert_stream.test_insert_stream_constructor_errors[fix ins nve_group insert/stream seed 32452867 distributiontemplate pdd1 nparticles 50 vel constant 0. 0. -1. particlerate 100 overlapcheck yes insertion_face ins_mesh save_template maybe extrude_length 0.6--expecting 'yes' or 'no' for 'save_template']",
+ "eval.tests.test_insert_stream.test_insert_stream_constructor_errors[fix ins nve_group insert/stream seed 32452867 distributiontemplate pdd1 nparticles 50 vel constant 0. 0. -1. particlerate 100 overlapcheck yes insertion_face nope extrude_length 0.6--Could not find fix mesh/surface id you provided]",
+ "eval.tests.test_insert_stream.test_insert_stream_constructor_errors[fix ins nve_group insert/stream seed 32452867 distributiontemplate pdd1 nparticles 50 vel constant 0. 0. -1. particlerate 100 overlapcheck yes parallel maybe insertion_face ins_mesh extrude_length 0.6--expecting 'yes' or 'no' for 'parallel']",
+ "eval.tests.test_insert_stream.test_insert_stream_must_define_insertion_face",
+ "eval.tests.test_insert_stream.test_insert_stream_persists_through_integration",
+ "eval.tests.test_insert_stream.test_insert_stream_rejects_nonplanar_face",
+ "eval.tests.test_insert_stream.test_insert_stream_single_insertion_reports_count",
+ "eval.tests.test_insert_stream.test_insert_stream_unknown_keyword_rejected",
+ "eval.tests.test_mesh.test_mesh_surface_cube_stl_two_triangles",
+ "eval.tests.test_mesh.test_mesh_surface_malformed_stl_reports_corrupt",
+ "eval.tests.test_mesh.test_mesh_surface_missing_file_cannot_open",
+ "eval.tests.test_mesh.test_mesh_surface_missing_filename_errors",
+ "eval.tests.test_mesh.test_mesh_surface_move_transform_preserves_geometry_count",
+ "eval.tests.test_mesh.test_mesh_surface_rotate_transform_preserves_geometry_count",
+ "eval.tests.test_mesh.test_mesh_surface_scale_transform_preserves_geometry_count",
+ "eval.tests.test_mesh.test_mesh_surface_stl_ascii_reports_triangle_count",
+ "eval.tests.test_mesh.test_mesh_surface_unclosed_stl_single_triangle",
+ "eval.tests.test_mesh.test_mesh_surface_wrong_extension_errors",
+ "eval.tests.test_mesh.test_region_mesh_tet_loads_vtk_without_error",
+ "eval.tests.test_mesh.test_region_mesh_tet_missing_file_errors",
+ "eval.tests.test_mesh.test_region_mesh_tet_non_tet_vtk_errors",
+ "eval.tests.test_mesh.test_wall_gran_mesh_surface_runs_with_inserted_particles",
+ "eval.tests.test_mesh.test_wall_gran_mismatched_mesh_count_errors",
+ "eval.tests.test_mesh.test_wall_gran_primitive_plane_runs_with_all_particles",
+ "eval.tests.test_mesh_generator.test_generate_argument_validation_errors[generate box -0.1 0.1 0.1 63-generator argument 'xsize' must be > 0]",
+ "eval.tests.test_mesh_generator.test_generate_argument_validation_errors[generate box 0.1 0.1 0.1 0-generator argument 'mask' must be > 0]",
+ "eval.tests.test_mesh_generator.test_generate_argument_validation_errors[generate box 0.1 0.1 0.1 abc-generator argument 'mask' is not a valid value]",
+ "eval.tests.test_mesh_generator.test_generate_argument_validation_errors[generate box 0.1 0.1-generator argument 'zsize' is not a valid value]",
+ "eval.tests.test_mesh_generator.test_generate_argument_validation_errors[generate box 2.0-generator argument 'ysize' is not a valid value]",
+ "eval.tests.test_mesh_generator.test_generate_argument_validation_errors[generate box abc 0.1 0.1 63-generator argument 'xsize' is not a valid value]",
+ "eval.tests.test_mesh_generator.test_generate_element_exclusion_list_read_skips_elements",
+ "eval.tests.test_mesh_generator.test_generate_min_feature_length_requires_exclusion_list",
+ "eval.tests.test_mesh_generator.test_generate_precision_out_of_range_errors",
+ "eval.tests.test_mesh_generator.test_generate_precision_valid_runs",
+ "eval.tests.test_mesh_generator.test_generate_region_filtering_can_empty_mesh",
+ "eval.tests.test_mesh_generator.test_generate_surface_ang_vel_accepted_on_box",
+ "eval.tests.test_mesh_generator.test_generate_surface_vel_accepted_on_box",
+ "eval.tests.test_mesh_generator.test_generate_type_zero_errors",
+ "eval.tests.test_mesh_generator.test_generate_unknown_type_errors",
+ "eval.tests.test_mesh_generator.test_generated_cylinder_as_translating_wall_runs_full_granular",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate box 0.05 0.1 0.2 63-12]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate box 0.1 0.1 0.1 63-12]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate box 0.1 0.1 0.1 7-6]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate cylinder 0.05 0.2 12 3-24]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate cylinder 0.05 0.2 12 63-48]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate cylinder 0.05 0.2 6 63-24]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate disk 0.05 20-20]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate disk 0.05 8-8]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate pipe 0.02 0.05 0.2 8 3-24]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate pipe 0.02 0.05 0.2 8 63-80]",
+ "eval.tests.test_mesh_generator.test_generator_variants_report_exact_triangle_count[generate plane 0.2-2]",
+ "eval.tests.test_mesh_generator.test_surface_ang_vel_too_few_args_errors",
+ "eval.tests.test_mesh_generator.test_surface_ang_vel_zero_axis_errors",
+ "eval.tests.test_mesh_generator.test_surface_vel_too_few_args_errors",
+ "eval.tests.test_mesh_mover.test_fix_move_mesh_dispatcher_errors[fix move all move/mesh mesh cad wobble 1. 1. 1.-True-Mesh movement type not available]",
+ "eval.tests.test_mesh_mover.test_fix_move_mesh_dispatcher_errors[fix move all move/mesh mesh nope linear 0.1 0 0-True-Illegal fix move/mesh command, illegal mesh ID provided]",
+ "eval.tests.test_mesh_mover.test_fix_move_mesh_dispatcher_errors[fix move all move/mesh meshid linear 0.1 0 0-True-Illegal fix move/mesh command, expecting keyword 'mesh']",
+ "eval.tests.test_mesh_mover.test_fix_move_mesh_dispatcher_errors[fix move all move/mesh-True-Illegal fix move/mesh command, you need to specify a mesh]",
+ "eval.tests.test_mesh_mover.test_fix_move_mesh_rejects_mesh_with_surface_velocity",
+ "eval.tests.test_mesh_mover.test_mesh_mover_keyword_errors[riggle origin 0. 0. 0. axis 0. 0. 1. per 0.02 amplitude 30-Expected keyword 'period']",
+ "eval.tests.test_mesh_mover.test_mesh_mover_keyword_errors[riggle point 0. 0. 0. axis 0. 0. 1. period 0.02 amplitude 30-Expected keyword 'origin']",
+ "eval.tests.test_mesh_mover.test_mesh_mover_keyword_errors[rotate origin 0. 0. 0. ax 0. 0. 1. period 0.05-Expected keyword 'axis']",
+ "eval.tests.test_mesh_mover.test_mesh_mover_keyword_errors[wiggle amp -0.1 0. 0. period 0.02-Expected keyword 'amplitude']",
+ "eval.tests.test_mesh_mover.test_mesh_mover_linear_variable_uses_velocity_variables",
+ "eval.tests.test_mesh_mover.test_mesh_mover_linear_wall_integrates_full_granular_run",
+ "eval.tests.test_mesh_mover.test_mesh_mover_not_enough_arguments_errors[linear-Not enough arguments for movement type linear]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_not_enough_arguments_errors[riggle origin 0. 0. 0. axis 0. 0. 1.-Not enough arguments for movement type riggle]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_not_enough_arguments_errors[rotate 0. 0. 0.-Not enough arguments for movement type rotate]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_not_enough_arguments_errors[viblin axis 0. 0. 1-Not enough arguments for movement type viblin]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_not_enough_arguments_errors[wiggle amplitude -0.1 0. 0.-Not enough arguments for movement type wiggle]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_style_success_imports_generated_mesh[linear 0.05 0.0 0.0]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_style_success_imports_generated_mesh[riggle origin 0. 0. 0. axis 0. 0. 1. period 0.02 amplitude 30]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_style_success_imports_generated_mesh[rotate origin 0. 0. 0. axis 0. 0. 1. period 0.05]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_style_success_imports_generated_mesh[viblin axis 0. 0. 1 order 2 amplitude 0.4 0.1 phase 1.3 0 period 0.02 0.04]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_style_success_imports_generated_mesh[vibrot origin 0. 0. 0 axis 0. 0. 1 order 2 amplitude 0.4 0.1 phase 1.3 0 period 0.02 0.04]",
+ "eval.tests.test_mesh_mover.test_mesh_mover_style_success_imports_generated_mesh[wiggle amplitude -0.1 0. 0. period 0.02]",
+ "eval.tests.test_multicontact.test_multicontact_halfspace_runs_full_cycle",
+ "eval.tests.test_multicontact.test_multicontact_limited_prefactor_errors",
+ "eval.tests.test_multicontact.test_multicontact_requires_gran_pair_style",
+ "eval.tests.test_multicontact.test_multicontact_unknown_keyword_errors",
+ "eval.tests.test_multisphere.test_multisphere_on_empty_sphere_box_requires_atom_types",
+ "eval.tests.test_multisphere.test_multisphere_rejects_invalid_keyword",
+ "eval.tests.test_multisphere.test_multisphere_requires_all_masses_set",
+ "eval.tests.test_multisphere.test_multisphere_requires_peratom_mass_and_omega",
+ "eval.tests.test_multisphere_insertion.test_multiplespheres_different_types_requires_file",
+ "eval.tests.test_multisphere_insertion.test_multiplespheres_inline_inserts_expected_atoms",
+ "eval.tests.test_multisphere_insertion.test_multiplespheres_low_ntry_errors",
+ "eval.tests.test_multisphere_insertion.test_multiplespheres_only_one_sphere_errors",
+ "eval.tests.test_multisphere_insertion.test_multisphere_accepts_different_body_count",
+ "eval.tests.test_multisphere_insertion.test_multisphere_clump_file_line_mismatch_errors",
+ "eval.tests.test_multisphere_insertion.test_multisphere_clump_inserts_expected_atoms",
+ "eval.tests.test_multisphere_insertion.test_multisphere_missing_clump_file_errors",
+ "eval.tests.test_multisphere_insertion.test_multisphere_zero_radius_clump_errors",
+ "eval.tests.test_particle_templates.test_insert_pack_missing_distribution_template_errors",
+ "eval.tests.test_particle_templates.test_particledistribution_discrete_missing_template_errors",
+ "eval.tests.test_particle_templates.test_particletemplate_multisphere_bad_sphere_count_errors",
+ "eval.tests.test_particle_templates.test_particletemplate_multisphere_missing_spheres_file_errors",
+ "eval.tests.test_particle_templates.test_particletemplate_sphere_bad_density_direction_errors",
+ "eval.tests.test_particle_templates.test_particletemplate_sphere_bad_radius_style_errors",
+ "eval.tests.test_particle_templates.test_particletemplate_sphere_invalid_seed_errors",
+ "eval.tests.test_property.test_fix_property_atom_scalar_dump_file",
+ "eval.tests.test_property.test_fix_property_atom_too_few_args_errors",
+ "eval.tests.test_property.test_fix_property_atom_unknown_style_errors",
+ "eval.tests.test_property.test_fix_property_atom_vector_style_dump",
+ "eval.tests.test_property.test_fix_property_global_peratomtype_runs",
+ "eval.tests.test_property.test_fix_property_global_scalar_param_runs",
+ "eval.tests.test_property.test_fix_property_global_too_few_args_errors",
+ "eval.tests.test_property_atom_extra.test_property_atom_fy_default_zero",
+ "eval.tests.test_property_atom_extra.test_property_atom_granular_diameter_sum",
+ "eval.tests.test_property_atom_extra.test_property_atom_granular_mass_sum",
+ "eval.tests.test_property_atom_extra.test_property_atom_granular_radius_sum",
+ "eval.tests.test_property_atom_extra.test_property_atom_granular_volume_sum",
+ "eval.tests.test_property_atom_extra.test_property_atom_invalid_keyword_errors",
+ "eval.tests.test_property_atom_extra.test_property_atom_mass_distinct_types",
+ "eval.tests.test_property_atom_extra.test_property_atom_type_sum_is_atom_count",
+ "eval.tests.test_property_atom_extra.test_property_atom_vy_sum_is_exact",
+ "eval.tests.test_property_atom_extra.test_property_atom_vz_sum_is_exact",
+ "eval.tests.test_property_atom_extra.test_property_atom_y_sum_is_exact",
+ "eval.tests.test_property_atom_extra.test_property_atom_z_sum_is_exact",
+ "eval.tests.test_sph.test_sph_2d_kernel_suffix_is_not_a_set_name[cubicspline2D]",
+ "eval.tests.test_sph.test_sph_2d_kernel_suffix_is_not_a_set_name[spiky2D]",
+ "eval.tests.test_sph.test_sph_2d_kernel_suffix_is_not_a_set_name[wendland2D]",
+ "eval.tests.test_sph.test_sph_2d_kernel_unknown_pair_style_errors",
+ "eval.tests.test_sph.test_sph_density_continuity_runs",
+ "eval.tests.test_sph.test_sph_density_summation_runs",
+ "eval.tests.test_sph.test_sph_kernel_valid_set_runs[cubicspline]",
+ "eval.tests.test_sph.test_sph_kernel_valid_set_runs[spiky]",
+ "eval.tests.test_sph.test_sph_kernel_valid_set_runs[wendland]",
+ "eval.tests.test_sph.test_sph_pressure_tait_accepted",
+ "eval.tests.test_sph.test_sph_pressure_unknown_style_errors[Bogus]",
+ "eval.tests.test_sph.test_sph_pressure_unknown_style_errors[cubic]",
+ "eval.tests.test_sph.test_sph_pressure_unknown_style_errors[linear]",
+ "eval.tests.test_sph.test_sph_unknown_kernel_errors",
+ "eval.tests.test_sph.test_sph_velgrad_runs",
+ "eval.tests.test_sph_2d_kernels.test_sph_2d_kernel_mismatched_pair_and_set_rejected",
+ "eval.tests.test_sph_2d_kernels.test_sph_2d_kernel_runs_full_fluid[cubicspline2d]",
+ "eval.tests.test_sph_2d_kernels.test_sph_2d_kernel_runs_full_fluid[spiky2d]",
+ "eval.tests.test_sph_2d_kernels.test_sph_2d_kernel_runs_full_fluid[wendland2d]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_continuity_valid_and_errors[fix dens all sph/density/continuity every 5-1-Illegal fix sph/density/continuity command]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_continuity_valid_and_errors[fix dens all sph/density/continuity sphkernel bogus-1-Illegal fix sph/density/continuity command, unknown sph kernel]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_continuity_valid_and_errors[fix dens all sph/density/continuity sphkernel cubicspline-0-None]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_continuity_valid_and_errors[fix dens all sph/density/continuity-0-None]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_corr_not_enough_args",
+ "eval.tests.test_sph_density_fixes.test_sph_density_corr_style_selection[bogus-1-Unknown style for fix sph/density/corr. Valid styles are 'shepard' or 'mls']",
+ "eval.tests.test_sph_density_fixes.test_sph_density_corr_style_selection[colagrande-1-Unknown style for fix sph/density/corr. Valid styles are 'shepard' or 'mls']",
+ "eval.tests.test_sph_density_fixes.test_sph_density_corr_style_selection[shepard-0-None]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_drift_corr_arg_errors[fix dd all sph/density/drift/corr bogus 1000 coeff 0.5 after 10-Illegal fix sph/density/drift/corr (id dd) command]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_drift_corr_arg_errors[fix dd all sph/density/drift/corr density -5 coeff 0.5 after 10-density <= 0 not allowed]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_drift_corr_arg_errors[fix dd all sph/density/drift/corr density 1000-Illegal fix sph/density/drift/corr command, not enough arguments]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_drift_corr_runs",
+ "eval.tests.test_sph_density_fixes.test_sph_density_summation_valid_and_errors[fix sum all sph/density/summation anykeyword-1-Wrong keyword.]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_summation_valid_and_errors[fix sum all sph/density/summation sphkernel bogus-1-Unknown sph kernel]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_summation_valid_and_errors[fix sum all sph/density/summation sphkernel cubicspline-0-None]",
+ "eval.tests.test_sph_density_fixes.test_sph_density_summation_valid_and_errors[fix sum all sph/density/summation-0-None]",
+ "eval.tests.test_sph_density_fixes.test_sph_integrity_arg_validation_errors[fix integrity all sph/integrity every 0-every <= 0 not allowed]",
+ "eval.tests.test_sph_density_fixes.test_sph_integrity_arg_validation_errors[fix integrity all sph/integrity every 2 bogus-Wrong keyword.]",
+ "eval.tests.test_sph_density_fixes.test_sph_integrity_arg_validation_errors[fix integrity all sph/integrity every 2 sphkernel bogus-Unknown sph kernel]",
+ "eval.tests.test_sph_density_fixes.test_sph_integrity_arg_validation_errors[fix integrity all sph/integrity every 2 sphkernel-Illegal use of keyword 'sphkernel'. Not enough input arguments]",
+ "eval.tests.test_sph_density_fixes.test_sph_integrity_default_runs",
+ "eval.tests.test_sph_density_fixes.test_sph_integrity_every_keyword_runs",
+ "eval.tests.test_sph_density_fixes.test_sph_integrity_sphkernel_keyword_runs",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_absolut_runs_without_wall",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_arg_validation_errors[fix pressure all sph/pressure Tait 60000. -5. 7.-rho0 is zero or negativ]",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_arg_validation_errors[fix pressure all sph/pressure absolut-Not enough arguments for 'absolut' pressure style]",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_arg_validation_errors[fix pressure all sph/pressure relativ 60000.-Not enough arguments for 'relativ' pressure style]",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_arg_validation_errors[fix pressure all sph/pressure-Not enough arguments]",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_relativ_and_tait_p0_run[fix pressure all sph/pressure Tait 60000. 1000. 7. 50.]",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_relativ_and_tait_p0_run[fix pressure all sph/pressure relativ 60000. 1000. 50.]",
+ "eval.tests.test_sph_pressure_styles.test_sph_pressure_relativ_and_tait_p0_run[fix pressure all sph/pressure relativ 60000. 1000.]",
+ "eval.tests.test_structurals.test_centro_atom_symmetric_triangle_is_zero",
+ "eval.tests.test_structurals.test_cluster_atom_connected_max_cluster_is_one",
+ "eval.tests.test_structurals.test_cluster_atom_too_few_args_errors",
+ "eval.tests.test_structurals.test_cna_atom_reduced_sum_is_deterministic",
+ "eval.tests.test_structurals.test_cna_atom_requires_pair_style",
+ "eval.tests.test_structurals.test_compute_rdf_accepts_valid_bin_count",
+ "eval.tests.test_structurals.test_compute_rdf_bad_bin_count_errors",
+ "eval.tests.test_structurals.test_coord_atom_requires_pair_style",
+ "eval.tests.test_structurals.test_pair_gran_local_contact_pair_reported_via_local_dump",
+ "eval.tests.test_structurals.test_pair_gran_local_requires_pair_style",
+ "eval.tests.test_structurals.test_pair_gran_local_unrecognized_keyword_errors",
+ "eval.tests.test_timestep_checks.test_gran_check_timestep_keyword_value_errors[error maybe-expecting 'yes' or 'no' after 'error']",
+ "eval.tests.test_timestep_checks.test_gran_check_timestep_keyword_value_errors[vmax-not enough arguments for 'vmax']",
+ "eval.tests.test_timestep_checks.test_gran_check_timestep_keyword_value_errors[warn maybe-expecting 'yes' or 'no' after 'warn']",
+ "eval.tests.test_timestep_checks.test_gran_check_timestep_not_enough_args_errors",
+ "eval.tests.test_timestep_checks.test_gran_check_timestep_valid_run",
+ "eval.tests.test_timestep_checks.test_sph_check_timestep_not_enough_args_errors",
+ "eval.tests.test_timestep_checks.test_sph_check_timestep_valid_run[fix cts all check/timestep/sph 5 0.5 warn no]",
+ "eval.tests.test_timestep_checks.test_sph_check_timestep_valid_run[fix cts all check/timestep/sph 5 0.5]",
+ "eval.tests.test_timestep_checks.test_sph_check_timestep_wrong_keyword_errors"
+ ]
+ }
+ },
+ "commit": "3d5c00f20519e6bb6eb6756f51f1ad36564e649d",
+ "data_source": "synthetic_programgym",
+ "difficulty": "medium",
+ "difficulty_score": 3.853805859670925,
+ "eval_clean_hashes": [
+ "d3c3bd8e195ea1ab317ab25fa774f732fbc70118f42a653139c0ff4874aa4d7a"
+ ],
+ "input_record": {
+ "commit": "3d5c00f20519e6bb6eb6756f51f1ad36564e649d",
+ "difficulty": "medium",
+ "difficulty_code_lines": 714177,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 714177,
+ "difficulty_runtime_deps": 0,
+ "difficulty_score": 3.853805859670925,
+ "difficulty_test_code_lines": 6490,
+ "full_name": "CFDEMproject/LIGGGHTS-PUBLIC",
+ "input_joern_zip": "cpp_joern/CFDEMproject__LIGGGHTS-PUBLIC.zip",
+ "joern_status": true,
+ "joern_time": 87.23791634407826,
+ "language": "cpp",
+ "pb_match": [
+ {
+ "pb_fullname": "gromacs/gromacs",
+ "rank": 224,
+ "similarity": 0.5063953399658203
+ }
+ ],
+ "repo_path": "cpp/CFDEMproject__LIGGGHTS-PUBLIC",
+ "source": "commit:3d5c00f20519e6bb6eb6756f51f1ad36564e649d",
+ "status": "done",
+ "url": "https://github.com/CFDEMproject/LIGGGHTS-PUBLIC"
+ },
+ "instance_id": "CFDEMproject__LIGGGHTS-PUBLIC.3d5c00f",
+ "language": "cpp",
+ "module_iterations": [
+ {
+ "actual_iterations": 15,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 15,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 15,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 15,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 15,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 15,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 8,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 15,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 13,
+ "branch_name": "generated_module_05",
+ "iteration_limit": 15,
+ "module_index": 5,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 15,
+ "branch_name": "generated_module_06",
+ "iteration_limit": 15,
+ "module_index": 6,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "CFDEMproject/LIGGGHTS-PUBLIC"
+}
diff --git a/cfdemproject--liggghts-public.3d/tests/test.sh b/cfdemproject--liggghts-public.3d/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/cfdemproject--liggghts-public.3d/tests/workspace.tar.gz b/cfdemproject--liggghts-public.3d/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..2f014fef658d4013ca517e1b22cc5706c235b98c
--- /dev/null
+++ b/cfdemproject--liggghts-public.3d/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dce36be4051be38e361ad99ce33894c2c43eca675f1c54c20c07ff8eed253905
+size 2537
diff --git a/cgsdev0--termsand.77cea1c/environment/Dockerfile b/cgsdev0--termsand.77cea1c/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..fcda33d89c241f216a19bcd9780cea160ab7d8c3
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/environment/Dockerfile
@@ -0,0 +1,59 @@
+FROM rust:1.97.1-bookworm
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV CARGO_HOME=/usr/local/cargo
+ENV RUSTUP_HOME=/usr/local/rustup
+ENV RUSTUP_TOOLCHAIN=1.97.1
+ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
+ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+RUN rustup component add llvm-tools-preview --toolchain 1.97.1
+RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
+RUN rustc --version && cargo --version && rustup show active-toolchain
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /tmp/programgym-download.sh
+RUN chmod 755 /tmp/programgym-download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /tmp/programgym-download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/cgsdev0--termsand.77cea1c/environment/download.sh b/cgsdev0--termsand.77cea1c/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..afa097e3bb69e7f3591c5b4d10b084be04858063
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/environment/download.sh
@@ -0,0 +1,643 @@
+#!/usr/bin/env bash
+# download.sh — ProgramGym dependency prefetch for termsand (Rust / Cargo).
+# Sourced via: source /source_ro/download.sh
+#
+# This script ONLY downloads/prefetches Cargo dependencies and prepares the
+# offline vendor cache. It performs no compilation, linking, or testing.
+# The repository's exact Cargo.toml and Cargo.lock are embedded inline below so
+# this file is fully standalone and prefetches the precise locked versions that
+# build.sh needs on the offline build path.
+
+set -euo pipefail
+
+# Work in a fresh temporary directory so nothing leaks into the repo root.
+TMPDIR_FETCH="$(mktemp -d)"
+mkdir -p "${TMPDIR_FETCH}/src"
+
+# Reproduces the repository's Cargo.toml exactly (embedded, not read from the tree).
+cat > "${TMPDIR_FETCH}/Cargo.toml" <<'MANIFEST'
+[package]
+name = "termsand"
+version = "0.2.2"
+edition = "2021"
+description = "Falling sand simulation for tmux"
+license = "MIT"
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+anstyle-parse = "0.2.5"
+clap = { version = "4.5.15", features = ["derive"] }
+console = "0.16.1"
+crossterm = "0.28.1"
+rand = "0.8.5"
+term_size = "0.3.2"
+unicode-width = "0.2.2"
+MANIFEST
+
+# Stub source so the bin target resolves; only used for dependency resolution.
+cat > "${TMPDIR_FETCH}/src/main.rs" <<'STUB'
+fn main() {}
+STUB
+
+# Reproduces the repository's Cargo.lock exactly (embedded, not read from the tree).
+cat > "${TMPDIR_FETCH}/Cargo.lock" <<'LOCK'
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "anstream"
+version = "0.6.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"
+dependencies = [
+ "anstyle",
+ "anstyle-parse",
+ "anstyle-query",
+ "anstyle-wincon",
+ "colorchoice",
+ "is_terminal_polyfill",
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle"
+version = "1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
+
+[[package]]
+name = "anstyle-parse"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"
+dependencies = [
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle-query"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"
+dependencies = [
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "anstyle-wincon"
+version = "3.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"
+dependencies = [
+ "anstyle",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
+
+[[package]]
+name = "bitflags"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "clap"
+version = "4.5.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11d8838454fda655dafd3accb2b6e2bea645b9e4078abe84a22ceb947235c5cc"
+dependencies = [
+ "clap_builder",
+ "clap_derive",
+]
+
+[[package]]
+name = "clap_builder"
+version = "4.5.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "216aec2b177652e3846684cbfe25c9964d18ec45234f0f5da5157b207ed1aab6"
+dependencies = [
+ "anstream",
+ "anstyle",
+ "clap_lex",
+ "strsim",
+]
+
+[[package]]
+name = "clap_derive"
+version = "4.5.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "clap_lex"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
+
+[[package]]
+name = "colorchoice"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
+
+[[package]]
+name = "console"
+version = "0.16.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b430743a6eb14e9764d4260d4c0d8123087d504eeb9c48f2b2a5e810dd369df4"
+dependencies = [
+ "encode_unicode",
+ "libc",
+ "once_cell",
+ "unicode-width",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "crossterm"
+version = "0.28.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
+dependencies = [
+ "bitflags",
+ "crossterm_winapi",
+ "mio",
+ "parking_lot",
+ "rustix",
+ "signal-hook",
+ "signal-hook-mio",
+ "winapi",
+]
+
+[[package]]
+name = "crossterm_winapi"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "encode_unicode"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
+
+[[package]]
+name = "errno"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
+dependencies = [
+ "libc",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasi",
+]
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "hermit-abi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
+
+[[package]]
+name = "is_terminal_polyfill"
+version = "1.70.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
+
+[[package]]
+name = "libc"
+version = "0.2.155"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
+
+[[package]]
+name = "lock_api"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
+dependencies = [
+ "autocfg",
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
+
+[[package]]
+name = "mio"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
+dependencies = [
+ "hermit-abi",
+ "libc",
+ "log",
+ "wasi",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-targets",
+]
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
+dependencies = [
+ "zerocopy",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.86"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rand"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
+dependencies = [
+ "libc",
+ "rand_chacha",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
+dependencies = [
+ "getrandom",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
+dependencies = [
+ "bitflags",
+]
+
+[[package]]
+name = "rustix"
+version = "0.38.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"
+dependencies = [
+ "bitflags",
+ "errno",
+ "libc",
+ "linux-raw-sys",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "signal-hook"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
+dependencies = [
+ "libc",
+ "signal-hook-registry",
+]
+
+[[package]]
+name = "signal-hook-mio"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd"
+dependencies = [
+ "libc",
+ "mio",
+ "signal-hook",
+]
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "syn"
+version = "2.0.87"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "term_size"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9"
+dependencies = [
+ "libc",
+ "winapi",
+]
+
+[[package]]
+name = "termsand"
+version = "0.2.2"
+dependencies = [
+ "anstyle-parse",
+ "clap",
+ "console",
+ "crossterm",
+ "rand",
+ "term_size",
+ "unicode-width",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
+
+[[package]]
+name = "unicode-width"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
+
+[[package]]
+name = "utf8parse"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+
+[[package]]
+name = "wasi"
+version = "0.11.0+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-sys"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
+dependencies = [
+ "windows-targets",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm",
+ "windows_aarch64_msvc",
+ "windows_i686_gnu",
+ "windows_i686_gnullvm",
+ "windows_i686_msvc",
+ "windows_x86_64_gnu",
+ "windows_x86_64_gnullvm",
+ "windows_x86_64_msvc",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "zerocopy"
+version = "0.7.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
+dependencies = [
+ "byteorder",
+ "zerocopy-derive",
+]
+
+[[package]]
+name = "zerocopy-derive"
+version = "0.7.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+LOCK
+
+# Export the generated manifest location for reference.
+export TERMSAND_GENERATED_MANIFEST="${TMPDIR_FETCH}/Cargo.toml"
+
+# Prefetch the exact locked dependency graph. --locked enforces that only the
+# pinned versions in the embedded Cargo.lock are fetched, matching the offline
+# build step. Never run bare `cargo fetch` from the repo root.
+cargo fetch --locked --manifest-path "${TMPDIR_FETCH}/Cargo.toml"
diff --git a/cgsdev0--termsand.77cea1c/environment/executable b/cgsdev0--termsand.77cea1c/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..3f41696eb5ff724cc6ad5abea8943fa5bcb24f4b
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c6580c272df5b5545c39a47e978261be8f432462bd4a2ac66ddba8c0245fe49
+size 1540648
diff --git a/cgsdev0--termsand.77cea1c/environment/harbor_prepare_download_env.sh b/cgsdev0--termsand.77cea1c/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..4a3a33381308d53b7bd2216a2375c8cd54ac24c4
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+command -v cargo
+command -v rustc
+command -v rustup
+cd /workspace
+set -a
+source /tmp/programgym-download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cgsdev0--termsand.77cea1c/environment/workspace.tar.gz b/cgsdev0--termsand.77cea1c/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d198364735f77ebef854f5a14b4feff0562834ad
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c2739cff7706f6cd264cf670893609717225ee13bce26b4a138caf666748c20f
+size 2168
diff --git a/cgsdev0--termsand.77cea1c/instruction.md b/cgsdev0--termsand.77cea1c/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/cgsdev0--termsand.77cea1c/solution/solve.sh b/cgsdev0--termsand.77cea1c/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/cgsdev0--termsand.77cea1c/task.toml b/cgsdev0--termsand.77cea1c/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..813fc05184e9b192b2f7e758748ee54ccfc7c23d
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/cgsdev0--termsand.77cea1c"
+description = "Synthetic ProgramGym cleanroom reconstruction task for cgsdev0/termsand"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "cgsdev0__termsand.77cea1c"
+repository = "cgsdev0/termsand"
+commit = "77cea1c53d091aa2593216846a63e57fcb1b9df6"
+language = "rust"
+difficulty = "easy"
+difficulty_score = 1.910410939914688
+test_branches = 1
+test_count = 225
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/cgsdev0--termsand.77cea1c/tests/Dockerfile b/cgsdev0--termsand.77cea1c/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..0134a64cf31409020689a99b234432f2b5f5f7fe
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/Dockerfile
@@ -0,0 +1,68 @@
+FROM rust:1.97.1-bookworm
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV CARGO_HOME=/usr/local/cargo
+ENV RUSTUP_HOME=/usr/local/rustup
+ENV RUSTUP_TOOLCHAIN=1.97.1
+ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
+ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+RUN rustup component add llvm-tools-preview --toolchain 1.97.1
+RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
+RUN rustc --version && cargo --version && rustup show active-toolchain
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /tmp/programgym-download.sh
+RUN chmod 755 /tmp/programgym-download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /tmp/programgym-download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --break-system-packages \
+ --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/cgsdev0--termsand.77cea1c/tests/blobs/tests/generated_module_01.tar.gz b/cgsdev0--termsand.77cea1c/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..cdd25ff521094ada92cc22cd3e4ab0c40abab55f
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3f758918c0d793779f9e3beeaa466049ff675a2724c4fdf82cdc75469655202c
+size 20223
diff --git a/cgsdev0--termsand.77cea1c/tests/download.sh b/cgsdev0--termsand.77cea1c/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..afa097e3bb69e7f3591c5b4d10b084be04858063
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/download.sh
@@ -0,0 +1,643 @@
+#!/usr/bin/env bash
+# download.sh — ProgramGym dependency prefetch for termsand (Rust / Cargo).
+# Sourced via: source /source_ro/download.sh
+#
+# This script ONLY downloads/prefetches Cargo dependencies and prepares the
+# offline vendor cache. It performs no compilation, linking, or testing.
+# The repository's exact Cargo.toml and Cargo.lock are embedded inline below so
+# this file is fully standalone and prefetches the precise locked versions that
+# build.sh needs on the offline build path.
+
+set -euo pipefail
+
+# Work in a fresh temporary directory so nothing leaks into the repo root.
+TMPDIR_FETCH="$(mktemp -d)"
+mkdir -p "${TMPDIR_FETCH}/src"
+
+# Reproduces the repository's Cargo.toml exactly (embedded, not read from the tree).
+cat > "${TMPDIR_FETCH}/Cargo.toml" <<'MANIFEST'
+[package]
+name = "termsand"
+version = "0.2.2"
+edition = "2021"
+description = "Falling sand simulation for tmux"
+license = "MIT"
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+anstyle-parse = "0.2.5"
+clap = { version = "4.5.15", features = ["derive"] }
+console = "0.16.1"
+crossterm = "0.28.1"
+rand = "0.8.5"
+term_size = "0.3.2"
+unicode-width = "0.2.2"
+MANIFEST
+
+# Stub source so the bin target resolves; only used for dependency resolution.
+cat > "${TMPDIR_FETCH}/src/main.rs" <<'STUB'
+fn main() {}
+STUB
+
+# Reproduces the repository's Cargo.lock exactly (embedded, not read from the tree).
+cat > "${TMPDIR_FETCH}/Cargo.lock" <<'LOCK'
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "anstream"
+version = "0.6.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"
+dependencies = [
+ "anstyle",
+ "anstyle-parse",
+ "anstyle-query",
+ "anstyle-wincon",
+ "colorchoice",
+ "is_terminal_polyfill",
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle"
+version = "1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
+
+[[package]]
+name = "anstyle-parse"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"
+dependencies = [
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle-query"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"
+dependencies = [
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "anstyle-wincon"
+version = "3.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"
+dependencies = [
+ "anstyle",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
+
+[[package]]
+name = "bitflags"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "clap"
+version = "4.5.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11d8838454fda655dafd3accb2b6e2bea645b9e4078abe84a22ceb947235c5cc"
+dependencies = [
+ "clap_builder",
+ "clap_derive",
+]
+
+[[package]]
+name = "clap_builder"
+version = "4.5.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "216aec2b177652e3846684cbfe25c9964d18ec45234f0f5da5157b207ed1aab6"
+dependencies = [
+ "anstream",
+ "anstyle",
+ "clap_lex",
+ "strsim",
+]
+
+[[package]]
+name = "clap_derive"
+version = "4.5.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "clap_lex"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
+
+[[package]]
+name = "colorchoice"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
+
+[[package]]
+name = "console"
+version = "0.16.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b430743a6eb14e9764d4260d4c0d8123087d504eeb9c48f2b2a5e810dd369df4"
+dependencies = [
+ "encode_unicode",
+ "libc",
+ "once_cell",
+ "unicode-width",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "crossterm"
+version = "0.28.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
+dependencies = [
+ "bitflags",
+ "crossterm_winapi",
+ "mio",
+ "parking_lot",
+ "rustix",
+ "signal-hook",
+ "signal-hook-mio",
+ "winapi",
+]
+
+[[package]]
+name = "crossterm_winapi"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "encode_unicode"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
+
+[[package]]
+name = "errno"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
+dependencies = [
+ "libc",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasi",
+]
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "hermit-abi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
+
+[[package]]
+name = "is_terminal_polyfill"
+version = "1.70.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
+
+[[package]]
+name = "libc"
+version = "0.2.155"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
+
+[[package]]
+name = "lock_api"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
+dependencies = [
+ "autocfg",
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
+
+[[package]]
+name = "mio"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
+dependencies = [
+ "hermit-abi",
+ "libc",
+ "log",
+ "wasi",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-targets",
+]
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
+dependencies = [
+ "zerocopy",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.86"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rand"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
+dependencies = [
+ "libc",
+ "rand_chacha",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
+dependencies = [
+ "getrandom",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
+dependencies = [
+ "bitflags",
+]
+
+[[package]]
+name = "rustix"
+version = "0.38.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"
+dependencies = [
+ "bitflags",
+ "errno",
+ "libc",
+ "linux-raw-sys",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "signal-hook"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
+dependencies = [
+ "libc",
+ "signal-hook-registry",
+]
+
+[[package]]
+name = "signal-hook-mio"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd"
+dependencies = [
+ "libc",
+ "mio",
+ "signal-hook",
+]
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "syn"
+version = "2.0.87"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "term_size"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9"
+dependencies = [
+ "libc",
+ "winapi",
+]
+
+[[package]]
+name = "termsand"
+version = "0.2.2"
+dependencies = [
+ "anstyle-parse",
+ "clap",
+ "console",
+ "crossterm",
+ "rand",
+ "term_size",
+ "unicode-width",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
+
+[[package]]
+name = "unicode-width"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
+
+[[package]]
+name = "utf8parse"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+
+[[package]]
+name = "wasi"
+version = "0.11.0+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-sys"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
+dependencies = [
+ "windows-targets",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm",
+ "windows_aarch64_msvc",
+ "windows_i686_gnu",
+ "windows_i686_gnullvm",
+ "windows_i686_msvc",
+ "windows_x86_64_gnu",
+ "windows_x86_64_gnullvm",
+ "windows_x86_64_msvc",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "zerocopy"
+version = "0.7.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
+dependencies = [
+ "byteorder",
+ "zerocopy-derive",
+]
+
+[[package]]
+name = "zerocopy-derive"
+version = "0.7.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+LOCK
+
+# Export the generated manifest location for reference.
+export TERMSAND_GENERATED_MANIFEST="${TMPDIR_FETCH}/Cargo.toml"
+
+# Prefetch the exact locked dependency graph. --locked enforces that only the
+# pinned versions in the embedded Cargo.lock are fetched, matching the offline
+# build step. Never run bare `cargo fetch` from the repo root.
+cargo fetch --locked --manifest-path "${TMPDIR_FETCH}/Cargo.toml"
diff --git a/cgsdev0--termsand.77cea1c/tests/executable b/cgsdev0--termsand.77cea1c/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..3f41696eb5ff724cc6ad5abea8943fa5bcb24f4b
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c6580c272df5b5545c39a47e978261be8f432462bd4a2ac66ddba8c0245fe49
+size 1540648
diff --git a/cgsdev0--termsand.77cea1c/tests/harbor_prepare_download_env.sh b/cgsdev0--termsand.77cea1c/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..4a3a33381308d53b7bd2216a2375c8cd54ac24c4
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+command -v cargo
+command -v rustc
+command -v rustup
+cd /workspace
+set -a
+source /tmp/programgym-download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/cgsdev0--termsand.77cea1c/tests/programgym_evaluator.py b/cgsdev0--termsand.77cea1c/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/cgsdev0--termsand.77cea1c/tests/programgym_task.json b/cgsdev0--termsand.77cea1c/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..5737f08ab4b68efd096bcf087795adc850d1e374
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/programgym_task.json
@@ -0,0 +1,562 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_cli.test_bg_missing_value_rejected",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli.test_color_missing_value_rejected",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli.test_conflicting_effect_names_are_case_sensitive",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli.test_help_after_unknown_long_option_is_error_not_help",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli.test_help_defaults_documented",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_cli.test_snow_chars_missing_value_rejected",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_list_colors.test_list_colors_fg_and_bg_both_sections",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_list_colors.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_list_colors.test_list_colors_foreground_default_reset",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_list_colors.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_list_colors.test_list_colors_multiline_fg_both_listed",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_list_colors.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_list_colors.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_list_colors.test_list_colors_only_first_sgr_param_processed",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_list_colors.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_list_colors.test_list_colors_uncolored_text_no_fg_entry",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_list_colors.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_style_render.test_combined_bold_italic_strike_cleared_in_order",
+ "reasons": [
+ {
+ "id": "assertion_disjunction",
+ "message": "pytest assertion accepts alternatives with or",
+ "path": "eval/tests/test_style_render.py",
+ "repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_underline_color.test_underline_color_59_default",
+ "reasons": [
+ {
+ "id": "assertion_disjunction",
+ "message": "pytest assertion accepts alternatives with or",
+ "path": "eval/tests/test_underline_color.py",
+ "repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_cli.test_bg_missing_value_rejected",
+ "eval.tests.test_cli.test_color_missing_value_rejected",
+ "eval.tests.test_cli.test_color_negative_value_looks_like_flag",
+ "eval.tests.test_cli.test_conflicting_effect_names_are_case_sensitive",
+ "eval.tests.test_cli.test_double_dash_separates_effect_positional",
+ "eval.tests.test_cli.test_empty_effect_value_requires_value",
+ "eval.tests.test_cli.test_enum_option_requires_value[--direction]",
+ "eval.tests.test_cli.test_enum_option_requires_value[--snow-chars]",
+ "eval.tests.test_cli.test_help_after_unknown_long_option_is_error_not_help",
+ "eval.tests.test_cli.test_help_defaults_documented",
+ "eval.tests.test_cli.test_help_direction_possible_values",
+ "eval.tests.test_cli.test_help_infinite_loop_hint",
+ "eval.tests.test_cli.test_help_lists_every_cli_option",
+ "eval.tests.test_cli.test_help_lists_every_effect_value",
+ "eval.tests.test_cli.test_help_long_flag_usage",
+ "eval.tests.test_cli.test_help_short_flag_usage",
+ "eval.tests.test_cli.test_invalid_color_value_rejected[ 1]",
+ "eval.tests.test_cli.test_invalid_color_value_rejected[0x10]",
+ "eval.tests.test_cli.test_invalid_color_value_rejected[1.5]",
+ "eval.tests.test_cli.test_invalid_color_value_rejected[12a]",
+ "eval.tests.test_cli.test_invalid_color_value_rejected[abc]",
+ "eval.tests.test_cli.test_invalid_direction_rejected[Down]",
+ "eval.tests.test_cli.test_invalid_direction_rejected[UP]",
+ "eval.tests.test_cli.test_invalid_direction_rejected[backward]",
+ "eval.tests.test_cli.test_invalid_direction_rejected[diag]",
+ "eval.tests.test_cli.test_invalid_direction_rejected[forward]",
+ "eval.tests.test_cli.test_invalid_effect_value_rejected[Gravity]",
+ "eval.tests.test_cli.test_invalid_effect_value_rejected[SNOW]",
+ "eval.tests.test_cli.test_invalid_effect_value_rejected[explosion]",
+ "eval.tests.test_cli.test_invalid_effect_value_rejected[foo]",
+ "eval.tests.test_cli.test_invalid_effect_value_rejected[gravityx]",
+ "eval.tests.test_cli.test_invalid_effect_value_rejected[sand]",
+ "eval.tests.test_cli.test_invalid_numeric_option_rejected[--cycles-3.5]",
+ "eval.tests.test_cli.test_invalid_numeric_option_rejected[--cycles-xyz]",
+ "eval.tests.test_cli.test_invalid_numeric_option_rejected[--h-time-4.2]",
+ "eval.tests.test_cli.test_invalid_numeric_option_rejected[--ms-10ms]",
+ "eval.tests.test_cli.test_invalid_numeric_option_rejected[--ms-abc]",
+ "eval.tests.test_cli.test_invalid_numeric_option_rejected[--stickiness--5]",
+ "eval.tests.test_cli.test_invalid_numeric_option_rejected[--v-time--3]",
+ "eval.tests.test_cli.test_invalid_snow_char_is_whole_string_only_checked",
+ "eval.tests.test_cli.test_numeric_option_missing_value_rejected[--cycles]",
+ "eval.tests.test_cli.test_numeric_option_missing_value_rejected[--h-time]",
+ "eval.tests.test_cli.test_numeric_option_missing_value_rejected[--ms]",
+ "eval.tests.test_cli.test_numeric_option_missing_value_rejected[--stickiness]",
+ "eval.tests.test_cli.test_numeric_option_missing_value_rejected[--v-time]",
+ "eval.tests.test_cli.test_snow_chars_missing_value_rejected",
+ "eval.tests.test_cli.test_unknown_long_option_rejected[--bogus]",
+ "eval.tests.test_cli.test_unknown_long_option_rejected[--borderss]",
+ "eval.tests.test_cli.test_unknown_long_option_rejected[--list-colour]",
+ "eval.tests.test_cli.test_unknown_long_option_rejected[--nonesuch]",
+ "eval.tests.test_cli.test_unknown_short_option_rejected[-n]",
+ "eval.tests.test_cli.test_unknown_short_option_rejected[-q]",
+ "eval.tests.test_cli.test_unknown_short_option_rejected[-z]",
+ "eval.tests.test_cli.test_version_has_no_stderr",
+ "eval.tests.test_cli.test_version_long_flag_exact",
+ "eval.tests.test_cli.test_version_short_flag_exact",
+ "eval.tests.test_color_args_render.test_bg_static_arg_makes_cell_static[120]",
+ "eval.tests.test_color_args_render.test_bg_static_arg_makes_cell_static[2]",
+ "eval.tests.test_color_args_render.test_bg_static_arg_makes_cell_static[9]",
+ "eval.tests.test_color_args_render.test_borders_flag_keeps_box_char_static[\\u2500]",
+ "eval.tests.test_color_args_render.test_borders_flag_keeps_box_char_static[\\u2514]",
+ "eval.tests.test_color_args_render.test_borders_flag_keeps_box_char_static[\\u2550]",
+ "eval.tests.test_color_args_render.test_borders_flag_keeps_box_char_static[\\u257f]",
+ "eval.tests.test_color_args_render.test_color_static_arg_makes_cell_static[1]",
+ "eval.tests.test_color_args_render.test_color_static_arg_makes_cell_static[200]",
+ "eval.tests.test_color_args_render.test_color_static_arg_makes_cell_static[7]",
+ "eval.tests.test_color_args_render.test_default_background_after_color_emits_49",
+ "eval.tests.test_color_args_render.test_multiple_color_and_bg_values_accepted",
+ "eval.tests.test_color_args_render.test_snow_chars_argument_reaches_snow_grid",
+ "eval.tests.test_color_args_render.test_snow_chars_single_char_pool_respected[#]",
+ "eval.tests.test_color_args_render.test_snow_chars_single_char_pool_respected[%]",
+ "eval.tests.test_color_args_render.test_snow_chars_single_char_pool_respected[x]",
+ "eval.tests.test_color_args_render.test_stickiness_and_edge_stick_accepted[args0]",
+ "eval.tests.test_color_args_render.test_stickiness_and_edge_stick_accepted[args1]",
+ "eval.tests.test_color_args_render.test_stickiness_and_edge_stick_accepted[args2]",
+ "eval.tests.test_color_args_render.test_stickiness_and_edge_stick_accepted[args3]",
+ "eval.tests.test_color_args_render.test_stickiness_and_edge_stick_accepted[args4]",
+ "eval.tests.test_color_args_render.test_without_borders_box_char_can_fall",
+ "eval.tests.test_direction_physics.test_direction_right_then_left_returns_particle",
+ "eval.tests.test_direction_physics.test_horizontal_gravity_drives_particle_to_edge[10-1-right]",
+ "eval.tests.test_direction_physics.test_horizontal_gravity_drives_particle_to_edge[10-8-left]",
+ "eval.tests.test_direction_physics.test_horizontal_gravity_drives_particle_to_edge[12-4-right]",
+ "eval.tests.test_direction_physics.test_horizontal_gravity_drives_particle_to_edge[7-5-left]",
+ "eval.tests.test_direction_physics.test_horizontal_gravity_drives_particle_to_edge[8-2-right]",
+ "eval.tests.test_direction_physics.test_horizontal_gravity_progress_scales_with_h_time[15-2]",
+ "eval.tests.test_direction_physics.test_horizontal_gravity_progress_scales_with_h_time[30-4]",
+ "eval.tests.test_direction_physics.test_multiple_direction_cycle_completes[dirs0]",
+ "eval.tests.test_direction_physics.test_multiple_direction_cycle_completes[dirs1]",
+ "eval.tests.test_direction_physics.test_multiple_direction_cycle_completes[dirs2]",
+ "eval.tests.test_direction_physics.test_particle_keeps_single_particle_count[left-0]",
+ "eval.tests.test_direction_physics.test_particle_keeps_single_particle_count[right-9]",
+ "eval.tests.test_direction_physics.test_right_vs_left_opposite_final_columns",
+ "eval.tests.test_direction_physics.test_static_box_char_blocks_sand_stream[make_static0]",
+ "eval.tests.test_direction_physics.test_static_box_char_blocks_sand_stream[make_static1]",
+ "eval.tests.test_direction_physics.test_vertical_gravity_completes_and_preserves[down]",
+ "eval.tests.test_direction_physics.test_vertical_gravity_completes_and_preserves[up]",
+ "eval.tests.test_direction_physics.test_without_static_flag_box_char_falls",
+ "eval.tests.test_input_grid.test_blank_input_renders_empty_grid",
+ "eval.tests.test_input_grid.test_newline_advances_cursor_to_next_row",
+ "eval.tests.test_input_grid.test_newline_splats_background_across_row",
+ "eval.tests.test_input_grid.test_row_truncated_at_terminal_width[AAAAAA-6-6]",
+ "eval.tests.test_input_grid.test_row_truncated_at_terminal_width[AAAAAAA-6-6]",
+ "eval.tests.test_input_grid.test_row_truncated_at_terminal_width[AAAAAAAAAAAAAAAA-6-6]",
+ "eval.tests.test_input_grid.test_row_truncated_at_terminal_width[AB-2-2]",
+ "eval.tests.test_input_grid.test_vertical_overflow_drops_rows_past_height[1-1]",
+ "eval.tests.test_input_grid.test_vertical_overflow_drops_rows_past_height[2-2]",
+ "eval.tests.test_input_grid.test_vertical_overflow_drops_rows_past_height[3-3]",
+ "eval.tests.test_input_grid.test_vertical_overflow_drops_rows_past_height[8-3]",
+ "eval.tests.test_input_grid.test_wide_character_advances_cursor_one_cell_not_two",
+ "eval.tests.test_input_grid.test_wide_character_at_last_column_truncated",
+ "eval.tests.test_input_grid.test_wide_character_rendered[\\u3053-True]",
+ "eval.tests.test_input_grid.test_wide_character_rendered[\\u4e2d-True]",
+ "eval.tests.test_input_grid.test_wide_character_rendered[\\xdf-False]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[100mX-\\x1b[48;5;8m ***** 8\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[101mX-\\x1b[48;5;9m ***** 9\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[107mX-\\x1b[48;5;15m ***** 15\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[40mX-\\x1b[48;5;0m ***** 0\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[41mX-\\x1b[48;5;1m ***** 1\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[47mX-\\x1b[48;5;7m ***** 7\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[48;5;0mX-\\x1b[48;5;0m ***** 0\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[48;5;232mX-\\x1b[48;5;232m ***** 232\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_ansi[\\x1b[48;5;77mX-\\x1b[48;5;77m ***** 77\\x1b[49m]",
+ "eval.tests.test_list_colors.test_list_colors_background_rgb[rgb0-\\x1b[48;2;10;20;30mX]",
+ "eval.tests.test_list_colors.test_list_colors_background_rgb[rgb1-\\x1b[48;2;1;2;3mX]",
+ "eval.tests.test_list_colors.test_list_colors_background_rgb[rgb2-\\x1b[48;2;200;100;55mX]",
+ "eval.tests.test_list_colors.test_list_colors_bg_default_no_entry",
+ "eval.tests.test_list_colors.test_list_colors_deterministic_single_color",
+ "eval.tests.test_list_colors.test_list_colors_empty_input",
+ "eval.tests.test_list_colors.test_list_colors_fg_and_bg_both_sections",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[30mX-\\x1b[38;5;0m ***** 0 \\x1b[39m\\\\x1b[38;5;0m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[31mX-\\x1b[38;5;1m ***** 1 \\x1b[39m\\\\x1b[38;5;1m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[37mX-\\x1b[38;5;7m ***** 7 \\x1b[39m\\\\x1b[38;5;7m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[38;5;0mX-\\x1b[38;5;0m ***** 0 \\x1b[39m\\\\x1b[38;5;0m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[38;5;200mX-\\x1b[38;5;200m ***** 200 \\x1b[39m\\\\x1b[38;5;200m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[38;5;255mX-\\x1b[38;5;255m ***** 255 \\x1b[39m\\\\x1b[38;5;255m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[90mX-\\x1b[38;5;8m ***** 8 \\x1b[39m\\\\x1b[38;5;8m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[91mX-\\x1b[38;5;9m ***** 9 \\x1b[39m\\\\x1b[38;5;9m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_ansi[\\x1b[97mX-\\x1b[38;5;15m ***** 15 \\x1b[39m\\\\x1b[38;5;15m]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_default_reset",
+ "eval.tests.test_list_colors.test_list_colors_foreground_rgb[rgb0-\\x1b[38;2;10;20;30mX]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_rgb[rgb1-\\x1b[38;2;1;2;3mX]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_rgb[rgb2-\\x1b[38;2;255;0;128mX]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_rgb[rgb3-\\x1b[38;2;0;0;0mX]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_rgb[rgb4-\\x1b[38;2;7;7;7mX]",
+ "eval.tests.test_list_colors.test_list_colors_foreground_sgr_reset_0",
+ "eval.tests.test_list_colors.test_list_colors_multiline_fg_both_listed",
+ "eval.tests.test_list_colors.test_list_colors_only_first_sgr_param_processed",
+ "eval.tests.test_list_colors.test_list_colors_returns_before_alternate_screen",
+ "eval.tests.test_list_colors.test_list_colors_uncolored_text_no_fg_entry",
+ "eval.tests.test_quit_and_cycles.test_cycles0_loop_broken_by_esc",
+ "eval.tests.test_quit_and_cycles.test_cycles0_loop_broken_by_q[blender]",
+ "eval.tests.test_quit_and_cycles.test_cycles0_loop_broken_by_q[snow]",
+ "eval.tests.test_quit_and_cycles.test_cycles0_loop_broken_by_q[tilt-shift]",
+ "eval.tests.test_quit_and_cycles.test_cycles0_loop_runs_steps_while_active",
+ "eval.tests.test_quit_and_cycles.test_default_cycles_is_finite_single_cycle",
+ "eval.tests.test_quit_and_cycles.test_finite_cycle_completes_all_frames_without_quit",
+ "eval.tests.test_quit_and_cycles.test_finite_cycle_quits_early_via_q",
+ "eval.tests.test_quit_and_cycles.test_non_quit_key_does_not_break_loop[ ]",
+ "eval.tests.test_quit_and_cycles.test_non_quit_key_does_not_break_loop[Z]",
+ "eval.tests.test_quit_and_cycles.test_non_quit_key_does_not_break_loop[\\r]",
+ "eval.tests.test_quit_and_cycles.test_non_quit_key_does_not_break_loop[\\x07]",
+ "eval.tests.test_quit_and_cycles.test_non_quit_key_does_not_break_loop[x]",
+ "eval.tests.test_sim_frames.test_every_effect_enters_and_leaves_alt_screen[blender]",
+ "eval.tests.test_sim_frames.test_every_effect_enters_and_leaves_alt_screen[gravity]",
+ "eval.tests.test_sim_frames.test_every_effect_enters_and_leaves_alt_screen[snow]",
+ "eval.tests.test_sim_frames.test_every_effect_enters_and_leaves_alt_screen[tilt-shift]",
+ "eval.tests.test_sim_frames.test_render_emits_sync_pairs[effects0-directions0-6-6]",
+ "eval.tests.test_sim_frames.test_render_emits_sync_pairs[effects1-directions1-6-6]",
+ "eval.tests.test_sim_frames.test_render_emits_sync_pairs[effects2-directions2-4-4]",
+ "eval.tests.test_sim_frames.test_render_emits_sync_pairs[effects3-directions3-4-4]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('blender',)-('down',)-1-3-3-0-2]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('blender',)-('down',)-1-3-3-30-12]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('blender',)-('down',)-1-5-5-0-4]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('blender',)-('down',)-2-2-2-0-3]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down', 'right')-1-20-10-0-6]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-0-10-250-0-2]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-1-150-250-0-30]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-1-150-250-30-150]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-1-3-5-30-3]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-1-4-5-0-0]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-1-8-5-0-1]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-2-10-5-0-4]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('down',)-3-5-5-0-3]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('left',)-1-150-6-30-6]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('right',)-1-150-8-30-8]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('right',)-1-150-9-0-1]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('up', 'left')-1-20-10-30-30]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('gravity',)-('up',)-1-12-150-0-2]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow', 'blender')-('down',)-1-3-3-0-2]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow', 'gravity')-('down',)-0-10-250-0-2]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow', 'gravity')-('down',)-1-10-250-0-2]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow', 'gravity')-('down',)-1-10-250-30-10]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow', 'tilt-shift')-('down',)-1-2-2-0-3]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow',)-('down',)-1-40-250-0-8]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow',)-('down',)-1-40-250-30-40]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow',)-('down',)-2-25-250-0-10]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('snow',)-('up',)-1-15-250-0-3]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('tilt-shift',)-('down',)-1-2-2-0-3]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('tilt-shift',)-('down',)-1-2-2-30-16]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('tilt-shift',)-('down',)-1-5-5-0-8]",
+ "eval.tests.test_sim_frames.test_render_frame_count_matches_config[('tilt-shift',)-('down',)-2-2-2-0-6]",
+ "eval.tests.test_style_render.test_bold_off_inputs_no_bold_marker[\\x1b[0mC]",
+ "eval.tests.test_style_render.test_bold_off_inputs_no_bold_marker[\\x1b[22mC]",
+ "eval.tests.test_style_render.test_bold_off_inputs_no_bold_marker[\\x1b[2mC]",
+ "eval.tests.test_style_render.test_bold_style_render_emits_set_marker",
+ "eval.tests.test_style_render.test_bold_styles_render_bold_marker",
+ "eval.tests.test_style_render.test_combined_bold_italic_strike_cleared_in_order",
+ "eval.tests.test_style_render.test_italic_clear_with_sgr23",
+ "eval.tests.test_style_render.test_italic_renders_set_and_clear",
+ "eval.tests.test_style_render.test_plain_cell_no_style_markers",
+ "eval.tests.test_style_render.test_strike_clear_with_sgr29",
+ "eval.tests.test_style_render.test_strike_renders_set_and_clear",
+ "eval.tests.test_style_render.test_underline_off_via_sgr24",
+ "eval.tests.test_style_render.test_underline_off_via_subparam_zero",
+ "eval.tests.test_style_render.test_underline_single_variants[\\x1b[4:1m-\\x1b[4:1m]",
+ "eval.tests.test_style_render.test_underline_single_variants[\\x1b[4;1m-\\x1b[4:1m]",
+ "eval.tests.test_style_render.test_underline_single_variants[\\x1b[4;5m-\\x1b[4:1m]",
+ "eval.tests.test_style_render.test_underline_single_variants[\\x1b[4m-\\x1b[4:1m]",
+ "eval.tests.test_style_render.test_underline_substyles_via_colon[2-4:2]",
+ "eval.tests.test_style_render.test_underline_substyles_via_colon[3-4:3]",
+ "eval.tests.test_style_render.test_underline_substyles_via_colon[4-4:4]",
+ "eval.tests.test_style_render.test_underline_substyles_via_colon[5-4:5]",
+ "eval.tests.test_style_render.test_underline_unknown_subparam_defaults_off[12]",
+ "eval.tests.test_style_render.test_underline_unknown_subparam_defaults_off[6]",
+ "eval.tests.test_style_render.test_underline_unknown_subparam_defaults_off[9]",
+ "eval.tests.test_underline_color.test_bare_color_code_panics[\\x1b[38mA]",
+ "eval.tests.test_underline_color.test_bare_color_code_panics[\\x1b[48mA]",
+ "eval.tests.test_underline_color.test_bare_color_code_panics[\\x1b[58mA]",
+ "eval.tests.test_underline_color.test_underline_color_59_default",
+ "eval.tests.test_underline_color.test_underline_color_obsolete_under_sgr0",
+ "eval.tests.test_underline_color.test_underline_color_palette_58_5[0]",
+ "eval.tests.test_underline_color.test_underline_color_palette_58_5[1]",
+ "eval.tests.test_underline_color.test_underline_color_palette_58_5[200]",
+ "eval.tests.test_underline_color.test_underline_color_palette_58_5[255]",
+ "eval.tests.test_underline_color.test_underline_color_rgb_58_2[rgb0]",
+ "eval.tests.test_underline_color.test_underline_color_rgb_58_2[rgb1]",
+ "eval.tests.test_underline_color.test_underline_color_rgb_58_2[rgb2]",
+ "eval.tests.test_underline_color.test_underline_color_rgb_58_2[rgb3]"
+ ]
+ }
+ },
+ "commit": "77cea1c53d091aa2593216846a63e57fcb1b9df6",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.910410939914688,
+ "eval_clean_hashes": [
+ "8c6580c272df5b5545c39a47e978261be8f432462bd4a2ac66ddba8c0245fe49"
+ ],
+ "input_record": {
+ "codeql_db_mb": 84.3,
+ "codeql_status": true,
+ "codeql_time": 60.7660417300649,
+ "commit": "77cea1c53d091aa2593216846a63e57fcb1b9df6",
+ "commits": 50,
+ "contributors": 2,
+ "difficulty": "easy",
+ "difficulty_code_lines": 1017,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 1017,
+ "difficulty_runtime_deps": 7,
+ "difficulty_score": 1.910410939914688,
+ "difficulty_test_code_lines": 0,
+ "full_name": "cgsdev0/termsand",
+ "github_stars": 318,
+ "input_codeql_db": "rust_codeql/cgsdev0__termsand",
+ "language": "rs",
+ "pb_match": [
+ {
+ "pb_fullname": "Miserlou/Loop",
+ "rank": 404,
+ "similarity": 0.465036541223526
+ },
+ {
+ "pb_fullname": "sayanarijit/xplr",
+ "rank": 990,
+ "similarity": 0.4903683364391327
+ },
+ {
+ "pb_fullname": "svenstaro/genact",
+ "rank": 346,
+ "similarity": 0.5454784035682678
+ },
+ {
+ "pb_fullname": "ajeetdsouza/zoxide",
+ "rank": 906,
+ "similarity": 0.4727456867694855
+ },
+ {
+ "pb_fullname": "blacknon/hwatch",
+ "rank": 1000,
+ "similarity": 0.49263954162597656
+ },
+ {
+ "pb_fullname": "Nukesor/pueue",
+ "rank": 830,
+ "similarity": 0.43717801570892334
+ },
+ {
+ "pb_fullname": "rhysd/kiro-editor",
+ "rank": 944,
+ "similarity": 0.481711745262146
+ },
+ {
+ "pb_fullname": "hush-shell/hush",
+ "rank": 406,
+ "similarity": 0.47827428579330444
+ },
+ {
+ "pb_fullname": "kyoheiu/felix",
+ "rank": 619,
+ "similarity": 0.5135545134544373
+ },
+ {
+ "pb_fullname": "elkowar/pipr",
+ "rank": 687,
+ "similarity": 0.5392259359359741
+ },
+ {
+ "pb_fullname": "ekzhang/bore",
+ "rank": 502,
+ "similarity": 0.47572439908981323
+ },
+ {
+ "pb_fullname": "wfxr/csview",
+ "rank": 827,
+ "similarity": 0.4424290657043457
+ }
+ ],
+ "repo_age": 1.98,
+ "repo_path": "rust/cgsdev0__termsand",
+ "rust_channel": "stable",
+ "rust_edition": "2021",
+ "rust_release_date": "2021-10-21",
+ "rust_version": "1.56.0",
+ "rust_version_source": "edition",
+ "source": "commit:77cea1c53d091aa2593216846a63e57fcb1b9df6",
+ "status": "done",
+ "url": "https://github.com/cgsdev0/termsand"
+ },
+ "instance_id": "cgsdev0__termsand.77cea1c",
+ "language": "rust",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "cgsdev0/termsand"
+}
diff --git a/cgsdev0--termsand.77cea1c/tests/test.sh b/cgsdev0--termsand.77cea1c/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/cgsdev0--termsand.77cea1c/tests/workspace.tar.gz b/cgsdev0--termsand.77cea1c/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d198364735f77ebef854f5a14b4feff0562834ad
--- /dev/null
+++ b/cgsdev0--termsand.77cea1c/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c2739cff7706f6cd264cf670893609717225ee13bce26b4a138caf666748c20f
+size 2168
diff --git a/chadaustin--sajson.68fe32e/environment/Dockerfile b/chadaustin--sajson.68fe32e/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..edce77c9eff98ecfdd18ea41d0dd516062fb88d9
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/environment/Dockerfile
@@ -0,0 +1,55 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.12
+RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
+ARG GCC_VERSION=13.3.0
+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; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; 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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chadaustin--sajson.68fe32e/environment/download.sh b/chadaustin--sajson.68fe32e/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..cbdfa37cd714cdb7c23b3571960cc7793b3285da
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/environment/download.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+# download.sh for sajson (chadaustin/sajson)
+#
+# sajson is a header-only C++ library. The selected example target
+# (example-zero-allocation) compiles a single translation unit that only
+# includes include/sajson.h and links libc/libstdc++, both already present in
+# the base image, and uses the pre-installed g++ (GCC 13.3.0) toolchain. No
+# external dependency download or prefetch is required, so this script only
+# verifies the toolchain is present and exports nothing else.
+#
+# This file is meant to be sourced (source download.sh), not executed. It is
+# idempotent and performs no compile/link/test/prefetch step.
+
+if [ -z "${DOWNLOADSHAJSON_VERIFIED:-}" ]; then
+ # Verify the compiler build.sh relies on exists. On the base image this
+ # succeeds and prints the g++ path; handled as an explicit branch with no
+ # stderr suppression so a missing toolchain is a real, visible failure.
+ command -v g++
+ if [ "$?" -ne 0 ]; then
+ echo "fatal: g++ not found in base image" >&2
+ if [ "${BASH_SOURCE[0]}" = "$0" ]; then
+ exit 1
+ else
+ return 1
+ fi
+ fi
+ export DOWNLOADSHAJSON_VERIFIED=1
+fi
+
+# No dependency downloads, no caches, no additional environment needed.
+true
diff --git a/chadaustin--sajson.68fe32e/environment/executable b/chadaustin--sajson.68fe32e/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..ce7bc8146f13541a125181ec916dac024f7a3c22
Binary files /dev/null and b/chadaustin--sajson.68fe32e/environment/executable differ
diff --git a/chadaustin--sajson.68fe32e/environment/harbor_prepare_download_env.sh b/chadaustin--sajson.68fe32e/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chadaustin--sajson.68fe32e/environment/workspace.tar.gz b/chadaustin--sajson.68fe32e/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b1ca7d68375da7642db8c9eb9c5cff289f3ba093
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7533c9ebe2503f5d646a2208d52bb41a8b5e978cc9522dc1993459f1a31c9887
+size 24643
diff --git a/chadaustin--sajson.68fe32e/instruction.md b/chadaustin--sajson.68fe32e/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chadaustin--sajson.68fe32e/solution/solve.sh b/chadaustin--sajson.68fe32e/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chadaustin--sajson.68fe32e/task.toml b/chadaustin--sajson.68fe32e/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..b525881dee1d8d067530026e3adf476597b1d04c
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chadaustin--sajson.68fe32e"
+description = "Synthetic ProgramGym cleanroom reconstruction task for chadaustin/sajson"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "chadaustin__sajson.68fe32e"
+repository = "chadaustin/sajson"
+commit = "68fe32ed6bcb5ac026671d6eadac9024a21c8b05"
+language = "cpp"
+difficulty = "easy"
+difficulty_score = 1.714413592287121
+test_branches = 3
+test_count = 100
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chadaustin--sajson.68fe32e/tests/Dockerfile b/chadaustin--sajson.68fe32e/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..76cacca3a4006591209a34f93e00d4142b6fe407
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/Dockerfile
@@ -0,0 +1,63 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.12
+RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
+ARG GCC_VERSION=13.3.0
+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; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; 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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_module_01.tar.gz b/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..72cdb4037788aac0f700bb9c16f7f9a689e4ca6a
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:86fdec1bb78c9ae66d6c18e73cb124392bfbf347431c53257579ffdab323dd3d
+size 8304
diff --git a/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_module_02.tar.gz b/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0d75e7e64aad62f7976e3bd248f5cca66ce89e8b
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:38c99f36a416e3f2e6eb471005c3599dcd4ac9fdaba005866163a7ebcf2dabef
+size 11344
diff --git a/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_upstream.tar.gz b/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_upstream.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..979422de8f809dba600870564d1429fc31f7eccc
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/blobs/tests/generated_upstream.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:151a56c4555cabeae94c958dd57c9f94af3679cd08c2320c9ab47c4c1825bc02
+size 3298
diff --git a/chadaustin--sajson.68fe32e/tests/download.sh b/chadaustin--sajson.68fe32e/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..cbdfa37cd714cdb7c23b3571960cc7793b3285da
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/download.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+# download.sh for sajson (chadaustin/sajson)
+#
+# sajson is a header-only C++ library. The selected example target
+# (example-zero-allocation) compiles a single translation unit that only
+# includes include/sajson.h and links libc/libstdc++, both already present in
+# the base image, and uses the pre-installed g++ (GCC 13.3.0) toolchain. No
+# external dependency download or prefetch is required, so this script only
+# verifies the toolchain is present and exports nothing else.
+#
+# This file is meant to be sourced (source download.sh), not executed. It is
+# idempotent and performs no compile/link/test/prefetch step.
+
+if [ -z "${DOWNLOADSHAJSON_VERIFIED:-}" ]; then
+ # Verify the compiler build.sh relies on exists. On the base image this
+ # succeeds and prints the g++ path; handled as an explicit branch with no
+ # stderr suppression so a missing toolchain is a real, visible failure.
+ command -v g++
+ if [ "$?" -ne 0 ]; then
+ echo "fatal: g++ not found in base image" >&2
+ if [ "${BASH_SOURCE[0]}" = "$0" ]; then
+ exit 1
+ else
+ return 1
+ fi
+ fi
+ export DOWNLOADSHAJSON_VERIFIED=1
+fi
+
+# No dependency downloads, no caches, no additional environment needed.
+true
diff --git a/chadaustin--sajson.68fe32e/tests/executable b/chadaustin--sajson.68fe32e/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..ce7bc8146f13541a125181ec916dac024f7a3c22
Binary files /dev/null and b/chadaustin--sajson.68fe32e/tests/executable differ
diff --git a/chadaustin--sajson.68fe32e/tests/harbor_prepare_download_env.sh b/chadaustin--sajson.68fe32e/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chadaustin--sajson.68fe32e/tests/programgym_evaluator.py b/chadaustin--sajson.68fe32e/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chadaustin--sajson.68fe32e/tests/programgym_task.json b/chadaustin--sajson.68fe32e/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..9040ee0d54e58329af00165e25c094d42f91bec6
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/programgym_task.json
@@ -0,0 +1,266 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_environmental_determinism.test_many_sequential_runs_match_the_golden_every_time",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_environmental_determinism.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_environmental_determinism.test_running_from_unrelated_cwd_is_cwd_independent",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_environmental_determinism.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_written_in_test",
+ "message": "pytest test writes to its own golden file",
+ "path": "eval/tests/test_environmental_determinism.py",
+ "repair_hint": "Read committed golden data instead of writing expected output inside the test.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_environmental_determinism.test_running_with_cleared_environment_is_environment_independent",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_environmental_determinism.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_environmental_determinism.test_stderr_is_exactly_the_empty_golden_resource",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_environmental_determinism.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_invocation.test_default_run_prints_exactly_success_line",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_invocation.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_argument_insensitivity.test_allocation_flag_is_ignored",
+ "eval.tests.test_argument_insensitivity.test_help_flag_is_ignored",
+ "eval.tests.test_argument_insensitivity.test_invalid_looking_json_argument_is_ignored",
+ "eval.tests.test_argument_insensitivity.test_json_flag_payload_is_ignored",
+ "eval.tests.test_argument_insensitivity.test_json_literal_argument_is_ignored",
+ "eval.tests.test_argument_insensitivity.test_missing_input_file_is_ignored",
+ "eval.tests.test_argument_insensitivity.test_short_flag_and_double_dash_are_ignored",
+ "eval.tests.test_argument_insensitivity.test_unknown_flag_is_ignored",
+ "eval.tests.test_environmental_determinism.test_concurrent_runs_are_byte_identical",
+ "eval.tests.test_environmental_determinism.test_exit_status_is_stable_zero_across_cwd",
+ "eval.tests.test_environmental_determinism.test_many_sequential_runs_match_the_golden_every_time",
+ "eval.tests.test_environmental_determinism.test_running_from_empty_cwd_leaves_no_files",
+ "eval.tests.test_environmental_determinism.test_running_from_unrelated_cwd_is_cwd_independent",
+ "eval.tests.test_environmental_determinism.test_running_with_cleared_environment_is_environment_independent",
+ "eval.tests.test_environmental_determinism.test_stderr_is_exactly_the_empty_golden_resource",
+ "eval.tests.test_environmental_determinism.test_success_stdout_has_carriage_returns",
+ "eval.tests.test_environmental_determinism.test_success_stdout_has_no_ansi_escapes",
+ "eval.tests.test_environmental_determinism.test_success_stdout_has_no_nul_bytes",
+ "eval.tests.test_environmental_determinism.test_success_stdout_has_no_utf8_bom",
+ "eval.tests.test_invocation.test_default_run_exits_zero",
+ "eval.tests.test_invocation.test_default_run_prints_exactly_success_line",
+ "eval.tests.test_invocation.test_default_run_stderr_is_empty",
+ "eval.tests.test_invocation.test_default_run_text_output_matches",
+ "eval.tests.test_invocation.test_no_extra_stdout_after_success",
+ "eval.tests.test_invocation.test_repeated_runs_are_deterministic",
+ "eval.tests.test_invocation.test_success_line_is_exactly_nine_bytes",
+ "eval.tests.test_robustness.test_duplicated_option_like_flags_do_not_crash",
+ "eval.tests.test_robustness.test_many_arguments_do_not_crash",
+ "eval.tests.test_robustness.test_missing_value_flags_do_not_crash",
+ "eval.tests.test_robustness.test_null_byte_like_argument_through_bytestring",
+ "eval.tests.test_robustness.test_unicode_arguments_do_not_change_output",
+ "eval.tests.test_robustness.test_very_long_single_argument_do_not_crash",
+ "eval.tests.test_streams.test_empty_stdin_is_ignored",
+ "eval.tests.test_streams.test_stderr_empty_with_arguments",
+ "eval.tests.test_streams.test_stdin_is_not_consumed",
+ "eval.tests.test_streams.test_stdin_that_looks_like_a_file_is_ignored",
+ "eval.tests.test_streams.test_stdout_is_single_separated_line"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_zero_allocation.test_all_three_streams_wired_to_single_file_yield_exact_success",
+ "eval.tests.test_zero_allocation.test_append_accumulation_across_runs_is_exact_frames",
+ "eval.tests.test_zero_allocation.test_closed_stdin_descriptor_is_ignored",
+ "eval.tests.test_zero_allocation.test_closed_stdout_descriptor_is_ignored",
+ "eval.tests.test_zero_allocation.test_combined_streams_contain_only_success_line",
+ "eval.tests.test_zero_allocation.test_core_success_contract",
+ "eval.tests.test_zero_allocation.test_deterministic_byte_stable_output",
+ "eval.tests.test_zero_allocation.test_directory_argument_is_ignored",
+ "eval.tests.test_zero_allocation.test_executable_path_resolves_from_env",
+ "eval.tests.test_zero_allocation.test_existing_readable_file_argument_is_ignored",
+ "eval.tests.test_zero_allocation.test_exit_status_is_zero",
+ "eval.tests.test_zero_allocation.test_help_invocation_emits_no_usage_text",
+ "eval.tests.test_zero_allocation.test_independent_runs_in_fresh_directories_are_identical",
+ "eval.tests.test_zero_allocation.test_large_argv_volume_still_ignored",
+ "eval.tests.test_zero_allocation.test_no_files_are_created_in_working_directory",
+ "eval.tests.test_zero_allocation.test_non_utf8_and_binary_arguments_are_ignored[accented_utf8]",
+ "eval.tests.test_zero_allocation.test_non_utf8_and_binary_arguments_are_ignored[high_ascii_bytes]",
+ "eval.tests.test_zero_allocation.test_non_utf8_and_binary_arguments_are_ignored[invalid_utf8_binary]",
+ "eval.tests.test_zero_allocation.test_non_utf8_and_binary_arguments_are_ignored[unicode_punctuation]",
+ "eval.tests.test_zero_allocation.test_non_utf8_and_binary_arguments_are_ignored[whitespace_blob]",
+ "eval.tests.test_zero_allocation.test_output_redirected_to_file_is_exact_success_line",
+ "eval.tests.test_zero_allocation.test_output_to_full_device_is_ignored",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[dash_stdin_marker]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[end_of_options]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[five_positionals]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[flag_then_value]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[help_flag]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[json_filename]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[missing_file_path]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[one_positional]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[positionals_and_flag]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[short_help]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[short_version]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[two_positionals]",
+ "eval.tests.test_zero_allocation.test_positional_and_flag_arguments_are_ignored[version_flag]",
+ "eval.tests.test_zero_allocation.test_runs_from_alternate_working_directory",
+ "eval.tests.test_zero_allocation.test_sigpipe_when_stdout_reader_closes_early",
+ "eval.tests.test_zero_allocation.test_single_large_argument_element_is_ignored",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[bare_number]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[empty]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[empty_object]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[garbage_text]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[invalid_text]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[large_payload]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[menu_like_json]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[nested_json]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[newline_only]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[null_literal]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[small_json]",
+ "eval.tests.test_zero_allocation.test_standard_input_is_never_read[spaces_only]",
+ "eval.tests.test_zero_allocation.test_stderr_is_empty",
+ "eval.tests.test_zero_allocation.test_stdin_from_closed_devnull",
+ "eval.tests.test_zero_allocation.test_stdin_marked_as_terminal_agnostic",
+ "eval.tests.test_zero_allocation.test_stdin_ref_file_argument_is_ignored",
+ "eval.tests.test_zero_allocation.test_stdout_has_exact_length",
+ "eval.tests.test_zero_allocation.test_stdout_is_exact_byte_frame",
+ "eval.tests.test_zero_allocation.test_stdout_is_single_line",
+ "eval.tests.test_zero_allocation.test_stdout_write_to_named_fifo_is_exact_frame",
+ "eval.tests.test_zero_allocation.test_succeeds_in_read_only_working_directory",
+ "eval.tests.test_zero_allocation.test_succeeds_with_stderr_detached_to_sink",
+ "eval.tests.test_zero_allocation.test_success_line_is_written_to_stdout_not_stderr_fd",
+ "eval.tests.test_zero_allocation.test_success_marker_has_no_excess_whitespace",
+ "eval.tests.test_zero_allocation.test_terminates_promptly_under_deadline",
+ "eval.tests.test_zero_allocation.test_truncates_preexisting_output_file",
+ "eval.tests.test_zero_allocation.test_unaffected_by_large_or_locale_heavy_environment"
+ ]
+ },
+ "generated_upstream": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_success_oracle.test_executable_ignores_arg_and_stdin_input",
+ "eval.tests.test_success_oracle.test_parses_valid_svg_menu_successfully",
+ "eval.tests.test_success_oracle.test_upstream_svg_menu_fixture_is_preserved"
+ ]
+ }
+ },
+ "commit": "68fe32ed6bcb5ac026671d6eadac9024a21c8b05",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.714413592287121,
+ "eval_clean_hashes": [
+ "7a302cc146562c052a3bd08caee4d07c2046fb228d330c6a56ad36cc4bb1917c"
+ ],
+ "input_record": {
+ "commit": "68fe32ed6bcb5ac026671d6eadac9024a21c8b05",
+ "difficulty": "easy",
+ "difficulty_code_lines": 5181,
+ "difficulty_has_tests": true,
+ "difficulty_product_code_lines": 5181,
+ "difficulty_runtime_deps": 0,
+ "difficulty_score": 1.714413592287121,
+ "difficulty_test_code_lines": 4353,
+ "full_name": "chadaustin/sajson",
+ "input_joern_zip": "cpp_joern/chadaustin__sajson.zip",
+ "joern_status": true,
+ "joern_time": 11.733382502105087,
+ "language": "cpp",
+ "pb_match": [
+ {
+ "pb_fullname": "ArthurSonzogni/json-tui",
+ "rank": 44,
+ "similarity": 0.5534906387329102
+ }
+ ],
+ "repo_path": "cpp/chadaustin__sajson",
+ "source": "commit:68fe32ed6bcb5ac026671d6eadac9024a21c8b05",
+ "status": "done",
+ "url": "https://github.com/chadaustin/sajson"
+ },
+ "instance_id": "chadaustin__sajson.68fe32e",
+ "language": "cpp",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_upstream",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "tests",
+ "termination_reason": "early_stopping"
+ }
+ ],
+ "repository": "chadaustin/sajson"
+}
diff --git a/chadaustin--sajson.68fe32e/tests/test.sh b/chadaustin--sajson.68fe32e/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chadaustin--sajson.68fe32e/tests/workspace.tar.gz b/chadaustin--sajson.68fe32e/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b1ca7d68375da7642db8c9eb9c5cff289f3ba093
--- /dev/null
+++ b/chadaustin--sajson.68fe32e/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7533c9ebe2503f5d646a2208d52bb41a8b5e978cc9522dc1993459f1a31c9887
+size 24643
diff --git a/chadmed--triforce.a4877aa/environment/Dockerfile b/chadmed--triforce.a4877aa/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..fcda33d89c241f216a19bcd9780cea160ab7d8c3
--- /dev/null
+++ b/chadmed--triforce.a4877aa/environment/Dockerfile
@@ -0,0 +1,59 @@
+FROM rust:1.97.1-bookworm
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV CARGO_HOME=/usr/local/cargo
+ENV RUSTUP_HOME=/usr/local/rustup
+ENV RUSTUP_TOOLCHAIN=1.97.1
+ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
+ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+RUN rustup component add llvm-tools-preview --toolchain 1.97.1
+RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
+RUN rustc --version && cargo --version && rustup show active-toolchain
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /tmp/programgym-download.sh
+RUN chmod 755 /tmp/programgym-download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /tmp/programgym-download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chadmed--triforce.a4877aa/environment/download.sh b/chadmed--triforce.a4877aa/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..603e6cb912204cd418bcc3e2e97e8e9571717923
--- /dev/null
+++ b/chadmed--triforce.a4877aa/environment/download.sh
@@ -0,0 +1,440 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# download.sh — standalone dependency prefetch for the triforce-lv2 Rust project.
+#
+# This file is sourced (`source /source_ro/download.sh`) in a read-only mount
+# while the container still has network access. It does NOT build, test, or
+# read any repository file. It writes the project's exact Cargo.toml and
+# Cargo.lock (inlined below) into a scratch directory, then runs
+# `cargo fetch --locked --manifest-path` against that generated manifest to
+# populate the shared cargo registry cache. The later offline build in
+# /workspace/source reuses that same cache, so the locked dependency versions
+# are guaranteed to be present with no network.
+#
+# No Rust-toolchain probing and no repository file reads are performed.
+
+# Source-safe: keep all env exports in the current shell; no `exit` in normal flow.
+set -u
+
+FETCH_DIR="${TMPDIR:-/tmp}/triforce_fetch_deps"
+
+# Wipe any prior scratch state so every run re-fetches cleanly.
+rm -rf "$FETCH_DIR"
+mkdir -p "$FETCH_DIR/src"
+
+# --- inline Cargo.toml (identical to the repository's) --------------------
+cat > "$FETCH_DIR/Cargo.toml" <<'CARGO_TOML'
+[package]
+name = "triforce-lv2"
+authors = ["James Calligeros"]
+description = "Minimum variance distortionless response beamformer for Apple mic arrays"
+license = "GPL-2.0-or-later"
+repository = "https://github.com/chadmed/triforce"
+version = "0.3.2"
+edition = "2021"
+keywords = ["lv2", "beamforming", "audio", "plugin"]
+categories = ["multimedia::audio"]
+
+[profile.release]
+opt-level = 3
+lto = "thin"
+
+[dependencies]
+lv2 = "0.6.0"
+nalgebra = "0.33.2"
+rustfft = "6.2.0"
+
+[lib]
+crate-type = ["cdylib","lib"]
+name = "triforce"
+CARGO_TOML
+
+# --- inline Cargo.lock (identical to the repository's) --------------------
+# Embedding the exact lockfile guarantees the offline build resolves the same
+# crate versions that were pre-fetched (e.g. rustfft 6.3.0, lv2-sys 2.0.0).
+cat > "$FETCH_DIR/Cargo.lock" <<'CARGO_LOCK'
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "approx"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
+
+[[package]]
+name = "bytemuck"
+version = "1.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9134a6ef01ce4b366b50689c94f82c14bc72bc5d0386829828a2e2752ef7958c"
+
+[[package]]
+name = "lv2"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "81300c8058a7747013c8f3e27e76eeceb8226621283d30d787b970019d8404f6"
+dependencies = [
+ "lv2-atom",
+ "lv2-core",
+ "lv2-midi",
+ "lv2-units",
+ "lv2-urid",
+ "urid",
+]
+
+[[package]]
+name = "lv2-atom"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "951b4e7b10349d32b7b7a26c15bd0f9cf42790b59531093d474f6964f5cba971"
+dependencies = [
+ "lv2-core",
+ "lv2-sys",
+ "lv2-units",
+ "urid",
+]
+
+[[package]]
+name = "lv2-core"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d50100435f793b25e9fcfe89c227dc1b1ca93bbfae0f3710149263fe4ba049de"
+dependencies = [
+ "lv2-core-derive",
+ "lv2-sys",
+ "urid",
+]
+
+[[package]]
+name = "lv2-core-derive"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7bf98f786ecb49030330834aaa458f84bbaf545d7084cf3dcb2fab2f03a1838b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "lv2-midi"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad23e6bcd0036b1859992b92bbf1855f99ed648886ed9ad9a32fc4ecf2a20f74"
+dependencies = [
+ "lv2-atom",
+ "lv2-sys",
+ "urid",
+ "wmidi",
+]
+
+[[package]]
+name = "lv2-sys"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9dd0f9e7de3649dcec348de51cbf611ab88688b97c0ce038f8c07b996b2a8e30"
+
+[[package]]
+name = "lv2-units"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "02b9470e6f71a96c49ce27ff15838b27f4f07300dec810313423b70ec7adaa39"
+dependencies = [
+ "lv2-sys",
+ "urid",
+]
+
+[[package]]
+name = "lv2-urid"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c0803444d1e66fbdbc345ef8243470979f8bab570cdaf0cada4586fc1624e68"
+dependencies = [
+ "lv2-core",
+ "lv2-sys",
+ "urid",
+]
+
+[[package]]
+name = "matrixmultiply"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
+dependencies = [
+ "autocfg",
+ "rawpointer",
+]
+
+[[package]]
+name = "nalgebra"
+version = "0.33.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26aecdf64b707efd1310e3544d709c5c0ac61c13756046aaaba41be5c4f66a3b"
+dependencies = [
+ "approx",
+ "matrixmultiply",
+ "nalgebra-macros",
+ "num-complex",
+ "num-rational",
+ "num-traits",
+ "simba",
+ "typenum",
+]
+
+[[package]]
+name = "nalgebra-macros"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "254a5372af8fc138e36684761d3c0cdb758a4410e938babcff1c860ce14ddbfc"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.101",
+]
+
+[[package]]
+name = "num-bigint"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
+dependencies = [
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-complex"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-integer"
+version = "0.1.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-rational"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
+dependencies = [
+ "num-bigint",
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "paste"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
+
+[[package]]
+name = "primal-check"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc0d895b311e3af9902528fbb8f928688abbd95872819320517cc24ca6b2bd08"
+dependencies = [
+ "num-integer",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.95"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.40"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rawpointer"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
+
+[[package]]
+name = "rustfft"
+version = "6.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f266ff9b0cfc79de11fd5af76a2bc672fe3ace10c96fa06456740fa70cb1ed49"
+dependencies = [
+ "num-complex",
+ "num-integer",
+ "num-traits",
+ "primal-check",
+ "strength_reduce",
+ "transpose",
+ "version_check",
+]
+
+[[package]]
+name = "safe_arch"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "simba"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3a386a501cd104797982c15ae17aafe8b9261315b5d07e3ec803f2ea26be0fa"
+dependencies = [
+ "approx",
+ "num-complex",
+ "num-traits",
+ "paste",
+ "wide",
+]
+
+[[package]]
+name = "strength_reduce"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82"
+
+[[package]]
+name = "syn"
+version = "1.0.109"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.101"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "transpose"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ad61aed86bc3faea4300c7aee358b4c6d0c8d6ccc36524c96e4c92ccf26e77e"
+dependencies = [
+ "num-integer",
+ "strength_reduce",
+]
+
+[[package]]
+name = "triforce-lv2"
+version = "0.3.2"
+dependencies = [
+ "lv2",
+ "nalgebra",
+ "rustfft",
+]
+
+[[package]]
+name = "typenum"
+version = "1.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f"
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
+
+[[package]]
+name = "urid"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6828b5d766e783093935fb2f23f26ffb28b7cb9313921cec67db8ca09f38a6a4"
+dependencies = [
+ "urid-derive",
+]
+
+[[package]]
+name = "urid-derive"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "819eee2ef008e55b0a415ed356db7772d0ad94ae499f0043015111fc34703644"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[package]]
+name = "wide"
+version = "0.7.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b5576b9a81633f3e8df296ce0063042a73507636cbe956c61133dd7034ab22"
+dependencies = [
+ "bytemuck",
+ "safe_arch",
+]
+
+[[package]]
+name = "wmidi"
+version = "3.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca299959bb6d529c2bee3feb517899959da3052c4a29eea0a8ff568b825eb6cf"
+CARGO_LOCK
+
+# Stub source for the [lib] target; `cargo fetch` only needs it to exist for
+# resolution, it is never compiled.
+printf '%s\n' '// Cargo-fetch resolution stub for the triforce crate.' \
+ '// download.sh never compiles the crate, so this file is never built.' > "$FETCH_DIR/src/lib.rs"
+
+# Fetch every locked dependency into the shared registry cache. The scratch
+# dir keeps cargo out of /source_ro and the repository tree. This is the only
+# network-dependent step in download.sh.
+cargo fetch --locked --manifest-path "$FETCH_DIR/Cargo.toml"
diff --git a/chadmed--triforce.a4877aa/environment/executable b/chadmed--triforce.a4877aa/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..be765726754131a149443981ad334dfd90c87daf
--- /dev/null
+++ b/chadmed--triforce.a4877aa/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:448730f63c06d614c4d7b65759be0db5e0a7a0dbec4f8ea2cf50df213e14a698
+size 1471344
diff --git a/chadmed--triforce.a4877aa/environment/harbor_prepare_download_env.sh b/chadmed--triforce.a4877aa/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..4a3a33381308d53b7bd2216a2375c8cd54ac24c4
--- /dev/null
+++ b/chadmed--triforce.a4877aa/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+command -v cargo
+command -v rustc
+command -v rustup
+cd /workspace
+set -a
+source /tmp/programgym-download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chadmed--triforce.a4877aa/environment/workspace.tar.gz b/chadmed--triforce.a4877aa/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..6fcb0f41e4a898367bfd32a3888d06dbfce520b2
--- /dev/null
+++ b/chadmed--triforce.a4877aa/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8801039b0276a0bc0462ea8765c2ed346cb367b392e350ce551f5f5523305f0b
+size 8134
diff --git a/chadmed--triforce.a4877aa/instruction.md b/chadmed--triforce.a4877aa/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chadmed--triforce.a4877aa/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chadmed--triforce.a4877aa/solution/solve.sh b/chadmed--triforce.a4877aa/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chadmed--triforce.a4877aa/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chadmed--triforce.a4877aa/task.toml b/chadmed--triforce.a4877aa/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..edb1e06596790a212fa9f4bcf5d3627bf3c17e38
--- /dev/null
+++ b/chadmed--triforce.a4877aa/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chadmed--triforce.a4877aa"
+description = "Synthetic ProgramGym cleanroom reconstruction task for chadmed/triforce"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "chadmed__triforce.a4877aa"
+repository = "chadmed/triforce"
+commit = "a4877aad4402d2827814a5a6dab0fc6ced555896"
+language = "rust"
+difficulty = "easy"
+difficulty_score = 1.1112625136590655
+test_branches = 2
+test_count = 421
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chadmed--triforce.a4877aa/tests/Dockerfile b/chadmed--triforce.a4877aa/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..0134a64cf31409020689a99b234432f2b5f5f7fe
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/Dockerfile
@@ -0,0 +1,68 @@
+FROM rust:1.97.1-bookworm
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV CARGO_HOME=/usr/local/cargo
+ENV RUSTUP_HOME=/usr/local/rustup
+ENV RUSTUP_TOOLCHAIN=1.97.1
+ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
+ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+RUN rustup component add llvm-tools-preview --toolchain 1.97.1
+RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
+RUN rustc --version && cargo --version && rustup show active-toolchain
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /tmp/programgym-download.sh
+RUN chmod 755 /tmp/programgym-download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /tmp/programgym-download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --break-system-packages \
+ --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chadmed--triforce.a4877aa/tests/blobs/tests/generated_module_01.tar.gz b/chadmed--triforce.a4877aa/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..3ac01900df5141efeb374c9dc29c69b88ca7cd25
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a48204fbe05c38a0ac1ce6ca4aaba62d4d335a0b6f53d31b31599d780191f342
+size 15969
diff --git a/chadmed--triforce.a4877aa/tests/blobs/tests/generated_module_02.tar.gz b/chadmed--triforce.a4877aa/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d1414d42b3b95067f9e135ebf3fd39e27273081d
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:edf8d978825016199745632af81df9f11ab388b364f8345e1fdb33dc4ecdd776
+size 7375
diff --git a/chadmed--triforce.a4877aa/tests/download.sh b/chadmed--triforce.a4877aa/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..603e6cb912204cd418bcc3e2e97e8e9571717923
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/download.sh
@@ -0,0 +1,440 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# download.sh — standalone dependency prefetch for the triforce-lv2 Rust project.
+#
+# This file is sourced (`source /source_ro/download.sh`) in a read-only mount
+# while the container still has network access. It does NOT build, test, or
+# read any repository file. It writes the project's exact Cargo.toml and
+# Cargo.lock (inlined below) into a scratch directory, then runs
+# `cargo fetch --locked --manifest-path` against that generated manifest to
+# populate the shared cargo registry cache. The later offline build in
+# /workspace/source reuses that same cache, so the locked dependency versions
+# are guaranteed to be present with no network.
+#
+# No Rust-toolchain probing and no repository file reads are performed.
+
+# Source-safe: keep all env exports in the current shell; no `exit` in normal flow.
+set -u
+
+FETCH_DIR="${TMPDIR:-/tmp}/triforce_fetch_deps"
+
+# Wipe any prior scratch state so every run re-fetches cleanly.
+rm -rf "$FETCH_DIR"
+mkdir -p "$FETCH_DIR/src"
+
+# --- inline Cargo.toml (identical to the repository's) --------------------
+cat > "$FETCH_DIR/Cargo.toml" <<'CARGO_TOML'
+[package]
+name = "triforce-lv2"
+authors = ["James Calligeros"]
+description = "Minimum variance distortionless response beamformer for Apple mic arrays"
+license = "GPL-2.0-or-later"
+repository = "https://github.com/chadmed/triforce"
+version = "0.3.2"
+edition = "2021"
+keywords = ["lv2", "beamforming", "audio", "plugin"]
+categories = ["multimedia::audio"]
+
+[profile.release]
+opt-level = 3
+lto = "thin"
+
+[dependencies]
+lv2 = "0.6.0"
+nalgebra = "0.33.2"
+rustfft = "6.2.0"
+
+[lib]
+crate-type = ["cdylib","lib"]
+name = "triforce"
+CARGO_TOML
+
+# --- inline Cargo.lock (identical to the repository's) --------------------
+# Embedding the exact lockfile guarantees the offline build resolves the same
+# crate versions that were pre-fetched (e.g. rustfft 6.3.0, lv2-sys 2.0.0).
+cat > "$FETCH_DIR/Cargo.lock" <<'CARGO_LOCK'
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "approx"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
+
+[[package]]
+name = "bytemuck"
+version = "1.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9134a6ef01ce4b366b50689c94f82c14bc72bc5d0386829828a2e2752ef7958c"
+
+[[package]]
+name = "lv2"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "81300c8058a7747013c8f3e27e76eeceb8226621283d30d787b970019d8404f6"
+dependencies = [
+ "lv2-atom",
+ "lv2-core",
+ "lv2-midi",
+ "lv2-units",
+ "lv2-urid",
+ "urid",
+]
+
+[[package]]
+name = "lv2-atom"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "951b4e7b10349d32b7b7a26c15bd0f9cf42790b59531093d474f6964f5cba971"
+dependencies = [
+ "lv2-core",
+ "lv2-sys",
+ "lv2-units",
+ "urid",
+]
+
+[[package]]
+name = "lv2-core"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d50100435f793b25e9fcfe89c227dc1b1ca93bbfae0f3710149263fe4ba049de"
+dependencies = [
+ "lv2-core-derive",
+ "lv2-sys",
+ "urid",
+]
+
+[[package]]
+name = "lv2-core-derive"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7bf98f786ecb49030330834aaa458f84bbaf545d7084cf3dcb2fab2f03a1838b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "lv2-midi"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad23e6bcd0036b1859992b92bbf1855f99ed648886ed9ad9a32fc4ecf2a20f74"
+dependencies = [
+ "lv2-atom",
+ "lv2-sys",
+ "urid",
+ "wmidi",
+]
+
+[[package]]
+name = "lv2-sys"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9dd0f9e7de3649dcec348de51cbf611ab88688b97c0ce038f8c07b996b2a8e30"
+
+[[package]]
+name = "lv2-units"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "02b9470e6f71a96c49ce27ff15838b27f4f07300dec810313423b70ec7adaa39"
+dependencies = [
+ "lv2-sys",
+ "urid",
+]
+
+[[package]]
+name = "lv2-urid"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c0803444d1e66fbdbc345ef8243470979f8bab570cdaf0cada4586fc1624e68"
+dependencies = [
+ "lv2-core",
+ "lv2-sys",
+ "urid",
+]
+
+[[package]]
+name = "matrixmultiply"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
+dependencies = [
+ "autocfg",
+ "rawpointer",
+]
+
+[[package]]
+name = "nalgebra"
+version = "0.33.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26aecdf64b707efd1310e3544d709c5c0ac61c13756046aaaba41be5c4f66a3b"
+dependencies = [
+ "approx",
+ "matrixmultiply",
+ "nalgebra-macros",
+ "num-complex",
+ "num-rational",
+ "num-traits",
+ "simba",
+ "typenum",
+]
+
+[[package]]
+name = "nalgebra-macros"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "254a5372af8fc138e36684761d3c0cdb758a4410e938babcff1c860ce14ddbfc"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.101",
+]
+
+[[package]]
+name = "num-bigint"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
+dependencies = [
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-complex"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-integer"
+version = "0.1.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-rational"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
+dependencies = [
+ "num-bigint",
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "paste"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
+
+[[package]]
+name = "primal-check"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc0d895b311e3af9902528fbb8f928688abbd95872819320517cc24ca6b2bd08"
+dependencies = [
+ "num-integer",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.95"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.40"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rawpointer"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
+
+[[package]]
+name = "rustfft"
+version = "6.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f266ff9b0cfc79de11fd5af76a2bc672fe3ace10c96fa06456740fa70cb1ed49"
+dependencies = [
+ "num-complex",
+ "num-integer",
+ "num-traits",
+ "primal-check",
+ "strength_reduce",
+ "transpose",
+ "version_check",
+]
+
+[[package]]
+name = "safe_arch"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "simba"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3a386a501cd104797982c15ae17aafe8b9261315b5d07e3ec803f2ea26be0fa"
+dependencies = [
+ "approx",
+ "num-complex",
+ "num-traits",
+ "paste",
+ "wide",
+]
+
+[[package]]
+name = "strength_reduce"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82"
+
+[[package]]
+name = "syn"
+version = "1.0.109"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.101"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "transpose"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ad61aed86bc3faea4300c7aee358b4c6d0c8d6ccc36524c96e4c92ccf26e77e"
+dependencies = [
+ "num-integer",
+ "strength_reduce",
+]
+
+[[package]]
+name = "triforce-lv2"
+version = "0.3.2"
+dependencies = [
+ "lv2",
+ "nalgebra",
+ "rustfft",
+]
+
+[[package]]
+name = "typenum"
+version = "1.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f"
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
+
+[[package]]
+name = "urid"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6828b5d766e783093935fb2f23f26ffb28b7cb9313921cec67db8ca09f38a6a4"
+dependencies = [
+ "urid-derive",
+]
+
+[[package]]
+name = "urid-derive"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "819eee2ef008e55b0a415ed356db7772d0ad94ae499f0043015111fc34703644"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[package]]
+name = "wide"
+version = "0.7.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b5576b9a81633f3e8df296ce0063042a73507636cbe956c61133dd7034ab22"
+dependencies = [
+ "bytemuck",
+ "safe_arch",
+]
+
+[[package]]
+name = "wmidi"
+version = "3.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca299959bb6d529c2bee3feb517899959da3052c4a29eea0a8ff568b825eb6cf"
+CARGO_LOCK
+
+# Stub source for the [lib] target; `cargo fetch` only needs it to exist for
+# resolution, it is never compiled.
+printf '%s\n' '// Cargo-fetch resolution stub for the triforce crate.' \
+ '// download.sh never compiles the crate, so this file is never built.' > "$FETCH_DIR/src/lib.rs"
+
+# Fetch every locked dependency into the shared registry cache. The scratch
+# dir keeps cargo out of /source_ro and the repository tree. This is the only
+# network-dependent step in download.sh.
+cargo fetch --locked --manifest-path "$FETCH_DIR/Cargo.toml"
diff --git a/chadmed--triforce.a4877aa/tests/executable b/chadmed--triforce.a4877aa/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..be765726754131a149443981ad334dfd90c87daf
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:448730f63c06d614c4d7b65759be0db5e0a7a0dbec4f8ea2cf50df213e14a698
+size 1471344
diff --git a/chadmed--triforce.a4877aa/tests/harbor_prepare_download_env.sh b/chadmed--triforce.a4877aa/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..4a3a33381308d53b7bd2216a2375c8cd54ac24c4
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+command -v cargo
+command -v rustc
+command -v rustup
+cd /workspace
+set -a
+source /tmp/programgym-download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chadmed--triforce.a4877aa/tests/programgym_evaluator.py b/chadmed--triforce.a4877aa/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chadmed--triforce.a4877aa/tests/programgym_task.json b/chadmed--triforce.a4877aa/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..1439261b600aa455ee37ecd508eefd16fa9c25f3
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/programgym_task.json
@@ -0,0 +1,994 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_arg_parsing.test_empty_dot_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_exponent_only_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_fractional_seconds",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_integer_seconds",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_negative_integer_seconds",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_newline_padded_number_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_positive_signed_integer_seconds",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_scientific_notation_zero_exponent_runs",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_sign_only_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_tab_padded_number_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_thousands_separator_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_tiny_scientific_notation",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_trailing_whitespace_number_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_underscore_separator_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_arg_parsing.test_whitespace_padded_number_is_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_arg_parsing.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_exit_codes.test_failure_exit_code_is_rust_panic_101",
+ "reasons": [
+ {
+ "id": "all_assertions_weak",
+ "message": "pytest test uses only weak assertions",
+ "path": "eval/tests/test_exit_codes.py",
+ "repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_exit_codes.test_missing_second_argument_defaults_and_exits_zero",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_exit_codes.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_exit_codes.test_nan_parses_as_f32_and_exits_zero",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_exit_codes.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_io_execution_contract.test_long_invalid_token_fails_gracefully",
+ "reasons": [
+ {
+ "id": "all_assertions_weak",
+ "message": "pytest test uses only weak assertions",
+ "path": "eval/tests/test_io_execution_contract.py",
+ "repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_io_execution_contract.test_whitespace_preceded_long_token_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_io_execution_contract.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_non_ascii_and_extra_literals.test_error_adjective_forms_are_rejected",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_non_ascii_and_extra_literals.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parse_boundary_and_semantics.test_many_extra_args_still_ignored",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_parse_boundary_and_semantics.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parse_boundary_and_semantics.test_rejected_plus_alone",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_parse_boundary_and_semantics.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parse_boundary_and_semantics.test_rejected_single_dash_alone",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_parse_boundary_and_semantics.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_runtime_scaling.test_infinite_duration_hangs",
+ "reasons": [
+ {
+ "id": "trivially_true",
+ "message": "pytest test contains a trivially true assertion",
+ "path": "eval/tests/test_runtime_scaling.py",
+ "repair_hint": "Replace trivially true assertions with exact observable behavior checks.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_runtime_scaling.test_negative_infinity_finishes_quickly",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_runtime_scaling.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_runtime_scaling.test_small_positive_duration_parses_and_runs",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_runtime_scaling.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_runtime_scaling.test_very_large_finite_duration_does_not_panic",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_runtime_scaling.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_arg_parsing.test_empty_dot_is_rejected",
+ "eval.tests.test_arg_parsing.test_exponent_only_is_rejected",
+ "eval.tests.test_arg_parsing.test_fractional_seconds",
+ "eval.tests.test_arg_parsing.test_integer_seconds",
+ "eval.tests.test_arg_parsing.test_negative_integer_seconds",
+ "eval.tests.test_arg_parsing.test_newline_padded_number_is_rejected",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[+1.5]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[+1]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[+7]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[+nan]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-0.5]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-1000]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-1]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-2e3]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-7]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-Infinity]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-inf]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[-nan]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[0.0]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[0.25]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[0.5]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[0]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[1.5]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[1]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[1e-2]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[1e-3]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[1e0]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[2.5e-4]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[2]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[5e-1]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[NaN]",
+ "eval.tests.test_arg_parsing.test_parseable_forms_exit_zero[nan]",
+ "eval.tests.test_arg_parsing.test_positive_signed_integer_seconds",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[ ]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[!]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[#]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[%]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[&]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[...]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[..1]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[..]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[0b101]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[0o17]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[0x10]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1,000]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1..]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1.2.3]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1.5ms]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1_000]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1d]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1ms]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[1s]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[5m]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[60s]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[?]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[@]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[\\n]",
+ "eval.tests.test_arg_parsing.test_rejected_forms_print_usage[\\t]",
+ "eval.tests.test_arg_parsing.test_scientific_notation_zero_exponent_runs",
+ "eval.tests.test_arg_parsing.test_sign_only_is_rejected",
+ "eval.tests.test_arg_parsing.test_tab_padded_number_is_rejected",
+ "eval.tests.test_arg_parsing.test_thousands_separator_is_rejected",
+ "eval.tests.test_arg_parsing.test_tiny_scientific_notation",
+ "eval.tests.test_arg_parsing.test_trailing_whitespace_number_is_rejected",
+ "eval.tests.test_arg_parsing.test_underscore_separator_is_rejected",
+ "eval.tests.test_arg_parsing.test_whitespace_padded_number_is_rejected",
+ "eval.tests.test_exit_codes.test_failure_does_not_print_usage_to_stdout",
+ "eval.tests.test_exit_codes.test_failure_exit_code_is_rust_panic_101",
+ "eval.tests.test_exit_codes.test_failure_stderr_contains_only_usage[ 5]",
+ "eval.tests.test_exit_codes.test_failure_stderr_contains_only_usage[5 ]",
+ "eval.tests.test_exit_codes.test_failure_stderr_contains_only_usage[]",
+ "eval.tests.test_exit_codes.test_failure_stderr_contains_only_usage[abc]",
+ "eval.tests.test_exit_codes.test_missing_second_argument_defaults_and_exits_zero",
+ "eval.tests.test_exit_codes.test_nan_parses_as_f32_and_exits_zero",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[#1]",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[$1]",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[0b1]",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[0o7]",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[0x1]",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[1.d]",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[]",
+ "eval.tests.test_exit_codes.test_non_decimal_and_bogus_literals_fail[d1]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[+1.2]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[+2.5]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[-0.0]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[-0]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[-12.5]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[-1]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[-3600]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[-nan]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.0001]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.001]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.01]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.021333]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.021]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.02]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.0]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0.5e-3]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[0]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[1.0]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[1.25]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[1.5e-1]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[1]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[1e-10]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[1e-2]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[1e-3]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[2.5]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[3.14159]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[6.0]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[6]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[9]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[NaN]",
+ "eval.tests.test_exit_codes.test_parseable_float_exits_zero[nan]",
+ "eval.tests.test_exit_codes.test_success_stdout_and_stderr_are_empty[-1]",
+ "eval.tests.test_exit_codes.test_success_stdout_and_stderr_are_empty[0.0]",
+ "eval.tests.test_exit_codes.test_success_stdout_and_stderr_are_empty[0]",
+ "eval.tests.test_exit_codes.test_success_stdout_and_stderr_are_empty[12.5]",
+ "eval.tests.test_exit_codes.test_success_stdout_and_stderr_are_empty[5]",
+ "eval.tests.test_exit_codes.test_success_stdout_and_stderr_are_empty[nan]",
+ "eval.tests.test_exit_codes.test_success_writes_nothing_to_stdout",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[ ]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[ 5]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[ ]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[()]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[*]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[+]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[--]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[-]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[.]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[0x10]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[1,5]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[1.2.3.4]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[1.2.3]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[12,34]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[12abc]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[1_000]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[5 ]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[5\\t]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[\\t5]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[abc,def]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[abc12]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[abc]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[e]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[false]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[foo]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[hello]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[one]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[true]",
+ "eval.tests.test_exit_codes.test_unparseable_argument_prints_usage_and_exits_101[zero]",
+ "eval.tests.test_exit_codes.test_usage_banner_exact_text",
+ "eval.tests.test_io_execution_contract.test_exit_code_stable_across_backtrace_settings",
+ "eval.tests.test_io_execution_contract.test_failure_ignores_arbitrary_stdin[1.2.3]",
+ "eval.tests.test_io_execution_contract.test_failure_ignores_arbitrary_stdin[]",
+ "eval.tests.test_io_execution_contract.test_failure_ignores_arbitrary_stdin[not-a-number]",
+ "eval.tests.test_io_execution_contract.test_failure_ignores_arbitrary_stdin[xyz]",
+ "eval.tests.test_io_execution_contract.test_fractional_seconds_are_not_rounded_to_integer_stream_contract",
+ "eval.tests.test_io_execution_contract.test_large_valid_seconds_leaves_streams_clean",
+ "eval.tests.test_io_execution_contract.test_long_invalid_token_fails_gracefully",
+ "eval.tests.test_io_execution_contract.test_long_valid_subnormal_scale_token_deterministic",
+ "eval.tests.test_io_execution_contract.test_long_valid_zero_fill_token_deterministic",
+ "eval.tests.test_io_execution_contract.test_mixed_length_invalid_tokens_share_oracle",
+ "eval.tests.test_io_execution_contract.test_rust_backtrace_0_has_no_backtrace_section",
+ "eval.tests.test_io_execution_contract.test_rust_backtrace_1_emits_backtrace_section",
+ "eval.tests.test_io_execution_contract.test_success_ignores_arbitrary_stdin[-1]",
+ "eval.tests.test_io_execution_contract.test_success_ignores_arbitrary_stdin[0]",
+ "eval.tests.test_io_execution_contract.test_success_ignores_arbitrary_stdin[12.5]",
+ "eval.tests.test_io_execution_contract.test_success_ignores_arbitrary_stdin[1e-3]",
+ "eval.tests.test_io_execution_contract.test_success_ignores_arbitrary_stdin[5]",
+ "eval.tests.test_io_execution_contract.test_whitespace_preceded_long_token_rejected",
+ "eval.tests.test_non_ascii_and_extra_literals.test_error_adjective_forms_are_rejected",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[+0E0]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[-0E0]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[-0e-100]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[0.00]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[0.0e10]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[0e-100]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[1E-5]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[1e-100]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[1e-39]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[2.5e-100]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[9.7e-8]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_extra_valid_forms_exit_zero[naN]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_missing_argument_uses_zero_fill_and_exits_zero",
+ "eval.tests.test_non_ascii_and_extra_literals.test_mixed_token_rejects[1Infinity]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_mixed_token_rejects[1NaN]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_mixed_token_rejects[Infinity1]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_mixed_token_rejects[NaN1]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_positive_infinity_spellings_drive_unbounded_loop[1E5]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_positive_infinity_spellings_drive_unbounded_loop[1e39]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_positive_infinity_spellings_drive_unbounded_loop[INF]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_positive_infinity_spellings_drive_unbounded_loop[Infinity]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_positive_infinity_spellings_drive_unbounded_loop[infinity]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_repeated_runs_are_byte_stable_and_isolated[0.5]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_repeated_runs_are_byte_stable_and_isolated[1.25]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_repeated_runs_are_byte_stable_and_isolated[5]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[1\\u0661]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[1\\u200b]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[1\\u2153]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[1\\u2212]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[1\\xa0]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[5\\uff15]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\u0661]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\u2007]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\u200b1]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\u200b]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\u2153]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\u22121]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\uff15]",
+ "eval.tests.test_non_ascii_and_extra_literals.test_unicode_non_ascii_forms_rejected[\\xa0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_accepted_forms_leave_streams_empty[+nan]",
+ "eval.tests.test_parse_boundary_and_semantics.test_accepted_forms_leave_streams_empty[-0.0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_accepted_forms_leave_streams_empty[-inf]",
+ "eval.tests.test_parse_boundary_and_semantics.test_accepted_forms_leave_streams_empty[.5]",
+ "eval.tests.test_parse_boundary_and_semantics.test_accepted_forms_leave_streams_empty[1e-9]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[+0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[+1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[+nan]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[-0.0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[-0e0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[-1.175e-38]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[-1e46]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[-3.14159]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[-inf]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[-nan]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[.5]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[0.000001]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[007]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[00]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[0e0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[1.5e-30]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[1.e-1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[1e+0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[1e-2]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[1e-9]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[2.71828]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[3.4e-5]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[5.]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[9e-1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_parseable_forms_exit_zero[NaN]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[++1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[+-1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[-+1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[-1-2]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[-1e]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[0b0.1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[0b]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[0o]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[0x]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1 2]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1 e3]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1,2,3]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1,234]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1-2]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1..0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1..1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1.2.3]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1.2.3e4]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1.2e]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1.e]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1_'000]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1e 3]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1e+]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1e-]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1e3.5]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1e9999x]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1e]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[1ex]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[3percent]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[50%]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[abc.def]",
+ "eval.tests.test_parse_boundary_and_semantics.test_additional_rejected_forms_print_usage[e3]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_invalid_first_still_panic[0]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_invalid_first_still_panic[1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_invalid_first_still_panic[]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_invalid_first_still_panic[abc]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_invalid_first_still_panic[x]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_valid_first_exit_zero[ ]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_valid_first_exit_zero[--help]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_valid_first_exit_zero[-h]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_valid_first_exit_zero[5]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_valid_first_exit_zero[]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_valid_first_exit_zero[junk]",
+ "eval.tests.test_parse_boundary_and_semantics.test_extra_args_after_valid_first_exit_zero[not-a-number]",
+ "eval.tests.test_parse_boundary_and_semantics.test_failure_banner_golden_across_inputs[1.2.3]",
+ "eval.tests.test_parse_boundary_and_semantics.test_failure_banner_golden_across_inputs[1e]",
+ "eval.tests.test_parse_boundary_and_semantics.test_failure_banner_golden_across_inputs[not-a-number]",
+ "eval.tests.test_parse_boundary_and_semantics.test_failure_banner_golden_across_inputs[xyzzy]",
+ "eval.tests.test_parse_boundary_and_semantics.test_failure_usage_golden_exact",
+ "eval.tests.test_parse_boundary_and_semantics.test_lone_point_and_repeated_sign_rejected[+.]",
+ "eval.tests.test_parse_boundary_and_semantics.test_lone_point_and_repeated_sign_rejected[--1]",
+ "eval.tests.test_parse_boundary_and_semantics.test_lone_point_and_repeated_sign_rejected[-.]",
+ "eval.tests.test_parse_boundary_and_semantics.test_lone_point_and_repeated_sign_rejected[-e5]",
+ "eval.tests.test_parse_boundary_and_semantics.test_lone_point_and_repeated_sign_rejected[1--]",
+ "eval.tests.test_parse_boundary_and_semantics.test_many_extra_args_still_ignored",
+ "eval.tests.test_parse_boundary_and_semantics.test_rejected_plus_alone",
+ "eval.tests.test_parse_boundary_and_semantics.test_rejected_single_dash_alone",
+ "eval.tests.test_parse_boundary_and_semantics.test_subnormal_and_underflow_forms_parse[1.4e-45]",
+ "eval.tests.test_parse_boundary_and_semantics.test_subnormal_and_underflow_forms_parse[1e-45]",
+ "eval.tests.test_parse_boundary_and_semantics.test_subnormal_and_underflow_forms_parse[1e-46]",
+ "eval.tests.test_parse_boundary_and_semantics.test_subnormal_and_underflow_forms_parse[2.0e-40]",
+ "eval.tests.test_parse_boundary_and_semantics.test_subnormal_and_underflow_forms_parse[3e-45]",
+ "eval.tests.test_parse_boundary_and_semantics.test_subnormal_and_underflow_forms_parse[5.6e-40]",
+ "eval.tests.test_parse_boundary_and_semantics.test_usage_line_order_is_stable",
+ "eval.tests.test_runtime_scaling.test_duration_monotonicity_5_vs_1",
+ "eval.tests.test_runtime_scaling.test_duration_monotonicity_6_vs_2",
+ "eval.tests.test_runtime_scaling.test_infinite_duration_hangs",
+ "eval.tests.test_runtime_scaling.test_nan_duration_is_instant",
+ "eval.tests.test_runtime_scaling.test_negative_duration_is_instant",
+ "eval.tests.test_runtime_scaling.test_negative_infinity_finishes_quickly",
+ "eval.tests.test_runtime_scaling.test_positive_duration_performs_dsp_work",
+ "eval.tests.test_runtime_scaling.test_scale_factor_matches_iteration_model",
+ "eval.tests.test_runtime_scaling.test_small_positive_duration_parses_and_runs",
+ "eval.tests.test_runtime_scaling.test_sub_iteration_duration_is_instant",
+ "eval.tests.test_runtime_scaling.test_varying_durations_complete_without_hanging[0.1]",
+ "eval.tests.test_runtime_scaling.test_varying_durations_complete_without_hanging[0.5]",
+ "eval.tests.test_runtime_scaling.test_varying_durations_complete_without_hanging[10]",
+ "eval.tests.test_runtime_scaling.test_varying_durations_complete_without_hanging[1]",
+ "eval.tests.test_runtime_scaling.test_varying_durations_complete_without_hanging[20]",
+ "eval.tests.test_runtime_scaling.test_varying_durations_complete_without_hanging[2]",
+ "eval.tests.test_runtime_scaling.test_varying_durations_complete_without_hanging[5]",
+ "eval.tests.test_runtime_scaling.test_very_large_finite_duration_does_not_panic",
+ "eval.tests.test_runtime_scaling.test_zero_seconds_is_effectively_instant"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_performance_test_io.test_closed_stdin_is_ignored",
+ "reasons": [
+ {
+ "detail": "AssertionError: assert b'' == '' + where b'' = CompletedProcess(args=['/workspace/golden-2/executable', '0.5'], returncode=0, stdout=b'', stderr=b'').stdout",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_performance_test_io.test_leading_plus_seconds_exit_zero[plus-+5]",
+ "reasons": [
+ {
+ "detail": "subprocess.TimeoutExpired: Command '['/workspace/golden-2/executable', '+5']' timed out after 15 seconds",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_performance_test_io.test_rust_backtrace_full_emits_verbose_backtrace",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_performance_test_io.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_performance_test_io.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_performance_test_io.test_scientific_notation_seconds_exit_zero[sci-5e0]",
+ "reasons": [
+ {
+ "detail": "subprocess.TimeoutExpired: Command '['/workspace/golden-2/executable', '5e0']' timed out after 15 seconds",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-5]",
+ "reasons": [
+ {
+ "detail": "subprocess.TimeoutExpired: Command '['/workspace/golden-2/executable', '5']' timed out after 15 seconds",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'5.']",
+ "reasons": [
+ {
+ "detail": "subprocess.TimeoutExpired: Command '['/workspace/golden-2/executable', '5.']' timed out after 15 seconds",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-\"'x'\"]",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'\"5\"']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'#flag']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'$']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'%']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'+']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'++']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'---']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'-e5']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'0/1']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'0x1f']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1 2 3']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1,000']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1..2']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1//2']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'12f']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1_0']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1e+']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1e-']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'1e9e9']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'2e']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'3.4.5']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'5..']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'64f']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'INFINITYx']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'NaNx']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'false']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'infinity!']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'null']",
+ "eval.tests.test_performance_test_io.test_additional_malformed_panics_with_exact_golden_stderr[malformed2-'true']",
+ "eval.tests.test_performance_test_io.test_closed_stdin_is_ignored",
+ "eval.tests.test_performance_test_io.test_default_panic_is_distinct_from_backtrace_mode",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range--0.001]",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range--0.0]",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range--10]",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range--1]",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range--2.5]",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range--inf]",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range--nan]",
+ "eval.tests.test_performance_test_io.test_empty_or_negative_range_seconds_exit_zero[empty-range-nan]",
+ "eval.tests.test_performance_test_io.test_extra_arguments_are_ignored[extra-0.0 extra]",
+ "eval.tests.test_performance_test_io.test_extra_arguments_are_ignored[extra-0.5 --help]",
+ "eval.tests.test_performance_test_io.test_extra_arguments_are_ignored[extra-1 a b c]",
+ "eval.tests.test_performance_test_io.test_finite_duration_completes_in_time[finite-12]",
+ "eval.tests.test_performance_test_io.test_finite_duration_completes_in_time[finite-15]",
+ "eval.tests.test_performance_test_io.test_finite_overflow_seconds_saturate_and_spin[finite-overflow-1e20]",
+ "eval.tests.test_performance_test_io.test_finite_overflow_seconds_saturate_and_spin[finite-overflow-1e30]",
+ "eval.tests.test_performance_test_io.test_finite_overflow_seconds_saturate_and_spin[finite-overflow-1e39]",
+ "eval.tests.test_performance_test_io.test_finite_overflow_seconds_saturate_and_spin[finite-overflow-3.4e38]",
+ "eval.tests.test_performance_test_io.test_leading_plus_seconds_exit_zero[plus-+0.5]",
+ "eval.tests.test_performance_test_io.test_leading_plus_seconds_exit_zero[plus-+0]",
+ "eval.tests.test_performance_test_io.test_leading_plus_seconds_exit_zero[plus-+1]",
+ "eval.tests.test_performance_test_io.test_leading_plus_seconds_exit_zero[plus-+5]",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-' ']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-' 5']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'-']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'--']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'0x10']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'1.2.3']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'12,5']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'1__0']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'1e']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'5 ']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'5 abc']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'5\\\\n6']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'5seconds']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'5x']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'NaN f32']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'NaN()']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'\\U0001f355pizza']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'\\\\t']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'abc']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'five']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'h\\xe9llo-w\\xf6rld']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'nan()']",
+ "eval.tests.test_performance_test_io.test_malformed_argument_panics_with_exact_golden_stderr[malformed-'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']",
+ "eval.tests.test_performance_test_io.test_moderate_duration_completes_exit_zero",
+ "eval.tests.test_performance_test_io.test_nan_negative_infinity_spelling_variants_exit_zero[empty-variant-+nan]",
+ "eval.tests.test_performance_test_io.test_nan_negative_infinity_spelling_variants_exit_zero[empty-variant--INF]",
+ "eval.tests.test_performance_test_io.test_nan_negative_infinity_spelling_variants_exit_zero[empty-variant--Infinity]",
+ "eval.tests.test_performance_test_io.test_nan_negative_infinity_spelling_variants_exit_zero[empty-variant--NaN]",
+ "eval.tests.test_performance_test_io.test_nan_negative_infinity_spelling_variants_exit_zero[empty-variant--infinity]",
+ "eval.tests.test_performance_test_io.test_nan_negative_infinity_spelling_variants_exit_zero[empty-variant-NAN]",
+ "eval.tests.test_performance_test_io.test_nan_negative_infinity_spelling_variants_exit_zero[empty-variant-NaN]",
+ "eval.tests.test_performance_test_io.test_no_arguments_defaults_to_60_seconds_exits_0",
+ "eval.tests.test_performance_test_io.test_panic_location_points_to_performance_test_source",
+ "eval.tests.test_performance_test_io.test_panic_uses_rust_panic_exit_status",
+ "eval.tests.test_performance_test_io.test_piped_stdin_is_ignored",
+ "eval.tests.test_performance_test_io.test_rust_backtrace_0_keeps_short_usage_note",
+ "eval.tests.test_performance_test_io.test_rust_backtrace_1_emits_stack_backtrace_golden",
+ "eval.tests.test_performance_test_io.test_rust_backtrace_full_emits_verbose_backtrace",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-+inf]",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-+infinity]",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-INFINITY]",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-INF]",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-Inf]",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-Infinity]",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-inf]",
+ "eval.tests.test_performance_test_io.test_saturating_infinity_spellings_spin_beyond_window[sat-infinity]",
+ "eval.tests.test_performance_test_io.test_scientific_notation_seconds_exit_zero[sci-0.5e1]",
+ "eval.tests.test_performance_test_io.test_scientific_notation_seconds_exit_zero[sci-1E1]",
+ "eval.tests.test_performance_test_io.test_scientific_notation_seconds_exit_zero[sci-1e-3]",
+ "eval.tests.test_performance_test_io.test_scientific_notation_seconds_exit_zero[sci-2.5e0]",
+ "eval.tests.test_performance_test_io.test_scientific_notation_seconds_exit_zero[sci-5e0]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0.000000]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0.001]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0.01]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0.0]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0.1]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0.25]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0.5]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-0]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-1.5]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-10]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-1]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-2.75]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-2]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-3]",
+ "eval.tests.test_performance_test_io.test_small_valid_seconds_exit_zero[small-5]",
+ "eval.tests.test_performance_test_io.test_subnormal_duration_underflows_to_empty_loop",
+ "eval.tests.test_performance_test_io.test_tiny_fractional_seconds_exit_zero",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'-0.5']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'.5']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'0.0001']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'0.75']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'01']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'1.25']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'1e-5']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'2e-3']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'3.33']",
+ "eval.tests.test_performance_test_io.test_valid_fringe_seconds_exit_zero[fringe-'5.']"
+ ]
+ }
+ },
+ "commit": "a4877aad4402d2827814a5a6dab0fc6ced555896",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.1112625136590655,
+ "eval_clean_hashes": [
+ "448730f63c06d614c4d7b65759be0db5e0a7a0dbec4f8ea2cf50df213e14a698"
+ ],
+ "input_record": {
+ "codeql_db_mb": 84.28,
+ "codeql_status": true,
+ "codeql_time": 48.10211289813742,
+ "commit": "a4877aad4402d2827814a5a6dab0fc6ced555896",
+ "commits": 47,
+ "contributors": 2,
+ "difficulty": "easy",
+ "difficulty_code_lines": 323,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 323,
+ "difficulty_runtime_deps": 3,
+ "difficulty_score": 1.1112625136590655,
+ "difficulty_test_code_lines": 28,
+ "full_name": "chadmed/triforce",
+ "github_stars": 220,
+ "input_codeql_db": "rust_codeql/chadmed__triforce",
+ "language": "rs",
+ "pb_match": [
+ {
+ "pb_fullname": "BLAKE3-team/BLAKE3",
+ "rank": 832,
+ "similarity": 0.3993576765060425
+ },
+ {
+ "pb_fullname": "rust-embedded/svd2rust",
+ "rank": 474,
+ "similarity": 0.5168371200561523
+ }
+ ],
+ "repo_age": 1.61,
+ "repo_path": "rust/chadmed__triforce",
+ "rust_channel": "stable",
+ "rust_edition": "2021",
+ "rust_release_date": "2021-10-21",
+ "rust_version": "1.56.0",
+ "rust_version_source": "edition",
+ "source": "commit:a4877aad4402d2827814a5a6dab0fc6ced555896",
+ "status": "done",
+ "url": "https://github.com/chadmed/triforce"
+ },
+ "instance_id": "chadmed__triforce.a4877aa",
+ "language": "rust",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "chadmed/triforce"
+}
diff --git a/chadmed--triforce.a4877aa/tests/test.sh b/chadmed--triforce.a4877aa/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chadmed--triforce.a4877aa/tests/workspace.tar.gz b/chadmed--triforce.a4877aa/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..6fcb0f41e4a898367bfd32a3888d06dbfce520b2
--- /dev/null
+++ b/chadmed--triforce.a4877aa/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8801039b0276a0bc0462ea8765c2ed346cb367b392e350ce551f5f5523305f0b
+size 8134
diff --git a/chakaz--reflang.1e00e79/environment/Dockerfile b/chakaz--reflang.1e00e79/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..736b92148dd4c993902b7d08b80956d73d9819e7
--- /dev/null
+++ b/chakaz--reflang.1e00e79/environment/Dockerfile
@@ -0,0 +1,57 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
+ARG GCC_VERSION=13.3.0
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chakaz--reflang.1e00e79/environment/download.sh b/chakaz--reflang.1e00e79/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..97051020596dcfe5559fc07127f03ca930a46849
--- /dev/null
+++ b/chakaz--reflang.1e00e79/environment/download.sh
@@ -0,0 +1,63 @@
+#!/usr/bin/env bash
+# download.sh - ProgramGym networked download/prefetch stage for reflang.
+# Sourced via: source /source_ro/download.sh
+# Installs the libclang/LLVM system packages that the reflang CMake build
+# requires and exports the environment variables build.sh relies on.
+# This script performs NO compilation, linking, or testing.
+set -e
+
+export DEBIAN_FRONTEND=noninteractive
+
+# reflang's CMake FindLibClang module requires:
+# - the llvm-config executable (to derive --includedir / --libdir),
+# - the clang headers (clang-c/Index.h),
+# - the libclang shared library.
+# We install libclang-dev (headers + libclang) and the llvm meta-package (which
+# provides the bare /usr/bin/llvm-config symlink). All URLs/versions come from
+# the Ubuntu 22.04 archive explicitly named below; download.sh is standalone and
+# reads no repository file.
+apt-get update
+apt-get install -y --no-install-recommends \
+ libclang-dev \
+ llvm \
+ g++-11
+
+# Build with the Ubuntu system g++-11 rather than the base image's xPack GCC 13.
+# The xPack compiler links libstdc++ with a newer GLIBCXX ABI (3.4.32) than the
+# system libstdc++ provides (top at 3.4.30); linking reflang with g++-11 keeps the
+# executable ABI-consistent with the system libclang and libstdc++.
+if command -v g++-11; then
+ export CC="$(command -v gcc-11)"
+ export CXX="$(command -v g++-11)"
+fi
+
+# Find llvm-config: prefer the bare /usr/bin/llvm-config symlink, then fall back
+# to versioned binaries across LLVM releases.
+export LLVM_CONFIG=""
+if command -v llvm-config; then
+ export LLVM_CONFIG="$(command -v llvm-config)"
+else
+ for cand in llvm-config-17 llvm-config-16 llvm-config-15 llvm-config-14 \
+ llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10 \
+ llvm-config-3.9 llvm-config-4.0; do
+ if command -v "$cand"; then
+ export LLVM_CONFIG="$(command -v "$cand")"
+ break
+ fi
+ done
+fi
+
+if [ -z "${LLVM_CONFIG:-}" ]; then
+ echo "download.sh: ERROR: no llvm-config executable found after apt install." >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+
+# The libclang headers and library are validated at CMake configure time by the
+# repository's cmake/FindLibClang.cmake (which invokes llvm-config --includedir /
+# --libdir and fatal-errors if they are absent). No such check is performed here.
+
+echo "download.sh: prepared reflang dependencies using LLVM_CONFIG=${LLVM_CONFIG}."
diff --git a/chakaz--reflang.1e00e79/environment/executable b/chakaz--reflang.1e00e79/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..0f7952252dd3a22051a41e3f4f2c0daec2af6113
--- /dev/null
+++ b/chakaz--reflang.1e00e79/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43ddd837bea362cfa55e55645808c172dc8d8e5717cf078ad6bf4e166c841d75
+size 408976
diff --git a/chakaz--reflang.1e00e79/environment/harbor_prepare_download_env.sh b/chakaz--reflang.1e00e79/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chakaz--reflang.1e00e79/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chakaz--reflang.1e00e79/environment/programgym-gcc13.tar.gz b/chakaz--reflang.1e00e79/environment/programgym-gcc13.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d65584edfe74425f789a3d2095fa0f130d7ab461
--- /dev/null
+++ b/chakaz--reflang.1e00e79/environment/programgym-gcc13.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
+size 146620404
diff --git a/chakaz--reflang.1e00e79/environment/workspace.tar.gz b/chakaz--reflang.1e00e79/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..85d0e9e348fbf8bb9e2749249f62a5fe8d185e28
--- /dev/null
+++ b/chakaz--reflang.1e00e79/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:64c807bb4810966c60f680d99296137a31556bbd40d9d3c3e2e57478d1e2c6d8
+size 19012
diff --git a/chakaz--reflang.1e00e79/instruction.md b/chakaz--reflang.1e00e79/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chakaz--reflang.1e00e79/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chakaz--reflang.1e00e79/solution/solve.sh b/chakaz--reflang.1e00e79/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chakaz--reflang.1e00e79/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chakaz--reflang.1e00e79/task.toml b/chakaz--reflang.1e00e79/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..80601fbcaa3673cb6c16a254feb6f702fc6ca9b8
--- /dev/null
+++ b/chakaz--reflang.1e00e79/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chakaz--reflang.1e00e79"
+description = "Synthetic ProgramGym cleanroom reconstruction task for chakaz/reflang"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "chakaz__reflang.1e00e79"
+repository = "chakaz/reflang"
+commit = "1e00e79b6ef2c2304eca6d05ef50242f4551e35d"
+language = "cpp"
+difficulty = "easy"
+difficulty_score = 1.7328760413627067
+test_branches = 5
+test_count = 504
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chakaz--reflang.1e00e79/tests/Dockerfile b/chakaz--reflang.1e00e79/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..7ff3c98df93505861b0a050209ad20f385db35f4
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/Dockerfile
@@ -0,0 +1,65 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
+ARG GCC_VERSION=13.3.0
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_01.tar.gz b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..1f6e21c887a969e7b7c0a820f409efc8187797c5
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:29f3c9d7e4e4ade123c590a5c22e1ac002b9ed73a981bd54b057481303a7150b
+size 13356
diff --git a/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_02.tar.gz b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..fa7b00a7837e339a7f5b6f8921bcf7dd89936c22
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb0d821c52a65c3cbdb93bb7537bd32d1eae19ca6f49e502163611820d70ce41
+size 14748
diff --git a/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_03.tar.gz b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..e036c8a63991c40d0977afdd6c5292d2fedcd462
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:88bab8fa08f080d38c76136654de78c3c6901cbf70fbd8bcb09bf8224e933c40
+size 40128
diff --git a/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_04.tar.gz b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..87f5c2568f4ba4dabbc12bd888d126eabffd8eae
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3f429c14d2ad2fcedb8bfdc5a6177dbde5ac172271f69e6f7500e00195078e6
+size 26943
diff --git a/chakaz--reflang.1e00e79/tests/blobs/tests/generated_upstream.tar.gz b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_upstream.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..13eabeb38caf74aa9f15fb6c1fe9425ea9cb4311
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/blobs/tests/generated_upstream.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b5ad19b3cd5e5ef065dafbf8ce922f427d7863d9c23fcef2f32b166f51df1e00
+size 14757
diff --git a/chakaz--reflang.1e00e79/tests/download.sh b/chakaz--reflang.1e00e79/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..97051020596dcfe5559fc07127f03ca930a46849
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/download.sh
@@ -0,0 +1,63 @@
+#!/usr/bin/env bash
+# download.sh - ProgramGym networked download/prefetch stage for reflang.
+# Sourced via: source /source_ro/download.sh
+# Installs the libclang/LLVM system packages that the reflang CMake build
+# requires and exports the environment variables build.sh relies on.
+# This script performs NO compilation, linking, or testing.
+set -e
+
+export DEBIAN_FRONTEND=noninteractive
+
+# reflang's CMake FindLibClang module requires:
+# - the llvm-config executable (to derive --includedir / --libdir),
+# - the clang headers (clang-c/Index.h),
+# - the libclang shared library.
+# We install libclang-dev (headers + libclang) and the llvm meta-package (which
+# provides the bare /usr/bin/llvm-config symlink). All URLs/versions come from
+# the Ubuntu 22.04 archive explicitly named below; download.sh is standalone and
+# reads no repository file.
+apt-get update
+apt-get install -y --no-install-recommends \
+ libclang-dev \
+ llvm \
+ g++-11
+
+# Build with the Ubuntu system g++-11 rather than the base image's xPack GCC 13.
+# The xPack compiler links libstdc++ with a newer GLIBCXX ABI (3.4.32) than the
+# system libstdc++ provides (top at 3.4.30); linking reflang with g++-11 keeps the
+# executable ABI-consistent with the system libclang and libstdc++.
+if command -v g++-11; then
+ export CC="$(command -v gcc-11)"
+ export CXX="$(command -v g++-11)"
+fi
+
+# Find llvm-config: prefer the bare /usr/bin/llvm-config symlink, then fall back
+# to versioned binaries across LLVM releases.
+export LLVM_CONFIG=""
+if command -v llvm-config; then
+ export LLVM_CONFIG="$(command -v llvm-config)"
+else
+ for cand in llvm-config-17 llvm-config-16 llvm-config-15 llvm-config-14 \
+ llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10 \
+ llvm-config-3.9 llvm-config-4.0; do
+ if command -v "$cand"; then
+ export LLVM_CONFIG="$(command -v "$cand")"
+ break
+ fi
+ done
+fi
+
+if [ -z "${LLVM_CONFIG:-}" ]; then
+ echo "download.sh: ERROR: no llvm-config executable found after apt install." >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+
+# The libclang headers and library are validated at CMake configure time by the
+# repository's cmake/FindLibClang.cmake (which invokes llvm-config --includedir /
+# --libdir and fatal-errors if they are absent). No such check is performed here.
+
+echo "download.sh: prepared reflang dependencies using LLVM_CONFIG=${LLVM_CONFIG}."
diff --git a/chakaz--reflang.1e00e79/tests/executable b/chakaz--reflang.1e00e79/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..0f7952252dd3a22051a41e3f4f2c0daec2af6113
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43ddd837bea362cfa55e55645808c172dc8d8e5717cf078ad6bf4e166c841d75
+size 408976
diff --git a/chakaz--reflang.1e00e79/tests/harbor_prepare_download_env.sh b/chakaz--reflang.1e00e79/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chakaz--reflang.1e00e79/tests/programgym-gcc13.tar.gz b/chakaz--reflang.1e00e79/tests/programgym-gcc13.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d65584edfe74425f789a3d2095fa0f130d7ab461
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/programgym-gcc13.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
+size 146620404
diff --git a/chakaz--reflang.1e00e79/tests/programgym_evaluator.py b/chakaz--reflang.1e00e79/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chakaz--reflang.1e00e79/tests/programgym_task.json b/chakaz--reflang.1e00e79/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..32d50f871a493ff1b615aba7cc4d4c585c631303
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/programgym_task.json
@@ -0,0 +1,3548 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_args_error.test_bool_0_rejected",
+ "eval.tests.test_args_error.test_bool_1_rejected",
+ "eval.tests.test_args_error.test_bool_bad_value_prints_usage",
+ "eval.tests.test_args_error.test_bool_empty_value_rejected",
+ "eval.tests.test_args_error.test_bool_random_word_rejected",
+ "eval.tests.test_args_error.test_bool_uppercase_false_rejected",
+ "eval.tests.test_args_error.test_bool_uppercase_true_rejected",
+ "eval.tests.test_args_error.test_bool_yes_rejected",
+ "eval.tests.test_args_error.test_double_dash_passes_unknown_flag_to_clang",
+ "eval.tests.test_args_error.test_double_dash_prevents_file_after_from_being_input",
+ "eval.tests.test_args_error.test_double_dash_then_clang_include",
+ "eval.tests.test_args_error.test_flag_before_file_then_file",
+ "eval.tests.test_args_error.test_flag_then_flag_like_token_consumes_it_as_value",
+ "eval.tests.test_args_error.test_flag_value_then_unknown_flag",
+ "eval.tests.test_args_error.test_list_only_false_parses",
+ "eval.tests.test_args_error.test_list_only_true_parses",
+ "eval.tests.test_args_error.test_missing_value_exclude",
+ "eval.tests.test_args_error.test_missing_value_exits_255",
+ "eval.tests.test_args_error.test_missing_value_include",
+ "eval.tests.test_args_error.test_missing_value_list_only",
+ "eval.tests.test_args_error.test_missing_value_out_cpp",
+ "eval.tests.test_args_error.test_missing_value_out_hpp",
+ "eval.tests.test_args_error.test_missing_value_reaches_banner",
+ "eval.tests.test_args_error.test_missing_value_reflang_include",
+ "eval.tests.test_args_error.test_posix_double_dash_double_dash_is_arg",
+ "eval.tests.test_args_error.test_single_dash_unknown_argument",
+ "eval.tests.test_args_error.test_single_dash_unknown_exits_255",
+ "eval.tests.test_args_error.test_unknown_after_double_dash_not_reflang_error",
+ "eval.tests.test_args_error.test_unknown_argument_exits_255",
+ "eval.tests.test_args_error.test_unknown_argument_hint_mentions_double_dash",
+ "eval.tests.test_args_error.test_unknown_argument_message",
+ "eval.tests.test_args_error.test_unknown_argument_prints_usage_when_file_supplied",
+ "eval.tests.test_consume_edge.test_double_dash_clang_flags_with_exclude",
+ "eval.tests.test_consume_edge.test_empty_exclude_value_generation_keeps_all",
+ "eval.tests.test_consume_edge.test_empty_include_value_generation_filters_all",
+ "eval.tests.test_consume_edge.test_empty_reflang_include_suppresses_include_line_filtered",
+ "eval.tests.test_consume_edge.test_filter_no_match_still_writes_banner_to_file",
+ "eval.tests.test_consume_edge.test_filter_with_out_hpp_and_cpp_consistency",
+ "eval.tests.test_consume_edge.test_flag_after_both_files_registers",
+ "eval.tests.test_consume_edge.test_flag_between_files_applies_to_second",
+ "eval.tests.test_consume_edge.test_include_consumes_file_path_as_value",
+ "eval.tests.test_consume_edge.test_include_consumes_file_path_second_file_is_input",
+ "eval.tests.test_consume_edge.test_include_then_exclude_reverse_order",
+ "eval.tests.test_consume_edge.test_repeated_include_last_wins_in_generation",
+ "eval.tests.test_generation.test_default_generation_class_template",
+ "eval.tests.test_generation.test_default_generation_closes_namespace",
+ "eval.tests.test_generation.test_default_generation_contains_get_field",
+ "eval.tests.test_generation.test_default_generation_defines_field_count",
+ "eval.tests.test_generation.test_default_generation_enum_case",
+ "eval.tests.test_generation.test_default_generation_includes_reflang",
+ "eval.tests.test_generation.test_default_generation_multi_field_count",
+ "eval.tests.test_generation.test_default_generation_static_field_zero",
+ "eval.tests.test_generation.test_default_generation_stdout_empty_when_nothing",
+ "eval.tests.test_generation.test_default_generation_writes_to_stdout",
+ "eval.tests.test_generation.test_generation_with_both_empty_writes_only_stdout",
+ "eval.tests.test_generation.test_out_cpp_contains_definitions",
+ "eval.tests.test_generation.test_out_cpp_contains_get_field_definition",
+ "eval.tests.test_generation.test_out_cpp_creates_second_file",
+ "eval.tests.test_generation.test_out_cpp_is_distinct_file",
+ "eval.tests.test_generation.test_out_hpp_creates_file",
+ "eval.tests.test_generation.test_out_hpp_defaults_out_cpp_to_same_file",
+ "eval.tests.test_generation.test_out_hpp_file_contains_banner",
+ "eval.tests.test_generation.test_out_hpp_file_contains_class",
+ "eval.tests.test_generation.test_out_hpp_file_contains_field_count",
+ "eval.tests.test_generation.test_out_hpp_stdout_is_empty",
+ "eval.tests.test_generation.test_reflang_include_angle_bracket",
+ "eval.tests.test_generation.test_reflang_include_applied_to_file",
+ "eval.tests.test_generation.test_reflang_include_custom_removes_default",
+ "eval.tests.test_generation.test_reflang_include_custom_value",
+ "eval.tests.test_generation.test_reflang_include_default",
+ "eval.tests.test_generation.test_reflang_include_empty_value",
+ "eval.tests.test_generation.test_types_header_generates_enum",
+ "eval.tests.test_generation.test_types_header_generates_three_ns_types",
+ "eval.tests.test_generation_filtering.test_gen_both_filters_can_produce_empty",
+ "eval.tests.test_generation_filtering.test_gen_exclude_drops_from_all_files",
+ "eval.tests.test_generation_filtering.test_gen_exclude_empty_pattern_keeps_all",
+ "eval.tests.test_generation_filtering.test_gen_exclude_exact_name",
+ "eval.tests.test_generation_filtering.test_gen_exclude_namespace",
+ "eval.tests.test_generation_filtering.test_gen_exclude_no_match_keeps_all",
+ "eval.tests.test_generation_filtering.test_gen_exclude_prefix",
+ "eval.tests.test_generation_filtering.test_gen_exclude_single_dot_keeps_all",
+ "eval.tests.test_generation_filtering.test_gen_filter_applied_to_out_cpp",
+ "eval.tests.test_generation_filtering.test_gen_filter_applied_to_out_hpp",
+ "eval.tests.test_generation_filtering.test_gen_include_alternation",
+ "eval.tests.test_generation_filtering.test_gen_include_anchor_is_full_match",
+ "eval.tests.test_generation_filtering.test_gen_include_dot_star_keeps_all",
+ "eval.tests.test_generation_filtering.test_gen_include_empty_pattern_emits_nothing",
+ "eval.tests.test_generation_filtering.test_gen_include_exact_name",
+ "eval.tests.test_generation_filtering.test_gen_include_exclude_interact",
+ "eval.tests.test_generation_filtering.test_gen_include_filters_over_union_of_files",
+ "eval.tests.test_generation_filtering.test_gen_include_namespace",
+ "eval.tests.test_generation_filtering.test_gen_include_namespace_omits_top_level",
+ "eval.tests.test_generation_filtering.test_gen_include_no_match_emits_nothing",
+ "eval.tests.test_generation_filtering.test_gen_include_prefix",
+ "eval.tests.test_generation_filtering.test_gen_include_single_dot_matches_no_type",
+ "eval.tests.test_generation_filtering.test_gen_include_suffix",
+ "eval.tests.test_generation_filtering.test_gen_include_then_exclude",
+ "eval.tests.test_generation_filtering.test_gen_include_with_double_dash_separator",
+ "eval.tests.test_generation_filtering.test_generation_default_emits_all_types",
+ "eval.tests.test_generation_filtering.test_generation_default_excludes_std",
+ "eval.tests.test_help_usage.test_help_describes_out_hpp_fallback",
+ "eval.tests.test_help_usage.test_help_describes_stdout_default",
+ "eval.tests.test_help_usage.test_help_exclude_text",
+ "eval.tests.test_help_usage.test_help_flag_is_not_registered",
+ "eval.tests.test_help_usage.test_help_include_text",
+ "eval.tests.test_help_usage.test_help_list_only_text",
+ "eval.tests.test_help_usage.test_help_out_cpp_text",
+ "eval.tests.test_help_usage.test_help_out_hpp_text",
+ "eval.tests.test_help_usage.test_help_reflang_include_text",
+ "eval.tests.test_help_usage.test_no_args_exits_usage_code",
+ "eval.tests.test_help_usage.test_no_args_help_stdout_matches_golden",
+ "eval.tests.test_help_usage.test_no_args_prints_all_help_flags",
+ "eval.tests.test_help_usage.test_no_args_prints_blank_banner_line",
+ "eval.tests.test_help_usage.test_no_args_prints_supported_flags_header",
+ "eval.tests.test_help_usage.test_no_args_prints_usage_line",
+ "eval.tests.test_help_usage.test_no_args_prints_usage_to_stdout",
+ "eval.tests.test_help_usage.test_no_args_prints_where_line",
+ "eval.tests.test_help_usage.test_no_args_reports_no_input_to_stderr",
+ "eval.tests.test_help_usage.test_no_args_stderr_matches_golden",
+ "eval.tests.test_help_usage.test_no_input_files_diagnostic_precise",
+ "eval.tests.test_help_usage.test_short_h_is_not_registered",
+ "eval.tests.test_help_usage.test_unknown_flag_after_file_prints_usage",
+ "eval.tests.test_help_usage.test_unknown_flag_diagnostic_mentions_flag",
+ "eval.tests.test_help_usage.test_unknown_flag_prints_usage_exits_255",
+ "eval.tests.test_help_usage.test_usage_banner_repeated_for_each_error",
+ "eval.tests.test_inputs.test_directory_as_input_fails",
+ "eval.tests.test_inputs.test_empty_file_generation_succeeds",
+ "eval.tests.test_inputs.test_empty_file_list_only_succeeds",
+ "eval.tests.test_inputs.test_missing_file_fails_diagnostics",
+ "eval.tests.test_inputs.test_missing_file_list_only_fails",
+ "eval.tests.test_inputs.test_missing_file_zero_stdout",
+ "eval.tests.test_inputs.test_missing_then_valid_file_fails",
+ "eval.tests.test_inputs.test_multiple_files_generate",
+ "eval.tests.test_inputs.test_multiple_files_list_only",
+ "eval.tests.test_inputs.test_single_dash_token_is_unknown_argument",
+ "eval.tests.test_list_only.test_exclude_default_std",
+ "eval.tests.test_list_only.test_exclude_exact_name",
+ "eval.tests.test_list_only.test_exclude_namespace",
+ "eval.tests.test_list_only.test_exclude_no_match_keeps_everything",
+ "eval.tests.test_list_only.test_exclude_prefix_regex",
+ "eval.tests.test_list_only.test_flags_before_and_after_file",
+ "eval.tests.test_list_only.test_include_bare_class_name_requires_anchor",
+ "eval.tests.test_list_only.test_include_dot_star_matches_all",
+ "eval.tests.test_list_only.test_include_exact_name",
+ "eval.tests.test_list_only.test_include_interacts_with_exclude",
+ "eval.tests.test_list_only.test_include_namespace_prefix",
+ "eval.tests.test_list_only.test_include_no_match_exits_zero",
+ "eval.tests.test_list_only.test_include_no_match_yields_empty",
+ "eval.tests.test_list_only.test_include_prefix_regex",
+ "eval.tests.test_list_only.test_include_suffix_regex",
+ "eval.tests.test_list_only.test_include_then_unknown_flag_still_fails",
+ "eval.tests.test_list_only.test_list_only_empty_header_yields_nothing",
+ "eval.tests.test_list_only.test_list_only_enum_type_included",
+ "eval.tests.test_list_only.test_list_only_false_generates_instead",
+ "eval.tests.test_list_only.test_list_only_multi_header_exact",
+ "eval.tests.test_list_only.test_list_only_multi_types_exact",
+ "eval.tests.test_list_only.test_list_only_multiple_classes_included",
+ "eval.tests.test_list_only.test_list_only_namespaced_type_included",
+ "eval.tests.test_list_only.test_list_only_one_type_per_line",
+ "eval.tests.test_list_only.test_list_only_single_class",
+ "eval.tests.test_list_only.test_list_only_struct_type_included",
+ "eval.tests.test_list_only.test_list_only_two_files_accumulate",
+ "eval.tests.test_list_only.test_list_only_two_files_full",
+ "eval.tests.test_list_only.test_repeated_flag_last_wins"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_cli_entrypoint.test_double_dash_passes_remaining_args_to_clang",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_cli_entrypoint.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_class.test_class_fields_count_and_iterate",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_class.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_class.test_class_getfield_dispatch_by_name",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_class.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_class.test_empty_class_zero_counts",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_class.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_class.test_namespaced_class_member_counts_in_derived",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_class.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_class.test_single_field_class_counts",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_class.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_function.test_invoke_wraps_decayed_arguments",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_function.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_methods_fields.test_conditional_count_constants",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_methods_fields.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_gen_methods_fields.test_instance_method_invoke_binds_instance",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_gen_methods_fields.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_listing_filtering.test_default_exclude_is_std_namespace",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_listing_filtering.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_listing_filtering.test_list_only_second_file_types_boundaries",
+ "reasons": [
+ {
+ "id": "all_assertions_weak",
+ "message": "pytest test uses only weak assertions",
+ "path": "eval/tests/test_listing_filtering.py",
+ "repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_listing_filtering.test_list_only_struct_and_class_both_listed",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_listing_filtering.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_listing_filtering.test_multiple_input_files_union_name_sets",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_listing_filtering.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_listing_filtering.test_nested_class_name_uses_qualified_path",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_listing_filtering.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serialize_output.test_cpp_include_stub_when_hpp_defaulted",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serialize_output.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serialize_output.test_generation_is_in_order_deterministic",
+ "reasons": [
+ {
+ "detail": "assert '// !!!!!!!!!..._DE0_H1_HPP\\n' == '// !!!!!!!!!..._DE0_H2_HPP\\n' Skipping 241 identical leading characters in diff, use -v to show - RDER_DE0_H2_HPP ? ^ + RDER_DE0_H1_HPP ? ^ - #define REFLANG_",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serialize_output.test_header_includes_input_path_when_hpp_on_stdout",
+ "reasons": [
+ {
+ "detail": "assert '#include \"types_mixed.hpp\"' in '// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\\n// !!! This file is auto-generated by Reflang. !!!\\n// !!!!!!!!!!...nique : public IFunction]",
+ "eval.tests.test_gen_function.test_function_signature_text_by_name[Mixed-class Function : public IFunction]",
+ "eval.tests.test_gen_function.test_function_signature_text_by_name[NoArgs2-class Function : public IFunction]",
+ "eval.tests.test_gen_function.test_function_signature_text_by_name[Wide-class Function : public IFunction]",
+ "eval.tests.test_gen_function.test_invoke_wraps_decayed_arguments",
+ "eval.tests.test_gen_function.test_mixed_arg_types_return",
+ "eval.tests.test_gen_function.test_unnamed_parameters_named_nameless",
+ "eval.tests.test_gen_function.test_void_function_invoke_returns_default_object",
+ "eval.tests.test_gen_function.test_void_function_metadata",
+ "eval.tests.test_gen_methods_fields.test_conditional_count_constants",
+ "eval.tests.test_gen_methods_fields.test_getmethod_dispatch_lists_members",
+ "eval.tests.test_gen_methods_fields.test_instance_method_getparameter_count",
+ "eval.tests.test_gen_methods_fields.test_instance_method_invoke_binds_instance",
+ "eval.tests.test_gen_methods_fields.test_instance_method_name_registered",
+ "eval.tests.test_gen_methods_fields.test_iterate_static_fields_body",
+ "eval.tests.test_gen_methods_fields.test_namespaced_static_method_qualified",
+ "eval.tests.test_gen_methods_fields.test_static_method_function_metadata",
+ "eval.tests.test_gen_methods_fields.test_void_method_invoke_returns_default",
+ "eval.tests.test_listing_filtering.test_combined_include_and_exclude",
+ "eval.tests.test_listing_filtering.test_default_exclude_is_std_namespace",
+ "eval.tests.test_listing_filtering.test_exclude_all_returns_empty",
+ "eval.tests.test_listing_filtering.test_exclude_regex_removes_matching_types",
+ "eval.tests.test_listing_filtering.test_include_regex_matches_namespaced_type",
+ "eval.tests.test_listing_filtering.test_include_regex_restricts_list",
+ "eval.tests.test_listing_filtering.test_include_without_match_yields_empty_list",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_access.hpp-types_access_list.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_derive.hpp-types_derive_list.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_enum.hpp-types_enum_list.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_fieldtypes.hpp-types_fieldtypes_list.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_filter.hpp-types_filter_list.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_funcs.hpp-funcs.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_mixed.hpp-mixed.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_nested.hpp-types_nested_list.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_matches_golden[types_ns.hpp-ns.txt]",
+ "eval.tests.test_listing_filtering.test_list_only_namespaced_types_fully_qualified",
+ "eval.tests.test_listing_filtering.test_list_only_second_file_types_boundaries",
+ "eval.tests.test_listing_filtering.test_list_only_struct_and_class_both_listed",
+ "eval.tests.test_listing_filtering.test_multiple_input_files_union_name_sets",
+ "eval.tests.test_listing_filtering.test_nested_class_name_uses_qualified_path",
+ "eval.tests.test_serialize_output.test_cpp_at_least_standard_system_includes",
+ "eval.tests.test_serialize_output.test_cpp_include_stub_when_hpp_defaulted",
+ "eval.tests.test_serialize_output.test_default_reflang_include_emitted",
+ "eval.tests.test_serialize_output.test_generated_cpp_starts_with_autogen_banner",
+ "eval.tests.test_serialize_output.test_generation_is_in_order_deterministic",
+ "eval.tests.test_serialize_output.test_header_includes_input_path_when_hpp_on_stdout",
+ "eval.tests.test_serialize_output.test_include_guard_reflects_basename",
+ "eval.tests.test_serialize_output.test_include_guard_trio_from_out_hpp",
+ "eval.tests.test_serialize_output.test_out_cpp_written_separately",
+ "eval.tests.test_serialize_output.test_out_hpp_redirects_header_off_stdout",
+ "eval.tests.test_serialize_output.test_reflang_include_override_emitted",
+ "eval.tests.test_serialize_output.test_stdout_contains_autogen_banner"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_class_discovery.test_class_iterate_fields_lists_each_public_field",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_class_discovery.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_enum_discovery.test_empty_enum_lists_no_values",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_enum_discovery.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_enum_edges.test_empty_enum_iteration_is_guarded_assert",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_enum_edges.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_enum_edges.test_exclude_filter_removes_enum_and_class",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_enum_edges.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_enum_edges.test_repeated_enum_value_dedups_unique_iteration",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_enum_edges.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_errors_and_args.test_clang_std_flag_affects_parsing",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_errors_and_args.test_diagnostics_are_reported_to_stderr",
+ "reasons": [
+ {
+ "id": "assertion_disjunction",
+ "message": "pytest assertion accepts alternatives with or",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_errors_and_args.test_invalid_regex_aborts",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_errors_and_args.test_no_input_files_shows_usage",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_errors_and_args.test_unknown_flag_reports_error",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_errors_and_args.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_function_discovery.test_overloaded_functions_each_serialized",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_function_discovery.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round3.test_fixed_underlying_type_enum_golden_exact",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_parser_round3.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round3.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_parser_round3.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round3.test_two_enum_golden_exact_two_blocks",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_parser_round3.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round3.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_parser_round3.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round3_cli.test_forward_declared_class_gets_empty_specialization",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round3_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round3_cli.test_include_path_flag_discovers_nested_header",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round3_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round3_cli.test_missing_include_reports_diagnostic_but_keeps_types",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round3_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round3_cli.test_typedef_and_using_declarations_are_not_types",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round3_cli.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_cross_ref_pair_golden_exact",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_deep_enum_golden_exact",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_forward_declared_enum_gets_empty_specialization",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_mixed_namespace_enum_feeds_class_and_functions",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_mixed_namespace_golden_exact",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_mixed_namespace_single_enumerator_golden_exact",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_second_namespace_enum_alias_dedup_reserve",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_enum.test_single_enumerator_enum_no_transition_case",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_parser_round4_enum.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_visitor.test_constexpr_function_and_enum",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_visitor.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_visitor.test_default_argument_function_is_discovered",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_visitor.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_visitor.test_default_argument_survives_serialization",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_visitor.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_visitor.test_inline_function_discovered",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_visitor.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round4_visitor.test_variadic_function_is_discovered",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round4_visitor.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round5_enum.test_empty_scoped_enum_reserves_zero",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_parser_round5_enum.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_parser_round5_enum.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round5_enum.test_multi_global_golden_exact",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round5_enum.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round5_enum.test_overflow_translation_unit_golden_exact",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round5_enum.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_parser_round5_enum.test_private_nested_golden_exact",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_parser_round5_enum.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serialization_output.test_default_output_goes_to_stdout",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serialization_output.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serialization_output.test_generated_header_includes_source_file[fields.src.hpp-fields.src.hpp]",
+ "reasons": [
+ {
+ "detail": "assert ('#include \"%s\"' % 'fields.src.hpp') in '// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\\n// !!! This file is auto-generated by Reflang. !!!\\n// !!!!!!!!!!...egister(\\n\\t\\t\\t\\t\\tstd::make_un",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serialization_output.test_generated_header_includes_source_file[void-noargs.src.hpp-void-noargs.src.hpp]",
+ "reasons": [
+ {
+ "detail": "assert ('#include \"%s\"' % 'void-noargs.src.hpp') in '// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\\n// !!! This file is auto-generated by Reflang. !!!\\n// !!!!!!!!!!...unique>());",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ },
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serialization_output.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serialization_output.test_same_type_include_deduped_in_header",
+ "reasons": [
+ {
+ "detail": "assert 0 == 1 + where 0 = ('#include \"mixed.src.hpp\"') + where = '// !!!!!!!!!!!!!!!!!!!!",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_type_discovery.test_custom_exclude_overrides_default",
+ "reasons": [
+ {
+ "id": "assertion_disjunction",
+ "message": "pytest assertion accepts alternatives with or",
+ "path": "eval/tests/test_type_discovery.py",
+ "repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_type_discovery.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_type_discovery.test_default_exclude_excludes_std_namespace",
+ "reasons": [
+ {
+ "detail": "AssertionError: assert (not True or '::std::__true_type' == 'std' + where True = ('std::') + where ",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_header.test_no_input_files_prints_usage_and_nonzero",
+ "reasons": [
+ {
+ "detail": "assert 'usage: reflang' in \"Reflang tool to generate reflection metadata.\\n\\nUsage: reflang [reflang_flags] -- [clang_flags]\\nWhere [reflang_flag...lude:\\tregex for which types to include in reflectio",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ },
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serializer_header.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_header.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_header.test_single_source_include_for_single_tu",
+ "reasons": [
+ {
+ "detail": "assert '#include \"enums.cpp\"' in '// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\\n// !!! This file is auto-generated by Reflang. !!!\\n// !!!!!!!!!!...al::Register(\\n\\t\\t\\t\\tstd::make_unique : public IFunction ? ++++++++++++++++ { int GetParameter",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ },
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serializer_output.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_output.test_include_filter_restricts_serialized_types",
+ "reasons": [
+ {
+ "detail": "AssertionError: assert 'A::B::GlobalFunc' in '// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\\n// !!! This file is auto-generated by Reflang. !!!\\n// !!!!!!!!!!... reflang\\n\\n#endif //REFLANG_METAD",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_output.test_overlapping_include_and_exclude_excludes_wins",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serializer_output.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_output.test_split_cpp_includes_out_hpp",
+ "reasons": [
+ {
+ "detail": "NameError: name 'tmp_path' is not defined",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_overloads.test_namespaced_overload_parameter_counts_per_overload",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_overloads.test_namespaced_overload_registrars_carry_suffix",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_overloads.test_namespaced_overload_suffixes_disambiguate_name_statics",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_overloads.test_static_method_overload_parameter_counts",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_overloads.test_static_method_overload_registrars_disambiguated",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_overloads.test_static_method_overload_suffix_in_definitions",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_overloads.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_four_way_overload_name_statics_all_distinct",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_four_way_overload_registrars_disambiguated",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_include_guard_punctuation_and_digit_mix",
+ "reasons": [
+ {
+ "detail": "AssertionError: assert '#ifndef REFLANG_METADATA_V2_REF_HDR_HPP' in '// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\\n// !!! This file is auto-generated by Reflang. !!!\\n// !!!!!!!!!!...::internal:",
+ "id": "gold_fail",
+ "message": "test failed against the reference executable",
+ "repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
+ "severity": "error",
+ "stage": "gold_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_mixed_return_methods_both_branches_one_tu",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_mixed_return_methods_counts",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_reference_return_method_object_wrap",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_sparse_enum_unique_count_reserve",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_static_triple_overload_name_statics",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_static_triple_overload_parameter_counts",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_static_void_method_invoke_bare_call_then_object",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_std_string_return_call_arg_decay",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_serializer_round5.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_serializer_round5.test_unsigned_long_long_return_and_char_param",
+ "reasons": [
+ {
+ "detail": "assert 'result.Type = \"size_t\";' in '// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\\n// !!! This file is auto-generated by Reflang. !!!\\n// !!!!!!!!!!...std::make_unique/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chakaz--reflang.1e00e79/tests/workspace.tar.gz b/chakaz--reflang.1e00e79/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..85d0e9e348fbf8bb9e2749249f62a5fe8d185e28
--- /dev/null
+++ b/chakaz--reflang.1e00e79/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:64c807bb4810966c60f680d99296137a31556bbd40d9d3c3e2e57478d1e2c6d8
+size 19012
diff --git a/chameco--solid.11a3c44/environment/Dockerfile b/chameco--solid.11a3c44/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..8acccc9e7709c4fa205034773e0c1c02b32a9d89
--- /dev/null
+++ b/chameco--solid.11a3c44/environment/Dockerfile
@@ -0,0 +1,56 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+# programgym_quota_aware_nproc=1
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chameco--solid.11a3c44/environment/download.sh b/chameco--solid.11a3c44/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..9de091a8ca2916d86dfc45c7327fb056f937107a
--- /dev/null
+++ b/chameco--solid.11a3c44/environment/download.sh
@@ -0,0 +1,85 @@
+#!/bin/bash
+# download.sh - provision offline build dependencies for the Solid interpreter.
+# Sourced by the networked download stage (from /source_ro). It installs system
+# build tools and supplies the header the source tree expects.
+#
+# Why: the project's core common header does `#include `, an
+# external dependency the project's build normally clones from the now-removed
+# Cuttle repository. The code only uses that header's `log_err` macro in the
+# common translation unit; every other macro is already defined by the project's
+# own utils header. So we generate the missing header here, guarding each macro
+# so it never conflicts with the project's utils header when both are included.
+#
+# This script only installs dependencies and provisions the header. It does not
+# compile, link, test, or package anything.
+
+# 1) Build tools: bison (parser generator) and flex (lexer generator). gcc,
+# make, and binutils are already present in the base image.
+export DEBIAN_FRONTEND=noninteractive
+apt-get -y update
+apt-get -y install bison flex
+
+# 2) Provide under the include dir that the Makefile's CFLAGS
+# already searches (-I/usr/local/include). Idempotent: overwrites the same file.
+CUTTLE_DIR=/usr/local/include/cuttle
+mkdir -p "$CUTTLE_DIR"
+cat > "$CUTTLE_DIR/debug.h" <<'CUTTLE_DEBUG_EOF'
+#ifndef CUTTLE_DEBUG_H
+#define CUTTLE_DEBUG_H
+
+#include
+#include
+#include
+
+#ifndef clean_errno
+#define clean_errno() (errno == 0 ? "None" : strerror(errno))
+#endif
+
+#ifndef debug
+#ifdef NDEBUG
+#define debug(M, ...)
+#else
+#define debug(M, ...) fprintf(stderr, "DEBUG %s:%d: " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
+#endif
+#endif
+
+#ifndef log_err
+#define log_err(M, ...) fprintf(stderr, "[ERROR] (%s:%d: errno: %s) " M "\n", __FILE__, __LINE__, clean_errno(), ##__VA_ARGS__)
+#endif
+
+#ifndef log_warn
+#define log_warn(M, ...) fprintf(stderr, "[WARN] (%s:%d: errno: %s) " M "\n", __FILE__, __LINE__, clean_errno(), ##__VA_ARGS__)
+#endif
+
+#ifndef log_info
+#define log_info(M, ...) fprintf(stderr, "[INFO] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
+#endif
+
+#ifndef check
+#define check(A, M, ...) if(!(A)) { log_err(M, ##__VA_ARGS__); errno=0; goto error; }
+#endif
+
+#ifndef sentinel
+#define sentinel(M, ...) { log_err(M, ##__VA_ARGS__); errno=0; goto error; }
+#endif
+
+#ifndef check_mem
+#define check_mem(A) check((A), "Out of memory.")
+#endif
+
+#ifndef check_debug
+#define check_debug(A, M, ...) if(!(A)) { debug(M, ##__VA_ARGS__); errno=0; goto error; }
+#endif
+
+#endif /* CUTTLE_DEBUG_H */
+CUTTLE_DEBUG_EOF
+
+# 3) Confirm the header landed on the build include path.
+if [ ! -f /usr/local/include/cuttle/debug.h ]; then
+ echo "download.sh: failed to provision /usr/local/include/cuttle/debug.h" >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
diff --git a/chameco--solid.11a3c44/environment/executable b/chameco--solid.11a3c44/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..43334d781ead698b115a749f27ba1fa1c9578148
--- /dev/null
+++ b/chameco--solid.11a3c44/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:72917c2cfa8e956c43856980dbb745a128666a9674d92d7910953c2998316754
+size 162392
diff --git a/chameco--solid.11a3c44/environment/harbor_prepare_download_env.sh b/chameco--solid.11a3c44/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chameco--solid.11a3c44/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chameco--solid.11a3c44/environment/workspace.tar.gz b/chameco--solid.11a3c44/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..20a3fffc13da03ef384574aa4f693ce2e4b04571
--- /dev/null
+++ b/chameco--solid.11a3c44/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6658b548340f13ea10bad0fef0e907914716cb69ceae5baf9ebe92fcb20ba8a1
+size 5468
diff --git a/chameco--solid.11a3c44/instruction.md b/chameco--solid.11a3c44/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chameco--solid.11a3c44/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chameco--solid.11a3c44/solution/solve.sh b/chameco--solid.11a3c44/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chameco--solid.11a3c44/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chameco--solid.11a3c44/task.toml b/chameco--solid.11a3c44/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..7fd1392bceb8771507b155105c4f9ac79461a30f
--- /dev/null
+++ b/chameco--solid.11a3c44/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chameco--solid.11a3c44"
+description = "Synthetic ProgramGym cleanroom reconstruction task for chameco/Solid"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "c"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "chameco__Solid.11a3c44"
+repository = "chameco/Solid"
+commit = "11a3c44a815dda255711eb5927dbef3c40747683"
+language = "c"
+difficulty = "easy"
+difficulty_score = 1.448242412634439
+test_branches = 4
+test_count = 1350
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chameco--solid.11a3c44/tests/Dockerfile b/chameco--solid.11a3c44/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..af44b3d1754339c76f5704a76db5a06fd46920ab
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/Dockerfile
@@ -0,0 +1,70 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+# programgym_quota_aware_nproc=1
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN set -eu; \
+ pip_break_system_packages=""; \
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
+ pip_break_system_packages="--break-system-packages"; \
+ fi; \
+ python3 -m pip install ${pip_break_system_packages} \
+ --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chameco--solid.11a3c44/tests/blobs/tests/generated_module_01.tar.gz b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..51da4da5f3381555f4747343c6d08a428d069b92
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b97db66ca68b71cd865eba8b931b12e413c0eb0d9d7caf896266290da71f3ad6
+size 26263
diff --git a/chameco--solid.11a3c44/tests/blobs/tests/generated_module_02.tar.gz b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..5653d0563776aa58010d4b9b4436c8c76a65bf30
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54831e959c71b257ef72c07fc829c8cdf0e06792303d8ddad4e1af6852a2b094
+size 28292
diff --git a/chameco--solid.11a3c44/tests/blobs/tests/generated_module_03.tar.gz b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d5ed0b0a754706923389cb55d619bdb1645d4a9e
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:67725c323b431b3ac86176c3174913ed091e6ea07db8480bd199c8fa7ce8f9a7
+size 27791
diff --git a/chameco--solid.11a3c44/tests/blobs/tests/generated_module_04.tar.gz b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..32142a1504d3e9aa4fcd465971fb2e4198bcd0df
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b689f0378955e123c04120eb6162644bc1dfa966f7c407c5e05e77ed62384277
+size 18209
diff --git a/chameco--solid.11a3c44/tests/download.sh b/chameco--solid.11a3c44/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..9de091a8ca2916d86dfc45c7327fb056f937107a
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/download.sh
@@ -0,0 +1,85 @@
+#!/bin/bash
+# download.sh - provision offline build dependencies for the Solid interpreter.
+# Sourced by the networked download stage (from /source_ro). It installs system
+# build tools and supplies the header the source tree expects.
+#
+# Why: the project's core common header does `#include `, an
+# external dependency the project's build normally clones from the now-removed
+# Cuttle repository. The code only uses that header's `log_err` macro in the
+# common translation unit; every other macro is already defined by the project's
+# own utils header. So we generate the missing header here, guarding each macro
+# so it never conflicts with the project's utils header when both are included.
+#
+# This script only installs dependencies and provisions the header. It does not
+# compile, link, test, or package anything.
+
+# 1) Build tools: bison (parser generator) and flex (lexer generator). gcc,
+# make, and binutils are already present in the base image.
+export DEBIAN_FRONTEND=noninteractive
+apt-get -y update
+apt-get -y install bison flex
+
+# 2) Provide under the include dir that the Makefile's CFLAGS
+# already searches (-I/usr/local/include). Idempotent: overwrites the same file.
+CUTTLE_DIR=/usr/local/include/cuttle
+mkdir -p "$CUTTLE_DIR"
+cat > "$CUTTLE_DIR/debug.h" <<'CUTTLE_DEBUG_EOF'
+#ifndef CUTTLE_DEBUG_H
+#define CUTTLE_DEBUG_H
+
+#include
+#include
+#include
+
+#ifndef clean_errno
+#define clean_errno() (errno == 0 ? "None" : strerror(errno))
+#endif
+
+#ifndef debug
+#ifdef NDEBUG
+#define debug(M, ...)
+#else
+#define debug(M, ...) fprintf(stderr, "DEBUG %s:%d: " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
+#endif
+#endif
+
+#ifndef log_err
+#define log_err(M, ...) fprintf(stderr, "[ERROR] (%s:%d: errno: %s) " M "\n", __FILE__, __LINE__, clean_errno(), ##__VA_ARGS__)
+#endif
+
+#ifndef log_warn
+#define log_warn(M, ...) fprintf(stderr, "[WARN] (%s:%d: errno: %s) " M "\n", __FILE__, __LINE__, clean_errno(), ##__VA_ARGS__)
+#endif
+
+#ifndef log_info
+#define log_info(M, ...) fprintf(stderr, "[INFO] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
+#endif
+
+#ifndef check
+#define check(A, M, ...) if(!(A)) { log_err(M, ##__VA_ARGS__); errno=0; goto error; }
+#endif
+
+#ifndef sentinel
+#define sentinel(M, ...) { log_err(M, ##__VA_ARGS__); errno=0; goto error; }
+#endif
+
+#ifndef check_mem
+#define check_mem(A) check((A), "Out of memory.")
+#endif
+
+#ifndef check_debug
+#define check_debug(A, M, ...) if(!(A)) { debug(M, ##__VA_ARGS__); errno=0; goto error; }
+#endif
+
+#endif /* CUTTLE_DEBUG_H */
+CUTTLE_DEBUG_EOF
+
+# 3) Confirm the header landed on the build include path.
+if [ ! -f /usr/local/include/cuttle/debug.h ]; then
+ echo "download.sh: failed to provision /usr/local/include/cuttle/debug.h" >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
diff --git a/chameco--solid.11a3c44/tests/executable b/chameco--solid.11a3c44/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..43334d781ead698b115a749f27ba1fa1c9578148
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:72917c2cfa8e956c43856980dbb745a128666a9674d92d7910953c2998316754
+size 162392
diff --git a/chameco--solid.11a3c44/tests/harbor_prepare_download_env.sh b/chameco--solid.11a3c44/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chameco--solid.11a3c44/tests/programgym_evaluator.py b/chameco--solid.11a3c44/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chameco--solid.11a3c44/tests/programgym_task.json b/chameco--solid.11a3c44/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..adf91cd9fb2469c6e284db466e4b0fc703003245
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/programgym_task.json
@@ -0,0 +1,1486 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_lexer_identifiers.test_comment_lines_are_ignored[# full line comment\\nprint(3); # another-3]",
+ "eval.tests.test_lexer_identifiers.test_comment_lines_are_ignored[# leading comment\\nprint(2);-2]",
+ "eval.tests.test_lexer_identifiers.test_comment_lines_are_ignored[print(1); # trailing comment-1]",
+ "eval.tests.test_lexer_identifiers.test_identifier_token[MixedCase9-3-mixed case with digit]",
+ "eval.tests.test_lexer_identifiers.test_identifier_token[_x-3-leading underscore]",
+ "eval.tests.test_lexer_identifiers.test_identifier_token[a-3-single lowercase letter]",
+ "eval.tests.test_lexer_identifiers.test_identifier_token[a1-3-trailing digit]",
+ "eval.tests.test_lexer_identifiers.test_identifier_token[my_var-3-underscore separator]",
+ "eval.tests.test_lexer_identifiers.test_inline_identifier_operator_call[*(6, 7)-42]",
+ "eval.tests.test_lexer_identifiers.test_inline_identifier_operator_call[+(1, 2)-3]",
+ "eval.tests.test_lexer_identifiers.test_inline_identifier_operator_call[-(9, 4)-5]",
+ "eval.tests.test_lexer_identifiers.test_inline_identifier_operator_call[/(20, 5)-4]",
+ "eval.tests.test_lexer_identifiers.test_inline_identifier_operator_call[<(1, 2)-Unknown of type 5]",
+ "eval.tests.test_lexer_identifiers.test_inline_identifier_operator_call[==(2, 2)-Unknown of type 5]",
+ "eval.tests.test_lexer_identifiers.test_multi_char_inline_identifiers[<=(2, 2)-Unknown of type 5]",
+ "eval.tests.test_lexer_identifiers.test_multi_char_inline_identifiers[==(2, 3)-Unknown of type 5]",
+ "eval.tests.test_lexer_identifiers.test_multi_char_inline_identifiers[>=(3, 2)-Unknown of type 5]",
+ "eval.tests.test_lexer_identifiers.test_unknown_character_after_statement[?]",
+ "eval.tests.test_lexer_identifiers.test_unknown_character_after_statement[`]",
+ "eval.tests.test_lexer_identifiers.test_unknown_character_reports_exact_token[?-?]",
+ "eval.tests.test_lexer_identifiers.test_unknown_character_reports_exact_token[`-`]",
+ "eval.tests.test_lexer_identifiers.test_whitespace_is_ignored[ print(1) ;-1]",
+ "eval.tests.test_lexer_identifiers.test_whitespace_is_ignored[print(1);-1]",
+ "eval.tests.test_lexer_identifiers.test_whitespace_is_ignored[print(1);\\nprint(2);-1\\n2]",
+ "eval.tests.test_lexer_literals.test_boolean_literal_prints_unknown_type[print(false);-false literal]",
+ "eval.tests.test_lexer_literals.test_boolean_literal_prints_unknown_type[print(true);-true literal]",
+ "eval.tests.test_lexer_literals.test_double_literal_constructs_node_then_syntax_error[-1.5-1-signed double, incomplete statement]",
+ "eval.tests.test_lexer_literals.test_double_literal_constructs_node_then_syntax_error[1.5 +-1-binary operator with no right operand]",
+ "eval.tests.test_lexer_literals.test_double_literal_constructs_node_then_syntax_error[1.5 2-0-two juxtaposed double expressions]",
+ "eval.tests.test_lexer_literals.test_double_literal_constructs_node_then_syntax_error[1.5-1-bare double, no statement terminator]",
+ "eval.tests.test_lexer_literals.test_double_literal_constructs_node_then_syntax_error[print(1.5-1-double inside unclosed call]",
+ "eval.tests.test_lexer_literals.test_double_literal_constructs_node_then_syntax_error[x = 1.5-1-assignment missing terminator]",
+ "eval.tests.test_lexer_literals.test_integer_arithmetic_matrix[print(10 - 4);-6]",
+ "eval.tests.test_lexer_literals.test_integer_arithmetic_matrix[print(2 + 3);-5]",
+ "eval.tests.test_lexer_literals.test_integer_arithmetic_matrix[print(21 / 3);-7]",
+ "eval.tests.test_lexer_literals.test_integer_arithmetic_matrix[print(6 * 7);-42]",
+ "eval.tests.test_lexer_literals.test_integer_literal_prints_value[-3-negative integer]",
+ "eval.tests.test_lexer_literals.test_integer_literal_prints_value[0-zero integer]",
+ "eval.tests.test_lexer_literals.test_integer_literal_prints_value[42-two-digit integer]",
+ "eval.tests.test_lexer_literals.test_integer_literal_prints_value[7-positive integer]",
+ "eval.tests.test_lexer_literals.test_integer_operator_function_call_forms[*(3, 4)-12]",
+ "eval.tests.test_lexer_literals.test_integer_operator_function_call_forms[+(1, 2)-3]",
+ "eval.tests.test_lexer_literals.test_integer_operator_function_call_forms[-(5, 2)-3]",
+ "eval.tests.test_lexer_literals.test_integer_operator_function_call_forms[/(10, 2)-5]",
+ "eval.tests.test_lexer_literals.test_string_escapes_kept_verbatim[print(\"\\\\n\");-\\\\n]",
+ "eval.tests.test_lexer_literals.test_string_escapes_kept_verbatim[print(\"a\\\\\"b\");-a\\\\\"b]",
+ "eval.tests.test_lexer_literals.test_string_escapes_kept_verbatim[print(\"a\\\\\\\\b\");-a\\\\\\\\b]",
+ "eval.tests.test_lexer_literals.test_string_literal_prints_value[print(\"\");-]",
+ "eval.tests.test_lexer_literals.test_string_literal_prints_value[print(\"a1b2\");-a1b2]",
+ "eval.tests.test_lexer_literals.test_string_literal_prints_value[print(\"hello world\");-hello world]",
+ "eval.tests.test_lexer_literals.test_string_literal_prints_value[print(\"hello\");-hello]",
+ "eval.tests.test_lexer_scanning.test_empty_string_prints_blank_line[print(\"\");-\\n]",
+ "eval.tests.test_lexer_scanning.test_empty_string_prints_blank_line[print(\"\");\\nprint(\"\");-\\n\\n]",
+ "eval.tests.test_lexer_scanning.test_empty_string_prints_blank_line[print(\"a\");\\nprint(\"\");\\nprint(\"b\");-a\\n\\nb\\n]",
+ "eval.tests.test_lexer_scanning.test_infix_operator_spacing[print( 4 + 5 );-9\\n]",
+ "eval.tests.test_lexer_scanning.test_infix_operator_spacing[print(2 + 3);-5\\n]",
+ "eval.tests.test_lexer_scanning.test_infix_operator_spacing[print(2*3);-6\\n]",
+ "eval.tests.test_lexer_scanning.test_mixed_block_delimiters[do print(1); end;-1\\n]",
+ "eval.tests.test_lexer_scanning.test_mixed_block_delimiters[do print(1); };-1\\n]",
+ "eval.tests.test_lexer_scanning.test_mixed_block_delimiters[{print(1); end;-1\\n]",
+ "eval.tests.test_lexer_scanning.test_mixed_block_delimiters[{print(1);};-1\\n]",
+ "eval.tests.test_lexer_scanning.test_string_backslash_quotes_kept_verbatim[print(\"a\\\\\\\\\\\\\\\\b\");-a\\\\\\\\\\\\\\\\b\\n]",
+ "eval.tests.test_lexer_scanning.test_string_backslash_quotes_kept_verbatim[print(\"say \\\\\"hi\\\\\"\");-say \\\\\"hi\\\\\"\\n]",
+ "eval.tests.test_lexer_scanning.test_string_body_punctuation_verbatim[print(\"a#b\");-a#b\\n]",
+ "eval.tests.test_lexer_scanning.test_string_body_punctuation_verbatim[print(\"a;b\");-a;b\\n]",
+ "eval.tests.test_lexer_scanning.test_string_body_punctuation_verbatim[print(\"a{b}c\");-a{b}c\\n]",
+ "eval.tests.test_lexer_scanning.test_string_body_punctuation_verbatim[print(\"a|b\");-a|b\\n]",
+ "eval.tests.test_lexer_scanning.test_string_with_literal_newline[x = \"alpha\\nbeta\";\\nprint(x);-alpha\\nbeta\\n]",
+ "eval.tests.test_lexer_scanning.test_tab_whitespace_is_ignored[\\t\\tprint(1);-1\\n]",
+ "eval.tests.test_lexer_scanning.test_tab_whitespace_is_ignored[\\tx = 5;\\n\\tprint(x);-5\\n]",
+ "eval.tests.test_lexer_scanning.test_tab_whitespace_is_ignored[print(1);\\n\\tprint(2);-1\\n2\\n]",
+ "eval.tests.test_lexer_scanning.test_tab_whitespace_is_ignored[print(1);\\tprint(2);-1\\n2\\n]",
+ "eval.tests.test_lexer_token_edges.test_comment_placement_variants[# leading comment\\nprint(\"ok\");-ok\\n]",
+ "eval.tests.test_lexer_token_edges.test_comment_placement_variants[# one\\n# two\\nprint(\"ok\"); # three-ok\\n]",
+ "eval.tests.test_lexer_token_edges.test_comment_placement_variants[print(\"ok\"); # trailing comment-ok\\n]",
+ "eval.tests.test_lexer_token_edges.test_incremental_cons_list_build[x = [];\\nx = 1 : x;\\nx = 1 : x;\\nprint(x !! 1);-1\\n]",
+ "eval.tests.test_lexer_token_edges.test_incremental_cons_list_build[x = [];\\nx = 1 : x;\\nx = 2 : x;\\nprint(x !! 0);\\nprint(x !! 1);-2\\n1\\n]",
+ "eval.tests.test_lexer_token_edges.test_integer_leading_zeros_and_sign[print(-0);-0\\n]",
+ "eval.tests.test_lexer_token_edges.test_integer_leading_zeros_and_sign[print(-7);--7\\n]",
+ "eval.tests.test_lexer_token_edges.test_integer_leading_zeros_and_sign[print(007);-7\\n]",
+ "eval.tests.test_lexer_token_edges.test_integer_leading_zeros_and_sign[print(01 + 02);-3\\n]",
+ "eval.tests.test_lexer_token_edges.test_integer_leading_zeros_and_sign[print(0123);-123\\n]",
+ "eval.tests.test_lexer_token_edges.test_long_and_underscored_identifiers[_underscore_prefixed]",
+ "eval.tests.test_lexer_token_edges.test_long_and_underscored_identifiers[aZ0_9mixed_case]",
+ "eval.tests.test_lexer_token_edges.test_long_and_underscored_identifiers[verylongidentifier123456789XYZ]",
+ "eval.tests.test_lexer_token_edges.test_no_spaces_around_terminator[print(1);print(2);-1\\n2\\n]",
+ "eval.tests.test_lexer_token_edges.test_no_spaces_around_terminator[x = 1 ;y = 2;\\nprint(x + y);-3\\n]",
+ "eval.tests.test_lexer_token_edges.test_no_spaces_around_terminator[x=1;y=2;\\nprint(x+y);-3\\n]",
+ "eval.tests.test_lexer_token_edges.test_three_deep_chained_assignment[a = b = 4;\\nprint(a);\\nprint(b);-4\\n4\\n]",
+ "eval.tests.test_lexer_token_edges.test_three_deep_chained_assignment[a = b = c = 9;\\nprint(a + b + c);-27\\n]",
+ "eval.tests.test_parser_arithmetic.test_arithmetic_on_invalid_types[print(1 + \"a\");-+]",
+ "eval.tests.test_parser_arithmetic.test_arithmetic_on_invalid_types[print(1 - true);--]",
+ "eval.tests.test_parser_arithmetic.test_arithmetic_on_invalid_types[print(1 / \"x\");-\\\\]",
+ "eval.tests.test_parser_arithmetic.test_arithmetic_on_invalid_types[print([1] * 2);-*]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(* (6, 7));-42]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(+ (2, 3));-5]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(+(1, *(2, 3)));-7]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(-(0, 5));--5]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(-(5, 0));-5]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(-7 / 2);--3]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(/ (20, 5));-4]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(10 - 4);-6]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(2 + 3);-5]",
+ "eval.tests.test_parser_arithmetic.test_integer_arithmetic[print(7 / 2);-3]",
+ "eval.tests.test_parser_arithmetic.test_integer_division_by_zero_sigfpe",
+ "eval.tests.test_parser_arithmetic.test_integer_overflow_wraps[print(-2147483648 - 1);-2147483647]",
+ "eval.tests.test_parser_arithmetic.test_integer_overflow_wraps[print(2147483647 + 1);--2147483648]",
+ "eval.tests.test_parser_arithmetic.test_modulo_operator_is_undefined[print(% (7, 3));]",
+ "eval.tests.test_parser_arithmetic.test_modulo_operator_is_undefined[print(7 % 3);]",
+ "eval.tests.test_parser_assignment.test_chained_assignment[x = y = 2 + 3;\\nprint(x);-5]",
+ "eval.tests.test_parser_assignment.test_chained_assignment[x = y = 5;\\nprint(x);-5]",
+ "eval.tests.test_parser_assignment.test_chained_assignment[x = y = 5;\\nprint(y);-5]",
+ "eval.tests.test_parser_assignment.test_global_assignment_and_read[g := 10;\\nprint(@g);-10]",
+ "eval.tests.test_parser_assignment.test_global_assignment_and_read[x := 5;\\nprint(@x);-5]",
+ "eval.tests.test_parser_assignment.test_local_assignment_roundtrip[x--9--9-negative literal]",
+ "eval.tests.test_parser_assignment.test_local_assignment_roundtrip[x-1 + 2-3-addition expression]",
+ "eval.tests.test_parser_assignment.test_local_assignment_roundtrip[x-100 - 1-99-subtraction expression]",
+ "eval.tests.test_parser_assignment.test_local_assignment_roundtrip[x-21 / 3-7-division expression]",
+ "eval.tests.test_parser_assignment.test_local_assignment_roundtrip[x-5-5-integer literal]",
+ "eval.tests.test_parser_assignment.test_local_assignment_roundtrip[x-7 * 8-56-multiplication expression]",
+ "eval.tests.test_parser_assignment.test_reassignment_updates_value[x = 1;\\nprint(x);\\nx = 99;\\nprint(x);-1\\n99]",
+ "eval.tests.test_parser_assignment.test_reassignment_updates_value[x = 1;\\nx = 2;\\nprint(x);-2]",
+ "eval.tests.test_parser_assignment.test_undefined_global_read_reports_name[g]",
+ "eval.tests.test_parser_assignment.test_undefined_global_read_reports_name[missing_global]",
+ "eval.tests.test_parser_assignment.test_undefined_variable_reports_name[bar]",
+ "eval.tests.test_parser_assignment.test_undefined_variable_reports_name[foo]",
+ "eval.tests.test_parser_assignment.test_undefined_variable_reports_name[never_defined]",
+ "eval.tests.test_parser_builtin_scalar_global.test_clone_list_isolation_from_mutation[a = [1, 2];\\nb = clone(a);\\na = 9 : a;\\nprint(b !! 0);-2\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_clone_list_value_and_index[g = fn [4, 5, 6];\\nprint(clone(g()) !! 1);-5\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_clone_list_value_and_index[print(clone([9, 8]));-Unknown of type 6\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_clone_scalar_values[f = fn 7;\\nprint(clone(f()));-7\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_clone_scalar_values[print(clone(\"abc\"));-abc\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_clone_scalar_values[print(clone(5));-5\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_clone_scalar_values[z = clone(7);\\nprint(z + 1);-8\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_cons_onto_empty_list[y = 0 : [];\\nprint(y !! 0);-0\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_cons_onto_empty_list[y = 5 : [];\\nprint(y !! 0);-5\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gc_preserves_live_state[a := 1;\\ngc();\\nprint(@a);-1\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gc_preserves_live_state[x = [1, 2];\\ngc();\\nprint(x !! 0);-1\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gc_return_value_is_observable[print(gc());-Trash compactor completing operation\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gc_return_value_is_observable[x = gc();\\nprint(x);-Trash compactor completing operation\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gget_inside_function_body[g := 7;\\nf = fn @g;\\nprint(f());-7\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gget_value_feeds_arithmetic[g := 3;\\nsaved = @g;\\nprint(saved + 1);-4\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gset_inside_function_body[f = fn a { a := 99; };\\nf(1);\\nprint(@a);-99\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gset_inside_function_body[f = fn { q := 42; };\\nf();\\nprint(@q);-42\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gset_inside_function_then_overwritten[f = fn { h := 1; };\\nf();\\nprint(@h);\\nh := 2;\\nprint(@h);-1\\n2\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gset_inside_namespace_body[M = ns do a := 5; b := 6; end;\\nprint(@b);-6\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gset_inside_namespace_body[M = ns do a := 5; end;\\nprint(@a);-5\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gset_inside_namespace_is_global[A = ns do g := 1; end;\\nB = ns x = @g;\\nprint(B.x);-1\\n]",
+ "eval.tests.test_parser_builtin_scalar_global.test_gset_inside_namespace_is_global[A = ns do g := 9; end;\\nprint(@g + @g);-18\\n]",
+ "eval.tests.test_parser_comparison.test_comparison_prints_unknown_type[<(1, 2)-True]",
+ "eval.tests.test_parser_comparison.test_comparison_prints_unknown_type[<=(3, 2)-False]",
+ "eval.tests.test_parser_comparison.test_comparison_prints_unknown_type[==(2, 2)-True]",
+ "eval.tests.test_parser_comparison.test_comparison_prints_unknown_type[>(3, 2)-True]",
+ "eval.tests.test_parser_comparison.test_comparison_prints_unknown_type[>=(1, 2)-False]",
+ "eval.tests.test_parser_comparison.test_equality_on_invalid_types[print(==(1, \"a\"));]",
+ "eval.tests.test_parser_comparison.test_if_branches_on_call_form_comparison[<(1, 2)-yes\\n]",
+ "eval.tests.test_parser_comparison.test_if_branches_on_call_form_comparison[<(2, 1)-]",
+ "eval.tests.test_parser_comparison.test_if_branches_on_call_form_comparison[==(1, 1)-yes\\n]",
+ "eval.tests.test_parser_comparison.test_if_branches_on_call_form_comparison[==(1, 2)-]",
+ "eval.tests.test_parser_comparison.test_infix_inline_comparison[if 1 < 2 print(\"lt\");-lt\\n]",
+ "eval.tests.test_parser_comparison.test_infix_inline_comparison[if 1 <= 1 print(\"le\");-le\\n]",
+ "eval.tests.test_parser_comparison.test_infix_inline_comparison[if 2 < 1 print(\"nope\");-]",
+ "eval.tests.test_parser_comparison.test_infix_inline_comparison[if 2 == 2 print(\"eq\");-eq\\n]",
+ "eval.tests.test_parser_comparison.test_infix_inline_comparison[if 2 > 1 print(\"gt\");-gt\\n]",
+ "eval.tests.test_parser_comparison.test_integer_truthiness_in_if[if -1 print(\"neg\");-neg\\n]",
+ "eval.tests.test_parser_comparison.test_integer_truthiness_in_if[if 0 print(\"f\");-]",
+ "eval.tests.test_parser_comparison.test_integer_truthiness_in_if[if 1 print(\"t\");-t\\n]",
+ "eval.tests.test_parser_comparison.test_not_equal_operator_is_undefined[if 1 != 2 print(\"x\");]",
+ "eval.tests.test_parser_comparison.test_not_equal_operator_is_undefined[print(1 != 2);]",
+ "eval.tests.test_parser_controlflow.test_block_as_assignment_sources[x = do print(8); end;-8\\n]",
+ "eval.tests.test_parser_controlflow.test_block_as_assignment_sources[x = {print(7);};-7\\n]",
+ "eval.tests.test_parser_controlflow.test_if_arm_as_block[if 1 do print(\"x\"); end;-x\\n]",
+ "eval.tests.test_parser_controlflow.test_if_arm_as_block[if 1 {print(\"y\");};-y\\n]",
+ "eval.tests.test_parser_controlflow.test_if_does_not_consume_following_statements[if 0 print(\"a\"); print(\"b\");-b\\n]",
+ "eval.tests.test_parser_controlflow.test_if_does_not_consume_following_statements[if 1 print(\"a\"); if 0 print(\"b\"); print(\"c\");-a\\nc\\n]",
+ "eval.tests.test_parser_controlflow.test_if_does_not_consume_following_statements[if 1 print(\"a\"); print(\"b\");-a\\nb\\n]",
+ "eval.tests.test_parser_controlflow.test_if_true_branch_runs[if 0 print(\"f\");-]",
+ "eval.tests.test_parser_controlflow.test_if_true_branch_runs[if 1 print(\"t\");-t\\n]",
+ "eval.tests.test_parser_controlflow.test_if_true_branch_runs[if 5 print(\"five\");-five\\n]",
+ "eval.tests.test_parser_controlflow.test_standalone_blocks[do do print(3); end; end;-3\\n]",
+ "eval.tests.test_parser_controlflow.test_standalone_blocks[do print(1); end;-1\\n]",
+ "eval.tests.test_parser_controlflow.test_standalone_blocks[{ {print(4);}; };-4\\n]",
+ "eval.tests.test_parser_controlflow.test_standalone_blocks[{print(2);};-2\\n]",
+ "eval.tests.test_parser_controlflow.test_while_loop_behavior[i = 0; while <(i, 1) do print(i); i = i + 1; end;-0\\n]",
+ "eval.tests.test_parser_controlflow.test_while_loop_behavior[i = 0; while <(i, 3) do i = i + 1; end; print(i);-3\\n]",
+ "eval.tests.test_parser_controlflow.test_while_loop_behavior[i = 0; while <(i, 3) do print(i); i = i + 1; end;-0\\n1\\n2\\n]",
+ "eval.tests.test_parser_controlflow.test_while_loop_behavior[i = 0; while <(i, 3) {i = i + 1;}; print(i);-3\\n]",
+ "eval.tests.test_parser_controlflow.test_while_loop_behavior[i = 5; while >(i, 0) do i = i - 1; end; print(i);-0\\n]",
+ "eval.tests.test_parser_controlflow.test_while_loop_behavior[while <(5, 1) print(\"never\"); print(\"done\");-done\\n]",
+ "eval.tests.test_parser_errors.test_directory_as_input_file_parse_error",
+ "eval.tests.test_parser_errors.test_invalid_program_exits_nonzero",
+ "eval.tests.test_parser_errors.test_missing_input_file_report[abc]",
+ "eval.tests.test_parser_errors.test_missing_input_file_report[missing.sol]",
+ "eval.tests.test_parser_errors.test_missing_input_file_report[no_such_file]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[;;;-0]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[= 3;-0]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[[1, 2-1]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[a b;-0]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[fn-1]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[if;-0]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[print(1 +);-0]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[print(1 1);-0]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[return;-0]",
+ "eval.tests.test_parser_errors.test_syntax_errors_exit_with_exact_diagnostic[}-0]",
+ "eval.tests.test_parser_errors.test_unbalanced_syntax_errors[do print(1);-1]",
+ "eval.tests.test_parser_errors.test_unbalanced_syntax_errors[print(1));-0]",
+ "eval.tests.test_parser_errors.test_unbalanced_syntax_errors[print(1;-0]",
+ "eval.tests.test_parser_errors.test_unbalanced_syntax_errors[{print(1);-1]",
+ "eval.tests.test_parser_errors.test_unclosed_string_lexer_error[print(\");]",
+ "eval.tests.test_parser_errors.test_unclosed_string_lexer_error[print(\"abc);]",
+ "eval.tests.test_parser_functions.test_call_undefined_function[g]",
+ "eval.tests.test_parser_functions.test_call_undefined_function[not_a_fn]",
+ "eval.tests.test_parser_functions.test_function_multiple_params[f = fn a,b a * b;\\nprint(f(3, 4));-12]",
+ "eval.tests.test_parser_functions.test_function_multiple_params[f = fn a,b a + b;\\nprint(f(10, 5));-15]",
+ "eval.tests.test_parser_functions.test_function_multiple_params[f = fn a,b a - b;\\nprint(f(7, 2));-5]",
+ "eval.tests.test_parser_functions.test_function_multiple_params[f = fn a,b,c a + b + c;\\nprint(f(1, 2, 3));-6]",
+ "eval.tests.test_parser_functions.test_function_recursion_via_dollar[fact = fn n do if ==(n, 1) return 1; n * $(n - 1); end;\\nprint(fact(4));-24]",
+ "eval.tests.test_parser_functions.test_function_recursion_via_dollar[fact = fn n do if ==(n, 1) return 1; n * $(n - 1); end;\\nprint(fact(5));-120]",
+ "eval.tests.test_parser_functions.test_function_recursion_via_dollar[fib = fn n do if <(n, 2) return n; $(n - 1) + $(n - 2); end;\\nprint(fib(10));-55]",
+ "eval.tests.test_parser_functions.test_function_return_value[f = fn a do if ==(a, 1) return 1; return 0; end;\\nprint(f(1));-1]",
+ "eval.tests.test_parser_functions.test_function_return_value[f = fn a return a;\\nprint(f(99));-99]",
+ "eval.tests.test_parser_functions.test_function_single_param_call[f = fn a a * a;\\nprint(f(6));-36]",
+ "eval.tests.test_parser_functions.test_function_single_param_call[f = fn a a + 1;\\nprint(f(4));-5]",
+ "eval.tests.test_parser_functions.test_function_single_param_call[f = fn a a - 10;\\nprint(f(20));-10]",
+ "eval.tests.test_parser_functions.test_function_single_param_call[f = fn a a / 4;\\nprint(f(12));-3]",
+ "eval.tests.test_parser_functions.test_function_thunk[f = fn ~ do print(\"a\"); print(\"b\"); end;\\nf();\\nf();-a\\nb\\na\\nb]",
+ "eval.tests.test_parser_functions.test_function_thunk[f = fn ~ print(\"hi\");\\nf();-hi]",
+ "eval.tests.test_parser_functions.test_inline_operator_function[<< = fn a,b a + b;\\nprint(5 << 3);-8]",
+ "eval.tests.test_parser_functions.test_inline_operator_function[^ = fn a,b a * b;\\nprint(10 ^ 2);-20]",
+ "eval.tests.test_parser_functions.test_print_function_value[f = fn 1;\\nprint(f);]",
+ "eval.tests.test_parser_functions_extra.test_accumulator_while_loop[acc = 0; i = 0; while <(i, 9) do acc = acc + 2; i = i + 1; end; print(acc);-18\\n]",
+ "eval.tests.test_parser_functions_extra.test_accumulator_while_loop[acc = 0; i = 1; while <(i, 11) do acc = acc + i; i = i + 1; end; print(acc);-55\\n]",
+ "eval.tests.test_parser_functions_extra.test_accumulator_while_loop[acc = 1; i = 1; while <(i, 6) do acc = acc * i; i = i + 1; end; print(acc);-120\\n]",
+ "eval.tests.test_parser_functions_extra.test_function_indexes_list_argument[x = [1, 2, 3]; len = fn l l !! 2; print(len(x));-3\\n]",
+ "eval.tests.test_parser_functions_extra.test_function_indexes_list_argument[x = [9, 8, 7]; mid = fn l l !! 1; print(mid(x));-8\\n]",
+ "eval.tests.test_parser_functions_extra.test_function_reads_global_at[base := 10;\\nf = fn a @base - a;\\nprint(f(3));-7\\n]",
+ "eval.tests.test_parser_functions_extra.test_function_reads_global_at[g := 3;\\nf = fn a a + @g;\\nprint(f(4));-7\\n]",
+ "eval.tests.test_parser_functions_extra.test_named_function_composition[mul = fn a,b a * b;\\napply = fn a mul(a, 10);\\nprint(apply(7));-70\\n]",
+ "eval.tests.test_parser_functions_extra.test_named_function_composition[sub = fn a,b a - b;\\nneg = fn a sub(0, a);\\nprint(neg(6));--6\\n]",
+ "eval.tests.test_parser_functions_extra.test_named_function_composition[sum = fn a,b a + b;\\ndouble = fn a sum(a, a);\\nprint(double(4));-8\\n]",
+ "eval.tests.test_parser_functions_extra.test_nested_function_definition[outer = fn do inner = fn 42; inner(); end;\\nprint(outer());-42\\n]",
+ "eval.tests.test_parser_functions_extra.test_nested_function_definition[outer = fn do inner = fn a a * 3; inner(5); end;\\nprint(outer());-15\\n]",
+ "eval.tests.test_parser_functions_extra.test_nested_function_definition[outer = fn do inner = fn a a + 1; inner(41); end;\\nprint(outer());-42\\n]",
+ "eval.tests.test_parser_functions_extra.test_nested_if_guard_chain[x = 0; if <(1, 2) do if <(2, 3) do x = 9; end; end; print(x);-9\\n]",
+ "eval.tests.test_parser_functions_extra.test_nested_if_guard_chain[x = 5; if <(1, 2) do if <(2, 1) do x = 9; end; end; print(x);-5\\n]",
+ "eval.tests.test_parser_functions_extra.test_nested_while_loop_products[i = 0; j = 0;\\nwhile <(i, 3) do while <(j, 2) do print(i * j); j = j + 1; end; j = 0; i = i + 1; end;-0\\n0\\n0\\n1\\n0\\n2\\n]",
+ "eval.tests.test_parser_functions_extra.test_return_guard_early_exit[f = fn a do if <(a, 0) return 0; a; end;\\nprint(f(-5));\\nprint(f(3));-0\\n3\\n]",
+ "eval.tests.test_parser_functions_extra.test_return_guard_early_exit[g = fn a do if ==(a, 1) return 100; return 200; end;\\nprint(g(1));\\nprint(g(2));-100\\n200\\n]",
+ "eval.tests.test_parser_import.test_import_chains_nested_imports[level1\\nlevel2\\nmain\\n]",
+ "eval.tests.test_parser_import.test_import_loop_inside_helper[0\\n1\\n2\\nend\\n]",
+ "eval.tests.test_parser_import.test_import_missing_file_crashes",
+ "eval.tests.test_parser_import.test_import_runs_imported_file[print(\"a\");\\nprint(\"b\");-import(\"lib_value.sol\");\\nimport(\"lib_value.sol\");-a\\nb\\na\\nb\\n-re-importing the same file runs it again]",
+ "eval.tests.test_parser_import.test_import_runs_imported_file[print(\"from_imported\"); x = 40; print(x + 2);-import(\"lib_simple.sol\"); print(\"after_import\");-from_imported\\n42\\nafter_import\\n-imported statements then main continues]",
+ "eval.tests.test_parser_import.test_import_so_missing_dlopen_error[mynative.so]",
+ "eval.tests.test_parser_import.test_import_so_missing_dlopen_error[x.so]",
+ "eval.tests.test_parser_import.test_import_syntax_error_aborts_before_main_continues[1 +-0]",
+ "eval.tests.test_parser_import.test_import_syntax_error_aborts_before_main_continues[if-0]",
+ "eval.tests.test_parser_import.test_import_syntax_error_aborts_before_main_continues[this is not valid @@@-0]",
+ "eval.tests.test_parser_import.test_imported_global_set_readable_via_gget[100-100\\n]",
+ "eval.tests.test_parser_import.test_imported_global_set_readable_via_gget[7-7\\n]",
+ "eval.tests.test_parser_import.test_imported_local_is_not_visible_in_main[helper = fn a a * 3;\\nprint(\"def\");-helper]",
+ "eval.tests.test_parser_import.test_imported_local_is_not_visible_in_main[local_x = 9;\\nprint(\"def\");-local_x]",
+ "eval.tests.test_parser_integration.test_computed_condition[if ==(2 + 2, 4) print(\"ok\");-ok\\n]",
+ "eval.tests.test_parser_integration.test_computed_condition[if ==(2 + 2, 5) print(\"bad\");-]",
+ "eval.tests.test_parser_integration.test_loop_accumulation[i = 0;\\nwhile <(i, 3) do i = i + 1; end;\\nprint(i);-3\\n]",
+ "eval.tests.test_parser_integration.test_loop_accumulation[i = 0;\\nwhile <(i, 5) {i = i + 1;};\\nprint(i * 2);-10\\n]",
+ "eval.tests.test_parser_integration.test_loop_accumulation[i = 0;\\nwhile <(i, 5) {i = i + 1;};\\nprint(i);-5\\n]",
+ "eval.tests.test_parser_integration.test_namespace_members_feed_arithmetic[M = ns do x = 11; end;\\nprint(M.x);-11\\n]",
+ "eval.tests.test_parser_integration.test_namespace_members_feed_arithmetic[M = ns do x = 4; end;\\nM.y = 5;\\nprint(M.x + M.y);-9\\n]",
+ "eval.tests.test_parser_integration.test_repository_recursive_fibonacci[fib = fn n do\\nif <(n, 2) return n;\\n$(n - 1) + $(n - 2);\\nend;\\nprint(fib(12));-144\\n]",
+ "eval.tests.test_parser_integration.test_repository_recursive_fibonacci[fib = fn n do\\nif <(n, 2) return n;\\n$(n - 1) + $(n - 2);\\nend;\\nprint(fib(20));-6765\\n]",
+ "eval.tests.test_parser_integration.test_sequenced_statements[a = 3;\\nb = 4;\\nprint(a * b);\\nprint(a + b);-12\\n7\\n]",
+ "eval.tests.test_parser_integration.test_sequenced_statements[print(1);\\nprint(2);\\nprint(3);-1\\n2\\n3\\n]",
+ "eval.tests.test_parser_integration.test_sequenced_statements[s = \"solid\";\\nprint(s);-solid\\n]",
+ "eval.tests.test_parser_integration.test_sequenced_statements[x = 8;\\nprint(x);\\nprint(x + 1);-8\\n9\\n]",
+ "eval.tests.test_parser_lists.test_list_cons_prepends[x = [2, 3];\\ny = 1 : x;\\nprint(y !! 0);-1]",
+ "eval.tests.test_parser_lists.test_list_cons_prepends[x = [2, 3];\\ny = 9 : x;\\nprint(y !! 1);-2]",
+ "eval.tests.test_parser_lists.test_list_index_out_of_bounds[x = [1, 2];\\nprint(x !! 3);]",
+ "eval.tests.test_parser_lists.test_list_index_out_of_bounds[x = [1];\\nprint(x !! 1);]",
+ "eval.tests.test_parser_lists.test_list_indexing[x = [\"a\", \"b\", \"c\"];\\nprint(x !! 1);-b]",
+ "eval.tests.test_parser_lists.test_list_indexing[x = [\"hello\", \"world\"];\\nprint(x !! 0);-hello]",
+ "eval.tests.test_parser_lists.test_list_indexing[x = [10, 20, 30];\\nprint(x !! 2);-30]",
+ "eval.tests.test_parser_lists.test_list_indexing[x = [2, 3, 4];\\nprint(x !! 0);-2]",
+ "eval.tests.test_parser_lists.test_list_indexing[x = [2, 3, 4];\\nprint(x !! 1);-3]",
+ "eval.tests.test_parser_lists.test_list_indexing[x = [7];\\nprint(x !! 0);-7]",
+ "eval.tests.test_parser_lists.test_list_literal_prints_unknown_type[print([\"a\", \"b\"]);]",
+ "eval.tests.test_parser_lists.test_list_literal_prints_unknown_type[print([1, 2]);]",
+ "eval.tests.test_parser_lists.test_list_literal_prints_unknown_type[x = [1];\\nprint(x);]",
+ "eval.tests.test_parser_lists.test_list_literal_prints_unknown_type[x = [];\\nprint(x);]",
+ "eval.tests.test_parser_lists.test_list_mixed_type_elements[x = [\"a\", 1];\\nprint(x !! 0);-a]",
+ "eval.tests.test_parser_lists.test_list_mixed_type_elements[x = [\"a\", 1];\\nprint(x !! 1);-1]",
+ "eval.tests.test_parser_lists.test_list_rebound_cons[x = [5, 6];\\nx = 4 : x;\\nprint(x !! 0);-4]",
+ "eval.tests.test_parser_lists.test_list_rebound_cons[x = [5, 6];\\nx = 4 : x;\\nprint(x !! 2);-6]",
+ "eval.tests.test_parser_namespaces.test_namespace_dot_assignment[M = ns x = 0;\\nM.x = 5;\\nprint(M.x);-5]",
+ "eval.tests.test_parser_namespaces.test_namespace_dot_read[M = ns do a = 1; b = 2; end;\\nprint(M.a);-1]",
+ "eval.tests.test_parser_namespaces.test_namespace_dot_read[M = ns do a = 1; b = 2; end;\\nprint(M.b);-2]",
+ "eval.tests.test_parser_namespaces.test_namespace_dot_read[M = ns x = 10;\\nprint(M.x);-10]",
+ "eval.tests.test_parser_namespaces.test_namespace_dot_read[Math = ns x = 2;\\nprint(Math.x);-2]",
+ "eval.tests.test_parser_namespaces.test_namespace_function_member[M = ns do ^ = fn a,b a * b; end;\\nprint(M.^(3, 4));-12]",
+ "eval.tests.test_parser_namespaces.test_namespace_function_member[M = ns do add = fn a,b a + b; end;\\nprint(M.add(2, 3));-5]",
+ "eval.tests.test_parser_namespaces.test_namespace_function_member[M = ns do sq = fn a a * a; end;\\nprint(M.sq(9));-81]",
+ "eval.tests.test_parser_namespaces.test_namespace_function_rebind[M = ns do ^ = fn a,b a + b; end;\\nf = M.^;\\nprint(f(2, 3));-5]",
+ "eval.tests.test_parser_namespaces.test_namespace_function_rebind[M = ns do neg = fn a -(0, a); end;\\nf = M.neg;\\nprint(f(7));--7]",
+ "eval.tests.test_parser_namespaces.test_namespace_nested_access[A = ns do B = ns do v = 4; end; end;\\nprint(A.B.v);-4]",
+ "eval.tests.test_parser_namespaces.test_namespace_nested_access[A = ns do B = ns do v = 9; end; end;\\nprint(A.B.v);-9]",
+ "eval.tests.test_parser_namespaces.test_namespace_reads_global[g := 42;\\nM = ns z = @g;\\nprint(M.z);-42]",
+ "eval.tests.test_parser_namespaces.test_namespace_reads_global[g := 7;\\nM = ns z = @g;\\nprint(M.z);-7]",
+ "eval.tests.test_parser_namespaces.test_namespace_undefined_member[missing]",
+ "eval.tests.test_parser_namespaces.test_namespace_undefined_member[y]",
+ "eval.tests.test_parser_param_tilde_compile.test_compile_builtin_reentrant_parse_error[compile(\"1 + 2\");-compile expression without terminator]",
+ "eval.tests.test_parser_param_tilde_compile.test_compile_builtin_reentrant_parse_error[compile(\"1 +\");-compile operator with missing operand]",
+ "eval.tests.test_parser_param_tilde_compile.test_compile_builtin_reentrant_parse_error[compile(\"this is bad @@@\");-compile an invalid token stream]",
+ "eval.tests.test_parser_param_tilde_compile.test_compile_builtin_reentrant_parse_ok[compile(\"print(1 + 2);\");--compile a full program, discard output]",
+ "eval.tests.test_parser_param_tilde_compile.test_compile_builtin_reentrant_parse_ok[compile(\"print(5);\"); print(\"after\");-after\\n-compile then unrelated statement executes]",
+ "eval.tests.test_parser_param_tilde_compile.test_compile_builtin_reentrant_parse_ok[result = compile(\"print(55);\"); print(result);-Function\\n-compile result is a T_FUNC printed as Function]",
+ "eval.tests.test_parser_param_tilde_compile.test_compile_builtin_reentrant_parse_ok[x = compile(\"1;\"); print(x);-Function\\n-compile a terminated statement string into a thunk]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_binds_last_arguments[f = fn ~, a, b, c a + b + c; print(f(1, 2, 3));-6\\n-tilde three params, exact arity]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_binds_last_arguments[f = fn ~, x x * 10; print(f(7, 8));-80\\n-tilde one param, body applies operator to the last arg]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_binds_last_arguments[f = fn ~, x x; print(f(7));-7\\n-tilde with one named param, one arg]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_binds_last_arguments[f = fn ~, x x; print(f(7, 8));-8\\n-tilde one param, extra leading args bind x to the last]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_binds_last_arguments[f = fn ~, x x; print(f(7, 8, 9));-9\\n-tilde one param, three args -> x is the last]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_binds_last_arguments[f = fn ~, x, y x + y; print(f(1, 2));-3\\n-tilde two params, two args bind x and y]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_binds_last_arguments[f = fn ~, x, y x + y; print(f(1, 2, 3));-5\\n-tilde two params, extra leading args -> x,y are the last two]",
+ "eval.tests.test_parser_param_tilde_compile.test_tilde_param_empty_call_stack_empty[f = fn ~, x x; print(f());]",
+ "eval.tests.test_parser_scoping.test_compound_namespace_assignment[M = ns do x = 0; end;\\nM.x = M.x + 1;\\nprint(M.x);-1\\n]",
+ "eval.tests.test_parser_scoping.test_compound_namespace_assignment[M = ns do x = 1; y = 2; end;\\nM.x = M.x + M.y;\\nprint(M.x);-3\\n]",
+ "eval.tests.test_parser_scoping.test_compound_namespace_assignment[M = ns x = 1;\\nM.x = 5;\\nprint(M.x);-5\\n]",
+ "eval.tests.test_parser_scoping.test_function_body_reassign_outer_local_isolated[c = 0;\\nf = fn a c = c + a;\\nf(5);\\nprint(c);-0\\n]",
+ "eval.tests.test_parser_scoping.test_function_body_reassign_outer_local_isolated[c = 1;\\nf = fn a c = 99;\\nf(2);\\nprint(c);-1\\n]",
+ "eval.tests.test_parser_scoping.test_function_body_reassign_outer_local_isolated[x = 7;\\nf = fn do x = 3; end;\\nf();\\nprint(x);-7\\n]",
+ "eval.tests.test_parser_scoping.test_function_results_compose[add1 = fn x x + 1;\\ndbl = fn x x * 2;\\nprint(add1(dbl(4)));-9\\n]",
+ "eval.tests.test_parser_scoping.test_function_results_compose[add1 = fn x x + 1;\\nprint(add1(5) + add1(6));-13\\n]",
+ "eval.tests.test_parser_scoping.test_local_fed_into_inline_operator[n = 2;\\nprint(n + +(n, n));-6\\n]",
+ "eval.tests.test_parser_scoping.test_local_fed_into_inline_operator[n = 5;\\nprint(*(n, +(n, n)));-50\\n]",
+ "eval.tests.test_parser_scoping.test_local_parameter_mutation[swap = fn a,b do a = a + b; b = a - b; a = a - b; print(a); print(b); end;\\nswap(3, 7);-7\\n3\\n]",
+ "eval.tests.test_parser_scoping.test_local_parameter_mutation[swap = fn a,b do c = a; a = b; b = c; print(a); print(b); end;\\nswap(1, 2);-2\\n1\\n]",
+ "eval.tests.test_parser_scoping.test_multi_statement_sequencing[do x = 1; print(x); end;-1\\n]",
+ "eval.tests.test_parser_scoping.test_multi_statement_sequencing[if <(1, 2) do print(\"A\"); end;\\nif <(1, 2) do print(\"B\"); end;-A\\nB\\n]",
+ "eval.tests.test_parser_scoping.test_multi_statement_sequencing[if <(1, 2) do print(\"T\"); end;\\nif <(2, 1) print(\"F\");\\nprint(\"DONE\");-T\\nDONE\\n]",
+ "eval.tests.test_parser_scoping.test_multi_statement_sequencing[print(1); print(2); print(3); print(4); print(5); print(6); print(7);-1\\n2\\n3\\n4\\n5\\n6\\n7\\n]",
+ "eval.tests.test_parser_scoping.test_nested_function_call_expression[print(+(*(2, 3), *(4, 5)));-26\\n]",
+ "eval.tests.test_parser_scoping.test_nested_function_call_expression[print(+(+(1, 2), +(3, 4)));-10\\n]",
+ "eval.tests.test_parser_scoping.test_string_arithmetic_invalid_types[print(\"a\" * \"b\");-*]",
+ "eval.tests.test_parser_scoping.test_string_arithmetic_invalid_types[print(\"a\" - \"b\");--]",
+ "eval.tests.test_parser_scoping.test_string_arithmetic_invalid_types[print(\"hi\" + \"there\");-+]",
+ "eval.tests.test_parser_syntax_edges.test_clone_list_and_namespace[M = ns x = 1;\\nC = clone(M);\\nprint(C.x);-1\\n]",
+ "eval.tests.test_parser_syntax_edges.test_clone_list_and_namespace[x = [1, 2, 3];\\ny = clone(x);\\nprint(y !! 1);-2\\n]",
+ "eval.tests.test_parser_syntax_edges.test_deeply_nested_namespace_access[A = ns do B = ns do C = ns do e = 77; end; end; end;\\nprint(A.B.C.e);-77\\n]",
+ "eval.tests.test_parser_syntax_edges.test_deeply_nested_namespace_access[A = ns do B = ns do e = 1; end; end;\\nprint(A.B.e);-1\\n]",
+ "eval.tests.test_parser_syntax_edges.test_file_without_statement_is_syntax_error[# only a comment\\n# still a comment\\n-comment-only lines]",
+ "eval.tests.test_parser_syntax_edges.test_file_without_statement_is_syntax_error[-empty file]",
+ "eval.tests.test_parser_syntax_edges.test_file_without_statement_is_syntax_error[\\n\\n\\n-whitespace/newline only]",
+ "eval.tests.test_parser_syntax_edges.test_gc_runs_and_is_harmless[gc();-]",
+ "eval.tests.test_parser_syntax_edges.test_gc_runs_and_is_harmless[gc();\\nprint(1);-1\\n]",
+ "eval.tests.test_parser_syntax_edges.test_higher_order_and_list_return[apply = fn f, a f(a);\\nprint(apply(fn x x * 10, 4));-40\\n]",
+ "eval.tests.test_parser_syntax_edges.test_higher_order_and_list_return[f = fn a [a, a + 1, a + 2];\\nprint(f(5) !! 2);-7\\n]",
+ "eval.tests.test_parser_syntax_edges.test_higher_order_and_list_return[f = fn a do [a, a * 2]; end;\\nr = f(3);\\nprint(r !! 1);-6\\n]",
+ "eval.tests.test_parser_syntax_edges.test_higher_order_and_list_return[twice = fn f, x f(f(x));\\nprint(twice(fn y y + 1, 5));-7\\n]",
+ "eval.tests.test_parser_syntax_edges.test_larger_parameter_lists[f = fn a,b,c a + b * c;\\nprint(f(3, 4, 5));-23\\n]",
+ "eval.tests.test_parser_syntax_edges.test_larger_parameter_lists[f = fn a,b,c a;\\nprint(f(9, 8, 7));-9\\n]",
+ "eval.tests.test_parser_syntax_edges.test_larger_parameter_lists[f = fn a,b,c,d a + b + c + d;\\nprint(f(1, 2, 3, 4));-10\\n]",
+ "eval.tests.test_parser_syntax_edges.test_print_namespace_reports_object[M = ns do a = 1; b = 2; end;\\nprint(M);]",
+ "eval.tests.test_parser_syntax_edges.test_print_namespace_reports_object[M = ns x = 2;\\nprint(M);]",
+ "eval.tests.test_parser_syntax_edges.test_print_with_no_arguments_stack_empty[print();\\nprint(1);]",
+ "eval.tests.test_parser_syntax_edges.test_print_with_no_arguments_stack_empty[print();]",
+ "eval.tests.test_parser_syntax_edges.test_undefined_inline_operator_reports_exact_name[!-!]",
+ "eval.tests.test_parser_syntax_edges.test_undefined_inline_operator_reports_exact_name[%-%]",
+ "eval.tests.test_parser_syntax_edges.test_undefined_inline_operator_reports_exact_name[&-&]",
+ "eval.tests.test_parser_syntax_edges.test_undefined_inline_operator_reports_exact_name[++-++]",
+ "eval.tests.test_parser_syntax_edges.test_undefined_inline_operator_reports_exact_name[^-^]",
+ "eval.tests.test_parser_value_forms.test_block_value_assigned_to_variable[x = do 5; end;\\nprint(x);-5\\n]",
+ "eval.tests.test_parser_value_forms.test_block_value_assigned_to_variable[x = do do 99; end; end;\\nprint(x);-99\\n]",
+ "eval.tests.test_parser_value_forms.test_block_value_assigned_to_variable[x = do y = 3; y * 2; end;\\nprint(x);-6\\n]",
+ "eval.tests.test_parser_value_forms.test_block_value_assigned_to_variable[x = do z = 5; z; end;\\nprint(x);-5\\n]",
+ "eval.tests.test_parser_value_forms.test_block_value_assigned_to_variable[x = {print(7);};\\nprint(x);-7\\n7\\n]",
+ "eval.tests.test_parser_value_forms.test_cfunction_builtins_print_as_type[print(compile);-Unknown of type 8\\n]",
+ "eval.tests.test_parser_value_forms.test_cfunction_builtins_print_as_type[print(compile);\\nprint(import);-Unknown of type 8\\nUnknown of type 8\\n]",
+ "eval.tests.test_parser_value_forms.test_cfunction_builtins_print_as_type[print(import);-Unknown of type 8\\n]",
+ "eval.tests.test_parser_value_forms.test_cfunction_builtins_print_as_type[x = compile;\\nprint(1);-1\\n]",
+ "eval.tests.test_parser_value_forms.test_dollar_passed_as_function_argument[f = fn a a;\\ng = fn b b;\\nprint(f(g($)));-Function\\n]",
+ "eval.tests.test_parser_value_forms.test_dollar_passed_as_function_argument[f = fn a a;\\nprint(f($));-Function\\n]",
+ "eval.tests.test_parser_value_forms.test_dollar_reassignment_stores_and_reads[$ = 5;\\nprint(1);-1\\n]",
+ "eval.tests.test_parser_value_forms.test_dollar_reassignment_stores_and_reads[$ = 7;\\nprint($);-7\\n]",
+ "eval.tests.test_parser_value_forms.test_dollar_reassignment_stores_and_reads[$ = 7;\\nprint($);\\n$ = 8;\\nprint($);-7\\n8\\n]",
+ "eval.tests.test_parser_value_forms.test_gset_global_isolation_from_local_read[g-1]",
+ "eval.tests.test_parser_value_forms.test_gset_global_isolation_from_local_read[k-0]",
+ "eval.tests.test_parser_value_forms.test_gset_global_isolation_from_local_read[k-5]",
+ "eval.tests.test_parser_value_forms.test_gset_global_readable_via_at[g-9]",
+ "eval.tests.test_parser_value_forms.test_gset_global_readable_via_at[k-5]",
+ "eval.tests.test_parser_value_forms.test_gset_global_readable_via_at[q-0]",
+ "eval.tests.test_parser_value_forms.test_if_as_value_expression[x = if 0 42;\\nif ==(x, 0) print(\"zero\");-zero\\n]",
+ "eval.tests.test_parser_value_forms.test_if_as_value_expression[x = if 0 42;\\nprint(x);-0\\n]",
+ "eval.tests.test_parser_value_forms.test_if_as_value_expression[x = if 1 42;\\nprint(x);-42\\n]",
+ "eval.tests.test_parser_value_forms.test_if_as_value_expression[x = if 5 99;\\nprint(x);-99\\n]",
+ "eval.tests.test_parser_value_forms.test_integer_literal_wrap_around[print(2147483647 + 0);-2147483647\\n]",
+ "eval.tests.test_parser_value_forms.test_integer_literal_wrap_around[print(4294967296);-0\\n]",
+ "eval.tests.test_parser_value_forms.test_integer_literal_wrap_around[print(99999999999);-1215752191\\n]",
+ "eval.tests.test_parser_value_forms.test_standalone_dollar_prints_function[f = fn a a + 1;\\nprint($);-Function\\n]",
+ "eval.tests.test_parser_value_forms.test_standalone_dollar_prints_function[print($);-Function\\n]",
+ "eval.tests.test_parser_value_forms.test_standalone_dollar_prints_function[print($);\\nprint($);-Function\\nFunction\\n]",
+ "eval.tests.test_parser_value_forms.test_while_never_run_produces_bool_value[x = while <(5, 1) 42;\\nprint(1);-1\\n]",
+ "eval.tests.test_parser_value_forms.test_while_never_run_produces_bool_value[x = while <(5, 1) 42;\\nprint(x);-Unknown of type 5\\n]"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_assignment_set.test_set_compound_assignment[chained]",
+ "eval.tests.test_assignment_set.test_set_compound_assignment[self_referential]",
+ "eval.tests.test_assignment_set.test_set_local_variable_and_read[int]",
+ "eval.tests.test_assignment_set.test_set_local_variable_and_read[large]",
+ "eval.tests.test_assignment_set.test_set_local_variable_and_read[negative]",
+ "eval.tests.test_assignment_set.test_set_local_variable_and_read[reassign]",
+ "eval.tests.test_assignment_set.test_set_local_variable_and_read[string]",
+ "eval.tests.test_assignment_set.test_set_local_variable_and_read[two_vars]",
+ "eval.tests.test_assignment_set.test_set_local_variable_and_read[zero]",
+ "eval.tests.test_assignment_set.test_set_namespace_field_from_local_expr",
+ "eval.tests.test_assignment_set.test_set_value_is_expr_result",
+ "eval.tests.test_ast_behavior_chain.test_cons_onto_empty_list_then_index",
+ "eval.tests.test_ast_behavior_chain.test_division_truncates_toward_zero",
+ "eval.tests.test_ast_behavior_chain.test_empty_list_index_reports_out_of_bounds",
+ "eval.tests.test_ast_behavior_chain.test_four_parameter_function_call",
+ "eval.tests.test_ast_behavior_chain.test_global_reassign_reads_latest",
+ "eval.tests.test_ast_behavior_chain.test_if_false_block_skipped",
+ "eval.tests.test_ast_behavior_chain.test_if_false_literal_expression_yields_zero",
+ "eval.tests.test_ast_behavior_chain.test_large_constant_sum_chain",
+ "eval.tests.test_ast_behavior_chain.test_multiply_inside_expression_precedence",
+ "eval.tests.test_ast_behavior_chain.test_namespace_fields_referenced_in_arithmetic",
+ "eval.tests.test_ast_behavior_chain.test_negative_and_positive_print_sequence",
+ "eval.tests.test_ast_behavior_chain.test_nested_namespace_member_readback",
+ "eval.tests.test_ast_behavior_chain.test_operator_prefix_call_minus",
+ "eval.tests.test_ast_behavior_chain.test_parenthesized_operator_call_add",
+ "eval.tests.test_ast_behavior_chain.test_print_function_object",
+ "eval.tests.test_ast_behavior_chain.test_string_equality_is_invalid_types",
+ "eval.tests.test_ast_behavior_chain.test_variable_read_after_conditional_store",
+ "eval.tests.test_ast_behavior_chain.test_while_block_with_double_increment",
+ "eval.tests.test_ast_coverage_extra.test_assignment_only_no_output",
+ "eval.tests.test_ast_coverage_extra.test_bare_integer_statements_do_not_print",
+ "eval.tests.test_ast_coverage_extra.test_comparison_lte_returns_bool_type_number",
+ "eval.tests.test_ast_coverage_extra.test_cons_on_literal_prints_list_type_number",
+ "eval.tests.test_ast_coverage_extra.test_const_double_as_function_body_crash",
+ "eval.tests.test_ast_coverage_extra.test_const_double_as_repl_style_expression_file",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[arithmetic_operand]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[assigned_then_print]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[comparison_operand]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[function_argument]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[global_set_double]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[if_condition]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[list_element]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[paren_unary]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[print_direct]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_crash_from_various_parents[while_condition_false_fmt]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_in_list_literal_crash",
+ "eval.tests.test_ast_coverage_extra.test_const_double_in_namespace_member_crash",
+ "eval.tests.test_ast_coverage_extra.test_const_double_negative_literal_crash[neg_fraction]",
+ "eval.tests.test_ast_coverage_extra.test_const_double_negative_literal_crash[neg_print]",
+ "eval.tests.test_ast_coverage_extra.test_division_by_zero_sigfpe",
+ "eval.tests.test_ast_coverage_extra.test_empty_call_after_real_prelude",
+ "eval.tests.test_ast_coverage_extra.test_empty_call_stack_error",
+ "eval.tests.test_ast_coverage_extra.test_function_alias_called_by_second_name",
+ "eval.tests.test_ast_coverage_extra.test_function_block_body_returns_last_value",
+ "eval.tests.test_ast_coverage_extra.test_function_named_recursion_via_dollar",
+ "eval.tests.test_ast_coverage_extra.test_function_redefinition_shadows",
+ "eval.tests.test_ast_coverage_extra.test_global_read_missing",
+ "eval.tests.test_ast_coverage_extra.test_global_rhs_lookup_is_local_scope",
+ "eval.tests.test_ast_coverage_extra.test_global_set_read_string",
+ "eval.tests.test_ast_coverage_extra.test_if_as_expression_value",
+ "eval.tests.test_ast_coverage_extra.test_if_with_block_body[curly_multi]",
+ "eval.tests.test_ast_coverage_extra.test_if_with_block_body[do_body]",
+ "eval.tests.test_ast_coverage_extra.test_int_constant_edges[int32_max]",
+ "eval.tests.test_ast_coverage_extra.test_int_constant_edges[int32_min]",
+ "eval.tests.test_ast_coverage_extra.test_int_constant_edges[neg_zero_normalizes]",
+ "eval.tests.test_ast_coverage_extra.test_int_constant_edges[zero]",
+ "eval.tests.test_ast_coverage_extra.test_int_literal_truncates_to_32bit",
+ "eval.tests.test_ast_coverage_extra.test_list_cons_then_index",
+ "eval.tests.test_ast_coverage_extra.test_list_mixed_types_in_one_literal",
+ "eval.tests.test_ast_coverage_extra.test_list_single_element_index",
+ "eval.tests.test_ast_coverage_extra.test_namespace_assign_function_member_then_call",
+ "eval.tests.test_ast_coverage_extra.test_namespace_member_receive_another_namespace",
+ "eval.tests.test_ast_coverage_extra.test_namespace_missing_field_reports_error",
+ "eval.tests.test_ast_coverage_extra.test_nested_functions_reuse_inner_call",
+ "eval.tests.test_ast_coverage_extra.test_operator_on_string_and_int_errors",
+ "eval.tests.test_ast_coverage_extra.test_return_value_stored_but_not_printed",
+ "eval.tests.test_ast_coverage_extra.test_statement_list_with_arithmetic[add_chain_with_x_y]",
+ "eval.tests.test_ast_coverage_extra.test_statement_list_with_arithmetic[sub_chain_assign]",
+ "eval.tests.test_ast_coverage_extra.test_string_concat_mismatch_message",
+ "eval.tests.test_ast_coverage_extra.test_three_parameter_function_call",
+ "eval.tests.test_ast_coverage_extra.test_thunk_inline_body",
+ "eval.tests.test_ast_coverage_extra.test_thunk_zero_param_call",
+ "eval.tests.test_ast_coverage_extra.test_undefined_operator_symbol",
+ "eval.tests.test_ast_coverage_extra.test_undefined_variable_lookup_errors",
+ "eval.tests.test_ast_coverage_extra.test_while_block_body_counts[curly_increment]",
+ "eval.tests.test_ast_coverage_extra.test_while_block_body_counts[do_end_increment]",
+ "eval.tests.test_ast_coverage_extra.test_while_zero_iterations",
+ "eval.tests.test_ast_round3_behavior.test_chained_right_assoc_subtraction",
+ "eval.tests.test_ast_round3_behavior.test_compare_two_namespaces_type_mismatch",
+ "eval.tests.test_ast_round3_behavior.test_comparison_operators_return_bool_object[eq]",
+ "eval.tests.test_ast_round3_behavior.test_comparison_operators_return_bool_object[gt]",
+ "eval.tests.test_ast_round3_behavior.test_comparison_operators_return_bool_object[gteq]",
+ "eval.tests.test_ast_round3_behavior.test_comparison_operators_return_bool_object[lt]",
+ "eval.tests.test_ast_round3_behavior.test_comparison_operators_return_bool_object[lteq]",
+ "eval.tests.test_ast_round3_behavior.test_factorial_recursion_depth",
+ "eval.tests.test_ast_round3_behavior.test_global_assigned_from_inside_function",
+ "eval.tests.test_ast_round3_behavior.test_global_counter_in_while_body",
+ "eval.tests.test_ast_round3_behavior.test_if_branch_value_stored_to_variable",
+ "eval.tests.test_ast_round3_behavior.test_if_string_condition_negate_error",
+ "eval.tests.test_ast_round3_behavior.test_list_index_with_variable",
+ "eval.tests.test_ast_round3_behavior.test_namespace_add_field_then_arithmetic",
+ "eval.tests.test_ast_round3_behavior.test_nested_loop_golden_output",
+ "eval.tests.test_ast_round3_behavior.test_nested_while_accumulation",
+ "eval.tests.test_ast_round3_behavior.test_operator_type_mismatch_exact_diagnostic[div]",
+ "eval.tests.test_ast_round3_behavior.test_operator_type_mismatch_exact_diagnostic[eq_int_bool]",
+ "eval.tests.test_ast_round3_behavior.test_operator_type_mismatch_exact_diagnostic[gt]",
+ "eval.tests.test_ast_round3_behavior.test_operator_type_mismatch_exact_diagnostic[gteq]",
+ "eval.tests.test_ast_round3_behavior.test_operator_type_mismatch_exact_diagnostic[lt]",
+ "eval.tests.test_ast_round3_behavior.test_operator_type_mismatch_exact_diagnostic[sub]",
+ "eval.tests.test_ast_round3_behavior.test_undefined_operator_not_equal",
+ "eval.tests.test_ast_round4_behavior.test_bool_add_invalid_types",
+ "eval.tests.test_ast_round4_behavior.test_bool_mul_invalid_types",
+ "eval.tests.test_ast_round4_behavior.test_boolean_list_index_not_integral",
+ "eval.tests.test_ast_round4_behavior.test_chained_assignment_rvalue",
+ "eval.tests.test_ast_round4_behavior.test_clone_mutation_is_independent",
+ "eval.tests.test_ast_round4_behavior.test_double_negation_reports_invalid_types",
+ "eval.tests.test_ast_round4_behavior.test_empty_string_literal_print",
+ "eval.tests.test_ast_round4_behavior.test_identifier_mixed_alphanumeric",
+ "eval.tests.test_ast_round4_behavior.test_identifier_with_embedded_digit",
+ "eval.tests.test_ast_round4_behavior.test_identifier_with_leading_underscore",
+ "eval.tests.test_ast_round4_behavior.test_namespace_object_print_is_object",
+ "eval.tests.test_ast_round4_behavior.test_negative_zero_constant_literal",
+ "eval.tests.test_ast_round4_behavior.test_print_return_value_observable",
+ "eval.tests.test_ast_round4_behavior.test_right_associative_cons_ordering",
+ "eval.tests.test_ast_round4_behavior.test_self_referential_namespace_member",
+ "eval.tests.test_ast_round4_behavior.test_single_argument_prefix_minus_underflows_stack",
+ "eval.tests.test_calls.test_call_argument_is_function_result",
+ "eval.tests.test_calls.test_call_builtin_nth_list",
+ "eval.tests.test_calls.test_call_comparison_returns_bool_object",
+ "eval.tests.test_calls.test_call_infix_operator_matches_paren_form",
+ "eval.tests.test_calls.test_call_inline_operator_symbol",
+ "eval.tests.test_calls.test_call_nested_run_sol",
+ "eval.tests.test_calls.test_call_object_not_a_function_errors",
+ "eval.tests.test_calls.test_call_operator_function_form[paren_add]",
+ "eval.tests.test_calls.test_call_operator_function_form[paren_mul]",
+ "eval.tests.test_calls.test_call_operator_function_form[paren_sub]",
+ "eval.tests.test_calls.test_call_stdout_from_inside_function",
+ "eval.tests.test_calls.test_call_varying_argument_counts[one_arg]",
+ "eval.tests.test_calls.test_call_varying_argument_counts[three_args]",
+ "eval.tests.test_calls.test_call_varying_argument_counts[two_args]",
+ "eval.tests.test_cli_errors.test_directory_as_input_is_syntax_error",
+ "eval.tests.test_cli_errors.test_empty_input_file_is_syntax_error",
+ "eval.tests.test_cli_errors.test_garbage_token_is_syntax_error",
+ "eval.tests.test_cli_errors.test_missing_input_file_errors",
+ "eval.tests.test_cli_errors.test_multiline_program_state_transition",
+ "eval.tests.test_cli_errors.test_unterminated_string_is_syntax_error",
+ "eval.tests.test_cli_errors.test_valid_program_compiles_and_runs",
+ "eval.tests.test_compile_import.test_compile_constant_double_crashes",
+ "eval.tests.test_compile_import.test_compile_result_can_be_called",
+ "eval.tests.test_compile_import.test_compile_valid_expression_exits_zero",
+ "eval.tests.test_compile_import.test_gc_runs_and_continues",
+ "eval.tests.test_compile_import.test_import_missing_shared_object_errors",
+ "eval.tests.test_compile_import.test_import_runs_side_effects_but_scopes_variables",
+ "eval.tests.test_compile_import.test_import_scoped_variable_not_readable_as_global",
+ "eval.tests.test_compile_import.test_import_sol_file_executes_code",
+ "eval.tests.test_conditionals_if.test_if_condition_false_skips_branch[eq_false]",
+ "eval.tests.test_conditionals_if.test_if_condition_false_skips_branch[gt_false]",
+ "eval.tests.test_conditionals_if.test_if_condition_false_skips_branch[literal_false]",
+ "eval.tests.test_conditionals_if.test_if_condition_false_skips_branch[lt_false]",
+ "eval.tests.test_conditionals_if.test_if_condition_is_call_result",
+ "eval.tests.test_conditionals_if.test_if_condition_true[eq_true]",
+ "eval.tests.test_conditionals_if.test_if_condition_true[gt]",
+ "eval.tests.test_conditionals_if.test_if_condition_true[literal_true]",
+ "eval.tests.test_conditionals_if.test_if_condition_true[lt]",
+ "eval.tests.test_conditionals_if.test_if_condition_true[zero_eq]",
+ "eval.tests.test_conditionals_if.test_if_else_like_successive_ifs",
+ "eval.tests.test_conditionals_if.test_if_int_zero_is_falsey",
+ "eval.tests.test_conditionals_if.test_if_nested",
+ "eval.tests.test_constants.test_constant_bool_false_branch_skipped",
+ "eval.tests.test_constants.test_constant_bool_print[false]",
+ "eval.tests.test_constants.test_constant_bool_print[true]",
+ "eval.tests.test_constants.test_constant_bool_used_as_branch_condition",
+ "eval.tests.test_constants.test_constant_double_assigned_then_printed_crashes",
+ "eval.tests.test_constants.test_constant_double_crashes[half]",
+ "eval.tests.test_constants.test_constant_double_crashes[negative]",
+ "eval.tests.test_constants.test_constant_double_crashes[one_point]",
+ "eval.tests.test_constants.test_constant_double_crashes[one_point_five]",
+ "eval.tests.test_constants.test_constant_double_crashes[pi]",
+ "eval.tests.test_constants.test_constant_double_in_arithmetic_crashes",
+ "eval.tests.test_constants.test_constant_int_print[large]",
+ "eval.tests.test_constants.test_constant_int_print[negative]",
+ "eval.tests.test_constants.test_constant_int_print[one]",
+ "eval.tests.test_constants.test_constant_int_print[positive]",
+ "eval.tests.test_constants.test_constant_int_print[zero]",
+ "eval.tests.test_constants.test_constant_string_print[embedded_newline]",
+ "eval.tests.test_constants.test_constant_string_print[empty]",
+ "eval.tests.test_constants.test_constant_string_print[plain]",
+ "eval.tests.test_constants.test_constant_string_print[trailing_space]",
+ "eval.tests.test_constants.test_constant_string_print[with_spaces]",
+ "eval.tests.test_functions.test_closure_captures_outer_scope",
+ "eval.tests.test_functions.test_fibonacci_recursive",
+ "eval.tests.test_functions.test_function_assigned_to_local_then_called",
+ "eval.tests.test_functions.test_function_body_is_explicit_block",
+ "eval.tests.test_functions.test_function_call_computes_result",
+ "eval.tests.test_functions.test_function_defines_and_prints_as_function",
+ "eval.tests.test_functions.test_function_immediate_return",
+ "eval.tests.test_functions.test_function_redefined_receives_namespace_set",
+ "eval.tests.test_functions.test_function_result_fed_to_print_of_bool",
+ "eval.tests.test_functions.test_function_returns_last_expression",
+ "eval.tests.test_functions.test_higher_order_function_applies_twice",
+ "eval.tests.test_functions.test_multiple_parameters",
+ "eval.tests.test_functions.test_recursive_function_via_dollar",
+ "eval.tests.test_functions.test_three_parameter_function",
+ "eval.tests.test_functions.test_thunk_syntax_zero_params",
+ "eval.tests.test_global.test_global_distinct_from_local",
+ "eval.tests.test_global.test_global_read_missing_errors",
+ "eval.tests.test_global.test_global_reset_changes_value",
+ "eval.tests.test_global.test_global_set_then_get[read_twice]",
+ "eval.tests.test_global.test_global_set_then_get[set_read_int]",
+ "eval.tests.test_global.test_global_set_then_get[set_read_negative]",
+ "eval.tests.test_global.test_global_set_then_get[set_read_string]",
+ "eval.tests.test_global.test_global_set_uses_rhs_expression",
+ "eval.tests.test_lists.test_list_arithmetic_on_elements",
+ "eval.tests.test_lists.test_list_cons_prepends_element",
+ "eval.tests.test_lists.test_list_empty_index_errors",
+ "eval.tests.test_lists.test_list_index_out_of_bounds_errors",
+ "eval.tests.test_lists.test_list_literal_and_index[first]",
+ "eval.tests.test_lists.test_list_literal_and_index[last]",
+ "eval.tests.test_lists.test_list_literal_and_index[second]",
+ "eval.tests.test_lists.test_list_literal_and_index[single]",
+ "eval.tests.test_lists.test_list_literal_and_index[string_member]",
+ "eval.tests.test_lists.test_list_mixed_value_types",
+ "eval.tests.test_lists.test_list_single_element_roundtrip",
+ "eval.tests.test_lists.test_list_stored_as_variable",
+ "eval.tests.test_lists.test_nested_list_inner_index_is_unstable",
+ "eval.tests.test_lists.test_nested_list_print_reports_list_type",
+ "eval.tests.test_loops_while.test_while_body_uses_less_than_operator",
+ "eval.tests.test_loops_while.test_while_counts_to_bound",
+ "eval.tests.test_loops_while.test_while_descending_with_gte",
+ "eval.tests.test_loops_while.test_while_exits_when_condition_value_changes",
+ "eval.tests.test_loops_while.test_while_nested_in_if_guard",
+ "eval.tests.test_loops_while.test_while_sums_range",
+ "eval.tests.test_loops_while.test_while_with_return_exits_early",
+ "eval.tests.test_loops_while.test_while_zero_iterations",
+ "eval.tests.test_namespace_get.test_get_field_from_function_receiver_errors",
+ "eval.tests.test_namespace_get.test_get_field_on_namespace_root_only",
+ "eval.tests.test_namespace_get.test_get_missing_field_errors",
+ "eval.tests.test_namespace_get.test_get_namespace_field[int_field]",
+ "eval.tests.test_namespace_get.test_get_namespace_field[int_value]",
+ "eval.tests.test_namespace_get.test_get_namespace_field[second_of_two]",
+ "eval.tests.test_namespace_get.test_get_namespace_field[string_field]",
+ "eval.tests.test_namespace_get.test_get_nested_namespace_field",
+ "eval.tests.test_namespace_get.test_set_namespace_field_expression_rhs",
+ "eval.tests.test_namespace_get.test_set_namespace_field_via_get_node",
+ "eval.tests.test_namespace_ns.test_namespace_clone_via_clone_function",
+ "eval.tests.test_namespace_ns.test_namespace_construct_preserves_members[int_member]",
+ "eval.tests.test_namespace_ns.test_namespace_construct_preserves_members[string_member]",
+ "eval.tests.test_namespace_ns.test_namespace_construct_preserves_members[two_members_last]",
+ "eval.tests.test_namespace_ns.test_namespace_holds_function_member",
+ "eval.tests.test_namespace_ns.test_namespace_passed_through_function",
+ "eval.tests.test_namespace_ns.test_namespaces_are_independent_objects",
+ "eval.tests.test_operators.test_arithmetic_infix[add]",
+ "eval.tests.test_operators.test_arithmetic_infix[add_chain]",
+ "eval.tests.test_operators.test_arithmetic_infix[div_exact]",
+ "eval.tests.test_operators.test_arithmetic_infix[div_truncates]",
+ "eval.tests.test_operators.test_arithmetic_infix[mul]",
+ "eval.tests.test_operators.test_arithmetic_infix[mul_negative]",
+ "eval.tests.test_operators.test_arithmetic_infix[neg]",
+ "eval.tests.test_operators.test_arithmetic_infix[sub]",
+ "eval.tests.test_operators.test_arithmetic_infix[sub_chained_right_assoc]",
+ "eval.tests.test_operators.test_comparison_eq",
+ "eval.tests.test_operators.test_comparison_gte",
+ "eval.tests.test_operators.test_comparison_gte_governs_branch",
+ "eval.tests.test_operators.test_comparison_lt",
+ "eval.tests.test_operators.test_comparison_lte",
+ "eval.tests.test_operators.test_division_by_zero_sigfpe",
+ "eval.tests.test_operators.test_operator_invalid_types_errors[mixed_add]",
+ "eval.tests.test_operators.test_operator_invalid_types_errors[str_add]",
+ "eval.tests.test_operators.test_operator_invalid_types_errors[str_eq]",
+ "eval.tests.test_operators.test_operator_invalid_types_errors[str_mul]",
+ "eval.tests.test_operators.test_right_associativity_matches_binary",
+ "eval.tests.test_operators.test_undefined_operator_errors",
+ "eval.tests.test_statement_block.test_block_curly_braces_and_do_end_sequence",
+ "eval.tests.test_statement_block.test_block_curly_braces_single_line",
+ "eval.tests.test_statement_block.test_block_do_end_modifies_outer_variable",
+ "eval.tests.test_statement_block.test_block_nested_blocks",
+ "eval.tests.test_statement_block.test_statement_list_sequential_execution[four_stmts]",
+ "eval.tests.test_statement_block.test_statement_list_sequential_execution[three_stmts]",
+ "eval.tests.test_statement_block.test_statement_list_sequential_execution[two_stmts]"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_golden_output.test_condition_and_print_dispatch_matches_golden",
+ "reasons": [
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_golden_output.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_arithmetic.test_arithmetic_mixed_in_assignment",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[*--5 * 4--20]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[*-0 * 99-0]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[*-4 * 3-12]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[*-5 * 5 * 2-50]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[+--2 + 10-8]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[+-0 + 0-0]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[+-1 + 2 + 3-6]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[+-10 + -4-6]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[+-5 + 3-8]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[--0 - 0-0]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[--10 - 3-7]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[--20 - 5 - 5-20]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[--3 - 10--7]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[/--6 / 2--3]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[/-20 / 4 / 2-10]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[/-7 / 2-3]",
+ "eval.tests.test_arithmetic.test_integer_arithmetic_binary[/-9 / 3-3]",
+ "eval.tests.test_arithmetic.test_integer_edge_cases[-10 / 3--3]",
+ "eval.tests.test_arithmetic.test_integer_edge_cases[-2147483647 - 1--2147483648]",
+ "eval.tests.test_arithmetic.test_integer_edge_cases[-2147483648 - 1-2147483647]",
+ "eval.tests.test_arithmetic.test_integer_edge_cases[10 / -3--3]",
+ "eval.tests.test_arithmetic.test_integer_edge_cases[100000 * 100000-1410065408]",
+ "eval.tests.test_arithmetic.test_integer_edge_cases[2147483647 + 1--2147483648]",
+ "eval.tests.test_arithmetic.test_integer_edge_cases[7 / 2-3]",
+ "eval.tests.test_arithmetic.test_mixed_operator_chain_right_assoc",
+ "eval.tests.test_arithmetic.test_operators_as_function_calls[*(2, +(3, 4))-14]",
+ "eval.tests.test_arithmetic.test_operators_as_function_calls[*(3, 7)-21]",
+ "eval.tests.test_arithmetic.test_operators_as_function_calls[+(1, +(2, 3))-6]",
+ "eval.tests.test_arithmetic.test_operators_as_function_calls[+(5, 3)-8]",
+ "eval.tests.test_arithmetic.test_operators_as_function_calls[-(10, 4)-6]",
+ "eval.tests.test_arithmetic.test_operators_as_function_calls[-(100, 30)-70]",
+ "eval.tests.test_arithmetic.test_operators_as_function_calls[/(20, 4)-5]",
+ "eval.tests.test_arithmetic.test_right_associative_binary[10 - 2 - 3-11]",
+ "eval.tests.test_arithmetic.test_right_associative_binary[16 / 2 / 2-16]",
+ "eval.tests.test_arithmetic.test_right_associative_binary[20 - 5 - 5-20]",
+ "eval.tests.test_arithmetic.test_right_associative_binary[24 / 4 / 2-12]",
+ "eval.tests.test_arithmetic.test_right_associative_binary[30 / 3 / 2-30]",
+ "eval.tests.test_bool_literals.test_bool_reassignment_changes_gate",
+ "eval.tests.test_bool_literals.test_bool_variable_drives_loop",
+ "eval.tests.test_bool_literals.test_false_literal_skips_body",
+ "eval.tests.test_bool_literals.test_false_via_comparison_skips",
+ "eval.tests.test_bool_literals.test_print_bool_is_unknown_type",
+ "eval.tests.test_bool_literals.test_true_eq_true_is_type_error",
+ "eval.tests.test_bool_literals.test_true_literal_stored_and_used",
+ "eval.tests.test_clone_deep.test_clone_function_remains_callable",
+ "eval.tests.test_clone_deep.test_clone_global_obj_before_source_mutation",
+ "eval.tests.test_clone_deep.test_clone_integer_value",
+ "eval.tests.test_clone_deep.test_clone_list_elements",
+ "eval.tests.test_clone_deep.test_clone_list_is_independent",
+ "eval.tests.test_clone_deep.test_clone_nested_namespace_independent",
+ "eval.tests.test_clone_deep.test_clone_string_value",
+ "eval.tests.test_clone_deep.test_clone_then_gc_then_use",
+ "eval.tests.test_comparison_function_forms.test_cmp_function_used_in_arithmetic_condition",
+ "eval.tests.test_comparison_function_forms.test_cmp_function_value_passed_to_condition",
+ "eval.tests.test_comparison_function_forms.test_eq_function_bool_prints_unknown",
+ "eval.tests.test_comparison_function_forms.test_eq_function_false_prints_unknown",
+ "eval.tests.test_comparison_function_forms.test_gt_function_takes_if_body",
+ "eval.tests.test_comparison_function_forms.test_gte_function_false_skips",
+ "eval.tests.test_comparison_function_forms.test_gte_function_true_at_bound",
+ "eval.tests.test_comparison_function_forms.test_lt_function_false_skips",
+ "eval.tests.test_comparison_function_forms.test_lt_function_takes_if_body",
+ "eval.tests.test_comparison_function_forms.test_lte_function_false_skips",
+ "eval.tests.test_comparison_function_forms.test_lte_function_true_at_bound",
+ "eval.tests.test_comparison_function_forms.test_while_callable_lt_counts_down_loop",
+ "eval.tests.test_comparison_function_forms.test_while_callable_lte_inclusive",
+ "eval.tests.test_compile_variants.test_compile_constant_plus_one",
+ "eval.tests.test_compile_variants.test_compile_function_called_multiple_times",
+ "eval.tests.test_compile_variants.test_compile_if_branch_body",
+ "eval.tests.test_compile_variants.test_compile_list_body_returns_element",
+ "eval.tests.test_compile_variants.test_compile_nested_function_body",
+ "eval.tests.test_compile_variants.test_compile_then_gc_then_call",
+ "eval.tests.test_compile_variants.test_compile_while_loop_body",
+ "eval.tests.test_condition_coercions.test_if_cfunc_negate_error",
+ "eval.tests.test_condition_coercions.test_if_function_negate_error",
+ "eval.tests.test_condition_coercions.test_if_int_truthiness_flips_program_driver",
+ "eval.tests.test_condition_coercions.test_if_large_int_literal_takes_body",
+ "eval.tests.test_condition_coercions.test_if_namespace_negate_error",
+ "eval.tests.test_condition_coercions.test_if_negative_int_literal_takes_body",
+ "eval.tests.test_condition_coercions.test_if_positive_int_literal_takes_body",
+ "eval.tests.test_condition_coercions.test_if_stored_positive_int",
+ "eval.tests.test_condition_coercions.test_if_stored_zero_int_skips",
+ "eval.tests.test_condition_coercions.test_if_zero_int_literal_skips_body",
+ "eval.tests.test_condition_coercions.test_while_int_flag_loop",
+ "eval.tests.test_control_flow.test_block_condition_true",
+ "eval.tests.test_control_flow.test_block_value_as_variable",
+ "eval.tests.test_control_flow.test_block_value_is_last_expression",
+ "eval.tests.test_control_flow.test_comparison_via_lt_and_lte",
+ "eval.tests.test_control_flow.test_countdown_while_step",
+ "eval.tests.test_control_flow.test_gt_countdown_loop_with_body",
+ "eval.tests.test_control_flow.test_if_block_multiple_statements",
+ "eval.tests.test_control_flow.test_if_false_branch_skipped",
+ "eval.tests.test_control_flow.test_if_true_branch",
+ "eval.tests.test_control_flow.test_if_using_precomputed_bool",
+ "eval.tests.test_control_flow.test_if_with_plain_comparison",
+ "eval.tests.test_control_flow.test_large_while_counter",
+ "eval.tests.test_control_flow.test_nested_control_flow",
+ "eval.tests.test_control_flow.test_nested_if_blocks",
+ "eval.tests.test_control_flow.test_nested_while_loops",
+ "eval.tests.test_control_flow.test_while_accumulates_sum",
+ "eval.tests.test_control_flow.test_while_block_form",
+ "eval.tests.test_control_flow.test_while_loop_iterates",
+ "eval.tests.test_control_flow.test_while_never_runs_when_condition_false",
+ "eval.tests.test_control_flow.test_while_uses_bool_variable",
+ "eval.tests.test_errors.test_double_literal_crashes_the_vm[arith]",
+ "eval.tests.test_errors.test_double_literal_crashes_the_vm[assigned]",
+ "eval.tests.test_errors.test_double_literal_crashes_the_vm[literal]",
+ "eval.tests.test_errors.test_empty_list_index_sigfpe_like_oob",
+ "eval.tests.test_errors.test_integer_division_by_zero_sigfpe",
+ "eval.tests.test_errors.test_negative_index_errors",
+ "eval.tests.test_errors.test_operator_type_errors[print(\"a\" * \"b\");-Error: Attempt to apply operator \"*\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(\"a\" - \"b\");-Error: Attempt to apply operator \"-\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(\"a\" / 2);-Error: Attempt to apply operator \"\\\\\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(\"a\" == 1);-Error: Attempt to apply operator \"==\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(\"a\" > 1);-Error: Attempt to apply operator \">\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(\"a\" >= 1);-Error: Attempt to apply operator \">=\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(\"x\" + 1);-Error: Attempt to apply operator \"+\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(1 * \"a\");-Error: Attempt to apply operator \"*\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(1 + \"a\");-Error: Attempt to apply operator \"+\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(1 - \"a\");-Error: Attempt to apply operator \"-\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(1 / \"a\");-Error: Attempt to apply operator \"\\\\\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(1 <= \"a\");-Error: Attempt to apply operator \"<=\" on invalid types]",
+ "eval.tests.test_errors.test_operator_type_errors[print(1 == \"a\");-Error: Attempt to apply operator \"==\" on invalid types]",
+ "eval.tests.test_errors.test_syntax_error_bad_list_element",
+ "eval.tests.test_errors.test_syntax_error_reports_and_exits",
+ "eval.tests.test_errors.test_syntax_error_unterminated_call",
+ "eval.tests.test_errors.test_undefined_member",
+ "eval.tests.test_errors.test_undefined_operator_not_in_namespace[print(1 ! 2);-!]",
+ "eval.tests.test_errors.test_undefined_operator_not_in_namespace[print(5 % 2);-%]",
+ "eval.tests.test_errors.test_undefined_variable",
+ "eval.tests.test_functions.test_anonymous_function_call",
+ "eval.tests.test_functions.test_explicit_return_short_circuits",
+ "eval.tests.test_functions.test_factorial_recursion",
+ "eval.tests.test_functions.test_fibonacci_recursive",
+ "eval.tests.test_functions.test_function_body_implicit_last_value",
+ "eval.tests.test_functions.test_function_returns_via_cons_list",
+ "eval.tests.test_functions.test_function_used_in_condition_driver",
+ "eval.tests.test_functions.test_function_value_passed_as_argument",
+ "eval.tests.test_functions.test_if_branched_return_in_function",
+ "eval.tests.test_functions.test_inline_operator_function_definition",
+ "eval.tests.test_functions.test_multiple_parameters",
+ "eval.tests.test_functions.test_nested_function_calls",
+ "eval.tests.test_functions.test_parameter_shadows_outer",
+ "eval.tests.test_functions.test_print_function_outputs_function",
+ "eval.tests.test_functions.test_recursion_depth_in_loop",
+ "eval.tests.test_functions.test_recursion_via_dollar",
+ "eval.tests.test_functions.test_thunk_function_value",
+ "eval.tests.test_functions.test_variadic_wrong_count_stack_underflow",
+ "eval.tests.test_functions.test_zero_arity_named_function",
+ "eval.tests.test_gc_breadth.test_gc_and_nested_function_namespaces",
+ "eval.tests.test_gc_breadth.test_gc_clone_instance_then_reuse",
+ "eval.tests.test_gc_breadth.test_gc_deeply_nested_namespace",
+ "eval.tests.test_gc_breadth.test_gc_discards_loop_temps_over_iterations",
+ "eval.tests.test_gc_breadth.test_gc_empty_repeated_collection",
+ "eval.tests.test_gc_breadth.test_gc_frees_unreferenced_list_of_instances",
+ "eval.tests.test_gc_breadth.test_gc_instance_holding_list_of_instances",
+ "eval.tests.test_gc_breadth.test_gc_large_numeric_list_kept",
+ "eval.tests.test_gc_breadth.test_gc_list_of_instances_survives",
+ "eval.tests.test_gc_breadth.test_gc_many_member_buckets_survive",
+ "eval.tests.test_gc_breadth.test_gc_repeated_same_graph_stable",
+ "eval.tests.test_gc_breadth.test_gc_string_function_and_list_share_pass",
+ "eval.tests.test_gc_breadth.test_gc_sweep_then_reuse_names",
+ "eval.tests.test_gc_breadth.test_gc_then_cons_and_index_interleaved",
+ "eval.tests.test_gc_breadth.test_gc_two_independent_trees_both_kept",
+ "eval.tests.test_gc_breadth.test_gc_unreferenced_function_namespace_collected",
+ "eval.tests.test_gc_deletion.test_clone_list_then_gc_then_cons",
+ "eval.tests.test_gc_deletion.test_function_scoped_namespace_deleted",
+ "eval.tests.test_gc_deletion.test_gc_after_deriving_scalar",
+ "eval.tests.test_gc_deletion.test_gc_after_rebinding_var_to_scalar",
+ "eval.tests.test_gc_deletion.test_gc_collects_big_temp_keeps_scalar",
+ "eval.tests.test_gc_deletion.test_gc_collects_clone_each_iteration",
+ "eval.tests.test_gc_deletion.test_gc_collects_function_object",
+ "eval.tests.test_gc_deletion.test_gc_collects_many_scalars",
+ "eval.tests.test_gc_deletion.test_gc_collects_scalar_object",
+ "eval.tests.test_gc_deletion.test_gc_collects_string_object",
+ "eval.tests.test_gc_deletion.test_gc_collects_transient_list_keeps_other",
+ "eval.tests.test_gc_deletion.test_gc_collects_unreferenced_then_resumes",
+ "eval.tests.test_gc_deletion.test_gc_during_loop_collects_each_iteration",
+ "eval.tests.test_gc_deletion.test_gc_then_replace_list",
+ "eval.tests.test_gc_deletion.test_nested_function_calls_with_gc",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_cons_chain_live_with_orphan_sweep",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_fn_returned_list_live_sweep_block_orphan",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_function_scope_ns_swept_sibling_orphan",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_gc_repeated_mark_and_sweep_alters_shape",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_mark_hetero_members_sweep_orphan",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_mark_many_instances_sweep_one",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_mark_nested_ns_and_sweep_orphan_chain",
+ "eval.tests.test_gc_mark_and_sweep_chains.test_mark_rich_ns_and_sweep_same_shape",
+ "eval.tests.test_gc_marking.test_gc_keeps_bool_member",
+ "eval.tests.test_gc_marking.test_gc_keeps_function_member",
+ "eval.tests.test_gc_marking.test_gc_keeps_heterogeneous_members",
+ "eval.tests.test_gc_marking.test_gc_keeps_list_held_by_instance",
+ "eval.tests.test_gc_marking.test_gc_keeps_list_of_integers",
+ "eval.tests.test_gc_marking.test_gc_keeps_multiple_integer_members",
+ "eval.tests.test_gc_marking.test_gc_keeps_nested_namespace",
+ "eval.tests.test_gc_marking.test_gc_keeps_overwritten_member",
+ "eval.tests.test_gc_marking.test_gc_keeps_single_integer_member",
+ "eval.tests.test_gc_marking.test_gc_keeps_string_member",
+ "eval.tests.test_gc_marking.test_gc_keeps_two_instances",
+ "eval.tests.test_gc_marking.test_gc_survives_computed_value_chain",
+ "eval.tests.test_gc_marking.test_repeated_gc_namespace_stable",
+ "eval.tests.test_golden_output.test_combined_runtime_matches_golden",
+ "eval.tests.test_golden_output.test_condition_and_print_dispatch_matches_golden",
+ "eval.tests.test_golden_output.test_golden_file_is_nonempty_non_dummy",
+ "eval.tests.test_import.test_cli_missing_file_report_error",
+ "eval.tests.test_import.test_import_missing_file_crashes",
+ "eval.tests.test_import.test_import_of_non_sol_extension_is_noop",
+ "eval.tests.test_import.test_import_result_arithmetic",
+ "eval.tests.test_import.test_import_returns_final_value",
+ "eval.tests.test_import.test_import_returns_list_then_gc",
+ "eval.tests.test_import.test_import_runs_loop_returns_count",
+ "eval.tests.test_import.test_import_runs_side_effects_then_continues",
+ "eval.tests.test_import.test_import_variables_do_not_leak",
+ "eval.tests.test_lists.test_chained_cons_builds_list",
+ "eval.tests.test_lists.test_cons_chain",
+ "eval.tests.test_lists.test_cons_onto_empty_list",
+ "eval.tests.test_lists.test_cons_prepends",
+ "eval.tests.test_lists.test_cons_string_elements",
+ "eval.tests.test_lists.test_cons_then_index_grown_position",
+ "eval.tests.test_lists.test_list_in_range_index[0-1]",
+ "eval.tests.test_lists.test_list_in_range_index[1-2]",
+ "eval.tests.test_lists.test_list_in_range_index[2-3]",
+ "eval.tests.test_lists.test_list_index_by_position",
+ "eval.tests.test_lists.test_list_literal_index_zero",
+ "eval.tests.test_lists.test_list_mixed_types_index",
+ "eval.tests.test_lists.test_list_of_integers",
+ "eval.tests.test_lists.test_list_out_of_bounds_error[10]",
+ "eval.tests.test_lists.test_list_out_of_bounds_error[3]",
+ "eval.tests.test_lists.test_list_out_of_bounds_error[4]",
+ "eval.tests.test_lists.test_repeated_cons_rebuilds",
+ "eval.tests.test_lists.test_runtime_grown_list_index",
+ "eval.tests.test_lists.test_single_element_list",
+ "eval.tests.test_namespace_errors.test_after_namespace_error_terminates",
+ "eval.tests.test_namespace_errors.test_assign_member_middle_of_chain",
+ "eval.tests.test_namespace_errors.test_get_member_on_non_instance[a = ns do -print(a.b.]",
+ "eval.tests.test_namespace_errors.test_get_member_on_non_instance[b = 1 == 1-print(b.q)]",
+ "eval.tests.test_namespace_errors.test_get_member_on_non_instance[f = fn a a-print(f.q)]",
+ "eval.tests.test_namespace_errors.test_get_member_on_non_instance[l = [1];-print(l.q)]",
+ "eval.tests.test_namespace_errors.test_get_member_on_non_instance[s = \"a\";-print(s.q)]",
+ "eval.tests.test_namespace_errors.test_get_member_on_non_instance[x = 1;-print(x.q)]",
+ "eval.tests.test_namespace_errors.test_set_member_on_non_instance[b = 1 == 1;-b.f = 2;]",
+ "eval.tests.test_namespace_errors.test_set_member_on_non_instance[f = fn a a;-f.f = 2;]",
+ "eval.tests.test_namespace_errors.test_set_member_on_non_instance[l = [1];-l.f = 2;]",
+ "eval.tests.test_namespace_errors.test_set_member_on_non_instance[s = \"a\";-s.f = 2;]",
+ "eval.tests.test_namespace_errors.test_set_member_on_non_instance[x = 1;-x.f = 2;]",
+ "eval.tests.test_namespaces.test_clone_is_independent_mutation",
+ "eval.tests.test_namespaces.test_clone_list",
+ "eval.tests.test_namespaces.test_clone_namespace_retains_members",
+ "eval.tests.test_namespaces.test_duplicate_member_overwrites",
+ "eval.tests.test_namespaces.test_namespace_creation_and_dot_access",
+ "eval.tests.test_namespaces.test_namespace_function_member",
+ "eval.tests.test_namespaces.test_nested_namespaces",
+ "eval.tests.test_namespaces.test_print_instance_outputs_object",
+ "eval.tests.test_namespaces.test_undefined_member_errors",
+ "eval.tests.test_ns_clone_import_compositions.test_clone_of_clone_diverges",
+ "eval.tests.test_ns_clone_import_compositions.test_deep_clone_diverges_at_inner_level",
+ "eval.tests.test_ns_clone_import_compositions.test_function_returns_list_of_instances",
+ "eval.tests.test_ns_clone_import_compositions.test_function_returns_list_of_integers_then_index",
+ "eval.tests.test_ns_clone_import_compositions.test_function_returns_namespace_member",
+ "eval.tests.test_ns_clone_import_compositions.test_import_defines_and_returns_scoped_value",
+ "eval.tests.test_ns_clone_import_compositions.test_import_list_with_namespace_then_gc",
+ "eval.tests.test_ns_clone_import_compositions.test_import_returns_list_value",
+ "eval.tests.test_ns_clone_import_compositions.test_repeated_gc_rebind_keeps_live",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=!!]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=*]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=+]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=-]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=/]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=:]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=<=]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=<]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var===]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=>=]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=>]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_bound_variable_fallback[var=gc]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=!!]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=*]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=+]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=-]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=/]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=:]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=<=]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=<]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op===]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=>=]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=>]",
+ "eval.tests.test_object_print_dispatch.test_print_cfunc_direct_fallback[op=gc]",
+ "eval.tests.test_object_print_dispatch.test_print_clone_builtin_is_unknown_type",
+ "eval.tests.test_object_print_dispatch.test_print_cons_built_list_is_unknown_type",
+ "eval.tests.test_object_print_dispatch.test_print_empty_list_is_unknown_type",
+ "eval.tests.test_object_print_dispatch.test_print_flat_list_is_unknown_type",
+ "eval.tests.test_object_print_dispatch.test_print_list_of_strings_is_unknown_type",
+ "eval.tests.test_object_print_dispatch.test_print_list_variable_is_unknown_type",
+ "eval.tests.test_object_print_dispatch.test_print_method_style_operator_in_namespace",
+ "eval.tests.test_object_print_dispatch.test_print_print_builtin_is_unknown_type",
+ "eval.tests.test_object_type_errors.test_compile_non_string_argument_errors[1 + 2]",
+ "eval.tests.test_object_type_errors.test_compile_non_string_argument_errors[42]",
+ "eval.tests.test_object_type_errors.test_compile_non_string_argument_errors[[1]]",
+ "eval.tests.test_object_type_errors.test_compile_non_string_argument_errors[true]",
+ "eval.tests.test_object_type_errors.test_compile_string_argument_builds_function",
+ "eval.tests.test_object_type_errors.test_compile_string_argument_error_propagates",
+ "eval.tests.test_object_type_errors.test_getter_error_aborts_later_statements",
+ "eval.tests.test_object_type_errors.test_import_non_string_argument_errors[1 == 1]",
+ "eval.tests.test_object_type_errors.test_import_non_string_argument_errors[42]",
+ "eval.tests.test_object_type_errors.test_import_non_string_argument_errors[[1]]",
+ "eval.tests.test_object_type_errors.test_import_non_string_argument_errors[true]",
+ "eval.tests.test_object_type_errors.test_import_string_missing_file_is_segv_not_type_error",
+ "eval.tests.test_object_type_errors.test_nth_list_non_int_index_errors[-\"k\"-string literal ind]",
+ "eval.tests.test_object_type_errors.test_nth_list_non_int_index_errors[-[3]-list literal index]",
+ "eval.tests.test_object_type_errors.test_nth_list_non_int_index_errors[-true-bool literal index]",
+ "eval.tests.test_object_type_errors.test_nth_list_non_int_index_errors[b = 0 == 0;-b-bound bool index]",
+ "eval.tests.test_object_type_errors.test_nth_list_non_int_index_errors[s = \"hi\";-s-bound string index]",
+ "eval.tests.test_object_type_errors.test_nth_list_non_int_index_errors[y = [1];-y-bound list index]",
+ "eval.tests.test_polymorphic_programs.test_function_table_via_clone",
+ "eval.tests.test_polymorphic_programs.test_gc_inside_function_table",
+ "eval.tests.test_polymorphic_programs.test_member_value_in_condition_dot",
+ "eval.tests.test_polymorphic_programs.test_namespace_config_drives_loop",
+ "eval.tests.test_polymorphic_programs.test_namespace_function_table",
+ "eval.tests.test_polymorphic_programs.test_nested_list_indexing_crashes",
+ "eval.tests.test_polymorphic_programs.test_recursive_and_iterative_factorial_agree",
+ "eval.tests.test_print_output.test_multiple_prints_preserve_order",
+ "eval.tests.test_print_output.test_print_bool_falls_through",
+ "eval.tests.test_print_output.test_print_comparison_result",
+ "eval.tests.test_print_output.test_print_empty_string",
+ "eval.tests.test_print_output.test_print_function_label",
+ "eval.tests.test_print_output.test_print_integer",
+ "eval.tests.test_print_output.test_print_negative_integer",
+ "eval.tests.test_print_output.test_print_object_label",
+ "eval.tests.test_print_output.test_print_string",
+ "eval.tests.test_print_output.test_print_string_with_special_chars",
+ "eval.tests.test_print_output.test_print_variable_holding_string",
+ "eval.tests.test_runtime_gc.test_gc_during_loop",
+ "eval.tests.test_runtime_gc.test_gc_is_callable_as_cfunc",
+ "eval.tests.test_runtime_gc.test_gc_keeps_clone_alive",
+ "eval.tests.test_runtime_gc.test_gc_keeps_list_alive",
+ "eval.tests.test_runtime_gc.test_gc_keeps_referenced_local_alive",
+ "eval.tests.test_runtime_gc.test_gc_then_call_function",
+ "eval.tests.test_sweep_structures.test_sweep_deep_orphan_garbage_burst",
+ "eval.tests.test_sweep_structures.test_sweep_inside_function_scope_orphan",
+ "eval.tests.test_sweep_structures.test_sweep_list_of_mixed_scalars_and_objects",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_flat_list[big = [0,1,2,3,4,5]; big = 7; gc; print(big); gc; print(big + big);-7\\n14\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_flat_list[flat = [1,2,3,4,5]; flat = 100; gc; print(flat); n = [40,50]; print(n !! 0);-100\\n40\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_flat_list[keep = 1; temp = [5,6,7,8]; temp = 2; gc; print(keep); print(temp);-1\\n2\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_flat_list[ys = [4,5,6]; k = 7; ys2 = [8,9]; k = k + 1; gc; print(k); print(ys2 !! 1);-8\\n9\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_instance_holding_list[h = ns do inner = ns do z = [5,6]; end; end; h = 1; gc; print(2); t = [7,8,9]; print(t !! 2);-2\\n9\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_instance_holding_list[holder = ns do data = [10,20,30]; flag = 1; end; sv = 2; holder = 0; gc; print(sv);-2\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_instance_holding_list[u = ns do w = [1,2]; end; u = 0; gc; print(1); v = [3,4]; print(v !! 0); print(v !! 1);-1\\n3\\n4\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_list_of_instances[a = ns do v = 1; end; b = ns do v = 2; end; L = [a, b]; keep = 3; gc; print(keep);-3\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_list_of_instances[i = ns do j = ns do k = 5; end; end; L = [i]; L = 9; gc; print(9); m = ns do x = [2,3]; end; print(m.x !! 0);-9\\n2\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_list_of_instances[p = ns do v = 10; end; q = ns do v = 20; end; r = ns do v = 30; end; xs = [p, q, r]; xs = 0; gc; print(1); live = [p, q]; print(live !! 1); q.v = 22; print(q.v);-1\\nObject\\n22\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_nested_lists[a = [[1,2,3]]; gc; print(99); b = [[4,5],[6,7]]; b = 1; gc; c = [2,3]; print(c !! 1);-99\\n3\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_nested_lists[m = [[1,2],[3,4]]; m = 5; gc; print(m); n = [9,10]; gc; print(n !! 0); print(n !! 1);-5\\n9\\n10\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_orphaned_nested_lists[t = [[1],[2],[3],[4]]; t = 0; gc; u = [7,8]; print(u !! 1);-8\\n]",
+ "eval.tests.test_sweep_structures.test_sweep_then_rebind_same_names_many_structures",
+ "eval.tests.test_variables.test_copy_between_variables",
+ "eval.tests.test_variables.test_global_not_leaked_to_local",
+ "eval.tests.test_variables.test_global_set_and_get",
+ "eval.tests.test_variables.test_global_value_usable_in_arithmetic",
+ "eval.tests.test_variables.test_integer_literal_storage[-3--3]",
+ "eval.tests.test_variables.test_integer_literal_storage[0-0]",
+ "eval.tests.test_variables.test_integer_literal_storage[1000-1000]",
+ "eval.tests.test_variables.test_integer_literal_storage[7-7]",
+ "eval.tests.test_variables.test_local_assignment_and_read",
+ "eval.tests.test_variables.test_reassignment_overwrites",
+ "eval.tests.test_variables.test_self_referential_assignment",
+ "eval.tests.test_variables.test_undefined_global_errors",
+ "eval.tests.test_variables.test_undefined_variable_errors",
+ "eval.tests.test_vm_misc.test_bool_driven_break_via_reassignment",
+ "eval.tests.test_vm_misc.test_call_non_function_int",
+ "eval.tests.test_vm_misc.test_call_non_function_string",
+ "eval.tests.test_vm_misc.test_eq_on_ints_in_condition",
+ "eval.tests.test_vm_misc.test_eq_on_lists_rejected",
+ "eval.tests.test_vm_misc.test_full_int_min_literal_roundtrip",
+ "eval.tests.test_vm_misc.test_function_result_in_arithmetic",
+ "eval.tests.test_vm_misc.test_function_returns_list",
+ "eval.tests.test_vm_misc.test_function_returns_string",
+ "eval.tests.test_vm_misc.test_gt_countdown_stops_below",
+ "eval.tests.test_vm_misc.test_gte_countdown_loop",
+ "eval.tests.test_vm_misc.test_int_less_than_string_error",
+ "eval.tests.test_vm_misc.test_int_min_plus_max_wrap",
+ "eval.tests.test_vm_misc.test_integer_overflow_wraps",
+ "eval.tests.test_vm_misc.test_no_arg_function_via_parens",
+ "eval.tests.test_vm_misc.test_no_arg_function_via_thunk",
+ "eval.tests.test_vm_misc.test_numeric_comparison_on_bool_error",
+ "eval.tests.test_vm_misc.test_self_referential_function_call_chain",
+ "eval.tests.test_vm_misc.test_wrong_argument_count_stack_underflow"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_errors.test_binary_program_file_is_rejected",
+ "eval.tests.test_errors.test_closure_free_variable_undefined",
+ "eval.tests.test_errors.test_empty_argument_stack_error[zero_args_add]",
+ "eval.tests.test_errors.test_empty_argument_stack_error[zero_args_print]",
+ "eval.tests.test_errors.test_empty_file_is_syntax_error",
+ "eval.tests.test_errors.test_first_argument_wins_over_second",
+ "eval.tests.test_errors.test_flag_argument_is_treated_as_filename[dash_h]",
+ "eval.tests.test_errors.test_flag_argument_is_treated_as_filename[doubledash_version]",
+ "eval.tests.test_errors.test_input_is_directory_fails",
+ "eval.tests.test_errors.test_missing_input_file[missing_file.sol]",
+ "eval.tests.test_errors.test_missing_input_file[nonexistent_xyz.sol]",
+ "eval.tests.test_errors.test_nonexistent_first_argument_reported",
+ "eval.tests.test_errors.test_operator_type_error",
+ "eval.tests.test_errors.test_parentheses_are_not_grouping_tokens",
+ "eval.tests.test_errors.test_syntax_error_reports_line_and_exits[bad_while_body]",
+ "eval.tests.test_errors.test_syntax_error_reports_line_and_exits[illegal_token]",
+ "eval.tests.test_errors.test_syntax_error_reports_line_and_exits[missing_rhs]",
+ "eval.tests.test_errors.test_syntax_error_reports_line_and_exits[unclosed_string]",
+ "eval.tests.test_errors.test_undefined_namespace_member_error",
+ "eval.tests.test_errors.test_undefined_variable",
+ "eval.tests.test_file_interpreter.test_assignment_only_file_exits_zero",
+ "eval.tests.test_file_interpreter.test_expression_only_file_exits_zero",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[add_binds_inside_sub]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[add_binds_tighter_than_sub]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[add_identity]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[add_tents]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[big_multiply]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[carry_add]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[clone_list_then_index]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[composed_adder]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[cons_preserves_tail_elem]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[cube_function]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[div_by_four_var]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[div_identity]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[div_mul_multibind]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[divide_identity]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[empty_string_print]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[if_do_end_then_body]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[if_eq_prefix_body]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[if_ge_do_end_body]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[integer_division_truncates]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[integer_division_truncates_large]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[list_elems_sum_via_index]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[list_index_add_multibind]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[mul_by_zero]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[mul_three_by_three]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[multiply_whole]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[namespace_field_read]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[namespace_method_call]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[nary_add_three]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[nary_mul_three]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[nearly_equal]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[negate_large]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[negate_nine]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[one_times_one]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[prefix_sub_function]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[square_of_square]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[string_with_digits_and_spaces]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[sub_large]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[sub_returns_three]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[subtract_thrice_right_assoc]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[subtract_to_zero]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[subtract_two_digit]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[thunk_returns_list_index]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[triple_multiply]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[while_do_end_accumulate]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[while_do_end_counter]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[zero_minus_zero]",
+ "eval.tests.test_file_interpreter.test_extra_distinct_program_stdout[zero_plus_zero]",
+ "eval.tests.test_file_interpreter.test_function_object_printing[compile_returns_function_object]",
+ "eval.tests.test_file_interpreter.test_last_expression_result_not_printed_in_file_mode",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[add_prefix_form_three_args]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[big_integer_mul]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[compound_division_multiplication]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[eq_prefix_false_no_output]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[eq_prefix_routes_branch]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[gc_builtin_runs_without_side_effects]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[ge_operator_routes_branch]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[gt_operator_routes_branch]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[le_operator_routes_branch]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[lt_prefix_one_true]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[mul_prefix_form]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[negative_integer_division]",
+ "eval.tests.test_file_interpreter.test_operator_and_builtin_routing[sub_prefix_form]",
+ "eval.tests.test_file_interpreter.test_operator_precedence_and_functional_grouping[div_binds_tighter_than_sub]",
+ "eval.tests.test_file_interpreter.test_operator_precedence_and_functional_grouping[functional_add_grouping]",
+ "eval.tests.test_file_interpreter.test_operator_precedence_and_functional_grouping[functional_mul_grouping]",
+ "eval.tests.test_file_interpreter.test_operator_precedence_and_functional_grouping[mul_binds_tighter_than_add]",
+ "eval.tests.test_file_interpreter.test_operator_precedence_and_functional_grouping[mul_over_add_in_variables]",
+ "eval.tests.test_file_interpreter.test_operator_precedence_and_functional_grouping[nested_functional_addition]",
+ "eval.tests.test_file_interpreter.test_print_extra_args_pops_top_of_stack",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[accumulate_in_variable]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[add_prefix]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[add_three_func_args]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[clone_integer]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[clone_variable]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[divide_infix]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[empty_statement_sequence_only_side_effects]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[function_calling_function]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[function_return_early]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[if_false_skips_then_continues]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[if_true_branch]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[if_uses_function_call_condition]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[list_cons_front]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[list_cons_original_head]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[list_index_first]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[list_index_last]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[list_index_middle]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[list_of_ints_sum_positions]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[list_of_strings]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[many_prints_ordered]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[multi_print_statements]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[multiply_infix]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[namespace_captures_own_field]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[namespace_field_access]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[namespace_nested_call]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[negative_int_print]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[nested_while_sum]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[print_integer]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[print_multiline_string]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[print_string]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[print_string_with_spaces]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[reassign_and_sum]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[recursion_factorial]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[recursion_fib_10]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[repo_test_sol_fib_20]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[return_top_level_value_is_ignored]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[square_function]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[subtract_infix]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[thunk_anonymous]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[two_arg_function]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[unary_minus_expr]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[use_vars_in_arith]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[variable_reassignment]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[while_inline_brace]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[while_prints_sequence]",
+ "eval.tests.test_file_interpreter.test_valid_program_stdout[while_zero_iterations]",
+ "eval.tests.test_import.test_import_absolute_path_so_fails",
+ "eval.tests.test_import.test_import_extension_matching_is_case_sensitive[uppercase_so]",
+ "eval.tests.test_import.test_import_extension_matching_is_case_sensitive[uppercase_sol]",
+ "eval.tests.test_import.test_import_leading_dot_name_is_noop[leading_dot_config]",
+ "eval.tests.test_import.test_import_leading_dot_name_is_noop[leading_dot_dotfile]",
+ "eval.tests.test_import.test_import_leading_dot_name_is_noop[leading_dot_hidden]",
+ "eval.tests.test_import.test_import_non_script_extension_is_noop[conf_extension]",
+ "eval.tests.test_import.test_import_non_script_extension_is_noop[txt_extension]",
+ "eval.tests.test_import.test_import_single_dot_name_is_noop",
+ "eval.tests.test_import.test_import_so_invokes_solid_init",
+ "eval.tests.test_import.test_import_so_load_failure_aborts",
+ "eval.tests.test_import.test_import_so_load_failure_stops_execution",
+ "eval.tests.test_import.test_import_sol_executes_side_effect",
+ "eval.tests.test_import.test_import_sol_multiple_statements",
+ "eval.tests.test_import.test_import_sol_runs_before_following_lines",
+ "eval.tests.test_import.test_import_splits_on_last_dot_for_so",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[list_add_type_error]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[list_index_out_of_bounds_high]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[list_index_out_of_bounds_negative]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[list_index_out_of_bounds_on_empty]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[list_index_out_of_bounds_via_variable]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[list_multiply_type_error]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[string_eq_type_error]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[string_gt_type_error]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[string_lt_type_error]",
+ "eval.tests.test_module_coverage_round3.test_round3_error_has_exact_diagnostic[string_subtract_type_error]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[clone_namespace_value]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[cloned_namespace_method_call]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[cons_chain_reverse]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[cons_depth_three_index_last]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[cons_preserves_tail_second]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[cons_string_front_element]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[deep_functional_addition]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[double_cons_front]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[index_via_variable_valid]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[large_negative_literal]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[list_cons_nested_values]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[mixed_type_list_string_index]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[named_function_call]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[namespace_built_in_function]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[namespace_field_reassignment]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[namespace_field_shadows_global_name]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[nested_namespace_access]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[nested_thunk_composition]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[thunk_returns_arith]",
+ "eval.tests.test_module_coverage_round3.test_round3_valid_distinct_program_stdout[thunk_value_plus_one]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[bang_cfunc_undefined]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[bool_compared_as_int_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[closure_returned_fn_free_var]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[int_minus_string_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[int_mul_string_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[int_plus_string_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[list_eq_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[list_lt_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[string_gte_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[string_lte_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_error_has_exact_diagnostic[string_plus_int_type_error]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[bool_value_routes_if]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[clone_namespace_independent]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[cons_depth_four_last]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[cons_of_two_lists]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[cons_via_function]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[deep_prefix_sub]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[div_chain_two_lines]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[func_in_func_closure]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[func_redeclared]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[func_unused_second_arg]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[if_while_combo]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[index_two_positions]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[index_variable_twice]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[ns_bool_field_condition]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[ns_closure_capture_outer]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[ns_field_arithmetic]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[ns_method_mul]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[ns_returns_list_index]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[ns_two_fields_compose]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[poly_function_three_branches]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_bool_unknown_type]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_bool_var_twice]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_clone_bool_unknown_type]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_clone_function]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_clone_int]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_clone_list_unknown_type]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_clone_namespace_object]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_clone_string]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_cons_unknown_type]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_empty_list_unknown_type]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_list_unknown_type]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_named_function_variable]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[print_namespace_is_object]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[square_of_negative]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[string_escaped_quote]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[string_literal_backslash_t]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[string_unicode_nonascii]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[sub_right_assoc_vars]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[sub_right_associative]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[three_var_sum]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[thunk_in_namespace]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[while_eq_single_iteration]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[while_ge_to_zero]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[while_gt_decreasing]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[while_le_counter]",
+ "eval.tests.test_module_coverage_round4.test_round4_valid_distinct_program_stdout[while_nested_if_accumulate]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[bool_eq_bool_type_error]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[bool_eq_int_in_if_error]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[bool_gt_literal_type_error]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[bool_lt_type_error]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[bool_lte_literal_type_error]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[bool_minus_int_type_error]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[bool_plus_int_type_error]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[break_keyword_undefined]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[def_keyword_undefined]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[gget_absent_global_variable]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[gget_absent_namespace_member]",
+ "eval.tests.test_module_coverage_round5.test_round5_error_has_exact_diagnostic[gget_names_local_not_global]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[bool_literal_fn_return]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[bool_literal_passed_to_fn]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[bool_literal_reassigned_false]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[bool_literals_in_list]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[clone_true_literal]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[compile_then_invoke_returns_function]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_call_clone]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_call_compile]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_call_gc]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_cfunc_stored_invoked_with_arg]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_cfunc_stored_printed]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_chain_gc_clone]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_clone_of_cfunc]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_compile_result_prints_function]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_compile_side_effect_only]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_import_is_cfunc]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[gget_print_is_cfunc]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[if_false_do_end_skips]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[if_false_literal_skips]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[if_true_and_false_pair]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[if_true_do_end_plus_after]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[if_true_literal_branch]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[ns_bool_false_field_skips]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[ns_bool_true_field_routes_if]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[ns_method_returns_false_literal_skips]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[print_false_literal]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[print_true_literal]",
+ "eval.tests.test_module_coverage_round5.test_round5_valid_distinct_program_stdout[while_driven_by_bool_var]",
+ "eval.tests.test_repl.test_repl_empty_stdin_supported_term_exits_zero_no_prompt",
+ "eval.tests.test_repl.test_repl_empty_stdin_unset_term_exits_zero",
+ "eval.tests.test_repl.test_repl_empty_stdin_unsupported_term_prompts_and_exits_zero[term_cons25]",
+ "eval.tests.test_repl.test_repl_empty_stdin_unsupported_term_prompts_and_exits_zero[term_dumb]"
+ ]
+ }
+ },
+ "commit": "11a3c44a815dda255711eb5927dbef3c40747683",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.448242412634439,
+ "eval_clean_hashes": [
+ "72917c2cfa8e956c43856980dbb745a128666a9674d92d7910953c2998316754"
+ ],
+ "input_record": {
+ "commit": "11a3c44a815dda255711eb5927dbef3c40747683",
+ "commits": 88,
+ "contributors": 2,
+ "difficulty": "easy",
+ "difficulty_code_lines": 2807,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 2807,
+ "difficulty_runtime_deps": 0,
+ "difficulty_score": 1.448242412634439,
+ "difficulty_test_code_lines": 0,
+ "full_name": "chameco/Solid",
+ "github_stars": 271,
+ "input_joern_zip": "c_joern/chameco__Solid.zip",
+ "joern_status": true,
+ "joern_time": 4.4153457139618695,
+ "language": "c",
+ "pb_match": [
+ {
+ "pb_fullname": "php/php-src",
+ "rank": 374,
+ "similarity": 0.44789570569992065
+ },
+ {
+ "pb_fullname": "bellard/quickjs",
+ "rank": 133,
+ "similarity": 0.5049163103103638
+ },
+ {
+ "pb_fullname": "LuaJIT/LuaJIT",
+ "rank": 268,
+ "similarity": 0.493812620639801
+ },
+ {
+ "pb_fullname": "lua/lua",
+ "rank": 31,
+ "similarity": 0.5664302110671997
+ }
+ ],
+ "repo_age": 13.27,
+ "repo_path": "c/chameco__Solid",
+ "source": "commit:11a3c44a815dda255711eb5927dbef3c40747683",
+ "status": "done",
+ "url": "https://github.com/chameco/Solid"
+ },
+ "instance_id": "chameco__Solid.11a3c44",
+ "language": "c",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 4,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "chameco/Solid"
+}
diff --git a/chameco--solid.11a3c44/tests/test.sh b/chameco--solid.11a3c44/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chameco--solid.11a3c44/tests/workspace.tar.gz b/chameco--solid.11a3c44/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..20a3fffc13da03ef384574aa4f693ce2e4b04571
--- /dev/null
+++ b/chameco--solid.11a3c44/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6658b548340f13ea10bad0fef0e907914716cb69ceae5baf9ebe92fcb20ba8a1
+size 5468
diff --git a/cheekybits--genny.3e22f1a/environment/Dockerfile b/cheekybits--genny.3e22f1a/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..18c9b14a3dd87ff70c68d67e0e9cd3cb548e1b1a
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/environment/Dockerfile
@@ -0,0 +1,60 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/cheekybits--genny.3e22f1a/environment/download.sh b/cheekybits--genny.3e22f1a/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..6897bc51fcaa24c167328bd2e2aea456888df3ad
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/environment/download.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
+# Generated deterministically from repository module metadata; do not edit.
+set -u
+export GOTOOLCHAIN=auto
+mkdir -p /workspace/.programgym_build_env/go-prefetch
+cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
+module github.com/cheekybits/genny
+
+go 1.12
+
+require (
+ github.com/stretchr/testify v1.3.0
+ golang.org/x/tools v0.0.0-20190328030505-8f05a32dce9f
+)
+PROGRAMGYM_GO_MOD_EOF
+cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
+github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/tools v0.0.0-20190328030505-8f05a32dce9f h1:MC9ePo9/ITLPbt6QsoTD78Pg07by0QbfGLUQpkJ01QM=
+golang.org/x/tools v0.0.0-20190328030505-8f05a32dce9f/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+PROGRAMGYM_GO_SUM_EOF
+PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
+PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
+ *"|"*|*","*)
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
+ fi
+ ;;
+esac
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+fi
+cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
+import os
+import signal
+import subprocess
+import sys
+import time
+
+sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
+if not command:
+ raise SystemExit(125)
+environment = os.environ.copy()
+environment["GOPROXY"] = proxy
+process = subprocess.Popen(command, env=environment, start_new_session=True)
+try:
+ returncode = process.wait(timeout=float(timeout_text))
+except subprocess.TimeoutExpired:
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
+ sentinel.write("expired\n")
+ try:
+ os.killpg(process.pid, signal.SIGTERM)
+ except ProcessLookupError:
+ pass
+ deadline = time.monotonic() + float(grace_text)
+ group_alive = True
+ while time.monotonic() < deadline:
+ process.poll()
+ try:
+ os.killpg(process.pid, 0)
+ except ProcessLookupError:
+ group_alive = False
+ break
+ time.sleep(0.05)
+ if group_alive:
+ try:
+ os.killpg(process.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ process.wait()
+ raise SystemExit(124)
+if returncode < 0:
+ returncode = 128 - returncode
+raise SystemExit(returncode)
+PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
+PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if ! command -v python3 >/dev/null 2>&1; then
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+_programgym_go_with_nexus_timeout() {
+ local programgym_go_rc
+ local programgym_go_timeout_sentinel
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
+ return 1
+ fi
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
+ programgym_go_rc=0
+ else
+ programgym_go_rc=$?
+ fi
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
+ rm -f "$programgym_go_timeout_sentinel"
+ return "$programgym_go_rc"
+ fi
+ rm -f "$programgym_go_timeout_sentinel"
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
+ return "$programgym_go_rc"
+ fi
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
+}
+PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
+if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+else
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
+fi
+export PATH="$GOROOT/bin:$PATH"
+export GOTOOLCHAIN=local
+if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+unset -f _programgym_go_with_nexus_timeout
+unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
+unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
+unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
diff --git a/cheekybits--genny.3e22f1a/environment/executable b/cheekybits--genny.3e22f1a/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..2156e94e33e5509e7e6dd32ac74a46441ff8f493
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a82bb32e8bc96884fb9a445292c9b70e44719084039ca5d3d3231580caa572fa
+size 12821646
diff --git a/cheekybits--genny.3e22f1a/environment/programgym-go.tar.gz b/cheekybits--genny.3e22f1a/environment/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/environment/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/cheekybits--genny.3e22f1a/environment/workspace.tar.gz b/cheekybits--genny.3e22f1a/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..fd98a88fe58d600dde41868251e38709465ef717
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4620d79002553503c7cc32ff58715162c82728474229c537d3bb0909bc4b5d9a
+size 4170
diff --git a/cheekybits--genny.3e22f1a/instruction.md b/cheekybits--genny.3e22f1a/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/cheekybits--genny.3e22f1a/solution/solve.sh b/cheekybits--genny.3e22f1a/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/cheekybits--genny.3e22f1a/task.toml b/cheekybits--genny.3e22f1a/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..9d20dd29b01eab8f82dee5b51189cb9926efb976
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/cheekybits--genny.3e22f1a"
+description = "Synthetic ProgramGym cleanroom reconstruction task for cheekybits/genny"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "cheekybits__genny.3e22f1a"
+repository = "cheekybits/genny"
+commit = "3e22f1a88ff23bad753790c156bb20565820d747"
+language = "go"
+difficulty = "easy"
+difficulty_score = 1.3277674899027292
+test_branches = 4
+test_count = 153
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/cheekybits--genny.3e22f1a/tests/Dockerfile b/cheekybits--genny.3e22f1a/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..a626a06f42b7d18ca8dda5f990bed0106ab28bf5
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/Dockerfile
@@ -0,0 +1,68 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_01.tar.gz b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..aa280e92b8ddc692ea43d8bf0ec7c520ba7bc4dd
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d674daa2c214d5adfc1b0a056fc5d0c8bb5c8fc79c0d47e4111ff0b3f410c283
+size 6183
diff --git a/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_02.tar.gz b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4c1e9247916da314318c450f646a7863318bcf85
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2398470d887938d6e84ccebbc05ce1446cdee9e1dbd9a433558a1f8ea4e58a7b
+size 5119
diff --git a/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_03.tar.gz b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..fb91b81daf14f7392e958d154d2612ba8be62a44
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:888f9e67e4ce16196dc51b9a8e968507fb12689a5e77c15d554cb0e1961b2406
+size 9696
diff --git a/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_04.tar.gz b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..e0330ba020f3888635374f306027f693a969c75f
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:76837730725ba95fba056b5755aa0ee84dc6a5a9c34b99b8ca577daacf43950b
+size 7002
diff --git a/cheekybits--genny.3e22f1a/tests/download.sh b/cheekybits--genny.3e22f1a/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..6897bc51fcaa24c167328bd2e2aea456888df3ad
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/download.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
+# Generated deterministically from repository module metadata; do not edit.
+set -u
+export GOTOOLCHAIN=auto
+mkdir -p /workspace/.programgym_build_env/go-prefetch
+cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
+module github.com/cheekybits/genny
+
+go 1.12
+
+require (
+ github.com/stretchr/testify v1.3.0
+ golang.org/x/tools v0.0.0-20190328030505-8f05a32dce9f
+)
+PROGRAMGYM_GO_MOD_EOF
+cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
+github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/tools v0.0.0-20190328030505-8f05a32dce9f h1:MC9ePo9/ITLPbt6QsoTD78Pg07by0QbfGLUQpkJ01QM=
+golang.org/x/tools v0.0.0-20190328030505-8f05a32dce9f/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+PROGRAMGYM_GO_SUM_EOF
+PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
+PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
+ *"|"*|*","*)
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
+ fi
+ ;;
+esac
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+fi
+cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
+import os
+import signal
+import subprocess
+import sys
+import time
+
+sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
+if not command:
+ raise SystemExit(125)
+environment = os.environ.copy()
+environment["GOPROXY"] = proxy
+process = subprocess.Popen(command, env=environment, start_new_session=True)
+try:
+ returncode = process.wait(timeout=float(timeout_text))
+except subprocess.TimeoutExpired:
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
+ sentinel.write("expired\n")
+ try:
+ os.killpg(process.pid, signal.SIGTERM)
+ except ProcessLookupError:
+ pass
+ deadline = time.monotonic() + float(grace_text)
+ group_alive = True
+ while time.monotonic() < deadline:
+ process.poll()
+ try:
+ os.killpg(process.pid, 0)
+ except ProcessLookupError:
+ group_alive = False
+ break
+ time.sleep(0.05)
+ if group_alive:
+ try:
+ os.killpg(process.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ process.wait()
+ raise SystemExit(124)
+if returncode < 0:
+ returncode = 128 - returncode
+raise SystemExit(returncode)
+PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
+PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if ! command -v python3 >/dev/null 2>&1; then
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+_programgym_go_with_nexus_timeout() {
+ local programgym_go_rc
+ local programgym_go_timeout_sentinel
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
+ return 1
+ fi
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
+ programgym_go_rc=0
+ else
+ programgym_go_rc=$?
+ fi
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
+ rm -f "$programgym_go_timeout_sentinel"
+ return "$programgym_go_rc"
+ fi
+ rm -f "$programgym_go_timeout_sentinel"
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
+ return "$programgym_go_rc"
+ fi
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
+}
+PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
+if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+else
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
+fi
+export PATH="$GOROOT/bin:$PATH"
+export GOTOOLCHAIN=local
+if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+unset -f _programgym_go_with_nexus_timeout
+unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
+unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
+unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
diff --git a/cheekybits--genny.3e22f1a/tests/executable b/cheekybits--genny.3e22f1a/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..2156e94e33e5509e7e6dd32ac74a46441ff8f493
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a82bb32e8bc96884fb9a445292c9b70e44719084039ca5d3d3231580caa572fa
+size 12821646
diff --git a/cheekybits--genny.3e22f1a/tests/programgym-go.tar.gz b/cheekybits--genny.3e22f1a/tests/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/cheekybits--genny.3e22f1a/tests/programgym_evaluator.py b/cheekybits--genny.3e22f1a/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/cheekybits--genny.3e22f1a/tests/programgym_task.json b/cheekybits--genny.3e22f1a/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..0bc12f07bdcbbe8b7e23832b78af9fb9fc4a7e63
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/programgym_task.json
@@ -0,0 +1,289 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_main.test_case_insensitive_gen_subcommand",
+ "eval.tests.test_main.test_empty_generic_name_is_accepted",
+ "eval.tests.test_main.test_empty_specific_value_is_accepted",
+ "eval.tests.test_main.test_empty_stdin_parse_error",
+ "eval.tests.test_main.test_extra_positional_arg_ignored_for_gen",
+ "eval.tests.test_main.test_generated_code_keeps_package_and_syntax",
+ "eval.tests.test_main.test_generated_output_is_stable_across_runs",
+ "eval.tests.test_main.test_get_case_insensitive_reaches_arity_check",
+ "eval.tests.test_main.test_get_missing_typeset_arg_panics",
+ "eval.tests.test_main.test_get_too_many_arguments_rejected",
+ "eval.tests.test_main.test_in_and_out_flags_route_file_to_file",
+ "eval.tests.test_main.test_in_flag_missing_file_exits_source_invalid",
+ "eval.tests.test_main.test_in_flag_reads_file_for_generation",
+ "eval.tests.test_main.test_in_flag_with_missing_typeset_in_source",
+ "eval.tests.test_main.test_invalid_go_source_parse_error",
+ "eval.tests.test_main.test_invalid_subcommand_prints_usage[Genr]",
+ "eval.tests.test_main.test_invalid_subcommand_prints_usage[foo]",
+ "eval.tests.test_main.test_invalid_subcommand_prints_usage[g\\xe9n]",
+ "eval.tests.test_main.test_invalid_subcommand_prints_usage[genny]",
+ "eval.tests.test_main.test_invalid_subcommand_prints_usage[translate]",
+ "eval.tests.test_main.test_invalid_typeset_message_names_argument",
+ "eval.tests.test_main.test_malformed_typeset_exits_invalid[A=B C]",
+ "eval.tests.test_main.test_malformed_typeset_exits_invalid[KeyType=string Value]",
+ "eval.tests.test_main.test_malformed_typeset_exits_invalid[KeyType]",
+ "eval.tests.test_main.test_malformed_typeset_exits_invalid[nonsense]",
+ "eval.tests.test_main.test_mixed_case_gen_subcommand",
+ "eval.tests.test_main.test_no_stdin_data_is_not_hang",
+ "eval.tests.test_main.test_no_tag_flag_keeps_build_tags",
+ "eval.tests.test_main.test_out_flag_content_matches_stdout_generation",
+ "eval.tests.test_main.test_out_flag_creates_nested_parent_directories",
+ "eval.tests.test_main.test_out_flag_writes_file_and_empties_stdout",
+ "eval.tests.test_main.test_pkg_flag_applies_with_multiple_types",
+ "eval.tests.test_main.test_pkg_flag_renames_package",
+ "eval.tests.test_main.test_pkg_flag_writes_file_with_renamed_package",
+ "eval.tests.test_main.test_stdin_gen_emits_generated_header",
+ "eval.tests.test_main.test_stdin_gen_multiple_types_generate_permutations",
+ "eval.tests.test_main.test_stdin_gen_substitutes_specific_type",
+ "eval.tests.test_main.test_stdin_gen_success_has_empty_stderr",
+ "eval.tests.test_main.test_stdin_gen_two_generics_cross_product",
+ "eval.tests.test_main.test_tag_flag_strips_matching_build_tag",
+ "eval.tests.test_main.test_too_few_positional_args_prints_usage[get-subcommand-only]",
+ "eval.tests.test_main.test_too_few_positional_args_prints_usage[no-args]",
+ "eval.tests.test_main.test_too_few_positional_args_prints_usage[subcommand-only]",
+ "eval.tests.test_main.test_undefined_generic_missing_type"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_typesets.test_arg_without_equals_is_error",
+ "eval.tests.test_typesets.test_builtins_plus_custom_type_no_dedup",
+ "eval.tests.test_typesets.test_builtins_plus_numbers_concatenates",
+ "eval.tests.test_typesets.test_builtins_wildcard_bool_first",
+ "eval.tests.test_typesets.test_builtins_wildcard_contains_integer_and_string_family",
+ "eval.tests.test_typesets.test_builtins_wildcard_count_exact",
+ "eval.tests.test_typesets.test_builtins_wildcard_on_two_generics_cartesian",
+ "eval.tests.test_typesets.test_builtins_wildcard_single_generic",
+ "eval.tests.test_typesets.test_cartesian_five_by_five_by_five",
+ "eval.tests.test_typesets.test_cartesian_one_by_five_by_two",
+ "eval.tests.test_typesets.test_cartesian_public_example_full_matrix",
+ "eval.tests.test_typesets.test_double_comma_triple_split_rows",
+ "eval.tests.test_typesets.test_empty_key_value_pair_valid_parses",
+ "eval.tests.test_typesets.test_empty_token_between_double_space_error",
+ "eval.tests.test_typesets.test_empty_types_argument_rejected",
+ "eval.tests.test_typesets.test_get_subcommand_bad_typeset_rejected_before_fetch",
+ "eval.tests.test_typesets.test_internal_empty_entry_preserved",
+ "eval.tests.test_typesets.test_multi_equals_token_error",
+ "eval.tests.test_typesets.test_numbers_then_builtins_order",
+ "eval.tests.test_typesets.test_numbers_wildcard_count_exact",
+ "eval.tests.test_typesets.test_numbers_wildcard_excludes_bool_and_string",
+ "eval.tests.test_typesets.test_numbers_wildcard_first_float32",
+ "eval.tests.test_typesets.test_numbers_wildcard_single_generic",
+ "eval.tests.test_typesets.test_single_generic_five_values",
+ "eval.tests.test_typesets.test_single_generic_interface_value",
+ "eval.tests.test_typesets.test_single_generic_single_value",
+ "eval.tests.test_typesets.test_single_generic_three_values",
+ "eval.tests.test_typesets.test_single_generic_two_values_order_preserved",
+ "eval.tests.test_typesets.test_single_word_key_error",
+ "eval.tests.test_typesets.test_special_char_pointer_type_value",
+ "eval.tests.test_typesets.test_three_generics_cartesian_product_count",
+ "eval.tests.test_typesets.test_three_generics_single_values",
+ "eval.tests.test_typesets.test_trailing_comma_preserves_empty_entry",
+ "eval.tests.test_typesets.test_two_generics_both_expanded_into_one_set_interface",
+ "eval.tests.test_typesets.test_two_generics_single_values",
+ "eval.tests.test_typesets.test_two_generics_three_by_two_cartesian",
+ "eval.tests.test_typesets.test_two_generics_two_values_cartesian"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_parse_module.test_bad_subcommand_prints_usage",
+ "eval.tests.test_parse_module.test_basic_single_type_substitution",
+ "eval.tests.test_parse_module.test_builtins_keyword_expands_to_all_builtin_types",
+ "eval.tests.test_parse_module.test_comma_list_expands_to_cross_product",
+ "eval.tests.test_parse_module.test_comment_text_substitutes_wordified_identifier",
+ "eval.tests.test_parse_module.test_comment_text_under_go_generic_line_is_dropped",
+ "eval.tests.test_parse_module.test_crlf_input_normalized_to_lf",
+ "eval.tests.test_parse_module.test_empty_generic_source_is_accepted",
+ "eval.tests.test_parse_module.test_empty_specific_value_emits_no_substitution",
+ "eval.tests.test_parse_module.test_generic_number_substitution",
+ "eval.tests.test_parse_module.test_get_with_missing_types_count_fails",
+ "eval.tests.test_parse_module.test_goimports_failure_error",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_buildtags.go-_t_=int-pkg9-buildtags_int.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_cell.go-X=uint8-pkg8-cell_uint8.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_number.go-NumberType=NUMBERS-pkg6-number_numbers.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_queue.go-Something=float32-pkg1-queue_float32.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_queue.go-Something=int-pkg0-queue_int.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_queue.go-Something=int-pkg2-queue_changed.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_simplemap.go-KeyType=interface{} ValueType=int-pkg4-simplemap_interface_int.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_simplemap.go-KeyType=string ValueType=int-pkg3-simplemap_string_int.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_simplemap.go-KeyType=string,int ValueType=bool,float64-pkg5-simplemap_cross.go]",
+ "eval.tests.test_parse_module.test_golden_generation_exact[generic_unexported.go-secret=*myType-pkg7-unexported_mytype.go]",
+ "eval.tests.test_parse_module.test_help_flag_prints_flag_usage",
+ "eval.tests.test_parse_module.test_in_flag_missing_file_fails",
+ "eval.tests.test_parse_module.test_in_flag_reads_source_file",
+ "eval.tests.test_parse_module.test_interface_literal_wordified_in_identifier",
+ "eval.tests.test_parse_module.test_invalid_go_source_error",
+ "eval.tests.test_parse_module.test_lowercase_specific_type_in_exported_identifier",
+ "eval.tests.test_parse_module.test_missing_specific_type_error",
+ "eval.tests.test_parse_module.test_no_arguments_prints_usage_and_exits",
+ "eval.tests.test_parse_module.test_no_tag_flag_leaves_build_tag_intact",
+ "eval.tests.test_parse_module.test_non_matching_build_tag_is_not_stripped",
+ "eval.tests.test_parse_module.test_normal_leading_comment_is_preserved",
+ "eval.tests.test_parse_module.test_numbers_cross_string_produces_12_maps",
+ "eval.tests.test_parse_module.test_numbers_keyword_expands_to_core_number_types",
+ "eval.tests.test_parse_module.test_out_flag_writes_file",
+ "eval.tests.test_parse_module.test_partially_satisfied_generic_types_errors",
+ "eval.tests.test_parse_module.test_pkg_flag_rewrites_package_name",
+ "eval.tests.test_parse_module.test_single_type_pair_produces_single_map",
+ "eval.tests.test_parse_module.test_specific_type_shown_full_in_comments_and_identifiers",
+ "eval.tests.test_parse_module.test_string_literal_containing_generic_is_substituted",
+ "eval.tests.test_parse_module.test_tag_flag_strips_matching_build_tag",
+ "eval.tests.test_parse_module.test_two_generic_types_cross_keeps_separate",
+ "eval.tests.test_parse_module.test_typeset_extra_unpairable_token_rejected",
+ "eval.tests.test_parse_module.test_typeset_without_equals_sign_fails",
+ "eval.tests.test_parse_module.test_unexported_generic_type_stays_lowercase",
+ "eval.tests.test_parse_module.test_unused_generic_import_is_cleaned_up",
+ "eval.tests.test_parse_module.test_wordify_naming_of_builtins[byte-ByteQueue]",
+ "eval.tests.test_parse_module.test_wordify_naming_of_builtins[float64-Float64Queue]",
+ "eval.tests.test_parse_module.test_wordify_naming_of_builtins[string-StringQueue]"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_lazy_file_out.test_lazy_create_fails_when_target_is_existing_directory",
+ "eval.tests.test_lazy_file_out.test_lazy_create_newdir_behind_existing_directory_works",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_absolute_deep_path",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_dot_relative_path",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_dotdot_resolving_within_existing_tree",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_double_dot_skips_cancelled_parent",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_into_deeply_nested_missing_dirs",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_into_existing_dir_no_mkdir",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_into_single_missing_dir",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_plain_relative_filename",
+ "eval.tests.test_lazy_file_out.test_lazy_creation_writes_exact_content",
+ "eval.tests.test_lazy_file_out.test_mkdir_all_fails_when_parent_is_a_file",
+ "eval.tests.test_lazy_file_out.test_multi_type_permutations_expand_content_in_one_file",
+ "eval.tests.test_lazy_file_out.test_multiple_output_files_each_lazily_created",
+ "eval.tests.test_lazy_file_out.test_parent_is_empty_file_with_no_dir_separator_target",
+ "eval.tests.test_lazy_file_out.test_trailing_slash_target_fails_create",
+ "eval.tests.test_lazy_file_out_additional.test_lazy_write_creates_file_even_for_minimal_output",
+ "eval.tests.test_lazy_file_out_additional.test_lazy_write_dot_slash_prefixes_both_stages",
+ "eval.tests.test_lazy_file_out_additional.test_lazy_write_mixed_case_type_keeps_verbatim_casing",
+ "eval.tests.test_lazy_file_out_additional.test_lazy_write_overwrites_across_sequential_runs",
+ "eval.tests.test_lazy_file_out_additional.test_lazy_write_reached_via_in_file",
+ "eval.tests.test_lazy_file_out_additional.test_lazy_write_truncates_pre_existing_destination"
+ ]
+ }
+ },
+ "commit": "3e22f1a88ff23bad753790c156bb20565820d747",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.3277674899027292,
+ "eval_clean_hashes": [
+ "a82bb32e8bc96884fb9a445292c9b70e44719084039ca5d3d3231580caa572fa"
+ ],
+ "input_record": {
+ "commit": "3e22f1a88ff23bad753790c156bb20565820d747",
+ "commits": 94,
+ "contributors": 13,
+ "difficulty": "easy",
+ "difficulty_code_lines": 709,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 709,
+ "difficulty_runtime_deps": 2,
+ "difficulty_score": 1.3277674899027292,
+ "difficulty_test_code_lines": 1323,
+ "full_name": "cheekybits/genny",
+ "github_stars": 1718,
+ "input_joern_zip": "go_joern/cheekybits__genny.zip",
+ "joern_status": true,
+ "joern_time": 12.51593256299384,
+ "language": "go",
+ "pb_match": [
+ {
+ "pb_fullname": "go-critic/go-critic",
+ "rank": 780,
+ "similarity": 0.513035774230957
+ },
+ {
+ "pb_fullname": "mgechev/revive",
+ "rank": 822,
+ "similarity": 0.5119786858558655
+ },
+ {
+ "pb_fullname": "mfridman/tparse",
+ "rank": 926,
+ "similarity": 0.4968739449977875
+ },
+ {
+ "pb_fullname": "cweill/gotests",
+ "rank": 353,
+ "similarity": 0.5536993741989136
+ },
+ {
+ "pb_fullname": "incu6us/goimports-reviser",
+ "rank": 767,
+ "similarity": 0.4880719780921936
+ },
+ {
+ "pb_fullname": "kisielk/errcheck",
+ "rank": 458,
+ "similarity": 0.5584481358528137
+ },
+ {
+ "pb_fullname": "tomarrell/wrapcheck",
+ "rank": 380,
+ "similarity": 0.5249835252761841
+ }
+ ],
+ "repo_age": 11.77,
+ "repo_path": "go/cheekybits__genny",
+ "source": "commit:3e22f1a88ff23bad753790c156bb20565820d747",
+ "status": "done",
+ "url": "https://github.com/cheekybits/genny"
+ },
+ "instance_id": "cheekybits__genny.3e22f1a",
+ "language": "go",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "cheekybits/genny"
+}
diff --git a/cheekybits--genny.3e22f1a/tests/test.sh b/cheekybits--genny.3e22f1a/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/cheekybits--genny.3e22f1a/tests/workspace.tar.gz b/cheekybits--genny.3e22f1a/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..fd98a88fe58d600dde41868251e38709465ef717
--- /dev/null
+++ b/cheekybits--genny.3e22f1a/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4620d79002553503c7cc32ff58715162c82728474229c537d3bb0909bc4b5d9a
+size 4170
diff --git a/chokkan--liblbfgs.5ad02fb/environment/Dockerfile b/chokkan--liblbfgs.5ad02fb/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..8acccc9e7709c4fa205034773e0c1c02b32a9d89
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/environment/Dockerfile
@@ -0,0 +1,56 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+# programgym_quota_aware_nproc=1
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chokkan--liblbfgs.5ad02fb/environment/download.sh b/chokkan--liblbfgs.5ad02fb/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..87d0206fdf316db6b7567e0c5b793a426a7d287a
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/environment/download.sh
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+# ProgramGym download stage for libLBFGS (chokkan/liblbfgs).
+#
+# The libLBFGS C library's sample example depends only on the autotools
+# toolchain and a C compiler, all of which are already present in the base
+# image. There are no third-party libraries or source archives to prefetch, so
+# this script only verifies the required tools and exports the settings that
+# build.sh relies on. It performs no compile, link, or test step.
+#
+# download.sh is invoked via `source /source_ro/download.sh`, so it must be
+# safe to run in source mode: it keeps state in the current shell, never uses
+# positional arguments, and does not call `exit` in normal control flow.
+
+set -u
+
+_dl_rc=0
+
+# Verify the toolchain the offline build needs. Output of command -v is
+# captured into a variable (which also keeps it from clobbering the log) and
+# any genuinely missing tool is surfaced as a real, unfiltered failure.
+needed="autoreconf autoconf automake libtoolize make gcc"
+for _tool in $needed; do
+ if ! _tpath="$(command -v "$_tool")"; then
+ printf 'download: missing required tool: %s\n' "$_tool" >&2
+ _dl_rc=1
+ else
+ printf 'download: using %s at %s\n' "$_tool" "$_tpath"
+ fi
+done
+
+# Build settings that build.sh relies on.
+export PPB_LIBLBFGS_TOOLCHAIN_OK=1
+export CC="${CC:-gcc}"
+
+if [ "${_dl_rc}" -ne 0 ]; then
+ printf 'download: toolchain verification failed\n' >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
diff --git a/chokkan--liblbfgs.5ad02fb/environment/executable b/chokkan--liblbfgs.5ad02fb/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..09cfb34184e0b5b2e46efa4a7f16e1adf85414c0
Binary files /dev/null and b/chokkan--liblbfgs.5ad02fb/environment/executable differ
diff --git a/chokkan--liblbfgs.5ad02fb/environment/harbor_prepare_download_env.sh b/chokkan--liblbfgs.5ad02fb/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chokkan--liblbfgs.5ad02fb/environment/workspace.tar.gz b/chokkan--liblbfgs.5ad02fb/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..2a4fec2226d9bad99304f5bbbada827cc071d3c7
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03fdee587c5151ec697ca6b00a876bfc58f1faf61a913f3127440ebe4c685164
+size 3998
diff --git a/chokkan--liblbfgs.5ad02fb/instruction.md b/chokkan--liblbfgs.5ad02fb/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chokkan--liblbfgs.5ad02fb/solution/solve.sh b/chokkan--liblbfgs.5ad02fb/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chokkan--liblbfgs.5ad02fb/task.toml b/chokkan--liblbfgs.5ad02fb/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..e04239a7bf8bb5c343d1dbcc769ef061773ecc47
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chokkan--liblbfgs.5ad02fb"
+description = "Synthetic ProgramGym cleanroom reconstruction task for chokkan/liblbfgs"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "c"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "chokkan__liblbfgs.5ad02fb"
+repository = "chokkan/liblbfgs"
+commit = "5ad02fbefefdeff339ab03635e673571055a0644"
+language = "c"
+difficulty = "easy"
+difficulty_score = 1.502836638621003
+test_branches = 3
+test_count = 672
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chokkan--liblbfgs.5ad02fb/tests/Dockerfile b/chokkan--liblbfgs.5ad02fb/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..af44b3d1754339c76f5704a76db5a06fd46920ab
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/Dockerfile
@@ -0,0 +1,70 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+# programgym_quota_aware_nproc=1
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN set -eu; \
+ pip_break_system_packages=""; \
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
+ pip_break_system_packages="--break-system-packages"; \
+ fi; \
+ python3 -m pip install ${pip_break_system_packages} \
+ --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_02.tar.gz b/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..6c4dd81e44dc0ece0aaf6f9edc548916c0e72b54
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8fbbc7c48ad7e173cc625f70b5acab4d757b916025c9994226e9da97083d72e5
+size 18248
diff --git a/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_03.tar.gz b/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..30ad3f0a0de031251a955a863f75ae2176bbbc6e
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb25a2ec61beb4b61912d07dc579f6080a22ef3404ca436e5ee477719aa1f5ae
+size 9003
diff --git a/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_04.tar.gz b/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..ab1ec8d661f8e5985c8a7de7d27835161325a8a1
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:edfc772274b220dd12ce4d60da7f30a6da7c4aba0a72f85647c5bfffc345a818
+size 16890
diff --git a/chokkan--liblbfgs.5ad02fb/tests/download.sh b/chokkan--liblbfgs.5ad02fb/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..87d0206fdf316db6b7567e0c5b793a426a7d287a
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/download.sh
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+# ProgramGym download stage for libLBFGS (chokkan/liblbfgs).
+#
+# The libLBFGS C library's sample example depends only on the autotools
+# toolchain and a C compiler, all of which are already present in the base
+# image. There are no third-party libraries or source archives to prefetch, so
+# this script only verifies the required tools and exports the settings that
+# build.sh relies on. It performs no compile, link, or test step.
+#
+# download.sh is invoked via `source /source_ro/download.sh`, so it must be
+# safe to run in source mode: it keeps state in the current shell, never uses
+# positional arguments, and does not call `exit` in normal control flow.
+
+set -u
+
+_dl_rc=0
+
+# Verify the toolchain the offline build needs. Output of command -v is
+# captured into a variable (which also keeps it from clobbering the log) and
+# any genuinely missing tool is surfaced as a real, unfiltered failure.
+needed="autoreconf autoconf automake libtoolize make gcc"
+for _tool in $needed; do
+ if ! _tpath="$(command -v "$_tool")"; then
+ printf 'download: missing required tool: %s\n' "$_tool" >&2
+ _dl_rc=1
+ else
+ printf 'download: using %s at %s\n' "$_tool" "$_tpath"
+ fi
+done
+
+# Build settings that build.sh relies on.
+export PPB_LIBLBFGS_TOOLCHAIN_OK=1
+export CC="${CC:-gcc}"
+
+if [ "${_dl_rc}" -ne 0 ]; then
+ printf 'download: toolchain verification failed\n' >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
diff --git a/chokkan--liblbfgs.5ad02fb/tests/executable b/chokkan--liblbfgs.5ad02fb/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..09cfb34184e0b5b2e46efa4a7f16e1adf85414c0
Binary files /dev/null and b/chokkan--liblbfgs.5ad02fb/tests/executable differ
diff --git a/chokkan--liblbfgs.5ad02fb/tests/harbor_prepare_download_env.sh b/chokkan--liblbfgs.5ad02fb/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chokkan--liblbfgs.5ad02fb/tests/programgym_evaluator.py b/chokkan--liblbfgs.5ad02fb/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chokkan--liblbfgs.5ad02fb/tests/programgym_task.json b/chokkan--liblbfgs.5ad02fb/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..478f730e993be5255d96f9c796f3204e10699a77
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/programgym_task.json
@@ -0,0 +1,796 @@
+{
+ "branches": {
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_lbfgs_behavior.test_arguments_are_ignored",
+ "eval.tests.test_lbfgs_behavior.test_deterministic_across_runs",
+ "eval.tests.test_lbfgs_behavior.test_early_step_is_small",
+ "eval.tests.test_lbfgs_behavior.test_exit_status_zero",
+ "eval.tests.test_lbfgs_behavior.test_final_objective_converges_to_minimum",
+ "eval.tests.test_lbfgs_behavior.test_final_result_line_format",
+ "eval.tests.test_lbfgs_behavior.test_final_x0_at_minimizer",
+ "eval.tests.test_lbfgs_behavior.test_final_x1_at_minimizer",
+ "eval.tests.test_lbfgs_behavior.test_finite_termination",
+ "eval.tests.test_lbfgs_behavior.test_first_iteration_is_one",
+ "eval.tests.test_lbfgs_behavior.test_gnorm_decays_to_epsilon_window",
+ "eval.tests.test_lbfgs_behavior.test_golden_iteration_count",
+ "eval.tests.test_lbfgs_behavior.test_golden_stdout_equivalence",
+ "eval.tests.test_lbfgs_behavior.test_initial_objective_is_positive",
+ "eval.tests.test_lbfgs_behavior.test_initial_x0_negative_near_rosenbrock_start",
+ "eval.tests.test_lbfgs_behavior.test_iteration_count_equals_last_k",
+ "eval.tests.test_lbfgs_behavior.test_iteration_numbers_contiguous",
+ "eval.tests.test_lbfgs_behavior.test_no_nan_or_inf_in_progress",
+ "eval.tests.test_lbfgs_behavior.test_no_stderr",
+ "eval.tests.test_lbfgs_behavior.test_objective_monotone_non_increasing",
+ "eval.tests.test_lbfgs_behavior.test_objective_strictly_decreasing_overall",
+ "eval.tests.test_lbfgs_behavior.test_output_line_count",
+ "eval.tests.test_lbfgs_behavior.test_progress_block_format",
+ "eval.tests.test_lbfgs_behavior.test_progress_prints_to_stdout_not_stderr",
+ "eval.tests.test_lbfgs_behavior.test_raw_iteration_blocks_match_golden",
+ "eval.tests.test_lbfgs_behavior.test_status_code_success",
+ "eval.tests.test_lbfgs_behavior.test_step_reaches_full_value_at_convergence",
+ "eval.tests.test_lbfgs_behavior.test_termination_status_line_present",
+ "eval.tests.test_lbfgs_behavior.test_xnorm_final_reported_exactly",
+ "eval.tests.test_lbfgs_behavior.test_xnorm_matches_hypotenuse_at_convergence",
+ "eval.tests.test_lbfgs_boundaries.test_block_separator_blank_line",
+ "eval.tests.test_lbfgs_boundaries.test_early_iterations_use_shrinking_step",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k10]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k11]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k12]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k13]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k14]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k15]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k16]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k17]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k18]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k19]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k1]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k20]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k21]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k22]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k23]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k24]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k25]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k26]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k27]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k28]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k29]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k2]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k30]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k31]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k32]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k33]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k34]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k35]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k36]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k37]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k3]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k4]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k5]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k6]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k7]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k8]",
+ "eval.tests.test_lbfgs_boundaries.test_every_golden_iteration_text_parity[golden_k9]",
+ "eval.tests.test_lbfgs_boundaries.test_exit_code_consistent_with_status_line",
+ "eval.tests.test_lbfgs_boundaries.test_final_iteration_is_converged_not_max_iteration",
+ "eval.tests.test_lbfgs_boundaries.test_full_step_regime_establishes",
+ "eval.tests.test_lbfgs_boundaries.test_gnorm_spike_then_decay",
+ "eval.tests.test_lbfgs_boundaries.test_golden_status_line_and_block_tail",
+ "eval.tests.test_lbfgs_boundaries.test_key_iteration_values[k10]",
+ "eval.tests.test_lbfgs_boundaries.test_key_iteration_values[k1]",
+ "eval.tests.test_lbfgs_boundaries.test_key_iteration_values[k20]",
+ "eval.tests.test_lbfgs_boundaries.test_key_iteration_values[k30]",
+ "eval.tests.test_lbfgs_boundaries.test_key_iteration_values[k37]",
+ "eval.tests.test_lbfgs_boundaries.test_objective_milestone_thresholds",
+ "eval.tests.test_lbfgs_boundaries.test_progress_and_final_result_agree",
+ "eval.tests.test_lbfgs_boundaries.test_report_uses_six_decimal_fixed_format",
+ "eval.tests.test_lbfgs_boundaries.test_x0_sign_flips_from_negative_to_positive",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k13]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k18]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k1]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k22]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k23]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k26]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k7]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k8]",
+ "eval.tests.test_lbfgs_convergence_math.test_backtracking_iteration_step_not_unity[backtrack_k9]",
+ "eval.tests.test_lbfgs_convergence_math.test_convergence_criterion_below_micro_epsilon_only_at_final",
+ "eval.tests.test_lbfgs_convergence_math.test_convergence_criterion_holds_only_at_final_iteration",
+ "eval.tests.test_lbfgs_convergence_math.test_max_step_is_upper_bound_across_run",
+ "eval.tests.test_lbfgs_convergence_math.test_non_backtracking_iterations_use_unit_step",
+ "eval.tests.test_lbfgs_convergence_math.test_objective_has_superlinear_tail_rate[superlinear_k29]",
+ "eval.tests.test_lbfgs_convergence_math.test_objective_has_superlinear_tail_rate[superlinear_k30]",
+ "eval.tests.test_lbfgs_convergence_math.test_objective_has_superlinear_tail_rate[superlinear_k31]",
+ "eval.tests.test_lbfgs_convergence_math.test_objective_has_superlinear_tail_rate[superlinear_k32]",
+ "eval.tests.test_lbfgs_convergence_math.test_objective_has_superlinear_tail_rate[superlinear_k33]",
+ "eval.tests.test_lbfgs_convergence_math.test_objective_has_superlinear_tail_rate[superlinear_k34]",
+ "eval.tests.test_lbfgs_convergence_math.test_objective_starts_in_quadratic_region",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k28]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k29]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k30]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k31]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k32]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k33]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k34]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k35]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k36]",
+ "eval.tests.test_lbfgs_convergence_math.test_rosenbrock_valley_tracks_x0_squared[valley_k37]",
+ "eval.tests.test_lbfgs_convergence_math.test_single_capped_step_equals_max_step",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_28-29]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_29-30]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_30-31]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_31-32]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_32-33]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_33-34]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_34-35]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_35-36]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_distance_to_minimizer_strictly_decreases[dist_36-37]",
+ "eval.tests.test_lbfgs_convergence_math.test_tail_ends_exactly_at_minimizer",
+ "eval.tests.test_lbfgs_convergence_math.test_two_steps_exceed_unity",
+ "eval.tests.test_lbfgs_decrease_structure.test_final_gnorm_is_global_minimum",
+ "eval.tests.test_lbfgs_decrease_structure.test_gnorm_strictly_drains_in_convergence_tail[gdrain30]",
+ "eval.tests.test_lbfgs_decrease_structure.test_gnorm_strictly_drains_in_convergence_tail[gdrain31]",
+ "eval.tests.test_lbfgs_decrease_structure.test_gnorm_strictly_drains_in_convergence_tail[gdrain32]",
+ "eval.tests.test_lbfgs_decrease_structure.test_gnorm_strictly_drains_in_convergence_tail[gdrain33]",
+ "eval.tests.test_lbfgs_decrease_structure.test_gnorm_strictly_drains_in_convergence_tail[gdrain34]",
+ "eval.tests.test_lbfgs_decrease_structure.test_gnorm_strictly_drains_in_convergence_tail[gdrain35]",
+ "eval.tests.test_lbfgs_decrease_structure.test_gnorm_strictly_drains_in_convergence_tail[gdrain36]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair10]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair11]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair12]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair13]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair14]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair15]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair16]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair17]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair18]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair19]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair1]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair20]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair21]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair22]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair23]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair24]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair25]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair26]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair27]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair28]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair29]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair2]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair30]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair31]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair32]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair33]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair34]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair35]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair3]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair4]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair5]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair6]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair7]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair8]",
+ "eval.tests.test_lbfgs_decrease_structure.test_objective_strictly_decreases_each_pair[fpair9]",
+ "eval.tests.test_lbfgs_decrease_structure.test_only_terminal_pair_is_non_strict_plateau",
+ "eval.tests.test_lbfgs_decrease_structure.test_xnorm_strictly_decreases_in_early_descent[xdesc1]",
+ "eval.tests.test_lbfgs_decrease_structure.test_xnorm_strictly_decreases_in_early_descent[xdesc2]",
+ "eval.tests.test_lbfgs_decrease_structure.test_xnorm_strictly_decreases_in_early_descent[xdesc3]",
+ "eval.tests.test_lbfgs_decrease_structure.test_xnorm_strictly_decreases_in_early_descent[xdesc4]",
+ "eval.tests.test_lbfgs_decrease_structure.test_xnorm_strictly_decreases_in_early_descent[xdesc5]",
+ "eval.tests.test_lbfgs_decrease_structure.test_xnorm_strictly_decreases_in_early_descent[xdesc6]",
+ "eval.tests.test_lbfgs_invariants.test_convergence_tail_is_all_unit_steps",
+ "eval.tests.test_lbfgs_invariants.test_final_gnorm_is_1e_minus_six",
+ "eval.tests.test_lbfgs_invariants.test_golden_has_37_parsed_iterations",
+ "eval.tests.test_lbfgs_invariants.test_linesearch_max_step_bound_is_five",
+ "eval.tests.test_lbfgs_invariants.test_min_step_is_initial_backtrack",
+ "eval.tests.test_lbfgs_invariants.test_objective_first_crosses_unity_at_iteration_28",
+ "eval.tests.test_lbfgs_invariants.test_peak_objective_is_the_initial_value",
+ "eval.tests.test_lbfgs_invariants.test_step_equals_max_only_in_early_phase",
+ "eval.tests.test_lbfgs_invariants.test_step_exceeds_unity_only_early",
+ "eval.tests.test_lbfgs_invariants.test_step_values_strictly_positive",
+ "eval.tests.test_lbfgs_invariants.test_x0_becomes_positive_at_iteration_15",
+ "eval.tests.test_lbfgs_invariants.test_xnorm_valley_then_recovery",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k10]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k11]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k12]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k13]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k14]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k15]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k16]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k17]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k18]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k19]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k1]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k20]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k21]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k22]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k23]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k24]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k25]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k26]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k2]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k3]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k4]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k5]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k6]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k7]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k8]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gnorm_is_fifty_pair_gradient_norm[gnorm_pairs_k9]",
+ "eval.tests.test_lbfgs_periodic_structure.test_gradient_identity_holds_across_backtracking_window",
+ "eval.tests.test_lbfgs_periodic_structure.test_gradient_norm_is_finite_and_positive_in_window",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k10]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k11]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k12]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k13]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k14]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k15]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k16]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k17]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k18]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k19]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k1]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k20]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k21]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k22]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k23]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k24]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k25]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k26]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k27]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k28]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k29]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k2]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k30]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k31]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k32]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k3]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k4]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k5]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k6]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k7]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k8]",
+ "eval.tests.test_lbfgs_periodic_structure.test_objective_is_fifty_pair_sums[fx_pair_k9]",
+ "eval.tests.test_lbfgs_periodic_structure.test_pair_factor_is_exactly_fifty",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_identity_holds_at_valley_and_convergence",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k10]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k11]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k12]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k13]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k14]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k15]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k16]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k17]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k18]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k19]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k1]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k20]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k21]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k22]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k23]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k24]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k25]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k26]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k27]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k28]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k29]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k2]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k30]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k31]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k32]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k33]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k34]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k35]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k36]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k37]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k3]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k4]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k5]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k6]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k7]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k8]",
+ "eval.tests.test_lbfgs_periodic_structure.test_xnorm_is_symmetric_pairs_hypotenuse[xnorm_pairs_k9]"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_arithmetic_ansi.test_cli_arguments_are_ignored_tested_byte_identical",
+ "eval.tests.test_arithmetic_ansi.test_converged_status_code_zero",
+ "eval.tests.test_arithmetic_ansi.test_deterministic_byte_identical",
+ "eval.tests.test_arithmetic_ansi.test_exactly_37_iterations",
+ "eval.tests.test_arithmetic_ansi.test_executable_exits_zero",
+ "eval.tests.test_arithmetic_ansi.test_final_gradient_norm_below_tolerance",
+ "eval.tests.test_arithmetic_ansi.test_final_objective_zero",
+ "eval.tests.test_arithmetic_ansi.test_final_state_matches_iteration_37",
+ "eval.tests.test_arithmetic_ansi.test_final_x0_optimum",
+ "eval.tests.test_arithmetic_ansi.test_final_x1_optimum",
+ "eval.tests.test_arithmetic_ansi.test_final_xnorm_ten",
+ "eval.tests.test_arithmetic_ansi.test_full_output_matches_golden",
+ "eval.tests.test_arithmetic_ansi.test_fx_monotonic_nonincreasing_invariant",
+ "eval.tests.test_arithmetic_ansi.test_fx_strictly_decreasing_early_range",
+ "eval.tests.test_arithmetic_ansi.test_initial_step_is_global_minimum",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[10]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[11]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[12]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[13]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[14]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[15]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[16]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[17]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[18]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[19]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[1]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[20]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[21]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[22]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[23]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[24]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[25]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[26]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[27]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[28]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[29]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[2]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[30]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[31]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[32]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[33]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[34]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[35]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[36]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[37]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[3]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[4]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[5]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[6]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[7]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[8]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_fx_value[9]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[10]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[11]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[12]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[13]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[14]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[15]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[16]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[17]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[18]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[19]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[1]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[20]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[21]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[22]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[23]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[24]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[25]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[26]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[27]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[28]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[29]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[2]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[30]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[31]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[32]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[33]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[34]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[35]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[36]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[37]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[3]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[4]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[5]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[6]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[7]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[8]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_gnorm_value[9]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[10]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[11]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[12]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[13]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[14]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[15]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[16]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[17]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[18]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[19]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[1]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[20]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[21]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[22]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[23]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[24]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[25]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[26]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[27]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[28]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[29]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[2]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[30]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[31]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[32]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[33]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[34]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[35]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[36]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[37]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[3]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[4]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[5]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[6]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[7]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[8]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_step_value[9]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[10]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[11]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[12]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[13]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[14]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[15]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[16]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[17]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[18]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[19]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[1]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[20]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[21]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[22]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[23]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[24]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[25]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[26]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[27]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[28]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[29]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[2]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[30]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[31]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[32]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[33]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[34]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[35]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[36]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[37]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[3]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[4]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[5]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[6]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[7]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[8]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_x0x1_value[9]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[10]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[11]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[12]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[13]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[14]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[15]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[16]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[17]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[18]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[19]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[1]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[20]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[21]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[22]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[23]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[24]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[25]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[26]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[27]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[28]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[29]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[2]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[30]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[31]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[32]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[33]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[34]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[35]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[36]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[37]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[3]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[4]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[5]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[6]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[7]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[8]",
+ "eval.tests.test_arithmetic_ansi.test_iteration_xnorm_value[9]",
+ "eval.tests.test_arithmetic_ansi.test_line_search_step_always_positive",
+ "eval.tests.test_arithmetic_ansi.test_max_step_cap_reached_at_iteration_9",
+ "eval.tests.test_arithmetic_ansi.test_no_stderr_output",
+ "eval.tests.test_arithmetic_ansi.test_objective_never_negative",
+ "eval.tests.test_arithmetic_ansi.test_output_line_format_schema",
+ "eval.tests.test_arithmetic_ansi.test_stdout_independent_of_working_directory",
+ "eval.tests.test_arithmetic_ansi.test_stdout_not_empty_and_well_formed",
+ "eval.tests.test_arithmetic_ansi.test_unit_step_default_path_present"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_sample.test_every_reported_gradient_norm_is_distinct",
+ "reasons": [
+ {
+ "id": "all_assertions_weak",
+ "message": "pytest test uses only weak assertions",
+ "path": "eval/tests/test_sample.py",
+ "repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_sample.test_all_iteration_values_finite",
+ "eval.tests.test_sample.test_blank_line_after_each_iteration_block",
+ "eval.tests.test_sample.test_converged_norm_spans_full_unit_vector",
+ "eval.tests.test_sample.test_curtailed_step_iteration_count_matches_golden",
+ "eval.tests.test_sample.test_data_fields_use_six_decimal_places",
+ "eval.tests.test_sample.test_deep_valley_first_iteration_is_k13",
+ "eval.tests.test_sample.test_deep_valley_phase_spans_exactly_three_iterations",
+ "eval.tests.test_sample.test_deterministic_across_runs",
+ "eval.tests.test_sample.test_double_precision_reported",
+ "eval.tests.test_sample.test_every_iteration_block_is_four_lines",
+ "eval.tests.test_sample.test_every_reported_gradient_norm_is_distinct",
+ "eval.tests.test_sample.test_exactly_two_iterations_overshoot_full_step",
+ "eval.tests.test_sample.test_exit_code_is_success_with_status",
+ "eval.tests.test_sample.test_final_gnorm_reaches_unit_micro_bin",
+ "eval.tests.test_sample.test_final_report_solution_matches_parse",
+ "eval.tests.test_sample.test_first_iteration_gnorm_below_unit_is_k33",
+ "eval.tests.test_sample.test_first_step_is_curtailed_below_full_value",
+ "eval.tests.test_sample.test_full_output_matches_golden_normalized",
+ "eval.tests.test_sample.test_full_step_iteration_count_matches_golden",
+ "eval.tests.test_sample.test_fx_falls_to_exact_terminal_triple",
+ "eval.tests.test_sample.test_fx_start_finish_spread",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_10]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_11]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_12]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_13]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_14]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_15]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_16]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_17]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_18]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_19]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_1]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_20]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_21]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_22]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_23]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_24]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_25]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_26]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_27]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_28]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_29]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_2]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_30]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_31]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_32]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_33]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_34]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_35]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_36]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_37]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_3]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_4]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_5]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_6]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_7]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_8]",
+ "eval.tests.test_sample.test_fx_trace_matches_golden[iter_9]",
+ "eval.tests.test_sample.test_gnorm_collapses_toward_zero",
+ "eval.tests.test_sample.test_gnorm_first_peak_is_maximum",
+ "eval.tests.test_sample.test_gnorm_mainly_decreases_across_run",
+ "eval.tests.test_sample.test_gnorm_rise_iterations_match_golden",
+ "eval.tests.test_sample.test_gnorm_rises_in_exactly_fifteen_iterations",
+ "eval.tests.test_sample.test_golden_first_iteration_block_exact",
+ "eval.tests.test_sample.test_golden_tail_reports_convergence",
+ "eval.tests.test_sample.test_initial_x0_magnitude_exceeds_unit",
+ "eval.tests.test_sample.test_invocation_variants_are_deterministic_and_succeed[extra_args]",
+ "eval.tests.test_sample.test_invocation_variants_are_deterministic_and_succeed[no_args]",
+ "eval.tests.test_sample.test_iteration_count_matches_golden",
+ "eval.tests.test_sample.test_iteration_headers_match_golden",
+ "eval.tests.test_sample.test_iterations_numbered_sequentially",
+ "eval.tests.test_sample.test_largest_single_step_objective_drop_matches_golden",
+ "eval.tests.test_sample.test_largest_xnorm_drop_into_overshoot_matches_golden",
+ "eval.tests.test_sample.test_largest_xnorm_rebound_out_of_valley_matches_golden",
+ "eval.tests.test_sample.test_max_gnorm_matches_golden",
+ "eval.tests.test_sample.test_max_gnorm_rebound_after_overshoot_matches_golden",
+ "eval.tests.test_sample.test_maximum_line_search_step_matches_golden",
+ "eval.tests.test_sample.test_nine_iterations_report_gradient_above_fifty",
+ "eval.tests.test_sample.test_no_carriage_returns_in_output",
+ "eval.tests.test_sample.test_no_step_exceeds_overshoot_max",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_10]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_11]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_12]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_13]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_14]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_15]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_16]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_17]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_18]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_19]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_1]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_20]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_21]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_22]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_23]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_24]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_25]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_26]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_27]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_28]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_29]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_2]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_30]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_31]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_32]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_33]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_34]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_35]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_36]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_37]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_3]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_4]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_5]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_6]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_7]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_8]",
+ "eval.tests.test_sample.test_norms_trace_matches_golden[iter_9]",
+ "eval.tests.test_sample.test_objective_is_never_negative",
+ "eval.tests.test_sample.test_objective_monotone_non_zero_transition_count",
+ "eval.tests.test_sample.test_objective_monotonically_non_increasing",
+ "eval.tests.test_sample.test_overshoot_iterations_precede_xnorm_valley",
+ "eval.tests.test_sample.test_overshoot_step_values_match_golden",
+ "eval.tests.test_sample.test_progress_header_format_exact",
+ "eval.tests.test_sample.test_reported_status_code_is_convergence",
+ "eval.tests.test_sample.test_rosenbrock_converges_to_optimal_fx",
+ "eval.tests.test_sample.test_rosenbrock_converges_to_unit_variables",
+ "eval.tests.test_sample.test_stderr_is_empty",
+ "eval.tests.test_sample.test_stdout_exact_bytes_match_golden",
+ "eval.tests.test_sample.test_stdout_presents_complete_report",
+ "eval.tests.test_sample.test_step_sizes_are_positive",
+ "eval.tests.test_sample.test_subset_norm_never_exceeds_full_norm",
+ "eval.tests.test_sample.test_sum_of_objective_matches_golden",
+ "eval.tests.test_sample.test_tail_gnorm_strictly_decreases_to_floor",
+ "eval.tests.test_sample.test_total_objective_reduction_matches_start",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_10]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_11]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_12]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_13]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_14]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_15]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_16]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_17]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_18]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_19]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_1]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_20]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_21]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_22]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_23]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_24]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_25]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_26]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_27]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_28]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_29]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_2]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_30]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_31]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_32]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_33]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_34]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_35]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_36]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_37]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_3]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_4]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_5]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_6]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_7]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_8]",
+ "eval.tests.test_sample.test_variables_trace_matches_golden[iter_9]",
+ "eval.tests.test_sample.test_x0_and_x1_both_cross_valley_then_converge",
+ "eval.tests.test_sample.test_x0_crosses_zero_exactly_once",
+ "eval.tests.test_sample.test_x0_first_becomes_positive_at_valley_iteration",
+ "eval.tests.test_sample.test_xnorm_climbs_back_to_unit_scale",
+ "eval.tests.test_sample.test_xnorm_descends_through_valley_then_reascends",
+ "eval.tests.test_sample.test_xnorm_tracks_rosenbrock_scale",
+ "eval.tests.test_sample.test_xnorm_valley_iteration_matches_golden",
+ "eval.tests.test_sample.test_xnorm_valley_minimum_matches_golden"
+ ]
+ }
+ },
+ "commit": "5ad02fbefefdeff339ab03635e673571055a0644",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.502836638621003,
+ "eval_clean_hashes": [
+ "f6096568058b1b021e2ae2b53ea6890f9b6bff90e6f701fc822f374d4ba82bd8"
+ ],
+ "input_record": {
+ "commit": "5ad02fbefefdeff339ab03635e673571055a0644",
+ "commits": 103,
+ "contributors": 12,
+ "difficulty": "easy",
+ "difficulty_code_lines": 3183,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 3183,
+ "difficulty_runtime_deps": 0,
+ "difficulty_score": 1.502836638621003,
+ "difficulty_test_code_lines": 0,
+ "full_name": "chokkan/liblbfgs",
+ "github_stars": 599,
+ "input_joern_zip": "c_joern/chokkan__liblbfgs.zip",
+ "joern_status": true,
+ "joern_time": 17.612681043799967,
+ "language": "c",
+ "pb_match": [
+ {
+ "pb_fullname": "lz4/lz4",
+ "rank": 991,
+ "similarity": 0.4462558627128601
+ },
+ {
+ "pb_fullname": "arq5x/bedtools2",
+ "rank": 913,
+ "similarity": 0.4169872999191284
+ },
+ {
+ "pb_fullname": "tukaani-project/xz",
+ "rank": 766,
+ "similarity": 0.42334505915641785
+ }
+ ],
+ "repo_age": 15.73,
+ "repo_path": "c/chokkan__liblbfgs",
+ "source": "commit:5ad02fbefefdeff339ab03635e673571055a0644",
+ "status": "done",
+ "url": "https://github.com/chokkan/liblbfgs"
+ },
+ "instance_id": "chokkan__liblbfgs.5ad02fb",
+ "language": "c",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 2,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ }
+ ],
+ "repository": "chokkan/liblbfgs"
+}
diff --git a/chokkan--liblbfgs.5ad02fb/tests/test.sh b/chokkan--liblbfgs.5ad02fb/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chokkan--liblbfgs.5ad02fb/tests/workspace.tar.gz b/chokkan--liblbfgs.5ad02fb/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..2a4fec2226d9bad99304f5bbbada827cc071d3c7
--- /dev/null
+++ b/chokkan--liblbfgs.5ad02fb/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03fdee587c5151ec697ca6b00a876bfc58f1faf61a913f3127440ebe4c685164
+size 3998
diff --git a/chollingworth--lampray.29d9296/environment/Dockerfile b/chollingworth--lampray.29d9296/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..ea5dabd15b163b4b12b41d1994ffda06041df226
--- /dev/null
+++ b/chollingworth--lampray.29d9296/environment/Dockerfile
@@ -0,0 +1,66 @@
+FROM ubuntu:22.04
+ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
+ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
+ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
+ARG PROGRAMGYM_NPM_STRICT_SSL="true"
+ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
+ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
+ARG PROGRAMGYM_UV_INSECURE_HOST=""
+ENV GOPROXY=${PROGRAMGYM_GOPROXY}
+ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
+ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
+ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
+ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
+COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
+RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_cache=/workspace/.cache/npm
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.12
+RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
+ARG GCC_VERSION=13.3.0
+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; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; 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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chollingworth--lampray.29d9296/environment/docker-compose.yaml b/chollingworth--lampray.29d9296/environment/docker-compose.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f3bd71ea40d31cf72c3c886f85cbca1450add2cc
--- /dev/null
+++ b/chollingworth--lampray.29d9296/environment/docker-compose.yaml
@@ -0,0 +1,11 @@
+services:
+ main:
+ build:
+ args:
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
diff --git a/chollingworth--lampray.29d9296/environment/download.sh b/chollingworth--lampray.29d9296/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..3add1a474783df0ed940153d2e99e18634afad98
--- /dev/null
+++ b/chollingworth--lampray.29d9296/environment/download.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# download.sh — Lampray build dependency prefetch.
+#
+# Executed via `source /source_ro/download.sh` from the repository root while
+# the container still has network access. This stage ONLY installs/prefetches
+# system dependencies and does not compile, link, or build anything.
+#
+# The script must be valid to run in shell source mode: exported env vars stay
+# in the current shell, no positional arguments are used, and failures
+# propagate via `set -e` rather than exit in normal control flow.
+
+set -euo pipefail
+
+# Refresh package indexes. Harmless if already current; required because the
+# base image may ship without up-to-date package lists.
+apt-get update
+
+# --- Compile-time dependencies for the CMake build ---------------------------
+# Base image provides gcc/g++ 13, cmake, ninja, pkg-config, make, autotools, etc.
+# It does NOT ship SDL2 or libcurl development headers. The project's CMake
+# configuration requires both (SDL2 and CURL, used by the imgui SDL2 renderer
+# backend), so SDL2 and libcurl dev headers must be present to configure.
+apt-get install -y --no-install-recommends \
+ libsdl2-dev \
+ libcurl4-openssl-dev
+
+# --- Runtime support required by the built executable ------------------------
+# The app loads p7zip's 7z.so via the bit7z library at startup
+# (third-party/bit7z + Lampray/Control/lampConfig.cpp searches for 7z.so), and
+# it shells out to zenity for dialogs. These are needed for ./executable to
+# actually run, so install them in the network-enabled stage.
+apt-get install -y --no-install-recommends \
+ p7zip-full \
+ zenity
diff --git a/chollingworth--lampray.29d9296/environment/executable b/chollingworth--lampray.29d9296/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..6ceee47f95b5d94c21aa9b607c396f2038d7bc8a
--- /dev/null
+++ b/chollingworth--lampray.29d9296/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0fa6dc08286c1f2655db2f5c4816aaedf0652e6f47f2bd3462576ed809bb27ba
+size 2649888
diff --git a/chollingworth--lampray.29d9296/environment/harbor_configure_apt_mirror.sh b/chollingworth--lampray.29d9296/environment/harbor_configure_apt_mirror.sh
new file mode 100644
index 0000000000000000000000000000000000000000..c70a651096880dece7733b26837f2ca8e24d2c7f
--- /dev/null
+++ b/chollingworth--lampray.29d9296/environment/harbor_configure_apt_mirror.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+repository_base="${1%/}"
+if [[ -z "$repository_base" ]]; then
+ exit 0
+fi
+
+. /etc/os-release
+codename="${VERSION_CODENAME:-}"
+if [[ -z "$codename" ]]; then
+ echo "VERSION_CODENAME is not set" >&2
+ exit 1
+fi
+
+if [[ "$ID" == "ubuntu" ]]; then
+ repository_name="apt-proxy"
+ components="main universe restricted multiverse"
+else
+ repository_name="debian-proxy"
+ components="main contrib non-free non-free-firmware"
+fi
+
+install -d /etc/apt/sources.list.d
+rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
+printf 'deb [trusted=yes] %s/%s %s %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >/etc/apt/sources.list
+printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >>/etc/apt/sources.list
+
+if [[ "$ID" != "ubuntu" ]]; then
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
+ >>/etc/apt/sources.list
+fi
diff --git a/chollingworth--lampray.29d9296/environment/harbor_prepare_download_env.sh b/chollingworth--lampray.29d9296/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chollingworth--lampray.29d9296/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chollingworth--lampray.29d9296/environment/workspace.tar.gz b/chollingworth--lampray.29d9296/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4f794c638da857913236cc5dbd2909607174cb52
--- /dev/null
+++ b/chollingworth--lampray.29d9296/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c2936e1091653865761485807a62b0b96cecea4902aa2063533cd2f06d12e61
+size 3016
diff --git a/chollingworth--lampray.29d9296/instruction.md b/chollingworth--lampray.29d9296/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chollingworth--lampray.29d9296/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chollingworth--lampray.29d9296/solution/solve.sh b/chollingworth--lampray.29d9296/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chollingworth--lampray.29d9296/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chollingworth--lampray.29d9296/task.toml b/chollingworth--lampray.29d9296/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..b05f41e7b0930c59b1dfadb9721767fb98039518
--- /dev/null
+++ b/chollingworth--lampray.29d9296/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chollingworth--lampray.29d9296"
+description = "Synthetic ProgramGym cleanroom reconstruction task for CHollingworth/Lampray"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "CHollingworth__Lampray.29d9296"
+repository = "CHollingworth/Lampray"
+commit = "29d92967452f4634b03273fbc457c9a307e94ebf"
+language = "cpp"
+difficulty = "medium"
+difficulty_score = 3.6677890507903115
+test_branches = 6
+test_count = 597
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chollingworth--lampray.29d9296/tests/Dockerfile b/chollingworth--lampray.29d9296/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..31c24423705b4d9f115d86d6c410e4b65f06031b
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/Dockerfile
@@ -0,0 +1,74 @@
+FROM ubuntu:22.04
+ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
+ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
+ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
+ARG PROGRAMGYM_NPM_STRICT_SSL="true"
+ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
+ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
+ARG PROGRAMGYM_UV_INSECURE_HOST=""
+ENV GOPROXY=${PROGRAMGYM_GOPROXY}
+ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
+ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
+ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
+ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
+COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
+RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_cache=/workspace/.cache/npm
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.12
+RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
+ARG GCC_VERSION=13.3.0
+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; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; 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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_01.tar.gz b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b54f5bb44e953e38cbece163a4cdb0d74497315a
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:942de5ccbbd0b9a123c6ec9b959366fe6abf8133761d764cfa65f766195f4461
+size 399197
diff --git a/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_02.tar.gz b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..9cbfae021eda7f25e13e8efe0112c083d2f560de
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:477f73e6862b13437f87c7723c7014875484e0888b8379b401ff7ba68cd8c421
+size 19496
diff --git a/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_03.tar.gz b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4e6c15d00bafdacb41c060a530249fd85f05c250
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:486796cd5b2330aacd6c0399e5099e4c98e0777e23bfca1b8ee1b4dc03a560fc
+size 26627
diff --git a/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_04.tar.gz b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..27f1cf2bb9588d669f810c198025411226d2c00e
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d2da6cea70cd59ff25c7abd265755743aa34135eef7977ac6fd4125a7c2f5f6
+size 22023
diff --git a/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_05.tar.gz b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_05.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..f29b118818711d0b3ec363fc8734eecf47989dce
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_05.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ad8f48dfa725cb9c714e9a8ec5482b69616538c685761d32a6d9971dfd05ebfd
+size 16999
diff --git a/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_06.tar.gz b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_06.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..2be7f16509b5c6a7edb0e789f08dc9bcf7458339
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/blobs/tests/generated_module_06.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:543d952e04df715ec83763ec8617272addfc4a581a0086b23179d012a8752785
+size 19886
diff --git a/chollingworth--lampray.29d9296/tests/docker-compose.yaml b/chollingworth--lampray.29d9296/tests/docker-compose.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f3bd71ea40d31cf72c3c886f85cbca1450add2cc
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/docker-compose.yaml
@@ -0,0 +1,11 @@
+services:
+ main:
+ build:
+ args:
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
diff --git a/chollingworth--lampray.29d9296/tests/download.sh b/chollingworth--lampray.29d9296/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..3add1a474783df0ed940153d2e99e18634afad98
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/download.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# download.sh — Lampray build dependency prefetch.
+#
+# Executed via `source /source_ro/download.sh` from the repository root while
+# the container still has network access. This stage ONLY installs/prefetches
+# system dependencies and does not compile, link, or build anything.
+#
+# The script must be valid to run in shell source mode: exported env vars stay
+# in the current shell, no positional arguments are used, and failures
+# propagate via `set -e` rather than exit in normal control flow.
+
+set -euo pipefail
+
+# Refresh package indexes. Harmless if already current; required because the
+# base image may ship without up-to-date package lists.
+apt-get update
+
+# --- Compile-time dependencies for the CMake build ---------------------------
+# Base image provides gcc/g++ 13, cmake, ninja, pkg-config, make, autotools, etc.
+# It does NOT ship SDL2 or libcurl development headers. The project's CMake
+# configuration requires both (SDL2 and CURL, used by the imgui SDL2 renderer
+# backend), so SDL2 and libcurl dev headers must be present to configure.
+apt-get install -y --no-install-recommends \
+ libsdl2-dev \
+ libcurl4-openssl-dev
+
+# --- Runtime support required by the built executable ------------------------
+# The app loads p7zip's 7z.so via the bit7z library at startup
+# (third-party/bit7z + Lampray/Control/lampConfig.cpp searches for 7z.so), and
+# it shells out to zenity for dialogs. These are needed for ./executable to
+# actually run, so install them in the network-enabled stage.
+apt-get install -y --no-install-recommends \
+ p7zip-full \
+ zenity
diff --git a/chollingworth--lampray.29d9296/tests/executable b/chollingworth--lampray.29d9296/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..6ceee47f95b5d94c21aa9b607c396f2038d7bc8a
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0fa6dc08286c1f2655db2f5c4816aaedf0652e6f47f2bd3462576ed809bb27ba
+size 2649888
diff --git a/chollingworth--lampray.29d9296/tests/harbor_configure_apt_mirror.sh b/chollingworth--lampray.29d9296/tests/harbor_configure_apt_mirror.sh
new file mode 100644
index 0000000000000000000000000000000000000000..c70a651096880dece7733b26837f2ca8e24d2c7f
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/harbor_configure_apt_mirror.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+repository_base="${1%/}"
+if [[ -z "$repository_base" ]]; then
+ exit 0
+fi
+
+. /etc/os-release
+codename="${VERSION_CODENAME:-}"
+if [[ -z "$codename" ]]; then
+ echo "VERSION_CODENAME is not set" >&2
+ exit 1
+fi
+
+if [[ "$ID" == "ubuntu" ]]; then
+ repository_name="apt-proxy"
+ components="main universe restricted multiverse"
+else
+ repository_name="debian-proxy"
+ components="main contrib non-free non-free-firmware"
+fi
+
+install -d /etc/apt/sources.list.d
+rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
+printf 'deb [trusted=yes] %s/%s %s %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >/etc/apt/sources.list
+printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
+ "$repository_base" "$repository_name" "$codename" "$components" \
+ >>/etc/apt/sources.list
+
+if [[ "$ID" != "ubuntu" ]]; then
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
+ >>/etc/apt/sources.list
+fi
diff --git a/chollingworth--lampray.29d9296/tests/harbor_prepare_download_env.sh b/chollingworth--lampray.29d9296/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chollingworth--lampray.29d9296/tests/programgym_evaluator.py b/chollingworth--lampray.29d9296/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chollingworth--lampray.29d9296/tests/programgym_task.json b/chollingworth--lampray.29d9296/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..799fbf2132e78abe89d22cc0dd031bfbb7348474
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/programgym_task.json
@@ -0,0 +1,977 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_lampray_config.test_config_key_loading_order_matches_golden",
+ "reasons": [
+ {
+ "id": "golden_docstring",
+ "message": "pytest test docstring mentions golden data that is not used in the body",
+ "path": "eval/tests/test_lampray_config.py",
+ "repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_lampray_config.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lampray_config.test_default_colour_save_line_set_matches_golden",
+ "reasons": [
+ {
+ "id": "golden_docstring",
+ "message": "pytest test docstring mentions golden data that is not used in the body",
+ "path": "eval/tests/test_lampray_config.py",
+ "repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_lampray_config.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lampray_log.test_modlistsavefailed_error_code_seven_counts",
+ "reasons": [
+ {
+ "id": "golden_docstring",
+ "message": "pytest test docstring mentions golden data that is not used in the body",
+ "path": "eval/tests/test_lampray_log.py",
+ "repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
+ "severity": "error",
+ "stage": "static_lint"
+ },
+ {
+ "id": "golden_no_equality",
+ "message": "pytest test references golden data without equality comparison",
+ "path": "eval/tests/test_lampray_log.py",
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_lampray_config.test_bit7z_custom_location_preserved_without_search",
+ "eval.tests.test_lampray_config.test_bit7z_empty_node_still_triggers_search",
+ "eval.tests.test_lampray_config.test_bit7z_location_saved_back_to_config",
+ "eval.tests.test_lampray_config.test_check_updates_boolean_false_variant",
+ "eval.tests.test_lampray_config.test_check_updates_set_to_zero_no_warning",
+ "eval.tests.test_lampray_config.test_check_updates_unset_warns_and_proceeds",
+ "eval.tests.test_lampray_config.test_config_key_loading_order_matches_golden",
+ "eval.tests.test_lampray_config.test_default_colour_save_line_set_matches_golden",
+ "eval.tests.test_lampray_config.test_default_colours_all_persisted_with_exact_values",
+ "eval.tests.test_lampray_config.test_font_scale_present_no_warning",
+ "eval.tests.test_lampray_config.test_language_no_name_root_falls_back_to_english_uk",
+ "eval.tests.test_lampray_config.test_languagepath_broken_falls_back",
+ "eval.tests.test_lampray_config.test_languagepath_loaded_silently",
+ "eval.tests.test_lampray_config.test_languagepath_unset_warns_and_falls_back",
+ "eval.tests.test_lampray_config.test_previousgame_present_loads_silently",
+ "eval.tests.test_lampray_config.test_previousgame_selected_index_reaches_directory_creation",
+ "eval.tests.test_lampray_config.test_reseeding_some_colours_skips_their_save_records",
+ "eval.tests.test_lampray_config.test_valid_alternative_language_loads_without_fallback",
+ "eval.tests.test_lampray_init.test_renderer_creation_failure_logs_and_returns_zero",
+ "eval.tests.test_lampray_init.test_renderer_failure_exit_not_negative",
+ "eval.tests.test_lampray_init.test_sdl_init_failure_mentions_no_video_device",
+ "eval.tests.test_lampray_init.test_sdl_init_failure_returns_255",
+ "eval.tests.test_lampray_log.test_error_code_line_set_matches_golden",
+ "eval.tests.test_lampray_log.test_error_codes_are_nine_and_seven",
+ "eval.tests.test_lampray_log.test_keyloadfailure_warning_code_nine[Font_Scale]",
+ "eval.tests.test_lampray_log.test_keyloadfailure_warning_code_nine[LanguagePath]",
+ "eval.tests.test_lampray_log.test_keyloadfailure_warning_code_nine[PreviousGame]",
+ "eval.tests.test_lampray_log.test_lamp_log_and_stdout_warning_consistency",
+ "eval.tests.test_lampray_log.test_log_level_prefixes_exact",
+ "eval.tests.test_lampray_log.test_metadata_search_and_save_of_currentprofile",
+ "eval.tests.test_lampray_log.test_modlistsavefailed_error_code_seven_counts",
+ "eval.tests.test_lampray_log.test_pergame_metadata_matches_golden",
+ "eval.tests.test_lampray_log.test_profilelist_and_currentprofile_persisted_for_both_games",
+ "eval.tests.test_lampray_misc.test_FontScale_empty_value_skips_scale_branch",
+ "eval.tests.test_lampray_misc.test_default_colours_persist_across_two_runs",
+ "eval.tests.test_lampray_misc.test_dir_creation_failure_emits_error_code_zero",
+ "eval.tests.test_lampray_misc.test_log_clear_failure_when_lamp_log_is_directory",
+ "eval.tests.test_lampray_misc.test_showintromenu_nonzero_values_load_silently[1]",
+ "eval.tests.test_lampray_misc.test_showintromenu_nonzero_values_load_silently[true]",
+ "eval.tests.test_lampray_misc.test_showintromenu_nonzero_values_load_silently[yes]",
+ "eval.tests.test_lampray_misc.test_shownintromenu_key_seeded_loads_silently",
+ "eval.tests.test_lampray_startup.test_empty_fonts_dir_skips_font_loading_without_crash",
+ "eval.tests.test_lampray_startup.test_font_directory_named_ttf_is_skipped",
+ "eval.tests.test_lampray_startup.test_fonts_path_is_regular_file_skips_font_loading",
+ "eval.tests.test_lampray_startup.test_full_startup_clears_existing_lamp_log",
+ "eval.tests.test_lampray_startup.test_full_startup_creates_data_directories",
+ "eval.tests.test_lampray_startup.test_full_startup_loads_font_from_fonts_dir",
+ "eval.tests.test_lampray_startup.test_full_startup_log_file_is_suffix_of_stdout",
+ "eval.tests.test_lampray_startup.test_full_startup_log_lines_have_structured_prefix",
+ "eval.tests.test_lampray_startup.test_full_startup_runs_into_main_loop",
+ "eval.tests.test_lampray_startup.test_full_startup_stdout_banner_and_version",
+ "eval.tests.test_lampray_startup.test_full_startup_writes_lamp_log",
+ "eval.tests.test_lampray_startup.test_multiple_ttf_fonts_load_first_and_break",
+ "eval.tests.test_lampray_startup.test_no_fonts_dir_runs_without_font_loading",
+ "eval.tests.test_lampray_startup.test_non_ttf_files_in_fonts_dir_are_ignored"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_lampConfig.test_base_data_directories_created",
+ "eval.tests.test_lampConfig.test_bit7z_library_location_persists_across_runs",
+ "eval.tests.test_lampConfig.test_config_file_lives_under_xdg_data_path",
+ "eval.tests.test_lampConfig.test_config_precedence_explicit_value_wins_over_default",
+ "eval.tests.test_lampConfig.test_config_roundtrip_conf_file_is_valid_xml",
+ "eval.tests.test_lampConfig.test_home_drives_data_path",
+ "eval.tests.test_lampConfig.test_init_empty_location_still_probes",
+ "eval.tests.test_lampConfig.test_init_nonempty_custom_location_preserved[/opt/libsevenzip/7z.so]",
+ "eval.tests.test_lampConfig.test_init_nonempty_custom_location_preserved[/some/path/7z.dylib]",
+ "eval.tests.test_lampConfig.test_init_nonempty_custom_location_preserved[/usr/lib64/nonexistent/7z.so]",
+ "eval.tests.test_lampConfig.test_init_nonempty_custom_location_preserved[off]",
+ "eval.tests.test_lampConfig.test_init_runs_before_directory_creation",
+ "eval.tests.test_lampConfig.test_init_searches_and_saves_7z_library",
+ "eval.tests.test_lampConfig.test_init_skips_probe_when_location_preconfigured",
+ "eval.tests.test_lampConfig.test_second_run_does_not_resave_defaults",
+ "eval.tests.test_lampControl_and_updates.test_update_check_fires_when_enabled",
+ "eval.tests.test_lampControl_and_updates.test_update_check_suppressed_when_disabled[0]",
+ "eval.tests.test_lampControl_and_updates.test_update_check_suppressed_when_disabled[false]",
+ "eval.tests.test_lampControl_and_updates.test_update_fetch_fires_for_non_suppress_seed[1]",
+ "eval.tests.test_lampControl_and_updates.test_update_fetch_fires_for_non_suppress_seed[True]",
+ "eval.tests.test_lampControl_and_updates.test_update_fetch_fires_for_non_suppress_seed[on]",
+ "eval.tests.test_lampControl_and_updates.test_update_fetch_fires_for_non_suppress_seed[true]",
+ "eval.tests.test_lampControl_and_updates.test_update_fetch_fires_for_non_suppress_seed[yes]",
+ "eval.tests.test_lampControl_and_updates.test_update_fetch_fires_for_present_but_empty_flag",
+ "eval.tests.test_lampControl_and_updates.test_update_fetch_fires_with_warning_for_absent_key",
+ "eval.tests.test_lampControl_and_updates.test_update_flag_persisted_values_not_rewritten",
+ "eval.tests.test_lampControl_and_updates.test_version_stamp_logged_at_startup",
+ "eval.tests.test_lampControl_and_updates.test_welcome_line_embeds_formatted_time_and_date",
+ "eval.tests.test_lampControl_and_updates.test_whitespace_padded_suppress_tokens_still_fire[ 0]",
+ "eval.tests.test_lampControl_and_updates.test_whitespace_padded_suppress_tokens_still_fire[ no]",
+ "eval.tests.test_lampControl_and_updates.test_whitespace_padded_suppress_tokens_still_fire[0 ]",
+ "eval.tests.test_lampControl_and_updates.test_whitespace_padded_suppress_tokens_still_fire[False]",
+ "eval.tests.test_lampControl_and_updates.test_whitespace_padded_suppress_tokens_still_fire[\\t0]",
+ "eval.tests.test_lampControl_and_updates.test_whitespace_padded_suppress_tokens_still_fire[false ]",
+ "eval.tests.test_lampControl_modmenu.test_as_bool_falsy_case_and_whitespace_route_to_mod_menu[ tRuE]",
+ "eval.tests.test_lampControl_modmenu.test_as_bool_falsy_case_and_whitespace_route_to_mod_menu[1 ]",
+ "eval.tests.test_lampControl_modmenu.test_as_bool_falsy_case_and_whitespace_route_to_mod_menu[2]",
+ "eval.tests.test_lampControl_modmenu.test_as_bool_falsy_case_and_whitespace_route_to_mod_menu[TRUE]",
+ "eval.tests.test_lampControl_modmenu.test_as_bool_falsy_case_and_whitespace_route_to_mod_menu[True]",
+ "eval.tests.test_lampControl_modmenu.test_as_bool_falsy_case_and_whitespace_route_to_mod_menu[yes]",
+ "eval.tests.test_lampControl_modmenu.test_collapse_skips_every_trailing_mod_and_keeps_load_count[collapse-five]",
+ "eval.tests.test_lampControl_modmenu.test_collapse_skips_every_trailing_mod_and_keeps_load_count[collapse-nine]",
+ "eval.tests.test_lampControl_modmenu.test_collapse_skips_every_trailing_mod_and_keeps_load_count[collapse-two]",
+ "eval.tests.test_lampControl_modmenu.test_default_profile_selected_when_flag_absent",
+ "eval.tests.test_lampControl_modmenu.test_disabled_separator_does_not_trigger_collapse",
+ "eval.tests.test_lampControl_modmenu.test_distinct_mod_types_rendered[0-0]",
+ "eval.tests.test_lampControl_modmenu.test_distinct_mod_types_rendered[1-1]",
+ "eval.tests.test_lampControl_modmenu.test_distinct_mod_types_rendered[2-2]",
+ "eval.tests.test_lampControl_modmenu.test_distinct_mod_types_rendered[3-3]",
+ "eval.tests.test_lampControl_modmenu.test_distinct_mod_types_rendered[5-5]",
+ "eval.tests.test_lampControl_modmenu.test_distinct_mod_types_rendered[999-999]",
+ "eval.tests.test_lampControl_modmenu.test_empty_default_profile_loads_no_mods",
+ "eval.tests.test_lampControl_modmenu.test_enabled_separator_collapses_following_mods",
+ "eval.tests.test_lampControl_modmenu.test_enabled_separator_then_mods_then_separator_uncollapses",
+ "eval.tests.test_lampControl_modmenu.test_falsy_showintro_skips_intro_and_loads_modlist[0]",
+ "eval.tests.test_lampControl_modmenu.test_falsy_showintro_skips_intro_and_loads_modlist[]",
+ "eval.tests.test_lampControl_modmenu.test_falsy_showintro_skips_intro_and_loads_modlist[false]",
+ "eval.tests.test_lampControl_modmenu.test_malformed_bg3_mdf_taken_as_missing",
+ "eval.tests.test_lampControl_modmenu.test_missing_modlists_log_error_for_each_game",
+ "eval.tests.test_lampControl_modmenu.test_modlist_uses_full_archive_path",
+ "eval.tests.test_lampControl_modmenu.test_multiple_mods_enabled_disabled_and_separator",
+ "eval.tests.test_lampControl_modmenu.test_nondefault_current_profile_selects_its_own_mods",
+ "eval.tests.test_lampControl_modmenu.test_row_count_scales_modlist[eight-mods]",
+ "eval.tests.test_lampControl_modmenu.test_row_count_scales_modlist[one-mod]",
+ "eval.tests.test_lampControl_modmenu.test_row_count_scales_modlist[three-mods]",
+ "eval.tests.test_lampControl_modmenu.test_second_game_modlist_loads_independently",
+ "eval.tests.test_lampControl_modmenu.test_truthy_showintro_value_preserved_while_mods_still_load",
+ "eval.tests.test_lampCustomise.test_empty_colour_value_is_rematerialised_to_default[Colour_ButtonAlt]",
+ "eval.tests.test_lampCustomise.test_empty_colour_value_is_rematerialised_to_default[Colour_SearchHighlight]",
+ "eval.tests.test_lampCustomise.test_empty_colour_value_is_rematerialised_to_default[Colour_Text]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_Button-590202-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_ButtonAlt-1a994d-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_HeadHover-4296f9-cc]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_HeadPressed-590202-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_Hover-a61103-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_InputBG-260101-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_MenuBar-071216-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_MenuItems-4296f9-4f]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_Pressed-260101-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_SearchHighlight-1966bf-c6]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_Separator-4296f9-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_SeparatorHover-a61103-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_Text-ffffff-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_ToolTipAndTypes-141414-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_logs_save_line_for_each_colour[Colour_WindowBackground-0a0d12-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_Button-590202-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_ButtonAlt-1a994d-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_HeadHover-4296f9-cc]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_HeadPressed-590202-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_Hover-a61103-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_InputBG-260101-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_MenuBar-071216-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_MenuItems-4296f9-4f]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_Pressed-260101-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_SearchHighlight-1966bf-c6]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_Separator-4296f9-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_SeparatorHover-a61103-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_Text-ffffff-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_ToolTipAndTypes-141414-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_materialises_each_default_colour[Colour_WindowBackground-0a0d12-ff]",
+ "eval.tests.test_lampCustomise.test_first_run_writes_all_default_colours_to_count_15",
+ "eval.tests.test_lampCustomise.test_lamp_config_colours_isolated_from_game_node",
+ "eval.tests.test_lampCustomise.test_mixed_valid_empty_and_absent_colours_exact_final_palette",
+ "eval.tests.test_lampCustomise.test_preseeded_colours_persist_alongside_new_defaults",
+ "eval.tests.test_lampCustomise.test_preseeded_custom_colour_is_loaded_not_overwritten[Colour_Button-fea011-ff]",
+ "eval.tests.test_lampCustomise.test_preseeded_custom_colour_is_loaded_not_overwritten[Colour_ButtonAlt-123456-aa]",
+ "eval.tests.test_lampCustomise.test_preseeded_custom_colour_is_loaded_not_overwritten[Colour_MenuBar-ffffff-00]",
+ "eval.tests.test_lampCustomise.test_preseeded_custom_colour_is_loaded_not_overwritten[Colour_SearchHighlight-00ff00-80]",
+ "eval.tests.test_lampCustomise.test_preseeded_custom_colour_is_loaded_not_overwritten[Colour_Text-000000-ff]",
+ "eval.tests.test_lampCustomise.test_present_empty_colour_rematerialises_without_warning[Colour_ButtonAlt-1a994d-ff]",
+ "eval.tests.test_lampCustomise.test_present_empty_colour_rematerialises_without_warning[Colour_MenuBar-071216-ff]",
+ "eval.tests.test_lampCustomise.test_present_empty_colour_rematerialises_without_warning[Colour_SearchHighlight-1966bf-c6]",
+ "eval.tests.test_lampCustomise.test_present_empty_colour_rematerialises_without_warning[Colour_Text-ffffff-ff]",
+ "eval.tests.test_lampCustomise.test_present_empty_versus_absent_warning_contrast",
+ "eval.tests.test_lampCustomise.test_short_unparseable_colour_value_preserved_verbatim[Colour_Button]",
+ "eval.tests.test_lampCustomise.test_short_unparseable_colour_value_preserved_verbatim[Colour_MenuBar]",
+ "eval.tests.test_lampCustomise.test_short_unparseable_colour_value_preserved_verbatim[Colour_SearchHighlight]",
+ "eval.tests.test_lampCustomise.test_updates_disabled_by_config_value[0]",
+ "eval.tests.test_lampCustomise.test_updates_disabled_by_config_value[false]",
+ "eval.tests.test_lampCustomise.test_updates_flag_default_true_is_applied",
+ "eval.tests.test_lampCustomise.test_updates_stay_enabled_for_other_values[1]",
+ "eval.tests.test_lampCustomise.test_updates_stay_enabled_for_other_values[]",
+ "eval.tests.test_lampCustomise.test_updates_stay_enabled_for_other_values[true]",
+ "eval.tests.test_lampCustomise.test_updates_stay_enabled_for_other_values[yes]",
+ "eval.tests.test_lampCustomise.test_uppercase_colours_mix_with_default_materialisation",
+ "eval.tests.test_lampCustomise.test_uppercase_hex_colour_preserved_verbatim[Colour_ButtonAlt-00AA11-40-1a994d-ff]",
+ "eval.tests.test_lampCustomise.test_uppercase_hex_colour_preserved_verbatim[Colour_MenuBar-0A0D12-FF-071216-ff]",
+ "eval.tests.test_lampCustomise.test_uppercase_hex_colour_preserved_verbatim[Colour_SearchHighlight-12AB34-CD-1966bf-c6]",
+ "eval.tests.test_lampCustomise.test_uppercase_hex_colour_preserved_verbatim[Colour_Text-FF0000-EE-ffffff-ff]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_ButtonAlt-1a994d-ff- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_ButtonAlt-1a994d-ff- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_ButtonAlt-1a994d-ff-\\t]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_MenuBar-071216-ff- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_MenuBar-071216-ff- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_MenuBar-071216-ff-\\t]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_SearchHighlight-1966bf-c6- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_SearchHighlight-1966bf-c6- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_SearchHighlight-1966bf-c6-\\t]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_Text-ffffff-ff- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_Text-ffffff-ff- ]",
+ "eval.tests.test_lampCustomise.test_whitespace_only_colour_value_equivalent_to_empty[Colour_Text-ffffff-ff-\\t]"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_bg3_launch.test_bg3_conf_section_contains_profile_keys_only_when_fresh",
+ "eval.tests.test_bg3_launch.test_bg3_config_structure_is_valid_xml",
+ "eval.tests.test_bg3_launch.test_bg3_does_not_write_install_dir_from_launch",
+ "eval.tests.test_bg3_launch.test_bg3_fills_empty_profile_list_but_preserves_custom_profile",
+ "eval.tests.test_bg3_launch.test_bg3_keeps_both_install_and_appdata_configured",
+ "eval.tests.test_bg3_launch.test_bg3_launch_emits_all_four_key_loads",
+ "eval.tests.test_bg3_launch.test_bg3_loads_app_data_path_when_configured",
+ "eval.tests.test_bg3_launch.test_bg3_loads_install_dir_path_when_configured",
+ "eval.tests.test_bg3_launch.test_bg3_missing_app_data_path_warns",
+ "eval.tests.test_bg3_launch.test_bg3_missing_install_dir_path_warns",
+ "eval.tests.test_bg3_launch.test_bg3_preserves_custom_current_profile",
+ "eval.tests.test_bg3_launch.test_bg3_preserves_custom_current_profile_with_default_profile_list",
+ "eval.tests.test_bg3_launch.test_bg3_preserves_custom_profile_list",
+ "eval.tests.test_bg3_launch.test_bg3_resets_profile_keys_to_default_when_defaultish[Default]",
+ "eval.tests.test_bg3_launch.test_bg3_resets_profile_keys_to_default_when_defaultish[]",
+ "eval.tests.test_bg3_launch.test_bg3_saves_default_current_profile_when_absent",
+ "eval.tests.test_bg3_launch.test_bg3_saves_default_profile_list_when_absent",
+ "eval.tests.test_c77_launch.test_c77_config_storage_is_distinct_from_bg3",
+ "eval.tests.test_c77_launch.test_c77_does_not_use_bg3_install_dir_key",
+ "eval.tests.test_c77_launch.test_c77_launch_reads_its_three_keys",
+ "eval.tests.test_c77_launch.test_c77_loads_install_path_when_configured",
+ "eval.tests.test_c77_launch.test_c77_missing_install_path_warns",
+ "eval.tests.test_c77_launch.test_c77_not_configured_persists_only_profile_keys",
+ "eval.tests.test_c77_launch.test_c77_preserves_custom_current_profile",
+ "eval.tests.test_c77_launch.test_c77_preserves_custom_profile_list",
+ "eval.tests.test_c77_launch.test_c77_resets_profile_keys_to_default_when_defaultish[Default]",
+ "eval.tests.test_c77_launch.test_c77_resets_profile_keys_to_default_when_defaultish[]",
+ "eval.tests.test_c77_launch.test_c77_saves_default_current_profile_when_absent",
+ "eval.tests.test_c77_launch.test_c77_saves_default_profile_list_when_absent",
+ "eval.tests.test_deployment_guards.test_default_intro_menu_also_reaches_loop",
+ "eval.tests.test_deployment_guards.test_log_file_written_to_working_directory",
+ "eval.tests.test_deployment_guards.test_mod_menu_startup_reaches_both_game_launches",
+ "eval.tests.test_deployment_guards.test_process_reaches_stable_loop_with_intro_skipped",
+ "eval.tests.test_duplicate_config_sections.test_duplicate_game_sections_default_into_first_and_keep_second",
+ "eval.tests.test_games_registry.test_registry_creates_config_and_overlay_underlay_directories",
+ "eval.tests.test_games_registry.test_registry_creates_per_game_data_directories",
+ "eval.tests.test_games_registry.test_registry_default_profile_seeded_for_every_game",
+ "eval.tests.test_games_registry.test_registry_defaults_to_previous_game_when_configured",
+ "eval.tests.test_games_registry.test_registry_launch_order_bg3_before_c77",
+ "eval.tests.test_games_registry.test_registry_out_of_range_previous_game_crashes",
+ "eval.tests.test_games_registry.test_registry_previous_game_zero_selects_bg3_stably",
+ "eval.tests.test_games_registry.test_registry_sections_keyed_by_shorthand",
+ "eval.tests.test_games_registry.test_registry_writes_a_config_section_per_game",
+ "eval.tests.test_modlists.test_archive_path_with_spaces_is_preserved",
+ "eval.tests.test_modlists.test_archive_path_with_unicode_is_preserved",
+ "eval.tests.test_modlists.test_bg3_current_profile_selects_mod_set",
+ "eval.tests.test_modlists.test_bg3_default_profile_ignores_other_profiles",
+ "eval.tests.test_modlists.test_bg3_empty_default_profile_loads_nothing",
+ "eval.tests.test_modlists.test_bg3_engine_injection_mod_type",
+ "eval.tests.test_modlists.test_bg3_loads_all_six_mod_types_in_order",
+ "eval.tests.test_modlists.test_bg3_loads_mods_from_default_profile_in_order",
+ "eval.tests.test_modlists.test_bg3_loads_separator_mod",
+ "eval.tests.test_modlists.test_bg3_mismatched_profile_loads_nothing",
+ "eval.tests.test_modlists.test_bg3_missing_modlist_logs_error",
+ "eval.tests.test_modlists.test_bg3_mods_are_logged_before_c77_mods",
+ "eval.tests.test_modlists.test_bg3_separator_mid_list_preserves_order_with_surrounding_mods",
+ "eval.tests.test_modlists.test_c77_disabled_mod_still_logged",
+ "eval.tests.test_modlists.test_c77_loads_all_mod_types_in_order",
+ "eval.tests.test_modlists.test_c77_loads_mods_from_default_profile",
+ "eval.tests.test_modlists.test_c77_missing_modlist_logs_error",
+ "eval.tests.test_modlists.test_c77_multiprofile_selects_current",
+ "eval.tests.test_modlists.test_duplicate_archive_paths_preserve_load_order",
+ "eval.tests.test_modlists.test_duplicate_profile_names_load_first_only",
+ "eval.tests.test_modlists.test_empty_archive_path_mod_loads",
+ "eval.tests.test_modlists.test_empty_current_profile_defaults_and_loads_default_mods",
+ "eval.tests.test_modlists.test_enabled_attribute_parsing[0-0]",
+ "eval.tests.test_modlists.test_enabled_attribute_parsing[1-1]",
+ "eval.tests.test_modlists.test_enabled_attribute_parsing[false-0]",
+ "eval.tests.test_modlists.test_enabled_attribute_parsing[true-1]",
+ "eval.tests.test_modlists.test_enabled_attribute_parsing[yes-1]",
+ "eval.tests.test_modlists.test_game_mod_lists_load_independent_of_each_other",
+ "eval.tests.test_modlists.test_loadmodlist_prints_matched_profile_name_for_each_game",
+ "eval.tests.test_modlists.test_malformed_modlist_file_reports_error",
+ "eval.tests.test_modlists.test_midrange_out_of_enum_modtype_preserved",
+ "eval.tests.test_modlists.test_missing_mod_attributes_default_to_zero_and_disabled",
+ "eval.tests.test_modlists.test_modlist_timeofupdate_variants_load_cleanly",
+ "eval.tests.test_modlists.test_negative_and_empty_modtype_stored_exactly",
+ "eval.tests.test_modlists.test_profile_name_whitespace_and_unicode_fidelity[ A B ]",
+ "eval.tests.test_modlists.test_profile_name_whitespace_and_unicode_fidelity[My Profile 2]",
+ "eval.tests.test_modlists.test_profile_name_whitespace_and_unicode_fidelity[\\xdcnicode \\u03a9]",
+ "eval.tests.test_modlists.test_profile_name_with_ampersand_round_trips_escaped",
+ "eval.tests.test_modlists.test_profile_name_with_spaces_round_trips_and_prints",
+ "eval.tests.test_modlists.test_profile_selection_is_case_sensitive",
+ "eval.tests.test_modlists.test_valid_empty_root_modlist_loads_nothing",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[-1-0]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[1.0-1]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[OFF-0]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[ON-0]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[TRUE-1]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[Y-1]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[YES-1]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[Yes-1]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[on-0]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[tRuE-1]",
+ "eval.tests.test_modlists_parser_edges.test_enabled_case_aliases_and_unrecognized_values[y-1]",
+ "eval.tests.test_modlists_parser_edges.test_mod_with_no_archive_path_attribute_loads_empty_path",
+ "eval.tests.test_modlists_parser_edges.test_modtype_numeric_prefix_parse[ 2-2]",
+ "eval.tests.test_modlists_parser_edges.test_modtype_numeric_prefix_parse[+7-7]",
+ "eval.tests.test_modlists_parser_edges.test_modtype_numeric_prefix_parse[-3.9--3]",
+ "eval.tests.test_modlists_parser_edges.test_modtype_numeric_prefix_parse[0008-8]",
+ "eval.tests.test_modlists_parser_edges.test_modtype_numeric_prefix_parse[0x10-16]",
+ "eval.tests.test_modlists_parser_edges.test_modtype_numeric_prefix_parse[1.5-1]",
+ "eval.tests.test_registry_edges.test_previous_game_1_still_loads_both_game_mod_sets",
+ "eval.tests.test_registry_edges.test_previous_game_leading_zero_selects_c77",
+ "eval.tests.test_registry_edges.test_previous_game_negative_index_segfaults",
+ "eval.tests.test_registry_edges.test_previous_game_non_numeric_aborts",
+ "eval.tests.test_registry_edges.test_previous_game_overflow_aborts",
+ "eval.tests.test_registry_edges.test_previous_game_partial_numeric_parse_selects_c77",
+ "eval.tests.test_registry_edges.test_previous_game_plus_one_selects_c77_stably",
+ "eval.tests.test_registry_edges.test_previous_game_whitespace_padded_selects_c77",
+ "eval.tests.test_state_transitions.test_config_drift_adds_missing_default_keys",
+ "eval.tests.test_state_transitions.test_custom_profile_persists_across_runs",
+ "eval.tests.test_state_transitions.test_modlist_written_by_earlier_state_is_read_next",
+ "eval.tests.test_state_transitions.test_new_config_created_then_reused_by_second_run",
+ "eval.tests.test_state_transitions.test_previous_game_selects_c77_custom_profile_mods",
+ "eval.tests.test_state_transitions.test_profile_list_drives_available_profiles",
+ "eval.tests.test_state_transitions.test_switch_current_profile_changes_mod_set_across_runs",
+ "eval.tests.test_state_transitions.test_switch_to_previous_game_then_relaunch"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_lampio_installdirs.test_malformed_conf_regenerated_fresh_at_save",
+ "reasons": [
+ {
+ "id": "generic_keyword_oracle",
+ "message": "pytest test uses a generic keyword oracle",
+ "path": "eval/tests/test_lampio_installdirs.py",
+ "repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lampio_installdirs.test_seeded_install_path_no_default_save[BG3-appDataPath-/appdata/bg3]",
+ "reasons": [
+ {
+ "detail": "empty executable run failed as expected with returncode=1",
+ "id": "dummy_pass",
+ "message": "test passed against the empty executable",
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
+ "severity": "error",
+ "stage": "dummy_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lampio_installdirs.test_seeded_install_path_no_default_save[BG3-installDirPath-/steam/bg3]",
+ "reasons": [
+ {
+ "detail": "empty executable run failed as expected with returncode=1",
+ "id": "dummy_pass",
+ "message": "test passed against the empty executable",
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
+ "severity": "error",
+ "stage": "dummy_execution"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lampio_installdirs.test_seeded_install_path_no_default_save[C77-installPath-/gog/c77]",
+ "reasons": [
+ {
+ "detail": "empty executable run failed as expected with returncode=1",
+ "id": "dummy_pass",
+ "message": "test passed against the empty executable",
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
+ "severity": "error",
+ "stage": "dummy_execution"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_integration.test_both_games_load_their_own_modlists",
+ "eval.tests.test_integration.test_custom_bit7z_library_roundtrips",
+ "eval.tests.test_integration.test_empty_bit7z_library_triggers_search",
+ "eval.tests.test_integration.test_full_startup_config_write_roundtrip",
+ "eval.tests.test_integration.test_lamp_config_and_games_blocks_coexist",
+ "eval.tests.test_integration.test_lamp_config_seeded_font_scale_found",
+ "eval.tests.test_integration.test_load_keydata_empty_value_is_found",
+ "eval.tests.test_integration.test_mod_list_absent_enabled_flag_is_false",
+ "eval.tests.test_integration.test_mod_list_numeric_enabled_flag",
+ "eval.tests.test_integration.test_preconfigured_conf_no_double_game_nodes",
+ "eval.tests.test_integration.test_render_loop_welcome_and_log_file",
+ "eval.tests.test_integration.test_save_keydata_distinct_profile_value_persisted",
+ "eval.tests.test_lampio_edges.test_load_modlist_absent_archive_and_modtype",
+ "eval.tests.test_lampio_edges.test_load_modlist_absent_modtype_defaults_zero",
+ "eval.tests.test_lampio_edges.test_load_modlist_modtype_numeric_edge_preserved[-3--3]",
+ "eval.tests.test_lampio_edges.test_load_modlist_modtype_numeric_edge_preserved[0-0]",
+ "eval.tests.test_lampio_edges.test_load_modlist_modtype_numeric_edge_preserved[5000-5000]",
+ "eval.tests.test_lampio_edges.test_load_modlist_modtype_numeric_edge_preserved[999-999]",
+ "eval.tests.test_lampio_edges.test_load_modlist_two_games_distinct_nondefault_profiles",
+ "eval.tests.test_lampio_edges.test_save_keydata_reorders_replaced_key_to_block_end",
+ "eval.tests.test_lampio_installdirs.test_all_three_install_paths_load_and_preserve",
+ "eval.tests.test_lampio_installdirs.test_malformed_conf_regenerated_fresh_at_save",
+ "eval.tests.test_lampio_installdirs.test_nondefault_current_profile_preserved_not_default_overwritten[Default-NightCity-C77-CurrentProfile-NightCity]",
+ "eval.tests.test_lampio_installdirs.test_nondefault_current_profile_preserved_not_default_overwritten[Default-Primary-BG3-CurrentProfile-Primary]",
+ "eval.tests.test_lampio_installdirs.test_seeded_font_scale_nondefault_loaded_and_preserved",
+ "eval.tests.test_lampio_installdirs.test_seeded_install_path_no_default_save[BG3-appDataPath-/appdata/bg3]",
+ "eval.tests.test_lampio_installdirs.test_seeded_install_path_no_default_save[BG3-installDirPath-/steam/bg3]",
+ "eval.tests.test_lampio_installdirs.test_seeded_install_path_no_default_save[C77-installPath-/gog/c77]",
+ "eval.tests.test_lampio_installdirs.test_seeded_nondefault_install_path_loads[BG3-appDataPath-/appdata/bg3]",
+ "eval.tests.test_lampio_installdirs.test_seeded_nondefault_install_path_loads[BG3-installDirPath-/steam/bg3]",
+ "eval.tests.test_lampio_installdirs.test_seeded_nondefault_install_path_loads[C77-installPath-/gog/c77]",
+ "eval.tests.test_lampio_installdirs.test_seeded_showintro_false_loaded",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_call_order_present_then_missing",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_empty_value_is_found",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_games_have_separate_namespaces",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_languagepath_valid_used",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_malformed_conf_file",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_bg3_currentprofile",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_c77_currentprofile",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_lamp_config_languagepath",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_variants[BG3-appDataPath]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_variants[BG3-installDirPath]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_variants[C77-installPath]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_variants[LAMP CONFIG-Colour_Text]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_missing_variants[LAMP CONFIG-Font_Scale]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_present_bg3_currentprofile",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_present_c77_currentprofile",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_present_multiple_keys_same_game",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_present_variants[BG3-CurrentProfile]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_present_variants[BG3-ProfileList]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_present_variants[C77-CurrentProfile]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_present_variants[C77-ProfileList]",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_show_intro_menu_value_found",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_string_bool_toggle",
+ "eval.tests.test_lampio_loadkeydata.test_load_keydata_value_flow_to_save",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_colour_defaults_persisted",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_config_dir_absent_fails",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_creates_fresh_conf_when_absent",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_full_colour_palette_exact",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_lamp_config_bit7zlib_saved",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_per_game_profile_isolation",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_preserves_existing_seeded_value",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_replaces_existing_key_verbatim",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_success_both_games",
+ "eval.tests.test_lampio_savekeydata.test_save_keydata_success_writes_conf",
+ "eval.tests.test_lampupdate.test_update_check_disabled_by_false_string",
+ "eval.tests.test_lampupdate.test_update_check_disabled_by_zero",
+ "eval.tests.test_lampupdate.test_update_check_enabled_when_key_absent",
+ "eval.tests.test_lampupdate.test_update_check_toggle_reread_after_colours",
+ "eval.tests.test_lampupdate.test_update_version_banner_default",
+ "eval.tests.test_lampupdate.test_update_version_banner_position_before_games",
+ "eval.tests.test_lampupdate.test_update_version_reads_lamp_config_previous_game",
+ "eval.tests.test_lampupdate.test_update_version_with_seeded_previous_game",
+ "eval.tests.test_loadmodlist.test_load_modlist_bg3_seeded_c77_absent",
+ "eval.tests.test_loadmodlist.test_load_modlist_c77_missing_lists_error",
+ "eval.tests.test_loadmodlist.test_load_modlist_c77_nondefault_current_profile",
+ "eval.tests.test_loadmodlist.test_load_modlist_empty_archive_path",
+ "eval.tests.test_loadmodlist.test_load_modlist_empty_profile_no_mods",
+ "eval.tests.test_loadmodlist.test_load_modlist_enabled_string_variants[FALSE-0]",
+ "eval.tests.test_loadmodlist.test_load_modlist_enabled_string_variants[True-1]",
+ "eval.tests.test_loadmodlist.test_load_modlist_enabled_string_variants[no-0]",
+ "eval.tests.test_loadmodlist.test_load_modlist_enabled_string_variants[off-0]",
+ "eval.tests.test_loadmodlist.test_load_modlist_enabled_string_variants[on-0]",
+ "eval.tests.test_loadmodlist.test_load_modlist_enabled_string_variants[yes-1]",
+ "eval.tests.test_loadmodlist.test_load_modlist_file_missing",
+ "eval.tests.test_loadmodlist.test_load_modlist_malformed_xml",
+ "eval.tests.test_loadmodlist.test_load_modlist_many_mods_order_preserved",
+ "eval.tests.test_loadmodlist.test_load_modlist_matching_profile_prints_name",
+ "eval.tests.test_loadmodlist.test_load_modlist_mismatched_profile_prints_empty",
+ "eval.tests.test_loadmodlist.test_load_modlist_multiple_profiles_only_default_loaded",
+ "eval.tests.test_loadmodlist.test_load_modlist_no_profile_node_prints_empty_no_error",
+ "eval.tests.test_loadmodlist.test_load_modlist_nondefault_current_profile_matching",
+ "eval.tests.test_loadmodlist.test_load_modlist_nondefault_current_profile_mismatch",
+ "eval.tests.test_loadmodlist.test_load_modlist_profile_not_present_empty",
+ "eval.tests.test_loadmodlist.test_load_modlist_single_disabled_mod",
+ "eval.tests.test_loadmodlist.test_load_modlist_single_enabled_mod",
+ "eval.tests.test_loadmodlist.test_load_modlist_time_of_update_unknown_tolerated",
+ "eval.tests.test_loadmodlist.test_load_modlist_time_of_update_variants",
+ "eval.tests.test_loadmodlist.test_load_modlist_with_separator_mod_type",
+ "eval.tests.test_loadmodlist.test_load_modlist_zero_mod_type",
+ "eval.tests.test_startup_golden.test_startup_colour_saves_match_golden"
+ ]
+ },
+ "generated_module_05": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_lamp_menu_boot_branches.test_bit7z_path_preseeded_existing_also_skips_search",
+ "eval.tests.test_lamp_menu_boot_branches.test_bit7z_path_preseeded_skips_search_and_is_kept",
+ "eval.tests.test_lamp_menu_boot_branches.test_check_updates_literal_false_keeps_boot_offline",
+ "eval.tests.test_lamp_menu_boot_branches.test_previous_game_negative_index_segfaults",
+ "eval.tests.test_lamp_menu_boot_branches.test_previous_game_non_integer_aborts_via_invalid_argument",
+ "eval.tests.test_lamp_menu_headless.test_absent_language_falls_back_to_english_uk",
+ "eval.tests.test_lamp_menu_headless.test_base_directories_created_on_startup",
+ "eval.tests.test_lamp_menu_headless.test_bit7z_library_location_saved_to_conf_mdf",
+ "eval.tests.test_lamp_menu_headless.test_check_updates_disabled_skips_network",
+ "eval.tests.test_lamp_menu_headless.test_click_gated_profile_create_not_triggered",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_Button-590202-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_ButtonAlt-1a994d-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_HeadHover-4296f9-cc]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_HeadPressed-590202-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_Hover-a61103-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_InputBG-260101-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_MenuBar-071216-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_MenuItems-4296f9-4f]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_Pressed-260101-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_SearchHighlight-1966bf-c6]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_Separator-4296f9-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_SeparatorHover-a61103-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_Text-ffffff-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_ToolTipAndTypes-141414-ff]",
+ "eval.tests.test_lamp_menu_headless.test_colour_default_written_to_conf_mdf_on_virgin_boot[Colour_WindowBackground-0a0d12-ff]",
+ "eval.tests.test_lamp_menu_headless.test_custom_language_loaded_via_languagepath",
+ "eval.tests.test_lamp_menu_headless.test_custom_per_game_config_key_is_preserved",
+ "eval.tests.test_lamp_menu_headless.test_default_startup_log_matches_golden",
+ "eval.tests.test_lamp_menu_headless.test_game_current_profile_default_saved",
+ "eval.tests.test_lamp_menu_headless.test_game_profile_default_saved_to_config_and_log[CurrentProfile-[LAMP:LOG:0] Saving BG3:CurrentProfile:Default-BG3-Baldur's Gate 3]",
+ "eval.tests.test_lamp_menu_headless.test_game_profile_default_saved_to_config_and_log[CurrentProfile-[LAMP:LOG:0] Saving BG3:CurrentProfile:Default-C77-Cyberpunk 2077]",
+ "eval.tests.test_lamp_menu_headless.test_game_profile_default_saved_to_config_and_log[ProfileList-[LAMP:LOG:0] Saving BG3:ProfileList:Default-BG3-Baldur's Gate 3]",
+ "eval.tests.test_lamp_menu_headless.test_game_profile_default_saved_to_config_and_log[ProfileList-[LAMP:LOG:0] Saving BG3:ProfileList:Default-C77-Cyberpunk 2077]",
+ "eval.tests.test_lamp_menu_headless.test_intro_menu_path_with_show_intro_enabled",
+ "eval.tests.test_lamp_menu_headless.test_lamp_log_is_normalized_subset_of_console",
+ "eval.tests.test_lamp_menu_headless.test_lamp_log_written_to_working_directory",
+ "eval.tests.test_lamp_menu_headless.test_language_file_generated_when_absent",
+ "eval.tests.test_lamp_menu_headless.test_last_valid_previous_game_index_reaches_menu",
+ "eval.tests.test_lamp_menu_headless.test_missing_modlist_reports_could_not_load",
+ "eval.tests.test_lamp_menu_headless.test_mod_menu_path_with_show_intro_disabled",
+ "eval.tests.test_lamp_menu_headless.test_non_integer_font_scale_aborts_boot",
+ "eval.tests.test_lamp_menu_headless.test_out_of_range_previous_game_index_segfaults",
+ "eval.tests.test_lamp_menu_headless.test_per_game_deployment_and_archive_dirs_created[BG3-Baldur's Gate 3]",
+ "eval.tests.test_lamp_menu_headless.test_per_game_deployment_and_archive_dirs_created[C77-Cyberpunk 2077]",
+ "eval.tests.test_lamp_menu_headless.test_previous_game_index_loaded_cleanly",
+ "eval.tests.test_lamp_menu_headless.test_render_loop_reached_and_clean_exit",
+ "eval.tests.test_lamp_menu_headless.test_seeded_colour_is_preserved_not_overwritten",
+ "eval.tests.test_lamp_menu_headless.test_seeded_font_scale_is_loaded_not_flagged_missing",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_ButtonAlt-1a994d-01]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_HeadHover-4296f9-33]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_HeadPressed-590202-01]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_Hover-a61103-7f]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_InputBG-260101-ab]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_MenuItems-4296f9-11]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_Pressed-260101-cc]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_Separator-4296f9-22]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_SeparatorHover-a61103-44]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_remaining_palette_colours_preserved_not_overwritten[Colour_ToolTipAndTypes-141414-ab]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_secondary_colour_is_preserved_not_overwritten[Colour_Button-112233-ff]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_secondary_colour_is_preserved_not_overwritten[Colour_MenuBar-445566-ff]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_secondary_colour_is_preserved_not_overwritten[Colour_SearchHighlight-1966bf-ee]",
+ "eval.tests.test_lamp_menu_headless.test_seeded_secondary_colour_is_preserved_not_overwritten[Colour_WindowBackground-010203-ff]",
+ "eval.tests.test_lamp_menu_headless.test_show_intro_gate_loaded_from_config_exact_line",
+ "eval.tests.test_lamp_menu_headless.test_show_intro_toggle_does_not_change_startup_gate",
+ "eval.tests.test_lamp_menu_headless.test_show_intro_unset_defaults_to_enabled",
+ "eval.tests.test_lamp_menu_headless.test_startup_banner_and_version_present",
+ "eval.tests.test_lamp_menu_headless.test_successive_runs_are_independent",
+ "eval.tests.test_lamp_menu_headless.test_switch_prologue_lines_present_in_order",
+ "eval.tests.test_lamp_menu_headless.test_xdg_without_explicit_home_defaults_to_local_share",
+ "eval.tests.test_lamp_menu_language_bootstrap.test_language_path_malformed_file_reports_no_name_and_falls_back",
+ "eval.tests.test_lamp_menu_language_bootstrap.test_language_path_nonexistent_file_reports_exact_path",
+ "eval.tests.test_lamp_menu_language_bootstrap.test_malformed_language_does_not_reach_generated_file_unexpectedly",
+ "eval.tests.test_lamp_menu_video_failures.test_forced_bogus_video_driver_reports_unavailable",
+ "eval.tests.test_lamp_menu_video_failures.test_renderer_creation_failure_exits_cleanly_without_menu",
+ "eval.tests.test_lamp_menu_video_failures.test_renderer_failure_stdout_has_no_startup_log",
+ "eval.tests.test_lamp_menu_video_failures.test_sdl_video_init_failure_reports_error_to_stdout"
+ ]
+ },
+ "generated_module_06": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_lang_build_more_variants.test_bom_declaration_doctype_combined_prefix_loads",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_lang_build_more_variants.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lang_build_more_variants.test_comment_only_language_file_reports_no_name",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_lang_build_more_variants.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lang_build_more_variants.test_crlf_language_file_preserved_exactly",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_lang_build_more_variants.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lang_build_more_variants.test_doctype_prefix_language_loads_and_is_preserved",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_lang_build_more_variants.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lang_build_more_variants.test_leading_pi_whitespace_before_root_is_tolerated",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_lang_build_more_variants.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lang_build_more_variants.test_utf8_bom_language_loads_and_is_preserved",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_lang_build_more_variants.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_lang_build_more_variants.test_whitespace_only_language_file_reports_no_name",
+ "reasons": [
+ {
+ "id": "no_assertions",
+ "message": "pytest test contains no assert statements",
+ "path": "eval/tests/test_lang_build_more_variants.py",
+ "repair_hint": "Add concrete assert statements over observable executable behavior.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_lang_build_more_variants.test_bom_declaration_doctype_combined_prefix_loads",
+ "eval.tests.test_lang_build_more_variants.test_comment_only_language_file_reports_no_name",
+ "eval.tests.test_lang_build_more_variants.test_crlf_language_file_preserved_exactly",
+ "eval.tests.test_lang_build_more_variants.test_doctype_prefix_language_loads_and_is_preserved",
+ "eval.tests.test_lang_build_more_variants.test_leading_pi_whitespace_before_root_is_tolerated",
+ "eval.tests.test_lang_build_more_variants.test_utf8_bom_language_loads_and_is_preserved",
+ "eval.tests.test_lang_build_more_variants.test_whitespace_only_language_file_reports_no_name",
+ "eval.tests.test_lang_build_paths.test_broken_symlink_language_reports_file_not_found",
+ "eval.tests.test_lang_build_paths.test_empty_langnode_list_is_accepted",
+ "eval.tests.test_lang_build_paths.test_empty_language_path_logs_file_not_found",
+ "eval.tests.test_lang_build_paths.test_empty_value_langnode_is_preserved_exactly",
+ "eval.tests.test_lang_build_paths.test_lang_many_langnodes_preserved",
+ "eval.tests.test_lang_build_paths.test_lang_node_utf8_unicode_value_preserved",
+ "eval.tests.test_lang_build_paths.test_lang_node_xml_entities_preserved_exactly",
+ "eval.tests.test_lang_build_paths.test_language_path_directory_reports_no_name",
+ "eval.tests.test_lang_build_paths.test_language_path_non_xml_garbage_reports_no_name",
+ "eval.tests.test_lang_build_paths.test_missing_language_file_logs_full_path",
+ "eval.tests.test_lang_build_paths.test_missing_language_file_triggers_fallback",
+ "eval.tests.test_lang_build_paths.test_missing_language_path_with_trailing_slash_reports_exact_path",
+ "eval.tests.test_lang_build_paths.test_multiline_langnode_value_survives_exactly",
+ "eval.tests.test_lang_build_paths.test_no_lampraylang_element_reports_no_name",
+ "eval.tests.test_lang_build_paths.test_no_lampraylang_triggers_fallback",
+ "eval.tests.test_lang_build_paths.test_no_name_attr_language_still_loads",
+ "eval.tests.test_lang_build_paths.test_truncated_name_only_root_still_loads",
+ "eval.tests.test_lang_build_paths.test_valid_custom_language_keys_loaded",
+ "eval.tests.test_lang_build_paths.test_valid_language_loads_but_does_not_rebuild_english",
+ "eval.tests.test_lang_build_paths.test_valid_language_loads_with_no_fallback[empty-langnodes]",
+ "eval.tests.test_lang_build_paths.test_valid_language_loads_with_no_fallback[multiline]",
+ "eval.tests.test_lang_build_paths.test_valid_language_loads_with_no_fallback[no-name-attr]",
+ "eval.tests.test_lang_build_paths.test_valid_language_loads_with_no_fallback[valid]",
+ "eval.tests.test_lang_build_paths.test_valid_named_language_preserved_on_disk",
+ "eval.tests.test_lang_build_paths.test_valid_symlink_language_loads",
+ "eval.tests.test_lang_build_variants.test_lampraylang_as_later_top_level_sibling_loads",
+ "eval.tests.test_lang_build_variants.test_lampraylang_nested_inside_other_root_reports_no_name",
+ "eval.tests.test_lang_build_variants.test_langnode_cdata_value_preserved_exactly",
+ "eval.tests.test_lang_build_variants.test_relative_language_path_resolves_from_working_directory",
+ "eval.tests.test_lang_build_variants.test_self_closing_lampraylang_root_loads",
+ "eval.tests.test_lang_build_variants.test_single_quoted_attributes_load_and_preserve",
+ "eval.tests.test_lang_build_variants.test_valid_language_in_non_xml_extension_loads",
+ "eval.tests.test_lang_build_variants.test_zero_byte_language_file_reports_no_name",
+ "eval.tests.test_lang_default_creation.test_default_language_file_has_single_root_element",
+ "eval.tests.test_lang_default_creation.test_default_language_has_english_uk_name",
+ "eval.tests.test_lang_default_creation.test_default_language_has_sixty_exact_lang_nodes",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_ABT-About]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_ABT1-Created by]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_AKNOWL-I have read and understood the text above.]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_CHECK-Checks]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_CUSTOM-Customise Lampray]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_CUSTOM_COLOUR-Colours]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_CUSTOM_FONT-Font Size]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_CUSTOM_LANG-Language]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_CUSTOM_SV-Save]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_DEPLOY-Deploy]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_DRAGANDDROP-Drag archives onto this window to start adding mods to your game!]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_ERROR_7Z-Failed to find 7z.so! Many actions, such as deployment, will not function correctly. See the wiki for more information.]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_GAMECONFIG-Game Configuration]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_GAMEPICK-Game Selection]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_GOBACK-Back]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_LICENSE-\\nThis is free and unencumbered software released into the public domain.\\n\\n\\nAnyone is free to copy, modify, publish, use, compile, sell, or\\ndistribute this software, either in source code form or as a compiled\\nbinary, for any purpose, commercial or non-commercial, and by any\\nmeans.\\n\\n\\nIn jurisdictions that recognize copyright laws, the author or authors\\nof this software dedicate any and all copyright interest in the\\nsoftware to the public domain. We make this dedication for the benefit\\nof the public at large and to the detriment of our heirs and\\nsuccessors. We intend this dedication to be an overt act of\\nrelinquishment in perpetuity of all present and future rights to this\\nsoftware under copyright law.\\n\\n\\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\\nOTHER DEALINGS IN THE SOFTWARE.\\n\\n\\nFor more information, please refer to ]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_LONGNAME-Linux Application Modding Platform]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_COLL-Collapse]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_CONFRIMDEL-Confirm Deletion]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_CREATE_SEP-Create Separator]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_DELETE-Delete]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_DISABLE-Disabled]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_DOWN-Down]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_ENABLE-Enabled]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_EXPND-Expand]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_MV_BTTM-Move to Bottom]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_MV_TOP-Move to Top]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_REMOVE_MOD-Remove Mod]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_REMOVE_SEP-Remove]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_RENAME-Rename Separator]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_SEARCH-Type here to search your mods...]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_TITLE_ENABLED-Enabled]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_TITLE_LASTUPDATE-Last Updated]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_TITLE_MODNAME-Mod Name]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_TITLE_MODTYPE-Mod Type]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_TITLE_ORDER-Load Order]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_TITLE_REMOVEMOD-Remove Mod]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_UP-Up]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_WARN-Only disabled mods can be removed.]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_WARN_FINAL-?\\n\\nThis action cannot be undone.]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_MODLIST_WARN_SURE-Are you sure you want to delete: ]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFCRE-Create New Profile]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFCRES-Create]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFDEL-Delete Profile]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFEXP-Export Profile]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFFRM-Copy From]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFIMP-Import Profile]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFLOAD-Load Profile]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFNM-New Profile Name]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFNON-None]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_PROFSELECT-Profile Selection]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_QUIT-Quit]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_RESET-Reset]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_SELECT_PATH-Select Path]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_START-Start]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_STARTTEXT-Start Deployment?]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_UPDATE_CHECK-Check for Updates]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_UPDATE_RULES-Update Rules]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_UPDATE_RULES1-Check for updates at startup]",
+ "eval.tests.test_lang_default_creation.test_default_language_key_values_exact[LAMPRAY_WARN_GAME_PATH- directories are not set. Deployment will not work until you have set them in the Game Configuration menu.]",
+ "eval.tests.test_lang_default_creation.test_default_license_value_is_exact",
+ "eval.tests.test_lang_default_creation.test_default_manifest_matches_golden_reference",
+ "eval.tests.test_lang_default_creation.test_default_manifest_reloads_and_reports_loaded",
+ "eval.tests.test_lang_default_creation.test_default_run_creates_english_uk_manifest",
+ "eval.tests.test_lang_default_creation.test_default_run_creates_language_directory",
+ "eval.tests.test_lang_default_creation.test_default_run_does_not_write_languagepath_into_config",
+ "eval.tests.test_lang_default_creation.test_default_run_logs_file_not_found_then_loaded",
+ "eval.tests.test_lang_default_creation.test_default_run_logs_loading_language_path_key",
+ "eval.tests.test_lang_default_creation.test_two_isolated_homes_produce_byte_identical_default",
+ "eval.tests.test_lang_default_creation.test_xdg_home_layout_written_by_default",
+ "eval.tests.test_lang_isolation.test_config_game_node_must_be_lamp_config",
+ "eval.tests.test_lang_isolation.test_env_builder_runs_headless_against_real_executable",
+ "eval.tests.test_lang_isolation.test_home_without_xdg_env_writes_into_isolated_home",
+ "eval.tests.test_lang_isolation.test_repeated_same_home_is_stable",
+ "eval.tests.test_lang_isolation.test_truncated_lampraylang_root_still_loads",
+ "eval.tests.test_lang_isolation.test_two_fresh_homes_are_independent",
+ "eval.tests.test_lang_isolation.test_valid_language_does_not_create_config_languagepath_key"
+ ]
+ }
+ },
+ "commit": "29d92967452f4634b03273fbc457c9a307e94ebf",
+ "data_source": "synthetic_programgym",
+ "difficulty": "medium",
+ "difficulty_score": 3.6677890507903115,
+ "eval_clean_hashes": [
+ "0fa6dc08286c1f2655db2f5c4816aaedf0652e6f47f2bd3462576ed809bb27ba"
+ ],
+ "input_record": {
+ "commit": "29d92967452f4634b03273fbc457c9a307e94ebf",
+ "difficulty": "medium",
+ "difficulty_code_lines": 116340,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 116340,
+ "difficulty_runtime_deps": 3,
+ "difficulty_score": 3.6677890507903115,
+ "difficulty_test_code_lines": 0,
+ "full_name": "CHollingworth/Lampray",
+ "input_joern_zip": "cpp_joern/CHollingworth__Lampray.zip",
+ "joern_status": true,
+ "joern_time": 26.403606071136892,
+ "language": "cpp",
+ "pb_match": [
+ {
+ "pb_fullname": "gromacs/gromacs",
+ "rank": 429,
+ "similarity": 0.48522302508354187
+ },
+ {
+ "pb_fullname": "ip7z/7zip",
+ "rank": 717,
+ "similarity": 0.3830743432044983
+ },
+ {
+ "pb_fullname": "ArthurSonzogni/json-tui",
+ "rank": 787,
+ "similarity": 0.4504086971282959
+ },
+ {
+ "pb_fullname": "ninja-build/ninja",
+ "rank": 301,
+ "similarity": 0.46125560998916626
+ },
+ {
+ "pb_fullname": "tstack/lnav",
+ "rank": 701,
+ "similarity": 0.43427538871765137
+ },
+ {
+ "pb_fullname": "NikolaDucak/caps-log",
+ "rank": 721,
+ "similarity": 0.39256298542022705
+ }
+ ],
+ "repo_path": "cpp/CHollingworth__Lampray",
+ "source": "commit:29d92967452f4634b03273fbc457c9a307e94ebf",
+ "status": "done",
+ "url": "https://github.com/CHollingworth/Lampray"
+ },
+ "instance_id": "CHollingworth__Lampray.29d9296",
+ "language": "cpp",
+ "module_iterations": [
+ {
+ "actual_iterations": 6,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 15,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 6,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 15,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 6,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 15,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 6,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 15,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 7,
+ "branch_name": "generated_module_05",
+ "iteration_limit": 15,
+ "module_index": 5,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_06",
+ "iteration_limit": 15,
+ "module_index": 6,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ }
+ ],
+ "repository": "CHollingworth/Lampray"
+}
diff --git a/chollingworth--lampray.29d9296/tests/test.sh b/chollingworth--lampray.29d9296/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chollingworth--lampray.29d9296/tests/workspace.tar.gz b/chollingworth--lampray.29d9296/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4f794c638da857913236cc5dbd2909607174cb52
--- /dev/null
+++ b/chollingworth--lampray.29d9296/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c2936e1091653865761485807a62b0b96cecea4902aa2063533cd2f06d12e61
+size 3016
diff --git a/chop-dbhi--prometheus-sql.f8b632/environment/Dockerfile b/chop-dbhi--prometheus-sql.f8b632/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..5cf965202bf3f2bdbe7faab773b15c8629800597
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/environment/Dockerfile
@@ -0,0 +1,64 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chop-dbhi--prometheus-sql.f8b632/environment/download.sh b/chop-dbhi--prometheus-sql.f8b632/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..032b7a0834aa9ae35398ab40d988d12629797620
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/environment/download.sh
@@ -0,0 +1,639 @@
+#!/usr/bin/env bash
+# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
+# Generated deterministically from repository module metadata; do not edit.
+set -u
+export GOTOOLCHAIN=auto
+mkdir -p /workspace/.programgym_build_env/go-prefetch
+cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
+module github.com/chop-dbhi/prometheus-sql/prometheus-sql/v2
+
+go 1.15
+
+require (
+ github.com/gogo/protobuf v1.3.2
+ github.com/jpillora/backoff v1.0.0
+ github.com/prometheus/client_golang v1.12.2
+ github.com/prometheus/client_model v0.2.0
+ golang.org/x/net v0.0.0-20210525063256-abc453219eb5
+ gopkg.in/tylerb/graceful.v1 v1.2.15
+ gopkg.in/yaml.v2 v2.4.0
+)
+PROGRAMGYM_GO_MOD_EOF
+cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
+cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
+cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
+cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
+cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
+cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
+cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
+cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
+cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
+cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
+cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
+cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
+cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
+cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
+cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
+cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
+cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
+cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
+cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
+cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
+cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
+cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
+cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
+cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
+cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
+cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
+cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
+cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
+cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
+cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
+dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
+github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
+github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
+github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
+github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
+github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
+github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
+github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
+github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
+github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
+github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
+github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
+github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
+github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
+github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
+github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
+github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
+github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
+github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
+github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
+github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
+github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
+github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
+github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
+github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
+github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
+github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
+github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
+github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
+github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
+github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
+github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
+github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
+github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=
+github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
+github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
+github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
+github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
+github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
+github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
+github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
+github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
+github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
+github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
+github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
+github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
+github.com/prometheus/client_golang v1.12.2 h1:51L9cDoUHVrXx4zWYlcLQIZ+d+VXHgqnYKkIuq4g/34=
+github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY=
+github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
+github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=
+github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
+github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
+github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
+github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4=
+github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls=
+github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
+github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
+github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
+github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
+github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU=
+github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
+github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
+github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
+github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
+github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
+go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
+go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
+go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
+go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
+golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
+golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
+golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
+golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
+golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
+golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
+golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
+golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
+golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
+golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
+golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
+golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
+golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
+golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
+golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
+golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
+golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20210525063256-abc453219eb5 h1:wjuX4b5yYQnEQHzd+CBcrcC6OVR2J1CN6mUy0oSxIPo=
+golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0=
+golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
+golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
+golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
+golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
+golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
+golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
+golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
+google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
+google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
+google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
+google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
+google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
+google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
+google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
+google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
+google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
+google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
+google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
+google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
+google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
+google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
+google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
+google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
+google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
+google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
+google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
+google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
+google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
+google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
+google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
+google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
+gopkg.in/tylerb/graceful.v1 v1.2.15 h1:1JmOyhKqAyX3BgTXMI84LwT6FOJ4tP2N9e2kwTCM0nQ=
+gopkg.in/tylerb/graceful.v1 v1.2.15/go.mod h1:yBhekWvR20ACXVObSSdD3u6S9DeSylanL2PAbAC/uJ8=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
+honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
+honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
+rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
+rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
+rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
+PROGRAMGYM_GO_SUM_EOF
+PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
+PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
+ *"|"*|*","*)
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
+ fi
+ ;;
+esac
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+fi
+cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
+import os
+import signal
+import subprocess
+import sys
+import time
+
+sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
+if not command:
+ raise SystemExit(125)
+environment = os.environ.copy()
+environment["GOPROXY"] = proxy
+process = subprocess.Popen(command, env=environment, start_new_session=True)
+try:
+ returncode = process.wait(timeout=float(timeout_text))
+except subprocess.TimeoutExpired:
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
+ sentinel.write("expired\n")
+ try:
+ os.killpg(process.pid, signal.SIGTERM)
+ except ProcessLookupError:
+ pass
+ deadline = time.monotonic() + float(grace_text)
+ group_alive = True
+ while time.monotonic() < deadline:
+ process.poll()
+ try:
+ os.killpg(process.pid, 0)
+ except ProcessLookupError:
+ group_alive = False
+ break
+ time.sleep(0.05)
+ if group_alive:
+ try:
+ os.killpg(process.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ process.wait()
+ raise SystemExit(124)
+if returncode < 0:
+ returncode = 128 - returncode
+raise SystemExit(returncode)
+PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
+PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if ! command -v python3 >/dev/null 2>&1; then
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+_programgym_go_with_nexus_timeout() {
+ local programgym_go_rc
+ local programgym_go_timeout_sentinel
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
+ return 1
+ fi
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
+ programgym_go_rc=0
+ else
+ programgym_go_rc=$?
+ fi
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
+ rm -f "$programgym_go_timeout_sentinel"
+ return "$programgym_go_rc"
+ fi
+ rm -f "$programgym_go_timeout_sentinel"
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
+ return "$programgym_go_rc"
+ fi
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
+}
+PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
+if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+else
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
+fi
+export PATH="$GOROOT/bin:$PATH"
+export GOTOOLCHAIN=local
+if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+unset -f _programgym_go_with_nexus_timeout
+unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
+unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
+unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
diff --git a/chop-dbhi--prometheus-sql.f8b632/environment/executable b/chop-dbhi--prometheus-sql.f8b632/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..aa5cccf13b9968a9b8a63f93237261699aba44e0
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a9c34e2df53d9abb5720c1a46eafe04ad34b3d464c78b95e64f70b7005127d8
+size 15632118
diff --git a/chop-dbhi--prometheus-sql.f8b632/environment/harbor_prepare_download_env.sh b/chop-dbhi--prometheus-sql.f8b632/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chop-dbhi--prometheus-sql.f8b632/environment/programgym-go.tar.gz b/chop-dbhi--prometheus-sql.f8b632/environment/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/environment/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/chop-dbhi--prometheus-sql.f8b632/environment/workspace.tar.gz b/chop-dbhi--prometheus-sql.f8b632/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..28212cc9a62d5dd00b97cf9499ab64ffc9cf836e
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9eac209ae5e6aa6d27f39ab135d4ffcaeae54d4d78b12219cee3ef4c4facdc3c
+size 3548
diff --git a/chop-dbhi--prometheus-sql.f8b632/instruction.md b/chop-dbhi--prometheus-sql.f8b632/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chop-dbhi--prometheus-sql.f8b632/solution/solve.sh b/chop-dbhi--prometheus-sql.f8b632/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chop-dbhi--prometheus-sql.f8b632/task.toml b/chop-dbhi--prometheus-sql.f8b632/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..3508e7da53407f507f9f19bca1cd22384242c96a
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chop-dbhi--prometheus-sql.f8b632"
+description = "Synthetic ProgramGym cleanroom reconstruction task for chop-dbhi/prometheus-sql"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "chop-dbhi__prometheus-sql.f8b632e"
+repository = "chop-dbhi/prometheus-sql"
+commit = "f8b632ea5d982e82cf02153b0500d5ecb85f02f1"
+language = "go"
+difficulty = "easy"
+difficulty_score = 1.7610252517113727
+test_branches = 4
+test_count = 139
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/Dockerfile b/chop-dbhi--prometheus-sql.f8b632/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..18982f72e90272de65d43f035f12bce826cee126
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/Dockerfile
@@ -0,0 +1,73 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --break-system-packages \
+ --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_01.tar.gz b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..bbe922c2caaecf3950b1e2c64479181fd49a4123
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1af1e265375824eaf4860884fd53201df197e15c2f82a05fd6132191311bd578
+size 9551
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_02.tar.gz b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..2a5d503c92d912bfdd7a95e6d316bdb1a5efcb4a
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:224359b4f56812b2ba0b2579bc7fa80b9daa3c8c9dc47a755e1b721c23fcfb70
+size 6815
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_03.tar.gz b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..3ce00e7a171d65d1dba611f5d64cf26a8733dbb9
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:212fed87aa179cb0cb7af998770cc84c1489fd132b914cff4b309a864b9e63e2
+size 8587
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_04.tar.gz b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..eb95d70c79d77cb9b2889ba485b982e804647f60
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2914a77e4cac19a6dfcfa1708a0f92e3e08d42a1831bf1d89c5c76b2b9e32c4f
+size 7599
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/download.sh b/chop-dbhi--prometheus-sql.f8b632/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..032b7a0834aa9ae35398ab40d988d12629797620
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/download.sh
@@ -0,0 +1,639 @@
+#!/usr/bin/env bash
+# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
+# Generated deterministically from repository module metadata; do not edit.
+set -u
+export GOTOOLCHAIN=auto
+mkdir -p /workspace/.programgym_build_env/go-prefetch
+cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
+module github.com/chop-dbhi/prometheus-sql/prometheus-sql/v2
+
+go 1.15
+
+require (
+ github.com/gogo/protobuf v1.3.2
+ github.com/jpillora/backoff v1.0.0
+ github.com/prometheus/client_golang v1.12.2
+ github.com/prometheus/client_model v0.2.0
+ golang.org/x/net v0.0.0-20210525063256-abc453219eb5
+ gopkg.in/tylerb/graceful.v1 v1.2.15
+ gopkg.in/yaml.v2 v2.4.0
+)
+PROGRAMGYM_GO_MOD_EOF
+cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
+cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
+cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
+cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
+cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
+cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
+cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
+cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
+cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
+cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
+cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
+cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
+cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
+cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
+cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
+cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
+cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
+cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
+cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
+cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
+cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
+cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
+cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
+cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
+cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
+cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
+cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
+cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
+cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
+cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
+dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
+github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
+github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
+github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
+github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
+github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
+github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
+github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
+github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
+github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
+github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
+github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
+github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
+github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
+github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
+github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
+github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
+github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
+github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
+github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
+github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
+github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
+github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
+github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
+github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
+github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
+github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
+github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
+github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
+github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
+github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
+github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
+github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
+github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
+github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=
+github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
+github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
+github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
+github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
+github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
+github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
+github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
+github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
+github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
+github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
+github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
+github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
+github.com/prometheus/client_golang v1.12.2 h1:51L9cDoUHVrXx4zWYlcLQIZ+d+VXHgqnYKkIuq4g/34=
+github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY=
+github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
+github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=
+github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
+github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
+github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
+github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4=
+github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls=
+github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
+github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
+github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
+github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
+github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU=
+github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
+github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
+github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
+github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
+github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
+go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
+go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
+go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
+go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
+golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
+golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
+golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
+golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
+golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
+golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
+golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
+golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
+golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
+golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
+golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
+golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
+golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
+golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
+golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
+golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
+golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
+golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20210525063256-abc453219eb5 h1:wjuX4b5yYQnEQHzd+CBcrcC6OVR2J1CN6mUy0oSxIPo=
+golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0=
+golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
+golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
+golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
+golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
+golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
+golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
+golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
+google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
+google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
+google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
+google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
+google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
+google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
+google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
+google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
+google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
+google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
+google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
+google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
+google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
+google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
+google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
+google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
+google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
+google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
+google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
+google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
+google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
+google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
+google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
+google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
+google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
+google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
+google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
+google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
+gopkg.in/tylerb/graceful.v1 v1.2.15 h1:1JmOyhKqAyX3BgTXMI84LwT6FOJ4tP2N9e2kwTCM0nQ=
+gopkg.in/tylerb/graceful.v1 v1.2.15/go.mod h1:yBhekWvR20ACXVObSSdD3u6S9DeSylanL2PAbAC/uJ8=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
+honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
+honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
+rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
+rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
+rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
+PROGRAMGYM_GO_SUM_EOF
+PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
+PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
+ *"|"*|*","*)
+ PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
+ PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
+ if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
+ fi
+ ;;
+esac
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
+ PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
+fi
+cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
+import os
+import signal
+import subprocess
+import sys
+import time
+
+sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
+if not command:
+ raise SystemExit(125)
+environment = os.environ.copy()
+environment["GOPROXY"] = proxy
+process = subprocess.Popen(command, env=environment, start_new_session=True)
+try:
+ returncode = process.wait(timeout=float(timeout_text))
+except subprocess.TimeoutExpired:
+ with open(sentinel_path, "w", encoding="utf-8") as sentinel:
+ sentinel.write("expired\n")
+ try:
+ os.killpg(process.pid, signal.SIGTERM)
+ except ProcessLookupError:
+ pass
+ deadline = time.monotonic() + float(grace_text)
+ group_alive = True
+ while time.monotonic() < deadline:
+ process.poll()
+ try:
+ os.killpg(process.pid, 0)
+ except ProcessLookupError:
+ group_alive = False
+ break
+ time.sleep(0.05)
+ if group_alive:
+ try:
+ os.killpg(process.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ process.wait()
+ raise SystemExit(124)
+if returncode < 0:
+ returncode = 128 - returncode
+raise SystemExit(returncode)
+PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
+PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
+if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
+ printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if ! command -v python3 >/dev/null 2>&1; then
+ printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+_programgym_go_with_nexus_timeout() {
+ local programgym_go_rc
+ local programgym_go_timeout_sentinel
+ if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
+ return 1
+ fi
+ if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
+ programgym_go_rc=0
+ else
+ programgym_go_rc=$?
+ fi
+ if [ ! -s "$programgym_go_timeout_sentinel" ]; then
+ rm -f "$programgym_go_timeout_sentinel"
+ return "$programgym_go_rc"
+ fi
+ rm -f "$programgym_go_timeout_sentinel"
+ if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
+ printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
+ return "$programgym_go_rc"
+ fi
+ printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
+ env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
+}
+PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
+if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
+ printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
+ PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
+ mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+ cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
+ export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
+else
+ export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
+fi
+export PATH="$GOROOT/bin:$PATH"
+export GOTOOLCHAIN=local
+if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
+ printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
+ rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
+unset -f _programgym_go_with_nexus_timeout
+unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
+unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
+unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
+unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/executable b/chop-dbhi--prometheus-sql.f8b632/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..aa5cccf13b9968a9b8a63f93237261699aba44e0
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a9c34e2df53d9abb5720c1a46eafe04ad34b3d464c78b95e64f70b7005127d8
+size 15632118
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/harbor_prepare_download_env.sh b/chop-dbhi--prometheus-sql.f8b632/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/programgym-go.tar.gz b/chop-dbhi--prometheus-sql.f8b632/tests/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/programgym_evaluator.py b/chop-dbhi--prometheus-sql.f8b632/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/programgym_task.json b/chop-dbhi--prometheus-sql.f8b632/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..03f344afc2ad3121c126e0f6254bd6f5104838b1
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/programgym_task.json
@@ -0,0 +1,255 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_cli_args.test_both_queries_and_querydir_fatal",
+ "eval.tests.test_cli_args.test_config_datasource_missing_driver_fatal",
+ "eval.tests.test_cli_args.test_config_datasource_missing_properties_fatal",
+ "eval.tests.test_cli_args.test_empty_query_list_fatal",
+ "eval.tests.test_cli_args.test_empty_service_value_fatal",
+ "eval.tests.test_cli_args.test_help_h_prints_usage_and_exits_zero",
+ "eval.tests.test_cli_args.test_help_long_exits_zero",
+ "eval.tests.test_cli_args.test_invalid_config_yaml_fatal",
+ "eval.tests.test_cli_args.test_missing_config_file_fatal",
+ "eval.tests.test_cli_args.test_missing_queries_file_fatal",
+ "eval.tests.test_cli_args.test_missing_service_fatal",
+ "eval.tests.test_cli_args.test_query_invalid_duration_value_fatal",
+ "eval.tests.test_cli_args.test_query_invalid_timeout_value_fatal",
+ "eval.tests.test_cli_args.test_query_missing_driver_fatal",
+ "eval.tests.test_cli_args.test_query_missing_sql_fatal",
+ "eval.tests.test_cli_args.test_query_referencing_unknown_datasource_fatal",
+ "eval.tests.test_cli_args.test_querydir_all_bad_with_lax_fatal_no_queries",
+ "eval.tests.test_cli_args.test_querydir_bad_file_without_lax_fatal",
+ "eval.tests.test_cli_args.test_querydir_missing_dir_fatal",
+ "eval.tests.test_cli_args.test_unknown_flag_causes_parse_error",
+ "eval.tests.test_cli_args.test_unreadable_query_yaml_fatal",
+ "eval.tests.test_startup_metrics.test_basic_startup_exposes_metric_and_shuts_down_cleanly",
+ "eval.tests.test_startup_metrics.test_config_datasource_supplies_driver_and_connections",
+ "eval.tests.test_startup_metrics.test_config_defaults_apply_to_query_interval_timeout",
+ "eval.tests.test_startup_metrics.test_config_env_var_expansion",
+ "eval.tests.test_startup_metrics.test_custom_help_text_reaches_metrics_help",
+ "eval.tests.test_startup_metrics.test_datafield_with_single_row",
+ "eval.tests.test_startup_metrics.test_default_prometheus_collectors_exposed",
+ "eval.tests.test_startup_metrics.test_facet_label_values_are_lowercased",
+ "eval.tests.test_startup_metrics.test_faceted_datafield_creates_labeled_metrics",
+ "eval.tests.test_startup_metrics.test_float_value_is_exposed",
+ "eval.tests.test_startup_metrics.test_host_flag_binds_only_on_loopback",
+ "eval.tests.test_startup_metrics.test_listening_log_line_names_bind_address",
+ "eval.tests.test_startup_metrics.test_multiple_queries_each_start_a_worker",
+ "eval.tests.test_startup_metrics.test_querydir_bad_file_with_lax_keeps_running",
+ "eval.tests.test_startup_metrics.test_querydir_ignores_non_yml_files",
+ "eval.tests.test_startup_metrics.test_querydir_loads_queries_and_exposes_metrics",
+ "eval.tests.test_startup_metrics.test_shutdown_interrupts_worker_during_backoff",
+ "eval.tests.test_startup_metrics.test_shutdown_on_sigint_is_graceful",
+ "eval.tests.test_startup_metrics.test_single_row_single_column_sets_value",
+ "eval.tests.test_startup_metrics.test_string_numeric_value_is_parsed_to_float",
+ "eval.tests.test_startup_metrics.test_submetrics_creates_one_metric_per_submetric",
+ "eval.tests.test_startup_metrics.test_unknown_http_path_returns_404",
+ "eval.tests.test_startup_metrics.test_value_on_error_applied_after_success_then_failure"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_config.test_decode_queries_invalid_yaml_errors",
+ "eval.tests.test_config.test_default_config_no_config_file_uses_newconfig_zero_baseline",
+ "eval.tests.test_config.test_default_service_argument_validation_rejects_duplicate_query_sources",
+ "eval.tests.test_config.test_help_exits_zero_with_usage",
+ "eval.tests.test_config.test_load_config_datasource_validation_errors[config_empty_props.yml-Properties are not defined for data source [mysql-test]]",
+ "eval.tests.test_config.test_load_config_datasource_validation_errors[config_missing_driver.yml-Driver is not defined for data source [mysql-test]]",
+ "eval.tests.test_config.test_load_config_datasource_validation_errors[config_missing_props.yml-Properties are not defined for data source [mysql-test]]",
+ "eval.tests.test_config.test_load_config_env_expansion_of_driver_value",
+ "eval.tests.test_config.test_load_config_invalid_yaml_errors",
+ "eval.tests.test_config.test_load_config_missing_file_errors",
+ "eval.tests.test_config.test_load_config_success_proceeds_to_query_loading[config_defaults.yml]",
+ "eval.tests.test_config.test_load_config_success_proceeds_to_query_loading[config_nodatasource.yml]",
+ "eval.tests.test_config.test_load_config_success_proceeds_to_query_loading[config_validsrc.yml]",
+ "eval.tests.test_config.test_load_queries_dir_missing_directory_errors",
+ "eval.tests.test_config.test_load_query_config_missing_file_errors",
+ "eval.tests.test_config.test_no_service_errors_with_usage",
+ "eval.tests.test_config.test_query_dir_lax_all_bad_loads_nothing",
+ "eval.tests.test_config.test_query_dir_with_only_non_yml_loads_nothing",
+ "eval.tests.test_config.test_query_loading_reaches_server_and_shuts_down_cleanly[queries_valid_no_config]",
+ "eval.tests.test_config.test_query_loading_reaches_server_and_shuts_down_cleanly[queries_valid_with_defaults_config]",
+ "eval.tests.test_config.test_query_loading_reaches_server_and_shuts_down_cleanly[query_dir_lax_good_and_bad]",
+ "eval.tests.test_config.test_query_loading_reaches_server_and_shuts_down_cleanly[query_dir_two_valid]",
+ "eval.tests.test_config.test_query_loading_reaches_server_and_shuts_down_cleanly[query_inherits_datasource_from_config]",
+ "eval.tests.test_config.test_query_loading_reaches_server_and_shuts_down_cleanly[query_submetrics_and_datafield]",
+ "eval.tests.test_config.test_validate_query_rejects_missing_driver_via_config",
+ "eval.tests.test_config.test_validate_query_rejects_missing_fields[queries_no_driver.yml-No data source or driver is specified for query [q_nodriver]]",
+ "eval.tests.test_config.test_validate_query_rejects_missing_fields[queries_no_sql.yml-SQL statement required for query [q_nosql]]"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_set_facets.test_facet_key_lowercased",
+ "eval.tests.test_set_facets.test_facet_value_lowercased",
+ "eval.tests.test_set_facets.test_faceted_multiple_rows",
+ "eval.tests.test_set_facets.test_int_data_field_value",
+ "eval.tests.test_set_facets.test_multiple_facets_per_row",
+ "eval.tests.test_set_facets.test_nil_data_field_is_nan",
+ "eval.tests.test_set_facets.test_string_data_field_value",
+ "eval.tests.test_set_facets.test_zero_rows_single_col_ok",
+ "eval.tests.test_set_stateful.test_field_disappears_triggers_unregister",
+ "eval.tests.test_set_stateful.test_value_on_error_only_when_registered",
+ "eval.tests.test_set_stateful.test_value_on_error_sets_existing_metric",
+ "eval.tests.test_set_submetrics_errors.test_boolean_value_errors",
+ "eval.tests.test_set_submetrics_errors.test_data_field_not_found_multicolumn",
+ "eval.tests.test_set_submetrics_errors.test_datafield_and_submetrics_conflict",
+ "eval.tests.test_set_submetrics_errors.test_multiple_rows_single_column",
+ "eval.tests.test_set_submetrics_errors.test_no_datafield_no_submetrics_multicolumn",
+ "eval.tests.test_set_submetrics_errors.test_non_numeric_string_value_errors",
+ "eval.tests.test_set_submetrics_errors.test_submetrics_single_suffix",
+ "eval.tests.test_set_submetrics_errors.test_submetrics_two_suffixes",
+ "eval.tests.test_set_submetrics_errors.test_submetrics_without_datafield",
+ "eval.tests.test_set_values.test_default_help_when_help_empty",
+ "eval.tests.test_set_values.test_explicit_help_is_preserved",
+ "eval.tests.test_set_values.test_metric_name_suffix_from_datafield",
+ "eval.tests.test_set_values.test_set_value_int_width_boundary",
+ "eval.tests.test_set_values.test_set_value_negative_float",
+ "eval.tests.test_set_values.test_set_value_scalar[-7-query_result_value_test -7]",
+ "eval.tests.test_set_values.test_set_value_scalar[0-query_result_value_test 0]",
+ "eval.tests.test_set_values.test_set_value_scalar[1.5-query_result_value_test 1.5]",
+ "eval.tests.test_set_values.test_set_value_scalar[1000000.0-query_result_value_test 1e+06]",
+ "eval.tests.test_set_values.test_set_value_scalar[42-query_result_value_test 42]",
+ "eval.tests.test_set_values.test_set_value_scalar[67-query_result_value_test 67]",
+ "eval.tests.test_set_values.test_set_value_scalar[None-query_result_value_test NaN]",
+ "eval.tests.test_set_values.test_single_column_single_row",
+ "eval.tests.test_set_values.test_single_column_uses_data_field_name"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_worker_fetch.test_fetch_data_field_facets_become_labels",
+ "eval.tests.test_worker_fetch.test_fetch_decodes_nil_as_nan",
+ "eval.tests.test_worker_fetch.test_fetch_decodes_numeric_types[[{\"value\": \"7.25\"}]-7.25]",
+ "eval.tests.test_worker_fetch.test_fetch_decodes_numeric_types[[{\"value\": 3.5}]-3.5]",
+ "eval.tests.test_worker_fetch.test_fetch_decodes_numeric_types[[{\"value\": 42}]-42.0]",
+ "eval.tests.test_worker_fetch.test_fetch_malformed_json_logs_error",
+ "eval.tests.test_worker_fetch.test_fetch_multiple_rows_single_col_setmetrics_error",
+ "eval.tests.test_worker_fetch.test_fetch_object_not_array_logs_error",
+ "eval.tests.test_worker_fetch.test_fetch_retries_after_500_then_recovers",
+ "eval.tests.test_worker_fetch.test_fetch_retries_after_dropped_connection",
+ "eval.tests.test_worker_fetch.test_fetch_success_exposes_gauge[mysql]",
+ "eval.tests.test_worker_fetch.test_fetch_success_exposes_gauge[oracle_sql]",
+ "eval.tests.test_worker_fetch.test_fetch_success_exposes_gauge[postgresql]",
+ "eval.tests.test_worker_fetch.test_fetch_success_exposes_gauge[sqlite3]",
+ "eval.tests.test_worker_fetch.test_fetch_success_multiple_records_one_gauge",
+ "eval.tests.test_worker_fetch.test_fetch_unhandled_value_type_logs_error",
+ "eval.tests.test_worker_fetch.test_value_on_error_empty_result_defaults",
+ "eval.tests.test_worker_fetch.test_value_on_error_on_500_defaults",
+ "eval.tests.test_worker_lifecycle.test_multi_query_workers_all_stop",
+ "eval.tests.test_worker_lifecycle.test_sigint_cancels_context_clean_exit",
+ "eval.tests.test_worker_lifecycle.test_sigterm_cancels_context_clean_exit",
+ "eval.tests.test_worker_lifecycle.test_start_fetches_immediately_before_ticker",
+ "eval.tests.test_worker_lifecycle.test_start_refetches_on_interval",
+ "eval.tests.test_worker_lifecycle.test_worker_persists_serving_metrics_after_fetch_error",
+ "eval.tests.test_worker_payload.test_all_worker_posts_have_identical_payload",
+ "eval.tests.test_worker_payload.test_payload_encodes_connection_and_params",
+ "eval.tests.test_worker_payload.test_payload_encodes_driver[custom_sql_agent]",
+ "eval.tests.test_worker_payload.test_payload_encodes_driver[mysql]",
+ "eval.tests.test_worker_payload.test_payload_encodes_driver[postgresql]",
+ "eval.tests.test_worker_payload.test_payload_encodes_driver[sqlite3]",
+ "eval.tests.test_worker_payload.test_payload_nil_params_serializes_null",
+ "eval.tests.test_worker_payload.test_payload_request_is_post",
+ "eval.tests.test_worker_payload.test_payload_sets_content_type_and_accept_headers",
+ "eval.tests.test_worker_payload.test_payload_sql_verbatim"
+ ]
+ }
+ },
+ "commit": "f8b632ea5d982e82cf02153b0500d5ecb85f02f1",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.7610252517113727,
+ "eval_clean_hashes": [
+ "3a9c34e2df53d9abb5720c1a46eafe04ad34b3d464c78b95e64f70b7005127d8"
+ ],
+ "input_record": {
+ "commit": "f8b632ea5d982e82cf02153b0500d5ecb85f02f1",
+ "commits": 99,
+ "contributors": 7,
+ "difficulty": "easy",
+ "difficulty_code_lines": 721,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 721,
+ "difficulty_runtime_deps": 7,
+ "difficulty_score": 1.7610252517113727,
+ "difficulty_test_code_lines": 492,
+ "full_name": "chop-dbhi/prometheus-sql",
+ "github_stars": 203,
+ "input_joern_zip": "go_joern/chop-dbhi__prometheus-sql.zip",
+ "joern_status": true,
+ "joern_time": 7.698574350913987,
+ "language": "go",
+ "pb_match": [
+ {
+ "pb_fullname": "rs/jplot",
+ "rank": 714,
+ "similarity": 0.4888555109500885
+ },
+ {
+ "pb_fullname": "multiprocessio/dsq",
+ "rank": 125,
+ "similarity": 0.5545616149902344
+ },
+ {
+ "pb_fullname": "noborus/trdsql",
+ "rank": 83,
+ "similarity": 0.5848605632781982
+ }
+ ],
+ "repo_age": 10.97,
+ "repo_path": "go/chop-dbhi__prometheus-sql",
+ "source": "commit:f8b632ea5d982e82cf02153b0500d5ecb85f02f1",
+ "status": "done",
+ "url": "https://github.com/chop-dbhi/prometheus-sql"
+ },
+ "instance_id": "chop-dbhi__prometheus-sql.f8b632e",
+ "language": "go",
+ "module_iterations": [
+ {
+ "actual_iterations": 3,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 2,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 3,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 1,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ }
+ ],
+ "repository": "chop-dbhi/prometheus-sql"
+}
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/test.sh b/chop-dbhi--prometheus-sql.f8b632/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chop-dbhi--prometheus-sql.f8b632/tests/workspace.tar.gz b/chop-dbhi--prometheus-sql.f8b632/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..28212cc9a62d5dd00b97cf9499ab64ffc9cf836e
--- /dev/null
+++ b/chop-dbhi--prometheus-sql.f8b632/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9eac209ae5e6aa6d27f39ab135d4ffcaeae54d4d78b12219cee3ef4c4facdc3c
+size 3548
diff --git a/chrisrx--dungeonfs.1c33fca/environment/Dockerfile b/chrisrx--dungeonfs.1c33fca/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..18c9b14a3dd87ff70c68d67e0e9cd3cb548e1b1a
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/environment/Dockerfile
@@ -0,0 +1,60 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chrisrx--dungeonfs.1c33fca/environment/download.sh b/chrisrx--dungeonfs.1c33fca/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..6ade4b09f638cbafe31db2a890727fa005e469ee
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/environment/download.sh
@@ -0,0 +1,145 @@
+#!/usr/bin/env bash
+# PROGRAMGYM download.sh for dungeonfs (Go).
+#
+# This script is SOURCED, not executed (the pipeline runs `source /source_ro/download.sh`),
+# so it must be valid in shell source mode and must be completely standalone: it MUST NOT
+# read any repository file (go.mod, go.sum, Makefile, README, etc.).
+#
+# It only prepares the Go module cache (prefetch) for the exact pinned dependency set
+# needed to build the selected target `./cmd/dungeonfs`. It performs no build or test step.
+#
+# The exact go.mod / go.sum content is embedded inline below (heredocs) and written into a
+# fixed literal directory /tmp/programgym-dungeonfs-gomod. We `cd` there and run
+# `go mod download -modfile=/tmp/programgym-dungeonfs-gomod/go.mod` using a LITERAL path
+# that the heredoc in this same script writes, so the static validator can verify the
+# manifest provenance resolves to an inline-generated file. Nothing is read from the
+# repository source tree.
+
+# Branch helper so this script can fail cleanly whether it is sourced or executed.
+_go_dl_fail() {
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+}
+
+# Fixed literal directory for the generated Go module metadata.
+GO_DL_DIR="/tmp/programgym-dungeonfs-gomod"
+
+if ! mkdir -p "${GO_DL_DIR}"; then
+ echo "download.sh: failed to create module directory ${GO_DL_DIR}" >&2
+ _go_dl_fail
+fi
+
+# Write the pinned go.mod inline at the fixed literal path. Overwrite on each run so the
+# script is idempotent. Pin versions are the era-correct (2016-2017) releases that match
+# the repository's FUSE API expectations; verified offline against go1.25.
+cat > /tmp/programgym-dungeonfs-gomod/go.mod <<'GO_MOD_EOF'
+module github.com/ChrisRx/dungeonfs
+
+go 1.25.0
+
+require (
+ bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898
+ github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
+ github.com/spf13/cobra v0.0.3
+ github.com/spf13/viper v1.0.1
+ golang.org/x/net v0.0.0-20180511174649-2491c5de3490
+ gopkg.in/yaml.v2 v2.2.2
+)
+
+require (
+ github.com/fsnotify/fsnotify v1.10.1 // indirect
+ github.com/hashicorp/hcl v1.0.0 // indirect
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
+ github.com/magiconair/properties v1.18.11 // indirect
+ github.com/mitchellh/mapstructure v1.5.0 // indirect
+ github.com/pelletier/go-toml v1.9.5 // indirect
+ github.com/spf13/afero v1.15.0 // indirect
+ github.com/spf13/cast v1.10.0 // indirect
+ github.com/spf13/jwalterweatherman v1.1.0 // indirect
+ github.com/spf13/pflag v1.0.10 // indirect
+ github.com/stretchr/testify v1.12.1 // indirect
+ golang.org/x/sys v0.47.0 // indirect
+ golang.org/x/text v0.28.0 // indirect
+)
+GO_MOD_EOF
+
+# Write the pinned go.sum inline at the fixed literal path next to the go.mod.
+cat > /tmp/programgym-dungeonfs-gomod/go.sum <<'GO_SUM_EOF'
+bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898 h1:SC+c6A1qTFstO9qmB86mPV2IpYme/2ZoEQ0hrP+wo+Q=
+bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
+github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
+github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho=
+github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
+github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
+github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
+github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
+github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 h1:iQTw/8FWTuc7uiaSepXwyf3o52HaUYcV+Tu66S3F5GA=
+github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/magiconair/properties v1.18.11 h1:j5ozYZl0zCjG7ahMDH0GWIobOvvUzT0BdAguG0ViKy0=
+github.com/magiconair/properties v1.18.11/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
+github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
+github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
+github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
+github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
+github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
+github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
+github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
+github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
+github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
+github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
+github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
+github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
+github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
+github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/spf13/viper v1.0.1 h1:PkHLMQpuZ5I2RwtH1PhsAYIsP/oHy/8DXVSXKL2dLs4=
+github.com/spf13/viper v1.0.1/go.mod h1:A8kyI5cUJhb8N+3pkfONlcEcZbueH6nhAm0Fq7SrnBM=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
+github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
+go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
+go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
+golang.org/x/net v0.0.0-20180511174649-2491c5de3490 h1:0Q0ESa4hjqMAXX5fW/YoKX7MlU1fWzl2ZNJrv7Yo3ZE=
+golang.org/x/net v0.0.0-20180511174649-2491c5de3490/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
+golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
+golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+GO_SUM_EOF
+
+# Prefetch the pinned dependency set into the shared module cache. Moving into the
+# fixed literal directory is required because Go discovers the module root from the
+# working directory. The LITERAL `-modfile=/tmp/programgym-dungeonfs-gomod/go.mod`
+# points at the inline-generated go.mod (with its sibling go.sum next to it), which the
+# static validator can confirm is written by the heredoc above. This only
+# downloads/prefetches; it does not build or test.
+if ! cd /tmp/programgym-dungeonfs-gomod; then
+ echo "download.sh: failed to cd into /tmp/programgym-dungeonfs-gomod" >&2
+ _go_dl_fail
+fi
+
+if ! go mod download -modfile=/tmp/programgym-dungeonfs-gomod/go.mod; then
+ echo "download.sh: go mod download failed" >&2
+ _go_dl_fail
+fi
+
+unset _go_dl_fail
diff --git a/chrisrx--dungeonfs.1c33fca/environment/executable b/chrisrx--dungeonfs.1c33fca/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..8e5d92387d71cd5dcc59811838b0b17e39b3848e
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:365ef1eef58521082c74c991e057776e38f7aab4aac97b85fc4a7087bb5b1a90
+size 10910601
diff --git a/chrisrx--dungeonfs.1c33fca/environment/programgym-go.tar.gz b/chrisrx--dungeonfs.1c33fca/environment/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/environment/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/chrisrx--dungeonfs.1c33fca/environment/workspace.tar.gz b/chrisrx--dungeonfs.1c33fca/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..8b8eac32c469e046854815734bd02e1f1a8424de
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3650eddb291940ebdc85f10636208e007c9141cfd110515e56065af00c9c196
+size 5493
diff --git a/chrisrx--dungeonfs.1c33fca/instruction.md b/chrisrx--dungeonfs.1c33fca/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/chrisrx--dungeonfs.1c33fca/solution/solve.sh b/chrisrx--dungeonfs.1c33fca/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/chrisrx--dungeonfs.1c33fca/task.toml b/chrisrx--dungeonfs.1c33fca/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..aad9737bad09c199d1bb4e2cd9855ab983c1ade2
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/chrisrx--dungeonfs.1c33fca"
+description = "Synthetic ProgramGym cleanroom reconstruction task for ChrisRx/dungeonfs"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "ChrisRx__dungeonfs.1c33fca"
+repository = "ChrisRx/dungeonfs"
+commit = "1c33fcaff7278f18b9ddc4d14c90024b75856256"
+language = "go"
+difficulty = "easy"
+difficulty_score = 1.2860071220794747
+test_branches = 4
+test_count = 163
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/chrisrx--dungeonfs.1c33fca/tests/Dockerfile b/chrisrx--dungeonfs.1c33fca/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..a626a06f42b7d18ca8dda5f990bed0106ab28bf5
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/Dockerfile
@@ -0,0 +1,68 @@
+FROM ubuntu:24.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV GOROOT=/usr/local/go
+ENV GOPATH=/workspace/.go
+ENV GOCACHE=/workspace/.cache/go-build
+ENV PIP_BREAK_SYSTEM_PACKAGES=1
+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
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+ENV VIRTUAL_ENV=/opt/programgym-venv
+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/*
+COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
+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
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+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"]
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# programgym-runtime-workspace-cleanup: v1
+RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_01.tar.gz b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..3ff993a02c445c3ea1d876e597d21109f9c2b076
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:668f51030c63b488fac6c1f2c1310fdc2e49f37a0c7ee7926fa38be16492a371
+size 7664
diff --git a/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_02.tar.gz b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b1ed2d4d14f6ab516ad6f722de933ab3d4606fda
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f04f86ec9be8387fedc74c0d4f2d8abf290dcf3199668a5a4df64809b1511287
+size 7643
diff --git a/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_03.tar.gz b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..08fc6e86a115369376db7647b1265e66b592305c
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf7cd2c6f22259f51a21d42ecd191b299026d6295bcfce59b3cb12b6a6e106c9
+size 7399
diff --git a/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_04.tar.gz b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..739927c2a5159872b497212801c7d6d4fbb4691f
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3e6191be0e160f50dacd99c735cf0f107e8d26549461b908af1cf8a4dbde365d
+size 12620
diff --git a/chrisrx--dungeonfs.1c33fca/tests/download.sh b/chrisrx--dungeonfs.1c33fca/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..6ade4b09f638cbafe31db2a890727fa005e469ee
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/download.sh
@@ -0,0 +1,145 @@
+#!/usr/bin/env bash
+# PROGRAMGYM download.sh for dungeonfs (Go).
+#
+# This script is SOURCED, not executed (the pipeline runs `source /source_ro/download.sh`),
+# so it must be valid in shell source mode and must be completely standalone: it MUST NOT
+# read any repository file (go.mod, go.sum, Makefile, README, etc.).
+#
+# It only prepares the Go module cache (prefetch) for the exact pinned dependency set
+# needed to build the selected target `./cmd/dungeonfs`. It performs no build or test step.
+#
+# The exact go.mod / go.sum content is embedded inline below (heredocs) and written into a
+# fixed literal directory /tmp/programgym-dungeonfs-gomod. We `cd` there and run
+# `go mod download -modfile=/tmp/programgym-dungeonfs-gomod/go.mod` using a LITERAL path
+# that the heredoc in this same script writes, so the static validator can verify the
+# manifest provenance resolves to an inline-generated file. Nothing is read from the
+# repository source tree.
+
+# Branch helper so this script can fail cleanly whether it is sourced or executed.
+_go_dl_fail() {
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+}
+
+# Fixed literal directory for the generated Go module metadata.
+GO_DL_DIR="/tmp/programgym-dungeonfs-gomod"
+
+if ! mkdir -p "${GO_DL_DIR}"; then
+ echo "download.sh: failed to create module directory ${GO_DL_DIR}" >&2
+ _go_dl_fail
+fi
+
+# Write the pinned go.mod inline at the fixed literal path. Overwrite on each run so the
+# script is idempotent. Pin versions are the era-correct (2016-2017) releases that match
+# the repository's FUSE API expectations; verified offline against go1.25.
+cat > /tmp/programgym-dungeonfs-gomod/go.mod <<'GO_MOD_EOF'
+module github.com/ChrisRx/dungeonfs
+
+go 1.25.0
+
+require (
+ bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898
+ github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
+ github.com/spf13/cobra v0.0.3
+ github.com/spf13/viper v1.0.1
+ golang.org/x/net v0.0.0-20180511174649-2491c5de3490
+ gopkg.in/yaml.v2 v2.2.2
+)
+
+require (
+ github.com/fsnotify/fsnotify v1.10.1 // indirect
+ github.com/hashicorp/hcl v1.0.0 // indirect
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
+ github.com/magiconair/properties v1.18.11 // indirect
+ github.com/mitchellh/mapstructure v1.5.0 // indirect
+ github.com/pelletier/go-toml v1.9.5 // indirect
+ github.com/spf13/afero v1.15.0 // indirect
+ github.com/spf13/cast v1.10.0 // indirect
+ github.com/spf13/jwalterweatherman v1.1.0 // indirect
+ github.com/spf13/pflag v1.0.10 // indirect
+ github.com/stretchr/testify v1.12.1 // indirect
+ golang.org/x/sys v0.47.0 // indirect
+ golang.org/x/text v0.28.0 // indirect
+)
+GO_MOD_EOF
+
+# Write the pinned go.sum inline at the fixed literal path next to the go.mod.
+cat > /tmp/programgym-dungeonfs-gomod/go.sum <<'GO_SUM_EOF'
+bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898 h1:SC+c6A1qTFstO9qmB86mPV2IpYme/2ZoEQ0hrP+wo+Q=
+bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
+github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
+github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho=
+github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
+github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
+github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
+github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
+github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 h1:iQTw/8FWTuc7uiaSepXwyf3o52HaUYcV+Tu66S3F5GA=
+github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/magiconair/properties v1.18.11 h1:j5ozYZl0zCjG7ahMDH0GWIobOvvUzT0BdAguG0ViKy0=
+github.com/magiconair/properties v1.18.11/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
+github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
+github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
+github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
+github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
+github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
+github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
+github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
+github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
+github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8=
+github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
+github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
+github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
+github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
+github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/spf13/viper v1.0.1 h1:PkHLMQpuZ5I2RwtH1PhsAYIsP/oHy/8DXVSXKL2dLs4=
+github.com/spf13/viper v1.0.1/go.mod h1:A8kyI5cUJhb8N+3pkfONlcEcZbueH6nhAm0Fq7SrnBM=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
+github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
+go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
+go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
+golang.org/x/net v0.0.0-20180511174649-2491c5de3490 h1:0Q0ESa4hjqMAXX5fW/YoKX7MlU1fWzl2ZNJrv7Yo3ZE=
+golang.org/x/net v0.0.0-20180511174649-2491c5de3490/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
+golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
+golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+GO_SUM_EOF
+
+# Prefetch the pinned dependency set into the shared module cache. Moving into the
+# fixed literal directory is required because Go discovers the module root from the
+# working directory. The LITERAL `-modfile=/tmp/programgym-dungeonfs-gomod/go.mod`
+# points at the inline-generated go.mod (with its sibling go.sum next to it), which the
+# static validator can confirm is written by the heredoc above. This only
+# downloads/prefetches; it does not build or test.
+if ! cd /tmp/programgym-dungeonfs-gomod; then
+ echo "download.sh: failed to cd into /tmp/programgym-dungeonfs-gomod" >&2
+ _go_dl_fail
+fi
+
+if ! go mod download -modfile=/tmp/programgym-dungeonfs-gomod/go.mod; then
+ echo "download.sh: go mod download failed" >&2
+ _go_dl_fail
+fi
+
+unset _go_dl_fail
diff --git a/chrisrx--dungeonfs.1c33fca/tests/executable b/chrisrx--dungeonfs.1c33fca/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..8e5d92387d71cd5dcc59811838b0b17e39b3848e
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:365ef1eef58521082c74c991e057776e38f7aab4aac97b85fc4a7087bb5b1a90
+size 10910601
diff --git a/chrisrx--dungeonfs.1c33fca/tests/programgym-go.tar.gz b/chrisrx--dungeonfs.1c33fca/tests/programgym-go.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0532cfb0397c6d86ac290d2a8c6843ef8e985e31
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/programgym-go.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
+size 59908810
diff --git a/chrisrx--dungeonfs.1c33fca/tests/programgym_evaluator.py b/chrisrx--dungeonfs.1c33fca/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/chrisrx--dungeonfs.1c33fca/tests/programgym_task.json b/chrisrx--dungeonfs.1c33fca/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..32f18ecfd1e3182b1b0ea77006944b762c3368b4
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/programgym_task.json
@@ -0,0 +1,279 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_errors.test_two_positional_mountpoint_rejected_all_commands",
+ "eval.tests.test_errors.test_unknown_flag_rejected[mount-unknown-flag]",
+ "eval.tests.test_errors.test_unknown_flag_rejected[root-unknown-flag]",
+ "eval.tests.test_errors.test_unknown_flag_rejected[unmount-unknown-flag]",
+ "eval.tests.test_errors.test_unknown_subcommand_rejected[bogus]",
+ "eval.tests.test_errors.test_unknown_subcommand_rejected[dashes]",
+ "eval.tests.test_errors.test_unknown_subcommand_rejected[frobnicate]",
+ "eval.tests.test_mount.test_mount_default_assets_missing_fails",
+ "eval.tests.test_mount.test_mount_help_output[help-mount]",
+ "eval.tests.test_mount.test_mount_help_output[mount-help]",
+ "eval.tests.test_mount.test_mount_with_missing_assets_fails",
+ "eval.tests.test_mount.test_mount_with_too_many_args_fails",
+ "eval.tests.test_mount.test_mount_without_args_fails",
+ "eval.tests.test_mount_body.test_mount_creates_missing_mountpoint",
+ "eval.tests.test_mount_body.test_mount_debug_v_enables_component_logging",
+ "eval.tests.test_mount_body.test_mount_debug_vv_enables_eval_logging",
+ "eval.tests.test_mount_body.test_mount_loaddir_yaml_error_fails",
+ "eval.tests.test_mount_body.test_mount_preserves_existing_mountpoint",
+ "eval.tests.test_root_help.test_root_executes_returning_success",
+ "eval.tests.test_root_help.test_root_help_lists_mount_and_unmount[long-help]",
+ "eval.tests.test_root_help.test_root_help_lists_mount_and_unmount[short-help]",
+ "eval.tests.test_root_help.test_root_help_shows_usage[double-dash-help]",
+ "eval.tests.test_root_help.test_root_help_shows_usage[help-subcommand]",
+ "eval.tests.test_root_help.test_root_help_shows_usage[no-args]",
+ "eval.tests.test_root_help.test_root_help_shows_usage[short-help]",
+ "eval.tests.test_unmount.test_unmount_help_output[help-unmount]",
+ "eval.tests.test_unmount.test_unmount_help_output[unmount-help]",
+ "eval.tests.test_unmount.test_unmount_with_too_many_args_fails",
+ "eval.tests.test_unmount.test_unmount_without_args_fails",
+ "eval.tests.test_unmount.test_unmount_without_pidfile_fails"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_cli_errors.TestAssetsValidation.test_asset_flag_requires_argument",
+ "eval.tests.test_cli_errors.TestAssetsValidation.test_assets_not_found[empty_string]",
+ "eval.tests.test_cli_errors.TestAssetsValidation.test_assets_not_found[nonexistent_path]",
+ "eval.tests.test_cli_errors.TestAssetsValidation.test_assets_path_is_file_rejected",
+ "eval.tests.test_cli_errors.TestAssetsValidation.test_empty_assets_dir_panics",
+ "eval.tests.test_cli_errors.TestMountArityValidation.test_need_mountpoint[no_mountpoint]",
+ "eval.tests.test_cli_errors.TestMountArityValidation.test_need_mountpoint[three_mountpoints]",
+ "eval.tests.test_cli_errors.TestMountArityValidation.test_need_mountpoint[two_mountpoints]",
+ "eval.tests.test_cli_errors.TestMountArityValidation.test_unmount_need_mountpoint",
+ "eval.tests.test_cli_errors.TestMountpointHandling.test_creates_missing_mountpoint_dir",
+ "eval.tests.test_cli_errors.TestMountpointHandling.test_fuse_mount_unavailable",
+ "eval.tests.test_cli_errors.TestMountpointHandling.test_preserves_existing_mountpoint_dir",
+ "eval.tests.test_cli_errors.TestUnmountNotRunning.test_unmount_when_not_running",
+ "eval.tests.test_cli_help.TestRootHelp.test_root_help[help_subcommand]",
+ "eval.tests.test_cli_help.TestRootHelp.test_root_help[long_help]",
+ "eval.tests.test_cli_help.TestRootHelp.test_root_help[short_help]",
+ "eval.tests.test_cli_help.TestRootHelp.test_unknown_command_rejected[bogus]",
+ "eval.tests.test_cli_help.TestRootHelp.test_unknown_command_rejected[frobnicate]",
+ "eval.tests.test_cli_help.TestRootHelp.test_unknown_root_flag_rejected",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_assets_default",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_declares_flags[assets]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_declares_flags[daemon]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_declares_flags[debug]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_declares_flags[help]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_help[help_mount]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_help[mount_long_help]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_mount_help[mount_short_help]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_unmount_help[help_unmount]",
+ "eval.tests.test_cli_help.TestSubcommandHelp.test_unmount_help[unmount_long_help]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_directory_entities[Root]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_directory_entities[door]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_directory_entities[east]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_directory_entities[empty]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_directory_entities[north]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_file_entities[<[TROLL]>]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_file_entities[README]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_file_entities[key]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_emits_file_entities[lock]",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_registers_components",
+ "eval.tests.test_fs_assets.TestDebugEntityConstruction.test_debug_root_has_inventory_and_platform_attrs",
+ "eval.tests.test_fs_assets.TestDebugVerbosity.test_debug_disabled_by_default",
+ "eval.tests.test_fs_assets.TestDebugVerbosity.test_debug_markdown_help_still_exits_zero",
+ "eval.tests.test_fs_assets.TestDebugVerbosity.test_double_debug_enables_eval_logging"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_01_cli_validation.test_help_mount_via_subcommand",
+ "eval.tests.test_01_cli_validation.test_help_subcommand_lists_commands",
+ "eval.tests.test_01_cli_validation.test_mount_assets_flag_missing_value",
+ "eval.tests.test_01_cli_validation.test_mount_help_flags",
+ "eval.tests.test_01_cli_validation.test_mount_rejects_extra_mountpoints",
+ "eval.tests.test_01_cli_validation.test_mount_requires_mountpoint",
+ "eval.tests.test_01_cli_validation.test_root_help_lists_subcommands",
+ "eval.tests.test_01_cli_validation.test_short_help_flag",
+ "eval.tests.test_01_cli_validation.test_unknown_subcommand_rejected",
+ "eval.tests.test_01_cli_validation.test_unmount_help_flag",
+ "eval.tests.test_01_cli_validation.test_unmount_rejects_extra_mountpoints",
+ "eval.tests.test_01_cli_validation.test_unmount_requires_mountpoint",
+ "eval.tests.test_02_mount_engine_construction.test_mount_demo_creates_missing_mountpoint_dir",
+ "eval.tests.test_02_mount_engine_construction.test_mount_demo_debug_reports_entity_registration",
+ "eval.tests.test_02_mount_engine_construction.test_mount_demo_double_v_reports_permitted_comparison",
+ "eval.tests.test_02_mount_engine_construction.test_mount_demo_inventory_default_attrs",
+ "eval.tests.test_02_mount_engine_construction.test_mount_demo_loads_engine_then_fails_on_fusermount",
+ "eval.tests.test_02_mount_engine_construction.test_mount_demo_seeds_starting_inventory_objects",
+ "eval.tests.test_02_mount_engine_construction.test_mount_existing_mountpoint_dir_is_kept",
+ "eval.tests.test_02_mount_engine_construction.test_mount_items_level_traverses_movement_graph",
+ "eval.tests.test_02_mount_engine_construction.test_mount_minimal_level_builds_player_inventory",
+ "eval.tests.test_02_mount_engine_construction.test_mount_props_level_evaluates_properties",
+ "eval.tests.test_02_mount_engine_construction.test_mount_relative_assets_path",
+ "eval.tests.test_03_engine_errors.test_mount_assets_not_found",
+ "eval.tests.test_03_engine_errors.test_mount_missing_key_object_panics_in_newengine"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_asset_loading.test_base_component_extension_inherits_base_attrs",
+ "eval.tests.test_asset_loading.test_boolean_literal_ident_eval",
+ "eval.tests.test_asset_loading.test_component_scalar_value_panics_parse_attrs",
+ "eval.tests.test_asset_loading.test_contains_creates_child_nodes_in_traversal",
+ "eval.tests.test_asset_loading.test_debug_v_enables_assets_logger_not_eval_logger",
+ "eval.tests.test_asset_loading.test_debug_vv_enables_eval_logger",
+ "eval.tests.test_asset_loading.test_dir_component_gets_default_attrs",
+ "eval.tests.test_asset_loading.test_empty_asset_folder_panics_loading",
+ "eval.tests.test_asset_loading.test_eval_literal_via_property_setattr",
+ "eval.tests.test_asset_loading.test_file_component_gets_default_attrs",
+ "eval.tests.test_asset_loading.test_invalid_method_selector_panics",
+ "eval.tests.test_asset_loading.test_invalid_yaml_syntax_error",
+ "eval.tests.test_asset_loading.test_logical_and_expression_eval",
+ "eval.tests.test_asset_loading.test_multiple_asset_yaml_files_combined",
+ "eval.tests.test_asset_loading.test_no_debug_uses_null_logger",
+ "eval.tests.test_asset_loading.test_property_equality_comparison_false",
+ "eval.tests.test_asset_loading.test_property_equality_comparison_true",
+ "eval.tests.test_asset_loading.test_property_string_content_eval_selector",
+ "eval.tests.test_asset_loading.test_registered_component_count_matches_yaml_keys",
+ "eval.tests.test_asset_loading.test_return_without_arguments_panics",
+ "eval.tests.test_asset_loading.test_unary_not_expression_eval",
+ "eval.tests.test_asset_loading.test_unknown_base_type_panics_missing_base",
+ "eval.tests.test_asset_loading.test_unknown_identifier_panics",
+ "eval.tests.test_asset_loading.test_unresolvable_base_component_panics",
+ "eval.tests.test_asset_loading.test_unsupported_binary_op_panics",
+ "eval.tests.test_cli_surface.test_assets_flag_short_and_long_interchangeable",
+ "eval.tests.test_cli_surface.test_mount_help_lists_local_flags",
+ "eval.tests.test_cli_surface.test_mount_missing_assets_dir_errors",
+ "eval.tests.test_cli_surface.test_mount_without_mountpoint_errors",
+ "eval.tests.test_cli_surface.test_root_help_lists_subcommands",
+ "eval.tests.test_cli_surface.test_root_help_short_flag_alias",
+ "eval.tests.test_cli_surface.test_unknown_mount_flag_rejected",
+ "eval.tests.test_cli_surface.test_unknown_root_command_rejected",
+ "eval.tests.test_eval_compare.test_compare_bool_operands_default_panic",
+ "eval.tests.test_eval_compare.test_compare_entity_operands_default_panic",
+ "eval.tests.test_eval_context.test_newcontext_both_boolean_names_collide",
+ "eval.tests.test_eval_context.test_newcontext_false_collision_clean_load",
+ "eval.tests.test_eval_context.test_newcontext_reports_true_identifier_collision",
+ "eval.tests.test_eval_context.test_plain_boolean_keys_are_not_collisions",
+ "eval.tests.test_eval_expr.test_binary_eq_right_operand_eval_error",
+ "eval.tests.test_eval_expr.test_binary_left_operand_eval_error",
+ "eval.tests.test_eval_expr.test_call_argument_eval_error",
+ "eval.tests.test_eval_expr.test_call_fun_unknown_identifier_error",
+ "eval.tests.test_eval_expr.test_call_zero_return_value_branch",
+ "eval.tests.test_eval_expr.test_char_literal_default_basiclit_panic",
+ "eval.tests.test_eval_expr.test_float_literal_default_basiclit_panic",
+ "eval.tests.test_eval_expr.test_integer_literal_property",
+ "eval.tests.test_eval_expr.test_logical_and_falsy_short_circuit",
+ "eval.tests.test_eval_expr.test_logical_and_truthy_evaluates_rhs",
+ "eval.tests.test_eval_expr.test_logical_or_falsy_evaluates_rhs",
+ "eval.tests.test_eval_expr.test_logical_or_truthy_short_circuit",
+ "eval.tests.test_eval_expr.test_paren_expression_unhandled_expr_panic",
+ "eval.tests.test_eval_expr.test_selector_base_eval_error",
+ "eval.tests.test_eval_expr.test_string_equality_compare_false",
+ "eval.tests.test_eval_expr.test_string_equality_compare_true",
+ "eval.tests.test_eval_expr.test_string_literal_property",
+ "eval.tests.test_eval_expr.test_unary_default_operator_panic",
+ "eval.tests.test_eval_expr.test_unary_not_operand_eval_error",
+ "eval.tests.test_eval_stmt.test_eval_assign_stmt_method_rhs",
+ "eval.tests.test_eval_stmt.test_eval_assign_stmt_return_variable_unhandled_type",
+ "eval.tests.test_eval_stmt.test_eval_assign_stmt_simple_clean",
+ "eval.tests.test_eval_stmt.test_eval_block_stmt_nil_return_invalid_value",
+ "eval.tests.test_eval_stmt.test_eval_if_stmt_body_eval_error",
+ "eval.tests.test_eval_stmt.test_eval_if_stmt_condition_eval_error",
+ "eval.tests.test_eval_stmt.test_eval_stmt_unhandled_for_panics"
+ ]
+ }
+ },
+ "commit": "1c33fcaff7278f18b9ddc4d14c90024b75856256",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.2860071220794747,
+ "eval_clean_hashes": [
+ "365ef1eef58521082c74c991e057776e38f7aab4aac97b85fc4a7087bb5b1a90"
+ ],
+ "input_record": {
+ "commit": "1c33fcaff7278f18b9ddc4d14c90024b75856256",
+ "commits": 14,
+ "contributors": 2,
+ "difficulty": "easy",
+ "difficulty_code_lines": 1932,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 1932,
+ "difficulty_runtime_deps": 0,
+ "difficulty_score": 1.2860071220794747,
+ "difficulty_test_code_lines": 0,
+ "full_name": "ChrisRx/dungeonfs",
+ "github_stars": 1096,
+ "input_joern_zip": "go_joern/ChrisRx__dungeonfs.zip",
+ "joern_status": true,
+ "joern_time": 7.247606466058642,
+ "language": "go",
+ "pb_match": [
+ {
+ "pb_fullname": "antonmedv/walk",
+ "rank": 694,
+ "similarity": 0.46929657459259033
+ },
+ {
+ "pb_fullname": "direnv/direnv",
+ "rank": 466,
+ "similarity": 0.42985185980796814
+ },
+ {
+ "pb_fullname": "gabotechs/dep-tree",
+ "rank": 489,
+ "similarity": 0.5189884901046753
+ }
+ ],
+ "repo_age": 9.34,
+ "repo_path": "go/ChrisRx__dungeonfs",
+ "source": "commit:1c33fcaff7278f18b9ddc4d14c90024b75856256",
+ "status": "done",
+ "url": "https://github.com/ChrisRx/dungeonfs"
+ },
+ "instance_id": "ChrisRx__dungeonfs.1c33fca",
+ "language": "go",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "ChrisRx/dungeonfs"
+}
diff --git a/chrisrx--dungeonfs.1c33fca/tests/test.sh b/chrisrx--dungeonfs.1c33fca/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/chrisrx--dungeonfs.1c33fca/tests/workspace.tar.gz b/chrisrx--dungeonfs.1c33fca/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..8b8eac32c469e046854815734bd02e1f1a8424de
--- /dev/null
+++ b/chrisrx--dungeonfs.1c33fca/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3650eddb291940ebdc85f10636208e007c9141cfd110515e56065af00c9c196
+size 5493
diff --git a/christianpanov--lwlog.707dfbc/environment/Dockerfile b/christianpanov--lwlog.707dfbc/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..736b92148dd4c993902b7d08b80956d73d9819e7
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/environment/Dockerfile
@@ -0,0 +1,57 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
+ARG GCC_VERSION=13.3.0
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/christianpanov--lwlog.707dfbc/environment/download.sh b/christianpanov--lwlog.707dfbc/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2071ecda83de91620c0a828ba2d60a39ddfdb7d2
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/environment/download.sh
@@ -0,0 +1,64 @@
+#!/usr/bin/env bash
+# ProgramGym download.sh for lwlog (C++ / CMake / static-library demo).
+#
+# This project is a header-heavy static C++ logging library with a single demo
+# executable (Sandbox/Sandbox.cpp -> lwlog_sandbox). The only build-time
+# dependencies required by the repository's top-level CMake project are:
+# - a C++17-capable compiler (g++ present in the base image),
+# - CMake (present in the base image),
+# - the C/C++ toolchain headers/archives (build-essential present),
+# - pthreads for find_package(Threads) (provided by glibc; no extra package).
+#
+# No third-party sources or archives need to be downloaded and no apt packages
+# need to be installed, so this script only verifies the toolchain is available
+# and exports the environment variable that build.sh relies on. It performs NO
+# compilation, linking, caching, or test steps.
+#
+# This file is intended to be sourced (source /source_ro/download.sh), so it
+# must be safe to run in source mode: it keeps exports in the current shell and
+# never calls exit.
+
+set -u
+
+# --- Toolchain verification (informational; no build happens here) -----------
+_need_cmd() {
+ local cmd="$1"
+ if command -v "$cmd" >/dev/null; then
+ echo "[download.sh] found required tool: $cmd -> $(command -v "$cmd")"
+ return 0
+ else
+ echo "[download.sh] FATAL: required tool '$cmd' is not available in the image." >&2
+ return 1
+ fi
+}
+
+_missing=0
+for _t in g++ cmake make; do
+ if ! _need_cmd "$_t"; then
+ _missing=1
+ fi
+done
+
+if [ "$_missing" -ne 0 ]; then
+ echo "[download.sh] FATAL: one or more required C/C++ build tools are missing." >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+
+# --- Verify threading support exists (no compilation; glibc provides this). --
+# find_package(Threads) in the repository's CMake configuration resolves to glibc
+# pthreads on this platform, so no additional apt package is required. We only
+# record the detected presence of the system libpthread archive.
+_pthread_glob=(/usr/lib/*/libpthread.so*)
+if [ -e "${_pthread_glob[0]:-}" ]; then
+ echo "[download.sh] pthread availability confirmed: ${_pthread_glob[0]}"
+else
+ echo "[download.sh] note: no libpthread.so under /usr/lib; find_package(Threads) will resolve from libc during the build stage." >&2
+fi
+
+export PROGRAMGYM_LWLOG_READY="1"
+
+echo "[download.sh] complete. No external dependencies are required; build stage may proceed offline."
diff --git a/christianpanov--lwlog.707dfbc/environment/executable b/christianpanov--lwlog.707dfbc/environment/executable
new file mode 100644
index 0000000000000000000000000000000000000000..b53aa2621e58618b5633e8beadf394af60cdab65
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/environment/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be46beb33b70e5ad5bebe96bf3bb118963a3f4f0a0eb5e812e7ec8ffb1deb1f7
+size 4060104
diff --git a/christianpanov--lwlog.707dfbc/environment/harbor_prepare_download_env.sh b/christianpanov--lwlog.707dfbc/environment/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/environment/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/christianpanov--lwlog.707dfbc/environment/programgym-gcc13.tar.gz b/christianpanov--lwlog.707dfbc/environment/programgym-gcc13.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d65584edfe74425f789a3d2095fa0f130d7ab461
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/environment/programgym-gcc13.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
+size 146620404
diff --git a/christianpanov--lwlog.707dfbc/environment/workspace.tar.gz b/christianpanov--lwlog.707dfbc/environment/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..a76a8b7ce48d0378d2ba5aee595efaad27edc12a
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/environment/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:167a2f84a342bd14e74bdc1dcfebdd7a1878e9c9850012632b5d6c4afa64c7ae
+size 18879
diff --git a/christianpanov--lwlog.707dfbc/instruction.md b/christianpanov--lwlog.707dfbc/instruction.md
new file mode 100644
index 0000000000000000000000000000000000000000..28d5b15c340df3494d7000811f8fe84ed15e19f2
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/instruction.md
@@ -0,0 +1,98 @@
+You are a helpful assistant that can interact with a computer.
+
+This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
+Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
+You must figure out the behavior solely by running and interacting with the provided binary.
+Writing original code based on observed behavior is the entire point of this benchmark.
+
+Any approach that shortcuts this — finding existing source code, wrapping the binary,
+or installing the original tool — does not count as a solution. It will be detected by an
+automated judge, marked as a disqualification, and scored as a failure.
+The trace will be posted to an online wall of shame.
+
+
+## What is not allowed
+
+### 1. Obtaining source code
+
+The only source of truth about what the executable does is the executable itself and its
+bundled documentation. You must not search the internet, package registries, or any external
+source for information about this project's source code. Even if you recognize what the
+executable is, you must reimplement it from behavioral observation alone.
+
+This includes but is not limited to:
+- Cloning or browsing the original GitHub repository, its forks, or mirrors
+- Downloading the project from package registries: `cargo install `, `go get github.com//`, `pip install `, `apt-get source `, `npm install `, etc.
+- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
+- 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/`)
+- Searching the web for the project's source code or implementation details
+
+### 2. Wrapping or reusing the original binary
+
+Your submission must be a genuine reimplementation. The provided `./executable` is for
+observation only — your final solution must not depend on it or any other pre-built version
+of the same tool at runtime.
+
+This includes but is not limited to:
+- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
+- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
+- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
+- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
+- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
+
+### 3. Binary analysis of the provided executable
+
+All information about the provided `./executable` must be obtained by interacting with it
+through its normal user interface (CLI flags, stdin/stdout, etc.).
+- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
+- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
+
+Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
+analysis tools on binaries that you produce yourself during development.
+
+## What IS allowed
+
+- Running the executable with any inputs, flags, and arguments to observe its behavior
+- Reading any documentation files bundled in the workspace
+
+
+## Task context
+
+We want to write the source code for a given executable.
+The executable is located at `./executable` in the workspace root.
+
+You also have access to the existing documentation.
+
+## Your task
+
+Implement the source code to generate an executable of exactly identical behavior as the original.
+
+No project-specific dependencies are pre-installed.
+You do NOT have access to the internet.
+**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
+Finally, commit your changes.
+
+Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
+`compile.sh` should be executable and should install any dependencies needed to compile the executable.
+If your compile.sh fails to compile on a fresh checkout, your task has failed.
+
+## Important: This is a reverse-engineering benchmark
+
+Your goal is to write original code from scratch that reproduces the executable's behavior.
+The only way to learn what the executable does is to run it and read its bundled documentation.
+
+Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
+provided binary will be detected by an automated judge, disqualified, and scored as zero.
+See the full rules in the system prompt above. Key points:
+
+- Do NOT search the internet, clone repos, or download the project from any package registry
+- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
+- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
+- You SHOULD extensively test the executable to understand its behavior before writing code.
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
+
+## Recommended Workflow
+
+1. Explore all documentation files
+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)
+3. Write the source code to implement the behavior
diff --git a/christianpanov--lwlog.707dfbc/solution/solve.sh b/christianpanov--lwlog.707dfbc/solution/solve.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9bbc241bd1280a884f27762b502ff8f4c95635b
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/solution/solve.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Oracle-only ceiling check. The reference is execute-only for normal agents;
+# because the oracle runs as the owning `agent` user it can temporarily add read
+# permission and encode the binary for Harbor's normal artifact handoff.
+set -euo pipefail
+test -f ./executable
+chmod u+r ./executable
+python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path(".programgym_oracle_reference").write_bytes(
+ base64.b64encode(Path("executable").read_bytes())
+)
+PY
+chmod u-r ./executable
+cat > compile.sh <<'EOF'
+#!/usr/bin/env bash
+set -euo pipefail
+if [ -f ./.programgym_oracle_reference ]; then
+ python3 - <<'PY'
+import base64
+from pathlib import Path
+
+Path("executable").write_bytes(
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
+)
+PY
+fi
+test -f ./executable
+chmod +x ./executable
+EOF
+chmod +x compile.sh
diff --git a/christianpanov--lwlog.707dfbc/task.toml b/christianpanov--lwlog.707dfbc/task.toml
new file mode 100644
index 0000000000000000000000000000000000000000..8e353a0ea7bb6d43d81e91d407c2c89379d6857f
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/task.toml
@@ -0,0 +1,69 @@
+schema_version = "1.3"
+source = "ProgramGym"
+artifacts = [
+ "/logs/verifier/programgym_eval.json",
+ "/logs/verifier/harbor_diagnostics.json",
+ "/logs/verifier/programgym_eval.log",
+ "/logs/verifier/reward.json",
+ "/logs/verifier/reward.txt",
+ # Keep agent/runtime state out of the submission handoff. In particular,
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
+ # makes Python's safe tar extraction reject the entire workspace archive.
+ { source = "/workspace", exclude = [
+ "executable",
+ ".git",
+ ".bashrc",
+ ".cache",
+ ".cc-switch",
+ ".claude",
+ ".local",
+ ] },
+]
+
+[task]
+name = "programgym/christianpanov--lwlog.707dfbc"
+description = "Synthetic ProgramGym cleanroom reconstruction task for ChristianPanov/lwlog"
+authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
+keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
+
+[metadata]
+source = "ProgramGym"
+instance_id = "ChristianPanov__lwlog.707dfbc"
+repository = "ChristianPanov/lwlog"
+commit = "707dfbc6b8d112ab64dd7c52ddd095554f040525"
+language = "cpp"
+difficulty = "easy"
+difficulty_score = 1.9209577059554492
+test_branches = 4
+test_count = 435
+
+[agent]
+timeout_sec = 14400
+user = "agent"
+network_mode = "allowlist"
+allowed_hosts = ["api.anthropic.com", "api.openai.com"]
+
+[verifier]
+timeout_sec = 7200
+user = "root"
+environment_mode = "separate"
+
+[verifier.env]
+PROGRAMGYM_XDIST_WORKERS = "8"
+
+[verifier.environment]
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
+
+[environment]
+network_mode = "public"
+build_timeout_sec = 1800
+cpus = 8
+memory_mb = 16384
+storage_mb = 30720
+gpus = 0
+workdir = "/workspace"
diff --git a/christianpanov--lwlog.707dfbc/tests/Dockerfile b/christianpanov--lwlog.707dfbc/tests/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..7ff3c98df93505861b0a050209ad20f385db35f4
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/Dockerfile
@@ -0,0 +1,65 @@
+FROM ubuntu:22.04
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOPROXY="https://proxy.golang.org,direct"
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_INSECURE_HOST=""
+ENV UV_INDEX_URL="https://pypi.org/simple"
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_registry="https://registry.npmjs.org/"
+ENV npm_config_strict_ssl=false
+ENV npm_config_cache=/workspace/.cache/npm
+ENV PIP_INDEX_URL="https://pypi.org/simple"
+ENV PIP_TRUSTED_HOST=""
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.10
+ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
+RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
+COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
+ARG GCC_VERSION=13.3.0
+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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor uses tests/ as the separate verifier build context. Start with the
+# same toolchain as the agent, then remove every cleanroom workspace artifact.
+RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
+ && mkdir -p /workspace /tests
+
+# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
+# Installing a newer pytest alone leaves that apt package importable and creates
+# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
+# Install and constrain the verifier test runner as one coherent pip toolchain.
+RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
+ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
+RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
+
+COPY test.sh /tests/test.sh
+COPY programgym_evaluator.py /tests/programgym_evaluator.py
+COPY programgym_task.json /tests/programgym_task.json
+COPY blobs/ /tests/blobs/
+RUN chmod +x /tests/test.sh
diff --git a/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_01.tar.gz b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_01.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..35c0b9b4e44b3a9db244b452894573445ec0bb65
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_01.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a556e22c9e07b59b18953bdb9268cad1e30581d518b4e71b9d65795d6072546
+size 7908
diff --git a/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_02.tar.gz b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_02.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..e86ebc5880c2debebaf8065c798940634561daae
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_02.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e963ce788008dc646eb353c80047387a1d77a45995a7b74ae6334b2928b01699
+size 11236
diff --git a/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_03.tar.gz b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_03.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..a56874140446e7139c1947679d83bf44ea740bad
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_03.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb94cb1c9f2c3b3d842d7689f46e799310cc8be34cfbe01fb9ef40e8fee2aebf
+size 18744
diff --git a/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_04.tar.gz b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_04.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4ed276bb4cf9f315c0ef44c144b1bb917c98805a
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/blobs/tests/generated_module_04.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c591b504ca6283bf540857555cfccca811e72942df6946de228bc58713b290d4
+size 19685
diff --git a/christianpanov--lwlog.707dfbc/tests/download.sh b/christianpanov--lwlog.707dfbc/tests/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2071ecda83de91620c0a828ba2d60a39ddfdb7d2
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/download.sh
@@ -0,0 +1,64 @@
+#!/usr/bin/env bash
+# ProgramGym download.sh for lwlog (C++ / CMake / static-library demo).
+#
+# This project is a header-heavy static C++ logging library with a single demo
+# executable (Sandbox/Sandbox.cpp -> lwlog_sandbox). The only build-time
+# dependencies required by the repository's top-level CMake project are:
+# - a C++17-capable compiler (g++ present in the base image),
+# - CMake (present in the base image),
+# - the C/C++ toolchain headers/archives (build-essential present),
+# - pthreads for find_package(Threads) (provided by glibc; no extra package).
+#
+# No third-party sources or archives need to be downloaded and no apt packages
+# need to be installed, so this script only verifies the toolchain is available
+# and exports the environment variable that build.sh relies on. It performs NO
+# compilation, linking, caching, or test steps.
+#
+# This file is intended to be sourced (source /source_ro/download.sh), so it
+# must be safe to run in source mode: it keeps exports in the current shell and
+# never calls exit.
+
+set -u
+
+# --- Toolchain verification (informational; no build happens here) -----------
+_need_cmd() {
+ local cmd="$1"
+ if command -v "$cmd" >/dev/null; then
+ echo "[download.sh] found required tool: $cmd -> $(command -v "$cmd")"
+ return 0
+ else
+ echo "[download.sh] FATAL: required tool '$cmd' is not available in the image." >&2
+ return 1
+ fi
+}
+
+_missing=0
+for _t in g++ cmake make; do
+ if ! _need_cmd "$_t"; then
+ _missing=1
+ fi
+done
+
+if [ "$_missing" -ne 0 ]; then
+ echo "[download.sh] FATAL: one or more required C/C++ build tools are missing." >&2
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+
+# --- Verify threading support exists (no compilation; glibc provides this). --
+# find_package(Threads) in the repository's CMake configuration resolves to glibc
+# pthreads on this platform, so no additional apt package is required. We only
+# record the detected presence of the system libpthread archive.
+_pthread_glob=(/usr/lib/*/libpthread.so*)
+if [ -e "${_pthread_glob[0]:-}" ]; then
+ echo "[download.sh] pthread availability confirmed: ${_pthread_glob[0]}"
+else
+ echo "[download.sh] note: no libpthread.so under /usr/lib; find_package(Threads) will resolve from libc during the build stage." >&2
+fi
+
+export PROGRAMGYM_LWLOG_READY="1"
+
+echo "[download.sh] complete. No external dependencies are required; build stage may proceed offline."
diff --git a/christianpanov--lwlog.707dfbc/tests/executable b/christianpanov--lwlog.707dfbc/tests/executable
new file mode 100644
index 0000000000000000000000000000000000000000..b53aa2621e58618b5633e8beadf394af60cdab65
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/executable
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be46beb33b70e5ad5bebe96bf3bb118963a3f4f0a0eb5e812e7ec8ffb1deb1f7
+size 4060104
diff --git a/christianpanov--lwlog.707dfbc/tests/harbor_prepare_download_env.sh b/christianpanov--lwlog.707dfbc/tests/harbor_prepare_download_env.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd2f2b8fff5fb8926261279d38518e59e407c
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/harbor_prepare_download_env.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd /workspace
+set -a
+source /workspace/download.sh
+set +a
+python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
+import os
+import shlex
+
+ignored = {
+ "ALL_PROXY",
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "NO_PROXY",
+ "OLDPWD",
+ "PIP_PROXY",
+ "PWD",
+ "SHLVL",
+ "_",
+ "all_proxy",
+ "http_proxy",
+ "https_proxy",
+ "no_proxy",
+ "pip_proxy",
+}
+for key in sorted(os.environ):
+ if key in ignored or key.startswith("BASH_FUNC_"):
+ continue
+ value = os.environ[key]
+ if "\n" in value:
+ continue
+ print(f"export {key}={shlex.quote(value)}")
+PY
diff --git a/christianpanov--lwlog.707dfbc/tests/programgym-gcc13.tar.gz b/christianpanov--lwlog.707dfbc/tests/programgym-gcc13.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d65584edfe74425f789a3d2095fa0f130d7ab461
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/programgym-gcc13.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
+size 146620404
diff --git a/christianpanov--lwlog.707dfbc/tests/programgym_evaluator.py b/christianpanov--lwlog.707dfbc/tests/programgym_evaluator.py
new file mode 100644
index 0000000000000000000000000000000000000000..541bda3a105013fbffd2e0d69261ed76b40a7992
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/programgym_evaluator.py
@@ -0,0 +1,1201 @@
+#!/usr/bin/env python3
+"""In-place ProgramGym evaluator.
+
+Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
+no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
+cleanroom container after Harbor flips the verifier-phase network policy.
+
+Differences from ``programgym.eval.eval.Evaluator`` that are structural to
+running in one container:
+
+* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
+ copy a post-compile workspace snapshot to a temp directory and restore it
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
+ processes between attempts to approximate the fresh-container boundary.
+* No ``docker commit``. The post-compile workspace snapshot serves the same
+ role as the committed image upstream.
+* Hidden test blobs are fetched on demand from HuggingFace via
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
+ rather than being pre-staged into ``/tests/blobs/``. Override with
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
+
+Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
+``compile.sh`` then stash + hash the executable, best-effort
+``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
+``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
+best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
+preserved.
+"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import os
+import re
+import shlex
+import shutil
+import signal
+import subprocess
+import tempfile
+import time
+import traceback
+import xml.etree.ElementTree as ET
+from pathlib import Path
+from typing import Any
+
+WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
+STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
+METADATA_PATH = Path(
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
+)
+LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
+WORKER_CRASH_PHRASE = "worker '"
+XDIST_COLLAPSE_MARKERS = (
+ "maximum crashed workers reached",
+ "xdist: maximum crashed",
+)
+
+DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
+DEFAULT_HF_REVISION = "main"
+
+# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
+# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
+_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
+
+_TOOLCHAIN_BIN_DIR_CANDIDATES = (
+ "/usr/local/go/bin",
+ "/go/bin",
+ "/usr/local/cargo/bin",
+ "/root/.cargo/bin",
+ "/root/.ghcup/bin",
+)
+
+
+def toolchain_bin_dirs() -> list[str]:
+ """Return toolchain bin directories that exist on this image."""
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
+ candidates.extend(
+ str(path)
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
+ if _is_accessible_dir(path)
+ )
+ seen: set[str] = set()
+ present: list[str] = []
+ for path in candidates:
+ if path in seen:
+ continue
+ seen.add(path)
+ if _is_accessible_dir(path):
+ present.append(path)
+ return present
+
+
+def _is_accessible_dir(path: str | Path) -> bool:
+ """Return whether path is a directory without failing on protected homes."""
+ try:
+ return Path(path).is_dir()
+ except OSError:
+ return False
+
+
+def bootstrap_toolchain_path() -> str:
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
+ prepend = toolchain_bin_dirs()
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
+ merged: list[str] = []
+ for path in prepend + current_parts:
+ if path not in merged:
+ merged.append(path)
+ new_path = ":".join(merged)
+ os.environ["PATH"] = new_path
+ return new_path
+
+
+def _bash_login_command(command: str) -> str:
+ """Run ``command`` under bash -lc with an explicit PATH export."""
+ path = bootstrap_toolchain_path()
+ return f"export PATH={shlex.quote(path)}; {command}"
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with path.open("rb") as f:
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def write_json(path: Path, data: dict[str, Any]) -> None:
+ tmp = path.with_suffix(path.suffix + ".tmp")
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
+ tmp.replace(path)
+
+
+def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
+ if path is None or not path.exists():
+ return ""
+ data = path.read_bytes()
+ if len(data) <= max_bytes:
+ return data.decode(errors="replace")
+ return data[-max_bytes:].decode(errors="replace")
+
+
+def _close_pipes(proc: subprocess.Popen[Any]) -> None:
+ for stream in (proc.stdout, proc.stderr):
+ if stream is not None:
+ try:
+ stream.close()
+ except OSError:
+ pass
+
+
+def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
+ try:
+ os.killpg(proc.pid, signal.SIGKILL)
+ except ProcessLookupError:
+ pass
+ try:
+ proc.kill()
+ except ProcessLookupError:
+ pass
+
+
+_PKILL_PATTERNS = (
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ "tail -f",
+ "development.log",
+ " less ",
+ " less$",
+ "/less ",
+)
+
+
+def _pkill_aggressive() -> str:
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
+ notes: list[str] = []
+ workspace = str(WORKSPACE)
+ patterns = list(_PKILL_PATTERNS) + [
+ f"pytest.*{workspace}",
+ f"xdist.*{workspace}",
+ ]
+ for pattern in patterns:
+ result = subprocess.run(
+ ["pkill", "-9", "-f", pattern],
+ capture_output=True,
+ text=True,
+ )
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
+ return "\n".join(notes)
+
+
+def run_step(
+ command: str,
+ cwd: Path,
+ *,
+ timeout: int,
+ env: dict[str, str] | None = None,
+ step: str,
+ accept_failure: bool = False,
+ log_output: bool | None = None,
+ max_output_bytes: int = 65536,
+) -> dict[str, Any]:
+ if log_output is None:
+ log_output = step == "run_tests" or timeout >= 60
+
+ started = time.monotonic()
+ stdout_path: Path | None = None
+ stderr_path: Path | None = None
+ stdout_f = None
+ stderr_f = None
+
+ if log_output:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_id = f"{step}-{int(started * 1000)}"
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
+ stdout_f = stdout_path.open("w", encoding="utf-8")
+ stderr_f = stderr_path.open("w", encoding="utf-8")
+ popen_stdout: Any = stdout_f
+ popen_stderr: Any = stderr_f
+ else:
+ popen_stdout = subprocess.PIPE
+ popen_stderr = subprocess.PIPE
+
+ proc = subprocess.Popen(
+ ["bash", "-lc", _bash_login_command(command)],
+ cwd=cwd,
+ env={**os.environ, **(env or {})},
+ stdout=popen_stdout,
+ stderr=popen_stderr,
+ start_new_session=True,
+ text=True,
+ )
+ timed_out = False
+ stdout = ""
+ stderr = ""
+ try:
+ if log_output:
+ proc.wait(timeout=timeout)
+ else:
+ stdout, stderr = proc.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+ timed_out = True
+ _terminate_process_tree(proc)
+ cleanup_lingering_processes(aggressive=True)
+ try:
+ proc.wait(timeout=5)
+ except subprocess.TimeoutExpired:
+ proc.kill()
+ if not log_output:
+ _close_pipes(proc)
+ finally:
+ if stdout_f is not None:
+ stdout_f.close()
+ if stderr_f is not None:
+ stderr_f.close()
+
+ if timed_out:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = ""
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": 124,
+ "exception_info": f"timed out after {timeout}s",
+ }
+ else:
+ if log_output:
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
+ stderr_path, max_output_bytes
+ )
+ else:
+ output = stdout + stderr
+ entry = {
+ "step": step,
+ "command": command,
+ "wall_time": time.monotonic() - started,
+ "output": output,
+ "returncode": proc.returncode,
+ "exception_info": "",
+ }
+ if entry["returncode"] and not accept_failure:
+ raise RuntimeError(
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
+ )
+ return entry
+
+
+def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
+ started = time.monotonic()
+ patterns = [
+ str(WORKSPACE / "executable"),
+ f"{WORKSPACE}/eval/",
+ f"{WORKSPACE}/tests/",
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
+ "tail -f",
+ "development.log",
+ ]
+ killed: list[int] = []
+ proc_root = Path("/proc")
+ proc_available = proc_root.exists()
+ if proc_available:
+ for proc_dir in proc_root.iterdir():
+ if not proc_dir.name.isdigit():
+ continue
+ pid = int(proc_dir.name)
+ if pid in {os.getpid(), os.getppid()}:
+ continue
+ try:
+ raw = (proc_dir / "cmdline").read_bytes()
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
+ continue
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
+ if not any(pattern in cmdline for pattern in patterns):
+ continue
+ try:
+ os.kill(pid, signal.SIGKILL)
+ except (PermissionError, ProcessLookupError):
+ continue
+ killed.append(pid)
+ pkill_output = ""
+ if aggressive or not proc_available:
+ pkill_output = _pkill_aggressive()
+ output_parts = []
+ if killed:
+ output_parts.append("\n".join(str(pid) for pid in killed))
+ if pkill_output:
+ output_parts.append(pkill_output)
+ return {
+ "step": "cleanup_lingering_processes",
+ "command": "kill leftover branch processes referencing the workspace",
+ "wall_time": time.monotonic() - started,
+ "output": "\n".join(output_parts),
+ "returncode": 0,
+ "exception_info": "",
+ }
+
+
+def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
+ import tarfile
+
+ with tarfile.open(tar_path, "r:gz") as tf:
+ try:
+ tf.extractall(dest, filter="fully_trusted")
+ except TypeError:
+ tf.extractall(dest)
+
+
+def find_results_xml() -> Path | None:
+ """Return the junit xml path if pytest wrote one."""
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
+ if candidate.exists():
+ return candidate
+ return None
+
+
+def remove_oracle_handoff_artifacts() -> list[str]:
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
+ removed: list[str] = []
+ for name in _ORACLE_HANDOFF_NAMES:
+ path = WORKSPACE / name
+ if path.exists():
+ if path.is_dir():
+ shutil.rmtree(path)
+ else:
+ path.unlink()
+ removed.append(name)
+ return removed
+
+
+def _remove_tree(path: Path) -> None:
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
+ if path.is_symlink() or path.is_file():
+ path.unlink(missing_ok=True)
+ return
+ if not path.is_dir():
+ path.unlink(missing_ok=True)
+ return
+ for attempt in range(3):
+ try:
+ shutil.rmtree(path)
+ if not path.exists():
+ return
+ except OSError:
+ if attempt == 2:
+ run_step(
+ f"rm -rf {shlex.quote(str(path))}",
+ path.parent,
+ timeout=120,
+ step="clear_workspace_fallback",
+ accept_failure=True,
+ )
+ if not path.exists():
+ return
+ raise
+
+
+def ensure_workspace_dir() -> None:
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
+ WORKSPACE.unlink()
+ else:
+ shutil.rmtree(WORKSPACE)
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
+
+
+def clear_workspace() -> None:
+ ensure_workspace_dir()
+ for path in list(WORKSPACE.iterdir()):
+ _remove_tree(path)
+
+
+def restore_reference_executable() -> None:
+ """Write the stashed reference binary into /workspace after a branch overlay.
+
+ Branch blobs may ship ``executable`` as a dangling symlink into
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
+ reference as a regular file.
+ """
+ ensure_workspace_dir()
+ if not STASHED_EXECUTABLE.is_file():
+ raise FileNotFoundError(
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
+ )
+ dest = WORKSPACE / "executable"
+ if dest.exists() or dest.is_symlink():
+ if dest.is_dir():
+ shutil.rmtree(dest)
+ else:
+ dest.unlink(missing_ok=True)
+ shutil.copy2(STASHED_EXECUTABLE, dest)
+ dest.chmod(0o755)
+
+
+def snapshot_workspace(dest: Path) -> None:
+ if dest.exists():
+ shutil.rmtree(dest)
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
+
+
+def restore_workspace(source: Path) -> None:
+ clear_workspace()
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
+ ensure_workspace_dir()
+
+
+def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
+ removed: list[str] = []
+ for path in root.rglob("*"):
+ if path.is_file() and not path.is_symlink():
+ try:
+ if sha256(path) in hashes:
+ path.unlink()
+ removed.append(str(path.relative_to(root)))
+ except OSError:
+ continue
+ return removed
+
+
+def branch_tests(branch_info: dict[str, Any]) -> list[str]:
+ ignored = {
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
+ }
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
+
+
+def ignored_tests(metadata: dict[str, Any]) -> set[str]:
+ result: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ result.update(
+ f"{branch}/{item['name']}"
+ for item in info.get("ignored_tests", [])
+ if "name" in item
+ )
+ return result
+
+
+def active_tests(metadata: dict[str, Any]) -> set[str]:
+ active: set[str] = set()
+ for branch, info in metadata.get("branches", {}).items():
+ if info.get("ignored"):
+ continue
+ ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ active.update(
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
+ )
+ return active
+
+
+def inject_not_run(
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
+) -> None:
+ result["test_results"].extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": error_code},
+ }
+ for name in tests
+ )
+
+
+def testcase_name(case: ET.Element) -> str:
+ classname = case.attrib.get("classname", "")
+ name = case.attrib.get("name", "")
+ return f"{classname}.{name}" if classname else name
+
+
+# Only these tags under represent a result. /
+# are stdout/stderr captures and must not be treated as results
+# (a leading followed by would otherwise be classified
+# as a stdout-only "passed").
+JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
+
+
+def parse_junit(
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
+) -> tuple[list[dict[str, Any]], list[str]]:
+ root = ET.fromstring(raw_xml)
+ got: set[str] = set()
+ results: list[dict[str, Any]] = []
+ for case in root.iter("testcase"):
+ name = testcase_name(case)
+ got.add(name)
+ extra: dict[str, Any] = {}
+ if "time" in case.attrib:
+ try:
+ extra["time"] = float(case.attrib["time"])
+ except ValueError:
+ extra["time"] = case.attrib["time"]
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
+ # Collapse duplicate same-tag result children. Pytest's
+ # "pytest.internal" pseudo-test sometimes emits two identical
+ # entries; treating that as a system_error would over-flag a real
+ # single failure. Mirrors upstream eval.py:816-820.
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
+ result_children = [result_children[0]]
+ if not result_children:
+ status = "passed"
+ elif len(result_children) != 1:
+ status = "system_error"
+ extra["error_details"] = (
+ f"Expected 1 result for {name}, got {len(result_children)}: "
+ f"{[c.tag for c in result_children]}"
+ )
+ else:
+ first = result_children[0]
+ status = first.tag # "skipped" | "failure" | "error"
+ extra["message"] = first.attrib.get("message") or ""
+ if first.text:
+ extra["text"] = first.text
+ results.append(
+ {"name": name, "branch": branch, "status": status, "extra": extra}
+ )
+
+ active_expected = [name for name in expected if name not in ignored]
+ missing = [name for name in active_expected if name not in got]
+ results.extend(
+ {
+ "name": name,
+ "branch": branch,
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_junit_xml"},
+ }
+ for name in missing
+ )
+ unexpected = got - set(expected) - ignored
+ warnings = (
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
+ if unexpected
+ else []
+ )
+ return results, warnings
+
+
+def count_worker_crashes(raw_xml: str) -> int:
+ if WORKER_CRASH_PHRASE not in raw_xml:
+ return 0
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ crashes = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ text = (child.get("message") or "") + " " + (child.text or "")
+ if (
+ child.tag in {"error", "failure"}
+ and WORKER_CRASH_PHRASE in text
+ and "crashed" in text
+ ):
+ crashes += 1
+ break
+ return crashes
+
+
+def run_output_indicates_xdist_collapse(output: str) -> bool:
+ lower = output.lower()
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
+
+
+def count_junit_failures(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ failures = 0
+ for case in root.iter("testcase"):
+ for child in case:
+ if child.tag in {"failure", "error"}:
+ failures += 1
+ break
+ return failures
+
+
+def count_junit_passed(raw_xml: str) -> int:
+ try:
+ root = ET.fromstring(raw_xml)
+ except ET.ParseError:
+ return 0
+ passed = 0
+ for case in root.iter("testcase"):
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
+ passed += 1
+ return passed
+
+
+def branch_attempt_metrics(
+ raw_xml: str, *, run_output: str, expected_tests: int
+) -> tuple[int, int, int, int]:
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
+ crashes = count_worker_crashes(raw_xml)
+ if run_output_indicates_xdist_collapse(run_output):
+ crashes = max(crashes, 1)
+ n_tests = count_testcases(raw_xml)
+ failures = count_junit_failures(raw_xml)
+ missing = max(0, expected_tests - n_tests)
+ return crashes, n_tests, failures, missing
+
+
+def needs_serial_retry(
+ *,
+ serial: bool,
+ crashes: int,
+ missing: int,
+ failures: int,
+ n_tests: int,
+ expected_tests: int,
+ run_output: str,
+) -> bool:
+ if serial:
+ return False
+ high_failure_rate = (
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
+ )
+ return (
+ crashes > 0
+ or missing > 0
+ or high_failure_rate
+ or run_output_indicates_xdist_collapse(run_output)
+ )
+
+
+def count_testcases(raw_xml: str) -> int:
+ try:
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
+ except ET.ParseError:
+ return 0
+
+
+def scored_results(
+ result: dict[str, Any], metadata: dict[str, Any]
+) -> list[dict[str, Any]]:
+ active = active_tests(metadata)
+ by_key = {
+ f"{test['branch']}/{test['name']}": test
+ for test in result["test_results"]
+ if f"{test['branch']}/{test['name']}" in active
+ }
+ return [
+ by_key.get(
+ key,
+ {
+ "branch": key.split("/", 1)[0],
+ "name": key.split("/", 1)[1],
+ "status": "not_run",
+ "extra": {"error_code": "missing_from_results"},
+ },
+ )
+ for key in sorted(active)
+ ]
+
+
+def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
+ # the proportion of tasks scoring a perfect pass-rate and mean of
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
+ # per-task pass-rate whose mean is the overall mean reward.
+ return {
+ "reward": pass_rate,
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
+ }
+
+
+def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
+ scored = scored_results(result, metadata)
+ n_passed = sum(t["status"] == "passed" for t in scored)
+ n_tests = len(scored)
+ pass_rate = n_passed / n_tests if n_tests else 0.0
+ return {
+ "pass_rate": pass_rate,
+ "resolved": int(
+ bool(
+ n_tests
+ and n_passed == n_tests
+ and not result["test_branch_errors"]
+ and not result["error_code"]
+ )
+ ),
+ "n_passed": n_passed,
+ "n_tests": n_tests,
+ "n_branch_errors": len(result["test_branch_errors"]),
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
+ }
+
+
+def use_script_pty() -> bool:
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
+
+
+def script_pty_available() -> bool:
+ return shutil.which("script") is not None
+
+
+def branch_env(
+ *,
+ serial: bool,
+ has_rerunfailures: bool,
+ extras: dict[str, str] | None = None,
+) -> dict[str, str]:
+ addopts = ["--max-worker-restart=4"]
+ # A serial fallback is already a complete second execution. Re-running each
+ # failing test two more times makes large, failure-heavy suites prohibitively
+ # slow and adds little signal.
+ if has_rerunfailures and not serial:
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
+ env = {
+ "PYTEST_ADDOPTS": " ".join(addopts),
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
+ "NO_COLOR": "1",
+ "TERM": "dumb",
+ "CLICOLOR": "0",
+ "CLICOLOR_FORCE": "0",
+ "COLORTERM": "",
+ }
+ if extras:
+ env.update(extras)
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
+ if serial:
+ xdist_workers = "1"
+ if xdist_workers:
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
+ return env
+
+
+_SERIAL_RUN_SH = ".programgym_run_serial.sh"
+# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
+# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
+_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
+
+
+def prepare_serial_run_sh(run_sh: Path) -> Path:
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
+ serial_sh.write_text(patched)
+ serial_sh.chmod(0o755)
+ return serial_sh
+
+
+def run_tests_command(*, serial: bool) -> str:
+ if serial:
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
+ else:
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
+ if use_script_pty() and script_pty_available():
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
+ return inner
+
+
+BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
+
+
+def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
+ """Locate the per-instance blob directory.
+
+ Resolution order:
+
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
+ agent never sees these.
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
+ tree on disk (``//tests/.tar.gz``). Useful
+ for offline reruns sharing a cache across many tasks.
+ 3. ``huggingface_hub.snapshot_download`` from
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
+
+ The returned directory contains ``tests/.tar.gz`` per active
+ branch — same shape as ``programgym/ProgramGym-Tests//``
+ on HF.
+ """
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
+ return BAKED_BLOB_DIR
+
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
+ if local:
+ candidate = Path(local) / instance_id
+ if candidate.exists():
+ return candidate
+ raise FileNotFoundError(
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
+ )
+
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
+ "hf_repo_id", DEFAULT_HF_REPO_ID
+ )
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
+ "hf_revision", DEFAULT_HF_REVISION
+ )
+
+ from huggingface_hub import snapshot_download
+
+ cache_root = Path(
+ snapshot_download(
+ repo_id,
+ repo_type="dataset",
+ revision=revision,
+ allow_patterns=f"{instance_id}/**",
+ )
+ )
+ blob_dir = cache_root / instance_id
+ if not blob_dir.exists():
+ raise FileNotFoundError(
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
+ )
+ return blob_dir
+
+
+def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
+ bootstrap_toolchain_path()
+ branches = metadata.get("branches", {})
+ active_branch_items = [
+ (name, info) for name, info in branches.items() if not info.get("ignored")
+ ]
+ result: dict[str, Any] = {
+ "test_results": [],
+ "error_code": None,
+ "error_details": None,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [name for name, _ in active_branch_items],
+ "test_branch_errors": {},
+ "executable_hash": None,
+ "warnings": [],
+ }
+
+ instance_id = metadata["instance_id"]
+
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
+
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
+ result["error_code"] = error_code
+ result["error_details"] = details
+ for branch, info in active_branch_items:
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ return result
+
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
+ compiled_snapshot = Path(tmp) / "compiled"
+
+ started = time.monotonic()
+ removed = remove_hashed_files(
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
+ )
+ result["log"].append(
+ {
+ "step": "remove_hashed_files",
+ "command": "remove files matching eval_clean_hashes",
+ "wall_time": time.monotonic() - started,
+ "output": "".join(f"removed '{path}'\n" for path in removed),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+
+ compile_sh = WORKSPACE / "compile.sh"
+ if not compile_sh.exists():
+ return fail_all(
+ "missing_compile_sh", "submission did not contain compile.sh"
+ )
+
+ seed = (
+ "if [ ! -d .git ]; then "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c init.defaultBranch=gold init -q && "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
+ "fi"
+ )
+ try:
+ result["log"].append(
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
+ )
+ compile_log = run_step(
+ "chmod +x ./compile.sh && ./compile.sh",
+ WORKSPACE,
+ timeout=compile_timeout,
+ step="compile",
+ accept_failure=True,
+ )
+ result["log"].append(compile_log)
+ if compile_log["returncode"]:
+ return fail_all("compile_failed", compile_log["output"])
+ executable = WORKSPACE / "executable"
+ if not executable.exists():
+ return fail_all(
+ "missing_executable",
+ "compile.sh completed but did not create ./executable",
+ )
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
+ # the agent's executable during the stash→restore window. Mirrors
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
+ shutil.move(str(executable), STASHED_EXECUTABLE)
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
+ result["log"].append(
+ run_step(
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
+ WORKSPACE,
+ timeout=120,
+ step="install_rerunfailures",
+ accept_failure=True,
+ )
+ )
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
+ handoff_removed = remove_oracle_handoff_artifacts()
+ if handoff_removed:
+ result["log"].append(
+ {
+ "step": "remove_oracle_handoff",
+ "command": "remove oracle handoff artifacts from workspace",
+ "wall_time": 0.0,
+ "output": "".join(
+ f"removed '{name}'\n" for name in handoff_removed
+ ),
+ "returncode": 0,
+ "exception_info": "",
+ }
+ )
+ snapshot_workspace(compiled_snapshot)
+ except Exception as exc:
+ return fail_all(type(exc).__name__, str(exc))
+
+ try:
+ blob_dir = resolve_blob_dir(instance_id, metadata)
+ except Exception as exc:
+ details = f"{type(exc).__name__}: {exc}"
+ for branch, info in active_branch_items:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "blob_resolution_failed",
+ "error_details": details,
+ }
+ ]
+ inject_not_run(
+ result, branch, branch_tests(info), "blob_resolution_failed"
+ )
+ return result
+
+ for branch, info in active_branch_items:
+ tests = branch_tests(info)
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
+ if not blob.exists():
+ result["test_branch_errors"][branch] = [
+ {"error_code": "missing_test_blob", "error_details": blob.name}
+ ]
+ inject_not_run(result, branch, tests, "missing_test_blob")
+ continue
+
+ best_xml = ""
+ # Prefer a complete, clean XML result, then the result covering the
+ # most expected tests, and only then the one with the most passes.
+ # Pass-count-only ranking can retain a partial xdist result over a
+ # complete serial result.
+ best_quality = (-1, -1, -1)
+ serial = bool(metadata.get("force_serial_branches"))
+ branch_log: list[dict[str, Any]] = []
+ branch_ignored = {
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
+ }
+ n_expected = len([name for name in tests if name not in branch_ignored])
+
+ def merge_best_xml(raw_xml: str) -> None:
+ try:
+ parsed, warnings = parse_junit(
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
+ )
+ except Exception as exc:
+ result["test_branch_errors"][branch] = [
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
+ ]
+ inject_not_run(result, branch, tests, "xml_parse_error")
+ else:
+ result["test_results"].extend(parsed)
+ result["warnings"].extend(warnings)
+
+ while True:
+ branch_log.append(cleanup_lingering_processes())
+ restore_workspace(compiled_snapshot)
+ extract_trusted_blob(blob, WORKSPACE)
+ restore_reference_executable()
+ actual_hash = sha256(WORKSPACE / "executable")
+ if actual_hash != result["executable_hash"]:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "executable_hash_mismatch",
+ "error_details": (
+ f"expected {result['executable_hash']}, got {actual_hash}"
+ ),
+ }
+ ]
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
+ break
+ run_sh = WORKSPACE / "eval" / "run.sh"
+ if not run_sh.exists():
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_run_sh",
+ "error_details": "eval/run.sh missing",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_run_sh")
+ break
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
+ # instead of os._exit(1) on timeout. That works in fresh
+ # containers per branch; here we reuse one container and
+ # signal timeouts leave TUI/log-watcher subprocesses alive
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
+ # branch_timeout. Keep the blob's thread method and rely on
+ # cleanup_lingering_processes + serial fallback after crashes.
+ env = branch_env(
+ serial=serial,
+ has_rerunfailures=has_rerunfailures,
+ extras=metadata.get("branch_env"),
+ )
+ branch_log.append(
+ run_step(
+ "rm -f eval/results.xml results.xml",
+ WORKSPACE,
+ timeout=120,
+ step="clean_stale_results",
+ accept_failure=True,
+ )
+ )
+ if serial:
+ prepare_serial_run_sh(run_sh)
+ run_entry = run_step(
+ run_tests_command(serial=serial),
+ WORKSPACE,
+ timeout=branch_timeout,
+ env=env,
+ step="run_tests",
+ accept_failure=True,
+ )
+ branch_log.append(run_entry)
+ branch_log.append(cleanup_lingering_processes())
+ xml_path = find_results_xml()
+ if xml_path is None:
+ if best_xml:
+ merge_best_xml(best_xml)
+ break
+ if serial:
+ result["test_branch_errors"][branch] = [
+ {
+ "error_code": "missing_results_xml",
+ "error_details": "eval/results.xml was not produced",
+ }
+ ]
+ inject_not_run(result, branch, tests, "missing_results_xml")
+ break
+ serial = True
+ continue
+ raw_xml = xml_path.read_text(errors="replace")
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
+ raw_xml,
+ run_output=run_entry.get("output", ""),
+ expected_tests=n_expected,
+ )
+ useful = count_junit_passed(raw_xml)
+ quality = (
+ int(crashes == 0 and missing == 0),
+ n_tests,
+ useful,
+ )
+ if quality > best_quality:
+ best_xml = raw_xml
+ best_quality = quality
+ retry = needs_serial_retry(
+ serial=serial,
+ crashes=crashes,
+ missing=missing,
+ failures=failures,
+ n_tests=n_tests,
+ expected_tests=n_expected,
+ run_output=run_entry.get("output", ""),
+ )
+ if not retry:
+ merge_best_xml(best_xml)
+ break
+ serial = True
+ for entry in branch_log:
+ entry["branch"] = branch
+ result["log"].extend(branch_log)
+
+ return result
+
+
+def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ write_json(LOG_DIR / "programgym_eval.json", result)
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
+ rewards = summarize(result, metadata)
+ write_json(LOG_DIR / "reward.json", rewards)
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
+
+
+def main() -> None:
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
+ log_path = LOG_DIR / "programgym_eval.log"
+ metadata = json.loads(METADATA_PATH.read_text())
+ branches = metadata.get("branches", {})
+ try:
+ result = evaluate(metadata)
+ except Exception as exc:
+ error_code = type(exc).__name__
+ result = {
+ "test_results": [],
+ "error_code": error_code,
+ "error_details": str(exc),
+ "log": [
+ {
+ "step": "evaluator_exception",
+ "exception_info": traceback.format_exc(),
+ "returncode": 1,
+ }
+ ],
+ "solution_branch": "submission",
+ "test_branches": [
+ name for name, info in branches.items() if not info.get("ignored")
+ ],
+ "test_branch_errors": {
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+ }
+ for branch, info in branches.items():
+ if info.get("ignored"):
+ continue
+ inject_not_run(result, branch, branch_tests(info), error_code)
+ log_path.write_text(traceback.format_exc())
+ else:
+ log_path.write_text("")
+ write_outputs(result, metadata)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/christianpanov--lwlog.707dfbc/tests/programgym_task.json b/christianpanov--lwlog.707dfbc/tests/programgym_task.json
new file mode 100644
index 0000000000000000000000000000000000000000..ae6f6318d7d0c0095cd560533e9f051caa3da9bf
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/programgym_task.json
@@ -0,0 +1,608 @@
+{
+ "branches": {
+ "generated_module_01": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_sandbox_behavior.test_allocation_counter_is_exactly_22",
+ "eval.tests.test_sandbox_behavior.test_anomalous_sgr_region_cannot_be_fabricated",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[--help]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[--level=info]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[--level=warning]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[--no-color]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[--quiet]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[--verbose]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[--version]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[-h]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[-v]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[info]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[trace]",
+ "eval.tests.test_sandbox_behavior.test_cli_arguments_are_ignored[unexpected-arg]",
+ "eval.tests.test_sandbox_behavior.test_empty_stdin_pipe_is_not_consumed",
+ "eval.tests.test_sandbox_behavior.test_exit_code_is_zero",
+ "eval.tests.test_sandbox_behavior.test_file_attribute_renders_sandbox_cpp_once",
+ "eval.tests.test_sandbox_behavior.test_full_output_matches_golden",
+ "eval.tests.test_sandbox_behavior.test_golden_is_exactly_three_newline_terminated_lines",
+ "eval.tests.test_sandbox_behavior.test_golden_masks_the_two_nondeterministic_fields",
+ "eval.tests.test_sandbox_behavior.test_golden_matches_inline_expected",
+ "eval.tests.test_sandbox_behavior.test_large_stdin_batch_is_not_consumed",
+ "eval.tests.test_sandbox_behavior.test_level_field_center_fixed_width_twelve",
+ "eval.tests.test_sandbox_behavior.test_level_filter_admits_only_critical",
+ "eval.tests.test_sandbox_behavior.test_level_value_is_lowercase_critical",
+ "eval.tests.test_sandbox_behavior.test_live_output_contains_one_timer_and_one_time_marker",
+ "eval.tests.test_sandbox_behavior.test_logger_name_attribute_is_bracketed_console",
+ "eval.tests.test_sandbox_behavior.test_logger_name_equals_constructed_console",
+ "eval.tests.test_sandbox_behavior.test_message_full_literal_text_exact",
+ "eval.tests.test_sandbox_behavior.test_message_keeps_both_literal_brace_pairs",
+ "eval.tests.test_sandbox_behavior.test_multi_line_stdin_with_level_words_ignored",
+ "eval.tests.test_sandbox_behavior.test_multiple_cli_tokens_are_ignored_together",
+ "eval.tests.test_sandbox_behavior.test_normalized_output_stable_across_runs",
+ "eval.tests.test_sandbox_behavior.test_output_contains_no_stray_escape_or_control_bytes",
+ "eval.tests.test_sandbox_behavior.test_output_independent_of_environment[CLICOLOR_FORCE]",
+ "eval.tests.test_sandbox_behavior.test_output_independent_of_environment[LANG]",
+ "eval.tests.test_sandbox_behavior.test_output_independent_of_environment[LC_ALL]",
+ "eval.tests.test_sandbox_behavior.test_output_independent_of_environment[NO_COLOR]",
+ "eval.tests.test_sandbox_behavior.test_output_independent_of_environment[TERM]",
+ "eval.tests.test_sandbox_behavior.test_output_independent_of_environment[TZ]",
+ "eval.tests.test_sandbox_behavior.test_output_independent_of_working_directory",
+ "eval.tests.test_sandbox_behavior.test_output_terminated_by_newline",
+ "eval.tests.test_sandbox_behavior.test_plaintext_content_of_each_decorated_region[32-[ critical ]]",
+ "eval.tests.test_sandbox_behavior.test_plaintext_content_of_each_decorated_region[91-[TIME] [CONSOLE]]",
+ "eval.tests.test_sandbox_behavior.test_plaintext_content_of_each_decorated_region[96-First {} critical message {}]",
+ "eval.tests.test_sandbox_behavior.test_sgr_reset_leaves_literal_tail_clean",
+ "eval.tests.test_sandbox_behavior.test_stderr_empty_across_repeated_runs",
+ "eval.tests.test_sandbox_behavior.test_stderr_is_empty",
+ "eval.tests.test_sandbox_behavior.test_stdin_without_trailing_newline_does_not_hang",
+ "eval.tests.test_sandbox_behavior.test_stdout_is_exactly_three_lines",
+ "eval.tests.test_sandbox_behavior.test_tail_static_literal_after_message_reset",
+ "eval.tests.test_sandbox_behavior.test_three_sgr_regions_each_open_and_reset",
+ "eval.tests.test_sandbox_behavior.test_time_field_is_two_digit_cluster[0]",
+ "eval.tests.test_sandbox_behavior.test_time_field_is_two_digit_cluster[1]",
+ "eval.tests.test_sandbox_behavior.test_time_field_is_two_digit_cluster[2]",
+ "eval.tests.test_sandbox_behavior.test_time_token_is_single_bracketed_value_well_formed",
+ "eval.tests.test_sandbox_behavior.test_timer_banner_is_unsigned_microseconds"
+ ]
+ },
+ "generated_module_02": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [],
+ "tests": [
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv0]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv1]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv2]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv3]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv4]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv5]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv6]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_add_extra_content_lines[argv7]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv0]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv1]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv2]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv3]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv4]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv5]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv6]",
+ "eval.tests.test_sinks_input_invariance.test_cli_args_do_not_change_the_normalized_sink_output[argv7]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_does_not_change_the_normalized_sink_output[0010\\n0020\\n]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_does_not_change_the_normalized_sink_output[No message is read from stdin]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_does_not_change_the_normalized_sink_output[]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_does_not_change_the_normalized_sink_output[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_does_not_change_the_normalized_sink_output[hello stdin\\n]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_does_not_change_the_normalized_sink_output[line one\\nline two\\nline three\\n]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_is_not_echoed_into_stdout[0010\\n0020\\n]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_is_not_echoed_into_stdout[No message is read from stdin]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_is_not_echoed_into_stdout[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_is_not_echoed_into_stdout[hello stdin\\n]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_is_not_echoed_into_stdout[line one\\nline two\\nline three\\n]",
+ "eval.tests.test_sinks_input_invariance.test_piped_stdin_is_not_echoed_into_stdout[unique-and-unlikely-token-Zz9]",
+ "eval.tests.test_sinks_ordering.test_colon_separates_level_from_message",
+ "eval.tests.test_sinks_ordering.test_file_token_precedes_red_time_bracket",
+ "eval.tests.test_sinks_ordering.test_leading_space_after_file_field",
+ "eval.tests.test_sinks_ordering.test_level_field_appears_exactly_once",
+ "eval.tests.test_sinks_ordering.test_level_group_bounded_by_its_own_colors",
+ "eval.tests.test_sinks_ordering.test_level_precedes_colon_separator",
+ "eval.tests.test_sinks_ordering.test_line_endings_are_unix_no_carriage_returns",
+ "eval.tests.test_sinks_ordering.test_logger_name_follows_closing_time_bracket",
+ "eval.tests.test_sinks_ordering.test_logger_name_rendered_exactly_once",
+ "eval.tests.test_sinks_ordering.test_message_does_not_precede_its_color_group",
+ "eval.tests.test_sinks_ordering.test_no_reset_within_message_content",
+ "eval.tests.test_sinks_ordering.test_pattern_field_order_is_respected",
+ "eval.tests.test_sinks_ordering.test_record_line_has_no_trailing_whitespace",
+ "eval.tests.test_sinks_ordering.test_suffix_text_appears_exactly_once",
+ "eval.tests.test_sinks_ordering.test_time_and_name_share_red_group",
+ "eval.tests.test_sinks_precision.test_color_group_count_is_stable_at_three",
+ "eval.tests.test_sinks_precision.test_every_color_group_closes_with_a_reset",
+ "eval.tests.test_sinks_precision.test_normalized_record_token_offsets_are_exact",
+ "eval.tests.test_sinks_precision.test_plain_text_render_length_is_stable",
+ "eval.tests.test_sinks_precision.test_plain_text_render_strips_all_ansi_codes",
+ "eval.tests.test_sinks_precision.test_plain_text_stable_across_runs",
+ "eval.tests.test_sinks_precision.test_record_is_single_output_line",
+ "eval.tests.test_sinks_precision.test_red_group_offset_is_immediately_after_file_prefix",
+ "eval.tests.test_sinks_precision.test_rendered_text_still_has_time_and_name_fields",
+ "eval.tests.test_sinks_precision.test_reset_does_not_precede_first_color",
+ "eval.tests.test_sinks_precision.test_sgr_occurrences_are_balanced_end_to_end",
+ "eval.tests.test_sinks_record_structure.test_all_pieces_concatenate_to_reconstruct_the_record",
+ "eval.tests.test_sinks_record_structure.test_all_sgr_open_reset_pairs_close_before_next_group",
+ "eval.tests.test_sinks_record_structure.test_between_group_separator_is_exactly_one_space",
+ "eval.tests.test_sinks_record_structure.test_colon_separator_between_level_and_message_is_exact",
+ "eval.tests.test_sinks_record_structure.test_color_group_open_reset_pairs_are_contiguous",
+ "eval.tests.test_sinks_record_structure.test_file_field_is_a_bare_uncolored_literal",
+ "eval.tests.test_sinks_record_structure.test_level_content_piece_keeps_its_field_brackets",
+ "eval.tests.test_sinks_record_structure.test_message_content_piece_is_verbatim",
+ "eval.tests.test_sinks_record_structure.test_normalized_segment_sequence_is_stable_across_runs",
+ "eval.tests.test_sinks_record_structure.test_record_decomposes_into_exactly_seven_content_pieces",
+ "eval.tests.test_sinks_record_structure.test_suffix_is_an_uncolored_literal_piece",
+ "eval.tests.test_sinks_record_structure.test_time_and_name_share_one_content_piece",
+ "eval.tests.test_sinks_stdout.test_allocations_line_precedes_log_line",
+ "eval.tests.test_sinks_stdout.test_allocations_line_structure",
+ "eval.tests.test_sinks_stdout.test_color_groups_ordered_by_pattern",
+ "eval.tests.test_sinks_stdout.test_cyan_control_precedes_message",
+ "eval.tests.test_sinks_stdout.test_dark_green_control_precedes_level",
+ "eval.tests.test_sinks_stdout.test_exit_success",
+ "eval.tests.test_sinks_stdout.test_file_flag_renders_source_filename",
+ "eval.tests.test_sinks_stdout.test_full_log_line_structure",
+ "eval.tests.test_sinks_stdout.test_level_centered_to_width_twelve",
+ "eval.tests.test_sinks_stdout.test_level_renders_record_level_name",
+ "eval.tests.test_sinks_stdout.test_literal_suffix_after_message",
+ "eval.tests.test_sinks_stdout.test_log_line_is_last_content_line",
+ "eval.tests.test_sinks_stdout.test_log_line_opens_with_file_then_red_group",
+ "eval.tests.test_sinks_stdout.test_log_record_routed_to_stdout",
+ "eval.tests.test_sinks_stdout.test_logger_name_flag",
+ "eval.tests.test_sinks_stdout.test_message_curly_braces_are_literal",
+ "eval.tests.test_sinks_stdout.test_message_flag_renders_record_value_verbatim",
+ "eval.tests.test_sinks_stdout.test_no_control_chars_outside_sgr_groups",
+ "eval.tests.test_sinks_stdout.test_normalized_full_output_matches_golden",
+ "eval.tests.test_sinks_stdout.test_only_expected_sgr_codes_appear",
+ "eval.tests.test_sinks_stdout.test_output_terminated_by_newline",
+ "eval.tests.test_sinks_stdout.test_red_control_precedes_time_group",
+ "eval.tests.test_sinks_stdout.test_reset_after_level_group",
+ "eval.tests.test_sinks_stdout.test_reset_after_message_group_before_suffix",
+ "eval.tests.test_sinks_stdout.test_reset_after_time_group",
+ "eval.tests.test_sinks_stdout.test_skeleton_is_deterministic_across_runs[1]",
+ "eval.tests.test_sinks_stdout.test_skeleton_is_deterministic_across_runs[2]",
+ "eval.tests.test_sinks_stdout.test_skeleton_is_deterministic_across_runs[3]",
+ "eval.tests.test_sinks_stdout.test_stderr_is_empty_for_stdout_sink",
+ "eval.tests.test_sinks_stdout.test_stdout_has_three_content_lines",
+ "eval.tests.test_sinks_stdout.test_stdout_is_non_empty",
+ "eval.tests.test_sinks_stdout.test_time_flag_renders_24h_clock",
+ "eval.tests.test_sinks_stdout.test_time_hours_in_valid_range",
+ "eval.tests.test_sinks_stdout.test_time_minutes_in_valid_range",
+ "eval.tests.test_sinks_stdout.test_time_seconds_in_valid_range",
+ "eval.tests.test_sinks_stdout.test_timer_line_precedes_allocations_line",
+ "eval.tests.test_sinks_stdout.test_timer_line_prefix_and_unit",
+ "eval.tests.test_sinks_stdout.test_timer_value_is_nonnegative",
+ "eval.tests.test_sinks_stdout.test_timer_value_varies_but_skeleton_is_stable[output_map0]",
+ "eval.tests.test_sinks_stdout.test_timer_value_varies_but_skeleton_is_stable[output_map1]"
+ ]
+ },
+ "generated_module_03": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_execution_policy.test_full_stdout_matches_golden",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_execution_policy.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_execution_policy.test_golden_filenames_are_mutually_consistent",
+ "reasons": [
+ {
+ "detail": "empty executable run failed as expected with returncode=1",
+ "id": "dummy_pass",
+ "message": "test passed against the empty executable",
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
+ "severity": "error",
+ "stage": "dummy_execution"
+ },
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_execution_policy.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ },
+ {
+ "name": "eval.tests.test_execution_policy.test_normalized_stdout_golden_matches_across_runs",
+ "reasons": [
+ {
+ "id": "missing_fixture_assets",
+ "message": "pytest test references fixture assets that are not packaged",
+ "path": "eval/tests/test_execution_policy.py",
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_execution_policy.test_actual_log_line_contains_exact_core_tokens",
+ "eval.tests.test_execution_policy.test_allocation_count_is_decimal_digits",
+ "eval.tests.test_execution_policy.test_allocation_line_exact_label",
+ "eval.tests.test_execution_policy.test_allocation_line_sits_between_timer_and_log",
+ "eval.tests.test_execution_policy.test_allocations_count_is_twenty_two",
+ "eval.tests.test_execution_policy.test_ansi_sgr_codes_confined_to_log_line",
+ "eval.tests.test_execution_policy.test_async_message_processed_exactly_once",
+ "eval.tests.test_execution_policy.test_captured_and_streamed_stdout_are_identical",
+ "eval.tests.test_execution_policy.test_color_segment_groups_are_non_nested_disjoint",
+ "eval.tests.test_execution_policy.test_color_segments_open_in_red_green_cyan_order",
+ "eval.tests.test_execution_policy.test_colour_env_does_not_disable_ansi[NO_COLOR-1]",
+ "eval.tests.test_execution_policy.test_colour_env_does_not_disable_ansi[TERM-dumb]",
+ "eval.tests.test_execution_policy.test_colour_env_does_not_disable_ansi[TERM-xterm-256color]",
+ "eval.tests.test_execution_policy.test_concurrent_invocations_are_per_process_isolated[10]",
+ "eval.tests.test_execution_policy.test_concurrent_invocations_are_per_process_isolated[3]",
+ "eval.tests.test_execution_policy.test_concurrent_invocations_are_per_process_isolated[6]",
+ "eval.tests.test_execution_policy.test_cyan_segment_exact_message",
+ "eval.tests.test_execution_policy.test_dark_green_segment_exact_centered_level",
+ "eval.tests.test_execution_policy.test_demo_does_not_await_stdin_eof",
+ "eval.tests.test_execution_policy.test_each_output_line_has_single_newline_terminator",
+ "eval.tests.test_execution_policy.test_every_color_segment_has_reset",
+ "eval.tests.test_execution_policy.test_exit_code_zero",
+ "eval.tests.test_execution_policy.test_exit_code_zero_ignores_positional_args[args0]",
+ "eval.tests.test_execution_policy.test_exit_code_zero_ignores_positional_args[args1]",
+ "eval.tests.test_execution_policy.test_exit_code_zero_ignores_positional_args[args2]",
+ "eval.tests.test_execution_policy.test_exit_status_and_allocations_stable_across_runs",
+ "eval.tests.test_execution_policy.test_exit_status_and_stdout_identical_with_cli_like_args",
+ "eval.tests.test_execution_policy.test_exit_status_and_stdout_stay_identical_with_flag_args",
+ "eval.tests.test_execution_policy.test_file_token_absent_from_timer_and_alloc_lines",
+ "eval.tests.test_execution_policy.test_first_byte_is_timer_prefix_no_leading_blank",
+ "eval.tests.test_execution_policy.test_flag_like_args_do_not_change_stdout_contract[args0]",
+ "eval.tests.test_execution_policy.test_flag_like_args_do_not_change_stdout_contract[args1]",
+ "eval.tests.test_execution_policy.test_flag_like_args_do_not_change_stdout_contract[args2]",
+ "eval.tests.test_execution_policy.test_flag_like_args_do_not_change_stdout_contract[args3]",
+ "eval.tests.test_execution_policy.test_flag_like_args_do_not_change_stdout_contract[args4]",
+ "eval.tests.test_execution_policy.test_full_stdout_matches_golden",
+ "eval.tests.test_execution_policy.test_golden_filenames_are_mutually_consistent",
+ "eval.tests.test_execution_policy.test_identity_env_altered_does_not_change_contract[HOME]",
+ "eval.tests.test_execution_policy.test_identity_env_altered_does_not_change_contract[OLDPWD]",
+ "eval.tests.test_execution_policy.test_identity_env_altered_does_not_change_contract[PWD]",
+ "eval.tests.test_execution_policy.test_identity_env_altered_does_not_change_contract[USER]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[%T]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[%]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[%n]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[%v]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[[:^12]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[{file}]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[{level}]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[{msg}]",
+ "eval.tests.test_execution_policy.test_individual_pattern_token_never_appears[{name}]",
+ "eval.tests.test_execution_policy.test_level_filter_admits_critical",
+ "eval.tests.test_execution_policy.test_line_order_timer_allocations_log",
+ "eval.tests.test_execution_policy.test_locale_env_does_not_change_contract[-None]",
+ "eval.tests.test_execution_policy.test_locale_env_does_not_change_contract[C-C]",
+ "eval.tests.test_execution_policy.test_locale_env_does_not_change_contract[C.UTF-8-C.UTF-8]",
+ "eval.tests.test_execution_policy.test_log_line_contains_hh_mm_ss_timestamp[1]",
+ "eval.tests.test_execution_policy.test_log_line_contains_hh_mm_ss_timestamp[2]",
+ "eval.tests.test_execution_policy.test_log_line_contains_hh_mm_ss_timestamp[3]",
+ "eval.tests.test_execution_policy.test_log_line_contains_hh_mm_ss_timestamp[4]",
+ "eval.tests.test_execution_policy.test_log_line_exact_sgr_stage_sequence",
+ "eval.tests.test_execution_policy.test_log_line_has_cyan_message_segment",
+ "eval.tests.test_execution_policy.test_log_line_has_dark_green_level_segment",
+ "eval.tests.test_execution_policy.test_log_line_has_red_name_segment",
+ "eval.tests.test_execution_policy.test_log_line_is_last_printed",
+ "eval.tests.test_execution_policy.test_log_line_is_longest_of_the_three",
+ "eval.tests.test_execution_policy.test_log_line_level_centered_width_twelve",
+ "eval.tests.test_execution_policy.test_log_line_logger_name_token",
+ "eval.tests.test_execution_policy.test_log_line_matches_full_structure[1]",
+ "eval.tests.test_execution_policy.test_log_line_matches_full_structure[2]",
+ "eval.tests.test_execution_policy.test_log_line_matches_full_structure[3]",
+ "eval.tests.test_execution_policy.test_log_line_matches_full_structure[4]",
+ "eval.tests.test_execution_policy.test_log_line_matches_golden[1]",
+ "eval.tests.test_execution_policy.test_log_line_matches_golden[2]",
+ "eval.tests.test_execution_policy.test_log_line_matches_golden[3]",
+ "eval.tests.test_execution_policy.test_log_line_matches_golden[4]",
+ "eval.tests.test_execution_policy.test_log_line_matches_specified_width",
+ "eval.tests.test_execution_policy.test_log_line_message_preserved_literal",
+ "eval.tests.test_execution_policy.test_log_line_source_file_token",
+ "eval.tests.test_execution_policy.test_log_line_trailing_text_literal",
+ "eval.tests.test_execution_policy.test_master_three_line_block_matches_combined_regex",
+ "eval.tests.test_execution_policy.test_message_appears_exactly_once_in_whole_stdout",
+ "eval.tests.test_execution_policy.test_message_token_present_in_stdout",
+ "eval.tests.test_execution_policy.test_newline_scale_stable_across_runs",
+ "eval.tests.test_execution_policy.test_no_line_has_leading_or_trailing_whitespace_spill",
+ "eval.tests.test_execution_policy.test_no_percent_sign_in_deterministic_lines",
+ "eval.tests.test_execution_policy.test_no_unresolved_pattern_tokens_leak_to_stdout",
+ "eval.tests.test_execution_policy.test_non_log_lines_contain_no_ansi_or_reset[0]",
+ "eval.tests.test_execution_policy.test_non_log_lines_contain_no_ansi_or_reset[1]",
+ "eval.tests.test_execution_policy.test_normalization_leaves_markup_intact",
+ "eval.tests.test_execution_policy.test_normalized_output_identical_under_all_env_overrides",
+ "eval.tests.test_execution_policy.test_normalized_stdout_golden_matches_across_runs",
+ "eval.tests.test_execution_policy.test_output_stream_reads_exactly_three_newline_records",
+ "eval.tests.test_execution_policy.test_red_segment_contains_exact_timestamp_and_name",
+ "eval.tests.test_execution_policy.test_run_from_unrelated_working_directory[sub/deeper]",
+ "eval.tests.test_execution_policy.test_run_from_unrelated_working_directory[sub]",
+ "eval.tests.test_execution_policy.test_stderr_is_empty",
+ "eval.tests.test_execution_policy.test_stderr_stays_empty_for_flag_like_args[args0]",
+ "eval.tests.test_execution_policy.test_stderr_stays_empty_for_flag_like_args[args1]",
+ "eval.tests.test_execution_policy.test_stderr_stays_empty_for_flag_like_args[args2]",
+ "eval.tests.test_execution_policy.test_stderr_stays_empty_for_flag_like_args[args3]",
+ "eval.tests.test_execution_policy.test_stderr_stays_empty_for_flag_like_args[args4]",
+ "eval.tests.test_execution_policy.test_stdin_devnull_does_not_change_contract",
+ "eval.tests.test_execution_policy.test_stdin_from_empty_file_does_not_change_contract",
+ "eval.tests.test_execution_policy.test_stdin_with_piped_bytes_does_not_change_contract[\\x00\\xff\\xfe partial \\n]",
+ "eval.tests.test_execution_policy.test_stdin_with_piped_bytes_does_not_change_contract[\\xfc\\xf1\\xef\\xe7\\xf6d\\xe9-B\\xd3M \\xef\\xbb\\xbf line\\n]",
+ "eval.tests.test_execution_policy.test_stdin_with_piped_bytes_does_not_change_contract[arbitrary piped payload\\n--help\\n]",
+ "eval.tests.test_execution_policy.test_stdout_byte_counts_split_empty_stderr_nonempty_stdout",
+ "eval.tests.test_execution_policy.test_stdout_decodes_as_utf8",
+ "eval.tests.test_execution_policy.test_stdout_has_exactly_three_lines",
+ "eval.tests.test_execution_policy.test_stdout_has_no_carriage_returns",
+ "eval.tests.test_execution_policy.test_stdout_is_latin1_printable_with_no_nul",
+ "eval.tests.test_execution_policy.test_stdout_is_newline_terminated",
+ "eval.tests.test_execution_policy.test_stdout_is_nonempty",
+ "eval.tests.test_execution_policy.test_structural_token_appears_exactly_once[Sandbox.cpp]",
+ "eval.tests.test_execution_policy.test_structural_token_appears_exactly_once[TEXT]",
+ "eval.tests.test_execution_policy.test_structural_token_appears_exactly_once[Total allocations:]",
+ "eval.tests.test_execution_policy.test_structural_token_appears_exactly_once[[ critical ]]",
+ "eval.tests.test_execution_policy.test_structural_token_appears_exactly_once[[CONSOLE]]",
+ "eval.tests.test_execution_policy.test_structural_token_appears_exactly_once[timer:]",
+ "eval.tests.test_execution_policy.test_structural_token_order_across_whole_stdout",
+ "eval.tests.test_execution_policy.test_structural_tokens_identical_across_runs",
+ "eval.tests.test_execution_policy.test_temp_env_altered_does_not_change_contract[TEMP]",
+ "eval.tests.test_execution_policy.test_temp_env_altered_does_not_change_contract[TMPDIR]",
+ "eval.tests.test_execution_policy.test_temp_env_altered_does_not_change_contract[TMP]",
+ "eval.tests.test_execution_policy.test_timer_alloc_lines_have_zero_esc_bytes",
+ "eval.tests.test_execution_policy.test_timer_and_alloc_lines_do_not_echo_message",
+ "eval.tests.test_execution_policy.test_timer_duration_within_sane_microsecond_scale",
+ "eval.tests.test_execution_policy.test_timer_line_matches_us_format",
+ "eval.tests.test_execution_policy.test_timer_line_starts_with_literal_prefix",
+ "eval.tests.test_execution_policy.test_timestamp_fields_are_zero_padded",
+ "eval.tests.test_execution_policy.test_timestamp_fields_in_clock_range",
+ "eval.tests.test_execution_policy.test_timestamp_has_no_spaces_or_separators_except_colons",
+ "eval.tests.test_execution_policy.test_total_allocations_label_capitalized",
+ "eval.tests.test_execution_policy.test_whole_stdout_has_exactly_six_escapes"
+ ]
+ },
+ "generated_module_04": {
+ "ignore_reason": "",
+ "ignored": false,
+ "ignored_tests": [
+ {
+ "name": "eval.tests.test_block_boundaries.test_log_line_contains_the_full_log_marker_set",
+ "reasons": [
+ {
+ "id": "short_substring",
+ "message": "pytest test uses a too-short substring oracle",
+ "path": "eval/tests/test_block_boundaries.py",
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
+ "severity": "error",
+ "stage": "static_lint"
+ }
+ ]
+ }
+ ],
+ "tests": [
+ "eval.tests.test_attributes.test_flag_tokens_are_substituted[short_message]",
+ "eval.tests.test_attributes.test_flag_tokens_are_substituted[short_name]",
+ "eval.tests.test_attributes.test_flag_tokens_are_substituted[verbose_file]",
+ "eval.tests.test_attributes.test_flag_tokens_are_substituted[verbose_level]",
+ "eval.tests.test_attributes.test_level_attribute_renders_critical",
+ "eval.tests.test_attributes.test_level_box_and_message_are_distinct",
+ "eval.tests.test_attributes.test_level_uses_lowercase_text",
+ "eval.tests.test_attributes.test_literal_suffix_survives",
+ "eval.tests.test_attributes.test_message_attribute_preserves_literal_braces",
+ "eval.tests.test_attributes.test_message_attribute_text_verbatim",
+ "eval.tests.test_attributes.test_name_attribute_renders_console_bracketed",
+ "eval.tests.test_attributes.test_short_time_flag_substituted_by_clock",
+ "eval.tests.test_attributes.test_time_attribute_is_24h_hhmmss",
+ "eval.tests.test_attributes.test_time_fields_are_two_digit_zero_padded",
+ "eval.tests.test_attributes.test_time_is_bracketed_with_name",
+ "eval.tests.test_attributes.test_time_uses_separating_colons",
+ "eval.tests.test_attributes.test_two_empty_placeholder_braces_survive",
+ "eval.tests.test_attributes.test_whole_ansi_line_matches_golden_byte_for_byte",
+ "eval.tests.test_attributes.test_whole_plain_line_matches_golden_skeleton",
+ "eval.tests.test_block_boundaries.test_allocations_count_is_positive_small_integer",
+ "eval.tests.test_block_boundaries.test_allocations_is_bare_decimal_without_units_or_suffix",
+ "eval.tests.test_block_boundaries.test_block_line_separators_are_one_lf_no_cr",
+ "eval.tests.test_block_boundaries.test_each_marker_appears_only_on_its_own_line[alloc_token]",
+ "eval.tests.test_block_boundaries.test_each_marker_appears_only_on_its_own_line[console_token]",
+ "eval.tests.test_block_boundaries.test_each_marker_appears_only_on_its_own_line[file_token]",
+ "eval.tests.test_block_boundaries.test_each_marker_appears_only_on_its_own_line[level_token]",
+ "eval.tests.test_block_boundaries.test_each_marker_appears_only_on_its_own_line[message_token]",
+ "eval.tests.test_block_boundaries.test_each_marker_appears_only_on_its_own_line[timer_token]",
+ "eval.tests.test_block_boundaries.test_log_line_carries_no_report_markers",
+ "eval.tests.test_block_boundaries.test_log_line_contains_the_full_log_marker_set",
+ "eval.tests.test_block_boundaries.test_report_lines_carry_no_log_markers",
+ "eval.tests.test_block_boundaries.test_report_lines_have_no_trailing_whitespace",
+ "eval.tests.test_block_boundaries.test_timer_unit_suffix_is_us_not_ms_ns_or_s",
+ "eval.tests.test_block_boundaries.test_timer_value_within_microsecond_human_bound",
+ "eval.tests.test_block_boundaries.test_whole_plain_block_matches_golden",
+ "eval.tests.test_concurrency.test_concurrent_processes_keep_stderr_empty",
+ "eval.tests.test_concurrency.test_four_concurrent_processes_each_emit_canonical_block",
+ "eval.tests.test_concurrency.test_launches_remain_well_formed_under_repeated_concurrency",
+ "eval.tests.test_concurrency.test_two_concurrent_processes_share_no_stream_contamination",
+ "eval.tests.test_cross_validation.test_ansi_stripped_is_identical_to_token_plain_rebuild",
+ "eval.tests.test_cross_validation.test_clock_token_consistent_across_raw_and_plain",
+ "eval.tests.test_cross_validation.test_color_open_and_reset_counts_agree_with_csi_count",
+ "eval.tests.test_cross_validation.test_level_field_arithmetic_is_consistent",
+ "eval.tests.test_cross_validation.test_no_reset_without_preceding_open",
+ "eval.tests.test_cross_validation.test_plain_fragments_cover_the_whole_payload",
+ "eval.tests.test_datetime_formats.test_clock_appears_exactly_once_in_stdout",
+ "eval.tests.test_datetime_formats.test_clock_is_surrounded_by_brackets",
+ "eval.tests.test_datetime_formats.test_clock_token_has_exactly_two_digits_per_field",
+ "eval.tests.test_datetime_formats.test_hour_is_in_0_to_23_range",
+ "eval.tests.test_datetime_formats.test_minute_and_second_are_in_0_to_59_range",
+ "eval.tests.test_datetime_formats.test_no_ampm_suffix_is_emitted",
+ "eval.tests.test_input_robustness.test_arguments_are_ignored[debug_word]",
+ "eval.tests.test_input_robustness.test_arguments_are_ignored[double_dash]",
+ "eval.tests.test_input_robustness.test_arguments_are_ignored[long_help]",
+ "eval.tests.test_input_robustness.test_arguments_are_ignored[no_color_flag]",
+ "eval.tests.test_input_robustness.test_arguments_are_ignored[pattern_flag]",
+ "eval.tests.test_input_robustness.test_arguments_are_ignored[short_help]",
+ "eval.tests.test_input_robustness.test_arguments_are_ignored[version]",
+ "eval.tests.test_input_robustness.test_colour_env_vars_are_ignored[clicolor_off]",
+ "eval.tests.test_input_robustness.test_colour_env_vars_are_ignored[dumb_term]",
+ "eval.tests.test_input_robustness.test_colour_env_vars_are_ignored[empty_colorterm]",
+ "eval.tests.test_input_robustness.test_colour_env_vars_are_ignored[localtime_off]",
+ "eval.tests.test_input_robustness.test_colour_env_vars_are_ignored[no_color]",
+ "eval.tests.test_input_robustness.test_stderr_never_mirrors_stdout",
+ "eval.tests.test_input_robustness.test_stdin_is_ignored[command_words]",
+ "eval.tests.test_input_robustness.test_stdin_is_ignored[empty_stdin]",
+ "eval.tests.test_input_robustness.test_stdin_is_ignored[large_stdin]",
+ "eval.tests.test_input_robustness.test_stdin_is_ignored[short_stdin]",
+ "eval.tests.test_launch.test_all_output_on_stdout_not_stderr",
+ "eval.tests.test_launch.test_allocation_line_reports_positive_count",
+ "eval.tests.test_launch.test_each_line_has_expected_head[allocation_line]",
+ "eval.tests.test_launch.test_each_line_has_expected_head[log_line]",
+ "eval.tests.test_launch.test_each_line_has_expected_head[timer_line]",
+ "eval.tests.test_launch.test_executable_discoverable_via_env",
+ "eval.tests.test_launch.test_launch_exits_zero_with_three_line_log",
+ "eval.tests.test_launch.test_log_line_is_the_final_line",
+ "eval.tests.test_launch.test_stdout_has_clean_line_terminators",
+ "eval.tests.test_launch.test_stdout_is_exactly_three_lines",
+ "eval.tests.test_launch.test_timer_line_reports_positive_wallclock_us",
+ "eval.tests.test_output_block.test_ansi_sequences_confined_to_last_line",
+ "eval.tests.test_output_block.test_clock_token_appears_only_on_log_line",
+ "eval.tests.test_output_block.test_clock_token_is_single_and_noneduplicated",
+ "eval.tests.test_output_block.test_file_token_appears_exactly_once_in_block",
+ "eval.tests.test_output_block.test_log_line_has_no_leading_or_embedded_whitespace_preamble",
+ "eval.tests.test_output_block.test_log_line_is_lexically_last_line_of_block",
+ "eval.tests.test_output_block.test_log_line_plain_length_is_fixed_after_normalisation",
+ "eval.tests.test_output_block.test_timer_and_allocation_lines_are_plain_ascii",
+ "eval.tests.test_output_block.test_timer_and_allocation_lines_have_distinct_non_log_prefixes",
+ "eval.tests.test_robustness.test_allocations_positive_and_stable_shape",
+ "eval.tests.test_robustness.test_log_line_clock_is_timeofday_shape",
+ "eval.tests.test_robustness.test_log_message_written_exactly_once",
+ "eval.tests.test_robustness.test_message_payload_unchanged_by_argument_formatter",
+ "eval.tests.test_robustness.test_no_debug_or_prompt_noise_on_stdout",
+ "eval.tests.test_robustness.test_repeated_run_preserves_full_skeleton",
+ "eval.tests.test_robustness.test_second_run_log_line_identical_to_first",
+ "eval.tests.test_robustness.test_stderr_stays_empty_across_repeated_runs",
+ "eval.tests.test_robustness.test_timer_varies_but_shape_is_stable",
+ "eval.tests.test_sgr_encoding.test_all_csi_sequences_are_wellformed",
+ "eval.tests.test_sgr_encoding.test_color_code_present[cyan]",
+ "eval.tests.test_sgr_encoding.test_color_code_present[dark_green]",
+ "eval.tests.test_sgr_encoding.test_color_code_present[red]",
+ "eval.tests.test_sgr_encoding.test_colors_appear_in_pattern_order",
+ "eval.tests.test_sgr_encoding.test_each_color_code_appears_exactly_once",
+ "eval.tests.test_sgr_encoding.test_exactly_three_reset_sequences",
+ "eval.tests.test_sgr_encoding.test_plain_not_within_color_spans",
+ "eval.tests.test_sgr_encoding.test_plain_segments_survive_outside_colors",
+ "eval.tests.test_sgr_encoding.test_reset_after_cyan_span_before_text_suffix",
+ "eval.tests.test_sgr_encoding.test_reset_after_green_span",
+ "eval.tests.test_sgr_encoding.test_reset_after_red_span",
+ "eval.tests.test_sgr_encoding.test_reset_and_open_are_balanced",
+ "eval.tests.test_sgr_encoding.test_whole_ansi_line_matches_golden",
+ "eval.tests.test_stream_integrity.test_cyan_code_is_96",
+ "eval.tests.test_stream_integrity.test_dark_green_code_is_32_not_92",
+ "eval.tests.test_stream_integrity.test_every_level_box_is_centered_and_twelve_wide",
+ "eval.tests.test_stream_integrity.test_no_stray_verbose_or_short_flag_tokens",
+ "eval.tests.test_stream_integrity.test_placeholder_braces_are_adjacent_pairs",
+ "eval.tests.test_stream_integrity.test_red_code_is_not_a_different_gui_code",
+ "eval.tests.test_stream_integrity.test_reset_is_parameter_0_only",
+ "eval.tests.test_stream_integrity.test_sgr_parameter_set_is_exactly_expected",
+ "eval.tests.test_stream_integrity.test_whole_ansi_stream_is_plaintext_and_golden",
+ "eval.tests.test_stream_redirect.test_redirected_block_uses_lf_no_cr",
+ "eval.tests.test_stream_redirect.test_redirected_file_has_no_trailing_whitespace_on_report_lines",
+ "eval.tests.test_stream_redirect.test_redirected_log_line_matches_ansi_golden",
+ "eval.tests.test_stream_redirect.test_redirected_log_line_plain_prefix_is_file_and_clock",
+ "eval.tests.test_stream_redirect.test_redirected_report_line_terminal_marker[timer_line_us_tail]",
+ "eval.tests.test_stream_redirect.test_redirected_run_stderr_channel_never_mirrors_stdout",
+ "eval.tests.test_stream_redirect.test_redirected_stderr_file_is_empty",
+ "eval.tests.test_stream_redirect.test_redirected_stdout_file_holds_exactly_three_lines",
+ "eval.tests.test_stream_redirect.test_redirected_stdout_file_is_not_empty_and_non_trivial",
+ "eval.tests.test_stream_redirect.test_two_redirected_runs_produce_identical_normalised_files",
+ "eval.tests.test_template.test_centered_level_box_width_is_twelve",
+ "eval.tests.test_template.test_colon_link_between_level_box_and_message",
+ "eval.tests.test_template.test_file_token_replaced_with_compiled_name",
+ "eval.tests.test_template.test_level_box_is_symmetrically_padded",
+ "eval.tests.test_template.test_level_box_not_left_nor_right_aligned",
+ "eval.tests.test_template.test_log_line_has_file_preamble",
+ "eval.tests.test_template.test_no_stray_escape_bytes_in_plain_text",
+ "eval.tests.test_template.test_pairwise_distinct_spans_precede_message",
+ "eval.tests.test_template.test_plain_line_has_bracketed_time_and_level_groups",
+ "eval.tests.test_template.test_single_space_separates_color_spans",
+ "eval.tests.test_template.test_trailing_text_suffix_verbatim",
+ "eval.tests.test_template.test_whole_plain_skeleton_matches_golden"
+ ]
+ }
+ },
+ "commit": "707dfbc6b8d112ab64dd7c52ddd095554f040525",
+ "data_source": "synthetic_programgym",
+ "difficulty": "easy",
+ "difficulty_score": 1.9209577059554492,
+ "eval_clean_hashes": [
+ "be46beb33b70e5ad5bebe96bf3bb118963a3f4f0a0eb5e812e7ec8ffb1deb1f7"
+ ],
+ "input_record": {
+ "commit": "707dfbc6b8d112ab64dd7c52ddd095554f040525",
+ "difficulty": "easy",
+ "difficulty_code_lines": 4168,
+ "difficulty_has_tests": false,
+ "difficulty_product_code_lines": 4168,
+ "difficulty_runtime_deps": 1,
+ "difficulty_score": 1.9209577059554492,
+ "difficulty_test_code_lines": 0,
+ "full_name": "ChristianPanov/lwlog",
+ "input_joern_zip": "cpp_joern/ChristianPanov__lwlog.zip",
+ "joern_status": true,
+ "joern_time": 18.382901408942416,
+ "language": "cpp",
+ "pb_match": [
+ {
+ "pb_fullname": "tstack/lnav",
+ "rank": 18,
+ "similarity": 0.5521436929702759
+ },
+ {
+ "pb_fullname": "NikolaDucak/caps-log",
+ "rank": 102,
+ "similarity": 0.4625960886478424
+ }
+ ],
+ "repo_path": "cpp/ChristianPanov__lwlog",
+ "source": "commit:707dfbc6b8d112ab64dd7c52ddd095554f040525",
+ "status": "done",
+ "url": "https://github.com/ChristianPanov/lwlog"
+ },
+ "instance_id": "ChristianPanov__lwlog.707dfbc",
+ "language": "cpp",
+ "module_iterations": [
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_01",
+ "iteration_limit": 5,
+ "module_index": 1,
+ "module_kind": "source",
+ "termination_reason": "module_coverage_threshold_reached"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_02",
+ "iteration_limit": 5,
+ "module_index": 2,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_03",
+ "iteration_limit": 5,
+ "module_index": 3,
+ "module_kind": "source",
+ "termination_reason": "early_stopping"
+ },
+ {
+ "actual_iterations": 5,
+ "branch_name": "generated_module_04",
+ "iteration_limit": 5,
+ "module_index": 4,
+ "module_kind": "source",
+ "termination_reason": "max_iterations"
+ }
+ ],
+ "repository": "ChristianPanov/lwlog"
+}
diff --git a/christianpanov--lwlog.707dfbc/tests/test.sh b/christianpanov--lwlog.707dfbc/tests/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..93c97cf1219034b84854bf1102d30b4347149dbe
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/test.sh
@@ -0,0 +1,82 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
+export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
+
+mkdir -p /logs/verifier /logs/artifacts
+
+write_failure() {
+ local code="$1"
+ local details="$2"
+ python3 - "$code" "$details" <<'PY'
+import json
+import sys
+from pathlib import Path
+
+code, details = sys.argv[1:3]
+try:
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
+ n_tests = sum(
+ len([
+ name for name in info.get("tests", [])
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
+ ])
+ for branch, info in metadata.get("branches", {}).items()
+ if not info.get("ignored")
+ )
+except Exception:
+ n_tests = 0
+result = {
+ "test_results": [],
+ "error_code": code,
+ "error_details": details,
+ "log": [],
+ "solution_branch": "submission",
+ "test_branches": [],
+ "test_branch_errors": {
+ "__infra__": [{"error_code": code, "error_details": details}]
+ },
+ "executable_hash": None,
+ "warnings": [],
+}
+diagnostics = {
+ "pass_rate": 0.0,
+ "resolved": 0,
+ "n_passed": 0,
+ "n_tests": n_tests,
+ "n_branch_errors": 1,
+ "infra_error": 1,
+ "executable_hash_present": 0,
+}
+Path("/logs/verifier/programgym_eval.json").write_text(
+ json.dumps(result, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/harbor_diagnostics.json").write_text(
+ json.dumps(diagnostics, indent=2, sort_keys=True)
+)
+Path("/logs/verifier/reward.json").write_text(
+ json.dumps(
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
+ indent=2,
+ sort_keys=True,
+ )
+)
+Path("/logs/verifier/reward.txt").write_text("0.0")
+Path("/logs/verifier/programgym_eval.log").write_text(details)
+PY
+}
+
+if ! command -v python3 >/dev/null 2>&1; then
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
+ exit 0
+fi
+
+if ! python3 /tests/programgym_evaluator.py; then
+ if [ ! -s /logs/verifier/reward.txt ]; then
+ write_failure "evaluator_crashed" \
+ "programgym_evaluator.py exited non-zero with no reward written"
+ fi
+fi
+
+exit 0
diff --git a/christianpanov--lwlog.707dfbc/tests/workspace.tar.gz b/christianpanov--lwlog.707dfbc/tests/workspace.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..a76a8b7ce48d0378d2ba5aee595efaad27edc12a
--- /dev/null
+++ b/christianpanov--lwlog.707dfbc/tests/workspace.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:167a2f84a342bd14e74bdc1dcfebdd7a1878e9c9850012632b5d6c4afa64c7ae
+size 18879
diff --git a/chronoxor--cppbenchmark.431f1fc/environment/Dockerfile b/chronoxor--cppbenchmark.431f1fc/environment/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..ea5dabd15b163b4b12b41d1994ffda06041df226
--- /dev/null
+++ b/chronoxor--cppbenchmark.431f1fc/environment/Dockerfile
@@ -0,0 +1,66 @@
+FROM ubuntu:22.04
+ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
+ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
+ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
+ARG PROGRAMGYM_NPM_STRICT_SSL="true"
+ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
+ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
+ARG PROGRAMGYM_UV_INSECURE_HOST=""
+ENV GOPROXY=${PROGRAMGYM_GOPROXY}
+ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
+ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
+ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
+ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
+ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
+COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
+RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
+ENV DEBIAN_FRONTEND=noninteractive
+ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
+ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
+ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
+ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
+ENV GOSUMDB=sum.golang.google.cn
+ENV GOTOOLCHAIN=auto
+ENV UV_CACHE_DIR=/workspace/.cache/uv
+ENV npm_config_cache=/workspace/.cache/npm
+ENV HOME=/workspace
+ENV XDG_CACHE_HOME=/workspace/.cache
+ENV PIP_CACHE_DIR=/workspace/.cache/pip
+ENV PYTHONUSERBASE=/workspace/.local
+ENV PAGER=cat
+ENV MANPAGER=cat
+ENV LESS=-R
+ENV TQDM_DISABLE=1
+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/*
+ARG CMAKE_VERSION=3.31.12
+RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
+ARG GCC_VERSION=13.3.0
+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; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; 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
+WORKDIR /workspace
+ADD workspace.tar.gz /workspace/
+COPY executable /workspace/executable
+COPY download.sh /workspace/download.sh
+RUN chmod 755 /workspace/download.sh
+COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
+RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
+ && rm -f /workspace/download.sh \
+ && rm -f /tmp/harbor_prepare_download_env.sh
+ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
+RUN chmod 111 /workspace/executable
+WORKDIR /workspace
+# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
+# Keep tool/runtime state under /home/agent and reserve /workspace for the
+# submission handed to the separate verifier. Keep the reference executable
+# execute-only; the oracle temporarily restores owner read permission.
+RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
+RUN mkdir -p /home/agent \
+ && chown -R agent:agent /home/agent /workspace \
+ && chown agent:agent /workspace/executable \
+ && chmod 111 /workspace/executable
+ENV HOME=/home/agent
+WORKDIR /workspace
diff --git a/chronoxor--cppbenchmark.431f1fc/environment/docker-compose.yaml b/chronoxor--cppbenchmark.431f1fc/environment/docker-compose.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f3bd71ea40d31cf72c3c886f85cbca1450add2cc
--- /dev/null
+++ b/chronoxor--cppbenchmark.431f1fc/environment/docker-compose.yaml
@@ -0,0 +1,11 @@
+services:
+ main:
+ build:
+ args:
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
diff --git a/chronoxor--cppbenchmark.431f1fc/environment/download.sh b/chronoxor--cppbenchmark.431f1fc/environment/download.sh
new file mode 100644
index 0000000000000000000000000000000000000000..1677e483cc64c75b69ee8340d8c4a093bdce869e
--- /dev/null
+++ b/chronoxor--cppbenchmark.431f1fc/environment/download.sh
@@ -0,0 +1,135 @@
+#!/usr/bin/env bash
+#
+# download.sh - ProgramGym download stage for chronoxor/CppBenchmark.
+#
+# This script is `source`d (not executed): `source /source_ro/download.sh`.
+# It runs in a READ-ONLY repository mount WITH network access, so it must not
+# write into the repository tree and must not depend on any repository file.
+# Every dependency URL and branch is embedded below.
+#
+# CppBenchmark's build relies on module content that is NOT checked out
+# in the provided copy. This stage downloads each such dependency as a GitHub
+# source tarball and extracts it into a writable staging directory
+# ($CPPBENCHMARK_DEPS), from which build.sh copies it into the source tree in
+# the later offline stage. Dependencies staged here:
+# Each dependency is staged below:
+# * the top-level build-system helper scripts used by the project's module
+# search path (CodeCoverage, SetCompilerFeatures, SetCompilerWarnings,
+# SetPlatformFeatures, SystemInformation)
+# * modules/HdrHistogram (repo: HdrHistogram/HdrHistogram_c)
+# * modules/cpp-optparse (repo: chronoxor/cpp-optparse)
+# * modules/zlib (repo: madler/zlib)
+# * modules/Catch2 (repo: catchorg/Catch2)
+#
+# This stage only downloads and extracts source archives; it never configures,
+# compiles, links, or tests anything.
+
+# Resolve the writable staging directory. `$HOME` is identical across the
+# download and later offline build stages, so build.sh derives the same path.
+export CPPBENCHMARK_DEPS="${CPPBENCHMARK_DEPS:-${HOME}/.programgym/cppbenchmark-build-deps}"
+
+echo "[download] CppBenchmark dependency staging dir: ${CPPBENCHMARK_DEPS}"
+
+if mkdir -p "${CPPBENCHMARK_DEPS}"; then
+ :
+else
+ echo "[download] ERROR: could not create staging dir ${CPPBENCHMARK_DEPS}"
+ if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
+ return 1
+ else
+ exit 1
+ fi
+fi
+
+# fetch_tarball