caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a
deterministic verification core: clinical-trial claims checked against
ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI
recomputed in code, oracle-tested), code-enforced exact-span grounding, and
multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing
at scale (unpdf + Docling), agentic workflows, Claude Science connector,
compliance/audit, billing, public API, and more.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 07:21:22 +03:00

24 lines
665 B
TypeScript

export interface RecentItem {
id: string;
claim_text: string;
discrepancy_type: string;
trust_score: number;
created_at: string;
}
export const LABELS: Record<string, string> = {
accurate: "Accurate",
magnitude_overstated: "Magnitude overstated",
population_overgeneralized: "Population overgeneralized",
caveat_dropped: "Caveat dropped",
no_support_found: "No support found",
};
export const DISCREPANCY_TYPES = Object.keys(LABELS);
export function scoreClasses(score: number): string {
if (score >= 90) return "bg-green-100 text-green-800";
if (score >= 60) return "bg-yellow-100 text-yellow-800";
return "bg-red-100 text-red-800";
}