<!-- task=17_skill_date_placeholder plan=1 tag=REVIEW_SKILLDATE -->

# Code Review Reference - REVIEW_SKILLDATE

> **[IMPLEMENTING AGENT — READ FIRST] Filling in this file is the mandatory final step of implementation.**
> The task is NOT complete until every implementation-owned section below is filled in.
> Complete the `구현 체크리스트`; the final checklist item is mandatory before saving.
> Do not modify or check the `코드리뷰 전용 체크리스트`; it is owned by the review agent only.
> Follow the ownership table at the bottom of this file for which sections you own.

## 개요

date=2026-05-17
task=17_skill_date_placeholder, plan=1, tag=REVIEW_SKILLDATE

## 이 파일을 읽는 리뷰 에이전트에게

각 항목의 구현을 실제 소스 파일과 대조하고, `검증 결과` 섹션의 출력이 코드와 일치하는지 확인하세요.
리뷰 완료 후 반드시 아래 순서로 아카이브하세요.

1. `CODE_REVIEW-local-G04.md` -> `code_review_local_G04_N.log` (N = 기존 code_review_*.log 수)
2. `PLAN-local-G04.md` -> `plan_local_G04_M.log` (M = 기존 plan_*.log 수)
3. PASS인 경우 `complete.log` 작성 후 `agent-task/archive/YYYY/MM/17_skill_date_placeholder/`로 task 디렉터리 이동. WARN/FAIL인 경우 새 routed plan + review 스텁 작성.

어떤 판정에서도 아카이브를 건너뛰지 마세요. PASS/WARN/FAIL 모두 `코드리뷰 결과` append 후 active plan/review 파일을 먼저 아카이브하고, 그 다음 `complete.log` 또는 다음 plan/review 파일을 작성해야 합니다.
PASS에서는 `complete.log` 작성 후 현재 날짜의 `YYYY/MM` 기준으로 task 디렉터리를 `agent-task/archive/YYYY/MM/17_skill_date_placeholder/`로 이동하고, 최종 archive 경로의 `code_review_*.log`에서 `코드리뷰 전용 체크리스트`를 갱신한 다음 보고하세요.
WARN/FAIL에서는 다음 상태 파일 작성 후 현재 task 경로의 archived `code_review_*.log`에서 적용 가능한 `코드리뷰 전용 체크리스트` 항목을 체크한 다음 보고하세요.

---

## 구현 항목별 완료 여부

| 항목 | 완료 여부 |
|------|---------|
| [REVIEW_SKILLDATE-1] date placeholder와 archive policy 정합성 보존 | [x] |

## 구현 체크리스트

- [x] [REVIEW_SKILLDATE-1] plan/code-review skill에서 `date={YYYY-MM-DD}` placeholder와 PASS task-directory archive move 정책이 동시에 유지되도록 필요한 최소 보정을 수행한다.
- [x] 중간 검증과 최종 검증 명령을 모두 실행하고 실제 stdout/stderr를 CODE_REVIEW에 기록한다.
- [x] CODE_REVIEW-*-G??.md의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채운다. 이 항목이 완료되기 전에는 구현이 완료된 것이 아니다.

## 코드리뷰 전용 체크리스트

> **[REVIEW AGENT ONLY]** 이 체크리스트는 코드리뷰 에이전트만 사용한다.
> 구현 에이전트는 이 섹션을 수정하거나 체크하지 않는다.

- [x] `코드리뷰 결과`에 `PASS`, `WARN`, `FAIL` 중 하나의 판정을 append한다.
- [x] 판정과 `차원별 평가`, Required/Suggested/Nit 분류가 서로 일치한다.
- [x] active `CODE_REVIEW-*-G??.md`를 `code_review_local_G04_N.log`로 아카이브한다.
- [x] active `PLAN-*-G??.md`를 `plan_local_G04_M.log`로 아카이브한다.
- [x] PASS이면 `complete.log`를 작성하고 active `.md` 파일을 남기지 않는다.
- [x] PASS이면 `agent-task/17_skill_date_placeholder/`를 `agent-task/archive/YYYY/MM/17_skill_date_placeholder/`로 이동하고 최종 archive 경로에서 이 체크리스트를 갱신한다.
- [ ] WARN/FAIL이면 다음 active `PLAN-local-G04.md`와 `CODE_REVIEW-local-G04.md`를 작성하고 `complete.log`를 작성하지 않는다.

