Skip to content

feat: Dependent Flags - #5799

Draft
typotter wants to merge 5 commits into
mainfrom
typo/dependent-flags-returned-batch
Draft

typotter wants to merge 5 commits into
mainfrom
typo/dependent-flags-returned-batch

Conversation

@typotter

@typotter typotter commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Changes dependent-flag evaluation to return detached prerequisite evaluation records after the root graph completes. The provider publishes the returned batch synchronously before returning root details, while dependency exposures remain separate and transactional.

The batch retains reached successful and failed prerequisites, deduplicates memoized prerequisites, excludes the root, and remains isolated across parallel root evaluations. Root failures normalize to GENERAL while prerequisite records preserve their specific error. Agentless delivery negotiates through cap_dependent-flags-variant-key=v1, and Remote Config advertises reserved bit 50 through the same evaluator gate.

The in-process fixture runner now executes both the core and shared evaluation-suites/dependent-flags corpus, including evaluation-event and exposure expectations with noUnmatchedEvents.

Motivation

Returned telemetry preserves every reached prerequisite record across graph failures without coupling non-transactional evaluation events to transactional exposure behavior. Shared-corpus execution keeps graph failures, memoization, depth, and exposure rollback conformant across SDKs.

Validation

  • go test ./openfeature -run 'TestEvaluateFlag_JSONFixtures/Dependent' -count=1 -v — 14/14 dependent cases passed.
  • go test ./internal/openfeature ./internal/remoteconfig ./openfeature — passed.
  • go test -race ./openfeature — passed.
  • Lazy malformed-depth logging regression — passed.
  • git diff --check — passed.

Reviewer's checklist

  • Changed code has unit and shared-corpus coverage.
  • System tests covering this feature have been enabled with a development version tag.
  • Ordinary-root fast-path benchmark coverage remains in place.
  • New code is free of formatting errors.
  • Existing OpenFeature package tests pass.

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Pipelines  Tests

✨ Unblock PR with BitsAI

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 2 Pipeline jobs failed

DDCI - DataDog/dd-trace-go | pr-performance-gates — 🔧 Needs a code fix, caused by this PR

View more details · View in DDCI

DataDog/apm-reliability/dd-trace-go | pr-performance-gates — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

⚠️ Warnings

❄️ 1 New flaky test detected

↳ TestParseMaxDependencyDepthBoundsAdversarialExponents from github.com/DataDog/dd-trace-go/v2/openfeature

View in Flaky Test Management

ℹ️ Info

No other issues found (see more)

🧪 All tests passed

🎯 Code Coverage (details)
• Patch Coverage: 91.25%
• Overall Coverage: 74.10% (+0.09%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: b1a2c25 | Docs | View more details | Give us feedback!

@dd-octo-sts dd-octo-sts Bot mentioned this pull request Nov 3, 2026
@pr-commenter

pr-commenter Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-11-18 02:05:40

Comparing candidate commit b1a2c25 in PR branch typo/dependent-flags-returned-batch with baseline commit c6e4312 in branch main.

📊 Benchmarking dashboard

Found 8 performance improvements and 45 performance regressions! Performance is the same for 362 metrics, 1 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:BenchmarkBooleanEvaluation

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+149.282ns; +154.558ns] or [+18.614%; +19.272%]

scenario:BenchmarkBooleanEvaluationOptOut

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+146.176ns; +152.484ns] or [+23.503%; +24.517%]

scenario:BenchmarkConcurrentEvaluations

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+139.806ns; +157.754ns] or [+17.550%; +19.803%]

scenario:BenchmarkEvaluation

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+141.648ns; +148.852ns] or [+17.606%; +18.502%]

scenario:BenchmarkEvaluationWithVaryingContextSize/10fields

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+128.938ns; +157.282ns] or [+15.459%; +18.857%]

scenario:BenchmarkEvaluationWithVaryingContextSize/1field

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+135.513ns; +156.907ns] or [+17.105%; +19.806%]

