Reference oracle and required build output share ./executable, causing agents to overwrite the oracle
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Área
- devtools, infrastructure
Línea de trabajo
Comienza inspeccionando el harness de ProgramBench y las instrucciones estándar sobre compile.sh, ./executable y el punto de entrada propuesto PROGRAMBENCH_REFERENCE_EXECUTABLE. Reproduce la secuencia de sobrescritura y, después, verifica que las compilaciones repetidas del candidato dejen la referencia ejecutable de forma independiente y reserven ./executable para el candidato.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 928
- Forks
- 67
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de facebookresearch/ProgramBench
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
facebookresearch/ProgramBench#50 · 1 comentario ·
Todos los issues de facebookresearch/ProgramBench
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anthropics/skills#1811 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
speaches-ai/speaches#678 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
datalayer/mcp-compose#42 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
conda-forge/spacy-feedstock#177 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
UKGovernmentBEIS/inspect_evals#2523 ·