## 계획 대비 변경 사항

없음. 스킬 파일은 이미 최신 archive 정책과 `date={YYYY-MM-DD}` placeholder 상태를 만족하므로 수정하지 않았고, 활성 plan/review artifact만 최신 정책과 충돌하지 않도록 정정했다.

## 주요 설계 결정

- PASS task-directory archive move 정책은 최신 운영 정책이므로 제거하지 않는다.
- `date=2026-05-17`은 이 task review artifact의 실제 생성일로만 유지하고, skill template에는 넣지 않는다.
- historical `plan_*.log`, `code_review_*.log`, `complete.log`는 수정하지 않는다.

## 리뷰어를 위한 체크포인트

- 두 skill template의 `date={YYYY-MM-DD}` placeholder가 유지됐는가.
- `date=2026-05-17`이 두 skill template에 다시 들어가지 않았는가.
- PASS task-directory archive move 정책이 제거되지 않았는가.
- archived `agent-task/**` 로그의 historical date나 이전 판정은 변경하지 않았는가.

## 검증 결과

### REVIEW_SKILLDATE-1 중간 검증
```bash
$ rg --sort path -n "date=\\{YYYY-MM-DD\\}" agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md
agent-ops/skills/common/plan/SKILL.md:203:date={YYYY-MM-DD}
agent-ops/skills/common/code-review/SKILL.md:185:date={YYYY-MM-DD}
```

```bash
$ if rg --sort path -n "date=2026-05-17" agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md; then exit 1; fi
```

