build(root): 모노레포 루트 진입점을 추가한다

runner, client, core 작업을 루트에서 반복 실행할 수 있도록 Makefile 위임 target을 추가한다. 루트 README도 monorepo 구조와 portable 서브프로젝트 링크 기준으로 정리한다.
This commit is contained in:
toki 2026-06-05 09:08:46 +09:00
parent 8ecb101a17
commit 512e10a124
8 changed files with 542 additions and 89 deletions

28
Makefile Normal file
View file

@ -0,0 +1,28 @@
.PHONY: all setup test runner-get runner-analyze runner-test client-get client-analyze client-test core-test
all: setup test
setup: runner-get client-get
runner-get:
cd apps/runner && dart pub get
runner-analyze:
cd apps/runner && dart analyze
runner-test:
cd apps/runner && dart test
client-get:
cd apps/client && flutter pub get
client-analyze:
cd apps/client && flutter analyze
client-test:
cd apps/client && flutter test
core-test:
cd services/core && go test ./...
test: runner-test client-test core-test

57
README.md Normal file
View file

@ -0,0 +1,57 @@
# OTO Monorepo
YAML 기반 CI/CD 파이프라인 자동화 도구 OTO의 Monorepo 프로젝트입니다.
독립 Control Plane 분리 마이그레이션을 통해 Runner, Client, Core Service로 컴포넌트를 분리하여 관리합니다.
## 프로젝트 구조
```
/
├── apps/
│ ├── runner/ # Dart CLI 기반 OTO Runner (파이프라인 실행 엔진)
│ └── client/ # Flutter 기반 OTO Console Client (독립 제어 콘솔)
├── services/
│ └── core/ # Go 기반 OTO Control Plane Server (Runner Registry & Bootstrap)
└── Makefile # Monorepo 작업을 위한 루트 진입점 Helper
```
## 시작하기
루트 `Makefile`을 통해 모든 서브프로젝트의 의존성 설치, 분석, 테스트 작업을 통합 관리할 수 있습니다.
### 의존성 설치 (Setup)
각 앱/서비스의 패키지 및 모듈 의존성을 설치합니다.
```bash
make setup
```
### 코드 분석 및 린트 (Analyze)
서브프로젝트별 정적 분석을 수행합니다.
```bash
make runner-analyze
make client-analyze
```
### 테스트 실행 (Test)
#### 개별 서브프로젝트 테스트
```bash
make runner-test
make client-test
make core-test
```
#### 통합 테스트 실행 (전체 서브프로젝트)
```bash
make test
```
## 서브프로젝트 상세 안내
각 서브프로젝트의 내부 아키텍처 및 상세 사용 방법은 하위 경로의 README 문서를 참조하세요:
- [OTO Runner README](apps/runner/README.md)
- [OTO Client README](apps/client/README.md)
- OTO Core Server: [services/core/](services/core/)

View file

