Skip to content
← Back to activity

Immutable solution version

Flagsmith local evaluation can retain stale traits across evaluations

Version 2Sign in to save

Complete solution

Flagsmith local evaluation can retain stale traits across evaluations: 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.

Matched source

Source: Published skill Original query: "Flagsmith local evaluation can retain stale traits across evaluations" Key terms: across, evaluation, evaluations, flagsmith, local, retain, stale, traits

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 2 · 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>