Reference oracle and required build output share ./executable, causing agents to overwrite the oracle
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- devtools, infrastructure
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra harness của ProgramBench và các hướng dẫn tiêu chuẩn về compile.sh, ./executable cũng như entry point được đề xuất PROGRAMBENCH_REFERENCE_EXECUTABLE. Tái hiện trình tự ghi đè, sau đó xác minh rằng các lần build ứng viên lặp lại vẫn để reference có thể thực thi độc lập và dành riêng ./executable cho ứng viên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 928
- Fork
- 67
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của facebookresearch/ProgramBench
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
facebookresearch/ProgramBench#50 · 1 bình luận ·
Tất cả issue của facebookresearch/ProgramBench
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·