Aircada Dev-Planner System

Published Updated
The architectural planning, specification, and authoring framework for building production 3D configurators and spatial web applications in Aircada.

The Aircada Dev-Planner serves as the single source of truth for planning, scoping, and architecting interactive 3D configurators before code generation or 3D asset binding begins.

By establishing declarative specifications for user steps, camera presets, tabular datasets (.airpds), pricing models (.airpm), reactive store properties, and SDK class architectures, the Dev-Planner bridges client requirements directly into executable Aircada blueprints.

The architecture is completely decoupled: product UX models dictate user interactions, while the underlying Aircada Engine and @aircada/react SDK handle reactive two-way synchronization, 3D scene mutations, and post-manifestation alignment validation.

  • Single Source of Truth: All project metadata, datasets, steps, store bindings, and SDK architecture plans reside in a unified specification.
  • Decoupled Multi-File Manifest: Relational separation of tabular datasets (.airpds) and option pricing models (.airpm) from the interface flow.
  • SDK Architecture Mapping: Maps high-level product customizer requirements directly to @System singleton managers, @Operator scene mutators, and React UI components.
  • Multi-Blueprint Foundation: Directly attaches reusable Aircada Library blueprints as starting foundations with contextual modification notes.
  • Post-Manifestation Alignment: Validates generated code against aesthetics, mockup assets, and checkout flows via /verify-manifest-alignment.

Architectural Mental Models for 3D Web Applications#

Foundational mental models for state orchestration, the Unidirectional 3D Triad, declarative-imperative separation, and subsystem boundaries.

Building interactive 3D spatial web applications requires a clear conceptual mental model to avoid race conditions, memory leaks, and tightly coupled spaghetti code between 2D UI touch events and 60fps WebGL rendering loops.

1. The Unidirectional 3D Triad

Aircada enforces a unidirectional data flow: React UI Overlays dispatch user actions $\rightarrow$ Global Reactive Store updates $\rightarrow$ Singleton @System managers orchestrate validation and pricing $\rightarrow$ Modular @Operator scene mutators imperatively manipulate 3D SceneObjects $\rightarrow$ WebGL Canvas renders the frame. State never flows backwards from 3D meshes into UI state without passing through the central store.

2. Singleton Systems vs Scene Operators

Systems (@System) are headless, backend-managed singletons responsible for global lifecycle, event bus coordination, commercial pricing formulas, and validation gating. They have no Visual Studio UI presence. In contrast, Operators (@Operator) are modular, reusable scene mutators decorated with @Input(), @Property(), and @OnEvent() for direct imperative control of 3D meshes, shaders, and animations.

3. Declarative Specification vs Imperative Execution

Product catalogs, option sets, and pricing offsets are defined declaratively in clean tabular datasets (.airpds) and stripped pricing models (.airpm). Imperative business logic, event routing, and WebGL shader parameters live in compiled TypeScript classes.

4. Global Reactive Store vs Local React State

Any state that affects 3D visual rendering, pricing computation, or ecommerce checkout payloads MUST reside in the Twin-Proxy store (store.properties). Pure UI transient state (active tab index, accordion toggle, hover tooltip) remains in local React useState.

  • The Unidirectional 3D Triad: UI $\rightarrow$ Store $\rightarrow$ @System $\rightarrow$ @Operator $\rightarrow$ 3D Canvas guarantees zero race conditions.
  • Systems (Orchestrators) vs Operators (Mutators): Use @System for headless singleton state logic and @Operator for 3D scene mesh manipulation.
  • Declarative vs Imperative: Separate tabular option matrices (.airpds) from executable TypeScript logic.
  • Store vs Local State: Only store properties affecting 3D visuals or commercial checkout belong in the global reactive store.

Project Scaffolding, Setup & Alignment Auditing#

Standardized directory anatomy, relational data porting (.airpds & .airpm), local SDK symlinking, post-manifestation alignment auditing, and dual-pass compilation.

Transitioning from a high-level Dev-Planner manifest (planner.manifest.json) into a production-ready Aircada project workspace follows a standardized, automated scaffolding pipeline.

1. Canonical Workspace Directory Anatomy

