Repository navigation
feat: Every SDK includes reason in responses for identity and environment flags - #77
Merged
Merged
Conversation
`Flagsmith.Schemas.Flag` now has a `reason`: why the flag has its value, e.g. "STATIC", "DEFAULT", "TARGETING_MATCH; segment=premium_users" or "SPLIT; weight=60.0". Flags evaluated by the SDK, from the environment document, take the engine's reason; flags from the /identities/ API take the `reason` Flagsmith returns for each. Implements Flagsmith SDK spec v0.10.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Implemented spec v0.10.0 (flag reasons) in 415fd75. What changed
Tests
|
flagsmithsmith
Bot
requested review from
a team and
khvn26
and removed request for
a team
November 20, 2026 20:47
There was a problem hiding this comment.
All reported issues were addressed across 9 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
The fixture's header_size value comes from its 60% split, and Flagsmith reports identity overrides as "TARGETING_MATCH; segment=identity_overrides". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
0 issues found across 2 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds evaluation reason values (STATIC/SPLIT/TARGETING_MATCH) to public Flag and FeatureState SDK responses and bumps the sdk-spec workflow to v0.10.0. Exposing this new response field to all SDK consumers is a product/data-exposure decision needing human sign-off.
Turn on auto-fix | Re-trigger cubic
khvn26
approved these changes
Nov 23, 2026
khvn26
pushed a commit
that referenced
this pull request
Nov 23, 2026
🤖 I have created a release *beep* *boop* --- ## [2.7.0](v2.6.0...v2.7.0) (2026-11-23) ### Features * Every SDK includes `reason` in responses for identity and environment flags ([#77](#77)) ([4f3cdf1](4f3cdf1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributes to Flagsmith/sdk-spec#27