iop/agent-task/02+edge_opsconsole_package/plan_local_G03_1.log
toki 6e2a1fc2f2 feat: edge runtime, opsconsole, CLI target terminology, and e2e validation updates
- Add edge runtime config and opsconsole package
- Refactor edge console to use new runtime config
- Add service source metadata support
- Update CLI adapter with target terminology
- Add edge operation contract and event bus replay
- Update node label and command ops surface
- Add E2E smoke tests and full validation
- Update proto runtime definitions
- Update documentation and agent-ops rules
2026-05-17 14:57:49 +09:00

78 lines
2.9 KiB
Text

<!-- task=02_edge_opsconsole_package plan=1 tag=REVIEW_FORMAT -->
# Review Follow-up Plan - REVIEW_FORMAT
## 이 파일을 읽는 구현 에이전트에게
이 plan은 `CODE_REVIEW-cloud-G07.md` 기반 구현에 대한 리뷰 FAIL 후속 작업이다. 범위는 Go formatting 실패 해결로 제한한다. 코드 동작, 콘솔 출력 문자열, parser 동작, runtime 조립은 변경하지 않는다.
구현 완료 후 `agent-task/02+edge_opsconsole_package/CODE_REVIEW-local-G03.md`의 모든 섹션을 실제 구현 내용과 명령 출력으로 채운다. 리뷰 아카이브는 구현 에이전트가 수행하지 않는다.
## 배경
리뷰에서 기능 테스트와 전체 Go 테스트는 통과했지만, `gofmt -l`이 `apps/edge/internal/opsconsole/console_test.go`를 보고했다. 포맷 diff는 `TestParseCommand`의 table struct field alignment뿐이다. 포맷 게이트가 실패했으므로 현재 루프는 FAIL이며, 후속 plan으로 formatting을 정리하고 동일 검증을 재실행한다.
## 구현 항목
### [REVIEW_FORMAT-1] opsconsole test formatting 정리
#### 문제
아래 명령이 비어 있지 않은 출력을 냈다.
```bash
gofmt -l apps/edge/cmd/edge/console.go apps/edge/internal/opsconsole/console.go apps/edge/internal/opsconsole/console_test.go apps/edge/internal/opsconsole/events.go apps/edge/internal/opsconsole/events_test.go apps/edge/internal/opsconsole/status.go apps/edge/internal/service/service_test.go
```
출력:
```text
apps/edge/internal/opsconsole/console_test.go
```
`gofmt -d` 기준 변경은 다음 정렬뿐이다.
```diff
- name string
- input string
- want Command
+ name string
+ input string
+ want Command
```
#### 해결 방법
`apps/edge/internal/opsconsole/console_test.go`에 `gofmt`를 적용한다. 다른 파일의 의미 변경은 하지 않는다.
#### 수정 파일 및 체크리스트
- [ ] `apps/edge/internal/opsconsole/console_test.go` - `gofmt` 적용
#### 중간 검증
```bash
gofmt -l apps/edge/cmd/edge/console.go apps/edge/internal/opsconsole/console.go apps/edge/internal/opsconsole/console_test.go apps/edge/internal/opsconsole/events.go apps/edge/internal/opsconsole/events_test.go apps/edge/internal/opsconsole/status.go apps/edge/internal/service/service_test.go
```
기대 결과: 출력 없음.
```bash
git diff --check -- apps/edge/cmd/edge/console.go apps/edge/cmd/edge/console_events.go apps/edge/cmd/edge/console_test.go apps/edge/internal/opsconsole apps/edge/internal/service/service_test.go
```
기대 결과: 출력 없음.
## 최종 검증
```bash
go test -count=1 ./apps/edge/internal/opsconsole ./apps/edge/cmd/edge ./apps/edge/internal/bootstrap
go test -count=1 ./...
```
## 완료 조건
- `gofmt -l` 출력이 비어 있다.
- `git diff --check`가 통과한다.
- 대상 패키지 테스트와 `go test -count=1 ./...`가 통과한다.
- `CODE_REVIEW-local-G03.md`에 실제 명령 출력이 기록되어 있다.