Builds the sorted list of agents available in the Chief of Staff app's agent picker:
active top-level (ParentID == null) agents, plus any agent explicitly referenced in
extraReferencedIds (e.g., existing policies/routines/requests for the user), with
'Chief of Staff' ordered first and the rest alphabetical by name.
Builds the sorted list of agents available in the Chief of Staff app's agent picker: active top-level (
ParentID == null) agents, plus any agent explicitly referenced inextraReferencedIds(e.g., existing policies/routines/requests for the user), with'Chief of Staff'ordered first and the rest alphabetical by name.