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

f35b24e docs: first person, Drake's own voice (L422) Drake Stapleton committed 2026-11-09
.github/
assets/
src/
.gitignore80
AGENTS.md3973
AGENT_CODE_OF_CONDUCT.md3493
CONSTITUTION.md8401
CONTRIBUTING.md1513
Cargo.toml791
LICENSE17335
README.md3644
SECURITY.md1333
agent.json594
llms.txt1372

README.md

<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

  • Microsecond Observability: Pure compiled Rust with Tokio asynchronous concurrency. Checks 6+ endpoints and kernel health in under 5ms.
  • Stdio MCP Interface: Seamless plug-and-play integration with Claude Code, Cursor, Codex, and Antigravity via Stdio JSON-RPC 2.0.
  • Embedded SQLite Ledger: Durable persistent tracking of health degradations, latency regressions, and recovery cycles in WAL mode.
  • Zero Plaintext Secrets: Hardened audit routines verify zero unencrypted credentials exist in active workspaces.
  • Unslop Standard: Enforces rigorous technical diagnostic output with zero conversational fluff or antithesis clichés.

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.