Try implementing it. Go get a state-of-the-art AI and have it write a proof-of-concept for you, or talk to a knowledgeable engineer. They will roughly all give you the same answer, which is that such a program isn't functional. Logic collapse is guaranteed whether you use a Markov chain or OpenAI-O.
Polymorphic code isn't future technology, it's just not particularly useful.