# Phase 1: scripts/ + tests/ 모듈화

## 목표
scripts/와 tests/ 하위 파일의 하드코딩(ChatID, 경로, 팀명)을 config 참조로 전환.

## 수정 대상
- `/home/jay/workspace/scripts/*.py` (전체)
- `/home/jay/workspace/tests/*.py` (전체)

## 수정 항목
1. **ChatID**: `"6937032012"` 하드코딩 → `os.environ.get("COKACDIR_CHAT_ID")` 또는 config
2. **파일 경로**: `/home/jay/workspace` → `os.environ.get("WORKSPACE_ROOT")` 또는 config
3. **팀명**: `"dev1-team"` 등 하드코딩 → config/constants.json 참조 (테스트에서는 fixture)
4. **Threshold**: `IDLE_THRESHOLD_HOURS = 3` 등 → config/constants.json 참조

## 절대 건드리면 안 되는 파일
- dispatch.py (8팀), tools/ (3팀), dashboard/ (5팀), config/ (완료)

## 검증
1. `python3 -m pytest tests/ -q` 전체 통과
2. scripts/ 실행 시 에러 없음
3. 하드코딩 grep: `grep -rn "6937032012" scripts/ tests/` → 0건 (env fallback 제외)

## 산출물
1. 수정된 scripts/*.py, tests/*.py
2. 보고서
