you are going to get a variety of answers which are neither necessarily right or wrong, only because the discussion is so general and ungrounded that any particular judgement will seem like a personal opinion. philosophical progress on how moral rules are generated is sparse, and will likely continue to be so unless someone comes around to formalize these laws or put them into a measurable context
we have accrued some interesting ideas, though.
kantian equilibria is useful for demonstrating that it is practically useful, in order to maximize player payoffs, to follow presumed categorical laws of cooperation that can be inferred indirectly.
deontic reasoning may have evolved through context-sensitive policing mechanisms which have developed through evolution. also a little zircon in the sphere of out-there philosophy is Ron Maimon's belief that moral agents are
superrational (in Hofstadter's sense). all very interesting reads, but goes to show that we have virtually no coherent way yet to tie these very disparate ideas together. essentially analytic philosophy in the sphere of morality revolves around working within an extremely well-defined series of premises within a highly technical area of research. translating these to explain away a philosophical problem involves a multidisciplinary approach, which will often conflate and confuse the issues at hand. in order to progress, we probably need a more concretely defined meta-philosophy which bridges interstitial assumptions