Skip to content

feat(host): agent-turn executor + HostServices 를 runtime 에 통합 - #12

Merged
CocoRoF merged 2 commits into
mainfrom
feat/host-turn-executor
Aug 22, 2026
Merged

feat(host): agent-turn executor + HostServices 를 runtime 에 통합#12
CocoRoF merged 2 commits into
mainfrom
feat/host-turn-executor

Conversation

@CocoRoF

@CocoRoF CocoRoF commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

무엇

xgen-workflow 서버(웹)와 데스크톱 커넥터(로컬 Python 사이드카)가 공유하는 agent-turn 실행부를, 별도 패키지(xgen-agent-host) 대신 runtime 안 xgen_agent_runtime.host 서브패키지로 통합한다.

별도 패키지는 오버헤드(새 repo/버전/의존 고정)만 늘고, 실행부가 여전히 xgen-workflow(editor.geny_bridge)로 되돌아 의존하는 어정쩡한 상태였다. runtime 은 이미 순수 엔진(editor 의존 0)이므로, 공유 실행부를 여기로 접되 엔진 코어는 순수하게 유지하고 이 서브모듈이 턴 오케스트레이션 + HostServices 프로토콜을 담는다. 제품 결합(cloud/jobs/delegation/rag/memory-vault)은 전부 host 주입으로 걷어내 이 서브모듈도 editor 의존 0.

구성

  • host.turn_executorAgentTurnExecutor.run(host, **kwargs) (실행 본체).
  • host.hostHostServices 프로토콜(추출 경계). ServerHostServices(xgen-workflow) / LocalHostServices(여기, 서버-백드 상태·로컬 실행) 가 구현.
  • host.sidecar — Node↔Python 계약(커넥터가 python -m xgen_agent_runtime.host.sidecar 로 스폰).
  • host.memory_wire / host.remote_memory — 서버 vault 공유(타입-태그 코덱 + 반사 프록시 RPC).
  • 순수 헬퍼: runner/distill/token_budget/context_budget/rag/conversation_archive/memory_tools/…

검증

  • test_host_remote_memory: 코덱+프록시+디스패치 왕복(실 FileMemoryProvider 루프백) 4 pass.
  • 소비자(xgen-workflow, xgen-connector)는 xgen_agent_runtime.host 로 재지정 — 관련 서버 스위트 637 pass(회귀 0, 남은 7 은 기존 env/DB).

후속

  • 버전 범프(3.5.1 → 3.6.0)로 소비자가 고정할 수 있게 — 병합 후 태그.

CocoRoF and others added 2 commits August 22, 2026 22:36
xgen-workflow 서버와 커넥터 사이드카가 공유하는 agent-turn 실행부를 별도 패키지
(xgen-agent-host) 대신 runtime 안 xgen_agent_runtime.host 서브패키지로 통합.
엔진 코어는 순수하게 유지하고, 이 서브모듈이 턴 오케스트레이션 + HostServices
프로토콜을 담는다(양쪽 host 가 구현). 전 모듈 editor(xgen-workflow) 의존 0 —
제품 결합은 host 로 주입.

포함: turn_executor(AgentTurnExecutor), host(HostServices 프로토콜),
local_host(LocalHostServices — 서버-백드 상태·로컬 실행), sidecar(Node↔Python),
memory_wire/remote_memory(서버 vault 공유), server_bridge, 순수 헬퍼(runner/
distill/token_budget/context_budget/rag/conversation_archive/memory_tools 등).

test_host_remote_memory: 코덱+프록시+디스패치 왕복(실 FileMemoryProvider) 4 pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
이동한 host 모듈이 runtime 의 ruff 규칙 위반(미사용 import Optional/Capability,
List 미import) + 포맷 스타일 불일치로 CI Lint 실패. 미사용 제거 + List import
추가 + ruff format 적용(16파일). 동작 무변경(포맷/import 정리).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@CocoRoF
CocoRoF merged commit bae56bf into main Aug 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant