docs: 세션 종료 - devlog 기록 + Vikunja 동기화 (#221 done, #222 done, #223 created)

This commit is contained in:
2026-03-07 12:37:57 +09:00
parent ce2336c3d6
commit aa9be854b4
2 changed files with 27 additions and 17 deletions

View File

@@ -1,16 +1,23 @@
# Gravity Control 프로젝트 초기 구축
# 전면 재설계: 채널 중복 + 이벤트 파이프라인
- **시간**: 2026-03-07 10:15~11:00
- **Commits**: `063257b`, `ea5001f`, `ba8454c`, `02c757f`
- **Vikunja**: #214~218 → done, #219 → 미착수 (Phase 2)
- **시간**: 2026-03-07 11:30~12:20
- **Commits**: `e32be6b`, `b2622e9`, `51ece61`, `ce2336c`
- **Vikunja**: #221 → done
## 결정 사항
- **로컬 파일 감시 방식 채택**: VS Code Extension 없이 brain/ 디렉토리 watchdog 감시
- **채널명 AG-{프로젝트명}**: task.md 제목에서 추출, 언더스코어 형식
- **metadata.json 모니터링**: 아티팩트 요약 변경도 Discord로 릴레이
- **asyncio.Lock**: 동시 이벤트로 인한 채널 중복 생성 방지
### 채널 검색: Discord API vs 자체 dict
- `category.text_channels`는 Discord 내부 캐시 → 방금 만든 채널이 안 보임
- `fetch_channel` API도 `text_channels` 프로퍼티는 캐시 반환
- **결론**: `self.session_channels` dict에서 NAME 기반 검색으로 전환 (캐시 무관)
### startup sync 제거
- 69개 세션 전부 스캔 → 채널 대량 생성 문제
- 시작 시 기존 Discord 채널만 재연결, 새 채널 생성 안 함
### content hash dedup
- watcher에 MD5 해시 비교 추가 → 내용 변경 없으면 이벤트 무시
- `.metadata.json` 감시 제거 → primary artifacts만 감시
## 미완료
- Discord 대화 내용 중계 (conversation은 binary protobuf로 직접 파싱 불가)
- Phase 2 양방향 입력 릴레이
- 서버 배포 (현재 로컬 실행)
- Extension의 `simulateApproval/Rejection`이 Antigravity 대화상자와 실제 연결되는지 테스트 필요