scenario:BenchmarkEvaluationWithVaryingContextSize/20fields

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+129.557ns; +159.783ns] or [+15.543%; +19.170%]

scenario:BenchmarkEvaluationWithVaryingContextSize/5fields

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+132.991ns; +159.549ns] or [+16.802%; +20.157%]

scenario:BenchmarkEvaluationWithVaryingFlagCounts/100flags

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+135.276ns; +164.744ns] or [+16.608%; +20.226%]

scenario:BenchmarkEvaluationWithVaryingFlagCounts/10flags

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+137.684ns; +166.216ns] or [+16.946%; +20.458%]

scenario:BenchmarkEvaluationWithVaryingFlagCounts/50flags

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+135.271ns; +163.109ns] or [+16.603%; +20.019%]

scenario:BenchmarkEvaluationWithVaryingFlagCounts/5flags

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+128.023ns; +154.237ns] or [+16.124%; +19.425%]

scenario:BenchmarkFloatEvaluation

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+153.949ns; +159.471ns] or [+16.903%; +17.509%]

scenario:BenchmarkIntEvaluation

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+29.787%; +29.787%]
  • 🟥 allocations [+1; +1] or [+20.000%; +20.000%]
  • 🟥 execution_time [+142.403ns; +150.817ns] or [+17.491%; +18.525%]

scenario:BenchmarkOpenFeatureClientConcurrentEvaluations

  • 🟩 allocated_mem [-912 bytes; -912 bytes] or [-24.945%; -24.945%]
  • 🟩 allocations [-6; -6] or [-19.355%; -19.355%]
  • 🟩 execution_time [-830.772ns; -780.428ns] or [-15.144%; -14.226%]

scenario:BenchmarkOpenFeatureClientEvaluation

  • 🟩 allocated_mem [-912 bytes; -912 bytes] or [-24.945%; -24.945%]
  • 🟩 allocations [-6; -6] or [-19.355%; -19.355%]
  • 🟩 execution_time [-866.586ns; -816.414ns] or [-15.741%; -14.830%]

scenario:BenchmarkPayloadVersions/simple_1000spans/v1.0

  • 🟩 allocated_mem [-1 bytes; -1 bytes] or [-2.941%; -2.941%]
  • 🟩 execution_time [-5.033µs; -4.447µs] or [-3.558%; -3.143%]

scenario:BenchmarkStringEvaluation

  • 🟥 allocated_mem [+112 bytes; +112 bytes] or [+28.571%; +28.571%]
  • 🟥 allocations [+1; +1] or [+16.667%; +16.667%]
  • 🟥 execution_time [+131.893ns; +137.367ns] or [+15.776%; +16.431%]

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:BenchmarkContextWithSpan/detach-no-snapshot

  • unstable execution_time [-1.726ns; +1.364ns] or [-5.886%; +4.652%]

@aarsilv aarsilv added the crucible: reviewing A Crucible review has started; this PR has reviewer attention. label Nov 4, 2026
@typotter
typotter requested a balanced review from Copilot November 4, 2026 19:24
@typotter typotter changed the title refactor(openfeature): return dependency telemetry batches feat: Dependent Flags Nov 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved findings identify shared mutable prerequisite errors, a scalar metadata contract violation, cache behavior that suppresses customer exposures, and unnecessary context copying.

4 open issues
What changed in this PR

This PR adds dependent-flag evaluation to the OpenFeature provider and returns prerequisite telemetry as detached batches after graph evaluation, separate from transactional exposure tracking.

Changes:

  • Adds dependency validation, depth limits, memoization, and exposure rollback.
  • Publishes prerequisite telemetry synchronously and enforces public evaluation type checks.
  • Advertises agentless dependency support and adds graph, telemetry, isolation, and performance tests.
