`tasks` is an array here so you don't need the surrounding braces.

This raises a `RuntimeError: expected ObjectSpec, got array`