<!-- task=m-iop-agent-chronos-extraction-decoupling/10+09_neutral_execution plan=1 tag=REFACTOR -->

# Host-neutral execution package 이동

## For the Implementing Agent

`CODE_REVIEW-cloud-G06.md`의 implementation-owned 섹션 작성은 필수다. encoded predecessor의 exact PASS를 확인하고 이 child 범위만 구현·검증한다. active pair를 유지해 review 준비 완료를 보고하며 finalization은 code-review agent만 수행한다. 차단되면 질문하거나 상태를 분류하지 말고 blocker, 실제 명령/출력, 재개 조건만 evidence 필드에 기록한다.

## Background

임시 packages/go/agentruntime tree를 host-neutral packages/go/execution으로 이동하고 동일한 session/registry/execution behavior를 보존한다.

## Analysis

### Files Read

- `packages/go/agentruntime/types.go`
- `packages/go/execution/types.go`

### SDD Criteria

- S04/D02의 generic execution boundary와 internal AgentUsageStatus neutralization을 적용한다.

### Verification Context

- 기존 retain-node PLAN의 REFACTOR-1 old/new file list와 tests만 유지한다.
- 기존 parent PLAN의 scope, 수정 파일, 검증 명령을 분할했으며 source/test 재조사나 검증 실행은 하지 않았다.

### Test Coverage Gaps

- moved conformance/session/registry tests와 race tests로 behavior를 검증한다.

### Symbol References

- agentruntime -> execution, internal AgentUsageStatus -> UsageStatus; protobuf wire는 변경하지 않는다.

### Split Judgment

- 안정 계약은 neutral execution package가 old package 없이 독립적으로 fresh/race PASS하는 것이다.

### Scope Rationale

- provider path와 Node consumers는 sibling children이 소유한다.

### Final Routing

- `evaluation_mode=isolated-reassessment`, finalizer=`finalize-task-policy.sh`, mode=`pair`.
- Build closures 모두 true. Scores=`1,1,1,1,2`, grade=`G06`, base/route=`local-fit`, lane=`local`.
- Review closures 모두 true. Scores=`1,1,1,1,2`, route=`official-review`, lane=`cloud`, grade=`G06`.
- `large_indivisible_context=false`; positive loop risks=`concurrent_consistency, boundary_contract` (2); `review_rework_count=0`; `evidence_integrity_failure=false`; capability gap 없음.
- Canonical files: `PLAN-local-G06.md`, `CODE_REVIEW-cloud-G06.md`.

## Dependencies and Execution Order

1. `09+08_remove_agent_ui_close` must each have exactly one matching PASS `complete.log`; all are currently missing.
2. Resolve only those exact predecessor completion artifacts, then implement this child scope.

## Implementation Checklist

- [ ] Refuse to start until predecessor 09+08_remove_agent_ui_close has an exact PASS complete.log.
- [ ] Move every original REFACTOR-1 runtime file and test to packages/go/execution, neutralize package vocabulary, and rename only internal AgentUsageStatus.
- [ ] Run fresh and race execution package tests and prove the old path is absent.
- [ ] Fill implementation-owned sections in CODE_REVIEW-*-G??.md with actual implementation notes and verification output.

### [REFACTOR-1] Host-neutral execution package 이동

**Problem**

`packages/go/agentruntime/types.go:1-3`와 error prefixes가 standalone agent host를 이름과 문서에 포함해 D02의 neutral boundary를 흐린다.

```go
// packages/go/agentruntime/types.go:1-3
// Package agentruntime ...
package agentruntime
```

**Solution**

모든 파일을 `packages/go/execution`으로 이동하고 package declaration/comment/error prefix를 `execution`으로 바꾼다. public behavior와 type fields는 유지하고 internal `AgentUsageStatus`만 `UsageStatus`로 rename한다. moved tests가 동일 semantics를 검증한다.

```go
// after: packages/go/execution/types.go:1
+// Package execution defines host-neutral provider execution contracts.
+package execution
```

**Modified Files and Checklist**

- [ ] Move every REFACTOR-1 old/new path in Modified Files Summary.
- [ ] Update test package/import and all `AgentUsageStatus` internal references.

**Test Strategy**

- Existing conformance, emitter, failure, registry, session tests를 moved path에서 fresh/race 실행한다.

**Verification**

- `go test -count=1 ./packages/go/execution`
- `go test -race -count=1 ./packages/go/execution`
- `test ! -e packages/go/agentruntime`

## Modified Files Summary

| File | Item |
|------|------|
| `packages/go/agentruntime/conformance_test.go` | REFACTOR-1 |
| `packages/go/agentruntime/doc.go` | REFACTOR-1 |
| `packages/go/agentruntime/emitter.go` | REFACTOR-1 |
| `packages/go/agentruntime/emitter_test.go` | REFACTOR-1 |
| `packages/go/agentruntime/failure.go` | REFACTOR-1 |
| `packages/go/agentruntime/failure_test.go` | REFACTOR-1 |
| `packages/go/agentruntime/registry.go` | REFACTOR-1 |
| `packages/go/agentruntime/registry_test.go` | REFACTOR-1 |
| `packages/go/agentruntime/session.go` | REFACTOR-1 |
| `packages/go/agentruntime/session_test.go` | REFACTOR-1 |
| `packages/go/agentruntime/status.go` | REFACTOR-1 |
| `packages/go/agentruntime/types.go` | REFACTOR-1 |
| `packages/go/execution/conformance_test.go` | REFACTOR-1 |
| `packages/go/execution/doc.go` | REFACTOR-1 |
| `packages/go/execution/emitter.go` | REFACTOR-1 |
| `packages/go/execution/emitter_test.go` | REFACTOR-1 |
| `packages/go/execution/failure.go` | REFACTOR-1 |
| `packages/go/execution/failure_test.go` | REFACTOR-1 |
| `packages/go/execution/registry.go` | REFACTOR-1 |
| `packages/go/execution/registry_test.go` | REFACTOR-1 |
| `packages/go/execution/session.go` | REFACTOR-1 |
| `packages/go/execution/session_test.go` | REFACTOR-1 |
| `packages/go/execution/status.go` | REFACTOR-1 |
| `packages/go/execution/types.go` | REFACTOR-1 |
| `agent-task/m-iop-agent-chronos-extraction-decoupling/10+09_neutral_execution/CODE_REVIEW-cloud-G06.md` | REFACTOR-1 |

## Final Verification

1. Confirm exact PASS `complete.log` for `09+08_remove_agent_ui_close`.
2. `go test -count=1 ./packages/go/execution`
3. `go test -race -count=1 ./packages/go/execution`
4. `test ! -e packages/go/agentruntime`

All commands use the cache policy stated in the original plan.

After completing all code changes, fill implementation-owned sections in `CODE_REVIEW-*-G??.md`.