File Description
openfeature/​types.go Adds dependency conditions and evaluator parameter decoding.
openfeature/​remoteconfig.go Validates dependency conditions and string-list values.
openfeature/​provider.go Publishes telemetry batches and checks requested flag types.
openfeature/​flageval_pii_test.go Updates calls for the evaluator signature.
openfeature/​exposure_hook.go Processes committed prerequisite exposures.
openfeature/​evaluator.go Implements dependency traversal, batching, and exposure rollback.
openfeature/​evaluator_test.go Updates fixtures and tests type-agnostic evaluation.
openfeature/​dependent_flags_test.go Adds dependency behavior tests and a wide-graph benchmark.
openfeature/​debug_logging_test.go Updates internal object-evaluation expectations.
openfeature/​agentless_source.go Advertises dependent-flag capability.
openfeature/​agentless_source_httptest_test.go Verifies the capability header.

Review effort: Balanced

Comment thread openfeature/evaluator.go Resolved
Comment thread openfeature/evaluator.go Resolved
Comment thread openfeature/exposure_hook.go Resolved
Comment thread openfeature/provider.go Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

With consent enabled, prerequisite logging copies the full caller context before queue admission and field-cap checks, adding synchronous work and allocations even when records or context are discarded.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Avoid copying full context before log admission checks

openfeature/​provider.go:1091

With consent enabled, this copies the entire caller context once per prerequisite before the logging writer checks for a stopped/full queue or applies its 256-field cap (flageval_logging.go:627–663, 737–739). This adds O(prerequisites × context fields) work and allocations to synchronous evaluation even when every logging record or its context is discarded. Move context construction behind the writer's admission checks and use its bounded snapshot path, optionally sharing a snapshot across the batch while preserving drop and truncation counters.

4 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Repeated caller-context processing for prerequisite exposures creates avoidable overhead, while missing nested JSON mutation-isolation tests leave the detached-batch guarantee insufficiently covered.

No open issues 🎉

2 previously missed issues

In code that hasn't changed since last review

Medium severity Test deep-copy isolation for nested JSON prerequisite values

openfeature/​evaluator.go:932

The mutation-isolation tests use only BOOLEAN prerequisite values, leaving recursive copying of JSON maps and slices untested. A shallow-copy regression here would therefore pass those tests while violating the detached-batch guarantee. Add a JSON prerequisite with nested maps, []any, and []string; mutate them in a publisher that panics, and verify that the returned batch, other records, and configured variant remain unchanged.

Medium severity Reuse one detached context snapshot across exposure events

openfeature/​exposure_hook.go:152

Each eligible prerequisite calls makeExposureEvent, which copies, recursively flattens, and filters the same caller context before exposure-cache deduplication. With 512 eligible prerequisites and an eligible root, this performs 513 context walks even on cache hits, and buffers separate attribute maps for newly admitted exposures. Create one lazy, detached subject-attribute snapshot per root evaluation and reuse it read-only for both prerequisite events and the root event at line 108.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The deduplication cache is committed before the attribute snapshot succeeds, so a recovered Stringer panic can suppress later identical exposures and customer ShouldSend() calls without ever buffering an event.

1 open issue

Review effort: Balanced

Comment thread openfeature/exposure.go Resolved
Comment thread openfeature/agentless_source.go Resolved
Comment thread openfeature/provider.go Resolved
Comment thread openfeature/exposure_hook.go Resolved
Comment thread openfeature/evaluator.go Resolved
Comment thread openfeature/dependent_flags_test.go Resolved
Comment thread openfeature/provider.go Resolved

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: FAIL

Shutting down an older provider after Remote Config restarts can remove a tracing subscription on the replacement client. Agentless capability negotiation also bypasses the URL-size fallback for near-limit flag selections.

Open Bits AI session

🤖 Bits Code Review · Commit 2ac520e

Comment thread internal/openfeature/rc_subscription.go Resolved
Comment thread openfeature/agentless_source.go Resolved
typotter and others added 4 commits November 17, 2026 19:04
Pin the shared evaluator fixtures used by the dependent-flags conformance suite.

Environment: Datadog workspace

