# [micro] G4 Pre-PR Gemini CLI 게이트 기본 OFF

## allowed_resources
```yaml
allowed_resources:
  paths:
    - "scripts/finish-task.sh"
    - "tests/**"
  forbidden_paths:
    - "extension/**"
    - "src/**"
    - ".github/**"
    - "server/**"
  commands:
    - "bash"
    - "python3 -m py_compile"
    - "git"
  merge_policy: "tiered"
  ttl_hours: 6
```

## 배경
Gemini "Google 로그인" 무료 경로가 2026-06-18 sunset → G4 Pre-PR Gemini CLI 게이트(`gemini_cli_gate_check.py`)는 인증실패로 현재 soft-pass 중. 회장 결정 2026-07-22: **리뷰=Codex+아누로 확정, Gemini PR 기능 OFF**. 형식적으로 G4 게이트를 기본 비활성화한다.

## 작업 (surgical — 1곳)
`scripts/finish-task.sh` 의 G4 게이트 조건(~1558):
```
if [ "${G4_GATE_ENABLED:-1}" = "1" ] && [ -f "$WORKSPACE/scripts/gemini_cli_gate_check.py" ]; then
```
→ **기본값을 0 으로**:
```
if [ "${G4_GATE_ENABLED:-0}" = "1" ] && [ -f "$WORKSPACE/scripts/gemini_cli_gate_check.py" ]; then
```
- `G4_GATE_ENABLED:-1` → `G4_GATE_ENABLED:-0` (기본 OFF). env 로 `G4_GATE_ENABLED=1` 명시 시에만 다시 켜짐(되살리기 여지 보존).
- **그 외 로직·라인 건드리지 마라.** G4 블록 내부·다른 게이트(G1~G3) 불변.

## 검증
- `bash -n scripts/finish-task.sh` (문법 OK)
- 변경이 정확히 `:-1`→`:-0` 1곳인지 `git diff` 로 확인(다른 변경 0).
- `G4_GATE_ENABLED=1` 로 실행 시 여전히 게이트 진입(되살리기 경로 보존) — 코드상 확인.
- 기존 finish-task 회귀 테스트 green.

## 완료
- `scripts/finish-task.sh` 1줄 + 필요시 tests 외 변경 0 (`git diff --stat`)
- **dev6 금지** — dev1 등. worktree finish → PR → **머지 금지**(ANU 판정).
- **ANU callback**(UTF-8 ≤3900 bytes, envelope). scope-guard 막힘 시 result.json+ANU callback.