$ the-wire · showcase
Inspect AI checkpoint resume stops trusting snapshot file permissions
By RepoJournal · Filed · About Safety Evals · Composed from the cited sources · methodology
Inspect AI closed a hole in checkpoint resume where the host restored files from a resume source's restic repository with whatever mode, group, setuid and extended attributes that snapshot recorded.
fix: checkpoint resume no longer keeps file modes and extended attributes recorded in the host snapshot UKGovernmentBEIS/inspect_ai
restore_repo() already validated each listed node's type, path and size before restoring from the copied restic repository, but skipped the mode, so restic restore recreated files with setuid, setgid and sticky bits plus the original group and extended attributes rather than the permissions the host intends. Resumed samples now get host-appropriate permissions instead of the snapshot's.
fix: checkpoint resume no longer keeps file modes and extended attributes recorded in the host snapshot (#6785) UKGovernmentBEIS/inspect_ai
The commit carries the same fix to the resume path, so restored context/ directories no longer inherit file modes and extended attributes recorded by the machine that produced the checkpoint. If you resume samples sourced from other hosts or other operators' checkpoint repos, refresh to pick this up before your next run.
Action items
- → Update Inspect AI to a build containing the checkpoint resume permission fix (#6785) before resuming samples from ext... UKGovernmentBEIS/inspect_ai [plan]