이벤트 큐 시스템 구현: 팀 완료 통보의 순차 처리 보장

## 문제
현재 팀장이 작업 완료 시 cokacdir --cron으로 아누에게 통보 → 독립 세션 생성.
아누가 제이회장님과 대화 중이면 통보가 별도 세션으로 뜨고, 현재 대화에 합류 불가.
3팀이 동시에 끝나면 3개 독립 세션이 순서 보장 없이 각각 보고.
메시지 유실 위험 + 순서 꼬임 위험.

## 해결: 이벤트 큐 (FIFO)

### 1. 큐 파일
경로: /home/jay/workspace/memory/events/event-queue.json
구조:
```json
{
  "queue": [
    {
      "id": "evt-001",
      "type": "task_complete",
      "task_id": "task-92.1",
      "team_id": "dev1-team",
      "report_path": "/home/jay/workspace/memory/reports/task-92.1.md",
      "created_at": "2026-03-02T16:18:43",
      "status": "pending"
    }
  ],
  "processed": []
}
```
- pending: 미처리
- processing: 처리 중
- processed 배열로 이동 시 완료

### 2. 큐 매니저 (Python 모듈)
파일: /home/jay/workspace/memory/event-queue.py
기능:
- **enqueue**: 이벤트 추가 (atomic write — 파일 잠금 사용)
  - CLI: `python3 event-queue.py enqueue --type task_complete --task-id task-XX --team dev1-team --report /path/to/report.md`
- **peek**: 다음 처리할 이벤트 조회 (큐에서 제거 안 함)
  - CLI: `python3 event-queue.py peek`
- **dequeue**: 처리 완료 → processed로 이동
  - CLI: `python3 event-queue.py dequeue <event_id>`
- **list**: 전체 큐 상태 조회
  - CLI: `python3 event-queue.py list [--pending|--all]`
- **count**: pending 개수
  - CLI: `python3 event-queue.py count`
- 파일 잠금(fcntl.flock)으로 동시 쓰기 충돌 방지
- JSON 읽기/쓰기 실패 시 백업 복구 로직

### 3. team_prompts.py 수정
팀장 완료 워크플로우에서 기존 .done 파일 생성 + cron 통보에 **추가로** event-queue.py enqueue 호출:
- _build_direct_prompt()의 완료 이벤트 생성 단계 (5단계)에 enqueue 명령 추가
- _build_glm_prompt()의 7단계에도 동일 추가
- 기존 .done 파일 + cron 통보는 그대로 유지 (하위호환)
- enqueue가 추가 안전망 역할

### 4. UserPromptSubmit 훅 수정
파일: /home/jay/.claude/hooks/user-prompt-submit.sh
- anu 케이스에서 기존 .done 체크 외에 event-queue.py count 실행
- pending > 0이면 '미처리 이벤트 N건 대기 중 — event-queue.py peek로 확인 후 순서대로 처리하세요' 메시지 출력
- 이러면 아누가 제이회장님과 대화 시작할 때마다 큐에 쌓인 이벤트를 순차 처리 가능

### 5. 건드리지 말 것
- _build_work_philosophy_section() — 그대로
- _build_verification_section() — 그대로
- _build_cowork_section() — 그대로
- cron 통보 프롬프트의 .done.clear 지시 — 그대로
- 기존 .done 프로토콜 전체 — 호환 유지

### 6. 테스트
- enqueue 3건 → peek → dequeue 순서대로 → 순서 보장 확인
- 동시 enqueue (멀티프로세스) → 파일 잠금으로 충돌 없음 확인
- 빈 큐에 peek/dequeue → 에러 없이 graceful 처리
- UserPromptSubmit 훅에서 count 출력 확인
- build_prompt()에 enqueue 명령이 포함되는지 확인