---
title: "시스템3문서 자동화 기능 강제 실행 — 판정C 2건 + 판정B 핵심 4건"
task_id: "task-1925+1"
status: completed
type: system
scope: prompts/team_prompts.py, scripts/g3_independent_verifier.py
created_at: "2026-04-17"
team: dev4-team
level: critical
---

## 목표
전수 감사에서 발견된 12개 자동화 기능 중 실제 작동하지 않는 판정C 2건(구조적 결함)과 판정B 4건(무시됨)을 수정하여 강제 실행되도록 한다.

## 수정 범위

### 판정C (구조적 결함) — 실행 명령 자체가 프롬프트에 없음
1. **C-1**: Codex 사전 검증 실행 명령 주입 (`_build_verification_section`)
2. **C-2**: Sanitize 게이트 실행 명령 주입 (`_build_verification_section`)

### 판정B (무시됨) — 강제 트리거 없음
3. **B-1**: G3 독립 검증 강제 실행 (`DIRECT-WORKFLOW.md` Step 5)
4. **B-2**: L1 스모크테스트 결과 기록 강제 (`team_prompts.py`)
5. **B-3**: Micro-commit 검증 (`g3_independent_verifier.py`)
6. **B-4**: 3 Step Why 기록 강제 (`g3_independent_verifier.py`)

## 수정 대상 파일
- `prompts/team_prompts.py` (C-1, C-2, B-2)
- `prompts/gate_instructions.py` (C-1)
- `prompts/DIRECT-WORKFLOW.md` (B-1 — 이미 있는지 확인 후 보완)
- `scripts/g3_independent_verifier.py` (B-3, B-4)
- `tests/test_team_prompts.py` (테스트 추가)

## 접근 방법
- 텍스트 지시가 아닌 **스크립트 실행 명령 + 결과 검증 게이트**를 프롬프트에 삽입
- 기존 함수(`get_codex_gate_command`, `_build_verification_section`)를 활용
- g3_independent_verifier.py에 WARN 레벨 검증 추가 (B-3, B-4)
