Status:
    | { error?: string; kind: "idle" }
    | { action: GlobalEvents; kind: "executing" }
    | { action: ErrorBoundaryEvent; kind: "fatal" }

types to represent the state of the system