From 9f2855da1bdc3072c2143587260a4833923d39ac Mon Sep 17 00:00:00 2001 From: toki Date: Wed, 17 Jun 2026 20:02:53 +0900 Subject: [PATCH] update roadmap and plan files for control-plane-api-data-binding --- .../control-plane-api-data-binding.md | 6 +- .../CODE_REVIEW-local-G06.md | 133 ------------ .../02+01_execution_surface/PLAN-local-G06.md | 201 ------------------ .../03+01,02_preview_smoke/PLAN-cloud-G07.md | 8 +- 4 files changed, 7 insertions(+), 341 deletions(-) delete mode 100644 agent-task/m-control-plane-api-data-binding/02+01_execution_surface/CODE_REVIEW-local-G06.md delete mode 100644 agent-task/m-control-plane-api-data-binding/02+01_execution_surface/PLAN-local-G06.md diff --git a/agent-roadmap/phase/control-plane-product-surface/milestones/control-plane-api-data-binding.md b/agent-roadmap/phase/control-plane-product-surface/milestones/control-plane-api-data-binding.md index a0f1a19..3542d82 100644 --- a/agent-roadmap/phase/control-plane-product-surface/milestones/control-plane-api-data-binding.md +++ b/agent-roadmap/phase/control-plane-product-surface/milestones/control-plane-api-data-binding.md @@ -42,7 +42,7 @@ UI 스켈레톤을 실제 Core 응답을 소비하는 제품 표면으로 전환 - [x] [client-ports] Flutter client에 runners/jobs/executions/logs/artifacts 조회 adapter를 추가하고 `OtoConsoleConfig.serverHttpUrl`을 source of truth로 사용한다. 검증: `cd apps/client && flutter test`에서 adapter 상태 변환 테스트가 통과한다. - [x] [runner-surface] Runners 화면이 Core runner registry 응답을 loading/empty/error/data 상태로 표시한다. 검증: `cd packages/flutter/oto_console && flutter test`에서 runners surface 테스트가 통과한다. -- [ ] [execution-surface] Pipelines/Jobs와 Executions 화면이 job/execution read model을 표시하고 로그/아티팩트 진입 위치를 제공한다. 검증: `cd packages/flutter/oto_console && flutter test`에서 jobs/executions surface 테스트가 통과한다. +- [x] [execution-surface] Pipelines/Jobs와 Executions 화면이 job/execution read model을 표시하고 로그/아티팩트 진입 위치를 제공한다. 검증: `cd packages/flutter/oto_console && flutter test`에서 jobs/executions surface 테스트가 통과한다. - [ ] [preview-data-smoke] 원격 preview `http://toki-labs.com:13020/` 기준으로 Core health/readiness와 최소 한 화면의 실제 API 상태가 렌더링된다. 검증: 원격 runner 또는 local smoke에서 browser/screenshot evidence와 `curl` evidence를 남긴다. ## 완료 리뷰 @@ -68,8 +68,8 @@ UI 스켈레톤을 실제 Core 응답을 소비하는 제품 표면으로 전환 - 표준선(선택): Core HTTP route는 현재 CORS/preflight를 제공하므로 web preview는 cross-origin API smoke를 포함한다. - 진행 메모: [client-ports] `apps/client`에 Core read adapter와 상태 변환 테스트를 추가했고 `cd apps/client && flutter test`, `cd apps/client && flutter analyze`가 통과했다. (2026-06-17) - 진행 메모: [runner-surface] `agent-task/archive/2026/06/m-control-plane-api-data-binding/01_runner_surface/complete.log` 기준 PASS. `cd packages/flutter/oto_console && flutter test`, `cd apps/client && flutter test`, 양쪽 `flutter analyze`가 통과했다. (2026-06-17) -- 진행 메모: [execution-surface] 큰 작업으로 `agent-task/m-control-plane-api-data-binding/02+01_execution_surface/PLAN-local-G06.md` active plan이 준비되어 있고, predecessor `01`은 archive `complete.log`로 충족됐다. (2026-06-17) -- 진행 메모: [preview-data-smoke] 큰/원격 evidence 작업으로 `agent-task/m-control-plane-api-data-binding/03+01,02_preview_smoke/PLAN-cloud-G07.md` active plan이 준비되어 있으며, predecessor `02` 완료 대기 중이다. (2026-06-17) +- 진행 메모: [execution-surface] `agent-task/archive/2026/06/m-control-plane-api-data-binding/02+01_execution_surface/complete.log` 기준 PASS. `cd packages/flutter/oto_console && flutter test`, `cd apps/client && flutter test`, `git diff --check`가 통과했다. (2026-06-17) +- 진행 메모: [preview-data-smoke] 큰/원격 evidence 작업으로 `agent-task/m-control-plane-api-data-binding/03+01,02_preview_smoke/PLAN-cloud-G07.md` active plan이 준비되어 있으며, predecessors `01_runner_surface`, `02+01_execution_surface`는 archive `complete.log`로 충족됐다. (2026-06-17) - 선행 작업: `Flutter 콘솔 스켈레톤` - 후속 작업: 쓰기 액션, 인증/권한, 운영 대시보드 고도화 - 확인 필요: 없음 diff --git a/agent-task/m-control-plane-api-data-binding/02+01_execution_surface/CODE_REVIEW-local-G06.md b/agent-task/m-control-plane-api-data-binding/02+01_execution_surface/CODE_REVIEW-local-G06.md deleted file mode 100644 index dafd19a..0000000 --- a/agent-task/m-control-plane-api-data-binding/02+01_execution_surface/CODE_REVIEW-local-G06.md +++ /dev/null @@ -1,133 +0,0 @@ - - -# Code Review Reference - API - -> **[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. -> Do not ask the user directly, present choices in chat, or call `request_user_input` during implementation; record the needed decision in `사용자 리뷰 요청` and stop for code-review. -> 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-17 -task=m-control-plane-api-data-binding/02+01_execution_surface, plan=0, tag=API - -## Roadmap Targets - -- Milestone: `agent-roadmap/phase/control-plane-product-surface/milestones/control-plane-api-data-binding.md` -- Task ids: - - `execution-surface`: Pipelines/Jobs와 Executions 화면이 job/execution read model을 표시하고 로그/아티팩트 진입 위치를 제공한다. -- Completion mode: check-on-pass - -## 이 파일을 읽는 리뷰 에이전트에게 - -> **[REVIEW AGENT ONLY]** 아래 종결 절차는 코드리뷰 에이전트 전용이다. 구현 에이전트는 이 섹션을 실행하지 않는다. - -각 항목의 구현을 실제 소스 파일과 대조하고, `검증 결과` 섹션의 출력이 코드와 일치하는지 확인하세요. -리뷰 완료는 아래 순서까지 끝난 상태를 의미합니다. - -1. 판정을 append한다. -2. `CODE_REVIEW-local-G06.md` -> `code_review_local_G06_N.log`, `PLAN-local-G06.md` -> `plan_local_G06_M.log`로 아카이브한다. -3. PASS이면 `complete.log` 작성 후 active task 디렉터리를 `agent-task/archive/YYYY/MM/m-control-plane-api-data-binding/02+01_execution_surface/`로 이동한다. 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-control-plane-api-data-binding`이면 완료 이벤트 메타데이터를 보고한다. roadmap 상태 체크와 `update-roadmap` 호출은 런타임 책임이다. -5. 적용 가능한 `코드리뷰 전용 체크리스트` 항목을 최종 `.log` 위치에서 체크한 뒤 보고한다. - ---- - -## 구현 항목별 완료 여부 - -| 항목 | 완료 여부 | -|------|---------| -| [API-1] Console jobs/executions/artifacts surfaces | [ ] | -| [API-2] Client job/execution read wiring | [ ] | - -## 구현 체크리스트 - -- [ ] `packages/flutter/oto_console`에 jobs/executions/logs/artifacts surface용 view model과 widgets를 추가하고 상태별 widget test를 작성한다. 검증: `cd packages/flutter/oto_console && flutter test`에서 jobs/executions surface 테스트가 통과한다. -- [ ] `apps/client`가 `OtoCoreReadClient.fetchJob`, `fetchExecution`, `fetchLogs`, `fetchArtifacts` 결과를 surface snapshot으로 변환해 `OtoConsoleShell.pipelines`, `executions`, `artifacts`에 주입하고 fake read client test를 작성한다. 검증: `cd apps/client && flutter test`가 통과한다. -- [ ] CODE_REVIEW-*-G??.md의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채운다. 이 항목이 완료되기 전에는 구현이 완료된 것이 아니다. - -## 코드리뷰 전용 체크리스트 - -> **[REVIEW AGENT ONLY]** 이 체크리스트는 코드리뷰 에이전트만 사용한다. -> 구현 에이전트는 이 섹션을 수정하거나 체크하지 않는다. - -- [ ] `코드리뷰 결과`에 `PASS`, `WARN`, `FAIL` 중 하나의 판정을 append한다. -- [ ] 판정과 `차원별 평가`, Required/Suggested/Nit 분류가 서로 일치한다. -- [ ] active `CODE_REVIEW-*-G??.md`를 `code_review_local_G06_N.log`로 아카이브한다. -- [ ] active `PLAN-*-G??.md`를 `plan_local_G06_M.log`로 아카이브한다. -- [ ] `.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/m-control-plane-api-data-binding/02+01_execution_surface/`를 `agent-task/archive/YYYY/MM/m-control-plane-api-data-binding/02+01_execution_surface/`로 이동하고 최종 archive 경로에서 이 체크리스트를 갱신한다. -- [ ] PASS이고 task group이 `m-control-plane-api-data-binding`이면 런타임이 읽을 완료 이벤트 메타데이터를 보고하고, roadmap 수정이나 `update-roadmap` 직접 호출을 하지 않는다. -- [ ] PASS split 작업이면 이동 후 빈 active parent `agent-task/m-control-plane-api-data-binding/`를 제거하거나, 남은 sibling/file이 있어 유지했다고 확인한다. -- [ ] WARN/FAIL이고 user-review gate가 트리거되지 않았으면 다음 active `PLAN-local-G06.md`와 `CODE_REVIEW-local-G06.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로 이동한다. - -## 계획 대비 변경 사항 - -_구현 에이전트가 계획과 다르게 구현한 부분을 이유와 함께 기록한다._ - -## 주요 설계 결정 - -_구현 에이전트가 주요 설계 결정 사항을 기록한다._ - -## 사용자 리뷰 요청 - -_기본값은 `없음`이다. 구현 중 사용자 결정, 사용자 소유 외부 환경/secret/서비스 준비, 또는 계획 범위 변경 없이는 안전하게 진행할 수 없으면 아래 항목을 실제 내용으로 교체하고, 구현을 중단한 뒤 active 파일을 그대로 둔 채 리뷰를 요청한다. 구현 에이전트는 사용자에게 직접 질문하거나 선택지를 제시하거나 `request_user_input`을 호출하지 않는다. 후속 에이전트가 명령 재실행이나 산출물 수집으로 해소할 수 있는 검증 증거 공백만으로는 사용자 리뷰 요청을 작성하지 않는다._ - -- 상태: 없음 -- 사유 유형: 없음 -- 결정 필요: 없음 -- 차단 근거: 없음 -- 실행한 검증/명령: 없음 -- 자동 후속 불가 이유: 없음 -- 재개 조건: 없음 - -## 리뷰어를 위한 체크포인트 - -- `01_runner_surface`의 `complete.log`가 존재하고 공통 state contract를 실제로 재사용했는지 확인한다. -- Core route/schema 변경 없이 id 기반 job/execution/log/artifact read path만 소비했는지 확인한다. -- logs/artifacts 진입 위치가 execution 화면에서 사용자가 찾을 수 있게 노출되는지 확인한다. - -## 검증 결과 - -_구현 에이전트가 각 중간 검증 및 최종 검증 명령 실행 후 출력을 여기에 붙여 넣는다._ - -필수 규칙: -- 검증 명령은 고정된 계약이다. 임의로 대체하지 않는다. -- 대체가 필요하면 `계획 대비 변경 사항`에 이유와 대체 명령을 기록한다. -- `검증 결과`에는 실제 stdout/stderr를 붙여 넣는다. -- 사용자 리뷰 요청으로 명령을 끝까지 실행하지 못했다면 `사용자 리뷰 요청`에 실행한 명령, 실제 출력, 미실행 명령의 사유를 기록한다. -- mobile/UI hang, timeout, 또는 2분 무진행은 blind retry를 중단하고 focused rerun 명령과 screenshot/window/UI-tree evidence path를 남기며, 불가능하면 정확한 사유를 남긴다. - -### API-1 중간 검증 -```bash -$ cd packages/flutter/oto_console && flutter test -(output) -``` - -### API-2 중간 검증 -```bash -$ cd apps/client && flutter test -(output) -``` - -### 최종 검증 -```bash -$ cd packages/flutter/oto_console && flutter test -(output) -$ cd apps/client && flutter test -(output) -``` - ---- - -> **[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. diff --git a/agent-task/m-control-plane-api-data-binding/02+01_execution_surface/PLAN-local-G06.md b/agent-task/m-control-plane-api-data-binding/02+01_execution_surface/PLAN-local-G06.md deleted file mode 100644 index 773dc93..0000000 --- a/agent-task/m-control-plane-api-data-binding/02+01_execution_surface/PLAN-local-G06.md +++ /dev/null @@ -1,201 +0,0 @@ - - -# Plan - API Execution Surface - -## 이 파일을 읽는 구현 에이전트에게 - -구현 완료의 마지막 단계는 active `CODE_REVIEW-*-G??.md`의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채우는 것이다. 검증을 실행하고, 실제 출력과 설계 결정을 기록한 뒤 active 파일을 그대로 둔 채 리뷰 준비를 보고한다. 종결 처리, log rename, `complete.log` 작성, archive 이동은 code-review 스킬 전용이다. 구현 중 사용자만 결정할 항목, 사용자 소유 외부 환경, 범위 충돌이 발견되면 review stub의 `사용자 리뷰 요청` 섹션에 정확한 근거를 남기고 멈춘다. 구현 중 채팅으로 직접 질문하거나 `request_user_input`을 호출하지 않는다. - -## 배경 - -현재 Pipelines/Jobs, Executions, Artifacts section은 모두 shell의 기본 empty surface다. 선행 runner surface 계획은 console package의 공통 loading/empty/error/data state contract를 만든다. 이 계획은 그 contract를 재사용해 id 기반 Core read path에서 job, execution, logs, artifacts를 읽고 화면에 표시한다. - -## 사용자 리뷰 요청 흐름 - -구현 중 차단 사항은 active review stub의 `사용자 리뷰 요청` 섹션에 기록한다. 해당 섹션은 `agent-ops/skills/common/_templates/implementation-user-review-request-section.md` 형식을 따른다. 직접 사용자 프롬프트는 금지되며, code-review가 요청 타당성을 검토하고 실제 `USER_REVIEW.md` 작성 여부를 결정한다. - -## Roadmap Targets - -- Milestone: `agent-roadmap/phase/control-plane-product-surface/milestones/control-plane-api-data-binding.md` -- Task ids: - - `execution-surface`: Pipelines/Jobs와 Executions 화면이 job/execution read model을 표시하고 로그/아티팩트 진입 위치를 제공한다. -- Completion mode: check-on-pass - -## 분석 결과 - -### 읽은 파일 - -- `agent-roadmap/current.md` -- `agent-roadmap/phase/control-plane-product-surface/PHASE.md` -- `agent-roadmap/phase/control-plane-product-surface/milestones/control-plane-api-data-binding.md` -- `agent-test/local/rules.md` -- `apps/client/lib/src/app/core_connection_client.dart` -- `apps/client/lib/src/app/oto_client_app.dart` -- `apps/client/test/widget_test.dart` -- `apps/client/pubspec.yaml` -- `apps/client/analysis_options.yaml` -- `packages/flutter/oto_console/lib/oto_console.dart` -- `packages/flutter/oto_console/lib/src/oto_console_contract.dart` -- `packages/flutter/oto_console/lib/src/oto_console_models.dart` -- `packages/flutter/oto_console/lib/src/oto_console_overview.dart` -- `packages/flutter/oto_console/lib/src/oto_console_shell.dart` -- `packages/flutter/oto_console/test/oto_console_test.dart` -- `packages/flutter/oto_console/pubspec.yaml` -- `packages/flutter/oto_console/analysis_options.yaml` -- `services/core/internal/httpserver/routes.go` -- `services/core/internal/httpserver/dto.go` -- `services/core/internal/httpserver/job_handlers.go` -- `services/core/internal/httpserver/execution_handlers.go` -- `services/core/internal/cicdstate/store.go` -- `services/core/internal/runnerregistry/registry.go` - -### 테스트 환경 규칙 - -- `test_env=local`; `agent-test/local/rules.md`를 읽었다. -- matched agent-test profile: 없음. Flutter client/console 구현 경로에 전용 profile이 없다. -- 적용할 fallback source: `agent-test/local/rules.md`의 Monorepo Targets. -- 검증 명령: `cd packages/flutter/oto_console && flutter test`, `cd apps/client && flutter test`. -- 도구 확인: `command -v flutter`, `command -v dart`, `command -v go` 성공. - -### 테스트 커버리지 공백 - -- jobs/executions/logs/artifacts 화면 contract와 상태 렌더링은 기존 console test에 없다. 새 widget tests가 필요하다. -- app이 `OtoCoreReadClient.fetchJob`, `fetchExecution`, `fetchLogs`, `fetchArtifacts`를 조합하는 흐름은 기존 client test에 없다. fake read client tests가 필요하다. - -### 심볼 참조 - -- renamed/removed symbols: none. - -### 분할 판단 - -- split decision policy를 먼저 평가했다. -- shared task group: `agent-task/m-control-plane-api-data-binding/`. -- current subtask: `02+01_execution_surface`. -- predecessor `01`: missing active/archive `complete.log`. 구현은 `agent-task/m-control-plane-api-data-binding/01_runner_surface/complete.log` 또는 대응 archive `complete.log`가 생긴 뒤 시작한다. -- `03+01,02_preview_smoke`는 이 subtask와 `01_runner_surface` 완료 뒤 실행한다. - -### 범위 결정 근거 - -- Core list endpoint는 추가하지 않는다. `routes.go:63-96`은 job/execution/log/artifact id 기반 read path를 제공하므로, 화면은 known id가 없을 때 empty state를 표시한다. -- runner registry 화면은 `01_runner_surface` 범위다. -- 원격 preview screenshot/curl evidence는 `03+01,02_preview_smoke` 범위다. - -### 빌드 등급 - -- build: `local-G06`, review: `local-G06`. console package public model과 client state wiring이 늘지만, 선행 state contract를 재사용하고 widget/unit tests로 검증 가능하다. - -## 의존 관계 및 구현 순서 - -1. `01_runner_surface`가 PASS되어 `complete.log`를 남긴 뒤 시작한다. -2. 이 subtask는 `02+01_execution_surface` 디렉터리명 그대로 predecessor `01`만 요구한다. -3. 선행 `complete.log`가 없으면 구현하지 말고 review stub의 `사용자 리뷰 요청`이 아니라 계획 대기 상태로 보고한다. - -## 구현 체크리스트 - -- [ ] `packages/flutter/oto_console`에 jobs/executions/logs/artifacts surface용 view model과 widgets를 추가하고 상태별 widget test를 작성한다. 검증: `cd packages/flutter/oto_console && flutter test`에서 jobs/executions surface 테스트가 통과한다. -- [ ] `apps/client`가 `OtoCoreReadClient.fetchJob`, `fetchExecution`, `fetchLogs`, `fetchArtifacts` 결과를 surface snapshot으로 변환해 `OtoConsoleShell.pipelines`, `executions`, `artifacts`에 주입하고 fake read client test를 작성한다. 검증: `cd apps/client && flutter test`가 통과한다. -- [ ] CODE_REVIEW-*-G??.md의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채운다. 이 항목이 완료되기 전에는 구현이 완료된 것이 아니다. - -### [API-1] Console jobs/executions/artifacts surfaces - -문제: shell 기본 section들은 Jobs, Executions, Artifacts를 모두 empty surface로 렌더링한다. - -Before: - -```dart -// packages/flutter/oto_console/lib/src/oto_console_shell.dart:83 -OtoConsoleSection.pipelines => - widget.pipelines ?? - OtoConsoleSectionSurface( - icon: Icons.account_tree_outlined, - title: 'Pipelines / Jobs', - emptyTitle: 'No pipeline jobs', - emptyMessage: 'Job queue is empty.', - theme: theme, - ), -``` - -해결 방법: `01_runner_surface`에서 추가된 공통 state contract를 사용한다. `OtoJobsSurface`, `OtoExecutionsSurface`, `OtoArtifactsSurface`를 새 파일로 분리하고, job id/name/state/execution id, execution id/job id/state, log preview, artifact name/path를 표시한다. logs/artifacts 진입 위치는 execution row/detail 안에 "Logs"와 "Artifacts" action/section으로 제공한다. - -수정 파일 및 체크리스트: - -- [ ] `packages/flutter/oto_console/lib/src/oto_console_contract.dart`에 job/execution/log/artifact view model 추가. -- [ ] `packages/flutter/oto_console/lib/src/oto_jobs_surface.dart` 생성. -- [ ] `packages/flutter/oto_console/lib/src/oto_executions_surface.dart` 생성. -- [ ] `packages/flutter/oto_console/lib/src/oto_artifacts_surface.dart` 생성. -- [ ] `packages/flutter/oto_console/lib/oto_console.dart` export 추가. -- [ ] `packages/flutter/oto_console/test/oto_console_test.dart`에 상태별 widget tests 추가. - -테스트 작성: 작성. 각 surface의 loading/empty/error/data 상태, job/execution 핵심 필드, log/artifact entry label을 검증한다. - -중간 검증: - -```bash -cd packages/flutter/oto_console && flutter test -``` - -기대 결과: jobs/executions/artifacts surface 테스트 포함 전체 통과. - -### [API-2] Client job/execution read wiring - -문제: 작은 선행 작업에서 read adapter는 생겼지만 app은 아직 overview만 shell에 주입한다. - -Before: - -```dart -// apps/client/lib/src/app/oto_client_app.dart:111 -home: OtoConsoleShell( - config: widget.config, - capabilities: widget.capabilities, - themeAdapter: themeAdapter, - overview: OtoConsoleOverview( - config: widget.config, - connection: _connection, - onRefresh: _refreshCoreStatus, - themeAdapter: themeAdapter, - ), -), -``` - -해결 방법: app에 known job/execution id seed를 optional parameter로 추가한다. id가 없으면 empty snapshot을 표시한다. id가 있으면 `core_connection_client.dart:234-339`의 fetch methods를 호출해 job, execution, logs, artifacts snapshot을 구성한다. refresh generation guard를 overview와 같은 방식으로 적용해 stale async result를 막는다. - -수정 파일 및 체크리스트: - -- [ ] `apps/client/lib/src/app/oto_client_app.dart`에 job/execution/artifact snapshot state와 refresh flow 추가. -- [ ] `apps/client/lib/src/app/core_connection_client.dart`의 기존 adapter를 사용하고 endpoint를 추가하지 않는다. -- [ ] `apps/client/test/widget_test.dart`에 fake read client로 data/error/empty 상태 테스트 추가. - -테스트 작성: 작성. fake read client가 `OtoConsoleConfig.serverHttpUrl`을 기준으로 호출되고, 화면에 job/execution/log/artifact data와 empty/error 상태가 표시되는지 검증한다. - -중간 검증: - -```bash -cd apps/client && flutter test -``` - -기대 결과: job/execution wiring 테스트 포함 전체 통과. - -## 수정 파일 요약 - -| 파일 | 항목 | -|------|------| -| `packages/flutter/oto_console/lib/src/oto_console_contract.dart` | API-1 | -| `packages/flutter/oto_console/lib/src/oto_jobs_surface.dart` | API-1 | -| `packages/flutter/oto_console/lib/src/oto_executions_surface.dart` | API-1 | -| `packages/flutter/oto_console/lib/src/oto_artifacts_surface.dart` | API-1 | -| `packages/flutter/oto_console/lib/oto_console.dart` | API-1 | -| `packages/flutter/oto_console/test/oto_console_test.dart` | API-1 | -| `apps/client/lib/src/app/oto_client_app.dart` | API-2 | -| `apps/client/lib/src/app/core_connection_client.dart` | API-2 | -| `apps/client/test/widget_test.dart` | API-2 | - -## 최종 검증 - -```bash -cd packages/flutter/oto_console && flutter test -cd apps/client && flutter test -``` - -기대 결과: 두 명령 모두 통과한다. Flutter test cache 여부는 Dart/Flutter test runner 기본 동작을 따른다. - -모든 코드 변경 완료 후 반드시 `CODE_REVIEW-*-G??.md`의 구현 에이전트 소유 섹션을 채운다. 이 파일 작성이 구현의 마지막 단계다. diff --git a/agent-task/m-control-plane-api-data-binding/03+01,02_preview_smoke/PLAN-cloud-G07.md b/agent-task/m-control-plane-api-data-binding/03+01,02_preview_smoke/PLAN-cloud-G07.md index 0450900..2e58a68 100644 --- a/agent-task/m-control-plane-api-data-binding/03+01,02_preview_smoke/PLAN-cloud-G07.md +++ b/agent-task/m-control-plane-api-data-binding/03+01,02_preview_smoke/PLAN-cloud-G07.md @@ -64,7 +64,7 @@ - split decision policy를 먼저 평가했다. - current subtask: `03+01,02_preview_smoke`. - predecessor `01`: satisfied via `agent-task/archive/2026/06/m-control-plane-api-data-binding/01_runner_surface/complete.log`. -- predecessor `02`: missing active/archive `complete.log`. +- predecessor `02`: satisfied via `agent-task/archive/2026/06/m-control-plane-api-data-binding/02+01_execution_surface/complete.log`. - 이 smoke는 `01_runner_surface`와 `02+01_execution_surface` PASS 이후만 실행한다. ### 범위 결정 근거 @@ -80,14 +80,14 @@ ## 의존 관계 및 구현 순서 1. `01_runner_surface`는 PASS되어 `agent-task/archive/2026/06/m-control-plane-api-data-binding/01_runner_surface/complete.log`를 남겼다. -2. `02+01_execution_surface`가 PASS되어 `complete.log`를 남겼는지 확인한다. 없으면 smoke를 실행하지 않고 active files를 그대로 둔다. +2. `02+01_execution_surface`는 PASS되어 `agent-task/archive/2026/06/m-control-plane-api-data-binding/02+01_execution_surface/complete.log`를 남겼다. 3. 선행 충족 후 원격 Core curl evidence를 수집한다. 4. browser screenshot과 body text evidence를 수집한다. 5. 모든 실제 stdout/stderr와 screenshot path를 review stub에 붙인다. ## 구현 체크리스트 -- [ ] 선행 `01_runner_surface` archive `complete.log`와 `02+01_execution_surface`의 `complete.log`를 확인하고, `02+01_execution_surface`가 없으면 실행하지 않는다. +- [ ] 선행 `01_runner_surface`와 `02+01_execution_surface` archive `complete.log`를 확인한다. - [ ] 원격 Core health/readiness와 preview HTTP 응답을 curl로 수집한다. 검증: `curl` 출력이 review stub에 남는다. - [ ] browser screenshot과 최소 한 화면의 API-backed 상태 렌더링 evidence를 `/tmp/oto-api-binding-smoke`에 남긴다. 검증: screenshot path와 browser stdout이 review stub에 남는다. - [ ] CODE_REVIEW-*-G??.md의 구현 에이전트 소유 섹션을 실제 구현 내용과 검증 출력으로 채운다. 이 항목이 완료되기 전에는 구현이 완료된 것이 아니다. @@ -102,7 +102,7 @@ - [ ] source file 변경 없음. - [ ] `agent-task/archive/2026/06/m-control-plane-api-data-binding/01_runner_surface/complete.log` 확인. -- [ ] `agent-task/m-control-plane-api-data-binding/02+01_execution_surface/complete.log` 또는 대응 archive path 확인. +- [ ] `agent-task/archive/2026/06/m-control-plane-api-data-binding/02+01_execution_surface/complete.log` 확인. - [ ] `/tmp/oto-api-binding-smoke`에 curl output 저장. 테스트 작성: 생략. 이 항목은 원격 smoke evidence 수집이다.