Co-Authored-By: Codex GPT-5 <noreply@localhost>

Co-authored-by: tyler.potter <tyler.potter@datadoghq.com>
Add recursive prerequisite evaluation with returned telemetry and transactional exposure handling. Advertise evaluator support through query negotiation and Remote Config capability reporting.

Environment: Datadog workspace

Co-Authored-By: Codex GPT-5 <noreply@localhost>

Co-authored-by: tyler.potter <tyler.potter@datadoghq.com>
Bind Remote Config subscription tokens to their issuing client so stale provider shutdown cannot affect a replacement client. Validate flag-selection length after capability negotiation and fall back to the full configuration at the URL boundary.

Environment: Datadog workspace

Co-Authored-By: Codex GPT-5 <noreply@localhost>

Co-authored-by: tyler.potter <tyler.potter@datadoghq.com>
Build request products and capabilities from one lock-consistent registration snapshot so concurrent subscriptions cannot be partially advertised. Canonicalize dependent-flag query negotiation to one v1 value while preserving unrelated raw query bytes.

Environment: Datadog workspace

Co-Authored-By: Codex GPT-5 <noreply@localhost>

Co-authored-by: tyler.potter <tyler.potter@datadoghq.com>
@typotter
typotter force-pushed the typo/dependent-flags-returned-batch branch from 2ac520e to 8344dcf Compare November 18, 2026 01:04
@typotter
typotter requested a review from a team as a code owner November 18, 2026 01:04
@github-actions

Copy link
Copy Markdown
Contributor

Config Audit

PACKAGE: contrib/cloud.google.com/go/pubsubtrace
  STATUS      CONFIG                                            CALL_SITES
  UNMIGRATED  DD_GOOGLE_CLOUD_PUBSUB_PROPAGATION_AS_SPAN_LINKS  1

PACKAGE: contrib/confluentinc/confluent-kafka-go/kafkatrace
  STATUS      CONFIG                            CALL_SITES
  UNMIGRATED  DD_TRACE_KAFKA_ANALYTICS_ENABLED  1

PACKAGE: crashtracker
  STATUS      CONFIG                    CALL_SITES
  STILL_READ  DD_API_KEY                1
  STILL_READ  DD_SITE                   1
  STILL_READ  DD_TAGS                   1
  UNMIGRATED  DD_CRASHTRACKING_ENABLED  1

PACKAGE: ddtrace/opentelemetry/log
  STATUS      CONFIG                    CALL_SITES
  STILL_READ  DD_ENV                    1
  STILL_READ  DD_SERVICE                1
  STILL_READ  DD_TAGS                   1
  STILL_READ  DD_TRACE_REPORT_HOSTNAME  1
  STILL_READ  DD_VERSION                1
  UNMIGRATED  DD_HOSTNAME               1
  UNMIGRATED  OTEL_RESOURCE_ATTRIBUTES  1
  UNMIGRATED  OTEL_SERVICE_NAME         1

PACKAGE: ddtrace/opentelemetry/metric
  STATUS      CONFIG                    CALL_SITES
  STILL_READ  DD_ENV                    1
  STILL_READ  DD_METRICS_OTEL_ENABLED   1
  STILL_READ  DD_SERVICE                1
  STILL_READ  DD_TAGS                   1
  STILL_READ  DD_TRACE_REPORT_HOSTNAME  1
  STILL_READ  DD_VERSION                1
  STILL_READ  OTEL_METRICS_EXPORTER     1
  UNMIGRATED  DD_HOSTNAME               1
  UNMIGRATED  OTEL_RESOURCE_ATTRIBUTES  1
  UNMIGRATED  OTEL_SERVICE_NAME         1

