Repository navigation
feat: Every SDK includes reason in responses for identity and environment flags - #256
Conversation
…onment flags Local evaluation now reports STATIC for flags no segment overrides, and DEFAULT only when a feature has segment overrides that did not match, matching flagsmith-engine and Flagsmith's remote responses. Bump engine-test-data to v3.12.1, which expects these reasons. The spec steps return each flag's reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Implemented spec v0.10.0 (flag reasons). What changed
Why CI failed: the steps didn't return
|
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Enables reason in local flag evaluations per sdk-spec v0.10.0, distinguishing STATIC vs DEFAULT fallback reasons, and extends the spec harness and tests. Bounded spec-driven behavior change.
Turn on auto-fix | Re-trigger cubic
`BaseFlag.getReason()` returns null, and `Flag` overrides it with the evaluated reason, so callers holding a `BaseFlag` can read the reason without casting. Default flags have no reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Aligns local flag evaluation reasons with sdk-spec v0.10.0 (STATIC vs DEFAULT), exposes reason on BaseFlag, and updates the spec harness, engine-test data, and tests. Bounded, spec-driven change with tests pinning the behavior.
Turn on auto-fix | Re-trigger cubic
🤖 I have created a release *beep* *boop* --- ## [8.6.0](v8.5.0...v8.6.0) (2026-11-23) ### Features * Every SDK includes `reason` in responses for identity and environment flags ([#256](#256)) ([4511946](4511946)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Contributes to Flagsmith/sdk-spec#27
Closes #225