Commit History
-
[NOTICKET] fix(db): reconcile analyses schema + migrate chat to analyses_messages
Rifqi Hafizuddin +1: Claude Opus 4.8Fixes two dedorch schema-drift errors seen on the HF build. Error 1 - analyses state drift: - AnalysisStateRow + AnalysisState contract + state_store: drop problem_statement/problem_validated (dropped in dedorch #3), add objective/business_questions. Fixes "column problem_statement does not exist" on every chat/help turn. ensure() always supplies the goal fields so the INSERT is safe whether or not the columns are NOT NULL. Error 2 - chat persistence FK: - Add AnalysesMessageRow (dedorch analyses_messages, role user|ai, per the Go contract). load_history/save_messages now read/write analyses_messages with user_id, replacing the deprecated rooms/chat_messages. Fixes the chat_messages -> rooms FK violation. RAG citations are no longer persisted (analyses_messages has no sources column; message_sources deprecated). Python stays a consumer/writer: it does not create these Go-owned tables. Verified: ruff (no new findings), import + route surface, 284 tests pass (local te…283eb0e -
/fix message_id for chat/stream Endpoint (#6)
- [NOTICKET] refactor(api): server-mint message_id only; unwire v1 chat (729086150b982cbd747829074658bc798d8e18f4)d8e7745 -
feat/ Endpoint Restructure (#5)
- [KM-686] Unwire Non-AI Routers from Main + Swagger (0b2d6785801ecc4d58a32580b1a9ef6238059de2) - [NOTICKET] docs: pr/5 sprint tracker + endpoint-restructure contract + REPO_STATUS banner (ce7be178428cadf1884a77d3d1f1398dccf32f6e) - [KM-687] Add Dedicated /tools/help Endpoint + Regroup Tools List (a881d38851470bf685990fdb554417da4fc1eccd) - [KM-688] feat(api): v2 chat pilot + regroup report under /tools; adopt lead API contracts (ad2ce619b51c234a8cd1c3772417a9a542a9a40d) Co-authored-by: Sofhia Az-Zahra <sofhiaazzhr@users.noreply.huggingface.co>3bacc1d