fix(flags): address OpenFeature release review feedback #1297
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 317 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1297"
general
weight: 0.35
fuzzybinary
What and why?
Address @aarsilv's OpenFeature feedback on #1294 in a separate PR against
develop. Context changes can serve another subject's assignments, refresh can prevent recovery, and RUM hooks can miss or misreport evaluations.How?
Return defaults during targeting-key changes and retain same-key assignments by default. Add opt-in strict context switching with the boolean context attribute
dd_strict_evaluation_context_switching. Apply the same policy to the deprecated Dart client. Keep the control attribute out of Datadog assignment requests, snapshots, and telemetry. Preserve outgoing telemetry through failures and late responses. Cancel obsolete assignment loads and enforce strict retry freshness. Scope stored snapshots to site, environment, and client token; unscoped snapshots require a fresh fetch. Normalize DateTime and non-finite context attributes, repair refresh recovery, and retain safe load-error diagnostics.Align the unreleased
DatadogProviderAPI and metadata, tag final successful RUM variants, correct examples and documentation. Keep released configuration names and the storage context type; keep unreleased lifecycle types internal.Generated release-note corrections remain for the releaser workflow. Telemetry retries use increasing bounded delays with jitter, preserved across runtime handoffs. Optional performance work remains a follow-up. This PR does not update the release branch.
Review checklist
Test coverage includes strict/default switching, identity isolation, cache and late-response recovery, nested context values, telemetry retries, and RUM final-result and error guards. Additional coverage verifies cache scope, late cache and network results, strict timeouts and retries, fatal configuration consistency, null/empty targeting-key equivalence, telemetry backoff, and synchronous Flutter context propagation. The WebView native unit test target passed all four tests. Android integration and live intake delivery were not tested locally.
Validation
| Tested commit | Validation | Result |
| --- | --- | --- |
|
DataDog/dd-sdk-flutter@1604eba0bde309bd60dc4d7d67ae003a25f2ad8d| Native integration: strict/default switching through OpenFeature and Dart, identity isolation, refresh, telemetry requests, shutdown; iOS simulator, controlled HTTP | 5 passed; 0 failed or skipped. Live intake and RUM delivery not covered |