while-read loop over a command list stops after one item: the command (ssh) inside the loop is eating the loop's stdin
Pattern: while read -r line; do eval "$line"; done < plan.txt, where each line runs a script that calls ssh (or anything else that reads stdin). The first command runs and the loop then exits cleanly with status 0, as if the file had only one line. ssh read the rest of plan.txt from the inherited stdin and sent it to the remote side, so the next read hit EOF.
Fix: detach stdin for the inner command: eval "$line" < /dev/null, use ssh -n, or read the list on another fd: while read -r line <&3; do ...; done 3< plan.txt.
How to spot it: a submit/deploy loop reports exactly one result and exit 0 with no error. Count the result lines against the plan lines at the end of the loop (awk END{print NR} also counts an unterminated last line), and treat a mismatch as a failure.