-
Notifications
You must be signed in to change notification settings - Fork 729
fix: merge members llm prompt #3644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
2 similar comments
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
services/apps/merge_suggestions_worker/src/workflows/mergeMembersWithLLM.ts
Show resolved
Hide resolved
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
3 similar comments
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
| // Format: [primaryMemberId, secondaryMemberId] | ||
| const HARDCODED_SUGGESTIONS: string[][] = [ | ||
| ['b18bb1c0-859c-11f0-83d5-5fc87b30e90a', 'a10f9ad5-e705-4acc-8378-53416788eb80'], | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Test code with hardcoded data committed to production workflow
The workflow has been replaced with test/debugging code. HARDCODED_SUGGESTIONS contains specific test UUIDs with a comment saying "Replace with your test member ID pairs". The original getRawMemberMergeSuggestions call that fetches real suggestions is removed, saveLLMVerdict is removed so verdicts aren't saved, suggestion table updates are removed, and continueAsNew is replaced with "Test run completed!". This breaks all production functionality - the workflow will only process one hardcoded member pair and then stop.
Additional Locations (2)
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
3 similar comments
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
a55e2f4 to
23d9fd1
Compare
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
1 similar comment
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
@skwowet deployed this already, but will wait for your review before merging. I also added 2 monitors to metaplane to see if this evolves, or if this fix is able to mitigate this: |
This PR follows this discussion https://linuxfoundation.slack.com/archives/C06ULRCFJF8/p1763982626411879.
This PR updates the LLM prompt to automatically merge member profiles and to make it a lot more strict when it comes to merging profiles with different identities for the same platform.
Even with the pro tip we saw a lot of merges that had different values for the same platform.
Tests made against two profiles that were previously merged before:
['b18bb1c0-859c-11f0-83d5-5fc87b30e90a', 'a10f9ad5-e705-4acc-8378-53416788eb80']['7fcf7950-b95b-11ee-8ae5-b5749935eef4', 'f249ae23-af7c-4b28-910c-3e736d65c671']Note
Strengthens the LLM prompt to prevent merging when same-platform identities differ and to never merge bot with human profiles.
services/apps/merge_suggestions_worker/src/workflows/mergeMembersWithLLM.ts:identities.platformbut have differentidentities.value(checked first, regardless of other similarities).attributes.isBot.defaultdiffers (bot vs human), evaluated before other similarities.Written by Cursor Bugbot for commit 23d9fd1. This will update automatically on new commits. Configure here.