import type React from "react"; import type { VectorCortexClosureProofView } from "../api/vector-cortex"; import { Card, CardContent, CardHeader, CardTitle } from "../components/ui/card"; import { Metric } from "./VectorCortexMetric"; import { VcStatusBadge } from "./VcStatusBadge"; export function VectorCortexClosureCard({ view }: { view: VectorCortexClosureProofView | null }): React.ReactElement { return (
Closure Optimization (VC6A)
{!view?.enabled ? (
Closure optimization disabled (VC6A off) — conservative VC4C closure used directly (mode B).
) : ( <>
Reader-only closure diagnostics — aggregate counts only; per-edge proof rows, node ids, and source payloads are never exposed (SECURITY_PRIVACY).
{view?.status === "awaiting_data" && (
Awaiting first event. Data will appear after the next pipeline run.
)} {view?.status === "deferred" && view?.deferredReason && (
Deferred: {view.deferredReason.replace(/_/g, " ")}
)} )}
); }