Publish verified DrugResearchBench task files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- README.md+12
- drb.py+33
- provision.py+5-2
- tasks/E001/tests/test.sh+2-3
- tasks/E002/tests/test.sh+2-3
- tasks/E003/tests/test.sh+2-3
- tasks/E004/tests/test.sh+2-3
- tasks/E005/tests/test.sh+2-3
- tasks/E006/tests/test.sh+2-3
- tasks/E007/tests/test.sh+2-3
- tasks/E008/tests/test.sh+2-3
- tasks/E009/tests/test.sh+2-3
- tasks/E010/tests/test.sh+2-3
- tasks/E011/tests/test.sh+2-3
- tasks/E012/tests/test.sh+2-3
- tasks/E013/tests/test.sh+2-3
- tasks/E014/tests/test.sh+2-3
- tasks/E015/tests/test.sh+2-3
- tasks/E016/tests/test.sh+2-3
- tasks/E017/tests/test.sh+2-3
- tasks/E018/tests/test.sh+2-3
- tasks/E019/tests/test.sh+2-3
- tasks/E020/tests/test.sh+2-3
- tasks/P048/tests/test.sh+2-3
- tasks/P059/tests/test.sh+2-3
- tasks/P077/tests/test.sh+2-3
- tasks/P102/inputs/files-02.tar.gz.part-023Added+3
- tasks/P102/inputs/files-02.tar.gz.part-024Added+3
- tasks/P102/inputs/files-02.tar.gz.part-025Added+3
- tasks/P102/inputs/files-02.tar.gz.part-026Added+3
- tasks/P102/inputs/files-02.tar.gz.part-027Added+3
- tasks/P102/tests/test.sh+2-3
- tasks/P112/tests/test.sh+2-3
- tasks/P128/tests/test.sh+2-3
- tasks/P138/tests/test.sh+2-3
- tasks/P146/tests/test.sh+2-3
- tasks/P155/tests/test.sh+2-3
- tasks/P162/tests/test.sh+2-3
- tasks/P170/tests/test.sh+2-3
- tasks/P173/tests/test.sh+2-3
- tasks/P182/tests/test.sh+2-3
- tasks/P189/tests/test.sh+2-3
- tasks/P199/tests/test.sh+2-3
- tasks/P204/oracle/verification-01.tar.gz.part-001Added+3
- tasks/P204/oracle/verification-01.tar.gz.part-002Added+3
- tasks/P204/oracle/verification-01.tar.gz.part-003Added+3
- tasks/P204/oracle/verification-01.tar.gz.part-004Added+3
- tasks/P204/oracle/verification-02.tar.gz.part-001Added+3
- tasks/P204/oracle/verification-02.tar.gz.part-002Added+3
- tasks/P204/oracle/verification-02.tar.gz.part-003Added+3
125 unmodified lines126127128129130131132133134135136137138139140125 unmodified linesFor an authorized installation, add --authorized-root /path/to/DrugResearchBench. The helper binds the complete frozen server verifier by content hashes and makes its private files visible only to the verifier. With --solver you can use your own independent source.
The same unpack command also expands trajectories/history/. C0 retains original solver events and historical assessments, Opus stores the two review slots and their inclusion status, and BE04 contains available budget-arm artifacts. These records are separate from the 402 formal model repeats. See [history_index.json](history_index.json) and [registry-only entries](registered_only).
## Verified quick start
The paper-level test requires Python 3.10+ and replays all six submitted scores. It automatically expands the formal traces, so only the selected paper and the root runner are needed. For the full end-to-end scientific check, E001 bundles both its original and changed inputs. Its three independently sandboxed science executions and 64-criterion historical-judgment regression are documented in [the validation receipt](validation/portable_e001.json). This regression used an already adjudicated decision as a fixture.
On a Linux host with the E001 scientific environment available, the portable command is:
~~~shpython3 experiment.py E001 --archived-solver g61_R1 --run-dir new-e001 --venv /path/to/scientific-venv~~~
This command reports the evidence ceiling. To score a new solution, run the independent judge against the new evidence. The canonical archived grades remain visible with the paper-level shell test. [Paper index and all 402 scores](TASKS.md)35 unmodified lines36373839404142434445464748495051525354555657585960616263646566676851 unmodified lines1201211221231241251261271286 unmodified lines1351361371381391401411421431446 unmodified lines15115215315415515615714 unmodified lines17217317417517617717835 unmodified lines return result.hexdigest()
def allow_sandbox_read(path, existing=False): """Let the unprivileged runner read a staged file when an administrator unpacked it.""" if os.name != "posix" or os.geteuid() != 0: return uid = int(os.environ.get("SUDO_UID", 65534)) gid = int(os.environ.get("SUDO_GID", 65534)) info = path.stat() readable = (info.st_mode & 0o004 or info.st_uid == uid and info.st_mode & 0o400 or info.st_gid == gid and info.st_mode & 0o040) if readable or gid <= 0: return if existing: # Replacing the workspace copy leaves an original hard-linked archive untouched. with tempfile.NamedTemporaryFile(dir=path.parent, delete=False) as h: temporary = Path(h.name) try: shutil.copyfile(path, temporary) allow_sandbox_read(temporary) os.replace(temporary, path) finally: temporary.unlink(missing_ok=True) return os.chown(path, -1, gid) path.chmod((info.st_mode & 0o777) | 0o040)
def relative(value): path = PurePosixPath(value) require(path.parts and not path.is_absolute() and ".." not in path.parts and "\\" not in value, "Unsafe path")51 unmodified lines if dest.exists(): require(sha(tmp) == sha(dest), "Existing unpacked file differs: " + item.name) tmp.unlink() allow_sandbox_read(dest, existing=True) else: allow_sandbox_read(tmp) os.replace(tmp, dest) for prefix in ("inputs","oracle","trajectories","implementation"): if section and prefix!=("trajectories" if section=="formal" else section):continue6 unmodified lines dst.parent.mkdir(parents=True,exist_ok=True) if dst.exists(): require(sha(dst)==item["sha256"],"Existing expanded file differs") allow_sandbox_read(dst, existing=True) else: shutil.copyfile(src,dst) allow_sandbox_read(dst) return {"task": folder.name, "unpacked": True}
6 unmodified lines def good(p): return p.is_file() and p.stat().st_size == item["bytes"] and sha(p) == item["sha256"] if good(dst): allow_sandbox_read(dst, existing=True) continue local = within(source, item["path"]) if source else None if mode=="hidden" and item.get("distribution")=="reuse_original":14 unmodified lines with urllib.request.urlopen(direct, timeout=90) as stream, tmp.open("wb") as out: shutil.copyfileobj(stream, out) require(good(tmp), "Upstream byte identity differs: " + item["path"]) allow_sandbox_read(tmp) os.replace(tmp, dst) finally: tmp.unlink(missing_ok=True)7 unmodified lines891011111213142 unmodified lines1718192020212223242512 unmodified lines383940414243447 unmodified linesfrom pathlib import Pathimport shutilimport tempfilefrom drb import load, require, sha, task, withinfrom drb import allow_sandbox_read, load, require, sha, task, within
def provision(d, data_root, mode): spec=load(d/"inputs/provisioning.json")[mode]2 unmodified lines unresolved=[] for r in spec: out=within(target,r["path"]) if out.is_file() and out.stat().st_size==r["bytes"] and sha(out)==r["sha256"]:continue if out.is_file() and out.stat().st_size==r["bytes"] and sha(out)==r["sha256"]: allow_sandbox_read(out, existing=True) continue source=None for loc in r.get("source_paths",[]): try:12 unmodified lines tmp.unlink(missing_ok=True);raise try: require(sha(tmp)==r["sha256"],"Provisioned bytes differ") allow_sandbox_read(tmp) os.replace(tmp,out) finally:tmp.unlink(missing_ok=True) return len(spec),unresolved1234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E001python3 "$here/drb.py" replay E001base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0011234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E002python3 "$here/drb.py" replay E002base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0021234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E003python3 "$here/drb.py" replay E003base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0031234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E004python3 "$here/drb.py" replay E004base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0041234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E005python3 "$here/drb.py" replay E005base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0051234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E006python3 "$here/drb.py" replay E006base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0061234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E007python3 "$here/drb.py" replay E007base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0071234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E008python3 "$here/drb.py" replay E008base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0081234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E009python3 "$here/drb.py" replay E009base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0091234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E010python3 "$here/drb.py" replay E010base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0101234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E011python3 "$here/drb.py" replay E011base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0111234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E012python3 "$here/drb.py" replay E012base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0121234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E013python3 "$here/drb.py" replay E013base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0131234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E014python3 "$here/drb.py" replay E014base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0141234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E015python3 "$here/drb.py" replay E015base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0151234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E016python3 "$here/drb.py" replay E016base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0161234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E017python3 "$here/drb.py" replay E017base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0171234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E018python3 "$here/drb.py" replay E018base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0181234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E019python3 "$here/drb.py" replay E019base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0191234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack E020python3 "$here/drb.py" replay E020base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay E0201234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P048python3 "$here/drb.py" replay P048base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P0481234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P059python3 "$here/drb.py" replay P059base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P0591234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P077python3 "$here/drb.py" replay P077base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P077123version https://git-lfs.github.com/spec/v1oid sha256:a636be31f01ec71618088da68904b155ceee6e85046c5d5290c0000a1ba13537size 33554432123version https://git-lfs.github.com/spec/v1oid sha256:4ff03f4fa3ad679943951b5d3956ec77d80293b9ebb5e40ac4bb416ef301795bsize 33554432123version https://git-lfs.github.com/spec/v1oid sha256:1ea1ba9ed9993f8b6e93d334642d960741934444c99be489174b4765d2e9756csize 33554432123version https://git-lfs.github.com/spec/v1oid sha256:8955a2493c50eedcfea6ce4ad0d03f8bffdadc594128d08d75eb026fe0ce51cdsize 33554432123version https://git-lfs.github.com/spec/v1oid sha256:d18c53103d9f998017ab848dcef11a730852c602fe3c22266f75064341c9c99asize 335544321234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P102python3 "$here/drb.py" replay P102base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1021234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P112python3 "$here/drb.py" replay P112base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1121234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P128python3 "$here/drb.py" replay P128base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1281234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P138python3 "$here/drb.py" replay P138base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1381234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P146python3 "$here/drb.py" replay P146base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1461234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P155python3 "$here/drb.py" replay P155base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1551234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P162python3 "$here/drb.py" replay P162base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1621234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P170python3 "$here/drb.py" replay P170base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1701234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P173python3 "$here/drb.py" replay P173base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1731234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P182python3 "$here/drb.py" replay P182base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1821234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P189python3 "$here/drb.py" replay P189base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P1891234534#!/bin/shset -euhere=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)python3 "$here/drb.py" unpack P199python3 "$here/drb.py" replay P199base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)exec python3 "$base/drb.py" replay P199123version https://git-lfs.github.com/spec/v1oid sha256:95c00700b49c27328e10b3dcc577e0c35bb74771d5b3e37bb79b4d208e620c8csize 33554432123version https://git-lfs.github.com/spec/v1oid sha256:7214c9c333980d427c037f384c743f48a33c002f8534cd87bb67d690c3108e02size 33554432123version https://git-lfs.github.com/spec/v1oid sha256:8b7aacf77793a83a14fb38f6f1fe91f94a6d765bfdc90bd2f57ae08964d526f5size 33554432123version https://git-lfs.github.com/spec/v1oid sha256:1db704d5f402b32949ce235bd8bf606ad85de56afbaeff14ac7c9d93bf3737a7size 33554432123version https://git-lfs.github.com/spec/v1oid sha256:e31c058a4a0298c3d63a68c1710ba69733ec3083127f333e9625dd0c35aabaffsize 33554432123version https://git-lfs.github.com/spec/v1oid sha256:73e7f2a4879b55fe92c07ced9fdea628f6198eea268593cfdf6abf425cf03629size 33554432123version https://git-lfs.github.com/spec/v1oid sha256:173908dcf85c76cfd89feea3fcac7e870139c4fcff4bcccb6f6a56ee10f47c0asize 33554432README.md+12
drb.py+33
provision.py+5-2
tasks/E001/tests/test.sh+2-3
tasks/E002/tests/test.sh+2-3
tasks/E003/tests/test.sh+2-3
tasks/E004/tests/test.sh+2-3
tasks/E005/tests/test.sh+2-3
tasks/E006/tests/test.sh+2-3
tasks/E007/tests/test.sh+2-3
tasks/E008/tests/test.sh+2-3
tasks/E009/tests/test.sh+2-3
tasks/E010/tests/test.sh+2-3
tasks/E011/tests/test.sh+2-3
tasks/E012/tests/test.sh+2-3
tasks/E013/tests/test.sh+2-3
tasks/E014/tests/test.sh+2-3
tasks/E015/tests/test.sh+2-3
tasks/E016/tests/test.sh+2-3
tasks/E017/tests/test.sh+2-3
tasks/E018/tests/test.sh+2-3
tasks/E019/tests/test.sh+2-3
tasks/E020/tests/test.sh+2-3
tasks/P048/tests/test.sh+2-3
tasks/P059/tests/test.sh+2-3
tasks/P077/tests/test.sh+2-3
tasks/P102/inputs/files-02.tar.gz.part-023Added+3
tasks/P102/inputs/files-02.tar.gz.part-024Added+3
tasks/P102/inputs/files-02.tar.gz.part-025Added+3
tasks/P102/inputs/files-02.tar.gz.part-026Added+3
tasks/P102/inputs/files-02.tar.gz.part-027Added+3
tasks/P102/tests/test.sh+2-3
tasks/P112/tests/test.sh+2-3
tasks/P128/tests/test.sh+2-3
tasks/P138/tests/test.sh+2-3
tasks/P146/tests/test.sh+2-3
tasks/P155/tests/test.sh+2-3
tasks/P162/tests/test.sh+2-3
tasks/P170/tests/test.sh+2-3
tasks/P173/tests/test.sh+2-3
tasks/P182/tests/test.sh+2-3
tasks/P189/tests/test.sh+2-3
tasks/P199/tests/test.sh+2-3
tasks/P204/oracle/verification-01.tar.gz.part-001Added+3
tasks/P204/oracle/verification-01.tar.gz.part-002Added+3
tasks/P204/oracle/verification-01.tar.gz.part-003Added+3
tasks/P204/oracle/verification-01.tar.gz.part-004Added+3
tasks/P204/oracle/verification-02.tar.gz.part-001Added+3
tasks/P204/oracle/verification-02.tar.gz.part-002Added+3
tasks/P204/oracle/verification-02.tar.gz.part-003Added+3