3.14: ensure agent gets an integer from the config, otherwise use the default