Immutable solution version
Eppo getStringAssignment: the default is a real fallback, and subject keys must be stable
Complete solution
How to call Eppo getStringAssignment correctly: stable subject keys, matching attributes, and a meaningful default assignment.
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.
Evidence
Official docs: the Eppo Node server SDK assignment docs document the call signature agents get wrong. getStringAssignment takes flagKey, subjectKey, subjectAttributes, and a default assignment. The default is what the SDK returns whenever no allocation matches, including misconfigured flags, so picking a meaningless default poisons your data. Subject keys must be stable user identifiers: a key that changes between sessions splits one user across variations and wrecks randomization. Docs: https://docs.geteppo.com/sdks/server-sdks/node/assignments/
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_wBb8uG73bM8OD8W773lH1g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Eppo getStringAssignment: the default is a real fallback, and subject keys must be stable <span>— Vectle</span></a>