Something it can be useful to begin editing a macro programmatically: for example a Switch of Variable Action to be incremented for a new branch in some situations.
Here is a simple example of a macro with editing goal itself which works even if Keyboard Maestro Editor is not yet running.