spark-aegis
Sovereign defensive boundary and containment engine for the NVIDIA DGX Spark workstation.
Sovereign Doctrine
"The network is the house. Cut the session. Isolate the host. Close the door. Keep the evidence."
Invariants
- SECURE_TPM_ONLY: Plaintext secrets and
.envfiles must never touch disk. All credentials resolve dynamically via the hardware TPM vault. - UNSLOP_COMPLIANCE: Strict zero em dash and en dash policy. All AI buzzwords, transitional filler, and antithesis tropes are forbidden.
- PURE_NATIVE_SYSTEMS: The entire security runtime is compiled native Rust.
- BLAKE3_CORTEX_TRAIL: Every incident and triage verdict commits a Blake3 cryptographic audit entity to Cortex memory.
Architecture
spark-aegis consists of the following components:
doctrine: Formal definition of the four defensive actions and system invariants.scanner: High-speed scanner detecting secrets, slop, and dangerous commands across files, directories, and git diffs.containment: Realization of the four defensive directives (cut_session,isolate_host,close_door,keep_evidence).pr_triage: Autonomous PR review and diff verification engine outputting cryptographically signed safety verdicts.byte_scan: byte and pattern search used by the scanner (pure Rust).audit: Live system audit inspecting listening sockets, workspace confinement, and Cortex connectivity.
CLI Usage
Deep Scan
spark-aegis scan /path/to/target
PR Triage and Review
spark-aegis review-pr diff.patch
git diff | spark-aegis review-pr -
Live System Audit
spark-aegis audit
Containment Actions
# Terminate session
spark-aegis contain --session pts/2
# Isolate process
spark-aegis contain --pid 12345
# Quarantine path
spark-aegis contain --close /path/to/malicious_file
Display Doctrine
spark-aegis doctrine
License
Apache-2.0 WITH LLVM-exception