feat(S15P11A705-402): 재정렬 후보 불변 계약과 게이트 계약을 분리 명시한다 - #122
Merged
Conversation
test_search_rerank.py가 고정하는 다섯 계약(특히 ② 후보 불변)은 재정렬 자신의 것이고, back 레포의 결합 신뢰도 게이트(S15P11A705-400, BD-52)는 정반대로 의도적으로 후보를 지운다. 모듈 docstring에 "이 파일이 고정하지 않는 것" 절을 추가하고, 게이트라면 제외했을 모양의 후보도 재정렬은 지우지 않는다는 것을 새 테스트로 실행 고정했다(중앙 조정 세션 인계 문서 §4.5가 요구한 검증). 작업 중 docs/implements/README.md 색인 두 표 모두에서 I58(S15P11A705-399) 리포트가 빠져 있던 것을 test_docs_index.py가 잡아 함께 정정했다.
…rank-gate-contract-split
dev 병합 전 이 브랜치가 0bfa94a(-399) 위에서 독립적으로 색인 누락을 I58(search-keyword-matched-field)·I59(rerank-gate-contract-boundary)로 번호 매겼는데, dev 는 그 사이 -399 자신의 PR #121 이 같은 문서를 이미 I59 로 확정 병합해 두고 있었다. 3-way 병합이 문법적으로는 깨끗이 붙어(두 브랜치가 다른 줄에 추가) 같은 번호가 중복된 채 남았다 — check_docs_index.py 가 경고하는 T60 패턴 그대로다. dev 의 I58·I59(이미 병합된 -399·-401)는 그대로 두고, 이 브랜치가 새로 낸 rerank-gate-contract-boundary.md 하나만 I60 으로 재확정한다. WORKLOG.md 의 설명도 실제로 무슨 일이 있었는지에 맞춰 정정했다.
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.
요약
test_search_rerank.py가 고정하는 다섯 계약(특히 ② 후보 불변)이 재정렬 자신의 것이고 back 레포의 결합 신뢰도 게이트(S15P11A705-400)의 계약이 아님을 문서·테스트로 명시한다. 중앙 조정 세션 인계 문서 §4.5가 요구한 검증이다.이 PR의 base는
dev가 아니라feat/S15P11A705-399-search-keyword-match-field입니다 — 같은 테스트 파일을 건드려서 스택으로 쌓았습니다. 399가 머지되면 GitHub가 base를 자동으로 dev로 옮겨줍니다.Jira (필수)
변경 사항
test_search_rerank.py모듈 docstring에 "이 파일이 고정하지 않는 것" 절 추가test_rerank_never_gates_a_weak_unsupported_candidate신규 — 게이트라면 제외했을 후보도 재정렬은 지우지 않음을 확인docs/implements/README.md색인 두 표에서 I58(399 리포트) 누락 발견·정정테스트 / 검증
RED
해당 없음 — 런타임 동작 변경이 아니라 기존 동작을 명시적으로 고정하는 테스트 추가
GREEN
pytest tests/test_search_rerank.py -q→ 14 passed (신규 1건 포함)pytest tests/test_docs_index.py -q→ 22 passed (색인 정정 확인)Regression
ruff check .python -m compileall app toolspytest --cov=app --cov-branch --cov-report=term-missing→ 게이트 line 94.64%·branch 85.00% 통과리뷰 포인트
리스크
범위 밖 / 후속
영구 문서
docs/implements/2026-08-07-rerank-gate-contract-boundary.md(신규),docs/implements/README.md,docs/WORKLOG.md