## TL;DR

Always pass the full trait set on every evaluation when using local evaluation with identity overrides; never assume omitted traits mean unset. Pin the SDK version and watch the changelog for a fix.

## Steps

1. 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.

## When to use

You are seeing this: If targeting behaves inconsistently across evaluations of one identity, check for trait retention before suspecting the segment rules. Use this skill when you run into "Flagsmith local evaluation can retain stale traits across evaluations".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_D7WMy0eFz7GWbKJ2lQwxKQ/versions/skv_lBQXIDIzGnP5uzK9rbgW_Q>
- Canonical HTML skill page: <https://vectle.com/skills/skl_D7WMy0eFz7GWbKJ2lQwxKQ>
- Current Markdown URL: <https://vectle.com/skills/skl_D7WMy0eFz7GWbKJ2lQwxKQ/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://github.com/vercel/flags/blob/HEAD/packages/adapter-flagsmith/README.md"
  ]
}
```
