Files
sales-trainer/plan.md
T
Macky f63f1867f5 feat: trial follow-up drills, persona progress UI, LLM timeout 180s
- social trial: silent/gone follow-up outcomes with localized notice
  variants; gone is always a loss with possibility-framed debrief
- gone marker persists across judge outages; retries stay on the
  deterministic loss path (no roleplay reopen)
- bounded analysis_progress persisted during persona generation,
  exposed via safe serializer, polled + rendered as accessible UI
- LLM HTTP timeout 105s -> 180s for Qwen 3.8 (enable_thinking off)
- demo-account test clock made relative to current UTC
- regression coverage: follow-up branches, judge-failure retry,
  progress callback, timeout contract, progress serializer
- independent review finding verified stale against final tree

Tests: 532 backend, 29 frontend, prod build green
2026-10-02 12:53:59 +07:00

3.1 KiB
Raw Blame History

Sales Trainer — Current Execution Plan

Status

Complete. Implementation, local verification, and independent review are all closed. No commit, push, deploy, or live-provider testing.

Current phase / active task

Complete. All implementation, local verification, and independent review closed. Awaiting owner approval for commit/push/deploy (CON-003).

Last update

2026-10-02. Project requirements reconciled from the latest owner instruction in project.md. Legacy architecture and security context reviewed in docs/plan.md, docs/HANDOFF.md, and docs/engineering-log/2026-08-24-training-security-review.md.

Next action

None in scope. Awaiting owner approval for commit/push/deploy (CON-003). No further implementation work.

Blockers

None known. Do not commit, push, or deploy. Do not access .env or production data.

Task breakdown

  • TASK-001 — Trace follow-up/session state machine, progress/polling, one-shot lifecycle, timeout chain, and historic error path. Covers REQ-001–REQ-007; exact historic error remains unverified because local logs/reproduction are unavailable.
  • TASK-002 — Add regression coverage for follow-up branches, notice variants, gone debrief/loss, and judge retry. Covers REQ-001–REQ-003, AC-001.
  • TASK-003 — Verify existing completed-persona API/UI lifecycle and one-shot guards; no extra change needed. Covers REQ-004, AC-001.
  • TASK-004 — Persist bounded progress, expose safe serializer, poll, and display accessible generation progress. Covers REQ-005, AC-002.
  • TASK-005 — Increase LLM timeout to 180s, retain finite 30-minute async polling, investigate error from code evidence. Covers REQ-006–REQ-007, AC-003/AC-005.
  • TASK-006 — Full backend/frontend checks and security scan passed; independent reviewer verdict received and verified. Single REJECT finding (gone session reopenable after judge failure) confirmed stale — reviewer read a pre-fix chat_routes.py snapshot; current tree has the followup_phase == "gone" retry branch (chat_routes.py:888) plus both regression tests, which pass. Full suite re-run green post-review (532). No other confirmed blocker. Covers AC-001–AC-005.
  • TASK-007 — Engineering log, handoff, test evidence, and this plan updated with the reviewer verdict. Covers AC-004/AC-005.

Dependencies

TASK-002–TASK-005 depend on TASK-001. TASK-006 depends on all implementation tasks; TASK-007 depends on verification results.

Requirement coverage

REQ-001/002/003 → TASK-002; REQ-004 → TASK-003; REQ-005 → TASK-004; REQ-006/007 → TASK-005; all acceptance criteria → TASK-006/007.

Verification and evidence

  • RED/GREEN targeted pytest for each backend behavior before implementation.
  • Run complete backend pytest suite, python -m compileall -q app tests, frontend unit tests and production build.
  • Inspect git diff --check; scan changed lines for secrets, injection, unsafe execution, and debug leftovers.
  • Independently review exact current diff with diagnosis reviewer; do not treat timeout/no verdict as approval.
  • No production/real-provider claims unless explicitly verified; no push/deploy.