Skip to content

About

AetherForge XR: Spatial AI Architecture & Multi-Agent Incident War-Room for PICO OS 6 (Native Kotlin + PICO Spatial SDK)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AetherForge XR — Spatial AI Architecture & Multi-Agent Incident War-Room

Platform Language License Hackathon

AetherForge XR is a native Kotlin & Jetpack Compose SpatialUI application for PICO OS 6 that transforms distributed AI-infrastructure observability and Site Reliability Engineering (SRE) into an interactive Mixed Reality 3D War-Room.

Instead of hunting through flat dashboards and scattered log tabs during a production outage, operators inspect an 8-node orbiting AI microservice constellation anchored directly inside their physical room (Mixed Stage), inject realistic cascading chaos scenarios, watch a 4-agent autonomous SRE pipeline (1. Sentinel -> 2. CausalTracer -> 3. RunbookArchitect -> 4. CanaryHealer) trace root causes and synthesize remediation runbooks, and self-heal the entire cluster back to 99.98% SLA in real time.

Latest Release APK: aetherforge-xr-v1.0.0.apk (arm64-v8a, minSdk 35, signed Release build).


Visual Walkthrough (Verified on PICO OS 6 Emulator 6.2.1)

1. Healthy Constellation (99.98% SLA) 2. Chaos Injection (Vector Cascade)
Healthy Constellation Chaos Cascade Alert
8 orbital microservices glowing cyan/emerald with animated golden telemetry packet spheres traversing inner & outer torus rings. Injecting Vector Cascade (HNSW lock) turns Vector Memory crimson (CRITICAL, 456 ms, 28.4% err) and propagates amber backpressure across upstream/downstream nodes.
3. 4-Agent Autonomous RCA (Frontier Reasoner) 4. Canary Self-Heal (SLA 99.98% Restored)
Multi-Agent RCA Autonomous Healed
4-Agent RCA traces the causal DAG path (Vector Memory -> Planner -> Orchestrator) and stages a reversible CLI mitigation command with target p99 verification. CanaryHealer executes the staged runbook, turns degraded spheres & orbital rings back to nominal cyan/emerald, and restores 99.98% cluster SLA.

Architecture

flowchart LR
    Room["PICO OS 6 Mixed Stage (HomeStage.kt)"] --> ECS["ECS 3D Constellation: 8 PBR Spheres + XZ Torus Rings + Telemetry Pulses"]
    Room --> Panel["SpatialUI AttachmentPanel (WarRoomCommandPanel.kt / PicoTheme)"]
    Panel -->|Inject Chaos / Select Node / Pause| Engine["AgenticWarRoomEngine (Deterministic State Machine)"]
    ECS -->|3D SpatialRay Select| Engine
    Engine --> Pipeline["4-Agent SRE Pipeline: Sentinel -> CausalTracer -> RunbookArchitect -> CanaryHealer"]
    Pipeline --> Advisor["FrontierModelAdvisor"]
    Advisor -->|Live JSON when configured| API["OpenAI / Gemini-compatible POST Endpoint (default: gemini-2.5-flash)"]
    Advisor -->|Zero-key deterministic fallback| Offline["Offline Topological Runbook Synthesizer"]
Loading

Core Capabilities

  1. Native PICO Spatial SDK 6.2.8 Mixed Stage (HomeStage.kt):

    • Renders 8 distributed AI services (Orchestrator, Edge Ingress, Auth Vault, Planner Agent, Executor Agent, Vector Memory, Inference GPU, Telemetry Bus) using procedural MeshResource.createSphere & MeshResource.createTorus geometry, PhysicallyBasedMaterial dynamic health colors, directional lighting, and orbiting golden telemetry packet spheres updated on a 60 Hz frame loop (updateFrameLoop).
    • Interactive 3D ray selection (InteractableComponent, CollisionComponent, detectSpatialPointerEvent) and AccessibilityComponent labels sync bidirectionally with the 2D AttachmentPanel inspector.
    • Uses density-aware LocalDensity dp-to-px sizing (600.dp x 780.dp) and exclusively com.pico.spatial.ui.design.* (PicoTheme, Button, Text, TitleBar) with zero legacy androidx.compose.material* dependencies.
  2. 4-Agent Autonomous SRE Pipeline (AgenticWarRoomEngine.kt):

    • Chaos Simulation: Vector Cascade (HNSW index compaction lock), Token Storm (128k-context KV-cache exhaustion), and Key Drift (JWKS kid=v42 rotation mismatch).
    • Autonomous Reasoning (runFourAgentRca & executeAutonomousFix): Chains 1. Sentinel -> 2. CausalTracer -> 3. RunbookArchitect -> 4. CanaryHealer with per-agent confidence scores, reversible CLI mitigation commands, and target verification SLAs.
  3. Dual-Mode Frontier Model Advisor (FrontierModelAdvisor.kt):

    • Accepts a live FrontierModelConfig(endpointUrl, apiKey, modelName) (gemini-2.5-flash default) to query external LLM JSON endpoints over HTTPS and parse structured rootCause, runbookCommand, and verificationMetric fields without external JSON library stubs on Android JVM unit tests.
    • Automatically falls back to a deterministic offline topological reasoner so judges and offline headsets can test the complete incident -> RCA -> self-heal workflow immediately with zero API keys required.

