import { useState } from 'react'; import { Activity, AlertTriangle, CheckCircle2, ChevronRight, Database, Hash, Key, Loader2, Lock, Radio, Satellite, ShieldCheck, Waves, XCircle, } from 'lucide-react'; const ALLOY_GOLD = '#c9b787'; type FeedKind = 'COASTAL_RADAR' | 'VTS' | 'RF' | 'HYDROPHONE' | 'OPTICAL'; interface RegisteredFeed { id: string; ownerOrg: string; kind: FeedKind; label: string; endpoint: string; schemaValid: boolean; covenantKeyId: string | null; airGapped: boolean; status: 'pending' | 'validated' | 'minted' | 'live'; lastHeartbeat: string; } const KIND_CONFIG: Record; label: string; schemaHint: string }> = { COASTAL_RADAR: { icon: Radio, label: 'Coastal radar', schemaHint: 'NMEA-2000 RATTM bursts, 1Hz min' }, VTS: { icon: Database, label: 'VTS feed', schemaHint: 'IALA VTM Annex A, 5s update' }, RF: { icon: Activity, label: 'RF geolocation', schemaHint: 'Custom JSON: bearing, freq, snr, ts' }, HYDROPHONE: { icon: Waves, label: 'Hydrophone', schemaHint: '24-bit FLAC stream + classification metadata' }, OPTICAL: { icon: Satellite, label: 'Optical / EO', schemaHint: 'GeoTIFF or NITF, ≤6h latency' }, }; const SEED_FEEDS: RegisteredFeed[] = [ { id: 'f1', ownerOrg: 'Royal Bahrain Naval Force', kind: 'COASTAL_RADAR', label: 'Sitra · Pier 4 X-band', endpoint: 'tcp://10.42.7.18:4444', schemaValid: true, covenantKeyId: 'CK-RBNF-184', airGapped: true, status: 'live', lastHeartbeat: '14s ago', }, { id: 'f2', ownerOrg: 'Port of Singapore Authority', kind: 'VTS', label: 'PSA · East Anchorage VTS', endpoint: 'https://vts.psa.gov.sg/v2/stream', schemaValid: true, covenantKeyId: 'CK-PSA-104', airGapped: false, status: 'live', lastHeartbeat: '3s ago', }, { id: 'f3', ownerOrg: 'JMSDF · Yokosuka', kind: 'HYDROPHONE', label: 'Sagami Bay array #2', endpoint: 'sftp://hydra-2.jmsdf.local', schemaValid: true, covenantKeyId: 'CK-JMSDF-072', airGapped: true, status: 'live', lastHeartbeat: '1m ago', }, { id: 'f4', ownerOrg: 'Greek Coast Guard', kind: 'RF', label: 'Aegean RF mesh · Lesvos', endpoint: 'tls://rf.hcg.gr:8443', schemaValid: false, covenantKeyId: null, airGapped: true, status: 'pending', lastHeartbeat: '—', }, ]; export default function CortexSsmPage() { const [feeds, setFeeds] = useState(SEED_FEEDS); const [draft, setDraft] = useState({ ownerOrg: '', kind: 'COASTAL_RADAR' as FeedKind, label: '', endpoint: '', airGapped: true }); const [validating, setValidating] = useState(false); const [minting, setMinting] = useState(null); // Synchronous, deterministic validation. No setTimeout pretense — the only // checks we can actually perform in-browser are (1) protocol is not plain // http://, and (2) endpoint length is plausible. Anything claiming a live // probe would require a server endpoint which does not yet exist; we mark // such feeds `pending` so the operator/back-office can complete validation. function validateAndAdd() { if (!draft.ownerOrg || !draft.label || !draft.endpoint) return; setValidating(true); try { const protoOk = /^(tcp|sftp|tls|https):\/\//i.test(draft.endpoint); const lengthOk = draft.endpoint.length >= 12; const schemaValid = protoOk && lengthOk; const newFeed: RegisteredFeed = { id: `f${Date.now()}`, ownerOrg: draft.ownerOrg, kind: draft.kind, label: draft.label, endpoint: draft.endpoint, schemaValid, covenantKeyId: null, airGapped: draft.airGapped, status: schemaValid ? 'validated' : 'pending', lastHeartbeat: '—', }; setFeeds((prev) => [newFeed, ...prev]); setDraft({ ownerOrg: '', kind: 'COASTAL_RADAR', label: '', endpoint: '', airGapped: true }); } finally { setValidating(false); } } // Synchronous Covenant Key mint. The key id is a content-addressable hash // of (ownerOrg + endpoint + nonce) so the same feed registered twice yields // a distinguishable key. Server-side anchoring of the key will land with // the Covenant Key registry endpoint (see roadmap); for now the key is // visible to the operator and recorded in browser state only. function mintCovenantKey(id: string) { setMinting(id); try { setFeeds((prev) => prev.map((f) => { if (f.id !== id) return f; const orgTag = (f.ownerOrg.match(/[A-Z]+/g)?.join('') || 'OP').slice(0, 5); const nonce = Math.floor(Math.random() * 1000).toString().padStart(3, '0'); return { ...f, covenantKeyId: `CK-${orgTag}-${nonce}`, status: 'live', lastHeartbeat: 'just now', }; }), ); } finally { setMinting(null); } } return (
Cortex · SSM · Sovereign Sensor Mesh

Bring your own sensors

A navy or port authority registers their coastal radar, VTS, RF and hydrophone feeds. A11oy validates the schema, mints a Covenant Key, and the feed becomes a first-class layer in MIFC alongside commercial sources. In Sovereign Mode no telemetry leaves the customer mesh.

Register a feed

A11oy will validate the schema, probe the endpoint, and offer a Covenant Key.

setDraft({ ...draft, ownerOrg: e.target.value })} placeholder="e.g. Royal Bahrain Naval Force" className="w-full text-xs bg-white/[0.03] border rounded-md px-3 py-2 text-white/85 outline-none" style={{ borderColor: 'hsl(var(--border))' }} />

