Repository navigation
feat(ffe): support dependent flag evaluations - #4421
Conversation
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 775da0a | Docs | View more details | Give us feedback! |
Benchmarks [ tracer ]Benchmark execution time: 2026-12-01 23:45:50 Comparing candidate commit 775da0a in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 218 metrics, 0 unstable metrics.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
Confidence in prerequisite evaluation behavior is limited by the uninspected libdatadog evaluator pin and unavailable native execution.
🤖 Bits Code Review · Commit 2e2499e
There was a problem hiding this comment.
More details
Native evaluator behavior remains unverified because its submodule is uninitialized and the ddtrace extension is unavailable. Replacing the temporary native pin and confirming backend capability gating remain explicit merge prerequisites.
🤖 Bits Code Review · Commit ebf7251
|
🤖 Comment from Claude working with Aaron Silverman: Re-checked our four open threads at
|
There was a problem hiding this comment.
The PR adds dependent-flag evaluation and prerequisite telemetry; this update defers exposures until the final OpenFeature outcome and aligns stub property order. One issue remains: the remote-config lifecycle snapshot omits exposureCandidates, causing that test to fail in its development environment; native integration remains unverified.
🤖 Bits Code Review · Commit d11abb6
a476f40 to
ba8905d
Compare
There was a problem hiding this comment.
More details
Full native and OpenFeature integration remains unverified because required submodules and dependencies are absent. Available validation includes PHP syntax checks and in-memory success/failure probes.
🤖 Bits Code Review · Commit ba8905d
|
/merge |
|
View all feedbacks in Devflow UI.
It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.
devflow unqueued this merge request: It did not become mergeable within the expected time |
|
/code blockers |
|
View all feedbacks in Devflow UI.
No merge blockers detected. ⚪ Unknown
|
Carry prerequisite evaluation observations and successful-path exposure candidates through the native bridge. Commit OpenFeature exposures only after application hooks succeed, preserving the current runtime lifecycle. Environment: Datadog workspace Co-Authored-By: Codex GPT-6 <noreply@localhost>
Use a PHPUnit-compatible exposure log sink and include deferred exposure candidates in the RC lifecycle snapshot. Update the canonical fixtures and exercise dependent-flag results plus exact native telemetry submissions, including rejected paths, prerequisite errors and matcher counts. Environment: Datadog workspace Co-Authored-By: Codex GPT-6 <noreply@localhost>
ba8905d to
d165174
Compare
|
/merge |
|
View all feedbacks in Devflow UI.
It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.
devflow unqueued this merge request: It did not become mergeable within the expected time |
There was a problem hiding this comment.
More details
The static review found no actionable defect in prerequisite observations or deferred exposure handling. Native and OpenFeature runtime behavior remains unverified locally because the built extension, submodules, and test dependencies are unavailable.
🤖 Bits Code Review · Commit d165174
|
/code blockers |
|
View all feedbacks in Devflow UI.
No merge blockers detected. ⚪ Unknown
|
Return Rust-owned evaluation snapshots and consume borrowed views in C with bailout-safe cleanup. Separate root exposure control from prerequisite deferral, and lazily encode shared attributes only for immediate exposure recording. Document requested-flag metric control and the root-only ExposureHook contract. Cover retained snapshots, native deferral controls, customer hook behavior, and actual dependent-flag RC capability selection and delivery. Environment: Datadog workspace Co-Authored-By: Codex GPT-6 <noreply@localhost>
Description
Enables variant-key prerequisite flag evaluation for the native PHP client and
OpenFeature provider. Agent Remote Configuration advertises dependent-flags
support through capability bit 50. Agentless polling does not send a
capabilities header.
Records each reached prerequisite evaluation once, including prerequisites from
rejected rules and failed dependency graphs. Results retain errors,
configuration-snapshot consent, and EVALUATION-destination split features.
Prerequisite evaluation records are submitted even when the enclosing
OpenFeature evaluation later fails; the root observation reflects the final
OpenFeature outcome. The native
recordMetricoption controls the requestedflag's metric; reached prerequisites retain their own metric reporting.
Eligible exposures come from the successful evaluation path and respect each
allocation's own
doLog. Native clients record them during evaluation.OpenFeature collects prerequisite candidates separately from its existing root
exposure decision, and finalizes exposures after application hooks succeed.
Failed evaluations discard deferred exposures while retaining prerequisite
evaluation records. ExposureHook reports only the explicitly evaluated root;
eligible prerequisite exposures are delivered to Datadog. Allocation, variant,
serial identity, split features, and sidecar deduplication are preserved.
A single Rust evaluator entry point returns an owned evaluation snapshot with
borrowed result and feature views. C copies those views into PHP values after
Rust returns, and releases the snapshot on both completion and Zend bailout.
Collecting deferred candidates performs no exposure JSON encoding. Immediate
exposures share one lazily encoded attribute snapshot per evaluation.
Uses the released libdatadog
v51.0.0(7e6e78abf) inherited from master. Thenative dependency pin is unchanged. The canonical
ffe-system-test-datafixture snapshot is updated to
d7821bb99. All 16 dependent-flag cases runthrough the PHP evaluator, including 11 cases with exact
exposure/evaluation-submission expectations. Matchers enforce
_count,applicability, and
noUnmatchedEvents.Testing
Validation for
85f8fda06:make test_featureflags: 72 tests, 167 assertions passed.dependencies, requested-flag exposure controls, failed hooks, nested calls,
fibers, split-feature ownership, and the root-only customer ExposureHook.
snapshot lifetimes and bit-50 selection with FFE enabled and disabled.
bit 50 in the actual request payload and configuration load/remove/recovery.
is released exactly once before a Zend bailout propagates, with no Rust
evaluation frames on the failing conversion stack.
collecting deferred candidates, and one shared attribute encoding for two
immediate prerequisite exposures plus the root.
Risks
Changes PHP's internal Rust/C evaluation ABI and OpenFeature exposure
finalization. Borrowed views must remain within the snapshot's lifetime;
regression coverage exercises ownership, errors, nested calls, and fibers.
Supported-platform builds and benchmark validation remain with CI for this
revision. The companion
system-tests activation PR
remains open and targets this SDK branch.