Create the evidence directory before restricted puzzle startup
#2
by edbeeching HF Staff - opened
The puzzle service fails at startup on rootless Podman when it tries to create /evidence: the container root directory is mode 0555 and the task drops all capabilities. Create /evidence with mode 0755 during image build so the service can write evidence with the existing runtime restrictions.
Changes:
- Add the directory setup to the shared task generator and all 270 generated puzzle Dockerfiles.
- Regenerate the content-derived Compose image tags to prevent reuse of cached images built before this fix.
- Add a generator regression test. Scenarios, prompts, action budgets, grading logic, capability drops, and no-new-privileges settings are unchanged.
The 542-file diff consists of the generator, 270 Dockerfiles, 270 Compose files, and one regression test.
Validation:
- Nine task-source tests passed.
- Slurm job 343033 ran the difficulty-25 scenario
agentescape-25-skeleton-0998524bwith Harbor 0.25.0, Podman 4.9.3, and podman-compose 1.5.0. - Service startup, authenticated board read/write over a Unix socket, evidence collection, separate verification, and cleanup passed.
- Reward was 0.0 as expected for a no-op agent; no inference calls were made.
- Only that scenario was runtime-tested; the full 270-task runtime corpus was not rerun.
This PR is for review. Shepherd's example remains pinned to the existing dataset revision until the change is accepted.