Retirement tax questions

You would have to have a written agreement with the terms of the loan documented and documentation of attempts to collect and why the loan can’t be paid like bankruptcy.