⚙️

Zenith OS — Architecture Brief

Full-stack system documentation · Copy for life insurance build

⚙️

What is Zenith OS?

Zenith OS is a fully autonomous AI operating system built on top of a Next.js + Convex web application. It replaces the traditional insurance sales funnel with a self-improving, self-directing machine that generates leads, converts visitors, follows up automatically, monitors itself, and expands its own capabilities — without human intervention.

Revenue target: $5.5M annual. No manual prompting required.

The architecture is modeled after a Swiss precision watch movement. Every component has a measurable function. Every interaction is legible. Open the caseback and you understand exactly why it works.

🔩

The 6-Layer Movement

LayerWatch EquivalentZenith Function
MainspringEnergy sourcePurpose, goals, $5.5M revenue directive
EscapementRate regulationDecision permissioning, risk thresholds, inter-agent governance
Balance WheelOscillation/syncCron cadence, inter-agent rhythm, time-based coordination
TourbillonBias compensationCorrects bad data, model drift, improvement portfolio bias
Gear TrainPower transmissionSignal bus, inter-agent data flow
CrystalObservation layerCommand Center — observe without disturbing
🌀

The 4 Grand Complications

SEO Complication
Owns organic acquisition. Generates and auto-publishes SEO articles weekly. Crawls the site for broken pages. Tracks keyword rankings. Detects geographic demand signals.
Sales Complication (ARIA)
Diagnoses risk in real time, pulls live quotes from carrier APIs, adjusts pricing strategy and coverage framing, prefills forms to eliminate friction, learns from every conversion. Not a chatbot — an autonomous sales system.
Operations Complication
Monitors the entire system. Runs A/B experiments. Manages the knowledge base. Detects blind spots. Writes weekly internal reports delivered to the owner by email.
Retention Complication
Automated email drip sequences triggered by lead behavior. Session recaps, 24h/72h/7-day follow-ups, abandoned quote recovery. All AI-personalized.
🧠

Recursive AI Architecture — 6 Pillars (ROIS)

This is what separates Zenith from a simple chatbot or automation. Six layers of recursive intelligence:

L1
Output Optimization
Aria converts better over time. Each conversation is analyzed for what worked.
L2
Process Optimization — Playbook Engine
Every Monday, the system analyzes the previous week's sessions, identifies winning tactics, and automatically rewrites Aria's sales playbook. Aria improves herself.
L3
Meta-Evaluation — Experiment Engine
The system runs A/B experiments on its own tactics. When a variant wins, it becomes the new baseline. The Experiment Engine evaluates its own evaluators.
L4
Portfolio Bias Correction — Tourbillon Layer
Every 2 weeks it analyzes the improvement action portfolio. If the system has been over-investing in SEO articles and ignoring experiments, the Tourbillon detects the bias and recommends rebalancing. The system corrects how it improves, not just what it improves.
L5
Escapement Layer — Self-Directed Expansion
Monitors all 12 complications. Calculates health scores (0–100). Scans for capability gaps and generates full complication specs. These proposals are emailed to the owner for approval. Zenith identifies its own blind spots and requests new capabilities.
L6
Agent Foundry — Autonomous Capability Expansion
Zenith can detect capability gaps, design new agents, simulate them in a sandbox, evaluate their performance weekly, and retire underperforming agents. The system expands its own capabilities without human intervention.
📐

Torque Policy Engine

Sits above the Strategic Differential. Learns how to calibrate, not just what to calibrate.

Every week it records outcomes: what gap types were addressed, what weights were applied, how leads and premium ratio changed. After an 8-week data maturity gate, an LLM proposes updated weight tables.

The owner reviews and approves/rejects proposals in the Command Center. Approved policies are applied automatically. Policy versions: v1.0 → v1.1 → ... → v2.0 (auto-incremented on approval).

🛠

Tech Stack

FrontendNext.js 14 (App Router), TypeScript, Tailwind CSS
Database / BackendConvex — real-time, serverless, fully typed
AIClaude claude-opus-4-6 (Anthropic)
EmailResend — transactional + drip sequences
Cron JobsConvex cron (10+ scheduled jobs)
Quote APITreppy — carrier integration
AuthConvex Auth (OTP email)
Voice (pending)Twilio + ElevenLabs Conversational AI

Cron Schedule

JobFrequencyFunction
process-scheduled-alertsEvery hourFollow-up emails (24h, 72h, 7d, abandoned quote, recap)
aria-morning-reportDaily 8AM CSTAI-written business report to owner
aria-playbook-analysisMonday 9AM CSTAnalyzes sessions, rewrites Aria's sales playbook
aria-site-auditSunday 6AM CSTCrawls pages, detects 404s, stores in audit log
aria-seo-factoryThursday 10AM CSTGenerates + publishes 3 new SEO articles
aria-blind-spot-analysisMonthly 1stAnalyzes tactic failures, writes blind spot report
refresh-advisoriesEvery 6 hoursRefreshes external data feeds
escapement-auditSaturday 7AM CSTGovernance report across all 12 complications
tourbillon-analysisBi-weeklyPortfolio bias detection + rebalancing recommendations
torque-outcome-recorderSaturday 8PM CSTRecords weekly performance outcomes
torque-policy-analyzerMonthly 1stProposes updated weight tables after 8-week gate
foundry-gap-detectionWeeklyScans for capability gaps
foundry-evaluationWeeklyEvaluates agent performance, flags underperformers
🗄

Key Convex Tables

Primary database tables across all complications:

purchaseApplicationsleadschatSessionschatMessagesariaPlaybookssiteAuditLogsagentRegistryagentActionLogsgovernancePoliciesagentProposalscapabilityGapsfoundryAgentsagentSimulationsagentEvaluationsexperimentsexperimentVariantsknowledgeGapsimprovementActionstourbillonAnalysistorqueOutcomestorquePolicyHistorycompetitorSnapshotsserpTrackingdemandSignalscarrierPerformanceemailAlertsscheduledAlertsrevenueAttributiontacticSignalsarticles
📋

Mapping to Life Insurance

The same architecture maps directly to life insurance. Replace only these surface-level elements:

Quote APITreppy (travel)Life insurance quote API (e.g. Quotacy, iPipeline, Firelight)
Coverage Typesvisitors-usa, international, schengenterm, whole, universal, final expense, no-exam
Aria's KnowledgeTravel medical, visas, acute onsetUnderwriting, beneficiaries, riders, health questions, contestability
Carrier PartnersIMG, Trawick, WorldTripsPacific Life, Protective, Transamerica, Mutual of Omaha
SEO Keywordsvisitor insurance, travel medicalterm life quotes, final expense, no medical exam life insurance
Core principle for the build:Build the movement first — Convex schema + cron infrastructure. Then install the complications one at a time. Start with Aria + email drip. Add SEO factory. Add Escapement. The system compounds. Everything else — Tourbillon, Agent Foundry, Playbook Engine, Experiment Engine, Morning Report, Site Auditor — transfers directly with only prompt-level changes.
Full Brief — Raw Text

Click the box to select all · or use the Copy button above

Get a Free Quote

Instant price · No obligation

Get Quote →
Made with AI in Macaly