PACKAGE: ddtrace/tracer
  STATUS      CONFIG                                    CALL_SITES
  STILL_READ  DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT     1
  STILL_READ  DD_TRACE_PROPAGATION_EXTRACT_FIRST        1
  STILL_READ  DD_TRACE_PROPAGATION_STYLE_EXTRACT        1
  STILL_READ  DD_TRACE_PROPAGATION_STYLE_INJECT         1
  UNMIGRATED  DD_APM_TRACING_ENABLED                    1
  UNMIGRATED  DD_TRACE_128_BIT_TRACEID_LOGGING_ENABLED  1
  UNMIGRATED  DD_TRACE_DEBUG_SEELOG_WORKAROUND          1
  UNMIGRATED  OTEL_TRACES_SAMPLER_ARG                   1

PACKAGE: instrumentation
  STATUS      CONFIG                                       CALL_SITES
  STILL_READ  DD_DATA_STREAMS_ENABLED                      1
  UNMIGRATED  DD_API_SECURITY_ENDPOINT_COLLECTION_ENABLED  1

PACKAGE: instrumentation/graphql
  STATUS      CONFIG                             CALL_SITES
  UNMIGRATED  DD_TRACE_GRAPHQL_ERROR_EXTENSIONS  1

PACKAGE: instrumentation/httptrace
  STATUS      CONFIG                                                 CALL_SITES
  UNMIGRATED  DD_GOOGLE_CLOUD_PUBSUB_PROPAGATION_AS_SPAN_LINKS       1
  UNMIGRATED  DD_HTTP_SERVER_TAG_QUERY_STRING_SIZE                   1
  UNMIGRATED  DD_TRACE_BAGGAGE_TAG_KEYS                              1
  UNMIGRATED  DD_TRACE_CLIENT_IP_ENABLED                             1
  UNMIGRATED  DD_TRACE_HTTP_SERVER_ERROR_STATUSES                    1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_ALLOWLIST               1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_ALLOWLIST_CLIENT        1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_ALLOWLIST_SERVER        1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_DISABLED                1
  UNMIGRATED  DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED               1
  UNMIGRATED  DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP               2
  UNMIGRATED  DD_TRACE_RESOURCE_RENAMING_ALWAYS_SIMPLIFIED_ENDPOINT  1
  UNMIGRATED  DD_TRACE_RESOURCE_RENAMING_ENABLED                     1

PACKAGE: instrumentation/internal/namingschema
  STATUS      CONFIG                                             CALL_SITES
  STILL_READ  DD_SERVICE                                         1
  UNMIGRATED  DD_TRACE_REMOVE_INTEGRATION_SERVICE_NAMES_ENABLED  1

PACKAGE: internal
  STATUS      CONFIG                         CALL_SITES
  STILL_READ  DD_AGENT_HOST                  1
  STILL_READ  DD_TAGS                        1
  STILL_READ  DD_TRACE_AGENT_PORT            1
  STILL_READ  DD_TRACE_AGENT_URL             1
  UNMIGRATED  DD_EXTERNAL_ENV                1
  UNMIGRATED  DD_GIT_COMMIT_SHA              1
  UNMIGRATED  DD_GIT_REPOSITORY_URL          1
  UNMIGRATED  DD_TRACE_GIT_METADATA_ENABLED  1

PACKAGE: internal/appsec
  STATUS      CONFIG           CALL_SITES
  UNMIGRATED  DD_APPSEC_RULES  1

