Skip to content

Normalize provider order in search cache keys #1885

@jdfalk

Description

@jdfalk

Ensure provider order does not affect search cache keys to avoid redundant entries.

Scope:

  • Canonicalize provider list (sort, dedupe) before cache key generation for both API and CLI paths
  • Confirm behavior for explicit order-sensitive overrides (if any), otherwise enforce order-insensitive behavior
  • Add unit tests covering permutation equivalence

Acceptance Criteria:

  • Identical provider sets yield identical cache keys regardless of order
  • Tests validate canonicalization for typical and edge cases
  • Minimal migration/compat note if key format changes (docs)

Refs: internal TODO.md items about normalizing provider order in CLI and API cache keys

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend developmentbugSomething isn't workingmodule:cacheCaching and data storagepriority:mediumMedium priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions