The policy classifier: every tool call is allowed, needs approval, or is denied — decided by code, before the call.
It decides which calls run; what an allowed command can reach is the OS sandbox’s job (crate::sandbox).
crate::sandbox