PACKAGE: internal/appsec/config
  STATUS      CONFIG                                                CALL_SITES
  UNMIGRATED  DD_API_SECURITY_DOWNSTREAM_BODY_ANALYSIS_SAMPLE_RATE  1
  UNMIGRATED  DD_API_SECURITY_ENABLED                               1
  UNMIGRATED  DD_API_SECURITY_MAX_DOWNSTREAM_REQUEST_BODY_ANALYSIS  1
  UNMIGRATED  DD_API_SECURITY_PROXY_SAMPLE_RATE                     1
  UNMIGRATED  DD_API_SECURITY_REQUEST_SAMPLE_RATE                   1
  UNMIGRATED  DD_API_SECURITY_SAMPLE_DELAY                          1
  UNMIGRATED  DD_APM_TRACING_ENABLED                                1
  UNMIGRATED  DD_APPSEC_AGENTIC_ONBOARDING                          1
  UNMIGRATED  DD_APPSEC_DISABLE_FEATURES                            1
  UNMIGRATED  DD_APPSEC_ENABLED                                     2
  UNMIGRATED  DD_APPSEC_MAX_STACK_TRACE_DEPTH                       1
  UNMIGRATED  DD_APPSEC_RASP_ENABLED                                1
  UNMIGRATED  DD_APPSEC_RULES                                       1
  UNMIGRATED  DD_APPSEC_SCA_ENABLED                                 1
  UNMIGRATED  DD_APPSEC_STACK_TRACE_ENABLED                         1
  UNMIGRATED  DD_APPSEC_TRACE_RATE_LIMIT                            1
  UNMIGRATED  DD_APPSEC_WAF_TIMEOUT                                 1

PACKAGE: internal/bazel
  STATUS      CONFIG                                  CALL_SITES
  UNMIGRATED  DD_TEST_OPTIMIZATION_MANIFEST_FILE      1
  UNMIGRATED  DD_TEST_OPTIMIZATION_PAYLOADS_IN_FILES  1

PACKAGE: internal/civisibility/envconfig
  STATUS      CONFIG                   CALL_SITES
  STILL_READ  DD_CIVISIBILITY_ENABLED  1

PACKAGE: internal/civisibility/integrations
  STATUS      CONFIG                                               CALL_SITES
  STILL_READ  DD_SERVICE                                           1
  STILL_READ  DD_TRACE_DEBUG                                       1
  UNMIGRATED  DD_CIVISIBILITY_CODE_COVERAGE_REPORT_UPLOAD_ENABLED  1
  UNMIGRATED  DD_CIVISIBILITY_DYNAMIC_ATR_BUCKETS                  1
  UNMIGRATED  DD_CIVISIBILITY_DYNAMIC_ATR_ENABLED                  1
  UNMIGRATED  DD_CIVISIBILITY_EARLY_FLAKE_DETECTION_ENABLED        1
  UNMIGRATED  DD_CIVISIBILITY_EARLY_FLAKE_DETECTION_MAX_RETRIES    1
  UNMIGRATED  DD_CIVISIBILITY_FLAKY_RETRY_COUNT                    1
  UNMIGRATED  DD_CIVISIBILITY_FLAKY_RETRY_ENABLED                  1
  UNMIGRATED  DD_CIVISIBILITY_GIT_UPLOAD_ENABLED                   1
  UNMIGRATED  DD_CIVISIBILITY_IMPACTED_TESTS_DETECTION_ENABLED     1
  UNMIGRATED  DD_CIVISIBILITY_SUBTEST_FEATURES_ENABLED             1
  UNMIGRATED  DD_CIVISIBILITY_TOTAL_FLAKY_RETRY_COUNT              1
  UNMIGRATED  DD_TEST_MANAGEMENT_ATTEMPT_TO_FIX_RETRIES            1
  UNMIGRATED  DD_TEST_MANAGEMENT_ENABLED                           1

PACKAGE: internal/civisibility/integrations/gotesting
  STATUS      CONFIG                                                           CALL_SITES
  UNMIGRATED  DD_CIVISIBILITY_INTERNAL_PARALLEL_EARLY_FLAKE_DETECTION_ENABLED  2
  UNMIGRATED  DD_CIVISIBILITY_RETRY_EXECUTION_MODE                             1
  UNMIGRATED  DD_CIVISIBILITY_RETRY_PROCESS_MAX_CONCURRENCY                    1
  UNMIGRATED  DD_CIVISIBILITY_RETRY_PROCESS_TIMEOUT                            1
  UNMIGRATED  DD_TEST_MANAGEMENT_ENABLED                                       2

PACKAGE: internal/civisibility/integrations/logs
  STATUS      CONFIG                        CALL_SITES
  UNMIGRATED  DD_CIVISIBILITY_LOGS_ENABLED  1

