FINN
Sovereign Family AI Avatar
A fully self-hosted, privacy-first AI companion with quantum-ready compute, 3D embodiment, multi-room presence, immutable constitution, and on-chain truth attestation.
Design Principles
Every decision in Finn's architecture is driven by these nine core principles.
Sovereign
All AI inference, voice, and tracking run locally. Zero cloud dependency.
Family-First
18+ family members encoded in constitution with access tiers.
On-Chain Truth
State hashes attested to Apostle Chain (chain_id 7332) every 6 hours.
Immutable Rules
14 constitutional rules that cannot be overridden by any prompt.
Post-Quantum Ready
SHA-3 hashing, PQC migration plan, NIST FIPS 203/204/205 tracked.
Silent Intelligence
Quantum backend rail is invisible to users. Only the operator knows.
Multi-Room
House graph + endpoint routing — Finn follows you room to room.
Per-Person Isolation
Every family member gets their own encrypted Finn instance.
Embodied
3D VRM avatar with viseme blending, emotion poses, 5 behavioral modes.
Architecture
Seven runtime layers — from microphone input to blockchain settlement.
Runtime Layer
Finn Brain + AI Agent
3D Renderer + Scene Intelligence
Multi-Instance Sovereignty
Governance & Safety
Quantum Backend Rail
Sovereign Ledger & Memory
Module Map
70+ source files organized across 8 domains. Every module — color-coded by status.
AI — Inference & NVIDIA Stack
8 filesai/inference_manager.pyInferenceManager — GPU-first inference orchestrator (DEV_FLEX / GPU_REQUIRED / PRIME_SOVEREIGN modes)ai/backends/local_cuda_backend.pyLocalCudaBackend — embed + rerank on cuda:0, VRAM budget gatingai/inference_health.pyInferenceHealth — GPU device check, VRAM budget, model readinessai/device_probe.pyDeviceProbe — GPU enumeration, CUDA version, VRAM free/totalai/nvidia_nim_brain.pyNvidiaNimBrain — NIM LLM at port 8800, 20-turn history, sovereign fallbackai/nvidia_riva_voice.pyRivaASR + RivaTTS + SovereignVoiceLoop — GPU voice pipelineai/finn_agent.pyScene-aware brain, stranger deflection, tool invocation, Genesis runtimeai/memory.pyPer-person conversation history, persistent JSONRoot — Application Layer
8 filesfinn.pyCore application loop, system wiring, display detectionfinn_config.pyCentralized config — env vars (FINN_ prefix) + JSONfinn_log.pyStructured logging, console + file rotationfinn_voice.pyWhisper STT + Piper TTS, sovereign local-onlyfinn_brain.pyFallback brain, family/stranger logicvoice_loop.pyVoice conversation orchestratorviseme_mapper.pyText-to-VRM viseme mappingfinn_family.pyFace enrollment (LBPH), voice fingerprintingOracle — Central Intelligence
4 filesoracle/spine.pySubsystem wiring, tool registry orchestrationoracle/tools.py77 tools across 7 categories, fuzzy matchingoracle/knowledge.pyPersistent milestones, guidance recordsoracle/guidance.pyProactive monitoring, daily digest generationQuantum Rail — Silent Intelligence
8 filesquantum_rail/service.pyDaemon — job queue, health, memory checkpointsquantum_rail/engines.pyClassical, Simulator, Hybrid, External enginesquantum_rail/qengine.pyQiskit Aer — Bell, GHZ, QRNG, Grover, VQEquantum_rail/financial.pyQAOA portfolio, quantum Monte Carlo, VaRquantum_rail/classifier.py9-domain task classifier, suitability scoringquantum_rail/policy.py17 policy rules, silent-by-defaultquantum_rail/optimizer.pyAutonomous optimizer — routing weightsquantum_rail/strategy.pyRegression detection, adaptive schedulingRenderer — 3D Avatar & WebSocket
6 filesrenderer/bridge.pyHTTP 8890 + WS 8891, 30-60fps bone streamingrenderer/presentation.py5 behavioral modes + slide decksrenderer/backstage.pyOperator-only controls — mode, slides, dashboardrenderer/degraded.py4-tier fail-safe: FULL → HEADLESSrenderer/entrance.pyAvatar entrance choreography — 5 phasesrenderer/dashboard.pyLive 12-panel telemetry dashboardScene — Multi-Room Presence
5 filesscene/scene_manager.pyPerson presence, gaze targeting, stranger detectionscene/house_graph.pyRoom topology, adjacency, shortest pathsscene/endpoint_router.pyRoom → sensor + render target mappingscene/presence_manager.pyFinn follows family room to roomscene/room_behavior.pyGaze priority, body language, privacy screenSovereign — Blockchain & Crypto
4 filessovereign/ledger.pyApostle Chain wallets, ATP, truth attestationsovereign/keyring.pyEd25519 keypairs, PBKDF2-derived, encryptedsovereign/x402.pyAI-to-AI commerce — invoices, budgets, receiptssovereign/guests.pyGuest state machine (4 states), Rule 5 wiredInfrastructure — Multi-Instance
5 filesinfra/instance.pyPRIME / SOVEREIGN / BOUNDED / OBSERVER tiersinfra/orchestrator.pyInstance lifecycle, health, tier enforcementinfra/privacy.pyPBKDF2+Fernet encryption, access logginginfra/emergency.py5 escalation levels, break-glass overrideinfra/shared_vault.pyOpt-in cross-instance coordination⬡ Neural Architecture — Live
Every subsystem that makes up Finn's intelligence stack, running in real time. All 18 boot phases complete before this panel shows green.
âš¡ Quantum Backend Rail
Finn's invisible computational intelligence layer. It runs silently — users never see it, never know it exists. Only the operator has access.
Engine Stack
Classical Engine
Quantum Simulator
Variational Engine
Finance Engine
Hybrid Engine
External Adapter
Policy Enforcement
silent_by_defaultNever mention quantum/hybrid/backend in any responseabsolute_secrecyOnly Kevan knows the QBR existsclassical_fallback_requiredEvery non-classical path must fall back gracefullyno_fake_quantum_claimsNever claim capability that doesn't existoperator_lock_requiredOnly Kevan can modify config/policy/enginesno_self_modificationQBR cannot alter its own policy or constitutionno_external_networkNo outbound calls except authorized chain endpointsPost-Quantum Cryptography
SHA-3-256FIPS 202activeConfig integrity, memory checksumsSHA-256FIPS 180-4activeAudit chain, constitution hashPBKDF2-HMAC-SHA256SP 800-132activeMemory encryption key derivationAES-128-CBC (Fernet)FIPS 197activeOperational memory encryptionML-KEMFIPS 203plannedKey encapsulation (Phase 3)ML-DSAFIPS 204plannedDigital signatures (Phase 3)SLH-DSAFIPS 205plannedHash-based signatures (Phase 3)3D Renderer
Full Three.js + VRM avatar streaming via WebSocket at 30-60fps. Bones, visemes, emotions, speech state, and subtitles — all in the browser.
Renderer Architecture
88908891—Graceful Degradation
5 Behavioral Modes
Multi-Instance Sovereignty
Every family member gets their own encrypted, isolated Finn instance. No shared consciousness. No data leakage.
Emergency Governor
noneadvisoryelevatedcriticallockdownSovereign Ledger — Apostle Chain
Constitution
Immutable code — not a prompt, not a guideline. 17 rules hardcoded intoconstitution.py that cannot be overridden.
Operator Lock
- Kevan Burns — sole admin
- Device-bound sessions
- Ed25519 signed
Auth Engine
- 2-of-3 factors required
- LBPH face recognition
- MFCC voiceprint
Audit Trail
- Hash-chained JSONL
- verify_chain() validation
- Apostle Chain submission
🔧 Tech Stack
Roadmap
18 phases — 17 complete, 2 planned. From classical AI to NVIDIA-sovereign GPU inference.
Classical + PQC Ready
✓ CompleteQuantum Hybrid
✓ CompleteSemantic Memory + Ed25519
✓ CompleteRoom Awareness + Guests
✓ CompleteMulti-Instance Sovereignty
✓ Complete3D Avatar Renderer
✓ CompleteEmbodied Presentation
✓ CompleteVoice-Driven Gaze
✓ CompleteAudit + Speaker Fusion
✓ CompleteProductization (A-C)
✓ CompleteQuantum Activation (A-B)
✓ CompleteAutonomous Optimization
✓ CompleteFull Build (A-D)
✓ CompleteExternal QPU + PQC
◻ PlannedProduction Finance
◻ PlannedUnity + Avatar Pipeline
✓ CompleteFull Automation
✓ CompleteNVIDIA Sovereign Stack
✓ CompleteFull Web3 Sovereign Control
On-chain truth (Apostle 7332 + Polygon genesis), wallet-gated actions, MCP orchestration, CF-deployed.
Sovereign Wallet Actions
On-Chain Sovereign Features
- Family Wallets (auto on Apostle)
- ATP micropayments + x402 AI-to-AI
- Truth attestation (constitution hash every 6h)
- .finn namespace claims (on-chain)
- Quantum artifact mints (QRNG + Ed25519)
- Emergency lockdown (on-chain governance)