feat: 근로자 안내 실패를 HR 검토로 안전하게 전환 - #179
Merged
Merged
Conversation
Language Assistant 안내 생성 실패 응답을 안전한 REVIEW_REQUIRED 계약으로 수용합니다.\n실패 코드를 Task 메타데이터와 감사로그에 보존하고 안내 초안·Worker Link 자동 생성을 차단합니다.\n기존 AI 응답은 신규 필드가 없어도 정상 처리하도록 하위 호환성을 유지합니다.
hywznn
marked this pull request as ready for review
August 15, 2026 00:53
This was referenced Aug 15, 2026
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.
왜 필요한가요?
Refs #162
AI Language Assistant가 미구성되거나 근로자 안내 생성에 실패하면, AI는 임의 문구를 만들지 않고
workerRequestMessage=null,guideReviewRequired=true,REVIEW_WORKER_GUIDE를 반환합니다. 기존 Server는 이 응답을 계약 오류로 거부해 실패 사유를 업무에 보존하거나 HR 검토로 연결할 수 없었습니다.무엇이 바뀌나요?
guideReviewRequired,guideFailureCode를 하위 호환 방식으로 수용합니다.REVIEW_WORKER_GUIDE와 합의된 실패 코드 4종만 허용합니다.workerRequestMessage=null을 허용합니다.renewal_execution메타데이터와 감사로그에 보존합니다.NEEDS_INFO로 되돌리지 않고 HR 검토용DRAFT상태로 둡니다.guideReviewRequired=false로 처리해 하위 호환성을 유지합니다.처리 흐름
안전장치
ask_worker흐름은 기존처럼 안내 문구가 있어야만 처리합니다.검증
NEEDS_INFO상태 회귀 방지 검증PostgreSQL환경 전용 39개는 로컬 Docker 미실행으로 제외)./gradlew build -x test리뷰 포인트
REVIEW_WORKER_GUIDE계약과 일치하는지