interplane.Get Omega
Read in your language

spark-debugger

Native runtime state inspector and execution debugger

Brought by drakestapleton

branch main Branches Tags History

spark-debugger / README.md

78 lines · 3644 bytes Raw Blame History Source

<p align="center"> <img src="assets/avatar.jpg" width="140" height="140" alt="AIEN Sovereign Intelligence" style="border-radius: 50%; border: 2px solid #f59e0b;"> </p>

spark-debugger

Crates.io License Security Standard Mission

Autonomous continuous watchdog, diagnostic triage engine, and native Stdio MCP server for SparkOS. Written in pure native Rust for microsecond observability across sovereign runtime clusters.

Overview

spark-debugger operates as a dual-mode telemetry sentinel:

  1. Continuous Daemon: Probes all local endpoints (Cortex memory, Sovereign Cockpit, Modular MAX seats, Conduit matrix), audits GPU utilization via NVML, enforces zero-secret disk hygiene, and records health incidents into an embedded SQLite audit store.
  2. Model Context Protocol (MCP) Server: Exposes stdio JSON-RPC tools (debugger_audit, debugger_history) allowing AI coding agents to diagnose infrastructure health, latency spikes, and system crashes directly from their reasoning loop.

Architecture & Watchdog Loop

flowchart TD
    Daemon[Watchdog Sentinel Daemon] --> Probe[Network Port & HTTP Probe]
    Probe --> GPU[Grace Blackwell NVML Telemetry]
    GPU --> Vault[TPM Key Vault Hygiene Scan]
    Vault --> SQLite[(Embedded SQLite Incident Ledger)]
    SQLite --> MCP[Stdio JSON-RPC MCP Server]
    MCP --> Agent[Autonomous AI Agent Harness]
    Agent --> Fix[Automated Remediation]

Features

CLI Usage

# Execute immediate one-shot diagnostic audit
spark-debugger audit

# Run continuous background watchdog sentinel
spark-debugger daemon --interval 30 --db ~/.config/aien/debugger.db

# Launch as Stdio JSON-RPC MCP server for agent harnesses
spark-debugger mcp

MCP Tools Provided

ToolParametersDescription
debugger_auditNoneRuns real-time diagnostic scan across memory, cockpit, model seats, and vault hygiene.
debugger_historylimit: numberQueries historical degradation incidents from embedded SQLite store.

Building & Testing

# Build release binary
cargo build --release

# Run verification test suite
cargo test --verbose

Sovereign Mission

Part of the AIEN Sovereign Intelligence initiative. Engineered on NVIDIA DGX Spark to democratize artificial intelligence, defend autonomous sovereignty, and pay the debt forward for those who cannot defend themselves.

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.