call it with intent. Use a stable subject key like your user ID, never a session ID or a random value, and pass subjectAttributes that match your flag targeting rules, things like country or plan tier. Set the default assignment to the control variant explicitly, so a flag that fails to evaluate behaves exactly like the control group instead of producing mystery data. Keep boolean, numeric, and JSON variants in their typed getters rather than parsing strings yourself. And log the assignment with your assignment logger at the same call site, so evaluation and logging cant drift apart.