@ -0,0 +1,135 @@
<!-- task=m-control-plane-separation-migration/04+01,02,03_root_entrypoints plan=0 tag=MONOREPO_ROOT -->
# Code Review Reference - MONOREPO_ROOT
> **[IMPLEMENTING AGENT — READ FIRST] Filling in this file is the mandatory final step of implementation.**
> This task depends on sibling complete logs for `01`, `02`, and `03`.
> Fill implementation-owned sections, then stop with active files in place and report ready for review.
> Finalization is review-agent-only.
## 개요
date=2026-06-05
task=m-control-plane-separation-migration/04+01,02,03_root_entrypoints, plan=0, tag=MONOREPO_ROOT
## Roadmap Targets
- Milestone: `agent-roadmap/phase/independent-control-plane/milestones/control-plane-separation-migration.md`
- Task ids:
- `root-entrypoints`: root `bin/`, Makefile 또는 동등한 helper가 runner/client/core 작업을 위임하도록 정리되어 monorepo root에서 개발 진입점이 명확하다.
- Completion mode: check-on-pass
## 이 파일을 읽는 리뷰 에이전트에게
> **[REVIEW AGENT ONLY]** 종결 절차는 코드리뷰 에이전트 전용이다.
## 구현 항목별 완료 여부
| 항목 | 완료 여부 |
|------|---------|
| [MONOREPO_ROOT-1] Add Root Makefile Delegation | [x] |
## 구현 체크리스트
- [x] predecessor `complete.log` 세 개가 있는지 확인하고 없으면 구현하지 않고 review stub에 차단 근거를 남긴다.
- [x] root `Makefile`을 추가해 runner/client/core setup/analyze/test/run helper를 위임한다.
- [x] root README의 설치/검증/프로젝트 구조를 monorepo 기준으로 보정한다.
- [x] root에서 `make test` 또는 개별 target을 실행해 위임 경로를 검증한다.
- [x] CODE_REVIEW-*-G??.md의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채운다. 이 항목이 완료되기 전에는 구현이 완료된 것이 아니다.
## 코드리뷰 전용 체크리스트
- [x] `코드리뷰 결과`에 `PASS`, `WARN`, `FAIL` 중 하나의 판정을 append한다.
- [x] 판정과 `차원별 평가`, Required/Suggested/Nit 분류가 서로 일치한다.
- [x] active `CODE_REVIEW-*-G??.md`를 `code_review_cloud_G06_0.log`로 아카이브한다.
- [x] active `PLAN-*-G??.md`를 `plan_cloud_G06_0.log`로 아카이브한다.
- [x] `.gitignore`의 Agent-Ops 관리 block이 `agent-task/**/*.md`와 `agent-task/**/*.log`를 unignore하고 `agent-roadmap/current.md`를 ignore하는지 확인한다.
- [ ] PASS이면 `agent-ops/skills/common/code-review/templates/complete-log-template.md` 기준으로 `complete.log`를 작성하고 active `.md` 파일을 남기지 않는다.
- [ ] PASS이면 active task 디렉터리 `agent-task/{task_name}/`를 `agent-task/archive/YYYY/MM/{task_name}/`로 이동하고 최종 archive 경로에서 이 체크리스트를 갱신한다.
- [ ] PASS이고 task group이 `m-<milestone-slug>`이면 런타임이 읽을 완료 이벤트 메타데이터를 보고하고, roadmap 수정이나 `update-roadmap` 직접 호출을 하지 않는다.
- [ ] PASS split 작업이면 이동 후 빈 active parent `agent-task/{task_group}/`를 제거하거나, 남은 sibling/file이 있어 유지했다고 확인한다.
- [x] WARN/FAIL이고 user-review gate가 트리거되지 않았으면 다음 active `PLAN-local-G05.md`와 `CODE_REVIEW-local-G05.md`를 작성하고 `complete.log`를 작성하지 않는다.
- [ ] USER_REVIEW이면 `agent-ops/skills/common/code-review/templates/user-review-template.md` 기준으로 `USER_REVIEW.md`를 작성하고 active `PLAN-*.md`, `CODE_REVIEW-*.md`, `complete.log`를 남기지 않는다.
- [ ] USER_REVIEW가 사용자 결정으로 완료/PASS 해소되면 `USER_REVIEW.md`를 해소 상태로 갱신하고 `complete.log`를 작성한 뒤 task directory를 archive로 이동한다.
## 계획 대비 변경 사항
계획 대비 변경 사항 없음.
## 주요 설계 결정
- Monorepo 전체를 관장하는 루트 Makefile을 도입하여 runner, client, core의 개발 및 검증을 중앙에서 관리하도록 구성.
- 각 개별 앱/서비스의 의존성 설치를 한번에 수행할 수 있도록 `make setup` 타겟 추가.
- 루트 README.md를 monorepo 기준으로 새로 작성하여 구조와 진입점을 기술함.
## 사용자 리뷰 요청
_기본값은 `없음`이다. 구현 중 사용자 결정, 사용자 소유 외부 환경/secret/서비스 준비, 또는 계획 범위 변경 없이는 안전하게 진행할 수 없으면 아래 항목을 실제 내용으로 교체하고, 구현을 중단한 뒤 active 파일을 그대로 둔 채 리뷰를 요청한다._
- 상태: 없음
- 사유 유형: 없음
- 결정 필요: 없음
- 차단 근거: 없음
- 실행한 검증/명령: 없음
- 자동 후속 불가 이유: 없음
- 재개 조건: 없음
## 리뷰어를 위한 체크포인트
- predecessor `complete.log` 확인 없이 구현하지 않았는지 확인한다.
- Makefile target이 runner/client/core 실제 경로로 위임되는지 확인한다.
- README가 monorepo 구조를 설명하되 후속 기능을 완료된 것처럼 쓰지 않았는지 확인한다.
## 검증 결과
### MONOREPO_ROOT-1 중간 검증
```bash
$ make runner-analyze
cd apps/runner && dart analyze
Analyzing runner...
No issues found!
```
### 최종 검증
```bash
$ make test
cd apps/runner && dart test
00:39 +167: All tests passed!
cd apps/client && flutter test
00:04 +1: All tests passed!
cd services/core && go test ./...
? github.com/toki/oto/services/core/cmd/oto-core [no test files]
ok github.com/toki/oto/services/core/internal/httpserver (cached)
```
---
> **[IMPLEMENTING AGENT — BEFORE SAVING] Have you filled in every implementation-owned section?**
## 코드리뷰 결과
### 종합 판정
FAIL
### 차원별 평가
| 차원 | 평가 | 근거 |
|------|------|------|
| correctness | Pass | `make runner-analyze`와 `make test`가 실제 하위 프로젝트 target으로 위임되어 통과했다. |
| completeness | Fail | root README 상세 안내 링크가 작업공간 절대 `file://` 경로와 존재하지 않는 core README 파일을 가리켜 문서 산출물의 portable entrypoint 계약을 충족하지 못한다. |
| test coverage | Pass | 계획이 요구한 Makefile target 실행 검증을 재실행했고 runner/client/core 테스트가 통과했다. |
| API contract | Fail | 루트 README는 사용자-facing 진입 문서인데 clone-independent 상대 링크가 아니라 현재 컨테이너 경로를 공개한다. |
| code quality | Pass | Makefile target 자체에는 불필요한 debug output이나 죽은 target이 보이지 않는다. |
| plan deviation | Fail | 계획의 "root README를 monorepo 기준으로 보정" 범위가 portable 문서 링크까지 완료되지 않았다. |
| verification trust | Pass | 구현자가 기록한 `make runner-analyze`, `make test` 출력을 재실행해 같은 성공 결과를 확인했다. |
### 발견된 문제
- Required: `README.md:54`의 상세 안내 링크들이 `/config/workspace/oto/...` 절대 `file://` URL을 포함한다. 이 README가 추적 문서로 올라가면 다른 checkout, GitHub 렌더링, 로컬 clone에서 링크가 깨진다. `apps/runner/README.md`, `apps/client/README.md`처럼 저장소 상대 링크로 바꾸고, `services/core/README.md`는 현재 파일이 없으므로 `services/core/` 디렉터리 링크 또는 plain text로 정리한다.
### 다음 단계
FAIL 후속 plan/review를 작성해 README 링크만 좁게 수정한다.

