agent: validate config on create