Every Aircada project adheres to a strict directory layout: air.config.json (workspace ID and dev ports), datasets/ (.airpds tabular matrices), option-models/ (stripped .airpm pricing models), src/systems/ (<Name>Manager.ts singleton orchestrators), src/operators/ (<Feature>Operator.ts 3D mutators), src/components/ (React TSX customizer overlays and test panels), src/schemas/ (<Name>Schemas.ts constants and types), blueprints/ (public .airbp exports), and scripts/testing/ (Node CLI test harness).

2. Local SDK Symlinking Workflow

Because local development depends on active SDK development, all workspaces must execute 'npm run link-air' to symlink local @aircada/spec and @aircada/react packages directly. Never rely on un-linked dev registry packages.

3. Dual-Pass Compilation

Executing 'air build' triggers dual-pass compilation: Pass 1 validates TypeScript interfaces and compiles TSX UI components; Pass 2 analyzes operator decorators and registers node-graph bindings for Aircada Studio.

4. Post-Manifestation Alignment Auditing (/verify-manifest-alignment)

Following initial code scaffolding, agents execute '/verify-manifest-alignment' to systematically audit the generated project against planner.manifest.json. This verifies themeMode (Light vs Dark) styling parity, mockup visual alignment, 3D slot material bindings, and full-funnel checkout payload accuracy.

5. Dev Session Runtime Metadata Discovery (.aircada/dev-session.json)

When running background dev servers (air dev -v --no-open --mode ui -k), agents read .aircada/dev-session.json to obtain the exact studioUrl and devPort directly for automated browser inspection without manual port probing.

  • Canonical Directory Layout: Strict separation of src/systems/, src/operators/, src/components/, datasets/, and option-models/.
  • Relational Data Porting: Automatically generate .airpds spreadsheets and stripped .airpm files from planner manifest JSON.
  • Local SDK Linking (npm run link-air): Enforces symlinked local @aircada/spec and @aircada/react development.
  • Dual-Pass Compilation (air build): Guarantees 0 type errors across frontend TSX components and 3D operators.
  • Post-Manifestation Alignment (/verify-manifest-alignment): Systematic audit of aesthetics, 3D slots, and checkout payloads.

3D Scene Composition & Mesh Slot Abstractions#

Standardized mesh slot naming conventions (slot*mesh), runtime material swap pipelines, and decoupled 3D asset hierarchy bindings.

In 3D configurator development, hardcoding deep scene-graph paths (e.g. Scene.Root.Geometry002SubMesh) creates brittle code that breaks whenever 3D artists rename nodes or re-export GLTF files.

Aircada introduces the Mesh Slot Abstraction: 3D scene objects expose standardized, generic slot names (e.g. slotcasemesh, slotbezelmesh, slotdialmesh, slotbraceletmesh, slotcasebackmesh).

1. Dynamic Material Swapping Pipelines

Operators query designated mesh slots and apply PVD metal shaders, roughness maps, normal maps, and diffuse textures dynamically at runtime without reloading or re-instantiating GLTF models.

2. Geometry Replacement Anchors

For dimensional variants (e.g. 29mm vs 38mm watch case), parent transform anchors hold interchangeable geometry slots. The operator toggles visibility or swaps child buffers seamlessly.

3. Procedural Decal & Text Projection

Personalization features (such as laser monogram engraving) project procedural vector text onto designated mesh slots (slotcasebackmesh) along normal vectors without modifying source CAD geometry.

  • Generic Slot Naming: Always use standardized slot*mesh identifiers instead of internal artist node paths.
  • In-Place Material Swapping: Update PVD shader parameters dynamically at runtime to maintain 60fps performance without reloading assets.
  • Interchangeable Geometry Anchors: Bind dimensional variant models to designated parent transform slots.
  • Procedural Projection: Project custom laser engraving and monogram text along normal vectors onto slotcasebackmesh.

Blueprint Lifecycle, Testing & Reverse-Syncing Guide#

Multi-blueprint workspace decomposition, singular test harness manifests (.airbpt), dev log telemetry assertions, and air bp sync reverse-syncing.

Aircada Blueprints (.airbp) represent portable, encapsulated building blocks of interactive 3D logic, React UI components, and option datasets.

1. Multi-Blueprint Workspace Decomposition

