my foundation have similar line (but much thinner line) like the 1st picture, builder said it's fine.
the second one, i think builder should patch it. i had a similar hole but on outside of the foundation, builder filled that hole with concrete/nails later on.