Reference oracle and required build output share ./executable, causing agents to overwrite the oracle
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
调研方向
首先检查 ProgramBench harness,以及关于 compile.sh、./executable 和提议的 PROGRAMBENCH_REFERENCE_EXECUTABLE 入口点的标准说明。重现覆盖序列,然后验证重复构建候选程序后,参考程序仍可独立执行,并且 ./executable 保留给候选程序。
由索引模型根据 Issue 内容生成。
描述
We ran into this a couple of times now, so I wanted to report the following:
Description
Summary
The standard ProgramBench instructions assign two incompatible roles to the same path:
./executableis the reference oracle that the agent must probe.compile.shmust produce the candidate as./executable.
A normal iterative build therefore replaces the reference oracle. Every later probe of ./executable invokes the candidate, potentially causing the agent to compare its implementation with itself while believing it is stil observing the reference.
This is not task-specific; it affects any ProgramBench task using this workspace contract.
Reproduction
- Start a ProgramBench task and probe the supplied
./executable. - Write an ordinary
compile.shthat compiles the candidate with output
./executable. - Run
compile.shduring development to test the candidate. - Probe
./executableagain.
The fourth step now runs the candidate. The original reference path has been lost.
Execute-only file permissions do not prevent this when the agent can modify the containing workspace directory: the pathname can still be unlinked and replaced.
We observed this independently in two private local trajectories. In one case, the agent later moved ./executable to preserve what it believed was the reference, but the path had already been overwritten by an earlier build. Subsequent reference comparisons were therefore not independent.
No benchmark score or unpublished evaluator behavior is needed to reproduce the problem.
Impact
- Iterative candidate builds can destroy the only behavioral oracle.
- Later “reference” probes may silently become candidate self-comparisons.
- Agents can derive incorrect behavioral contracts from contaminate evidence.
- Results may understate agent capability for reasons unrelated to the reconstruction itself.
Suggested fix
Separate the paths in the harness before the agent starts:
- Preserve the reference at something like
/opt/programbench-reference/executable. - Make that file executable but neither readable nor writable by the agent.
- Keep it under a root-owned directory the agent cannot modify or unlink from.
- Optionally expose its path through
PROGRAMBENCH_REFERENCE_EXECUTABLE. - Reserve workspace-root
./executableexclusively for the candidate produced
bycompile.sh. - Update the instructions so all oracle probes use the immutable reference
path.
This retains ProgramBench’s anti-copy/anti-smuggling boundary while allowing the agent to compile and test candidates repeatedly.
A prompt-only instruction telling the agent to move the reference before building would reduce the problem, but enforcing separation in the harness is more reliable.
Expected behavior
The reference oracle remains independently executable for the entire inference trajectory, while compile.sh can freely recreate ./executable as the candidate submission.
With kind regards
- 主要语言
- Python
- 星标
- 928
- 派生
- 67
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
facebookresearch/ProgramBench 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 58/100
-
难度 5/5 一周以上 新手友好度 25/100
facebookresearch/ProgramBench#50 · 1 条评论 ·
查看 facebookresearch/ProgramBench 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·