PACKAGE: internal/civisibility/utils
  STATUS      CONFIG                              CALL_SITES
  STILL_READ  DD_SERVICE                          1
  UNMIGRATED  DD_ACTION_EXECUTION_ID              1
  UNMIGRATED  DD_PIPELINE_EXECUTION_ID            1
  UNMIGRATED  DD_TEST_OPTIMIZATION_ENV_DATA_FILE  1
  UNMIGRATED  DD_TEST_SESSION_NAME                1

PACKAGE: internal/civisibility/utils/net
  STATUS      CONFIG                             CALL_SITES
  STILL_READ  DD_API_KEY                         1
  STILL_READ  DD_CIVISIBILITY_AGENTLESS_ENABLED  1
  STILL_READ  DD_CIVISIBILITY_AGENTLESS_URL      1
  STILL_READ  DD_ENV                             1
  STILL_READ  DD_SERVICE                         1
  STILL_READ  DD_SITE                            1
  STILL_READ  DD_TAGS                            1
  STILL_READ  DD_VERSION                         1
  UNMIGRATED  DD_CODE_COVERAGE_FLAGS             1

PACKAGE: internal/civisibility/utils/telemetry
  STATUS      CONFIG                                         CALL_SITES
  UNMIGRATED  DD_CIVISIBILITY_AUTO_INSTRUMENTATION_PROVIDER  1

PACKAGE: internal/clientip
  STATUS      CONFIG                     CALL_SITES
  UNMIGRATED  DD_TRACE_CLIENT_IP_HEADER  1

PACKAGE: internal/globalconfig
  STATUS      CONFIG                           CALL_SITES
  UNMIGRATED  DD_INSTRUMENTATION_INSTALL_ID    1
  UNMIGRATED  DD_INSTRUMENTATION_INSTALL_TIME  1
  UNMIGRATED  DD_INSTRUMENTATION_INSTALL_TYPE  1

PACKAGE: internal/hostname
  STATUS      CONFIG       CALL_SITES
  UNMIGRATED  DD_HOSTNAME  1

PACKAGE: internal/namingschema
  STATUS      CONFIG                                             CALL_SITES
  UNMIGRATED  DD_TRACE_REMOVE_INTEGRATION_SERVICE_NAMES_ENABLED  1

PACKAGE: internal/processtags
  STATUS      CONFIG                                          CALL_SITES
  UNMIGRATED  DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED  1

PACKAGE: internal/remoteconfig
  STATUS      CONFIG                                  CALL_SITES
  STILL_READ  DD_ENV                                  1
  UNMIGRATED  DD_RC_TUF_ROOT                          1
  UNMIGRATED  DD_REMOTE_CONFIGURATION_ENABLED         1
  UNMIGRATED  DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS  1

PACKAGE: internal/telemetry
  STATUS      CONFIG                                             CALL_SITES
  STILL_READ  DD_API_KEY                                         1
  STILL_READ  DD_SITE                                            1
  UNMIGRATED  DD_API_SECURITY_ENDPOINT_COLLECTION_MESSAGE_LIMIT  1
  UNMIGRATED  DD_INSTRUMENTATION_TELEMETRY_ENABLED               1
  UNMIGRATED  DD_TELEMETRY_DEBUG                                 1
  UNMIGRATED  DD_TELEMETRY_DEPENDENCY_COLLECTION_ENABLED         1
  UNMIGRATED  DD_TELEMETRY_EXTENDED_HEARTBEAT_INTERVAL           1
  UNMIGRATED  DD_TELEMETRY_HEARTBEAT_INTERVAL                    1
  UNMIGRATED  DD_TELEMETRY_LOG_COLLECTION_ENABLED                1
  UNMIGRATED  DD_TELEMETRY_METRICS_ENABLED                       1

