From 662fbf7d6d6a13f733bf30b0141c88d7e0101196 Mon Sep 17 00:00:00 2001 From: davegilligan Date: Mon, 1 Jun 2026 20:49:58 +0200 Subject: [PATCH] feat(tools): persona-driven multi-domain corpus + model routing Generalize the family-locked legal tools into caveauAI persona profiles (client 57 chat profiles, resolved in-process via the chat_profiles bridge). Each tool accepts an optional `profile` slug that scopes the corpus package(s), search method, system prompt and synthesis model; omitting it falls back to the family-legal package so existing behaviour is unchanged. - dbnToolsResolvePersona / dbnToolsListPersonas / dbnToolsBootChatProfiles in bootstrap.php; new api/personas.php + dbn.list_personas MCP tool. - LegalTools search/ask/corpusContextForSummarize and the BvjAnalyzer / LegalAnalysis / translate paths take the persona's packages + prompt + model. - Persona + +