대시보드 폴드아웃/드릴다운 정리 + 페르소나 역린·misconduct 반응 + 게이트웨이 격리·RAG 비차단 수정

SSOT 대시보드:
- 한신대 기술분석 PDF(19쪽) 정합성 분석 + 이번 세션 발견 섹션 추가
- 섹션 폴드아웃(접기)·상단 목차(드릴다운)·모두 펼치기/접기 — 내용 보존, 레이아웃만 정리

페르소나 반응 강화('저항·반응 조절' 핵심 차별):
- PersonaCard.triggers(역린) 필드 + CCD 핵심상처 파생 역린 블록
- L0에 무례·모욕·조롱 시 현실적 동맹 균열 반응 지침

버그·성능 수정(라이브/E2E로 포착):
- 게이트웨이 페르소나 격리: --append-system-prompt를 --system-prompt(교체)로 + --exclude-dynamic-system-prompt-sections (내담자 캐릭터 붕괴·개발맥락 누출 차단)
- RAG: 임베더 동기 로드(약 7-13초)를 _warm_rag_caches 백그라운드 warm으로(세션 생성 블로킹 회귀 수정)
- voice TTS RMS 데드힌트 제거, init_state OpennessParams 파라미터객체화
- 한국어 PII(날짜·금액·주소) 마스킹 보강
- 레이아웃 시각 게이트: 폼 컨트롤 값 스크롤 오탐 제외(7/7)

검증: 백엔드 84/84, E2E 42(데스크톱 27·모바일 11·아바타 4), 시각 게이트 7/7
This commit is contained in:
Yun Chan 2026-06-27 02:30:46 +09:00
parent cb2aebd76c
commit 085460b5e0
327 changed files with 31226 additions and 1829 deletions

View file

@ -154,6 +154,13 @@ export interface MeResponse {
export interface AuthConfigResponse {
google_oauth_configured: boolean;
saml_configured: boolean;
providers: Array<{
provider: "google" | "saml";
configured: boolean;
enabled: boolean;
login_path: string;
}>;
allowed_email_domains: string[];
redirect_uri: string;
dev_login_enabled: boolean;
@ -178,6 +185,23 @@ export interface PersonaSummary {
degraded: boolean;
}
export type PersonaReviewStatus = "draft" | "review" | "approved" | "archived";
export type PersonaReviewAction = "approve" | "reject";
export interface PersonaReviewSummary {
persona_id: string;
code: string;
version: number;
status: PersonaReviewStatus;
display_name: string;
difficulty: "easy" | "moderate" | "hard" | string;
theory_target: string[];
source_provenance: string;
is_synthetic: boolean;
created_at: string | null;
approved_at: string | null;
}
/** POST /sessions — sessions.py SessionStartResponse */
export interface SessionStartResponse {
session_id: string;
@ -483,8 +507,29 @@ export const personaApi = {
list: () => api.get<PersonaSummary[]>("/personas"),
};
export const personaReviewApi = {
list: () => api.get<PersonaReviewSummary[]>("/personas/review"),
decide: (personaId: string, action: PersonaReviewAction) =>
api.post<PersonaReviewSummary>(`/personas/review/${encodeURIComponent(personaId)}`, {
action,
}),
};
export const sessionApi = {
list: () => api.get<LearnerSessionsResponse>("/sessions"),
/**
* (STT/TTS provider ). degraded 503
* available ( ).
*/
voiceHealth: async (): Promise<{ available: boolean; reason: string | null }> => {
try {
const r = await fetch(apiUrl("/voice/health"), { credentials: "include" });
const body = (await r.json()) as { available?: boolean; reason?: string | null };
return { available: !!body.available, reason: body.reason ?? null };
} catch {
return { available: false, reason: "voice health check failed" };
}
},
get: (sessionId: string) =>
api.get<SessionDetailResponse>(`/sessions/${encodeURIComponent(sessionId)}`),
start: (persona_code: string, theory_mode: "humanistic" | "cbt" | "integrative" = "humanistic") =>