CORTIVRA-APEX v2.0.0 — USER & DEVELOPER GUIDE
================================================================================

1. FOR WINDOWS USERS (NO CODING REQUIRED)
--------------------------------------------------------------------------------
- Unzip `cortivra-apex-v2.0.0-release.zip` into any folder on your computer.
- Double-click `Cortivra-Apex.exe` (or `Install-Windows.bat`).
- What happens automatically:
  1. It runs the 15-second hardware speed test on your GPU and saves your
     results to `logs/APEX_HARDWARE_PROOF.md`.
  2. It registers the Cortivra Python path globally on your PC (`site-packages`)
     so `import cortivra_apex as apex` works from any folder on your computer.
  3. It opens your local Control Center Dashboard (`http://127.0.0.1:7860`).
  4. When running in `Install-Windows.bat`, it also registers the lightweight
     background GPU Guardian in Windows Startup (`0.0 MB` GPU memory when idle).

2. FOR MACOS & LINUX USERS
--------------------------------------------------------------------------------
- macOS: Double-click `Install-Mac.command` (or run `python3 cortivra-apex.pyz verify`
  and `python3 cortivra-apex.pyz dashboard`).
- Linux: Run `bash install_linux.sh` (or `python3 cortivra-apex.pyz verify`).

3. HOW AUTOMATIC BACKGROUND BOOST WORKS (GAMERS, CREATORS & EVERYDAY PCs)
--------------------------------------------------------------------------------
- When your computer is idle, Cortivra sleeps in Dormant Standby at `0.0 MB`
  of GPU memory (`0%` CPU/GPU load).
- When a game, 3D renderer, browser, or AI app becomes active (or when you click
  "Auto-Detect Game / AI & Tune" in the Control Center), Cortivra automatically
  selects the matching profile:
  - Gaming Mode: Locks on-chip L2 cache, enables the 1.0 ms high-precision frame
    timer to smooth out `1% Low` stutters, and frees idle background RAM when
    system memory usage exceeds 80%.
  - Local AI & LLMs: Enables 4-bit/8-bit weight compression (`7.1x` smaller
    models in VRAM) and fast normalization / long-context attention kernels.
  - 3D & Video Creation: Enables fast HDR frame synthesis and spatial convolution.

4. FOR PYTORCH & HUGGINGFACE DEVELOPERS (WORKS FROM ANY FOLDER)
--------------------------------------------------------------------------------
Once you have run `Cortivra-Apex.exe` (or `Install-Windows.bat` / `install_linux.sh`)
once on your machine, `cortivra_apex` is registered in your Python environment
automatically. You can use it in three ways:

Way A — 1-Line Model & VRAM Compression (`7.1x` Smaller in 4-Bit, `3.75x` in 8-Bit):
Load any PyTorch or HuggingFace model on CPU (so it never spikes GPU memory
during loading), then stream-compress it onto the GPU in 1 line:

    import cortivra_apex as apex
    model = apex.boost(model, compress_weights=True, bits=4)

Or boost both a model and its training optimizer in 1 line:

    model, optimizer = apex.boost(model, optimizer, compress_weights=True, bits=4)

Way B — 0-Line Automatic Boost for Existing Scripts:
Run any existing `.py` script without editing the file:

    Cortivra-Apex.exe run your_script.py

Or add 1 line at the top of your script:

    import cortivra_apex as apex
    apex.enable_auto_intercept(wave_attention=False)  # Exact standard attention
    # or wave_attention=True for fast 8K+ long-context wave attention

Way C — Direct GPU Functions:

    import cortivra_apex as apex
    y = apex.rmsnorm(x, weight=w, eps=1e-6)
    p = apex.softmax(x)
    out = apex.wave_attention(q, k, v)
    q4 = apex.vram_compress_4bit(weights)
    w_rec = apex.vram_decompress_4bit(q4)
    y32, y64 = apex.compensated_gemv(A, vec)  # float64 precision on FP32 cores

5. LICENSE ACTIVATION (1 TO 4 PERSONAL GPUS OR ENTERPRISE CLUSTERS)
--------------------------------------------------------------------------------
- Free Tier ($0): Runs the hardware verifier and open-source benchmark scripts.
- Personal Lifetime Pass ($50/GPU one-time forever, 1 to 4 consumer GPUs):
  1. Purchase on the website or click "Get $50 Lifetime Pass" in the Control Center.
  2. Your running PC Control Center unlocks automatically after Stripe Checkout,
     or you can paste your `APEX-PERS-...` key (or Stripe Order ID `cs_...`)
     into Section 4 of the Control Center (`http://127.0.0.1:7860`) or run:
         Cortivra-Apex.exe activate --key APEX-PERS-...
- Enterprise & Multi-GPU Clusters (5 to 100,000+ GPUs or Datacenter GPUs):
  Set one environment variable across your cluster nodes:
      export CORTIVRA_APEX_LICENSE_KEY="APEX-ENT-..."

6. LIFECYCLE MANAGEMENT, ENVIRONMENT VARIABLES & SUPPORT
--------------------------------------------------------------------------------
- Check Remaining Order Slots: Paste your Stripe Order Session ID (`cs_...`) in
  Section 4 of the Control Center and click "Check Order Slots".
- Deactivate Local Workstation: Click "Deactivate Local PC" in the Control Center
  or run `Cortivra-Apex.exe deactivate` (`python3 cortivra-apex.pyz deactivate`).
- Clean Uninstallation (100% Reversible): Run `Uninstall-Windows.bat` (or
  `bash uninstall_unix.sh` / `Cortivra-Apex.exe uninstall`) to remove OS login
  startup entries and `cortivra_apex_autoload.pth`.
- Emergency Bypass Kill-Switch: Set `CORTIVRA_SAFE_BYPASS=1` to delegate 100%
  of operations to unmodified native PyTorch.
- Support & Enterprise Inquiries: Contact Omni Intelligence LLC at
  hello@cortivra-apex.com
================================================================================
