First of all, when communicating with children, you can try to understand their thoughts and motives from their perspective. Understand why they put forward such views in order to better guide them.
Then, explain the importance of the agreement to the children. Let them know that everyone needs to abide by the agreement, whether at home or outside. If children don't keep the agreement, they may lose the trust of others or get no respect from others.
As for the mother of the child, that is, your daughter-in-law, you can also communicate with her and discuss how to educate the child together. The two can jointly formulate some rules and punishment measures to ensure that children understand the importance of abiding by the agreement.
Generally speaking, good communication is the key to solve such problems. Only by understanding children's thoughts and helping them understand the rules of the world can we truly achieve the purpose of education.