Skip to content

fix: 3인조 멤버 공정 분배#19

Merged
sounmind merged 1 commit intomainfrom
fix/fair-trio-assignment
Feb 1, 2026
Merged

fix: 3인조 멤버 공정 분배#19
sounmind merged 1 commit intomainfrom
fix/fair-trio-assignment

Conversation

@sounmind
Copy link
Member

@sounmind sounmind commented Feb 1, 2026

Summary

  • 홀수 인원 시 3인조 후보를 매칭 전에 먼저 무작위 선택
  • 3인조가 될 조도 무작위로 선택

문제

기존 알고리즘에서 최근 많이 매칭된 사람이 reshuffle 과정에서 뒤로 밀려 3인조에 편중되는 문제 발생

  • 5번 매칭 중 4번이 동일인이 3인조 (확률 0.16%)

해결

3인조 멤버를 매칭 로직과 분리하여 먼저 무작위 선택

Test plan

  • bun run test 통과
  • 워크플로우 여러 번 실행하여 3인조 멤버 분포 확인

🤖 Generated with Claude Code

- 홀수 인원 시 3인조 후보를 매칭 전에 먼저 무작위 선택
- 3인조가 될 조도 무작위로 선택
- 기존: 최근 많이 매칭된 사람이 3인조에 편중되는 문제 있었음

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sounmind sounmind force-pushed the fix/fair-trio-assignment branch from 65cfdad to 4e24a4f Compare February 1, 2026 13:39
@claude
Copy link

claude bot commented Feb 1, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@sounmind sounmind merged commit 65b7e7c into main Feb 1, 2026
2 checks passed
@sounmind sounmind deleted the fix/fair-trio-assignment branch February 1, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant