chore(voice): submitTurns candidate 진단 로그 추가 - #64
Draft
Kimseungin0529 wants to merge 1 commit into
Draft
Conversation
음성 → 작성 화면 전 필드 공백 버그 진단용. 프론트가 realtime tool 인자를 캡처했는지(candidate 채움) vs 모델이 애초에 일부만 채웠는지를 서버 로그로 가린다. candidate 각 필드 present/absent·memo 길이·turns 요약만 남기고 개인정보 원문은 기록하지 않는다. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4 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.
변경 내용
VoiceSessionService.submitTurns에 candidate 진단 로그(INFO) 추가. candidate의farmId/cropId/workType/workedAtpresent/absent,memo길이, detail 유무,turns(user/assistant 개수)와 마지막 assistant 발화 길이,missingFields를 한 줄로 남긴다.변경 이유
"음성 녹음 → 작성(검토) 화면 전환 시 농장·작물·메모 등 전 필드 공백" 버그가 재현 중. 프론트 수정 PR #60이 이미 main에 배포됐음에도 미해결. 근본 원인이 (a) 모델이 tool을 안 부름/인자 미캡처(candidate null) 인지 (b) 모델이 일부 필드만 채움(candidate 부분) 인지 런타임 관측이 없어 미확정. 이 로그로 서버 측에서 null vs 부분채움을 가려 디바이스 없이 원인을 좁힌다.
영향 범위
applicationvoice 세션 submit 경로의 로그만 추가. API 계약·DB·동작 변화 없음.검증
./gradlew :application:compileKotlin— 성공./gradlew :application:test --tests "*Voice*"— BUILD SUCCESSFUL배포 및 호환성
해당 없음 (로그 추가만). 원인 확정 후 로그는 제거 또는 레벨 조정 예정.
체크리스트