feat: 무인자 비교 팬아웃 경계 — 대표 레벨 상위 10명 상한 (ADR-0008) - #55
Merged
Conversation
무인자 실행(등록자/키등록자 전원)은 PNG 가 인원만큼 세로로 자라고 넥슨 전역 스로틀(4req/s) 아래서 응답이 인원에 비례해 느려진다 → 경계 도입. - Target·HistoryTarget 에 level 필드(대표 레벨, 쿼리 무변경 — 대표 해석 시 이미 메모리에 있던 값) - comparison.cap_by_level: 레벨 내림차순 상위 10명, 동레벨·미상(None=-1)은 닉네임 가나다 타이브레이크. MAX_UNSPECIFIED_TARGETS=10 단일 소스 - /아이템·/유니온·/스타포스·/잠재 무인자에 적용 + 잘리면 푸터 안내 1줄 (10명 이하 서버는 화면 무변경). 대상 지정은 파라미터 5슬롯이 기존 상한 - 이력류 무인자는 '키 미등록' 행 숨김(상한 슬롯 잠식 방지) — 지정 시 유지 - 수집 경로(get_targets/get_history_targets 자체)는 무변경 — /경험치 스냅샷·백필 무영향 - 명령 description·파라미터 설명 문구 동기화, 테스트 11건(tests/test_fanout_cap.py)
- ADR-0008: K=10·레벨 정렬·이력류 키 미등록 숨김·수집 경로 무변경 결정 기록 (과거 결정이 미머지 브랜치에서 유실됐던 번호를 정식 채움 — ADR-0009 각주 참조) - commands.json 아이템·유니온·스타포스·잠재 요약에 상한 문구 추가 (튜토리얼 S10 은 PR #54 에서 선보정)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
무인자(대상 미지정) 비교가 등록자 전원 무제한이라 가독성(세로로 무한히 자라는 PNG)·조회 속도(넥슨 전역 4req/s 스로틀 아래 인원 비례 지연) 모두 위험 — 사용자 결정으로 K=10 상한 도입. 대상 지정은 파라미터 슬롯(대상1~5)이 이미 5명 상한이라 무변경.
동작 (ADR-0008)
구현
Target·HistoryTarget에level필드 추가(대표 해석 시 이미 메모리에 있던 값 — 쿼리 무변경, 기본값 None으로 기존 생성부 호환)comparison.cap_by_level+MAX_UNSPECIFIED_TARGETS = 10+fanout_note테스트