Skip to content

Define creator-name matching semantics for product selectors #1094

Open

Description

@coderabbitai

Summary

Decide how product_selector::creator should match product creator names, especially when the product creator has no plugin component. Consider whether the selector should match the plugin, the algorithm, or both, and address any ambiguity when names overlap.

The current product_selector::creator_match accepts a match against either component. For example, a selector for algo matches both plugin:algo and the unqualified creator algo; a selector for plugin also matches plugin:algo. An omitted selector creator acts as a wildcard. Selector-to-selector matching uses a separate comparison, so consider consistency between the matching paths.

Related naming question

Review whether algorithm_name is the right name for a type used for both product creators and observers. Consider separate creator_name and observer_name types, a single shared type, or retaining the existing name. Account for the existing detail::creator_name used by product selectors.

Areas to review

  • phlex/core/product_selector.cpp and phlex/core/product_selector.hpp
  • phlex/model/algorithm_name.hpp and phlex/model/algorithm_name.cpp
  • Observer uses, including phlex/core/declared_observer.hpp and phlex/core/observer_node.hpp
  • test/product_selector_test.cpp and relevant name tests

Acceptance criteria

  • Document the chosen matching semantics for qualified and unqualified product creators, omitted selector creators, and overlapping plugin and algorithm names.
  • Decide how the chosen semantics apply to selector-to-selector and selector-to-product-specification matching.
  • Decide whether to rename or split algorithm_name, and document the rationale and compatibility impact.
  • Implement any agreed changes and add tests for the chosen behavior, including creators without a plugin component.

Requested by @marcpaterno.

Pull request: #1068
Review discussion: #1068 (comment)

Activity

  1. coderabbitai commented on Nov 20, 2026

    @coderabbitai
    ContributorAuthor
    🔗 Related PRs

    #1024 - docs: document product selectors [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions