import { useState, useEffect, useRef, useCallback } from 'react'; import { req, getToken, saveToken, ENDPOINTS } from '../api'; import { Card, CardHeader, Callout, FormGroup, ResponseBox } from '../components/ui'; const { AUTH, INTEL } = ENDPOINTS; // ── Trust Gauge ─────────────────────────────────────────────────────────────── const TRUST_ARC = 204; function TrustGauge({ score, label, color }) { const offset = TRUST_ARC - (score / 100) * TRUST_ARC; return (
Challenges fire only when trust drops below 40 — never interrupts a trusted session.
Submit factor scores and see exactly which signals contributed and why — with model weights.
{explainResult.audit_id} ·
Confidence: {(explainResult.confidence * 100).toFixed(0)}% ·
Action: {explainResult.action}