learning_ai_clock/docs
saravanakumardb1 8ca9e27532 test(ai-context): TODO-009 unit tests for LLM context message generators
Adds 18 new tests covering:

Backend (13 tests in ai-context.test.ts):
- keyword fallback — meeting, doctor, flight, case-insensitive
- generic fallback — no match, minute/hour formatting
- LLM path — flag-gated (off = no fetch), extraction-service success,
  Ollama cascade when extraction returns null, error → keyword fallback,
  short Ollama response rejected, non-200 fallthrough
- prompt construction — includes category, urgency, timeOfDay,
  recentTimerLabels

Web (5 new tests in context-messages.test.ts):
- LLM success path
- keyword fallback when backend returns 500
- keyword fallback when backend throws
- generic fallback when backend fails and no keyword matches
- payload shape — POST /api/context-message with all params

Test counts: backend 240 (was ~227), web 399 (was ~394), all green.
2026-04-17 12:40:10 -07:00
..
AGENTIC_AI_ROADMAP.md test(ai-context): TODO-009 unit tests for LLM context message generators 2026-04-17 12:40:10 -07:00
INDUSTRY_RESEARCH.md docs: add industry research and update PRD v0.2 with competitive analysis 2026-02-27 16:57:47 -08:00
PRD.md docs: add industry research and update PRD v0.2 with competitive analysis 2026-02-27 16:57:47 -08:00
raw_idea.md docs: expand AI Clock raw idea into comprehensive PRD (ChronoMind) 2026-02-27 16:40:26 -08:00
roadmap-v2-review.md docs: apply V2 review fixes to roadmap.md — comprehensive update 2026-02-27 20:32:25 -08:00
roadmap.md docs(roadmap): mark completed items from web polish session 2026-02-28 13:46:15 -08:00