Expected Behavior
Golden actor creation should be idempotent and deterministic per ActorTemplate resource lifecycle so retries recover safely without leaving orphaned actors in ateapi.
Actual Behavior
In ActorTemplateReconciler.Reconcile (PhaseInitial), golden actor IDs are generated non-deterministically using uuid.NewString().
If CreateActor succeeds but the subsequent Kubernetes status update fails, Reconcile returns an error. On retry, at.Status.Phase is still PhaseInitial. The reconciler generates a new random UUID and calls CreateActor again, leaving the actor created in the prior attempt orphaned in ateapi.
Expected Behavior
Golden actor creation should be idempotent and deterministic per
ActorTemplateresource lifecycle so retries recover safely without leaving orphaned actors inateapi.Actual Behavior
In
ActorTemplateReconciler.Reconcile(PhaseInitial), golden actor IDs are generated non-deterministically usinguuid.NewString().If
CreateActorsucceeds but the subsequent Kubernetes status update fails,Reconcilereturns an error. On retry,at.Status.Phaseis stillPhaseInitial. The reconciler generates a new random UUID and callsCreateActoragain, leaving the actor created in the prior attempt orphaned inateapi.