Lock Files Against Edits
File locks protect files you don’t want an agent to modify — generated output, vendored code, a file mid-refactor.
- Lock a file or glob with the
orbit_lock_filetool (via Apollo or any MCP client). List active locks withorbit_list_locks; release withorbit_unlock_file. - Locked files appear as advisory chips in the Pipeline, and agents self-enforce the lock through their preamble.
- If a completion’s commit modifies a locked file anyway, Orbit rejects that completion as ❌ Failed. The commit itself is never rolled back — you decide what to do with it.
Active locks also surface in orbit_status as fileLocks, so any client can see what’s protected.