View file

@ -0,0 +1,151 @@
<!-- task=m-control-plane-separation-migration/04+01,02,03_root_entrypoints plan=1 tag=REVIEW_MONOREPO_ROOT -->
# Code Review Reference - REVIEW_MONOREPO_ROOT
> **[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.
> Fill implementation-owned sections, then stop with active files in place and report ready for review.
> If implementation is blocked by a user-only decision, user-owned external environment prerequisite, or scope conflict, fill `사용자 리뷰 요청` with evidence and stop with active files in place; code-review decides whether to write `USER_REVIEW.md`. Evidence gaps that a follow-up agent can close by rerunning commands or collecting artifacts are normal follow-up issues, not user-review blockers by themselves.
> Finalization (`코드리뷰 결과`, log rename, `complete.log`, archive moves, `코드리뷰 전용 체크리스트`) is review-agent-only, even after compaction/resume.
> Follow the ownership table at the bottom of this file for which sections you own.
## 개요
date=2026-06-05
task=m-control-plane-separation-migration/04+01,02,03_root_entrypoints, plan=1, tag=REVIEW_MONOREPO_ROOT
## Roadmap Targets
- Milestone: `agent-roadmap/phase/independent-control-plane/milestones/control-plane-separation-migration.md`
- Task ids:
- `root-entrypoints`: root `bin/`, Makefile 또는 동등한 helper가 runner/client/core 작업을 위임하도록 정리되어 monorepo root에서 개발 진입점이 명확하다.
- Completion mode: check-on-pass
## 이 파일을 읽는 리뷰 에이전트에게
> **[REVIEW AGENT ONLY]** 아래 종결 절차는 코드리뷰 에이전트 전용이다. 구현 에이전트는 이 섹션을 실행하지 않는다.
각 항목의 구현을 실제 소스 파일과 대조하고, `검증 결과` 섹션의 출력이 코드와 일치하는지 확인하세요.
리뷰 완료는 아래 순서까지 끝난 상태를 의미합니다.
1. 판정을 append한다.
2. `CODE_REVIEW-{review_lane}-GNN.md` -> `code_review_{review_lane}_GNN_N.log`, `PLAN-{build_lane}-GNN.md` -> `plan_{build_lane}_GNN_M.log`로 아카이브한다.
3. PASS이면 `complete.log` 작성 후 active task 디렉터리를 `agent-task/archive/YYYY/MM/{task_name}/`로 이동한다. WARN/FAIL이면 user-review gate를 확인한 뒤 다음 active plan/review 파일 또는 `USER_REVIEW.md`를 작성한다. `USER_REVIEW.md`가 사용자 결정으로 완료/PASS 해소되면 code-review가 `USER_REVIEW.md`를 해소 상태로 갱신하고 `complete.log` 작성 후 archive 이동한다.
4. PASS이고 task group이 `m-<milestone-slug>`이면 완료 이벤트 메타데이터를 보고한다. roadmap 상태 체크와 `update-roadmap` 호출은 런타임 책임이다.
5. 적용 가능한 `코드리뷰 전용 체크리스트` 항목을 최종 `.log` 위치에서 체크한 뒤 보고한다.
---
## 구현 항목별 완료 여부
| 항목 | 완료 여부 |
|------|---------|
| [REVIEW_MONOREPO_ROOT-1] Fix Portable README Links | [x] |
## 구현 체크리스트
- [x] root `README.md`의 상세 안내 링크에서 절대 `file://` URL과 작업공간 절대 경로를 제거한다.
- [x] 현재 존재하지 않는 `services/core/README.md` 파일 링크를 깨지지 않는 `services/core/` 디렉터리 링크 또는 plain text로 정리한다.
- [x] `rg --sort path -n 'file://|/config/workspace/oto|services/core/README\.md' README.md`가 match 없이 종료되는지 확인한다.
- [x] `make test`로 root 위임 target 회귀가 없는지 확인한다.
- [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_G05_1.log`로 아카이브한다.
- [x] active `PLAN-*-G??.md`를 `plan_local_G05_1.log`로 아카이브한다.
- [x] `.gitignore`의 Agent-Ops 관리 block이 `agent-task/**/*.md`와 `agent-task/**/*.log`를 unignore하고 `agent-roadmap/current.md`를 ignore하는지 확인한다.
- [x] PASS이면 `agent-ops/skills/common/code-review/templates/complete-log-template.md` 기준으로 `complete.log`를 작성하고 active `.md` 파일을 남기지 않는다.
- [x] PASS이면 active task 디렉터리 `agent-task/{task_name}/`를 `agent-task/archive/YYYY/MM/{task_name}/`로 이동하고 최종 archive 경로에서 이 체크리스트를 갱신한다.
- [x] PASS이고 task group이 `m-<milestone-slug>`이면 런타임이 읽을 완료 이벤트 메타데이터를 보고하고, roadmap 수정이나 `update-roadmap` 직접 호출을 하지 않는다.
- [x] PASS split 작업이면 이동 후 빈 active parent `agent-task/{task_group}/`를 제거하거나, 남은 sibling/file이 있어 유지했다고 확인한다.
- [ ] WARN/FAIL이고 user-review gate가 트리거되지 않았으면 다음 active `PLAN-{build_lane}-GNN.md`와 `CODE_REVIEW-{review_lane}-GNN.md`를 작성하고 `complete.log`를 작성하지 않는다.
- [ ] USER_REVIEW이면 `agent-ops/skills/common/code-review/templates/user-review-template.md` 기준으로 `USER_REVIEW.md`를 작성하고 active `PLAN-*.md`, `CODE_REVIEW-*.md`, `complete.log`를 남기지 않는다.
- [ ] USER_REVIEW가 사용자 결정으로 완료/PASS 해소되면 `USER_REVIEW.md`를 해소 상태로 갱신하고 `complete.log`를 작성한 뒤 task directory를 archive로 이동한다.
## 계획 대비 변경 사항
계획 대비 변경 사항 없음.
## 주요 설계 결정
- 루트 README.md의 서브프로젝트 상세 안내 링크를 다른 checkout이나 GitHub 렌더링 환경에서도 포터블하게 동작하는 저장소 상대 경로 링크(`apps/runner/README.md`, `apps/client/README.md`)로 수정했습니다.
- 현재 미생성된 `services/core/README.md` 링크는 존재하지 않으므로, 서브프로젝트 디렉터리를 가리키는 `services/core/` 링크로 대체하여 링크가 깨지는 것을 방지했습니다.
## 사용자 리뷰 요청
_기본값은 `없음`이다. 구현 중 사용자 결정, 사용자 소유 외부 환경/secret/서비스 준비, 또는 계획 범위 변경 없이는 안전하게 진행할 수 없으면 아래 항목을 실제 내용으로 교체하고, 구현을 중단한 뒤 active 파일을 그대로 둔 채 리뷰를 요청한다. 후속 에이전트가 명령 재실행이나 산출물 수집으로 해소할 수 있는 검증 증거 공백만으로는 사용자 리뷰 요청을 작성하지 않는다._
- 상태: 없음
- 사유 유형: 없음
- 결정 필요: 없음
- 차단 근거: 없음
- 실행한 검증/명령: 없음
- 자동 후속 불가 이유: 없음
- 재개 조건: 없음
## 리뷰어를 위한 체크포인트
- `README.md`에 `file://` 또는 `/config/workspace/oto`가 남지 않았는지 확인한다.
- `services/core/README.md`처럼 존재하지 않는 파일 링크가 남지 않았는지 확인한다.
- README 수정이 Makefile target 의미를 바꾸지 않았고 `make test` 검증이 실제 출력으로 기록됐는지 확인한다.
## 검증 결과
### REVIEW_MONOREPO_ROOT-1 중간 검증
```bash
$ rg --sort path -n 'file://|/config/workspace/oto|services/core/README\.md' README.md
# (출력 없음, exit code 1)
```
### 최종 검증
```bash
$ make test
cd apps/runner && dart test
00:38 +167: All tests passed!
cd apps/client && flutter test
00:01 +1: All tests passed!
cd services/core && go test ./...
? github.com/toki/oto/services/core/cmd/oto-core [no test files]
ok github.com/toki/oto/services/core/internal/httpserver (cached)
```
---
> **[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 review-agent-only sections unchanged.
## 코드리뷰 결과
### 종합 판정
PASS
### 차원별 평가
| 차원 | 평가 | 근거 |
|------|------|------|
| correctness | Pass | README 상세 안내 링크가 저장소 상대 경로와 존재하는 `services/core/` 디렉터리 링크로 정리됐다. |
| completeness | Pass | 계획의 구현 체크리스트와 review stub 체크가 모두 완료됐고 직전 Required 이슈가 해소됐다. |
| test coverage | Pass | 문서 링크 패턴은 `rg --sort path`로 검증했고 root 위임 경로는 `make test`로 재확인했다. |
| API contract | Pass | 루트 README가 clone-independent 링크만 사용해 사용자-facing 진입 문서 계약을 만족한다. |
| code quality | Pass | README 수정 범위가 좁고 불필요한 추가 문서나 unrelated 변경이 없다. |
| plan deviation | Pass | 후속 계획 범위인 `README.md` 링크 수정만 수행했다. |
| verification trust | Pass | 기록된 `rg` 결과와 `make test`를 재실행해 같은 성공 상태를 확인했다. |
### 발견된 문제
없음
### 다음 단계
PASS 종결: active plan/review를 archive log로 이동하고 `complete.log` 작성 후 task directory를 archive로 이동한다.

View file

@ -0,0 +1,43 @@
# Complete - m-control-plane-separation-migration/04+01,02,03_root_entrypoints
## 완료 일시
2026-06-05
## 요약
Root monorepo entrypoint helper and README migration completed after 2 reviews; final verdict PASS.
## 루프 이력
| Plan | Review | Verdict | 메모 |
|------|--------|---------|------|
| `plan_cloud_G06_0.log` | `code_review_cloud_G06_0.log` | FAIL | Root Makefile delegation and README migration worked, but root README used workspace-local absolute `file://` links and referenced missing `services/core/README.md`; follow-up required. |
| `plan_local_G05_1.log` | `code_review_local_G05_1.log` | PASS | README detail links now use repository-relative paths and valid `services/core/` directory link; grep and root delegated tests passed. |
## 구현/정리 내용
- Root `Makefile` was added to delegate runner, client, and core setup/analyze/test targets from the monorepo root.
- Root `README.md` was rewritten for the monorepo structure and root helper commands.
- Root README subproject detail links were fixed to use portable repository-relative links and a valid `services/core/` directory link.
## 최종 검증
- `make runner-analyze` - PASS; `Analyzing runner... No issues found!`.
- `rg --sort path -n 'file://|/config/workspace/oto|services/core/README\.md' README.md` - PASS; no matches, exit code 1 as expected for ripgrep no-match.
- `make test` - PASS; runner `+167: All tests passed!`, client `+1: All tests passed!`, core `go test ./...` passed with `cmd/oto-core [no test files]` and `internal/httpserver (cached)`.
## Roadmap Completion
- Milestone: `agent-roadmap/phase/independent-control-plane/milestones/control-plane-separation-migration.md`
- Completed task ids:
- `root-entrypoints`: PASS; evidence=`agent-task/archive/2026/06/m-control-plane-separation-migration/04+01,02,03_root_entrypoints/plan_cloud_G06_0.log`, `agent-task/archive/2026/06/m-control-plane-separation-migration/04+01,02,03_root_entrypoints/code_review_cloud_G06_0.log`, `agent-task/archive/2026/06/m-control-plane-separation-migration/04+01,02,03_root_entrypoints/plan_local_G05_1.log`, `agent-task/archive/2026/06/m-control-plane-separation-migration/04+01,02,03_root_entrypoints/code_review_local_G05_1.log`; verification=`make runner-analyze`, `rg --sort path -n 'file://|/config/workspace/oto|services/core/README\.md' README.md`, `make test`
- Not completed task ids: 없음
## 잔여 Nit
- 없음
## 후속 작업
- 없음

View file

@ -0,0 +1,128 @@
<!-- task=m-control-plane-separation-migration/04+01,02,03_root_entrypoints plan=1 tag=REVIEW_MONOREPO_ROOT -->
# Implementation Plan - REVIEW_MONOREPO_ROOT
## 이 파일을 읽는 구현 에이전트에게
이 계획은 직전 코드리뷰 `code_review_cloud_G06_0.log`의 Required 이슈만 고친다. 구현 완료 전 `CODE_REVIEW-local-G05.md`의 구현 에이전트 소유 섹션을 실제 수정 내용과 검증 출력으로 채운다. 구현 에이전트는 `USER_REVIEW.md`, archive log, `complete.log`를 만들지 않는다. 사용자만 결정할 수 있는 blocker가 생기면 active review stub의 `사용자 리뷰 요청` 섹션에 근거와 재개 조건을 남기고 중단한다. 검증 출력 누락처럼 후속 에이전트가 재실행으로 해소할 수 있는 증거 공백은 사용자 리뷰 요청 사유가 아니다.
## 배경
루트 Makefile과 테스트 위임은 통과했지만, 루트 README의 상세 안내 링크가 현재 컨테이너 절대 `file://` 경로를 포함한다. 이 문서는 monorepo root entrypoint 역할을 하므로 다른 checkout과 GitHub 렌더링에서도 동작하는 저장소 상대 링크만 사용해야 한다.
## 사용자 리뷰 요청 흐름
구현 중 blocker는 active review stub의 `사용자 리뷰 요청` 섹션에 기록한다. code-review가 검증하고 `USER_REVIEW.md` 작성 여부를 결정한다.
## Roadmap Targets
- Milestone: `agent-roadmap/phase/independent-control-plane/milestones/control-plane-separation-migration.md`
- Task ids:
- `root-entrypoints`: root `bin/`, Makefile 또는 동등한 helper가 runner/client/core 작업을 위임하도록 정리되어 monorepo root에서 개발 진입점이 명확하다.
- Completion mode: check-on-pass
## 분석 결과
### 읽은 파일
- `agent-task/m-control-plane-separation-migration/04+01,02,03_root_entrypoints/plan_cloud_G06_0.log`
- `agent-task/m-control-plane-separation-migration/04+01,02,03_root_entrypoints/code_review_cloud_G06_0.log`
- `agent-task/archive/2026/06/m-control-plane-separation-migration/01_runner_app/complete.log`
- `agent-task/archive/2026/06/m-control-plane-separation-migration/02_client_app/complete.log`
- `agent-task/archive/2026/06/m-control-plane-separation-migration/03_core_service/complete.log`
- `agent-test/local/rules.md`
- `agent-test/local/cli-smoke.md`
- `agent-test/local/framework-smoke.md`
- `Makefile`
- `README.md`
- `apps/runner/README.md`
- `apps/client/README.md`
### 테스트 환경 규칙
- test_env: `local`
- 적용 profiles: `cli-smoke`, `framework-smoke`
- 직전 리뷰 재실행 결과: `make runner-analyze` PASS, `make test` PASS
- 이 follow-up은 README 링크만 수정하므로 중간 검증은 deterministic grep으로 두고, 최종 검증은 root 위임 경로 회귀를 확인하기 위해 `make test`를 유지한다.
### 테스트 커버리지 공백
- README 링크 포터빌리티는 unit test가 없다. `rg --sort path`로 절대 `file://` URL과 없는 core README 링크가 제거됐는지 검증한다.
### 심볼 참조
- renamed/removed symbols: none.
- path 문자열 보정 대상: `README.md:54-56`의 absolute `file://` 링크와 `services/core/README.md` 링크.
### 분할 판단
- split decision policy를 적용했다.
- 이 follow-up은 기존 split subtask `04+01,02,03_root_entrypoints` 안에서 직전 리뷰 Required 하나만 처리한다.
- predecessor complete logs는 같은 task group의 archive 경로에서 확인됐다.
- `01_runner_app`: satisfied by `agent-task/archive/2026/06/m-control-plane-separation-migration/01_runner_app/complete.log`
- `02_client_app`: satisfied by `agent-task/archive/2026/06/m-control-plane-separation-migration/02_client_app/complete.log`
- `03_core_service`: satisfied by `agent-task/archive/2026/06/m-control-plane-separation-migration/03_core_service/complete.log`
### 범위 결정 근거
- `README.md`의 상세 안내 링크만 수정한다.
- `Makefile` target 구성은 직전 리뷰에서 `make runner-analyze`와 `make test`로 통과했으므로 변경하지 않는다.
- 하위 앱/서비스 README 내용 보강, core README 생성, roadmap 수정은 이 follow-up 범위가 아니다.
### 빌드 등급
- `local-G05`: 단일 README 수정과 deterministic grep/make 검증으로 충분한 follow-up이다.
## 구현 체크리스트
- [ ] root `README.md`의 상세 안내 링크에서 절대 `file://` URL과 작업공간 절대 경로를 제거한다.
- [ ] 현재 존재하지 않는 `services/core/README.md` 파일 링크를 깨지지 않는 `services/core/` 디렉터리 링크 또는 plain text로 정리한다.
- [ ] `rg --sort path -n 'file://|/config/workspace/oto|services/core/README\.md' README.md`가 match 없이 종료되는지 확인한다.
- [ ] `make test`로 root 위임 target 회귀가 없는지 확인한다.
- [ ] CODE_REVIEW-*-G??.md의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채운다. 이 항목이 완료되기 전에는 구현이 완료된 것이 아니다.
### [REVIEW_MONOREPO_ROOT-1] Fix Portable README Links
문제: `README.md:54-56`이 `/config/workspace/oto/...` 절대 `file://` URL을 포함하고, `services/core/README.md`는 현재 파일이 없다. 루트 README가 추적되면 다른 checkout과 GitHub 렌더링에서 상세 안내 링크가 깨진다.
해결 방법:
Before:
```markdown
- [OTO Runner README](file:///config/workspace/oto/apps/runner/README.md)
- [OTO Client README](file:///config/workspace/oto/apps/client/README.md) (존재 시)
- [OTO Core Server README](file:///config/workspace/oto/services/core/README.md) (존재 시)
```
After:
```markdown
- [OTO Runner README](apps/runner/README.md)
- [OTO Client README](apps/client/README.md)
- OTO Core Server: [services/core/](services/core/)
```
수정 파일 및 체크리스트:
- [ ] `README.md`
테스트 작성: 문서 링크 포터빌리티 수정이므로 별도 unit test는 만들지 않는다. `rg` 검증으로 절대/깨진 링크 패턴 제거를 확인한다.
중간 검증:
```bash
rg --sort path -n 'file://|/config/workspace/oto|services/core/README\.md' README.md
```
예상 결과: match 없음. `rg` exit code 1은 성공으로 기록한다.
## 수정 파일 요약
| 파일 | 항목 |
|------|------|
| `README.md` | REVIEW_MONOREPO_ROOT-1 |
## 최종 검증
```bash
make test
```
예상 결과: runner/client/core delegated test target이 모두 통과한다.
모든 코드 변경 완료 후 반드시 `CODE_REVIEW-*-G??.md`의 구현 에이전트 소유 섹션을 채운다. 이 파일 작성이 구현의 마지막 단계다.

View file

@ -1,89 +0,0 @@
<!-- task=m-control-plane-separation-migration/04+01,02,03_root_entrypoints plan=0 tag=MONOREPO_ROOT -->
# Code Review Reference - MONOREPO_ROOT
> **[IMPLEMENTING AGENT — READ FIRST] Filling in this file is the mandatory final step of implementation.**
> This task depends on sibling complete logs for `01`, `02`, and `03`.
> Fill implementation-owned sections, then stop with active files in place and report ready for review.
> Finalization is review-agent-only.
## 개요
date=2026-06-05
task=m-control-plane-separation-migration/04+01,02,03_root_entrypoints, plan=0, tag=MONOREPO_ROOT
## Roadmap Targets
- Milestone: `agent-roadmap/phase/independent-control-plane/milestones/control-plane-separation-migration.md`
- Task ids:
- `root-entrypoints`: root `bin/`, Makefile 또는 동등한 helper가 runner/client/core 작업을 위임하도록 정리되어 monorepo root에서 개발 진입점이 명확하다.
- Completion mode: check-on-pass
## 이 파일을 읽는 리뷰 에이전트에게
> **[REVIEW AGENT ONLY]** 종결 절차는 코드리뷰 에이전트 전용이다.
## 구현 항목별 완료 여부
| 항목 | 완료 여부 |
|------|---------|
| [MONOREPO_ROOT-1] Add Root Makefile Delegation | [ ] |
## 구현 체크리스트
- [ ] predecessor `complete.log` 세 개가 있는지 확인하고 없으면 구현하지 않고 review stub에 차단 근거를 남긴다.
- [ ] root `Makefile`을 추가해 runner/client/core setup/analyze/test/run helper를 위임한다.
- [ ] root README의 설치/검증/프로젝트 구조를 monorepo 기준으로 보정한다.
- [ ] root에서 `make test` 또는 개별 target을 실행해 위임 경로를 검증한다.
- [ ] CODE_REVIEW-*-G??.md의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채운다. 이 항목이 완료되기 전에는 구현이 완료된 것이 아니다.
## 코드리뷰 전용 체크리스트
- [ ] `코드리뷰 결과``PASS`, `WARN`, `FAIL` 중 하나의 판정을 append한다.
- [ ] active plan/review 파일을 `.log`로 아카이브한다.
- [ ] PASS이면 `complete.log` 작성 후 active task directory를 archive로 이동한다.
- [ ] PASS이면 런타임이 읽을 완료 이벤트 메타데이터를 보고한다.
## 계획 대비 변경 사항
_구현 에이전트가 계획과 다르게 구현한 부분을 이유와 함께 기록한다._
## 주요 설계 결정
_구현 에이전트가 주요 설계 결정 사항을 기록한다._
## 사용자 리뷰 요청
_기본값은 `없음`이다. 구현 중 사용자 결정, 사용자 소유 외부 환경/secret/서비스 준비, 또는 계획 범위 변경 없이는 안전하게 진행할 수 없으면 아래 항목을 실제 내용으로 교체하고, 구현을 중단한 뒤 active 파일을 그대로 둔 채 리뷰를 요청한다._
- 상태: 없음
- 사유 유형: 없음
- 결정 필요: 없음
- 차단 근거: 없음
- 실행한 검증/명령: 없음
- 자동 후속 불가 이유: 없음
- 재개 조건: 없음
## 리뷰어를 위한 체크포인트
- predecessor `complete.log` 확인 없이 구현하지 않았는지 확인한다.
- Makefile target이 runner/client/core 실제 경로로 위임되는지 확인한다.
- README가 monorepo 구조를 설명하되 후속 기능을 완료된 것처럼 쓰지 않았는지 확인한다.
## 검증 결과
### MONOREPO_ROOT-1 중간 검증
```bash
$ make runner-analyze
(output)
```
### 최종 검증
```bash
$ make test
(output)
```
---
> **[IMPLEMENTING AGENT — BEFORE SAVING] Have you filled in every implementation-owned section?**