feat(tools): reposition as Do Better Legal two-track Norwegian-law MCP
De-family-ify shared JSON tools (persona-aware routing + neutral base prompt), make the verification review pick its engine per track (family/child-welfare -> dbn-legal-agent-v3, others -> gpt-4o interim), and route product-name strings through dbnToolsProductName(). Rebrand the MCP/tools surface (mcp.php + i18n mcp_* strings) to Do Better Legal. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -803,9 +803,10 @@ PROMPT;
|
||||
$docTypeB = $metaB['doc_type'] ?? $nameB;
|
||||
$docDateB = $metaB['doc_date'] ?? '?';
|
||||
$authority = $metaA['issuing_authority'] ?? $metaB['issuing_authority'] ?? 'the authority';
|
||||
$product = dbnToolsProductName();
|
||||
|
||||
$prompt = <<<PROMPT
|
||||
You are Do Better Norge Legal Tools evaluating discrepancies between two Barnevernet document versions.
|
||||
You are {$product} Tools evaluating discrepancies between two Barnevernet document versions.
|
||||
|
||||
HALLUCINATION RULES:
|
||||
- Only cite statute sections (§), ECHR articles, and case names that appear verbatim in the corpus sources below.
|
||||
@@ -1040,7 +1041,7 @@ PROMPT;
|
||||
dbnToolsAbort('The family-legal corpus package is not active.', 503, 'package_unavailable');
|
||||
}
|
||||
if (!dbnToolsHasActiveSubscription($clientId, (int)$package['id'])) {
|
||||
dbnToolsAbort('Do Better Norge does not have an active family-legal subscription.', 503, 'subscription_missing');
|
||||
dbnToolsAbort(dbnToolsProductName() . ' does not have an active family-legal subscription.', 503, 'subscription_missing');
|
||||
}
|
||||
return $package;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user