The oldest debts we can still read are small, pillow-shaped tablets of baked clay. A scribe pressed a reed into the wet surface and recorded who had lent, who had borrowed, how much barley or silver had changed hands, when it was due (often at harvest), and the names of the witnesses. Many were rolled with a cylinder seal. If the borrower later disputed the debt, the tablet settled it.
Read one today and it looks less like a legal document than an invoice: a party, an amount, a date and proof that both sides agreed. That is the first of the five problems, solved early and solved well.
Mesopotamia also produced the first written limit. Around 1750 BC, the laws of Hammurabi of Babylon set out what happened when a man could not pay and bound his wife, son or daughter to work off the debt.
They shall work for three years… and in the fourth year they shall be set free.Law 117 · Code of Hammurabi
And it produced the first clean slate. From Uru'inimgina of Lagash, around 2400 BC, rulers issued decrees that cancelled debts outright. The best preserved, the misharum edict of Ammi-saduqa of Babylon around 1646 BC, wiped out the arrears of tenant farmers and shepherds and freed citizens sold into debt servitude. Its small print is the part a modern finance team will recognise. Silver advanced to a merchant for a trading journey, or capital put into a joint venture, was not cancelled; the debtor had to repay "in accordance with the stipulations of his contract". Household debt could be forgiven. Trade credit could not, because trade would stop without it.