Built with AI & pico-cli Workflow

AetherForge XR was engineered and verified using an end-to-end agentic PICO workflow:

  • Environment & SDK Grounding: Bootstrapped with @picoxr/pico-cli@0.7.0, PICO OS 6 Spatial SDK BOM 6.2.8, and the local agent-vault (6.2.1) spatial API knowledge base (Mixed Stage, ECS, Torus/Sphere meshes, PicoTheme AttachmentPanel).
  • Live Emulator Testing & Capture: Deployed onto PICO Emulator 6.2.1 (arm64-v8a, Vulkan RTX rendering) via adb and driven end-to-end with pico-cli interact accessibility queries, pico-cli screenshot --spatial --size 1920x1080, and pico-cli capture record to validate all 4 visual states and record the continuous 87-second demo.

Build, Test & Run Locally

Prerequisites

  • JDK 21 (Eclipse Temurin 21 or compatible)
  • Android SDK Platform 35 (compileSdk = 35, minSdk = 35, targetSdk = 35)
  • PICO OS 6 Emulator (6.2.1+) or physical PICO spatial headset (arm64-v8a)

Unit Tests & APK Build

# Run JVM unit tests (AgenticWarRoomEngine, FrontierModelAdvisor, TopologyOrbitMath)
./gradlew testDebugUnitTest --no-daemon

# Build Debug & Release APKs
./gradlew assembleDebug assembleRelease --no-daemon

Note on Release Signing: keystore.properties and *.jks are excluded via .gitignore. Without a local keystore.properties, Gradle cleanly falls back to debug signing for assembleRelease, or you can install the prebuilt signed aetherforge-xr-v1.0.0.apk.

Install & Launch on PICO OS 6

adb install -r aetherforge-xr-v1.0.0.apk
adb shell am start -n com.huyvv533.aetherforgexr/.platform.LaunchActivity

Project Structure

app/src/
├── main/java/com/huyvv533/aetherforgexr/
│   ├── Main.kt                       # MainStage Compose entrypoint
│   ├── agent/
│   │   ├── AgenticWarRoomEngine.kt   # Chaos propagation, 4-agent RCA & CanaryHealer state engine
│   │   └── FrontierModelAdvisor.kt   # Live LLM JSON client + zero-key offline synthesizer
│   ├── content/
│   │   └── HomeStage.kt              # Mixed Stage 3D constellation ECS + 60 Hz orbital loop
│   ├── domain/
│   │   └── TopologyModels.kt         # 8-node DAG catalog, orbital kinematics & SLA telemetry math
│   ├── platform/
│   │   ├── LaunchActivity.kt         # PICO Spatial Launch Activity
│   │   └── SpatialApplication.kt     # Application bootstrap
│   └── ui/
│       └── WarRoomCommandPanel.kt    # Native PicoTheme SpatialUI Command Deck (AttachmentPanel)
└── test/java/com/huyvv533/aetherforgexr/
    ├── AgenticWarRoomEngineTest.kt   # JUnit 4 behavioral & kinematic unit test suite
    └── ExampleUnitTest.kt            # Baseline Gradle test check

Install command uses the package launch activity: adb shell am start -n com.huyvv533.aetherforgexr/.platform.LaunchActivity


License

Licensed under the Apache License 2.0.

About

AetherForge XR: Spatial AI Architecture & Multi-Agent Incident War-Room for PICO OS 6 (Native Kotlin + PICO Spatial SDK)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages