Skip to content

Latest commit

 

History

History
111 lines (80 loc) · 2.76 KB

local-development.md

File metadata and controls

111 lines (80 loc) · 2.76 KB

Local 60-Second Development Guide

This guide walks you through setting up and running NOVA V2 (The Compute Ranch) on your local development machine with zero external databases or third-party cloud credentials.


Prerequisites

  • Rust: Version >= 1.80 (stable)
  • Git
  • Optional: curl and jq for testing HTTP endpoints

1. Clone & Build

git clone git@github.com:CardSorting/NOVAV2.git nova-v2
cd nova-v2
cargo build

Verify your local environment by running the comprehensive test suite:

cargo test

All 56 unit, integration, and regression tests should pass in under 300ms.


2. Launch Local Engine

cargo run --bin nova-v2

NOVA V2 will start up on http://127.0.0.1:3001. On launch, it will:

  1. Automatically scan for existing persistent shards in ~/.nova/shards.json.
  2. Discover candidate desktop credentials from ~/.codex/auth.json or local environments.
  3. Serve the interactive dashboard cockpit at http://localhost:3001/dashboard (or /).

3. Sovereign Shard Onboarding & Cockpit

NOVA V2 includes the nova-ctl operator utility for frictionless shard management:

Autonomous 1-Command Onboard

# Auto-detects local ~/.codex/auth.json, probes models, and enrolls into fleet
./target/debug/nova_ctl onboard --id shard_primary_0

Interactive Auth Login (Mirrors gh auth login)

./target/debug/nova_ctl auth login --interactive

Inspect Fleet & Credential Claims

# View active shards, plan tiers, TTLs, and quarantine status
./target/debug/nova_ctl auth status

# Deeply decode JWT claims, plan tier, and SHA-256 fingerprint
./target/debug/nova_ctl auth inspect

4. Test Inference Ingestion

Interactive Test Inference via nova-ctl

# Synchronous completion
./target/debug/nova_ctl test -m gpt-5.6-terra -p "Why is Rust ideal for high-throughput inference relays?"

# Real-time streamed completion with TTFT benchmarking
./target/debug/nova_ctl test -m gpt-5.6-terra -p "Name three prominent stars in Orion." --stream

# Image generation
./target/debug/nova_ctl image -m dall-e-3 -p "A cybernetic laboratory in Tokyo at night"

Standard HTTP / cURL Completion

curl -X POST http://localhost:3001/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.6-terra",
    "messages": [{"role": "user", "content": "Explain quantum tunneling."}],
    "stream": true
  }'

5. Useful Development Commands

# Run with debug logging
RUST_LOG=debug cargo run --bin nova-v2

# Run native documentation freshness gate
./scripts/lint-docs.sh

# Prune dead or quarantined shards from sovereign storage
./target/debug/nova_ctl auth prune

# Run performance benchmark harness
cargo run --bin benchmark