Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: launchdarkly/openfeature-ruby-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.2.0
Choose a base ref
...
head repository: launchdarkly/openfeature-ruby-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.3.0
Choose a head ref
  • 12 commits
  • 20 files changed
  • 5 contributors

Commits on Apr 2, 2026

  1. chore: update Ruby version from 3.1 to 3.4 in workflows and README (#22)

    **Requirements**
    
    - [ ] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's [pull request submission
    guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests)
    - [x] I have validated my changes against all supported platform
    versions
    
    **Related issues**
    
    - [Failing CI
    job](https://github.com/launchdarkly/openfeature-ruby-server/actions/runs/23911603051/job/69734764063)
    — `Bundler found conflicting requirements for the Ruby version` when
    running with Ruby 3.1.7.
    
    **Describe the solution you've provided**
    
    The `openfeature-sdk ~> 0.6.0` dependency requires Ruby >= 3.4, and the
    gemspec's `required_ruby_version` was already updated to `>= 3.4` in
    #16. However, three workflows and the README still referenced Ruby 3.1:
    
    1. **`release-please.yml`** — used `ruby-version: 3.1` for the CI step
    during release → updated to `3.4`
    2. **`manual-publish.yml`** — used `ruby-version: 3.1` for the
    build-and-test step → updated to `3.4`
    3. **`manual-publish-docs.yml`** — used `ruby-version: 3.1` for
    `setup-ruby` → updated to `3.4`
    4. **`README.md`** — stated "Ruby 3.1 and above" → updated to "Ruby 3.4
    and above"
    
    **Describe alternatives you've considered**
    
    - **Widening `openfeature-sdk` to `~> 0.4`** to restore Ruby 3.1
    support: Rejected per reviewer feedback — the intent is to keep
    `openfeature-sdk ~> 0.6.0` and require Ruby 3.4+.
    
    **Additional context**
    
    The `ci.yml` workflow was already updated to Ruby 3.4 in #16; only the
    release/publish workflows were missed.
    
    **Human review checklist**
    
    - [ ] Verify no other files still reference Ruby 3.1 (e.g. grep for
    `3.1` across `.github/`)
    
    Link to Devin session:
    https://app.devin.ai/sessions/0a8e066ab2c447618bcefa0be007594a
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Low Risk**
    > Low risk: updates only CI/release GitHub Actions configuration and
    README text, with no runtime code changes. Main risk is CI/publish
    failures if Ruby 3.4 environment assumptions differ from prior runs.
    > 
    > **Overview**
    > Aligns automation and documentation with the project’s Ruby 3.4+
    requirement by updating GitHub Actions workflows to run build/test,
    release, and docs publishing using Ruby `3.4` instead of `3.1`.
    > 
    > Updates the README to state support for Ruby `3.4` and above.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    53daf5e. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    ---------
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Apr 2, 2026
    Configuration menu
    Copy the full SHA
    8d6aac8 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2026

  1. Configuration menu
    Copy the full SHA
    927774f View commit details
    Browse the repository at this point in the history

Commits on May 8, 2026

  1. ci: grant pull-requests:read so lint-pr-title workflow starts (#24)

    ## Summary
    
    Adds `permissions: pull-requests: read` at the workflow level in
    `.github/workflows/lint-pr-title.yml`.
    
    The reusable workflow at
    `launchdarkly/gh-actions/.github/workflows/lint-pr-title.yml@main` was
    updated (launchdarkly/gh-actions#86) to declare `permissions:
    pull-requests: read` at the job level. A reusable workflow can only
    request a subset of the permissions the caller grants, so without an
    explicit `permissions` block in the caller, every run hits
    `startup_failure`. Same fix as launchdarkly/sdk-meta#429.
    
    ## Review & Testing Checklist for Human
    
    - [ ] Verify the `Lint PR title` workflow run on this PR exits `success`
    rather than `startup_failure`
    
    ### Notes
    
    No product code is changed — workflow-only permissions fix being applied
    across SDK repos that use the reusable `lint-pr-title` workflow.
    
    Link to Devin session:
    https://app.devin.ai/sessions/c7b96da5c9074500aa684bc9a9ba1c31
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Low Risk**
    > Low risk: this only adjusts GitHub Actions workflow permissions and
    does not touch product code. The main impact is on CI behavior (enabling
    the reusable lint workflow to start successfully).
    > 
    > **Overview**
    > Updates the `Lint PR title` GitHub Actions workflow to explicitly
    grant `pull-requests: read` permissions at the workflow level so the
    reusable `lint-pr-title` workflow can run without `startup_failure` on
    `pull_request_target` events.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    3bae391. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored May 8, 2026
    Configuration menu
    Copy the full SHA
    1e061db View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2026

  1. Configuration menu
    Copy the full SHA
    c5fc25a View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2026

  1. Update SECURITY.md to reflect bug bounty program (#25)

    ## Summary
    
    Updates `SECURITY.md` to direct security reporters to LaunchDarkly's Bug
    Bounty program.
    
    ## Changes
    
    - Security issues should be reported through the [Bug Bounty
    program](https://bugcrowd.com/engagements/launchdarkly-mbb-og) rather
    than via GitHub Issues or PRs
    - Clarifies that valid security issues may be eligible for a bounty
    
    This is a cross-repository update to standardize security reporting
    instructions across LaunchDarkly repositories.
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Low Risk**
    > Documentation-only change to security reporting instructions; no
    application or infrastructure code is modified.
    > 
    > **Overview**
    > **`SECURITY.md`** is updated so security reporting matches
    LaunchDarkly’s current process across repos.
    > 
    > The doc now **boldly warns** not to file GitHub Issues or PRs for
    vulnerabilities, with clearer rationale about public exposure. Reporting
    is directed to the **Bugcrowd** [Bug Bounty
    program](https://bugcrowd.com/engagements/launchdarkly-mbb-og) instead
    of the previous **HackerOne** link, and a line is added asking reporters
    **not to contact LaunchDarkly staff directly**.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    c5fc25a. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    kparkinson-ld authored Jun 4, 2026
    Configuration menu
    Copy the full SHA
    1d9c468 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2026

  1. feat: Support OpenFeature tracking (#27)

    Implements the OpenFeature tracking API in the Ruby provider so
    experimentation metric events reach LaunchDarkly.
    
    - Adds `Provider#track`, mapping `TrackingEventDetails#fields` to the LD
    custom event `data` and `#value` to `metric_value`.
    - A `track` call without an evaluation context logs a warning and sends
    nothing, since LaunchDarkly requires a context to associate the event
    with.
    - Raises the `openfeature-sdk` floor to `>= 0.6.1` (`< 0.7.0`);
    `TrackingEventDetails` and `Client#track` do not exist in 0.6.0.
    
    <details>
    <summary>Implementation details</summary>
    
    **Requirements**
    
    - [x] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's pull request submission
    guidelines
    - [x] I have validated my changes against all supported platform
    versions
    
    **Related issues**
    
    Part of an audit of the LaunchDarkly OpenFeature providers against the
    current OpenFeature specification. Tracking (spec section 6) was
    unimplemented here, and per spec 6.1.4 the OpenFeature SDK silently
    no-ops when a provider lacks `track`, so events were being dropped
    without any error.
    
    **Describe the solution you've provided**
    
    `OpenFeature::SDK::Client#track` forwards to `provider.track(name,
    evaluation_context:, tracking_event_details:)`. The provider converts
    the evaluation context with the existing `EvaluationContextConverter`
    and calls `LDClient#track(event_name, context, data, metric_value)`.
    Empty `fields` are normalized to `nil` so no empty hash is attached to
    the event.
    
    **Describe alternatives you've considered**
    
    Sending the event with an anonymous/placeholder context when no
    evaluation context is supplied — rejected, because it would attribute
    metric events to a context the application never used. Warning and
    dropping matches the behavior of the Python provider.
    
    **Testing**
    
    `bundle exec rake` (RSpec + RuboCop) on Ruby 3.4: 57 examples, 0
    failures; 12 files inspected, no offenses. Ruby 3.4 was used because the
    gemspec requires `>= 3.4`.
    
    </details>
    
    @cursor review
    
    
    Link to Devin session:
    https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Overview**
    > Implements OpenFeature **tracking** on the Ruby provider so experiment
    metric events reach LaunchDarkly instead of being silently dropped.
    > 
    > `Provider#track` converts the evaluation context and maps
    `TrackingEventDetails#fields` to LD event `data` and `#value` to
    `metric_value`. Calls without a context log a warning and send nothing
    (LD requires a context). Empty `fields` are sent as `nil`.
    > 
    > Bumps `openfeature-sdk` from `~> 0.6.0` to `~> 0.6.1` because tracking
    types/APIs are not in 0.6.0. Specs cover context, details, and the
    no-context no-op.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    fd471ea. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    ---------
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Aug 21, 2026
    Configuration menu
    Copy the full SHA
    709f52d View commit details
    Browse the repository at this point in the history
  2. feat: Support provider initialization and shutdown (#28)

    Implements the OpenFeature provider lifecycle hooks so the OpenFeature
    SDK can reflect LaunchDarkly initialization failures and release
    resources.
    
    - Adds `Provider#init`, which raises when the LaunchDarkly client did
    not initialize, so the OpenFeature SDK moves the provider to `ERROR`
    instead of reporting `READY`.
    - Adds `Provider#shutdown`, which closes the LaunchDarkly client when
    the provider is replaced or `OpenFeature::SDK.shutdown` is called.
    - The LaunchDarkly client is still created in the constructor, matching
    the Java provider; a client cannot be restarted, so a new provider
    instance is required after shutdown.
    
    <details>
    <summary>Implementation details</summary>
    
    **Requirements**
    
    - [x] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's pull request submission
    guidelines
    - [x] I have validated my changes against all supported platform
    versions
    
    **Related issues**
    
    Part of an audit of the LaunchDarkly OpenFeature providers against the
    current OpenFeature specification. Provider lifecycle (spec sections 2.4
    / 1.7) was unimplemented here: initialization failures were invisible to
    the OpenFeature SDK, and shutting down the OpenFeature SDK leaked the
    LaunchDarkly client's connections and event processor.
    
    **Describe the solution you've provided**
    
    `OpenFeature::SDK::Configuration` calls `init` on providers that respond
    to it and dispatches `PROVIDER_READY` on success, or `PROVIDER_ERROR`
    when `init` raises; it calls `shutdown` on providers that respond to it.
    `init` uses `LDClient#initialized?` and includes the data source state
    from `data_source_status_provider` in the raised error message for
    diagnosability.
    
    **Describe alternatives you've considered**
    
    Deferring LaunchDarkly client construction to `init` — rejected because
    it would change the meaning of the existing public `client` accessor and
    the constructor's `wait_for_seconds` argument. Blocking inside `init` on
    a data source status listener — rejected as redundant, since the
    constructor already waits, and later state changes are better delivered
    as provider events.
    
    **Testing**
    
    `bundle exec rake` (RSpec + RuboCop) on Ruby 3.4: 57 examples, 0
    failures; 12 files inspected, no offenses. Ruby 3.4 was used because the
    gemspec requires `>= 3.4`.
    
    </details>
    
    @cursor review
    
    
    Link to Devin session:
    https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Overview**
    > Implements **OpenFeature provider lifecycle** hooks so the SDK can
    surface LaunchDarkly init failures and release resources on teardown.
    > 
    > **`init`** runs after the constructor has already waited on the LD
    client; if `initialized?` is false, it raises with the data source state
    so OpenFeature reports `PROVIDER_ERROR` instead of `READY`.
    **`shutdown`** calls `@client.close` when the provider is replaced or
    the SDK shuts down (a new provider instance is required afterward,
    matching the Java provider).
    > 
    > Specs cover successful init, failed init, and shutdown closing the
    client.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    f45d6c6. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Aug 21, 2026
    Configuration menu
    Copy the full SHA
    27df803 View commit details
    Browse the repository at this point in the history
  3. feat: Emit provider events from LaunchDarkly client status (#29)

    Forwards LaunchDarkly client status and flag change notifications to the
    OpenFeature SDK as provider events.
    
    - The provider now includes `OpenFeature::SDK::Provider::EventEmitter`
    and registers listeners on the LaunchDarkly data source status provider
    and flag tracker.
    - `VALID` emits `PROVIDER_READY`, `INTERRUPTED` emits `PROVIDER_STALE`,
    and `OFF` emits `PROVIDER_ERROR` with the `GENERAL` error code and the
    last error in the message.
    - `OFF` deliberately does not use `PROVIDER_FATAL`: the LaunchDarkly
    client can still evaluate its last known flag data, and a fatal state
    would make the OpenFeature SDK return call-site defaults instead.
    - Flag changes emit `PROVIDER_CONFIGURATION_CHANGED` with the changed
    flag key.
    
    <details>
    <summary>Implementation details</summary>
    
    **Requirements**
    
    - [x] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's pull request submission
    guidelines
    - [x] I have validated my changes against all supported platform
    versions
    
    **Related issues**
    
    Part of an audit of the LaunchDarkly OpenFeature providers against the
    current OpenFeature specification. Provider events (spec section 5) were
    not implemented here, so applications had no way to react to
    LaunchDarkly connection loss, recovery, or flag configuration changes
    through the OpenFeature API.
    
    **Describe the solution you've provided**
    
    Two small listener classes in `Impl` translate LaunchDarkly
    notifications into OpenFeature events, and the provider registers them
    when the client is constructed. `EventEmitter#emit_event` is a no-op
    until the OpenFeature SDK attaches its configuration to the provider, so
    events raised before the provider is set are safely dropped.
    
    **Describe alternatives you've considered**
    
    Mapping `OFF` to `PROVIDER_FATAL` — rejected for the reason above; this
    matches the Java provider and the corresponding fix being made in the
    Python provider. Emitting one event per changed flag with no payload —
    rejected in favor of including `flags_changed` so handlers can filter.
    
    **Testing**
    
    `bundle exec rake` (RSpec + RuboCop) on Ruby 3.4: 59 examples, 0
    failures; 15 files inspected, no offenses. Ruby 3.4 was used because the
    gemspec requires `>= 3.4`.
    
    </details>
    
    @cursor review
    
    
    Link to Devin session:
    https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Overview**
    > Implements **OpenFeature provider events** (spec section 5) so apps
    can react to LaunchDarkly connection state and flag updates through the
    OpenFeature API.
    > 
    > The **Provider** now includes
    `OpenFeature::SDK::Provider::EventEmitter` and registers two listeners
    when the LD client is constructed: on `data_source_status_provider` and
    `flag_tracker`.
    > 
    > **Data source status** maps to events: `VALID` → `PROVIDER_READY`,
    `INTERRUPTED` → `PROVIDER_STALE` (with message), `OFF` →
    `PROVIDER_ERROR` with `GENERAL` and last error details in the
    message—not `PROVIDER_FATAL`, so evaluation can still use last-known
    flags. `INITIALIZING` emits nothing.
    > 
    > **Flag changes** emit `PROVIDER_CONFIGURATION_CHANGED` with
    `flags_changed` containing the changed key.
    > 
    > New `Impl::DataSourceStatusListener` and `Impl::FlagChangeListener`
    translate LD notifications into `emit_event` calls; specs cover each
    mapping.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    dc2ae67. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Aug 21, 2026
    Configuration menu
    Copy the full SHA
    1b53b0c View commit details
    Browse the repository at this point in the history
  4. feat: Report provider name and version to LaunchDarkly (#30)

    Reports the provider as the wrapper so LaunchDarkly can attribute usage
    to the OpenFeature Ruby provider rather than the base Ruby SDK.
    
    - The provider derives its client configuration with
    `Config#with_wrapper_information("open-feature-ruby-server", VERSION)`,
    leaving the application's configuration untouched.
    - Requires `launchdarkly-server-sdk ~> 8.15`, the release that adds
    `Config#with_wrapper_information` (launchdarkly/ruby-server-sdk#421).
    That version is now published, so dependency resolution succeeds.
    
    <details>
    <summary>Implementation details</summary>
    
    **Requirements**
    
    - [x] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's pull request submission
    guidelines
    - [x] I have validated my changes against all supported platform
    versions
    
    **Related issues**
    
    Part of an audit of the LaunchDarkly OpenFeature providers against the
    current OpenFeature specification. The Java and .NET providers already
    identify themselves via wrapper info; the Ruby provider did not, so
    usage of this provider was indistinguishable from direct use of the Ruby
    server SDK.
    
    **Describe the solution you've provided**
    
    `Config` exposes `wrapper_name`/`wrapper_version` as readers only, so
    the base SDK gained a supported way to derive a configuration with
    different wrapper information. The provider calls it when constructing
    its client.
    
    **Describe alternatives you've considered**
    
    Setting the configuration's instance variables from the provider —
    rejected, as the provider must not depend on SDK internals. Rebuilding
    the configuration from its public readers — rejected because it would
    silently drop configuration options the provider does not know about.
    
    **Testing**
    
    `bundle exec rake` (RSpec + RuboCop) on Ruby 3.4: 55 examples, 0
    failures; 12 files inspected, no offenses. CI now resolves against the
    published 8.15.0 gem.
    
    </details>
    
    
    Link to Devin session:
    https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Overview**
    > The OpenFeature Ruby provider now identifies itself to LaunchDarkly as
    wrapper `open-feature-ruby-server` with the gem `VERSION`, so usage is
    attributed to this provider instead of the base Ruby SDK.
    > 
    > On client construction it derives config via
    `Config#with_wrapper_information` and leaves the caller’s `Config`
    unchanged. Runtime dependency is bumped to `launchdarkly-server-sdk ~>
    8.15` for that API. A spec asserts wrapper name/version are passed
    through.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    ffac4cf. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    ---------
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Aug 21, 2026
    Configuration menu
    Copy the full SHA
    c5dd94d View commit details
    Browse the repository at this point in the history
  5. feat: Populate OpenFeature flag metadata from the evaluation reason (#31

    )
    
    Populates OpenFeature flag metadata with the LaunchDarkly specific parts
    of the evaluation result, so hooks (including the OpenTelemetry hook)
    can read them.
    
    - Keys mirror the evaluation reason fields: `variationIndex`,
    `inExperiment`, `ruleIndex`, `ruleId`, `prerequisiteKey`,
    `bigSegmentsStatus`.
    - Each key is omitted rather than default-valued when it does not apply,
    so a consumer can distinguish "not in an experiment" from "no
    information".
    - Matches
    [openfeature-java-server#56](launchdarkly/openfeature-java-server#56),
    [openfeature-dotnet-server#61](launchdarkly/openfeature-dotnet-server#61)
    and
    [openfeature-python-server#53](launchdarkly/openfeature-python-server#53);
    the naming is being defined in an [sdk-specs
    spec](launchdarkly/sdk-specs#253).
    
    No screenshots or staging preview apply - this is a server-side library
    change with no UI.
    
    <details>
    <summary>Implementation details</summary>
    
    **Requirements**
    
    - [x] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's pull request submission
    guidelines
    - [x] I have validated my changes against all supported platform
    versions
    
    **Describe the solution you've provided**
    
    `ResolutionDetailsConverter#to_resolution_details` now passes
    `flag_metadata`:
    
    ```ruby
    flag_metadata: flag_metadata(reason, is_default ? nil : variation_index)
    ```
    
    Each entry is gated on the corresponding reason field being present
    rather than on the reason kind, so no key is written from a sentinel
    value. `big_segments_status` is a symbol in the Ruby SDK, so it is
    stringified to keep the metadata value types consistent with the other
    providers.
    
    The README gains a "Flag Metadata" section documenting the keys.
    
    **Describe alternatives you've considered**
    
    Exposing the reason object itself as one metadata entry would be closer
    to the LaunchDarkly shape, but OpenFeature flag metadata values are
    scalars, so the flat keys are the only available shape.
    
    **Additional context**
    
    ```
    docker run --rm -v "$PWD":/app -w /app ruby:3.4 bash -c "bundle install && bundle exec rake"
    ```
    
    61 examples, 0 failures; RuboCop clean. 7 new examples cover each key
    and the omissions.
    </details>
    
    @cursor review
    
    
    Link to Devin session:
    https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Overview**
    > OpenFeature evaluations now include LaunchDarkly-only details on
    `flag_metadata`, so hooks (including OpenTelemetry) can read them.
    > 
    > `ResolutionDetailsConverter` maps `variationIndex`, `inExperiment`,
    `ruleIndex`, `ruleId`, `prerequisiteKey`, and `bigSegmentsStatus` from
    the evaluation reason. Keys are omitted when they do not apply
    (including `inExperiment` when false, and `variationIndex` for default
    values). `bigSegmentsStatus` is stringified.
    > 
    > The README documents the keys and a usage example. Specs cover each
    field and the omission cases.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    deaf178. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Aug 21, 2026
    Configuration menu
    Copy the full SHA
    e6ef78a View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2026

  1. docs: Add an OpenFeature feature matrix to the README (#33)

    Adds a feature matrix to the README mirroring the OpenFeature Ruby SDK's
    own feature table, so a reader can see at a glance what the provider
    does and does not support.
    
    - One row per OpenFeature SDK feature (providers, targeting, hooks,
    logging, domains, eventing, shutdown, tracking, transaction context
    propagation, extending), plus initialization and flag metadata.
    - Every row is currently supported following the tracking, lifecycle,
    eventing, wrapper, and flag metadata work; each note says how the
    provider implements it, or that the OpenFeature SDK provides it with no
    provider involvement.
    - The legend keeps room for `⚠️`/`❌` so unsupported rows can state
    whether the limitation is in the OpenFeature Ruby SDK or is a provider
    gap.
    
    <details>
    <summary>Implementation details</summary>
    
    **Requirements**
    
    - [x] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's pull request submission
    guidelines
    - [x] I have validated my changes against all supported platform
    versions
    
    **Related issues**
    
    Follow-up to the audit of LaunchDarkly's OpenFeature providers, which
    produced #27, #28, #29, #30 and #31 in this repository.
    
    **Describe the solution you've provided**
    
    The matrix reuses the row set and legend of the [OpenFeature Ruby SDK
    feature table](https://github.com/open-feature/ruby-sdk#-features) so
    the two can be read side by side, and so the same format can be applied
    to the other LaunchDarkly providers. Statements about eventing,
    initialization, shutdown, tracking, and flag metadata were checked
    against the current implementation in `lib/ldclient-openfeature`.
    
    **Describe alternatives you've considered**
    
    Writing a LaunchDarkly-specific row set instead of mirroring
    OpenFeature's — rejected, since the point of the matrix is comparability
    with the OpenFeature SDK table and with the other providers.
    
    **Testing**
    
    Documentation only; no code changes.
    
    **Additional context**
    
    Screenshots and a staging preview do not apply to a README change in a
    server-side library.
    
    </details>
    
    
    Link to Devin session:
    https://app.devin.ai/sessions/0c452d209ec54b068ba120b4c92b8f6c
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Overview**
    > Adds an OpenFeature **feature matrix** to the README so readers can
    see at a glance what this provider supports.
    > 
    > The table mirrors the OpenFeature Ruby SDK feature list (providers,
    targeting, hooks, logging, domains, eventing, initialization, shutdown,
    tracking, transaction context, extending, flag metadata). Every row is
    marked supported, with notes on how the provider implements it or that
    the SDK handles it. The legend leaves room for partial/unsupported rows
    later.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    898abf3. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Aug 25, 2026
    Configuration menu
    Copy the full SHA
    1775117 View commit details
    Browse the repository at this point in the history
  2. chore(main): release 0.3.0 (#32)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ##
    [0.3.0](0.2.0...0.3.0)
    (2026-08-25)
    
    
    ### Features
    
    * Emit provider events from LaunchDarkly client status
    ([#29](#29))
    ([1b53b0c](1b53b0c))
    * Populate OpenFeature flag metadata from the evaluation reason
    ([#31](#31))
    ([e6ef78a](e6ef78a))
    * Report provider name and version to LaunchDarkly
    ([#30](#30))
    ([c5dd94d](c5dd94d))
    * Support OpenFeature tracking
    ([#27](#27))
    ([709f52d](709f52d))
    * Support provider initialization and shutdown
    ([#28](#28))
    ([27df803](27df803))
    
    ---
    This PR was generated with [Release
    Please](https://github.com/googleapis/release-please). See
    [documentation](https://github.com/googleapis/release-please#release-please).
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > **Overview**
    > **Release 0.3.0** — this PR only bumps version metadata from **0.2.0**
    to **0.3.0** in `.release-please-manifest.json`,
    `lib/ldclient-openfeature/version.rb`, and the `SDK_VERSION` example in
    `PROVENANCE.md`, and adds the **0.3.0** section to `CHANGELOG.md`.
    > 
    > No provider or SDK logic changes appear in the diff. The new changelog
    entry documents features already landed on main: OpenFeature
    **tracking**, provider **initialization/shutdown**, **provider events**
    from LaunchDarkly client status, **flag metadata** from evaluation
    reason, and reporting **provider name/version** to LaunchDarkly.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    8416ff3. Bugbot is set up for automated
    code reviews on this repo. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Aug 25, 2026
    Configuration menu
    Copy the full SHA
    9600119 View commit details
    Browse the repository at this point in the history
Loading