feat: matrix/graph data views, wire-generated anomalies, http cookie fix

- auth: session cookie Secure only over https — plain-http LAN access was
  silently dropping the cookie, killing WS auth ('connection unstable')
- wire ghost: server-side spike detection on jitter baseline (3σ + 2.5×mean,
  20KB/s floor, 20s throttle) — wire anomalies now flood every session with
  zero hardware, pushed to clients as {type:'anomaly'} frames
- telemetry cadence 3-5s for live graphs; ambient whispers unchanged
- frontend: MATRIX view (data-rain interleaved with live utterances/anomaly/
  telemetry strings), GRAPHS view (scrolling jitter/variance/dns lines +
  anomaly markers + counters), BOARD/MATRIX/GRAPHS switcher
- connection banner: 'connecting' is now neutral 'tuning the veil…', only
  unstable/closed warns
- db: recreated quantumancy(+_test) as UTF8 (was SQL_ASCII — crashed on
  non-ASCII spirit text); README quickstart updated
- i18n: seance.views.* EN/ES
This commit is contained in:
Indiana
2026-07-21 00:02:41 +00:00
parent 6edbbbbc2a
commit c372427ced
16 changed files with 1086 additions and 16 deletions

View File

@@ -220,6 +220,34 @@ export function seanceReducer(state: SeanceState, action: SeanceAction): SeanceS
case 'anomaly_ack':
return { ...state, anomalyCount: frame.count }
case 'anomaly': {
// Server-pushed anomaly (the wire-telemetry detector) — same shape
// and handling as a locally-detected one.
const entry: AnomalyEntry = {
id: nextId(),
source: frame.source,
frequency: frame.frequency,
magnitude: frame.magnitude,
at,
}
return {
...state,
anomalies: pushCapped(state.anomalies, entry, ANOMALY_CAP),
transcript: pushCapped(
state.transcript,
{
id: entry.id,
kind: 'anomaly',
source: frame.source,
frequency: frame.frequency,
magnitude: frame.magnitude,
at,
},
TRANSCRIPT_CAP,
),
}
}
case 'utterance': {
const ut: Utterance = {
id: frame.id,