flowchart LR
    N1{"bound node"}
    N1-->|another node|NONE0["no action, warns X200924RSTRMT"]

    N1-->|this node|G1{"node agent admits"}
    G1-->|no|NONE1["no action (boot gate or foreign binding)"]

    G1-->|yes|D1{"resolving, backoff spent or cooldown"}
    D1-->|yes|NONE2["no action (wait)"]

    D1-->|no|D2{"a restart: always service missing or dead"}
    D2-->|no|NONE3[no action]

    D2-->|yes|D3{live check}
    D3-->|frozen|NONE4["no action (paused mid-operation)"]
    D3-->|healthy|NONE5["no action, backoff reset"]

    D3-->|degraded|D4{"replica projects on this node"}
    D4-->|yes|NONE6["no action (the replica runner repairs)"]

    D4-->|no|D5{runtime}
    D5-->|docker or podman|ACTION1["compose up -d with the declared replica counts"]
    D5-->|incus or apple|ACTION2["executor Up"]
