Skip to content

DI 기반 스킬 실행 의존성 구성 - #327

Merged
rkttu merged 1 commit into
developfrom
refactor/skill-execution-di
Oct 26, 2026
Merged

rkttu merged 1 commit into
developfrom
refactor/skill-execution-di

Conversation

@rkttu

@rkttu rkttu commented Oct 26, 2026

Copy link
Copy Markdown
Member

WindowsManagedAiSkillExecution이 실행 파일 경로를 별도로 추론하거나 런타임 관리자를 직접 생성하던 경로를 제거했습니다. 앱의 AddManagedAiWindows 등록 함수가 ISharedLocations.ExecutableFilePath와 공용 singleton 런타임 관리자를 필수 생성자 인수로 전달합니다. 기존 경로 검증, 스크립트 해시 검증과 AppContainer 정책을 유지합니다.

DEVELOPMENT.md에 DI를 통한 서비스 구성과 환경 경로 주입 원칙을 추가했습니다. 구성 테스트는 실제 등록 함수를 사용하여 잘못된 주입값의 차단, 대체 실행 파일 탐색 방지와 singleton 공유를 검증합니다.

검증 결과:

  • Managed AI 테스트 226건 통과
  • 호스트 테스트 341건 통과, 신규 DI 구성 테스트 7건 포함
  • 실제 UseTableCloth 등록을 사용하는 별도 dotnet 세션에서 식탁보 전용 Codex CLI 0.156.1과 실제 제품 TableCloth.exe 중계 확인
  • 계산기 MCP BMI 호출에서 wasAppContainer=true, exitCode=0, BMI 28.03 및 turn.completed 확인
  • 독립 코드 리뷰와 공백 검사 통과

태그와 릴리스 자산은 변경하지 않습니다.

Copilot AI balanced review requested due to automatic review settings October 26, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused refactor preserves validation safeguards, aligns registrations and callers, and has no identified blocking issues; tests were not independently executed.

No open issues 🎉

What changed in this PR

This PR centralizes Windows Managed AI dependency configuration in the app’s dependency injection layer. Skill execution now requires an injected host executable path and shared runtime manager while retaining existing execution safeguards.

Changes:

  • Consolidates Windows AI registrations in AddManagedAiWindows.
  • Removes host-path inference and fallback runtime-manager creation.
  • Adds composition tests and documents dependency injection principles.
File Description
src/​TableCloth.Test/​ManagedAiDependencyInjectionTests.cs Tests singleton lifetimes, injected paths, and missing dependencies.
src/​TableCloth.ManagedAi.Windows/​WindowsManagedAiSkillExecution.cs Requires explicit dependencies and removes fallback resolution.
src/​TableCloth.ManagedAi.Windows/​TableCloth.ManagedAi.Windows.csproj Removes the obsolete test-assembly internals access.
src/​TableCloth.ManagedAi.Test/​SkillExecutionBridgeTests.cs Updates constructor calls and tests invalid injected hosts.
src/​TableCloth.App/​DependencyInjection/​UseTableClothExtensions.cs Delegates Windows AI registration to the dedicated extension.
src/​TableCloth.App/​DependencyInjection/​ManagedAiWindowsServiceCollectionExtensions.cs Registers shared services and injects the configured executable path.
DEVELOPMENT.md Documents service composition and environment-path injection.

Review effort: Balanced

@rkttu
rkttu merged commit 4d14992 into develop Oct 26, 2026
7 checks passed
@rkttu
rkttu deleted the refactor/skill-execution-di branch October 26, 2026 09:25
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.

2 participants