feat(host): agent-turn executor + HostServices 를 runtime 에 통합 - #12
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
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_executor—AgentTurnExecutor.run(host, **kwargs)(실행 본체).host.host—HostServices프로토콜(추출 경계).ServerHostServices(xgen-workflow) /LocalHostServices(여기, 서버-백드 상태·로컬 실행) 가 구현.host.sidecar— Node↔Python 계약(커넥터가python -m xgen_agent_runtime.host.sidecar로 스폰).host.memory_wire/host.remote_memory— 서버 vault 공유(타입-태그 코덱 + 반사 프록시 RPC).검증
test_host_remote_memory: 코덱+프록시+디스패치 왕복(실 FileMemoryProvider 루프백) 4 pass.xgen_agent_runtime.host로 재지정 — 관련 서버 스위트 637 pass(회귀 0, 남은 7 은 기존 env/DB).후속