aegis-runtime-mv
Native Rust agent runtime: Axum WebSocket/SSE/REST gateway, heartbeat scheduler, dependency-aware task workflow, SQLite storage. Attachment of AienOS. Pre-alpha.
Brought by drakestapleton
aegis-runtime-mv / llms.txt
| 1 | # aegis-runtime |
| 2 | > Ultra-high-performance sovereign agent runtime in native Rust with local model inference on Grace Blackwell GB10. Replaces legacy Node.js/TypeScript runtimes with sub-millisecond execution, zero cloud token bills, and proactive autonomous heartbeats. |
| 3 | |
| 4 | ## Overview |
| 5 | - Repository: https://github.com/aien-dev/aegis-runtime |
| 6 | - License: AGPL-3.0-or-later, with the nonbinding COVENANT.md. |
| 7 | - Language: Rust 2021 |
| 8 | - Runtime: Pure native compiled binaries. Zero Node.js. Zero Python daemons. |
| 9 | |
| 10 | ## Architecture |
| 11 | - Axum Gateway: Sub-millisecond WebSockets, Server-Sent Events (SSE), and REST API on port 18096. |
| 12 | - Heartbeat Engine: Proactive autonomous background tick loop (60s period). Executes digital colleague workflows without requiring human prompts. |
| 13 | - Inference Engine: Direct HTTP client to the local model seat, any OpenAI-compatible server on port 18006 (atlas-lightning-omni on GB10), with SSE streaming. |
| 14 | - Persistence: Embedded SQLite with Write-Ahead-Logging (WAL) mode for sub-millisecond ACID history and state storage. |
| 15 | - Vector Math: Plain Rust cosine similarity, token entropy, projection, and temperature scaling (src/vector_math.rs). |
| 16 | - Security: Hardware TPM key vault (atlas-vault). Zero disk secrets. Dynamic memory resolution and automatic secret redaction ([REDACTED_BY_ATLAS_VAULT]). |
| 17 | |
| 18 | ## Quickstart |
| 19 | ```bash |
| 20 | cargo build --release |
| 21 | ./target/release/aegis serve --port 18096 |
| 22 | ``` |
| 23 | |
| 24 | ## Endpoints |
| 25 | - `GET /health` & `GET /api/v1/health`: Engine health, model ID, uptime, and heartbeat counters. |
| 26 | - `POST /v1/chat/completions`: OpenAI-compatible completions with multi-turn chat and SSE token streaming. |
| 27 | - `GET /v1/models`: OpenAI-compatible models listing. |
| 28 | - `GET /api/v1/skills`: List registered skills. |
| 29 | - `POST /api/v1/skills/execute`: Execute a registered skill. |
| 30 | - `POST /api/v1/chat`: Direct inference request to the local model seat. |
| 31 | - `POST /api/v1/heartbeat/tick`: Force an immediate heartbeat tick. |
| 32 | - `POST /api/v1/tasks` & `GET /api/v1/tasks`: Task queue creation and listing. |
| 33 | - `POST /api/v1/shell`: Local shell execution. |
| 34 | - `GET /events` & `GET /api/v1/events`: SSE event stream for autonomous heartbeats. |
| 35 | - `GET /ws` & `GET /api/v1/ws`: Full duplex WebSocket with real-time heartbeat pulse pushes. |