import { router } from '@inertiajs/react'; interface Props { laravelVersion: string; overview: Overview; operator: Operator; } interface Operator { authenticated: boolean; name?: string; email?: string; role?: string; } interface StatusRow { status: 'ok' | 'warn' | 'fail' | 'skip'; area: string; check: string; summary: string; incidentPath?: string; } interface Overview { available: boolean; message: string; title: string; mode: string; rows: StatusRow[]; cluster: { profile: string; runtime: string; }; collectedAt: string; } const evidence = [ ['Service', 'k3s.service', 'failed', 'ExecMainStatus=1'], ['Mount', '/var/lib/rancher/k3s', 'read-only', '/dev/sda1[/jeannie/k3s-runtime]'], ['Device', 'Pinned SSD', 'reappeared', 'UUID 19972338-9757-4f4b-89d7-c202df14a9aa'], ['Kernel', 'ext4', 'errors found', '__ext4_find_entry: reading directory'], ]; const stages = [ ['01', 'Detect', 'Desired and observed state differ'], ['02', 'Explain', 'Evidence supports a stale read-only mount'], ['03', 'Approve', 'Guarded Jeannie repair awaits an operator'], ['04', 'Prove', 'Identity and readiness checks validate recovery'], ]; function Mark() { return (
OP
); } const statusTone = { ok: 'border-emerald-300/20 bg-emerald-300/10 text-emerald-200', warn: 'border-amber-300/20 bg-amber-300/10 text-amber-200', fail: 'border-rose-300/20 bg-rose-300/10 text-rose-200', skip: 'border-slate-500/20 bg-slate-500/10 text-slate-400', }; function doctorCommand(row: StatusRow) { if (row.area === 'Kubernetes apps') { return `./jeannie doctor cluster ${row.check}`; } if (row.area.startsWith('Kubernetes')) { return './jeannie doctor cluster'; } if (row.area.startsWith('Orange Pi')) { return './jeannie doctor opi5'; } if (row.area.startsWith('RPi4')) { return './jeannie doctor rpi'; } if (row.area.startsWith('OCI edge')) { return './jeannie doctor oci'; } return './jeannie doctor debian'; } function LiveOverview({ overview }: { overview: Overview }) { const grouped = overview.rows.reduce>((areas, row) => { (areas[row.area] ??= []).push(row); return areas; }, {}); const healthy = overview.rows.filter((row) => row.status === 'ok').length; const attention = overview.rows.filter((row) => row.status === 'warn' || row.status === 'fail').length; return (

Live read-only inventory

Homelab operational overview

{overview.message}

Refresh evidence
{!overview.available ? (

Jeannie control plane unavailable

OpsProof failed closed. No cached state is presented as current and no action can be submitted.

) : ( <>

Healthy checks

{healthy}

Needs attention

{attention}

Cluster profile

{overview.cluster.profile || 'not selected'}

Runtime

{overview.cluster.runtime || 'unknown'}

{Object.entries(grouped).map(([area, rows]) => (

{area}

{rows.length} checks
{rows.map((row) => (

{row.check}

Desired: declared intent satisfied

Observed: {row.summary || row.status}

{row.status}
{(row.status === 'warn' || row.status === 'fail') && (
{doctorCommand(row)} {row.incidentPath && ( Open evidence → )}
)}
))}
))}

COLLECTED {overview.collectedAt || 'unknown'} · MODE {overview.mode || 'fast'} · bearer token retained server-side

)}
); } function JeannieClient({ overview }: { overview: Overview }) { return (

Jeannie client

Server-side, authenticated, fail-closed

OpsProof calls Jeannie from Debian. The API address, bearer token, and raw private response never enter browser props.

Connection

{overview.available ? 'Available' : 'Unavailable'}

Read operation

status all --json

Evidence time

{overview.collectedAt || 'not collected'}

); } export default function Welcome({ laravelVersion, overview, operator }: Props) { return (

OpsProof

Evidence before action

{operator.authenticated ? ( ) : ( Operator sign in )} Read-only live view Control plane {overview.available ? 'available' : 'unavailable'}

AI-assisted operations · human-approved repair

Turn infrastructure incidents into{' '} provable outcomes.

OpsProof combines desired state, live evidence, cited AI reasoning, guarded Jeannie automation, and post-change validation in one auditable workflow.

{stages.map(([number, title, detail]) => (

{number}

{title}

{detail}

))}

Sanitized incident scenario · OP-0001

Orange Pi K3s storage became read-only

High impact 4 evidence checks

Command-backed evidence

COLLECTED 14:08:31Z
{evidence.map(([kind, subject, state, proof]) => (
{kind}

{subject}

{proof}

{state}
))}
); }