## 한 줄 목표 시연자 PC의 LM Studio 없이 **Spring Boot Server + PostgreSQL + 별도 AI Runtime**을 재현 가능한 HTTPS demo 환경에 연결합니다. ## 배포 구조 ```text Client → Spring Boot Server → PostgreSQL │ └→ AI Runtime → External LLM API / Cloud Endpoint └→ pinned Knowledge Bundle ``` Server image에는 LLM Provider SDK와 API Key를 넣지 않습니다. Server는 AI Runtime base URL과 service credential만 압니다. ## Server 저장소 구현 범위 - [ ] multi-stage Dockerfile, non-root user, health check - [ ] local integration용 Compose: Server + PostgreSQL + 선택적 AI Runtime URL - [ ] `prod` profile, Flyway `validate`, connection pool 제한 - [ ] Actuator liveness/readiness와 공개 `/health` 분리 - [ ] `AI_RUNTIME_BASE_URL`, service credential, timeout/concurrency, required contract/knowledge version 구성 - [ ] AI Runtime 장애를 readiness 전체 실패가 아닌 degraded dependency로 관측 - [ ] HTTPS, 최소 CORS origin, secret injection - [ ] AiRun/outbox의 application restart 복구 확인 - [ ] image rollback과 forward-compatible migration 절차 - [ ] 배포 후 Smoke와 수동 처리 runbook ## 설정 소유권 | 설정 | 소유 | | --- | --- | | DB URL/credential, JWT, CORS | Server deployment | | AI Runtime URL/service auth/deadline | Server deployment | | Provider API Key/model/prompt/agent | AI Runtime deployment | | Context Pack/Workflow Catalog bundle version | Knowledge release, AI Runtime pin | ## Smoke 흐름 1. `/health`와 DB readiness 2. Login·tenant isolation 3. `POST /api/v1/ai-runs` → `202 + aiRunId` 4. Server → AI Runtime contract/version 확인 5. 후보 결정 → Task 검토·승인 → Worker Link → 응답·완료 6. Server 재시작 뒤 미완료 Run/Event 복구 7. AI Runtime timeout에서 가짜 후보 없이 수동 처리 가능 ## 완료 조건 - [ ] 깨끗한 환경에서 동일 image와 migration으로 실행됩니다. - [ ] LM Studio와 개발자 PC가 꺼져도 demo가 동작합니다. - [ ] Provider secret은 Server 환경·image·log에 없습니다. - [ ] AI Runtime 장애가 일반 HR API resource를 고갈시키지 않습니다. - [ ] HTTPS Product Smoke와 rollback rehearsal가 통과합니다. ## 경계 밖 - Provider/Model/Prompt 배포: `fowoco/ai` - Knowledge bundle release: `fowoco/knowledge` - Kubernetes/Kafka/실제 Blue-Green Agent Router - 완성형 collector/dashboard: Infra roadmap 및 #26 연결 ## 관계 - Hard blocker: GitHub native dependency 참조 - Integration prerequisite: #4, #6, #7, #8, #11, #24, #25와 AI Runtime 배포 - 후속: #10 - Parent: #2
한 줄 목표
시연자 PC의 LM Studio 없이 Spring Boot Server + PostgreSQL + 별도 AI Runtime을 재현 가능한 HTTPS demo 환경에 연결합니다.
배포 구조
Server image에는 LLM Provider SDK와 API Key를 넣지 않습니다. Server는 AI Runtime base URL과 service credential만 압니다.
Server 저장소 구현 범위
prodprofile, Flywayvalidate, connection pool 제한/health분리AI_RUNTIME_BASE_URL, service credential, timeout/concurrency, required contract/knowledge version 구성설정 소유권
Smoke 흐름
/health와 DB readinessPOST /api/v1/ai-runs→202 + aiRunId완료 조건
경계 밖
fowoco/aifowoco/knowledge관계