fix(ai-server): BUG-069~085 F1 자율대화 반복/안전-신뢰성 결함 수정 계열 - #80
Merged
Merged
Conversation
This was referenced Jul 25, 2026
dhkim-kr
changed the base branch from
Master
to
feat/contracts-integration-alignment
July 25, 2026 14:12
dhkim-kr
force-pushed
the
fix/ai-server-f1-autonomous-dialogue
branch
from
July 25, 2026 14:13
f6763ba to
af31034
Compare
dialogue v5.1~v5.6(자기지시적 안도 금지, recap 귀속 rightmost-match, 종료멘트 1~2단계), handoff_generator v4.1~v4.5(부인 형식 보존, cite-or-"기록없음" 규율, placeholder/footer leak 제거), clinical_slot v3~v5, evidence_verifier(metadata-coherence/first-visit-trend/ placeholder 체크), safety_classifier v2, sentiment_analyzer v2, domain_inference v2, orchestrator/input_normalizer/ocr/stt 신규 프롬프트. BUG-067 role='ai' seam-map, BUG-068 handoff timeout 45->90s. 레거시 hira/kakao 어댑터·nearby_facilities·rag_chat·safety_matrix· continuous_test 등 201개 파일 제거(연동 이후 apps/api 소유로 이관/폐기).
BUG-069~085 각 결함별 회귀 테스트, deploy_boot/deploy_contracts/ deploy_invariants(ADR-040/041), dialogue self-referential relief, load_simulations scale map. 루트 tests/test_denial_patient.py는 EXP-030/CVR-046 finding 5의 오프라인 스모크(harness.denial_patient, 표준 tests/ 위치, safety_classifier 키워드 비매칭 검증).
… set Master #85 unified crisis hotlines to 109/119/112 (old 1577-0199 retired — 109 is the current national suicide-prevention integration number, so exposing the old number is also a clinical accuracy issue). Update TestCrisisHotlines to assert the canonical set instead of the retired 1577-0199, matching orchestrator.py's _CRISIS_MESSAGES (already Master- aligned post-rebase). No production code change — test-only fix per ADR-048/BUG-062 lineage.
dhkim-kr
changed the base branch from
feat/contracts-integration-alignment
to
Master
July 25, 2026 14:34
dhkim-kr
force-pushed
the
fix/ai-server-f1-autonomous-dialogue
branch
from
July 25, 2026 14:34
9f1b294 to
5da185a
Compare
dhkim-kr
added a commit
that referenced
this pull request
Jul 25, 2026
… BUG-065 comment-wording dup resolve Master already carries the same BUG-065 fix (plain Boolean `is_minor` column, no DB-side GENERATED expression) via #77-#80's rebase chain; this branch's independent BUG-065 comment is functionally identical, mechanical wording-only conflict — kept Master's canonical wording. No schema/logic change.
This was referenced Jul 25, 2026
Closed
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.
개요
F1 자율대화 반복 및 안전-신뢰성 결함(BUG-069
085) 수정 계열. dialogue v5.1v5.6, handoff_generatorv4.1
v4.5, clinical_slot v3v5, evidence_verifier 등 프롬프트 웨이브와 대응 회귀 테스트를 포함한다.레거시 병원맵/RAG 관련 모듈(hira/kakao 어댑터, nearby_facilities, rag_chat, safety_matrix 등)은
apps/api 병원맵 라우트로 이관되며 함께 제거된다.
주의: apps/ai-server/src/services/f5_* 등 handoff/F5 관련 파일 다수가 기존 open draft PR #76
(review/f5-handoff-remediation)과 경로가 겹칠 수 있다 — 머지 전 확인 필요.
관심사별 변경
v5.6: 자기지시적 안도 금지, recap 귀속 rightmost-match, 종료멘트 1단계 (BUG-072085)구 시뮬레이션 하네스/오디오·OCR 픽스처, 구 test_* 스위트(신규 회귀 테스트로 대체)
File changes (요약)
검증
의존/머지 순서
contracts(#77) → ai-server(본 PR) → mobile/web (backend-api와 병행 가능). 머지 전 #76과의
apps/ai-server 경로 중복을 조율할 것.
스택 노트 (2026-07-25): 이 PR의 base는
feat/contracts-integration-alignment(#77)로 임시 전환되었습니다 — #77의 contracts 변경에 대한 머지-순서 의존 때문입니다. #77이 Master에 머지되면 GitHub이 이 PR을 자동으로Master로 retarget합니다. (rebase 예정: 이 브랜치를 #77 위로 재배치)