```bash
$ rg --sort path -n "agent-task/archive/YYYY/MM|PASS task-directory archive move|PASS task-directory moves|Move PASS Task" agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md
agent-ops/skills/common/plan/SKILL.md:15:code-review skill -> verdict + archive, complete.log, and PASS task-directory archive move or new follow-up plan/review files
agent-ops/skills/common/code-review/SKILL.md:3:description: Review completed implementation work in the current repository. Reads PLAN-{build_lane}-GNN.md and CODE_REVIEW-{review_lane}-GNN.md from the active task, reviews the actual changed source files, appends a verdict to the review file, then archives both files as .log. On PASS, writes complete.log summarising the full loop history and moves the completed task under agent-task/archive/YYYY/MM/. If Required or Suggested issues are found (FAIL or WARN), writes new routed plan/review files so the loop continues immediately. Nit-only findings may still PASS.
agent-ops/skills/common/code-review/SKILL.md:49:| `agent-task/archive/YYYY/MM/{task_name}/complete.log` + `*.log` files | Archived completed task (PASS); not active |
agent-ops/skills/common/code-review/SKILL.md:58:  - `PASS`: write `complete.log`, move `agent-task/{task_name}/` to `agent-task/archive/YYYY/MM/{task_name}/`, then complete the review-only checklist in the final archive path.
agent-ops/skills/common/code-review/SKILL.md:60:- Never stop after appending a verdict. Do not report to the user until archive, required next-state file writes, review-only checklist updates, and PASS task-directory archive moves are complete.
agent-ops/skills/common/code-review/SKILL.md:106:Do not check archive/next-state items in `코드리뷰 전용 체크리스트` during Step 4. Complete the applicable dedicated checklist items in the archived `code_review_*.log` during Step 7, after archive, next-state writes, and PASS task-directory moves are done.
agent-ops/skills/common/code-review/SKILL.md:152:- Final task archive path under `agent-task/archive/YYYY/MM/`.
agent-ops/skills/common/code-review/SKILL.md:195:3. PASS인 경우 `complete.log` 작성 후 `agent-task/archive/YYYY/MM/{task_name}/`로 task 디렉터리 이동. WARN/FAIL인 경우 새 routed plan + review 스텁 작성.
agent-ops/skills/common/code-review/SKILL.md:198:PASS에서는 `complete.log` 작성 후 현재 날짜의 `YYYY/MM` 기준으로 task 디렉터리를 `agent-task/archive/YYYY/MM/{task_name}/`로 이동하고, 최종 archive 경로의 `code_review_*.log`에서 `코드리뷰 전용 체크리스트`를 갱신한 다음 보고하세요.
agent-ops/skills/common/code-review/SKILL.md:224:- [ ] PASS이면 `agent-task/{task_name}/`를 `agent-task/archive/YYYY/MM/{task_name}/`로 이동하고 최종 archive 경로에서 이 체크리스트를 갱신한다.
agent-ops/skills/common/code-review/SKILL.md:280:## Step 7 - Complete Review-Only Checklist, Move PASS Task, And Report
agent-ops/skills/common/code-review/SKILL.md:284:- If verdict is `PASS`, determine archive month from the current completion date as `YYYY/MM`, create `agent-task/archive/YYYY/MM/` if missing, then move `agent-task/{task_name}/` to `agent-task/archive/YYYY/MM/{task_name}/`.
agent-ops/skills/common/code-review/SKILL.md:285:- Do not overwrite an existing archive directory. If `agent-task/archive/YYYY/MM/{task_name}/` already exists, append the next numeric suffix: `agent-task/archive/YYYY/MM/{task_name}_1/`, `agent-task/archive/YYYY/MM/{task_name}_2/`, and so on.
agent-ops/skills/common/code-review/SKILL.md:286:- For `PASS`, open the moved `agent-task/archive/YYYY/MM/{final_task_dir}/code_review_{review_lane}_GNN_N.log`.
agent-ops/skills/common/code-review/SKILL.md:321:- PASS: `complete.log` written with loop history, implementation summary, and residual Nits, then task directory moved under `agent-task/archive/YYYY/MM/`.
```

### 최종 검증
```bash
$ rg --sort path -n "date=\\{YYYY-MM-DD\\}" agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md
agent-ops/skills/common/plan/SKILL.md:203:date={YYYY-MM-DD}
agent-ops/skills/common/code-review/SKILL.md:185:date={YYYY-MM-DD}
```

```bash
$ if rg --sort path -n "date=2026-05-17" agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md; then exit 1; fi
```

