feat(debate): 분산 토론 시스템 — Wiki.js 기반 통신, AG 프로젝트 스캐폴딩, handler 리팩토링

- wiki_client.py: find_page()를 singleByPath 직접 조회로 교체 (O(1))
- debate-agent/: gemini/opus AG 프로젝트 생성 (GEMINI.md + wiki_debate.py + /start)
- debate_handler.py: 로컬 파일 I/O → Wiki.js API 전환, _sync_wiki() 삭제
- response 페이지 매 턴 초기화 (누적 방지)
This commit is contained in:
2026-03-21 20:52:12 +09:00
parent 5fb4179857
commit cbc9db0439
10 changed files with 633 additions and 89 deletions

View File

@@ -0,0 +1,47 @@
---
description: 토론 세션을 시작합니다. 사회자의 input을 읽고 response를 작성합니다.
---
# 토론 참여 시작
// turbo-all
## 절차
### 1. GEMINI.md 행동 규칙 확인
`GEMINI.md`를 읽어 토론 참여자 행동 규칙을 확인합니다.
### 2. 사회자 지시 읽기
```powershell
python tools/wiki_debate.py read debates/{slug}/input-opus
```
> `{slug}`는 현재 진행 중인 토론의 slug입니다. `input-opus` 페이지가 비어있으면 아직 사회자가 input을 작성하지 않은 것이니 대기하세요.
### 3. 합의 상태 확인
```powershell
python tools/wiki_debate.py read debates/{slug}/working-document
```
사회자가 정리한 현재 합의 상태를 확인합니다.
### 4. 답변 작성 및 업로드
답변을 작성한 후 response 페이지에 업로드:
```powershell
python tools/wiki_debate.py write debates/{slug}/response-opus "답변 전문"
```
또는 긴 답변은 파일로:
```powershell
python tools/wiki_debate.py write-file debates/{slug}/response-opus response_draft.md
```
### 5. Discord 완료 시그널
Discord에 "response 작성 완료"를 게시하여 사회자에게 알립니다.