Repository navigation
Conversation
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 3 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed 🎯 Code Coverage (details) Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 64a42d7 | Docs | View more details | Give us feedback! |
Benchmarks [ tracer ]Benchmark execution time: 2026-12-04 22:06:50 Comparing candidate commit 64a42d7 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 218 metrics, 0 unstable metrics.
|
e3226c4 to
0423cac
Compare
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
The serial-ID mapping preserves zero, omits missing/null IDs, and retains existing metadata and exposure data behind the enrichment gate. The completed static review found no reportable defect.
🤖 Bits Code Review · Commit 0423cac
FFE reviewer selectionReviewers: @sameerank, @typotter Why: openfeature architecture — The PR changes the PHP SDK's flag evaluation metadata. Reviewers come from the matched pod. 🤖 Automated selection. Selection detailsInitiative: fallback / openfeature-architecture Why this match: The PR changes the PHP SDK's flag evaluation metadata. ResultMapper::map gains a span-enrichment flag, and a new flagMetadata() helper adds the selected split's serial_id/serialId under __dd_split_serial_id. It keeps a zero value, leaves out missing or null IDs, and keeps the existing metadata. The default-return path gets the same treatment. NativeEvaluator passes SpanEnrichmentRegistry::gateEnabled() to the mapper, and both the native client and the OpenFeature provider use that evaluator. This is a standalone change to the evaluation metadata contract. The diff has no holdout, bandit, EVP telemetry, onboarding-diagnostic or other registered-project purpose, so it falls under the OpenFeature architecture SME.
The PR author was excluded. Existing reviewers and teams were preserved. Debug or fix a problemWorkflow run · Bits Code session
Evidence and run details✅ Complete — reviewer coverage verified. The workflow checked pending requests or submitted reviews on the evaluated head. Generated asynchronously by the FFE reviewer-routing workflow. Changed paths: Evaluated head: Registry revision: Pinned skill source: Instructions: workflow-injected snapshot (no plugin loaded) Instruction snapshot SHA-256: |
Preserve zero and omit absent serial IDs while retaining existing flag metadata. Environment: Datadog workspace Co-Authored-By: Codex GPT-5 <noreply@localhost>
0423cac to
cc489de
Compare
There was a problem hiding this comment.
More details
The completed static review found no actionable defect in the gated serial-ID mapping, including zero preservation and missing/null handling. Human PR discussion did not change that conclusion.
🤖 Bits Code Review · Commit cc489de
Description
Expose the selected split's serial ID as
__dd_split_serial_idin evaluationmetadata when span enrichment is enabled. Preserve zero, remove stale reserved
metadata when the selected split has no ID, and retain other metadata.
If native assignment succeeds but PHP decoding or type validation fails, retain
assignment metadata while returning the caller's default, an error, no variant,
and no exposure data. Native evaluation errors and runtime-default results keep
their existing behavior.
The native client exposes this metadata in its evaluation details. The
OpenFeature provider forwards scalar metadata when the installed OpenFeature
SDK's resolution builder supports
withMetadata(); SDK versions without thatAPI cannot expose it. No native extension changes are required.
Companion adapter: system-tests #7857.
It remains draft and
missing_featureuntil a release containing this SDK fixis verified; no release version is predicted.
Validation
52 tests, 244 assertions.
pass afterward. Coverage includes positive/zero IDs, missing/null IDs,
array/object bridge results, both gate states, native errors, and defaults.
flag_metadata_serial_id.phpt: 1 passed. Exercises the native client,positive/zero/missing IDs, targeting, unknown flags, gate-off behavior, and
retained exposure data. Independently forcing NativeEvaluator's mapper gate
argument to
false,true, or omitting it makes the test fail as expected.composer ci-lint: passed../format.sh, PHP syntax check, and all four requiredsystem-tests review lenses: passed with no actionable findings.
Local system-test receipt (December 4, 2026):
Command from the system-tests checkout:
TEST_LIBRARY=php PYTHONPATH=/tmp:$PWD venv/bin/pytest \ -p serial4247_image_plugin -S PARAMETRIC --skip-parametric-build -n=2 \ -p no:warnings \ tests/parametric/test_ffe/test_serial_id_metadata.py::Test_FFE_Serial_Id_Metadata \ -F tests/parametric/test_ffe/test_serial_id_metadata.py::Test_FFE_Serial_Id_MetadataThe local plugin selects the isolated image and a unique container-name prefix;
it does not alter test inputs, assertions, or SDK behavior. The image contains
this PR's committed PHP sources and the companion adapter. Its existing native
await_ffe_confighelper applies delivered Agent Remote Config while the CLIserver waits on I/O; no UFC fixture is injected through
/ffe/start.The full supported-platform and multi-version SDK matrix remains with CI.
Reviewer checklist
FFE reviewer selection
Reviewers: @sameerank, @greghuels
Why: Global fallback — At the evaluated head, ResultMapper::flagMetadata adds the selected split's serial_id/serialId to flag metadata as __dd_split_serial_id, but only when the span-enrichment gate… Global reviewers were selected because no project or SME pod matched.
🤖 Automated selection.
Selection details
Initiative: global / global
Why this match: At the evaluated head, ResultMapper::flagMetadata adds the selected split's serial_id/serialId to flag metadata as __dd_split_serial_id, but only when the span-enrichment gate is on. NativeEvaluator passes SpanEnrichmentRegistry::gateEnabled() through to the mapper. The change is APM span-enrichment metadata for evaluations. It does not touch EVP evaluation telemetry or consent (flag-evaluation-evp), onboarding diagnostics (guided-onboarding), migration-blocking capabilities (sdk-migration-parity), or any other registered project. No registered project clearly owns span enrichment and the catalog has no fallback rules, so this routes to global.
The PR author was excluded. Existing reviewers and teams were preserved.
Debug or fix a problem
Workflow run · Bits Code session
dry_run=false. Unchanged completed runs are skipped. If the receipt saysneeds_reconciliationor a write outcome is uncertain, ask the workflow owner to reconcile GitHub and the receipt before retrying; do not delete the lock blindly.Evidence and run details
✅ Complete — reviewer coverage verified. The workflow checked pending requests or submitted reviews on the evaluated head.
Generated asynchronously by the FFE reviewer-routing workflow.
Changed paths:
src/api/FeatureFlags/Internal/ResultMapper.php,src/api/FeatureFlags/Internal/NativeEvaluator.php,tests/api/Unit/FeatureFlags/ResultMapperTest.phpEvaluated head:
0423cacde808246e96a960cc7dc0a98e3ba12f92Registry revision:
revision:1946aa2a-530e-487a-84a7-83aff44a1089Pinned skill source:
d214cfc65ae154b97d39af5cf32caf48aaec9bf0Instructions: workflow-injected snapshot (no plugin loaded)
Instruction snapshot SHA-256:
f23b2a88c13c0da90e2dd58246a14f257af91e2195c555039bd555b52e6f3516