When building a comprehensive product configurator with multiple distinct building blocks (e.g. Sizing Selector, Finish Swatches, Strap Picker, Monogram Engraving), author separate modular source files in src/ and export co-located public blueprints in blueprints/*.airbp. Never lump granular components into a single monolithic file.

2. Singular Internal Test Harness (.airbpt)

Each project workspace MUST contain EXACTLY ONE singular test harness blueprint manifest (scripts/testing/<name>-test.airbpt) that extends the primary blueprint and encapsulates automated assertions for all sub-components.

3. Strict SDK Decoupling in CLI Test Scripts

Node CLI testing scripts (scripts/testing/test-blueprint.ts, query-dev-logs.ts, verify-dev-logs.ts) must NEVER import @aircada/spec or @aircada/react SDK types directly. They must remain pure Node.js scripts querying structured telemetry logs in .aircada/logging/dev-logs/.

4. Reverse-Syncing to AIR_Library (air bp sync)

Executing 'air bp sync' in the project workspace copies modified files directly into AIR_Library/src/examples/<category>/<name>/, triggering dual-pass catalog compilation and embedding the project into the global knowledge graph.

  • ### 1. Multi-Blueprint Workspace Decomposition
  • When building a comprehensive product configurator with multiple distinct building blocks (e.g. Sizing Selector, Finish Swatches, Strap Picker, Monogram Engraving), author separate modular source files in src/ and export co-located public blueprints in blueprints/*.airbp. Never lump granular components into a single monolithic file.
  • ### 2. Singular Internal Test Harness Manifest (.airbpt)
  • Each project workspace MUST contain EXACTLY ONE singular test harness blueprint manifest (scripts/testing/<name>-test.airbpt) that extends the primary blueprint and encapsulates automated assertions for all sub-components.
  • ### 3. Applying Library Blueprints to Existing Projects (air bp apply)
  • To apply a library blueprint foundation to an existing project workspace, execute 'air bp apply <blueprintId> -d . -o -v --no-install'. This automatically deploys source files into src/systems/, src/operators/, or src/components/, merges package.json dependencies, and updates air.config.json. If CLI is unavailable, agents use aircada-mcp getblueprintby_id to inspect and write the blueprint templates directly.
  • ### 4. Contextual Blueprint Adaptation
  • After applying blueprint foundations, agents adapt the code to match project-specific store keys (src/schemas/<Name>Schemas.ts), mesh slot abstractions (slot*mesh), and dataset IDs according to notesForUsage in the planner architecture.
  • ### 5. Node CLI Test Script Decoupling
  • Node CLI testing scripts (scripts/testing/test-blueprint.ts, query-dev-logs.ts, verify-dev-logs.ts) must NEVER import @aircada/spec or @aircada/react SDK types directly. They must remain pure Node.js scripts querying structured telemetry logs in .aircada/logging/dev-logs/.
  • ### 6. Reverse-Syncing to AIR_Library (air bp sync)
  • Executing 'air bp sync' copies modified blueprint files directly to AIR_Library/src/examples/<category>/<name>/, preserving subfolder structure, and triggers dual-pass catalog compilation.

Configurator Step Flows & Spatial UI Navigation#

Divide complex 3D product customization into intuitive sequential phases, mapping spatial UI controls to interactive 3D scene targets.

A compelling 3D customization experience should never overwhelm the customer with a chaotic wall of controls. Instead, the interface flow divides the customer journey into sequential, focused phases (e.g., 1. Capacity & Sizing, 2. Body Finish, 3. Strap & Bracelet, 4. Laser Engraving).

Each user step binds one or more spatial UI panels, triggers specific camera orbit presets, and exposes interactive controls (swatch pickers, radio groups, toggles, text inputs) that manipulate the reactive store.

UI Panels represent self-contained glassmorphic containers (e.g., Floating Drawers or Sidebar Docks) that host input controls and can be reused or toggled across multiple customization steps.

  • 3-5 Sequential Phases: Scope user journeys into 3 to 5 logical phases to maintain high conversion and reduce cognitive fatigue.
  • Panel Decoupling: Separate UI panel definitions from steps, allowing multiple steps to share or transition panels dynamically.
  • Explicit Control Bindings: Every input control must explicitly bind to either a datasetId (for option swatches/dropdowns) or a storePropertyKey (for booleans, sliders, text inputs).
  • Visual Step Mockups: Each step supports a 16:9 visual layout mockup showing the 3D model framing and docked customizer drawer.

3D Camera Choreography & Viewport Staging Principles#

Principles for staging orbital camera perspectives, FOV parameters, target focus anchors, and smooth phase transitions between customization steps.

3D camera choreography directs the customer's visual focus to the exact part of the product currently being customized. When a user transitions from selecting a case finish to configuring a watch clasp or engraving a monogram, the camera smoothly animates to a tailored vantage point.

Aircada camera presets define the target anchor point in 3D space, polar/azimuthal orbit angles, distance bounds, and field of view (FOV).

Common camera archetypes include: 3/4 Hero Orbit (overall silhouette), Macro Close-up (high-resolution dial/enamel detail), Tapered Profile (bracelet and lugs), and Normal-Aligned Orthographic/Perspective (caseback laser engravings).

  • Contextual Staging: Match camera angle presets directly to the active customization step's focus area.
  • Orbit Constraints: Configure min/max polar and distance limits to prevent the user from clipping through geometry or disorienting the scene.
  • Smooth Transition Interpolation: Utilize spherical linear interpolation (slerp) for seamless camera motion between steps.
  • FOV Optimization: Use 45ยฐ to 50ยฐ FOV for product showcases to avoid wide-angle perspective distortion on metallic edges.

Spatial UI Layout Archetypes & Responsive Docking#

Architecting glassmorphic UI overlay containers, safe viewport boundaries, and responsive desktop-to-mobile docking adaptations.

Spatial layout archetypes define how 2D interface controls coexist with the 3D WebGL viewport without obstructing the product model or disrupting user interaction.

Aircada provides 5 standard layout archetypes: FLOATINGDRAWER (floating glassmorphic panel docked right/left), SIDEBARDOCK (full-height dedicated sidebar), BOTTOMSHEET (mobile-optimized bottom drawer), FULLSCREENOVERLAY (modal configuration stages), and MINIMAL_HUD (transparent floating controls along viewport edges).

On desktop, FLOATINGDRAWER and SIDEBARDOCK allow full interactive orbit while tweaking swatches. On mobile viewports, the layout automatically transitions to BOTTOM_SHEET with collapsible drag handles.

  • FLOATING_DRAWER: Best for desktop luxury showcases (watches, jewelry, footwear) preserving 75%+ visible 3D canvas.
  • SIDEBAR_DOCK: Best for complex technical configurators (furniture, automotive, machinery) with 10+ parameter groups.
  • BOTTOM_SHEET: Mobile standard preventing UI controls from covering the product hero during finger dragging.
  • Safe Viewport Area: Maintain a minimum 32px margin around floating UI cards to allow comfortable orbit touch gestures.

Spatial UI Aesthetics, Palettes & Typography Rules#

Formulating curated luxury dark themes, typography hierarchy, contrast ratios, and Euclidean color distance swatch filtering.

Visual aesthetics are vital in spatial web applications. Premium 3D configurators rely on sleek, dark-mode glassmorphic aesthetics that accentuate the illuminated 3D scene materials and metallic shaders.

The Aircada Aesthetics specification defines primary brand accents, secondary/muted tones, deep background surfaces (#0A0A0A), glass card backgrounds (#141414 with backdrop blur), active highlight colors, and crisp border styling.

Typography hierarchy utilizes modern sans-serif and mono fonts (e.g. Inter, Outfit, JetBrains Mono) with balanced weights and high-contrast text rendering.

  • Curated Dark Mode: Deep void backgrounds (#0A0A0A to #09090B) create high contrast against realistic PVD gold and chrome reflections.
  • Glassmorphism Tokens: Translucent dark surfaces (bg-zinc-950/80 with border-zinc-800) give spatial depth without blocking scene lighting.
  • Euclidean Swatch Deduplication: Color extraction algorithms filter similar hex values (< 45 Euclidean distance) to keep brand palettes punchy.
  • Defensive Normalization: Aesthetics components must safely handle flat vs nested palette structures without throwing undefined runtime errors.

Tabular Option Matrices & Dataset Schemas (.airpds)#

Architecting tabular option matrices, relational dataset IDs, column data types, and multi-component choice catalogs.

In Aircada, customizable options (materials, dimensions, colors, finishes) are stored in tabular dataset matrices (.airpds files). Each row represents a selectable option containing an ID, display name, material/mesh asset references, thumbnail preview, and pricing offset.

Datasets provide relational separation: rather than hardcoding options into UI components or 3D operators, components query datasets dynamically via useAirDataset(datasetId).

This architecture allows 3D designers and marketing teams to update colors, add new seasonal variants, or adjust price add-ons in .airpds spreadsheets without altering a single line of TypeScript code.

  • ### 1. Canonical IParsedDataset Specification
  • Every '.airpds' dataset file generated on disk MUST adhere strictly to the 'IParsedDataset' interface validated by 'DatasetValidator.validate(dataset)'. It encapsulates 'datasetInfo' (with 'format: DatasetFormatType.AIRPDS', 'displayName', and 'schema.fields') and an 'items' array where each item has an 'id' and a 'values' object.
  • ### 2. PropertySystemType Schema Typing
  • Column fields in 'datasetInfo.schema.fields' must be typed with valid 'PropertySystemType' enums: 'STRING', 'FLOAT', 'INT', 'COLOR', 'BOOL', or 'MEDIA_ITEM'. Loose types like 'number' or 'string' are compiled into their respective PropertySystemType enums before file generation.
  • ### 3. Pre-Flight Manifestation Validation
  • During Phase 2 of '/manifest-from-planner', tabular datasets from 'planner.manifest.json' ('columns', 'rows') are compiled into 'IParsedDataset' and validated against 'DatasetValidator.validate(dataset)'. Files with schema discrepancies or un-typed columns fail fast before the dev server runs.
  • ### 4. Pricing Model Integration (.airpm)
  • Pricing models adhere strictly to the Stripped 1.02 format, referencing active datasets by 'datasetId' and setting 'defaultOptionId' to a valid row ID in the corresponding '.airpds' dataset.

Pricing Formulas & Option Exclusivity Rules (.airpm)#

Configuring base pricing, surcharge offsets, conditional option exclusivity rules, and stripped .airpm format compliance.

Option pricing models (.airpm files) define the commercial calculation engine and multi-variant rules for configurable products.

An option model defines a basePrice, a collection of optionSets bound to tabular datasets, and conditional rules (e.g., 'If 38mm Case is selected, Leather Strap adds +$15.00 instead of +$10.00').

Aircada strictly adheres to the Stripped .airpm Standard (typeVersion: 1.02): option models contain only basePrice and optionSets referencing datasetId. They NEVER embed duplicate options: [] arrays, preventing state synchronization desyncs.

  • Base Price & Surcharges: Total Price = Base Price + sum of active selected row price offsets.
  • Stripped .airpm Standard: Option sets must strictly bind via datasetId and defaultOptionId; never embed raw options arrays.
  • Multi-Variant Dependency Rules: Rules define conditional behavior (SETPRICE, DISABLEOPTION, REQUIRE_OPTION) based on active store state.
  • Checkout Payload Generation: Bundles selected variant IDs, engraving strings, and calculated total into ecommerce cart payloads.

Reactive Store Architecture & 3D Scene Sync#

Designing unified reactive store properties (store.properties), state categories, and bidirectional synchronization with 3D shaders and meshes.

The Aircada Reactive Store acts as the central state synchronization bus connecting React UI overlay inputs, TypeScript @Operator scene mutators, and @System singleton managers.

Store properties are strongly typed (string, number, boolean, color, choice) and organized into functional categories: Visual State (finishes, colors, textures), Dimensional State (sizing, scale), Commercial State (price total, currency), and Personalization State (engraving text, monogram toggle).

When a user toggles a switch in React, useAirStore updates the property value, immediately notifying listening @Operator classes to mutate 3D materials or meshes in the same animation frame.

  • Strongly Typed Keys: Every reactive state key has an explicit type (string, boolean, number, color) and safe initial value.
  • Functional Categorization: Group properties by category (VISUAL, DIMENSIONAL, COMMERCIAL, PERSONALIZATION) for clean architecture.
  • Automatic Store Synthesis: UI input storePropertyKey bindings automatically synthesize corresponding store properties during auto-healing.
  • Twin-Proxy Reactive Sync: Guarantees zero lag between 2D UI touch events and 3D WebGL material updates.

Custom Event Bus Signals & Telemetry Triggers Guide#

Decoupled event-driven messaging, naming conventions for domain events, payload schemas, and telemetry instrumentation.

The Aircada Event Bus provides decoupled publish-subscribe messaging across UI components, scene operators, and background analytics services.

Rather than tightly coupling operators to each other, systems emit standardized event signals (e.g., FINISHCHANGED, DIMENSIONRESIZED, ENGRAVINGUPDATED, CARTPAYLOAD_READY) carrying lightweight data payloads.

The Event Catalog in the Dev-Planner defines all project event channels, trigger types (USERINPUT, SYSTEMCALCULATION, LIFECYCLE), payload properties, and listening @System managers.

  • UPPER_SNAKE_CASE Naming: Standard event signal naming (e.g. SWATCHSELECTED, PRICERECALCULATED, STEP_CHANGED).
  • Payload Contracts: Explicitly document payload fields (e.g., { previousFinish: string, newFinish: string, priceDelta: number }).
  • Telemetry Instrumentation: Events automatically log structured markers to .aircada/logging/dev-logs/ for automated testing assertions.
  • Zero Hard Coupling: Systems subscribe via useAirEvent(eventName, callback) or @OnEvent(eventName) without direct class references.

Multimodal Asset Ingestion & Brand Token Extraction#

Autonomous browser scraping, computed CSS brand extraction, visual reference galleries, and synthesized 16:9 3D layout mockups.

Multimodal asset management grounds 3D configurator planning in real-world brand identity and visual references. The Dev-Planner ingests inspiration photos, CAD renderings, color swatches, and live website captures.

Autonomous browser ingestion visits live e-commerce URLs in Chromium, captures high-resolution 1080p hero screenshots, and extracts computed CSS brand colors from stylesheets.

Synthesized 16:9 layout mockups provide visual validation for every user step and customizer panel, showing the 3D model framing alongside docked UI controls.

  • Controlled Browser Ingestion: Captures desktop and full-page screenshots into planner/assets/inspiration/ without manual copy-pasting.
  • Live DOM CSS Extraction: Extracts computed primary and accent colors directly from live stylesheets.
  • 16:9 Layout Mockup Synthesis: Synthesizes 3D scene mockups with active camera angle badges and docked customizer panels.
  • Gallery Categorization: Organizes media into inspiration, mockups, cad_models, textures, and documents with AI captioning.

SDK Code Architecture: Systems, Operators & UI#

Architectural decision matrix for @System singleton managers, @Operator scene mutators, React UI components, and contextual blueprint foundations.

The SDK Code Architecture Plan bridges high-level product specifications into concrete TypeScript source files before code generation.

The architecture is organized into 3 core functional layers: Headless @System Singleton Managers (lifecycle, state orchestration, event bus routing), Modular @Operator Scene Mutators (direct 3D mesh swapping, material bindings, laser monograms), and React UI Components (@aircada/react customizer drawers and pricing footers).

Aircada Blueprints are attached directly as contextual starting foundations on each planned system, operator, or UI component, complete with actionable modification notes (e.g. 'Import calculateSubtotal() and adapt for laser engraving offset').

  • ### 1. The 3D Architectural Triad
  • Unidirectional data flow: @aircada/react UI Component -> Reactive Store (useAirStore / store.patch) -> @System Singleton Manager (Business Logic Orchestrator) -> @Operator Scene Mutator (3D Three.js Render Updates) -> WebGL Canvas.
  • ### 2. @System Singleton Managers vs @Operator Scene Mutators
  • Systems handle business logic, pricing math, store subscriptions (@Input({ onStore: ... })), and typed event dispatch (@Output()). Operators mutate Three.js scene graphs, swap shader materials, and attach geometry targeting generic mesh slots (@StringProperty() targetSlot = 'slot*mesh').
  • ### 3. Contextual Blueprint Foundations (air bp apply)
  • Attach blueprintReferences with clear notesForUsage in manifest.architecture. During manifestation, execute 'air bp apply <id> -d . -o -v --no-install' (or inspect via aircada-mcp getblueprintby_id) to deploy foundational code, then tailor store keys and dataset bindings to the active project.
  • ### 4. Strongly-Typed Schemas & Constants
  • Centralize all store keys (STOREKEY...), event signals (EVENT...), and dataset IDs (DATASETID_...) into src/schemas/<Name>Schemas.ts for strict type safety and zero string typos.