vignette/docs/ops/resistance-openness-db-smoke-2026-06-28.md
2026-06-28 20:13:36 +09:00

32 lines
1.6 KiB
Markdown

# Resistance Openness DB Smoke
Date: 2026-06-28
## Command
```powershell
C:\Users\encep\AppData\Local\Programs\Python\Python311\python.exe scripts/smoke-resistance-openness-db.py --api-base-url http://127.0.0.1:8000 --timeout 240 --out docs/ops/resistance-openness-db-smoke-2026-06-28.json
```
## Result
The smoke created two fresh P1 learner sessions through the real API path:
- dev-login
- onboarding and consent
- `POST /sessions`
- five `POST /sessions/{id}/turn` calls
- direct DB read from `app.session_state`, `app.turns`, and `app.turn_client_state`
## Evidence
| Track | Session | API Curve | DB Final State |
|---|---|---|---|
| Empathy | `e8b92568-dd8a-48cc-8746-c4199495b15f` | `0.0 -> 0.0 -> 0.095 -> 0.133 -> 0.171`, stage `탐색` from turn 3 | stage `탐색`, `turn_seq=5`, `effective_openness=0.17100003361701965`, `rapport_credit=0.8100000023841858`, `resistance=0.5199999213218689` |
| Advice jump | `ce979dc9-4afd-4d37-b544-77cc76ff0436` | `0.0 -> 0.0 -> 0.0 -> 0.0 -> 0.0`, stage `라포` throughout | stage `라포`, `turn_seq=5`, `effective_openness=0.0`, `rapport_credit=0.0`, `resistance=0.9580000042915344` |
The DB also stored 10 `app.turns` rows and fast-loop `turn_client_state` rows for both sessions. The script now asserts the full API curve, stage trajectory, DB turn row count, and client-state persistence before writing `ok: true`. The full JSON output is `docs/ops/resistance-openness-db-smoke-2026-06-28.json`.
## Verdict
PASS. The deterministic resistance engine opens the P1 session under empathic responses and keeps the session closed under advice-jump responses. The result is backed by both API turn responses and DB state.