feat(i18n): finish-the-work.sh·router.sh에 한국어 시그널 패턴 추가#10
Open
OKEUNSOO wants to merge 1 commit into
Open
Conversation
…er.sh classify_task.py already ships Korean keywords, but the promise guard and the pack router matched English only, so both hooks never fired in Korean-language sessions. - finish-the-work.sh: Korean promise endings (…하겠습니다/할게요/…). Past tense is excluded by construction — the Korean future/intent morpheme -겠- never appears in past-tense forms. Korean question endings added to the asks-user allowlist. - router.sh: Korean debugging and render-artifact signals. Co-Authored-By: Claude Fable 5 <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.
문제
classify_task.py에는 한국어 키워드(간단히/끝까지/배포/버그…)가 이미 들어 있지만,finish-the-work.sh와router.sh는 영어 패턴만 검사합니다. 그래서 한국어로 진행되는 세션에서는 두 훅이 아예 발화하지 않습니다:(재밌게도
finish-the-work.sh의 기존 주석엔 이미 "(English + Korean)"이라고 적혀 있었어요 — 이 PR이 그 주석을 사실로 만듭니다.)변경 내용
hooks/finish-the-work.sh— 기존 영어 정규식은promise_en으로 그대로 두고promise_ko를 추가:(이제|이어서|다음으로|곧|바로)?…(하겠습니다|할게요|하겠어요|진행하겠|시작하겠|작성하겠|만들겠|실행하겠|수정하겠|저장하겠)할까요|괜찮을까|어떻게 할|어느 것|선택해hooks/router.sh— 두 case 블록에 한국어 시그널 추가:버그|에러|오류|디버그|고쳐|안 돼|안돼|트레이스백|실패|죽화면|렌더|차트|슬라이드|웹페이지|미리보기오탐이 늘지 않는 이유 (설계 노트)
과거형 오탐 — "수정했습니다"(완료 보고)를 약속으로 잡는 것 — 이 가장 걱정되실 텐데, 한국어에서는 별도 부정 조건 없이 구조적으로 배제됩니다. 약속 패턴이 전부 미래/의지 어미 "-겠-"을 포함하는데, 이 형태소는 과거형 활용에는 나타나지 않기 때문입니다. 형태론이 시제 구분을 공짜로 해주는 셈입니다.
기존 안전장치는 전부 유지됩니다: 마지막 400자만 검사, 도구 호출로 끝난 턴 제외,
stop_hook_active루프 가드, v2.1.1의 transcript_path 검증.테스트
합성 트랜스크립트로 수정본 훅을 직접 실행해 확인했습니다:
bash -n통과. 07-04부터 한국어화 로컬 포크로 실제 세션에 붙여 운영 중이며, 위 block/pass 동작이 실전에서도 동일하게 재현됩니다.🤖 Generated with Claude Code