# Complete - m-agent-message-protocol/02+01_core_compatibility

## 완료 일시

2026-06-06

## 요약

프로토콜/캡빌리티 협상 기준을 Core registry와 Dart runner registration contract에 맞춘 첫 리뷰 루프를 PASS로 종료했다.

## 루프 이력

| Plan | Review | Verdict | 메모 |
|------|--------|---------|------|
| `plan_cloud_G06_0.log` | `code_review_cloud_G06_0.log` | PASS | Required/Suggested 없음. Core/Dart registration contract 검증 통과. |

## 구현/정리 내용

- Core runner registry가 `oto.runner.v1`, capability name `oto-runner`, capability major version `1` 기준으로 incompatible runner registration을 structured error와 함께 거절하도록 했다.
- HTTP runner registration response가 registry reject response의 `reject_reason`과 `error` object를 JSON으로 보존하는지 테스트했다.
- Dart runner registration payload가 Core policy와 같은 protocol/capability 값을 보내고, incompatible runner error response를 안정적으로 파싱하는지 테스트했다.

## 최종 검증

- `test -f agent-task/m-agent-message-protocol/01_proto_contract/complete.log || find agent-task/archive -path '*/m-agent-message-protocol/01_proto_contract/complete.log' -print -quit | grep -q .` - PASS; predecessor complete evidence 확인.
- `go test ./...` in `services/core` - PASS; `cmd/oto-core`와 `oto`는 test file 없음, `internal/cicdstate`, `internal/httpserver`, `internal/runnerregistry` 통과.
- `dart analyze` in `apps/runner` - PASS; `No issues found!`.
- `dart test test/oto_agent_migration_plan_test.dart test/oto_agent_bootstrap_script_test.dart test/oto_agent_cli_test.dart test/oto_agent_config_test.dart test/oto_agent_registration_test.dart test/oto_server_connection_smoke_test.dart` in `apps/runner` - PASS; `All tests passed!`.

## Roadmap Completion

- Milestone: `agent-roadmap/phase/message-based-build-agent/milestones/agent-message-protocol.md`
- Completed task ids:
  - `version-capability`: PASS; evidence=`agent-task/archive/2026/06/m-agent-message-protocol/02+01_core_compatibility/plan_cloud_G06_0.log`, `agent-task/archive/2026/06/m-agent-message-protocol/02+01_core_compatibility/code_review_cloud_G06_0.log`; verification=`go test ./...`, `dart analyze`, `dart test test/oto_agent_migration_plan_test.dart test/oto_agent_bootstrap_script_test.dart test/oto_agent_cli_test.dart test/oto_agent_config_test.dart test/oto_agent_registration_test.dart test/oto_server_connection_smoke_test.dart`
- Not completed task ids: 없음

## 잔여 Nit

- 없음

## 후속 작업

- 없음
