It is known since ancient times the golden rule for harmonious , fair and full of discretion social life:
"Do not do upon others what you do not want to do upon you"
Nevertheless this rule is only in the negative and is not the full story.
For example let us say that you suffer from guilt and very low self-esteem, so actually you hate yourself and you do not love neither like yourself. Then according to this rule you should not love neither like other people too!
If you try to reverse this rule in the positive it would be
"Do upon others what you want to do upon you"
Here again let us imagine a rather sick and masochistic person that wants to turture himself. Then if you were to apply this rule he should torture the other people and be sadistic to them too!
So what is the right rule? To think and express it let us think as 1st person the A, as other persons the B, and as the rest of all other people as C. Then what are the fair and benevolent rule of not doing and doing? We must discriminate between the ideals of what A wants to do to A, and A wants that B do to A.
1) If A is to do anything he must want to, and also agrees that it is something he would want B in general to do upon him A. 2) If A is to do anything on B , B must want also. So the conditions 1) and 2) is the mutual consensus. Finally, A, and B must not act in ignorance of their unavoidable influence to all other C. 3) So if A is to do anything on B , it should be benevolent and "ecological" for the C's too. The above rule is also the base of the protocol of human communication, not only human mutual activities.
But all the above only under normal conditions. Of course non-normal conditions might be conditions of war. There are always rare exceptions to any rule, that are exceptions to its syntax, but not to its spirit.
Putting all these together we could state the Diamond Rule: