# task-1037.1 완료 보고서: 디자인 작업 = 디자인팀 전용 코드화

**작업일**: 2026-03-25 | **팀**: dev8-team (라/Ra) | **검증 레벨**: normal

---

## SCQA

**S**: 개발팀(1~8팀)이 satori-cardnews, gemini-image, hybrid-image, canvas-design 등 디자인 스킬을 직접 호출하여 이미지/배너/광고소재를 제작하는 것이 기술적으로 가능한 상태이다.

**C**: 제이회장님 지시로 모든 디자인 작업은 디자인팀(아마테라스 팀)을 통해야 하나, 프롬프트와 워크플로우에 이를 강제하는 규칙이 없어 개발팀이 디자인 작업을 수행할 수 있다.

**Q**: team_prompts.py와 DIRECT-WORKFLOW.md에 디자인 작업 제한 규칙을 코드화하여 개발팀의 디자인 직접 수행을 차단할 수 있는가?

**A**: 3개 파일에 규칙을 추가하여 완료. `_build_direct_prompt`(dev1~7팀)와 `_build_glm_prompt`(dev8팀) 모두에 디자인 금지 규칙을 삽입했고, DIRECT-WORKFLOW.md에 디자인 제한 섹션을 추가했다. design-team.json의 venus 모델도 `gemini-3-pro-image-preview`로 확인 완료. pytest 112건(기존 97 + 신규 15) 전부 통과, pyright 에러 0건.

---

## 수정 파일 목록

- `/home/jay/workspace/prompts/team_prompts.py` — `_build_direct_prompt`(line 542), `_build_glm_prompt`(line 590)에 디자인 금지 규칙 추가
- `/home/jay/workspace/prompts/DIRECT-WORKFLOW.md` — lines 299-303에 "⚠️ 디자인 작업 제한" 섹션 추가
- `/home/jay/workspace/memory/org-details/design-team.json` — 확인만 (수정 없음, venus model = gemini-3-pro-image-preview ✅)
- `/home/jay/workspace/tests/test_task_1037_1_design_restriction.py` — 신규 테스트 15건 (GLM 작성)

---

## 완료 조건 충족 확인

1. ✅ `team_prompts.py`의 `_build_direct_prompt`에 디자인 금지 규칙 추가됨
2. ✅ `team_prompts.py`의 `_build_glm_prompt`에 디자인 금지 규칙 추가됨
3. ✅ `DIRECT-WORKFLOW.md`에 디자인 제한 섹션 추가됨
4. ✅ `design-team.json`의 venus model = `gemini-3-pro-image-preview` 확인
5. ✅ 기존 코드/로직 파괴 없음 (import OK, pytest 97건 기존 테스트 전부 통과)

---

## 발견 이슈 및 해결

### 자체 해결 (1건)
1. **black 포맷 미적용** — GLM이 team_prompts.py에 black 포맷을 적용하지 않음. 라 팀장이 `black prompts/team_prompts.py` 직접 실행하여 해결.

### 범위 외 미해결 (1건)
1. **기존 테스트 42건 실패** — 범위 외 사유: test_integration_modules(8건), test_notify_completion(4건), test_qc_verify(5건), test_task522(3건), test_task_timer(1건) 등 본 작업과 무관한 기존 실패. team_prompts 관련 97건은 전부 PASS.

---

## 검증 증거

- **pytest (신규 15건)**: `tests/test_task_1037_1_design_restriction.py` — 15 passed in 0.07s
- **pytest (기존 97건)**: `tests/test_team_prompts.py` — 97 passed in 0.16s
- **pyright**: prompts/team_prompts.py — 0 errors, 0 warnings, 0 informations
- **black**: prompts/team_prompts.py — reformatted (라 팀장 수정 후 통과)
- **isort**: prompts/team_prompts.py — OK (EXIT 0)
- **import 확인**: `from prompts.team_prompts import build_prompt, TEAM_INFO` → OK

---

## QC 자동 검증 결과

```json
{
  "task_id": "task-1037.1",
  "overall": "7 PASS, 1 FAIL(file_check: .done 미생성 — finish-task.sh 실행 전), 4 SKIP",
  "test_runner": "PASS (97 passed in 0.16s)",
  "pyright_check": "PASS (0 errors)",
  "style_check": "PASS (black OK, isort OK)",
  "data_integrity": "PASS",
  "critical_gap": "PASS",
  "spec_compliance": "PASS",
  "duplicate_check": "PASS"
}
```
