> ## Documentation Index
> Fetch the complete documentation index at: https://docs.connex.hybridsphere.io/llms.txt
> Use this file to discover all available pages before exploring further.

# System Architecture

> NEXUS LAB 126 Master Standards & HybridSphere Enterprise Architecture

CONNEX Cloud OS is built upon the **NEXUS LAB 126 Constitution** and **88 Master Engineering Standards (V31.0)**, delivering zero-defect reliability across multi-region cloud infrastructures.

```mermaid theme={null}
graph TD
    Client["Client (Browser / PWA)"] -->|HTTPS 443 / WSS| Gateway["GKE L7 Gateway API"]
    Gateway --> FastRouter["FastAPI Thin Orchestrator"]
    FastRouter --> Auth["Hybrid SSO / Firebase Auth"]
    FastRouter --> L1Cache["L1 In-Memory LRU Cache"]
    FastRouter --> L2Cache["L2 Redis Cluster"]
    FastRouter --> L3Storage["L3 Firestore / GCS (Multi-Region)"]
    FastRouter --> AI["Semantic Kernel / Gemini Models"]
```

***

## Three Anti-Fraud Engineering Standards

<AccordionGroup>
  <Accordion title="1. Permanent Ban on Arbitrary sleep() Synchronization">
    Inserting `sleep()`—even for 0.1s—to mask race conditions or async pipeline lag is categorized as engineering fraud. All temporal delays must be solved deterministically using protocols (events, locks, SWR caching, sync waves).
  </Accordion>

  <Accordion title="2. Prohibition on Abandoning Critical State Mutations in Background Threads">
    State changes affecting downstream authentication (token issuance, custom claims, permissions) must never be neglected in detached threads; transactions must be explicitly awaited before progressing.
  </Accordion>

  <Accordion title="3. Empirical End-to-End Latency Verification">
    Passing unit tests alone is insufficient. Real runtime HTTP packet latencies to local ports (8080, 8081, 3081) must be directly benchmarked and proven with numerical telemetry.
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.