File size: 3,092 Bytes
71a3477
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
schema_version = "1.3"
source = "ProgramBench"

# Cleanroom images: generated tasks default to upstream ProgramBench v6
# (`programbench/*:task_cleanroom_v6`).  Exceptions: tinycc, doxygen, revive, dirble,
# and chafa use `bencalvert04/*` until upstream ships fixes — see adapter
# `MIRROR_PATCHED_INSTANCE_IDS`.
# Agent phase uses network_mode = "allowlist" (cleanroom contract). Verifier runs in
# a separate sandbox (environment_mode = "separate") with default network for HF blobs.
# allowed_hosts is LLM APIs only; mini-swe-agent + uv are baked in environment/Dockerfile.
#
# Harness fixes (evaluator, verifier Dockerfile) live in task-template/tests/ and are
# copied into every generated task on `programbench-adapter --overwrite`.
#
# Two roles in this artifacts list:
#   1) trial outputs: /logs/verifier/* — collected from the verifier sandbox to the host
#   2) agent→verifier handoff: /workspace — copied from the agent sandbox to the
#      verifier sandbox, with ./executable excluded so the reference binary cannot
#      be passed across the boundary as a cheat. Hash-scrub inside the verifier
#      remains a second-layer defense.
artifacts = [
  "/logs/verifier/programbench_eval.json",
  "/logs/verifier/harbor_diagnostics.json",
  "/logs/verifier/programbench_eval.log",
  "/logs/verifier/reward.json",
  "/logs/verifier/reward.txt",
  { source = "/workspace", exclude = ["executable"] },
]

[task]
name = "programbench/antonmedv--fx.86d0d34"
description = "ProgramBench cleanroom reconstruction task for antonmedv/fx"
authors = [
  { name = "John Yang" },
  { name = "Kilian Lieret" },
]
keywords = ["programbench", "reverse-engineering", "software-engineering", "cleanroom", "go"]

[metadata]
source = "ProgramBench"
instance_id = "antonmedv__fx.86d0d34"
repository = "antonmedv/fx"
commit = "86d0d344b4c2c322ee197d26766e592d030b94a4"
language = "go"
difficulty = "medium"
task_image = "programbench/antonmedv_1776_fx.86d0d34:task_v6"
cleanroom_image = "programbench/antonmedv_1776_fx.86d0d34:task_cleanroom_v6"
test_branches = 16
test_count = 3157

[agent]
timeout_sec = 14400
network_mode = "allowlist"
allowed_hosts = ["api.anthropic.com", "api.openai.com"]

[verifier]
timeout_sec = 7200
user = "root"
environment_mode = "separate"

# Modal/gVisor has no real TTY; wrap pytest in ``script`` so terminal tools (chafa,
# tty-clock, felix, delta pagers, etc.) match Docker oracle behavior.
[verifier.env]
PROGRAMBENCH_SCRIPT_PTY = "1"

# Verifier image is built from tests/Dockerfile (no docker_image set), which
# starts FROM the cleanroom image and wipes /workspace so the reference
# binary baked into the image cannot survive into the verification phase.
[verifier.environment]
build_timeout_sec = 1800
cpus = 12
memory_mb = 8192
storage_mb = 30720
gpus = 0
workdir = "/workspace"

[environment]
docker_image = "programbench/antonmedv_1776_fx.86d0d34:task_cleanroom_v6"
network_mode = "allowlist"
allowed_hosts = ["api.anthropic.com", "api.openai.com"]
build_timeout_sec = 1800
cpus = 12
memory_mb = 8192
storage_mb = 30720
gpus = 0
workdir = "/workspace"