A var in a numeric field broke the task
The task file was parsed before its vars were resolved. With memory: ((container_mem_limit)) under container_limits the parser saw text where it expected a number and stopped the build with cpu/memory limit must be an integer.
Resolve first, parse after
The file is read as raw text, its vars are resolved there, and the result is parsed once. This pass now runs for every task file, not only when vars is set, and the error message names the file.