Skip to content

Discuss index routing when a provider layer is unspecified #1082

Open

Description

@coderabbitai

Context

When a provider input does not specify a layer, the index set has been associated with the wildcard "*". PR #1068 replaces that wildcard layer key with a dedicated unresolved index-set node because identifiers can no longer contain *. Its new test expects unresolved provider layers to receive no concrete indices, while a provider input with a specified layer receives the matching index.

The intended behavior for an unspecified layer needs discussion. Without an agreed contract, it is difficult to determine whether the current routing behavior is the right long-term behavior.

Discussion

  • What should an unspecified provider layer mean for index routing?
  • Should it match indices from multiple layers, resolve to a particular layer, remain unresolved, or be rejected?
  • If a layer can be resolved, when should resolution occur, and how should ambiguous matches be handled?
  • How should the chosen behavior interact with multiple unresolved provider inputs and existing configurations?

Follow-up

Document the agreed behavior and any compatibility implications. Identify the required changes and regression tests for phlex/core/index_router.cpp, phlex/core/index_router.hpp, and test/index_router_test.cpp.

Requested by @knoepfel.

Pull request: #1068
Discussion: #1068 (comment)

Activity

  1. coderabbitai commented on Nov 19, 2026

    @coderabbitai
    ContributorAuthor
    🔗 Related PRs

    #1081 - Layer definitions with paths instead of names [open]


    📝 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