Skip to content

Navigation Menu

Sign in
Sign up

Decide: does --cross-project let global learnings outrank local ones? #61

Open
Labels
docs-debtDocumentation gaps recorded but not closed

Description

Genuine behavioral decision, not a bug to auto-fix.

bin/idstack-learnings-search:70 slices matches[-limit:] while sources are ordered local-then-global. Under --cross-project, that means global entries win when the limit truncates — which contradicts the comment directly above at :69 claiming local takes precedence.

One of the two is wrong. Either:

  • the comment is right and the slice should be matches[:limit] (local wins), or
  • the behavior is right and the comment should go.

Leaning toward local-wins: a project-specific learning is more likely to be the relevant one, and that's what the comment says the author intended. But it's your call — this changes what designers see.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs-debtDocumentation gaps recorded but not closed

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /