Repository navigation
Conversation
…version sync contract
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
3 tasks
…grationContractTests
This branch has not been deployed
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.
요약
onmaru-ai-engine(feature/local-e5-embeddings) 기반 Plan/Execute 1차 오픈 계약에 맞춰 Spring BE의 quota 429 / Retry-After 보존, 안전한 baseline fallback 및 명시적 실패 분기, HTTP 200 SSErun.terminal(FAILED)전달,reviewed_facts=0/ stale heartbeat 가짜 성공 차단, 4개 런타임 버전 변수 동기화 절차를 반영했습니다.주요 변경
HTTP 429
AI_QUOTA_EXCEEDED+Retry-After보존 및 무재시도 타임아웃 정합성RetryAfterParser,HttpAiPlanExecuteClient,HttpAiProposalClient{"code":"AI_QUOTA_EXCEEDED"}+Retry-After(정수 초 및 HTTP-date)를retryAfterMs와 함께AiProposalException(AI_QUOTA_EXCEEDED, retryAfterMs)로 보존.20s)·AI 타임아웃(15s)을 초과하지 않고 단건 시도로 즉시 실패 전파.Quota 초과 시 Safe Baseline vs 명시적 실패 + FE 안내 문구 고정
JourneyWorkerService,ExplorationResponse,V059__journey_run_degraded_retry_after.sql,JdbcJourneyRunStore,JdbcExplorationStorestatus=COMPLETED,engine=BASELINE,degradedReason=AI_QUOTA_EXCEEDED,retryAfterMs반환.status=FAILED,outcome=null,error.code=AI_QUOTA_EXCEEDED,retryAfterMs로 명시적 실패 처리 및 admission slot 해제.journey-ai-api-spec.md및 E2E 테스트에 FE 안내 문구 고정.SSE HTTP 200 스트림에서
run.terminal(FAILED)+errorCode/retryAfterMs전달JourneyRunEventBuffer,JourneyRunEventSink,schemas/journey-sse-event(.v1.2).schema.jsonerror이벤트의retryAfterMs파싱 및 public SSErun.terminal이벤트에status=FAILED,errorCode,retryAfterMs포함.4개 런타임 버전 변수 동기화 절차 및
reviewed_facts=0/ stale heartbeat 가짜 성공 차단docs/ai-rag-spring/corpus-runtime-version-sync.mdValidatingExecutionResultMapper:failureStage != null,retrievalStatus=FAILED,places.isEmpty() && !allowedPlaceIds.isEmpty()거부 (AI_INVALID_RESPONSE).검증 결과
./gradlew :modules:journey:test: PASS./gradlew :apps:spring-api:test --tests "com.yrootlab.onmaru.integration.ai.*" --tests "com.yrootlab.onmaru.worker.journey.*" --tests "com.yrootlab.onmaru.web.exploration.*" --tests "com.yrootlab.onmaru.journey.*" --tests "com.yrootlab.onmaru.testing.postgres.JdbcJourneyRunStoreTests" --tests "com.yrootlab.onmaru.testing.postgres.JdbcDurableExplorationWorkerTests" --tests "com.yrootlab.onmaru.testing.postgres.JdbcExplorationStoreIntegrationTests" --tests "com.yrootlab.onmaru.testing.postgres.JourneyMigrationTests" --tests "com.yrootlab.onmaru.testing.postgres.AiPostgresRuntimeIntegrationTests": PASSbash scripts/verify-contracts: PASS (OpenAPI, Journey/R1/R2/identity-saved fixtures, E2E gates, DBML, Azimutt diff)