Repository navigation
fix(watch): 맥북 잠자기·인터넷 없음으로 끊긴 감시 AI 호출은 사용자에게 알리지 않는다 - #112
Merged
Merged
Conversation
2026-10-06~07 "감독 관찰AI 점검 필요" 알림 2건은 덮개를 닫은 동안 잠깐 깨어(DarkWake) 부른 호출이었다. 인터넷이 없어 getaddrinfo ENOTFOUND로 실패했고, 한 건은 잠든 18분까지 벽시계로 재 시간 초과가 됐다. - watch-judge.sh: 실패한 호출의 진단 기록에 주소 못 찾음 문구가 있으면 KADAN_JUDGE_NETWORK=1 → reason network - watch-call-process: 시간 초과를 깨어 있던 시간으로 잰다. 확인 간격이 30초 넘게 벌어지면(잠자기) slept로 끝낸다 - network·slept는 다음 모델로 내려가지 않는다(같은 연결이라 똑같이 실패) - watch: 알림 없이 다음 정기 점검에 다시 부른다. network가 깨어 있는 동안 같은 대상에서 3번 이어질 때만 알린다 (잠긴 규칙 3). 순회 사이가 크게 벌어지면 잠든 것으로 보고 횟수를 버린다 - 원장 표·감시 안내 표에 인터넷 없음·잠자기 칸 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Why
맥북을 덮어 둔 동안 잠깐 깨어(DarkWake) 부른 감시 AI가 인터넷 없음(
getaddrinfo ENOTFOUND)으로 실패하거나, 잠든 18분까지 벽시계로 재 시간 초과가 돼 "감독 관찰AI 점검 필요" 알림이 떴다(2026-10-06 18:55, 2026-10-07 09:21). 감독은 정상이었다.변경
watch-judge.sh: 실패한 호출의 진단 기록에 주소 못 찾음 문구가 있으면KADAN_JUDGE_NETWORK=1→ reasonnetworkwatch-call-process: 시간 초과를 깨어 있던 시간으로 잼. 확인 간격이 30초 넘게 벌어지면(잠자기)slept로 종료network·slept는 대체 모델로 내려가지 않음(같은 연결이라 똑같이 실패)network가 깨어 있는 동안 같은 대상에서 3번 이어질 때만 알림(잠긴 규칙 3). 순회 간격이 max(60초, 주기×3)보다 벌어지면 잠든 것으로 보고 횟수를 버림확인
node --test tests/*.test.mjs: 1213 중 1212 통과. 실패 1건은 worktree에gui/dist가 없어 나는quickstart503(무관)tests/watch-ai-offline.test.mjs: 일부러 망가뜨린 4가지 변형을 모두 잡음. 잠자기는 SIGSTOP/SIGCONT로 흉내 냄npm run check:public0건🤖 Generated with Claude Code