pub async fn authorize_write( ctx: &ToolCtx, target: &Path, operation: &str, allow_permit: bool, ) -> Result<bool, RuntimeError>