Uh oh!
There was an error while loading. Please reload this page.
fix(agent): 근로자 안내 실패를 HR 검토로 안전하게 전환 - #44
Merged
Conversation
9 tasks
hywznn
commented
Aug 13, 2026
MemberAuthor
Server 현재 Server는 아래 이유로 이 PR의 fail-closed 응답을 거부합니다.
Server 후속 이슈를 별도로 만들었으며, 해당 계약 반영 전까지 이 PR은 Draft를 유지합니다. AI 코드·단위/API 테스트는 완료됐지만 현재 배포 Server와의 실통신은 아직 통과 조건이 아닙니다. |
22 tasks
BcKmini
approved these changes
Aug 14, 2026
BcKmini
left a comment
Member
There was a problem hiding this comment.
리뷰
diff 확인했습니다. Fail-open → fail-closed 전환, 설계 방향 좋습니다.
LanguageGuideBridge가 미구성/예외/검증실패 시 이전처럼 내부 slot·validation 키(alien_registration_number,both_missing등)로 placeholder 문장을 만들지 않고,worker_request_message=None+guide_review_required=True+ 안전한guide_failure_code로 명확히 닫음mark_ask_worker도 동일하게 fail-closed로 정리,case_signals=["REVIEW_WORKER_GUIDE"]로 HR 검토 신호만 남김- 테스트가 미구성/예외/번역실패 세 갈래를 각각 커버하고, 승인 OCR로 같은 taskId 재호출해 실제 초안 생성까지 이어지는 통합 테스트도 있음
머지 전에 짚어야 할 점 — PR 본문 체크리스트가 전부 미체크 상태입니다:
- Server가
guideReviewRequired/guideFailureCode필드를 아직 인식 못 하면, 이 PR 머지 후 근로자는 이전엔 (부정확하더라도) 안내 문구를 받았는데 이제는 아무 발송도 안 되고 HR 검토 화면도 없으면 그냥 조용히 멈추는 회귀가 생길 수 있습니다. - Knowledge #51 연동, 실제 Language Provider staging smoke, Server #160 스모크도 미확인 상태입니다.
베이스가 develop이라 즉시 프로덕션에 나가는 건 아닐 걸로 보이지만, Server 쪽 대응 없이 main으로 승격되면 위 회귀가 실제로 발생할 수 있으니 머지 타이밍은 Server #160/체크리스트 진행 상황 보고 판단해주세요.
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 freeto 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.
Closes#42
왜 필요한가요?
2026-08-13 E2E QA에서 Language Assistant가 미구성되거나 대상 언어 생성에 실패해도 Renewal Graph가 한국어·영어 placeholder를 근로자 발송문으로 확정하는 문제가 확인됐습니다.
이 경로는
alien_registration_number,both_missing같은 내부 Slot·검증 키까지 노출할 수 있었습니다. 원인은LanguageGuideBridge실패를 placeholder로 숨긴 뒤mark_ask_worker()가 발송 가능한 문장을 새로 만드는 fail-open 동작이었습니다.무엇이 바뀌나요?
outcome=REVIEW_REQUIREDstatus=READY_FOR_REVIEWworkerRequestMessage=nullcaseSignals=["REVIEW_WORKER_GUIDE"]guideReviewRequiredguideFailureCodeWAITING_WORKER로 사용응답 예시
{ "status": "READY_FOR_REVIEW", "outcome": "REVIEW_REQUIRED", "scenario": "ask_worker", "workerRequestMessage": null, "guideReviewRequired": true, "guideFailureCode": "LANGUAGE_ASSISTANT_NOT_CONFIGURED", "caseSignals": ["REVIEW_WORKER_GUIDE"] }OCR 재개 계약 테스트
같은
taskId를 사용해 아래 흐름을 API 테스트로 고정했습니다.이 테스트는 AI가 Server 이벤트를 소비한다는 뜻이 아닙니다. WorkerDocument 채택·OCR 실행/승인·동일 Task 재호출·생성 파일 영속화는 Server #160 범위입니다.
검증
628 passed, 6 failed, 1 skipped617 passed, 1 skippedgit diff --check: 통과병합 전 확인
REVIEW_WORKER_GUIDE를 자동 발송하지 않고 HR 검토로 처리guideReviewRequired,guideFailureCode를 허용포맷 주의
현재 Renewal 등록 문서 4종은 실제 구현대로
format=hwp입니다. HWPX가 데모 완료 조건이면 Server 변환 또는 AI generator 변경을 별도로 결정해야 합니다. 이 PR은 HWPX 완료를 주장하지 않습니다.Refs fowoco/server#160
Refs fowoco/knowledge#51