# Scorpia Monitor & Quantum Processor — Operations Center with a Voice AI Agent

> **Status:** Live, private (owner sign-in); built November 2026  
> **Repository:** Private Internal Repository  
> **Tech Stack:** Next.js 15, TypeScript, WebGL, Postgres (Supabase), Claude Code (agentic), Piper neural TTS, Web Speech API, Web Push, WebCrypto (ECDSA)

---

## 1. Overview
One screen that watches every Scorpia service and lets me run them by voice. The **Quantum processor** draws each service as a 3D particle cloud that heats up with activity, wrapped in its own firewall shield. At its core sits **Scorpia**, an AI agent I talk to: tap the core, speak, and it answers out loud.

## 2. The Problem
Six live apps, a home PC running background jobs, and visitors arriving at any hour. Checking them meant opening a dozen tabs and terminals, and problems were noticed late, usually by accident.

## 3. How It Works
- **Live system view:** a WebGL field with one cloud per service, fed by uptime checks, visitor events, job progress and the PC's heartbeat. Tap a cloud for its uptime, events and problems.
- **Scorpia, the voice agent:** speech is transcribed in the browser, signed with a device key, and picked up instantly by a worker on the home PC (Postgres `LISTEN/NOTIFY`) that runs Claude Code. The reply streams back word by word and is spoken sentence by sentence by a local Piper voice, so it starts talking about a second after the first sentence is written.
- **Instant answers:** simple status questions ("any site down?", "queue status") are answered from live data in under a second, without an AI call. Anything that needs thinking goes to the agent, which is told what was already said.
- **Speaks up on its own:** a site going down, a failed job, a firewall block or an overloaded PC becomes one spoken line and a phone push, then a read-only investigation of the cause. Bursts are merged and rate-limited, and alerts never talk over the owner.
- **Shield:** an app-level firewall that blocks scanners and repeated failures, with a report per service showing what hit it and from where.
- **Kill switch:** takes any section of thescorpia.com offline in about 15 seconds, across six separate deployments, from one press-and-hold control.
- **Morning briefing:** the day's summary card, read aloud in two or three sentences.

## 4. Design Choices
- **Nothing connects in:** the PC only polls and listens to the database, and every command must be signed by a device key it trusts, so a breach of the website alone cannot run anything.
- **Fails safe:** if Monitor is unreachable, the sites stay up; if the PC's voice is late, the browser's voice takes over.
- **Found by watching:** the new CPU watch traced a background job that re-scanned 1.2 million archived files around the clock; fixing it took the PC's load from 13 to under 2.