PACKAGE: openfeature
  STATUS      CONFIG                                                     CALL_SITES
  STILL_READ  DD_ENV                                                     2
  STILL_READ  DD_SERVICE                                                 2
  STILL_READ  DD_VERSION                                                 2
  UNMIGRATED  DD_EXPERIMENTAL_FLAGGING_PROVIDER_SPAN_ENRICHMENT_ENABLED  1
  UNMIGRATED  DD_FLAGGING_EVALUATION_COUNTS_ENABLED                      1

PACKAGE: profiler
  STATUS      CONFIG                                    CALL_SITES
  STILL_READ  DD_API_KEY                                1
  STILL_READ  DD_ENV                                    1
  STILL_READ  DD_SERVICE                                1
  STILL_READ  DD_SITE                                   1
  STILL_READ  DD_TAGS                                   1
  STILL_READ  DD_TRACE_STARTUP_LOGS                     1
  STILL_READ  DD_VERSION                                1
  UNMIGRATED  DD_PROFILING_AGENTLESS                    1
  UNMIGRATED  DD_PROFILING_DEBUG_COMPRESSION_SETTINGS   1
  UNMIGRATED  DD_PROFILING_DELTA                        1
  UNMIGRATED  DD_PROFILING_ENABLED                      3
  UNMIGRATED  DD_PROFILING_ENDPOINT_COUNT_ENABLED       1
  UNMIGRATED  DD_PROFILING_EXECUTION_TRACE_ENABLED      1
  UNMIGRATED  DD_PROFILING_EXECUTION_TRACE_LIMIT_BYTES  1
  UNMIGRATED  DD_PROFILING_EXECUTION_TRACE_PERIOD       1
  UNMIGRATED  DD_PROFILING_FLUSH_ON_EXIT                1
  UNMIGRATED  DD_PROFILING_OUTPUT_DIR                   1
  UNMIGRATED  DD_PROFILING_UPLOAD_TIMEOUT               1
  UNMIGRATED  DD_PROFILING_URL                          1

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: FAIL

Malformed dependency-depth settings can deadlock evaluations when synchronous error logging invokes a custom logger that re-enters dependent flag evaluation through the same provider.

Open Bits AI session

🤖 Bits Code Review · Commit 8344dcf

Comment thread openfeature/evaluator.go Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active issues include a re-entrant logger deadlock, loss of last-known-good configuration replay for replacement providers, and unnecessary full-condition scans on enabled root evaluations.

3 open issues

Review effort: Balanced

Comment thread openfeature/evaluator.go Resolved
Comment thread internal/openfeature/rc_subscription.go Resolved
Comment thread openfeature/evaluator.go Resolved
Keep dependency option initialization re-entrant, replay only acknowledged configuration, and avoid scanning unreachable conditions.

Environment: Datadog workspace

Co-Authored-By: Codex GPT-5 <noreply@localhost>

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

The PR adds dependent flags with detached prerequisite evaluation records, transactional exposures, and capability negotiation. The update fixes the earlier logger reentrancy deadlock by logging after depth initialization, preserves acknowledged Remote Config state during replay, and keeps dependency evaluation lazy; no findings remain open.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit b1a2c25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because prerequisite-condition round trips can invalidate flags, and replacement providers can remain unready when cached configuration is not replayed.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Replacing a slow-path provider does not replay the Remote Config client’s previously accepted configuration, leaving the replacement unconfigured until flags change.

1 open issue
3 resolved since last review

Review effort: Balanced

if _, err := remoteconfig.Subscribe(FFEProductName, cb, remoteconfig.FFEFlagEvaluation); err != nil {
return false, err
capabilities := remoteConfigCapabilities(EvaluatorCapabilities())
subscription, err := remoteconfig.Subscribe(FFEProductName, cb, capabilities...)
@typotter
typotter marked this pull request as draft November 18, 2026 02:00
@typotter
typotter removed request for a team, hhan2024, mcculls and sameerank November 18, 2026 02:00
@hhan2024 hhan2024 removed the crucible: reviewing A Crucible review has started; this PR has reviewer attention. label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants