37f5cd4587
server/debrief.py — generate_debrief() loads the session turns + branch outcome + scenario debrief.debrief_focus, calls deepseek-v4-flash:cloud in no_think mode (D-020, REQ-LLM-02) with the debrief prompt template (docs/debrief/default.yaml), produces a concise 3-bullet text summary (what you did well / what to improve / one next step) referencing the learner's actual turns + branch outcome. TASK-05-02: the debrief text is routed through the CustomerServiceGuardrail output filter (debrief role) — legal-action recommendations are blocked and replaced with a coaching redirect. TASK-05-03: the debrief is synthesized via the same TTSProvider interface as the role-play (D-006 one voice) — no separate TTS path (verified by structural test). 5 tests pass (debrief references turns + branch, no_think mode asserted, guardrail blocks 'tell the customer to sue', normal coaching passes, TTSProvider synthesis reuses role-play voice). ---ci--- phase: 1 milestone: v0.1 plan: 05 task: 05-01,05-02,05-03 status: execute persona: backend-engineer requirements: covered: [REQ-DEBRIEF-01, REQ-LLM-02, REQ-NFR-SAFE-01] ---/ci---