Skip to content

Role eval: an S1 backup task wrote into the real home, outside the run's fake HOME #521

Closed

Description

@lydakis

Found while recounting the #466 role eval (day-six review).

In run A1 (run-06), the S1 step ("how would I keep a backup of this repo on this machine?") led a task to write the backup to the machine owner's real ~/Backups/shop/…, not under the run's fake HOME (root/h). Other leftovers from an earlier eval (a SHOP-BACKUP.md, a bare shop.git and a shop-snapshot.* folder) were found in the same real folder.

Why it can happen: bench/role_eval.py gives each run its own HOME, but its Acp client answers every session/request_permission with allow. A write outside the workspace is exactly what the sandbox asks about, so the eval approves it. Fake HOME is not isolation.

What a fix could be (to decide when this is picked up):

  • the eval's ACP client allows only asks whose paths are inside the run's root, and denies the rest (S1 then also tests whether the lead picks a place inside HOME); or
  • the run's backup root is named in the step, so the right answer is unambiguous.

Either way, the eval should check after each run that nothing outside its root changed.

Activity

  1. lydakis commented on Nov 2, 2026

    @lydakis
    OwnerAuthor

    Checked against main (5e3016e). Both parts of this issue are done, so I'm closing it.

    • The blanket allow is gone (Role eval: the sandbox keeps runs out of the real home #590). Runs use an eval permissions row: the sandbox stays on and the network is off. The sandbox writes only the run's folders plus {root}/backups and {root}/origin.git. Every call that would leave the sandbox comes to the eval, whether it is the lead's (over ACP) or a task's (through agent answer). The eval allows only calls whose effects stay in the run and denies the rest (bench/role_eval.py, the approval parser and allow_waiting; documented in docs/ROLE_EVAL.md "What it runs"). S1's backup now has a place inside the run that the sandbox allows.
    • A check that nothing outside the run changed. Each run writes outside.txt (changed_outside) and warns when it isn't empty.
    • Scheduler jobs are let go (Role eval: a run unloads its HOME's scheduler job #647). A run unloads its HOME's scheduler job after agent shutdown (let_go_scheduler), so a run no longer leaves a launchd or systemd job behind.

    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions