Struct AgentManagedDataCleanupSystem Extends ISystem
Releases the managed data of agents that have been destroyed.
AgentManagedRef is a cleanup component, so an agent that is destroyed does not disappear immediately: everything else about it is stripped, that component remains, and the entity lingers until this system removes it. That window is what lets the agent's path be released and its path tracer disposed instead of leaking.
Invariant: this system runs after AgentManagedDataRepairSystem. Reversed, it would return a slot to the free list that repair could hand to a different clone within the same frame, and a clone repaired later in that pass would deep-clone an unrelated agent's path tracer.
Running last in the group is also what lets other systems still see a destroyed agent's data during the frame it died. JobManagedOffMeshLinkTransitionCleanup depends on that to tell a state machine its link traversal was aborted.