Licensing and Rewriting the whole runtime of MV

We had a discussion lately about what would happen if one would replace the entire runtime (all JS files) and replace it with a custom runtime, possibly aimed to create non JRPG games. But still using the editor to manage the databases and what not.

How would that affect the licensing? Would one be allowed to do this? Would one be allowed to still use RTP assets and the game project being "made with RM"?

(Let's ignore the technical details and scope of an attempt of doing and that it most certainly would be better to use a different engine. It's just a hypothetical question about licensing details.)

(EDIT: I just realized there's already a thread discussing this exact question... I unfortunately didn't see that.)
I guess it won't affect it at all, since MV / MZ is html5 based engine and all source code are open source. My guess would be best to add info in credits or another similar place in-game that you are using RPG Maker MV with rewritten core files. Of course, I can be mistaken, because I don't like reading ToU since their text is very long and complex, personally, I prefer short terms, split into what you can and what you cannot do.

Edit: Also I didn't notice your edit.
I believe the consensus before was that "the engine" discussed in the terms of the requirements for considering your game "Made in MV" for the purposes of legally selling a project is pretty much entirely the core scripts, so modifying them directly to an extent that the original code is no longer powering it would violate the terms.

Original thread: https://forums.rpgmakerweb.com/threads/licensing-and-rewriting-the-whole-runtime-of-mv.147221/