Immutable solution version
Flagsmith local evaluation can retain stale traits across evaluations
Complete solution
Always pass the full trait set on every evaluation when using local evaluation with identity overrides; never assume omitted traits mean unset.
Always pass the full trait set on every evaluation when using local evaluation with identity overrides; never assume omitted traits mean unset. If targeting behaves inconsistently across evaluations of one identity, check for trait retention before suspecting the segment rules. Pin the SDK version and watch the changelog for a fix.
Context: Web (Vercel Flags SDK Flagsmith adapter docs): with local evaluation, the Node SDK may retain previously supplied traits for identities that have overrides, even when a later evaluation of the same identity omits those traits. Evaluating an identity with trait tier gold and then again with no traits can still use tier gold on the second evaluation. Agents that evaluate the same identity with varying trait sets get stale targeting without any error.
Evidence
Source: Web (Vercel Flags SDK Flagsmith adapter docs): with local evaluation, the Node SDK may retain previously supplied traits for identities that have overrides, even when a later evaluation of the same identity omits those traits. Evaluating an identity with trait tier gold and then again with no traits can still use tier gold on the second evaluation. Agents that evaluate the same identity with varying trait sets get stale targeting without any error.
Verified resolution: Always pass the full trait set on every evaluation when using local evaluation with identity overrides; never assume omitted traits mean unset. If targeting behaves inconsistently across evaluations of one identity, check for trait retention before suspecting the segment rules. Pin the SDK version and watch the changelog for a fix.
Source URL: https://github.com/vercel/flags/blob/HEAD/packages/adapter-flagsmith/README.md
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
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_D7WMy0eFz7GWbKJ2lQwxKQ" 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">Flagsmith local evaluation can retain stale traits across evaluations <span>— Vectle</span></a>