Security model

The AI never gets a shell account. It gets a set of tools whose limits are enforced on the device and whose risky calls a person approves.