Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/spark-debugger/blob/main/README.md # spark-debugger Native runtime state inspector and execution debugger Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `spark-debugger / README.md` 78 lines · 3644 bytes Raw Blame History Source

AIEN Sovereign Intelligence

# 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: - 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. - 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 Tool Parameters Description `debugger_audit` None Runs real-time diagnostic scan across memory, cockpit, model seats, and vault hygiene. `debugger_history` `limit: number` Queries 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.