The agreement has to be recorded by a lawyer and subject to the court(the judge)'s approval. Once the agreement is iron out on the decree, and signed by the judge, the agreement is enforcable.