8월 7일까지 워킹트리에만 남아 있던 미커밋 작업을 커밋한다. 여러 사본 폴더(worktree·clone)에 흩어져 있던 중간 스냅샷을 정리하기 전에 원본을 git 이력으로 고정하는 것이 목적이다. - contracts/routes/services: measurement, outcome_trajectory, rupture_repair, deliberate_practice, calibration_transfer, supervision_research, multimodal_alliance, continuous_improvement 계열 신규 모듈과 테스트 - infra/db/init: 07~16 마이그레이션(측정 기반~calibration transfer 실행) - apps/web: 세션 리뷰 카드·관리 화면·E2E 스펙 추가 - docs/ops: G0~G8 라이브 통합·배포·롤백 증거 문서와 evidence JSON/PNG - scripts: smoke·ledger·릴리스 에이전트·NAS 프리뷰 운영 스크립트 engine.public 로그 .bak과 apps/web/test-results 산출물은 커밋에서 제외했다. |
||
|---|---|---|
| .. | ||
| harness | ||
| admin.spec.ts | ||
| alliance-pulse.spec.ts | ||
| auth-visual.spec.ts | ||
| auth.spec.ts | ||
| avatar-expression-lab.spec.ts | ||
| avatar-expression.spec.ts | ||
| breakpoint-sweep.spec.ts | ||
| calibration-transfer.spec.ts | ||
| chunk-recovery-preview.spec.ts | ||
| continuous-improvement-admin.spec.ts | ||
| continuous-improvement-live.spec.ts | ||
| db-persistence.spec.ts | ||
| deliberate-practice.spec.ts | ||
| dev-dashboard.spec.ts | ||
| full-sweep-admin-ai.spec.ts | ||
| full-sweep-admin.spec.ts | ||
| full-sweep-auth.spec.ts | ||
| full-sweep-learner-home.spec.ts | ||
| full-sweep-persona-studio.spec.ts | ||
| full-sweep-professor.spec.ts | ||
| full-sweep-session-review.spec.ts | ||
| full-sweep-session.spec.ts | ||
| full-sweep-settings.spec.ts | ||
| full-sweep-shell.spec.ts | ||
| insecure-context-uuid.spec.ts | ||
| kb-source-packs.spec.ts | ||
| layout-visual-gate.spec.ts | ||
| learner.spec.ts | ||
| live2d-assets.spec.ts | ||
| multimodal-alliance.spec.ts | ||
| outcome-trajectory.spec.ts | ||
| public-admin-visual.spec.ts | ||
| public-auth-turn.spec.ts | ||
| readiness.spec.ts | ||
| README.md | ||
| returned-practice-db-closed-loop.spec.ts | ||
| rupture-repair.spec.ts | ||
| self-directed-learning-loop.spec.ts | ||
| session-layout.spec.ts | ||
| session-mvp.spec.ts | ||
| session-persistence.spec.ts | ||
| session-review-fixture.ts | ||
| session-review.spec.ts | ||
| settings.spec.ts | ||
| supervision-research.spec.ts | ||
| support.ts | ||
| teacher.spec.ts | ||
| voice-success.spec.ts | ||
| voice.spec.ts | ||
Playwright E2E
This directory contains both full-stack E2E tests that exercise the app through
the Vite /api proxy and a running local FastAPI server, and focused UI
regression tests that pin states with Playwright route fixtures. Treat a test as
DB-backed/real-API evidence only when the spec does not fulfill the endpoint
being verified and asserts the actual API response or persisted read model.
Required local services:
# apps/api
python -m uvicorn app.main:app --host 127.0.0.1 --port 8000
# apps/web, started automatically by Playwright unless already running
npm run dev -- --host 127.0.0.1 --port 5173
Useful overrides:
PLAYWRIGHT_PORT=5174 npm run e2e
PLAYWRIGHT_BASE_URL=http://localhost:5173 npm run e2e
VITE_API_BASE=http://127.0.0.1:8000 npm run e2e
Feature evidence map:
session-persistence.spec.tsis the primary DB-backed evidence for session runtime flows. It covers browseropenSessionStream()persistence, Korean PII masking through the browser stream into DB-backed detail/review payloads, crisis learner-only safety persistence without a client AI reply, AI tutor live coach history, source-pack metadata round-trip, voice metadata persistence, learner worksheet/review persistence, session-end evaluation storage, explicit teacher session/turn reevaluation, and fail-closed admin engine configuration that rejects an unreachable gateway without mutating the durable setting. The AI tutor history test must seestatus=readyandlatency_ms>0; degraded fallback must not pass as normal engine-backed coaching.kb-source-packs.spec.tsis DB-backed source-pack sync evidence. It checks admin-only sync and source-scoped evaluator RAG lookup for the licensed source packs; evaluator retrieval 503 is a failure, not a skipped proof.session-review.spec.tsis route-fixture UI regression evidence for review states, including delayed평가 대기to평가 완료polling,평가 실패,AI 평가 재시도, and pre/post input validation states. It does not prove that the evaluator wrote a DB row unless paired withsession-persistence.spec.ts.teacher.spec.tsmixes DB-backed teacher console paths with route-fixture queue/readability checks. Use the individual test body before citing it as persisted evidence.session-mvp.spec.tsis mostly route-fixture UI regression evidence. The AI tutor tests mock normal coaching, stale quota refresh, quota exhaustion over an old card, degraded fallback, history load failure, and runtime persistence source to prove the UI does not show replacement coaching, missing history, stale credits, or temporary storage as a silent success; the voice tests mock the browser microphone/WebSocket to prove both a final transcript followed byturn_persistence_unavailableand a voiceconversation_stoppedcrisis reply remain visible as failure/safety states instead of successful client turns. These are not DB-backed engine success evidence.
Public Google OAuth /turn smoke:
# 1) Verify the public API is not accidentally serving the dev runtime.
$env:E2E_PUBLIC_AUTH="1"
npx playwright test e2e/public-auth-turn.spec.ts --project=chromium-public-auth --grep "production-safe"
# 2) Open a browser, sign in with an allowed Google account, then close codegen.
npx playwright codegen https://vignette.chanpaca.net/login --save-storage=./node_modules/.tmp/public-auth.json
# 3) Reuse that authenticated storage state for the public API turn smoke.
$env:E2E_PUBLIC_AUTH="1"
$env:E2E_PUBLIC_STORAGE_STATE="./node_modules/.tmp/public-auth.json"
npx playwright test e2e/public-auth-turn.spec.ts --project=chromium-public-auth
Public admin visual smoke:
# Capture storage state after signing in with an admin-entitled Google account.
npx playwright codegen https://vignette.chanpaca.net/login --save-storage=./node_modules/.tmp/public-admin-auth.json
# Verify that https://vignette.chanpaca.net/admin visibly renders the admin console.
$env:E2E_PUBLIC_AUTH="1"
$env:E2E_PUBLIC_STORAGE_STATE="./node_modules/.tmp/public-admin-auth.json"
npx playwright test e2e/public-admin-visual.spec.ts --project=chromium-public-auth
이 스모크에는 공식 EasyList의 과거 충돌 규칙(.ad-root, .ad-section)을 첫 paint부터
주입한 상태로 운영 홈·AI 운영·사용자·권한·티켓 5경로의 실제 가시성을 확인하는 게이트가 포함된다.
API 200, DOM 존재, selector count만으로는 통과하지 않는다.
Production lazy-chunk recovery smoke (no sign-in state required):
$env:E2E_PREVIEW_BUILD="1"
$env:PLAYWRIGHT_SKIP_WEB_SERVER="1"
$env:PLAYWRIGHT_BASE_URL="https://vignette.chanpaca.net"
npx playwright test e2e/chunk-recovery-preview.spec.ts --project=chromium-single-run --workers=1
Notes:
E2E_PUBLIC_AUTH=1targets the public site and does not start the local Vite web server.public-auth.jsoncontains the HttpOnly API session cookie exported by Playwright. Treat it as sensitive and keep it undernode_modules/.tmp.- The API session TTL is currently 8 hours, so recapture storage state when the smoke begins returning
401.
Install browser binaries once with:
npx playwright install chromium