Dependent with new job

If one of my dependents starts working before the end of the tax year...let's say October or November of 2023.  What are the rules for claiming or excluding him/her as a dependent on my 2023 tax return?  Thank you!