I thank you too for your deeply considered and respectful debate.

I'm not religious and I also don't accept the axioms that the Bible is the word of God, that anything God says is true, etc. We share the goal / ideal of a moral code that is based on simpler, tighter axioms and sound reasoning. Some years ago I thought it would be easy to develop such a code. Nowadays I fear that it's very difficult, perhaps too difficult right now, and we are perhaps to evolved religion what Da Vinci was when he tried to build a mechanical bird i.e. far further away from being able to match the evolved system than he realized, and for many reasons he couldn't have understood.

"I don't think the soviet era was following the core spirit of science though. It had a lot more in common with religious doctrine."

I think this was one of the core criticisms of communism, made both by philosophers in the 19th century and more everyday folk in the 20th. Marx liked to claim that his ideas were scientific, but actually nothing about Marxism is scientific. His critics contended that to be religious, to want to believe in or even to worship something, is a core part of human nature, and that if you simply abolish evolved religions then new pseudo-religions would immediately emerge (but they'd be worse).

We can see that this happened repeatedly in all communist countries: the population was quickly "converted" to new religions which involved worshipping and deifying both the abstract concepts of man, progress and communist ideology, along with also the less abstract leaders. Hence all the "cults of personality" i.e. religions that viewed Lenin, Stalin, Mao etc as quasi-prophets of the coming utopia.

If this claim of a deep need for religion/belief is true, and as I get older I see more and more evidence that maybe it is, then trying to create a moral code based purely on logic derived from a set of sound core axioms might be naive or backfire - sort of like trying to convert the world to speaking Esperanto would. But of course it's very difficult to disentangle cause and effect. Perhaps the apparent "need" for religion is in reality mostly a need for a comprehensive moral code, and as communism didn't provide one, it instead turned into a stunted and disfigured substitute for one.

One obvious way in which an artificial moral code might be lacking is in the story telling aspects. Religions have the advantage (?) that they're easy to teach to children because children ask "why" a lot but can't understand complicated answers. If you had to explain every rule via reference to a long chain of cause/effect logic, it might be difficult to impart the urgency of morality to children and this could lead to problems later. But arguably we have this issue already.

"If we killed every living being that might be a threat to us no matter how remote then that would actually harm ourselves because it destroys large parts of a working ecosystem and would create all kinds of unforseeable, possibly fatal problems"

Yes, so the code we're patching together here is a kind of mix of Darwinian evolution combined with a kind of Gaia style planet/social ecology philosophy. It can work for some things. A concern that arises is that this would appear to be ultimately a form of New Age collectivism - everyone is linked to everyone else. In such a code, do individual rights have any meaning or is everything subservient to the greater whole and if so, how does that not lead in a great circle back to communism?

I find the COVID vaccine mandates to be a good test case for some of these issues. Putting aside for a moment the widely accepted yet pseudo-scientific justification for them (without stopping transmission there is no possible argument in favor), this is ultimately a question of individual rights and risks vs collective outcomes. A "for the betterment of the species" moral code requires some ability to make collective vs individual moral tradeoffs, but in practice such decisions must always be mediated by the state. As we've seen, modern states seem unable to maintain even the most basic levels of rationality about some topics.