1. `are` doesn't seem like a good variable name. Maybe `entry` would be better.
2. For something as small and simple as the AgentRegistryEntry struct, it's ok to keep copies around. It might actually be faster than `shared_ptr`.