← Back to Pull requests

fix(flags): address OpenFeature release review feedback #1297

Closed
unknown closed this pull request without merging on Nov 18, 2026 14:57 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 20:01 UTC
Author

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 DatadogProvider API 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

  • This pull request has appropriate unit and / or integration tests

  • This pull request references a Github or JIRA issue
  • 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 |

    Diff: 317 lines (+237 / -80) across 3 files Reviewer: fuzzybinary Review duration: 11215m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.4% (MEDIUM) · Higher = larger blast radius
    40.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.0% · Safe to merge
    16.0%