My latest invention is SSB Playground: play with the bitcoin bug commonly called the Sighash Single Bug. I demonstrate that it lets you do a basic form of transaction introspection and even enforce restrictions on the output count of future transactions.
Play with it here: https://supertestnet.github.io/ssb_playground/
Or check out the source code: https://github.com/supertestnet/ssb_playground