Repository navigation
feat(discord): 디코 #비서 새 글을 우편으로 비서에게 (--to-mail·다리 세션) - #158
Merged
Merged
Conversation
- discord watch --to-mail: 출력 대상만 우편 저장으로 바꾼다(조회·잠금·상태·가림 재사용). 우편 ID가 돌아오면 출력 완료 - 디코 글 id를 sourceKey로 원장에서 중복 거름(저장↔cursor 사이 죽음) - kadan up이 discord-bot 비밀값이 있을 때만 kadan-디코 세션을 보장(start 기록 없음 → 감시 경보 없음) - 비서 지침·문서 갱신 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- 잠금에 mode(mail/stdout) 기록, ensureBridge는 우편 모드·대상 비서·세션 안 주인일 때만 재사용, 아니면 blocked/locked와 이유 - sourceKey 중복 조회를 SQLite 좁은 조회(최신부터 첫 일치)로, 프로세스 첫 줄들에서만 조회 - N3 SIGTERM 시험: 자식 종료 뒤에 소비 재개 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.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.
Why
kyle이 디코 #비서에 쓴 질문이 Codex 운영 비서(Monitor 구독 불가)에게 실제로 닿게 한다. #156의 stdout 줄 방식 대신 카단 우편(저장·입력 보호·미확인 재안내)을 쓴다.
변경
kadan discord watch --to-mail [역할]: 출력 대상만 우편 저장으로 교체(조회·잠금·상태·가림 재사용). 우편 ID가 돌아온 때가 출력 완료 → 그 뒤 cursor → 👀. 저장 실패 시 cursor 불변.sourceKey: discord:<글 id>, 같은 수신자·같은 키면 새로 만들지 않고 정상 반환.디코(사용자 행위자 아님), 종류request, 머리에 id/threadId/where/at/답 명령/자료 표시/조회·답변만.kadan up:discord-bot비밀값이 있을 때만 tmuxkadan-디코다리 보장(start 기록 없음 → 감시 경보 대상 아님, 끄기kadan stop 디코).알려진 한계 (본문 참고)
inbox --previous-generations).kadan up이 재기동).검증
tests/discord-mail.test.mjs8건(가짜 디코 서버·격리 홈·격리 tmux), 전체node --test1578/1579(N3 SIGTERM 시험은 부하 간헐, 단독 3회 통과),check:public0건. 실제 디코 요청 없음.🤖 Generated with Claude Code