Skip to content

Let explicit providers declare layer paths - #1085

Draft
beojan wants to merge 3 commits into
layer-paths-beojan/1-product-selectorfrom
layer-paths-beojan/2-provider-layer-path
Draft

beojan wants to merge 3 commits into
layer-paths-beojan/1-product-selectorfrom
layer-paths-beojan/2-provider-layer-path

Conversation

@beojan

@beojan beojan commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

provider_node now stores its output layer as a layer_path, so selectors that name more than just the last layer, such as run/event, can match explicit providers. form_source passes the selector's full path on to the providers it creates. New tests select products by multi-segment layer paths.

Providers can still be registered with an incomplete path like event.

Part of #984.

This description was drafted by Claude Code. It has been fully reviewed and approved by Beojan Stanislaus.


@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@                            Coverage Diff                            @@
##           layer-paths-beojan/1-product-selector    #1085      +/-   ##
=========================================================================
+ Coverage                                  90.89%   91.11%   +0.21%     
=========================================================================
  Files                                        183      183              
  Lines                                       6087     6086       -1     
  Branches                                     970      970              
=========================================================================
+ Hits                                        5533     5545      +12     
+ Misses                                       354      346       -8     
+ Partials                                     200      195       -5     
Flag Coverage Δ
amd64 91.11% <100.00%> (+0.21%) ⬆️
arm64 91.11% <100.00%> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
form/form_source.cpp 55.31% <100.00%> (-0.48%) ⬇️
phlex/core/provider_node.cpp 100.00% <100.00%> (ø)
phlex/core/provider_node.hpp 100.00% <ø> (ø)
phlex/core/registration_api.hpp 100.00% <ø> (ø)
plugins/python/src/modulewrap.cpp 80.46% <100.00%> (ø)

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df99adb...d58038c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@beojan
beojan force-pushed the layer-paths-beojan/2-provider-layer-path branch from f027e94 to ead34ca Compare November 19, 2026 19:02
@beojan
beojan added this pull request to stack #1090 November 19, 2026 19:21
@beojan
beojan force-pushed the layer-paths-beojan/2-provider-layer-path branch from b3e2fdc to 8de5e5b Compare November 19, 2026 19:43
provider_node now stores its output layer as a layer_path rather than a
single layer name, so selectors that name more than the last layer (for
example run/event or /job/run/event) can match explicit providers.
output_product() takes a layer_path, which may be complete or not.

Update the Python provider registration and the documentation example,
and make form_source pass the selector's full path to the providers it
creates. Implicit providers are unchanged.

AI-Assisted-By: Claude Code
AI-Model: claude-sonnet-5-5
Add unit tests for product_selector matching against layer paths with
more than the last segment, and graph tests that select explicit
providers, implicit providers, and transform, fold, and unfold outputs
by incomplete and complete layer paths, including non-matching paths.

The test source takes the layer it provides at construction, defaulting
to "event", so its own match no longer rejects selectors that name more
than the last layer.

AI-Assisted-By: Claude Code
AI-Model: claude-sonnet-5-5
clang-tidy asks for const auto *const when GENERATE yields a const char*.

AI-Assisted-By: Claude Code
AI-Model: claude-sonnet-5-5
@beojan
beojan force-pushed the layer-paths-beojan/2-provider-layer-path branch from 8de5e5b to d58038c Compare November 20, 2026 22:10

This branch has not been deployed

No deployments
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.

1 participant