```bash
$ rg --sort path -n "agent-task/archive/YYYY/MM|PASS task-directory archive move|PASS task-directory moves|Move PASS Task" agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md
agent-ops/skills/common/plan/SKILL.md:15:code-review skill -> verdict + archive, complete.log, and PASS task-directory archive move or new follow-up plan/review files
agent-ops/skills/common/code-review/SKILL.md:3:description: Review completed implementation work in the current repository. Reads PLAN-{build_lane}-GNN.md and CODE_REVIEW-{review_lane}-GNN.md from the active task, reviews the actual changed source files, appends a verdict to the review file, then archives both files as .log. On PASS, writes complete.log summarising the full loop history and moves the completed task under agent-task/archive/YYYY/MM/. If Required or Suggested issues are found (FAIL or WARN), writes new routed plan/review files so the loop continues immediately. Nit-only findings may still PASS.
agent-ops/skills/common/code-review/SKILL.md:49:| `agent-task/archive/YYYY/MM/{task_name}/complete.log` + `*.log` files | Archived completed task (PASS); not active |
agent-ops/skills/common/code-review/SKILL.md:58:  - `PASS`: write `complete.log`, move `agent-task/{task_name}/` to `agent-task/archive/YYYY/MM/{task_name}/`, then complete the review-only checklist in the final archive path.
agent-ops/skills/common/code-review/SKILL.md:60:- Never stop after appending a verdict. Do not report to the user until archive, required next-state file writes, review-only checklist updates, and PASS task-directory archive moves are complete.
agent-ops/skills/common/code-review/SKILL.md:106:Do not check archive/next-state items in `코드리뷰 전용 체크리스트` during Step 4. Complete the applicable dedicated checklist items in the archived `code_review_*.log` during Step 7, after archive, next-state writes, and PASS task-directory moves are done.
agent-ops/skills/common/code-review/SKILL.md:152:- Final task archive path under `agent-task/archive/YYYY/MM/`.
agent-ops/skills/common/code-review/SKILL.md:195:3. PASS인 경우 `complete.log` 작성 후 `agent-task/archive/YYYY/MM/{task_name}/`로 task 디렉터리 이동. WARN/FAIL인 경우 새 routed plan + review 스텁 작성.
agent-ops/skills/common/code-review/SKILL.md:198:PASS에서는 `complete.log` 작성 후 현재 날짜의 `YYYY/MM` 기준으로 task 디렉터리를 `agent-task/archive/YYYY/MM/{task_name}/`로 이동하고, 최종 archive 경로의 `code_review_*.log`에서 `코드리뷰 전용 체크리스트`를 갱신한 다음 보고하세요.
agent-ops/skills/common/code-review/SKILL.md:224:- [ ] PASS이면 `agent-task/{task_name}/`를 `agent-task/archive/YYYY/MM/{task_name}/`로 이동하고 최종 archive 경로에서 이 체크리스트를 갱신한다.
agent-ops/skills/common/code-review/SKILL.md:280:## Step 7 - Complete Review-Only Checklist, Move PASS Task, And Report
agent-ops/skills/common/code-review/SKILL.md:284:- If verdict is `PASS`, determine archive month from the current completion date as `YYYY/MM`, create `agent-task/archive/YYYY/MM/` if missing, then move `agent-task/{task_name}/` to `agent-task/archive/YYYY/MM/{task_name}/`.
agent-ops/skills/common/code-review/SKILL.md:285:- Do not overwrite an existing archive directory. If `agent-task/archive/YYYY/MM/{task_name}/` already exists, append the next numeric suffix: `agent-task/archive/YYYY/MM/{task_name}_1/`, `agent-task/archive/YYYY/MM/{task_name}_2/`, and so on.
agent-ops/skills/common/code-review/SKILL.md:286:- For `PASS`, open the moved `agent-task/archive/YYYY/MM/{final_task_dir}/code_review_{review_lane}_GNN_N.log`.
agent-ops/skills/common/code-review/SKILL.md:321:- PASS: `complete.log` written with loop history, implementation summary, and residual Nits, then task directory moved under `agent-task/archive/YYYY/MM/`.
```

```bash
$ git diff --check -- agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md
```

```bash
$ git diff -- agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md
```

```bash
$ git status --short -- agent-task/17_skill_date_placeholder agent-ops/skills/common/plan/SKILL.md agent-ops/skills/common/code-review/SKILL.md
?? agent-task/17_skill_date_placeholder/
```

## 코드리뷰 결과

종합 판정: PASS

차원별 평가:
- correctness: Pass
- completeness: Pass
- test coverage: Pass
- API contract: Pass
- code quality: Pass
- plan deviation: Pass
- verification trust: Pass

발견된 문제: 없음

다음 단계: PASS - active plan/review 파일을 아카이브하고 complete.log 작성 후 task 디렉터리를 `agent-task/archive/YYYY/MM/17_skill_date_placeholder/`로 이동한다.

---

> **[IMPLEMENTING AGENT — BEFORE SAVING] Have you filled in every implementation-owned section: completion table, implementation checklist, changes from plan, design decisions, and verification output?**
> If anything is blank, go back and fill it in before saving this file.
> Leave the review-agent-only checklist unchanged.
