Skip to content

Truth Guard

Truth Guard is CaseSolo's deterministic legal-safety layer for AI outputs. It runs after generation and before consequential output is treated as safe for user-facing legal work.

What It Checks

src/lib/ai/truth-guard.ts currently verifies:

Rule Sources

src/lib/legal/sol-database.ts is the shared SOL catalog for all 50 states plus DC. Each row includes:

Florida's current general negligence baseline is two years under Fla. Stat. § 95.11(5)(a). Entries marked claim_specific_review_required produce warnings rather than hard blocks so the product does not overstate certainty when the governing rule can depend on claim classification.

Integration Points

Verification

Run the focused rule checks with:

npm run test:run -- sol-database deadline-rules truth-guard

Task-level verification should also include targeted ESLint, npm run typecheck, and git diff --check.

Source: docs/dev/truth-guard.md