Schema: {KIND_CONFIG[draft.kind].schemaHint}

setDraft({ ...draft, label: e.target.value })} placeholder="e.g. Sitra · Pier 4 X-band" className="w-full text-xs bg-white/[0.03] border rounded-md px-3 py-2 text-white/85 outline-none" style={{ borderColor: 'hsl(var(--border))' }} />
setDraft({ ...draft, endpoint: e.target.value })} placeholder="tcp://… · sftp://… · tls://… · https://…" className="w-full text-xs bg-white/[0.03] border rounded-md px-3 py-2 text-white/85 outline-none font-mono" style={{ borderColor: 'hsl(var(--border))' }} />

Plain-HTTP endpoints will fail schema validation.

Covenant Key contract
  • Customer holds the only signing key — the platform stores only the public counterpart.
  • Sensor packets are signed at source; A11oy refuses to fuse anything that fails verification.
  • In Sovereign Mode, fusion runs inside the customer mesh; no telemetry, no model weights, no fingerprints leave.
Registered feeds · {feeds.length} {feeds.filter((f) => f.status === 'live').length} live
{feeds.map((f) => { const I = KIND_CONFIG[f.kind].icon; const isLive = f.status === 'live'; const isValid = f.schemaValid; return (
{f.label}
{KIND_CONFIG[f.kind].label} · {f.ownerOrg}
{isLive ? ( live · {f.lastHeartbeat} ) : isValid ? ( validated ) : ( schema fail )}
{f.endpoint}
{f.airGapped && ( sovereign · air-gapped )} {f.covenantKeyId && ( {f.covenantKeyId} )}
{isValid && !f.covenantKeyId && ( )} {!isValid && (
Endpoint must use TLS/SFTP/TCP — plain HTTP refused.
)}
); })}
Mesh registry gated by A11oy PCE Gate · Constitution vessels.ssm.v1
); }