Not exactly the same, but I wrote StoryHarp (FOSS) which involved defining rules to create text adventures. It includes some different ways of looking at rules as a table, a browser, and a map. Maybe there might be some way for you to come up with a way to use it to much of what you want to do in terms of defining simple rules that a GM could click on to get options. There is no randomness in the system though, so a GM would have to introduce that somehow, like maybe by rolling some dice to pick from some options. You can use it in a web browser.
https://storyharp.com/
This looks neat! The license is unclear from a quick glance of the Github so I won't be reading any of the source available, but I will be sure to try it out as a user.