Aura Platform — Technical SOP
Complete standard operating procedures, system architecture documentation, and numbered revision history for the Aura Domain-to-Business Generator platform.
Table of Contents
Revision Log
Complete visual identity system replacing hardcoded site styles. Theme Engine derives CSS custom properties from brand colors, niche, and tone. Five mood profiles (professional, creative, minimal, bold, warm) auto-detected from brand data. Five card variants (glass, elevated, bordered, gradient, minimal) selected per mood. Section backgrounds, SVG dividers, contextual icons, gradient text, accent lines, and decorative elements all driven by theme tokens. Every section in site.html now uses themed components for a hand-crafted appearance.
SHA-256 file hashing prevents duplicate uploads per brand kit, saving AI credits. classified_at timestamps skip already-processed assets during reprocessing (force override available). Empty/failed docs properly timestamped to prevent infinite reprocess loops. Asset resolver maps classified images to site sections (hero, testimonials, features, etc.) and injects them into template render context. 18 automated tests validate all paths.
Automated brand intelligence computed during processing. Brand summary panel (tone, keywords, visual motifs, personality, content strength). Gap analysis with completeness %, letter grade (A–F), categorized missing items (required/recommended/nice-to-have) with actionable tips. Per-asset badges: purple for AI-suggested sections, green for sections where asset was actually used. Image placement suggestions mapped to site section types. All precomputed and persisted in DB for zero-latency UI.
Full document & image upload pipeline with AI classification. Users upload brand docs (PDF/DOCX/TXT) and images which are automatically categorized (mission, values, testimonials, team, hero, logo, product, etc.) and injected as priority source material during package generation.
Comprehensive SOP page with Mermaid.js workflow diagrams, color-coded sections, numbered revision history, PDF export capability. Living documentation of all platform systems.
Augment suggest and generate operations run as background jobs (augment_suggest, augment_generate) with polling instead of blocking HTTP. Prevents browser timeouts on long AI calls. Structured clickable options in chat UI.
Interactive roadmap page with prioritized items, voting, status tracking. AI-generated roadmap suggestions based on current platform state.
Elite-tier generation pipeline: dedicated system prompt with banned clichés, 16 per-section AI instruction overrides, 1.8x content multiplier, Fortune 500 quality standards. Legendary directives for headlines, testimonials, stats, FAQs, pricing.
Structured content generation engine with 16 section types across 6 categories, 4 depth presets (minimal/standard/comprehensive/legendary). Blueprint-to-prompt-spec conversion with field validation.
Normalization, Schema Validation, and Template Safety layers. Auto-repair for AI-generated content: field alias resolution, missing field insertion, type coercion, icon validation.
6 automated architectural invariant checks: state persistence, bounded execution, concurrent isolation, refresh recovery, actionable feedback, job retention. Integrated into architecture page.
Realistic domain value estimation via valuation.py. Domain-only value (TLD, length, hyphens, numbers), developed value, monthly revenue by 6 business models. Fulfillment cost as key margin differentiator.
Per-package breakdown with 5 individual checks (brand identity, site sections, hero image, sales letter, render test). Clickable links to View Site and Edit Package with pass/fail badges.
Collapsible Job Queue panel on dashboard. DB-backed persistent job tracking with ThreadPoolExecutor (max 4 workers). Real-time SSE streaming, auto-reconnect, 30-day retention cleanup.
Comprehensive package editor: content section editing, AI refinement chat, visual asset management, style customization, augments system, project history with revision tracking.
4-step discovery modal with adaptive questions based on niche. Collects brand preferences, tone, audience details, competitive positioning. Answers inject into AI prompts for personalized generation.
Multi-template site rendering (hero, data-dense, comparison, gallery). Layout styles (static-nav, single-scroll). CSS density control. Dynamic Jinja2 rendering from package JSON data.
OpenAI-powered brand identity generation, website copy, hero image (DALL-E), marketplace sales letter. Niche-aware prompting with monetization strategy integration.
FastAPI + PostgreSQL + SQLAlchemy foundation. Domain analysis pipeline: AI-powered niche identification, competitor landscape, affiliate program discovery, monetization modeling. Dashboard UI with dark mode.
System Overview
Aura is a monolithic FastAPI application with Jinja2 server-side rendering. All AI operations run via background jobs tracked in PostgreSQL, with real-time progress delivered via Server-Sent Events (SSE).
Technology Stack
SOP-003: Domain Analysis Pipeline
SOP-004: Package Build Pipeline
SOP-005: Brand Kit Upload System
Image Classification Categories (11)
Intelligence Layer (REV-017)
Dedup & Asset Resolver (REV-018)
file_hash column on BrandKitAsset.
classified_at timestamps are skipped during reprocessing. Empty/unreadable docs and failed classifications still get timestamped to prevent infinite retry loops. Force mode overrides all skips.
resolve_assets_for_sections() maps classified images to site sections via CLASSIFICATION_TO_SECTIONS lookup. Populates used_in_sections during classification. Outputs section_assets dict injected into template render context.
SOP-006: Job Queue & SSE Streaming
All long-running AI operations (analysis, build, augment, brand kit processing) are executed as background jobs tracked in PostgreSQL. The Job model stores: status, progress_pct, current_step_key, steps_detail (JSON), and timing metadata. Real-time progress is streamed via SSE.
SOP-007: Discovery Questionnaire
4-step guided questionnaire that adapts questions based on chosen niche. Answers are structured into discovery_context and injected directly into AI prompts to personalize every aspect of the generated package.
SOP-008: Domain Valuation Engine
Estimates domain value and monthly revenue potential across 6 business models. Fulfillment cost percentage is the key differentiator between models. Physical fulfillment models (dropship, own inventory) show margin destruction at low traffic volumes.
Color Key for Business Models
SOP-009: Quality Gates
6 automated architectural invariant checks that validate system health. Accessible at /api/quality-gates and integrated into the Architecture page.
SOP-010: AI Chat & Augments
Post-generation AI refinement system in the Package Editor. Users can chat with AI to refine sections, and the augment system provides structured suggestions and one-click generation of new content elements (widgets, forms, calculators).
SOP-011: Legendary Protocol
Elite-tier generation mode that activates $50K+ agency-quality content generation. This is the highest quality preset, designed to produce output indistinguishable from top-tier agencies.
Activation Conditions
- Blueprint depth preset = "legendary"
- Content multiplier: 1.8x (vs 1.0x standard)
- Dedicated system prompt with banned clichés
- 16 per-section AI instruction overrides
Quality Mandates
- No generic phrases or placeholder text
- Odd numbers for statistics (3, 7, 13...)
- Competitor-aware pricing positioning
- Hard FAQ questions (not softballs)
- Fortune 500 tone and specificity
SOP-012: Blueprint Engine
Structured content generation engine that defines exactly what sections and fields the AI must produce. 16 section types organized across 6 categories, with 4 depth presets controlling content volume and quality.