Ah, thank you for elaborating!
Though I have to say, this seems to be a thing I also created tooling for in the past.
So what I did for clusters was create an optional script where servers could drop a healthcheck if they're member of a cluster.
The idea was that they are able to check their cluster status, do actions and check if they're OK again.
So basically a simple framework for what you've described and that also was long before llm.
I'm not saying this to discredit, but to add more perspectives.