Marriage is a sacrament.
Commitment means to abnegate oneself to God.
Everything that is to be decided within marriage is to lead the one body, one flesh couple to God.
Read this encyclical by Pope Leo XIII, on marriage.
https://www.vatican.va/content/leo-xiii/en/encyclicals/documents/hf_l-xiii_enc_10021880_arcanum.html