# MoAI-ADK 전체 도입 작업 검증 (한정승인)

## 목적
MoAI-ADK 도입 관련 전체 작업(Phase 1~3)이 제대로 학습, 문서화, 코드화 되었는지 종합 검증한다.

## 검증 범위

### 1. Phase 1 코드화 (task-1286.1)
- Progressive Disclosure: team_prompts.py에 disclosure_phase 파라미터 동작 확인
- 읽기/쓰기 에이전트 격리: dispatch.py의 --agent-type read|write 동작 확인
- hooks 자동 강제: .claude/settings.json PostToolUse 훅 + hooks/post_tool_use.sh + circuit_breaker.py 동작 확인
- feature_flags.json 6개 플래그 상태 확인
- 테스트: tests/test_progressive_disclosure.py, test_rw_isolation.py, test_hooks_enforcement.py, test_feature_flags.py 전체 실행

### 2. Phase 2 코드화 (task-1301.1)
- TRUST 5 태그: QC-RULES.md 5차원 구조 확인 + qc_verify.py에 TRUST 5 검증 추가 확인
- 모델 매핑 테이블: team_prompts.py에서 organization-structure.json 기준 모델 동기화 확인
  - ★ 마케팅/컨설팅/출판 팀원이 **sonnet**으로 되어있는지 반드시 확인 (이전에 haiku로 잘못 설정된 이력 있음)
- haiku A/B 준비: scripts/analyze_ab.py + logs/ab_results.jsonl 존재 확인
- feature flags: trust5_tagging_enabled=true, model_map_enabled=true 확인

### 3. Phase 3 문서화 (task-1305.1)
- Task 파일 구조 표준화 스펙: memory/specs/adk-impl-spec-10.md 존재 + 내용 검증
- YAML frontmatter 파일럿: 5개 task 파일에 YAML frontmatter 삽입 확인
- DIRECT-WORKFLOW.md에 Task File Standards 섹션 추가 확인
- P4 모니터링 계획: memory/reports/p4-monitoring-weekly.md 존재 확인

### 4. 계획/문서 검증
- 3문서 존재 확인: memory/plans/moai-adoption/{plan.md, context.md, checklist.md}
- 스펙 문서 6건: docs/specs/spec-p1-{1,2,7}.md, spec-feature-flags.md, spec-metrics-baseline.md, spec-rollback-procedure.md

### 5. 테스트 전체 실행
- Phase 1 테스트: pytest tests/test_progressive_disclosure.py tests/test_rw_isolation.py tests/test_hooks_enforcement.py tests/test_feature_flags.py
- Phase 2 테스트: 관련 테스트 파일 확인 및 실행
- 기존 테스트 회귀: pytest tests/test_team_prompts.py tests/test_dispatch.py
- integration 테스트: pytest tests/integration/

### 6. 발견한 문제 수정
- 검증 과정에서 발견된 문제는 **즉시 수정** (한정승인)
- 수정 불가능한 문제는 보고서에 기록

## 산출물
- 검증 보고서: `/home/jay/workspace/memory/reports/moai-verification-report.md`
  - 항목별 PASS/FAIL/WARN 판정
  - 테스트 실행 결과 (전체 건수, 통과/실패)
  - 발견된 문제 + 수정 내역

## 주의사항
- 문서만 읽고 끝내지 말 것 — 실제 코드 실행, 테스트 실행, 파일 존재 확인까지
- haiku 하드코딩 재발 여부 반드시 검증 (team_prompts.py grep "haiku")
- hooks가 실제로 pyright/ruff를 트리거하는지 확인