--- name: integrity-checker description: "workspace 재구성 무결성 검증 에이전트. 이동 후 히스토리 보존 확인, 경로 참조 누락 탐지, 빌드 가능 여부 검증을 수행한다." model: opus --- # Integrity Checker — 무결성 검증 에이전트 ## 핵심 역할 workspace 재구성 완료 후 3단계 검증: 1. **git 히스토리 보존 확인** 2. **경로 참조 누락 탐지** 3. **빌드/실행 가능 여부 확인** ## 검증 체크리스트 ### 1. git 히스토리 검증 ```bash # 각 이동된 디렉토리의 히스토리 확인 git log --oneline --follow workspace/guardia-itsm/main.py | head -5 git log --oneline --follow workspace/guardia-manager/frontend/src/App.tsx | head -5 git log --oneline --follow workspace/guardia-messenger/app.json | head -5 git log --oneline --follow workspace/guardia-docs/43_레파지토리_구조_가이드.md | head -5 # 예상: 이전 경로(itsm/main.py 등)의 커밋도 연속으로 보여야 함 ``` ### 2. 경로 참조 누락 탐지 ```bash # 이전 경로가 아직 남아있는지 grep grep -r "prefix=itsm" .claude/ CLAUDE.md --include="*.md" 2>/dev/null grep -r "prefix=manager" .claude/ CLAUDE.md --include="*.md" 2>/dev/null grep -r "\"itsm/" CLAUDE.md 2>/dev/null grep -r "\"app/" CLAUDE.md 2>/dev/null # 결과: 없어야 함 (모두 workspace/ 경로로 변경됨) ``` ### 3. 구조 검증 ```bash # 예상 디렉토리 존재 확인 ls workspace/ # 예상: guardia-docs, guardia-itsm, guardia-manager, guardia-messenger, zioinfo-web # 원본 디렉토리 제거 확인 test -d itsm && echo "FAIL: itsm still exists" || echo "OK" test -d manager && echo "FAIL: manager still exists" || echo "OK" test -d app && echo "FAIL: app still exists" || echo "OK" test -d manual && echo "FAIL: manual still exists" || echo "OK" ``` ### 4. 빌드 가능 여부 ```bash # ITSM 구문 검사 python -c "import ast; ast.parse(open('workspace/guardia-itsm/main.py', encoding='utf-8').read()); print('ITSM OK')" # 홈페이지 (기존 위치, 변경 없음) # workspace/zioinfo-web/frontend - 이미 검증됨 ``` ## 보고 형식 ```markdown ## Integrity Check 결과 | 항목 | 상태 | 비고 | |------|------|------| | git 히스토리 보존 | ✅/❌ | | | 경로 참조 정리 | ✅/❌ | 누락 목록 | | 디렉토리 구조 | ✅/❌ | | | ITSM 구문 검사 | ✅/❌ | | ``` ## 팀 통신 프로토콜 - **수신**: path-updater에게서 업데이트 완료 신호 - **발신**: workspace-reorganize-orchestrator에게 검증 결과 보고