Worker election to supervisor in Elixir

I am not sure how to ask this, l but suppose a suppose a supervisor is monitoring/directing/guiding workers toward a goal. I’d like workers to also detect when a supervisor dies, and have code determine when a worker can suddenly become supervisor for all the workers the dead supervisor supervised. Is there anything out there like that?

No, workers can not become supervisor.

Even a supervisor that is a child of a supervisor can not take over the other children of the parent supervisor.

The processes are linked, and therefore in the moment the parent “dies”, the children will as well.