Skip to content

fix(intent): Knowledge A.X 프롬프트와 PLAN 결정 계약 통합 #32

Description

@hywznn

배경

Knowledge 원본 A.X 프롬프트를 실제 추론 경로에 적용하고, PLAN에서 결정한 대표 Intent/Workflow를 ANALYZE에서 재분류 없이 재사용합니다.

리뷰 과정에서 같은 Intent의 Workflow 오선택, OUT_OF_SCOPE 종료 계약, 첫 요청 cold start, Renewal 실행의 Server Task Workflow 보존까지 범위를 확장했습니다.

확정 계약

PLAN
→ Intent 모델 1회 호출
→ 대표 Intent + canonical Workflow 결정

Server
→ PLAN 결과와 confidence 이력 보관
→ plannedIntent/plannedWorkflowId를 ANALYZE에 전달

ANALYZE
→ Intent 모델 호출 없음
→ PLAN 결정 재사용
→ Slot만 검사
  • Analyses contractVersion=1.1.0
  • A.X: confidence=null, confidenceSource=UNAVAILABLE
  • BERT routing score: bertRoutingScore로 별도 반환
  • ANALYZE Candidate: confidence=null, providerAttemptCount=0
  • Candidate workflowIdplannedWorkflowId와 일치
  • MVP에서는 복합 배열 대신 대표 Intent/Workflow 한 건 반환
  • evidence를 가짜 extracted Slot으로 만들지 않음
  • OUT_OF_SCOPE는 context와 Workflow가 없는 terminal outcome
  • Renewal run은 이미 생성된 Server Task의 task.workflowId를 보존

완료 체크리스트

  • Knowledge A.X 원본 프롬프트와 Prompt version 적용
  • A.X 출력 검증 및 BERT fallback
  • PLAN Intent/Workflow 결정을 ANALYZE에서 재사용
  • A.X confidence와 BERT routing score 분리
  • 같은 Intent의 canonical Workflow 선택 보완
  • OUT_OF_SCOPE terminal outcome 및 계약 1.1.0
  • BERT/A.X startup warmup, load lock, readiness
  • Docker intent-ax 의존성 설치
  • Server #138 PLAN/ANALYZE 및 OUT_OF_SCOPE 계약 반영·CI 확인
  • Server #131 Renewal Task/Workflow canonical pair 반영
  • AI 단위·계약·전체 테스트 및 로컬 실모델 smoke
  • 배포 환경 readiness에서 axAvailable=true 확인
  • Server #138과 PLAN→ANALYZE / PLAN→OUT_OF_SCOPE 통합 smoke
  • Server #131과 Renewal RECONTRACT/WF-CON-001, STAY_PERIOD_EXTENSION/WF-STY-001 통합 smoke

완료 조건

  • modelVersion=AX, promptVersion=knowledge-25e778ad
  • ANALYZE에서 Intent 모델 재호출 없음
  • A.X 결과에 BERT 점수를 confidence로 표시하지 않음
  • Renewal 실행에서 정상 업무의 Server Task Workflow가 변경되지 않음
  • 관련 단위·API·실모델 smoke test 통과

구현 PR: #33

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions