diff --git a/CURRENT-STATE.md b/CURRENT-STATE.md index 2b332483..e386490e 100644 --- a/CURRENT-STATE.md +++ b/CURRENT-STATE.md @@ -6,7 +6,7 @@ --- -## Active Phase: Phase 5 - Analytics Enhancement (Complete) +## Active Phase: Search & Evidence Features (Complete) --- @@ -130,6 +130,25 @@ - Enhanced PSA metrics: time entries, hours logged, push success funnel, daily trend chart - 13 new backend tests for coverage and flow quality endpoints +### Search & Recall + Evidence-Rich Sessions (Complete) + +**Evidence:** +- Railway Object Storage (S3-compatible) integration via boto3 +- file_uploads model with upload/download/list/delete API endpoints +- RichTextInput component: clipboard paste (Ctrl+V) and drag-and-drop for images +- Wired into FlowPilot intake, free-text responses, and escalation modal +- Evidence included in all 5 export formats (markdown, text, HTML, PSA, PDF) +- 15 backend tests for upload endpoints + +**Search:** +- Structured filters on AI sessions: problem_domain, matched_flow, confidence_tier, ticket_id, date range +- Filter bar UI on Session History page (AI Sessions tab) +- PostgreSQL full-text search via generated tsvector column + GIN index on ai_sessions +- Command Palette extended with AI session search results +- Voyage AI semantic embeddings on ai_session_embeddings table (pgvector cosine similarity) +- Similar sessions endpoint: GET /ai-sessions/{id}/similar +- Similar Sessions sidebar component in FlowPilot session view + ### Security Hardening (Phases A-D Complete) - Registration role hardcoded to `engineer` - HTML export XSS fix (html.escape) diff --git a/docs/plans/2026-03-16-stack-priorities-and-playwright-plan.md b/docs/plans/2026-03-16-stack-priorities-and-playwright-plan.md index c7c19fec..d453ca9a 100644 --- a/docs/plans/2026-03-16-stack-priorities-and-playwright-plan.md +++ b/docs/plans/2026-03-16-stack-priorities-and-playwright-plan.md @@ -17,8 +17,8 @@ | Coverage gates in CI | ✅ Complete | Backend enforced at 80%, frontend coverage reporting enabled (no gate yet) | | Security headers | ✅ Complete | HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, CSP report-only | | Web Vitals / performance budgets | ✅ Complete | LCP, INP, CLS, FCP, TTFB reported to PostHog via web-vitals library | -| Search and recall improvements | ⬜ Not started | | -| Evidence-rich sessions | ⬜ Not started | | +| Search and recall improvements | ✅ Complete | Structured filters (domain, confidence, ticket, date), PostgreSQL FTS with GIN index, Command Palette AI session search, Voyage AI semantic similar sessions | +| Evidence-rich sessions | ✅ Complete | Railway S3 storage service, file_uploads model, upload/download API, RichTextInput with clipboard paste, wired into FlowPilot (intake, free-text, escalation), evidence in exports | | Smart PSA / client context | ⬜ Not started | | | Queue / worker architecture | ⬜ Not started | | | Buyer-facing trust surfaces | ⬜ Not started | |